- 1 :
(function(root, factory) {
- 2 :
if (typeof define === 'function' && define.amd) {
- 3 :
// AMD. Register as an anonymous module.
- 4 :
define(['ApiClient', 'models/AddressVo'], factory);
- 5 :
} else if (typeof module === 'object' && module.exports) {
- 6 :
// CommonJS-like environments that support module.exports, like Node.
- 7 :
module.exports = factory(require('../ApiClient'), require('./AddressVo'));
- 8 :
} else {
- 9 :
// Browser globals (root is window)
- 10 :
if (!root.OrbipayPaymentsapiClient) {
- 11 :
root.OrbipayPaymentsapiClient = {};
- 12 :
}
- 13 :
root.OrbipayPaymentsapiClient.SimplePaymentCustomerAccountRequest = factory(root.OrbipayPaymentsapiClient.ApiClient, root.OrbipayPaymentsapiClient.AddressVo);
- 14 :
}
- 15 :
}(this, function(ApiClient, AddressVo) {
- 16 :
'use strict';
- 17 :
- 18 :
- 19 :
- 20 :
- 21 :
/**
- 22 :
* The SimplePaymentCustomerAccountRequest model module.
- 23 :
* @module models/SimplePaymentCustomerAccountRequest
- 24 :
*/
- 25 :
- 26 :
/**
- 27 :
* <h3 style="color:red"> This class subject to change without prior notice, Please dont use this class directly. </h3>
- 28 :
- 29 :
* Constructs a new <code>SimplePaymentCustomerAccountRequest</code>.
- 30 :
* @alias module:models/SimplePaymentCustomerAccountRequest
- 31 :
* @class
- 32 :
* @param account_holder_name {String} The name as specified on the account.
- 33 :
* @param account_number {String} The number or reference that a customer uses to identify the customer's account.
- 34 :
*/
- 35 :
var exports = function(account_holder_name, account_number) {
- 36 :
var _this = this;
- 37 :
- 38 :
_this['account_holder_name'] = account_holder_name;
- 39 :
- 40 :
- 41 :
- 42 :
_this['account_number'] = account_number;
- 43 :
- 44 :
- 45 :
- 46 :
- 47 :
- 48 :
- 49 :
- 50 :
};
- 51 :
- 52 :
/**
- 53 :
* Constructs a <code>SimplePaymentCustomerAccountRequest</code> from a plain JavaScript object, optionally creating a new instance.
- 54 :
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
- 55 :
* @param {Object} data The plain JavaScript object bearing properties of interest.
- 56 :
* @param {module:models/SimplePaymentCustomerAccountRequest} obj Optional instance to populate.
- 57 :
* @return {module:models/SimplePaymentCustomerAccountRequest} The populated <code>SimplePaymentCustomerAccountRequest</code> instance.
- 58 :
*/
- 59 :
exports.constructFromObject = function(data, obj) {
- 60 :
if (data) {
- 61 :
obj = obj || new exports();
- 62 :
- 63 :
if (data.hasOwnProperty('account_holder_name')) {
- 64 :
obj['account_holder_name'] = ApiClient.convertToType(data['account_holder_name'], 'String');
- 65 :
}
- 66 :
if (data.hasOwnProperty('nickname')) {
- 67 :
obj['nickname'] = ApiClient.convertToType(data['nickname'], 'String');
- 68 :
}
- 69 :
if (data.hasOwnProperty('address')) {
- 70 :
obj['address'] = AddressVo.constructFromObject(data['address']);
- 71 :
}
- 72 :
if (data.hasOwnProperty('customer_account_reference')) {
- 73 :
obj['customer_account_reference'] = ApiClient.convertToType(data['customer_account_reference'], 'String');
- 74 :
}
- 75 :
if (data.hasOwnProperty('account_number')) {
- 76 :
obj['account_number'] = ApiClient.convertToType(data['account_number'], 'String');
- 77 :
}
- 78 :
if (data.hasOwnProperty('current_balance')) {
- 79 :
obj['current_balance'] = ApiClient.convertToType(data['current_balance'], 'String');
- 80 :
}
- 81 :
if (data.hasOwnProperty('current_statement_balance')) {
- 82 :
obj['current_statement_balance'] = ApiClient.convertToType(data['current_statement_balance'], 'String');
- 83 :
}
- 84 :
if (data.hasOwnProperty('minimum_payment_due')) {
- 85 :
obj['minimum_payment_due'] = ApiClient.convertToType(data['minimum_payment_due'], 'String');
- 86 :
}
- 87 :
if (data.hasOwnProperty('past_amount_due')) {
- 88 :
obj['past_amount_due'] = ApiClient.convertToType(data['past_amount_due'], 'String');
- 89 :
}
- 90 :
if (data.hasOwnProperty('payment_due_date')) {
- 91 :
obj['payment_due_date'] = ApiClient.convertToType(data['payment_due_date'], 'String');
- 92 :
}
- 93 :
if (data.hasOwnProperty('statement_date')) {
- 94 :
obj['statement_date'] = ApiClient.convertToType(data['statement_date'], 'String');
- 95 :
}
- 96 :
if (data.hasOwnProperty('custom_fields')) {
- 97 :
obj['custom_fields'] = ApiClient.convertToType(data['custom_fields'], {'String': 'String'});
- 98 :
}
- 99 :
}
- 100 :
return obj;
- 101 :
};
- 102 :
- 103 :
/**
- 104 :
* The name as specified on the account.
- 105 :
* @member {String} account_holder_name
- 106 :
*/
- 107 :
exports.prototype['account_holder_name'] = undefined;
- 108 :
/**
- 109 :
* The nickname by which a customer might want to identify the account.
- 110 :
* @member {String} nickname
- 111 :
*/
- 112 :
exports.prototype['nickname'] = undefined;
- 113 :
/**
- 114 :
* @member {module:models/AddressVo} address
- 115 :
*/
- 116 :
exports.prototype['address'] = undefined;
- 117 :
/**
- 118 :
* The unique identifier in the client system for the customer account.
- 119 :
* @member {String} customer_account_reference
- 120 :
*/
- 121 :
exports.prototype['customer_account_reference'] = undefined;
- 122 :
/**
- 123 :
* The number or reference that a customer uses to identify the customer's account.
- 124 :
* @member {String} account_number
- 125 :
*/
- 126 :
exports.prototype['account_number'] = undefined;
- 127 :
/**
- 128 :
* The current balance on the customer's account with the biller.
- 129 :
* @member {String} current_balance
- 130 :
*/
- 131 :
exports.prototype['current_balance'] = undefined;
- 132 :
/**
- 133 :
* The balance on the customer’s account with the biller as reported on the last statement.
- 134 :
* @member {String} current_statement_balance
- 135 :
*/
- 136 :
exports.prototype['current_statement_balance'] = undefined;
- 137 :
/**
- 138 :
* The minimum payment amount, as specified by the biller, that needs to be made against the customer’s account.
- 139 :
* @member {String} minimum_payment_due
- 140 :
*/
- 141 :
exports.prototype['minimum_payment_due'] = undefined;
- 142 :
/**
- 143 :
* The amount that is due from the past bills/statements on the customer’s account with the biller.
- 144 :
* @member {String} past_amount_due
- 145 :
*/
- 146 :
exports.prototype['past_amount_due'] = undefined;
- 147 :
/**
- 148 :
* The date by which the customer needs to clear the dues against the customer's account with the biller. It must be in ISO8601 full-date format, namely, YYYY-MM-DD.
- 149 :
* @member {String} payment_due_date
- 150 :
*/
- 151 :
exports.prototype['payment_due_date'] = undefined;
- 152 :
/**
- 153 :
* The date on which the biller generates the statement for the customer's account. It must be in ISO8601 full-date format, namely, YYYY-MM-DD.
- 154 :
* @member {String} statement_date
- 155 :
*/
- 156 :
exports.prototype['statement_date'] = undefined;
- 157 :
/**
- 158 :
* The additional information or meta-information that EBPP can accept, maintain and transmit back to the client.
- 159 :
* @member {Object.<String, String>} custom_fields
- 160 :
*/
- 161 :
exports.prototype['custom_fields'] = undefined;
- 162 :
- 163 :
- 164 :
- 165 :
return exports;
- 166 :
}));
- 167 :
- 168 :