wrappers/Fee

The Fee wrapper module.

Members

inner fee_amount :String

The fee amount upto 2 decimal places.

inner fee_type :String

The way the fee is being charged to the customer. Fee could be added to the amount being paid, or, it could be charged separately by the biller. The fee_type would default to add_to_principal if the fee is not configured for the client in EBPP.

inner id :String

The unique identifier assigned by EBPP to the fee. In case of split fee.

inner url :String

This URL fetches the details of fee as a payment resource. In case of split fee.

Methods

static constructFromObject(data, obj) → {module:wrappers/Fee}

Constructs a Fee from a plain JavaScript object, optionally creating a new instance. Copies all relevant properties from data to obj if supplied or a new instance if not.

Parameters:
Name Type Description
data Object

The plain JavaScript object bearing properties of interest.

obj module:wrappers/Fee

Optional instance to populate.

Returns:
module:wrappers/Fee -

The populated Fee instance.