- 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.UpdateCustomerAccountRequest = factory(root.OrbipayPaymentsapiClient.ApiClient, root.OrbipayPaymentsapiClient.AddressVo);
- 14 :
}
- 15 :
}(this, function(ApiClient, AddressVo) {
- 16 :
'use strict';
- 17 :
- 18 :
- 19 :
- 20 :
- 21 :
/**
- 22 :
* The UpdateCustomerAccountRequest model module.
- 23 :
* @module models/UpdateCustomerAccountRequest
- 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>UpdateCustomerAccountRequest</code>.
- 30 :
* @alias module:models/UpdateCustomerAccountRequest
- 31 :
* @class
- 32 :
* @param account_number {String} The number or reference that a customer uses to identify the customer's account.
- 33 :
*/
- 34 :
var exports = function(account_number) {
- 35 :
var _this = this;
- 36 :
- 37 :
- 38 :
- 39 :
- 40 :
- 41 :
_this['account_number'] = account_number;
- 42 :
- 43 :
- 44 :
- 45 :
- 46 :
- 47 :
- 48 :
- 49 :
- 50 :
};
- 51 :
- 52 :
/**
- 53 :
* Constructs a <code>UpdateCustomerAccountRequest</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/UpdateCustomerAccountRequest} obj Optional instance to populate.
- 57 :
* @return {module:models/UpdateCustomerAccountRequest} The populated <code>UpdateCustomerAccountRequest</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 :
if (data.hasOwnProperty('status')) {
- 100 :
obj['status'] = ApiClient.convertToType(data['status'], 'String');
- 101 :
}
- 102 :
}
- 103 :
return obj;
- 104 :
};
- 105 :
- 106 :
/**
- 107 :
* The name as specified on the account.
- 108 :
* @member {String} account_holder_name
- 109 :
*/
- 110 :
exports.prototype['account_holder_name'] = undefined;
- 111 :
/**
- 112 :
* The nickname by which a customer might want to identify the account.
- 113 :
* @member {String} nickname
- 114 :
*/
- 115 :
exports.prototype['nickname'] = undefined;
- 116 :
/**
- 117 :
* @member {module:models/AddressVo} address
- 118 :
*/
- 119 :
exports.prototype['address'] = undefined;
- 120 :
/**
- 121 :
* The unique identifier in the client system for the customer account.
- 122 :
* @member {String} customer_account_reference
- 123 :
*/
- 124 :
exports.prototype['customer_account_reference'] = undefined;
- 125 :
/**
- 126 :
* The number or reference that a customer uses to identify the customer's account.
- 127 :
* @member {String} account_number
- 128 :
*/
- 129 :
exports.prototype['account_number'] = undefined;
- 130 :
/**
- 131 :
* The current balance on the customer's account with the biller.
- 132 :
* @member {String} current_balance
- 133 :
*/
- 134 :
exports.prototype['current_balance'] = undefined;
- 135 :
/**
- 136 :
* The balance on the customer’s account with the biller as reported on the last statement.
- 137 :
* @member {String} current_statement_balance
- 138 :
*/
- 139 :
exports.prototype['current_statement_balance'] = undefined;
- 140 :
/**
- 141 :
* The minimum payment amount, as specified by the biller, that needs to be made against the customer’s account.
- 142 :
* @member {String} minimum_payment_due
- 143 :
*/
- 144 :
exports.prototype['minimum_payment_due'] = undefined;
- 145 :
/**
- 146 :
* The amount that is due from the past bills/statements on the customer’s account with the biller.
- 147 :
* @member {String} past_amount_due
- 148 :
*/
- 149 :
exports.prototype['past_amount_due'] = undefined;
- 150 :
/**
- 151 :
* 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.
- 152 :
* @member {String} payment_due_date
- 153 :
*/
- 154 :
exports.prototype['payment_due_date'] = undefined;
- 155 :
/**
- 156 :
* 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.
- 157 :
* @member {String} statement_date
- 158 :
*/
- 159 :
exports.prototype['statement_date'] = undefined;
- 160 :
/**
- 161 :
* The additional information or meta-information that EBPP can accept, maintain and transmit back to the client.
- 162 :
* @member {Object.<String, String>} custom_fields
- 163 :
*/
- 164 :
exports.prototype['custom_fields'] = undefined;
- 165 :
/**
- 166 :
* The status of the customer's account in EBPP.
- 167 :
* @member {module:models/UpdateCustomerAccountRequest.StatusEnum} status
- 168 :
*/
- 169 :
exports.prototype['status'] = undefined;
- 170 :
- 171 :
- 172 :
/**
- 173 :
* Allowed values for the <code>status</code> property.
- 174 :
* @enum {String}
- 175 :
* @readonly
- 176 :
*/
- 177 :
exports.StatusEnum = {
- 178 :
/**
- 179 :
* value: "active"
- 180 :
* @const
- 181 :
*/
- 182 :
"active": "active",
- 183 :
/**
- 184 :
* value: "inactive"
- 185 :
* @const
- 186 :
*/
- 187 :
"inactive": "inactive",
- 188 :
/**
- 189 :
* value: "incollections"
- 190 :
* @const
- 191 :
*/
- 192 :
"incollections": "incollections",
- 193 :
/**
- 194 :
* value: "inbankruptcy"
- 195 :
* @const
- 196 :
*/
- 197 :
"inbankruptcy": "inbankruptcy" };
- 198 :
- 199 :
- 200 :
return exports;
- 201 :
}));
- 202 :
- 203 :