- 1 :
(function(root, factory) {
- 2 :
if (typeof define === 'function' && define.amd) {
- 3 :
// AMD. Register as an anonymous module.
- 4 :
define(['ApiClient', 'models/FundingAccountAddress'], 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('./FundingAccountAddress'));
- 8 :
} else {
- 9 :
// Browser globals (root is window)
- 10 :
if (!root.OrbipayPaymentsapiClient) {
- 11 :
root.OrbipayPaymentsapiClient = {};
- 12 :
}
- 13 :
root.OrbipayPaymentsapiClient.SimplePaymentFundingAccountRequest = factory(root.OrbipayPaymentsapiClient.ApiClient, root.OrbipayPaymentsapiClient.FundingAccountAddress);
- 14 :
}
- 15 :
}(this, function(ApiClient, FundingAccountAddress) {
- 16 :
'use strict';
- 17 :
- 18 :
- 19 :
- 20 :
- 21 :
/**
- 22 :
* The SimplePaymentFundingAccountRequest model module.
- 23 :
* @module models/SimplePaymentFundingAccountRequest
- 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>SimplePaymentFundingAccountRequest</code>.
- 30 :
* @alias module:models/SimplePaymentFundingAccountRequest
- 31 :
* @class
- 32 :
* @param account_number {String} The number or reference that a customer uses to identify the funding account.
- 33 :
*/
- 34 :
var exports = function(account_number) {
- 35 :
var _this = this;
- 36 :
- 37 :
- 38 :
- 39 :
- 40 :
_this['account_number'] = account_number;
- 41 :
- 42 :
- 43 :
- 44 :
- 45 :
- 46 :
- 47 :
- 48 :
- 49 :
};
- 50 :
- 51 :
/**
- 52 :
* Constructs a <code>SimplePaymentFundingAccountRequest</code> from a plain JavaScript object, optionally creating a new instance.
- 53 :
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
- 54 :
* @param {Object} data The plain JavaScript object bearing properties of interest.
- 55 :
* @param {module:models/SimplePaymentFundingAccountRequest} obj Optional instance to populate.
- 56 :
* @return {module:models/SimplePaymentFundingAccountRequest} The populated <code>SimplePaymentFundingAccountRequest</code> instance.
- 57 :
*/
- 58 :
exports.constructFromObject = function(data, obj) {
- 59 :
if (data) {
- 60 :
obj = obj || new exports();
- 61 :
- 62 :
if (data.hasOwnProperty('account_holder_name')) {
- 63 :
obj['account_holder_name'] = ApiClient.convertToType(data['account_holder_name'], 'String');
- 64 :
}
- 65 :
if (data.hasOwnProperty('nickname')) {
- 66 :
obj['nickname'] = ApiClient.convertToType(data['nickname'], 'String');
- 67 :
}
- 68 :
if (data.hasOwnProperty('address')) {
- 69 :
obj['address'] = FundingAccountAddress.constructFromObject(data['address']);
- 70 :
}
- 71 :
if (data.hasOwnProperty('account_number')) {
- 72 :
obj['account_number'] = ApiClient.convertToType(data['account_number'], 'String');
- 73 :
}
- 74 :
if (data.hasOwnProperty('aba_routing_number')) {
- 75 :
obj['aba_routing_number'] = ApiClient.convertToType(data['aba_routing_number'], 'String');
- 76 :
}
- 77 :
if (data.hasOwnProperty('expiry_date')) {
- 78 :
obj['expiry_date'] = ApiClient.convertToType(data['expiry_date'], 'String');
- 79 :
}
- 80 :
if (data.hasOwnProperty('account_holder_type')) {
- 81 :
obj['account_holder_type'] = ApiClient.convertToType(data['account_holder_type'], 'String');
- 82 :
}
- 83 :
if (data.hasOwnProperty('custom_fields')) {
- 84 :
obj['custom_fields'] = ApiClient.convertToType(data['custom_fields'], {'String': 'String'});
- 85 :
}
- 86 :
if (data.hasOwnProperty('account_subtype')) {
- 87 :
obj['account_subtype'] = ApiClient.convertToType(data['account_subtype'], 'String');
- 88 :
}
- 89 :
if (data.hasOwnProperty('card_cvv_number')) {
- 90 :
obj['card_cvv_number'] = ApiClient.convertToType(data['card_cvv_number'], 'String');
- 91 :
}
- 92 :
if (data.hasOwnProperty('device_manufacturer_id')) {
- 93 :
obj['device_manufacturer_id'] = ApiClient.convertToType(data['device_manufacturer_id'], 'String');
- 94 :
}
- 95 :
if (data.hasOwnProperty('display_text')) {
- 96 :
obj['display_text'] = ApiClient.convertToType(data['display_text'], 'String');
- 97 :
}
- 98 :
}
- 99 :
return obj;
- 100 :
};
- 101 :
- 102 :
/**
- 103 :
* The name as specified on the account.
- 104 :
* @member {String} account_holder_name
- 105 :
*/
- 106 :
exports.prototype['account_holder_name'] = undefined;
- 107 :
/**
- 108 :
* The nickname by which a customer might want to identify the account.
- 109 :
* @member {String} nickname
- 110 :
*/
- 111 :
exports.prototype['nickname'] = undefined;
- 112 :
/**
- 113 :
* @member {module:models/FundingAccountAddress} address
- 114 :
*/
- 115 :
exports.prototype['address'] = undefined;
- 116 :
/**
- 117 :
* The number or reference that a customer uses to identify the funding account.
- 118 :
* @member {String} account_number
- 119 :
*/
- 120 :
exports.prototype['account_number'] = undefined;
- 121 :
/**
- 122 :
* The ABA/Routing number for the bank account.
- 123 :
* @member {String} aba_routing_number
- 124 :
*/
- 125 :
exports.prototype['aba_routing_number'] = undefined;
- 126 :
/**
- 127 :
* The expiry date for the card. This is to be in the format MM/YY.
- 128 :
* @member {String} expiry_date
- 129 :
*/
- 130 :
exports.prototype['expiry_date'] = undefined;
- 131 :
/**
- 132 :
* The type of ownership for the funding account.
- 133 :
* @member {module:models/SimplePaymentFundingAccountRequest.AccountHolderTypeEnum} account_holder_type
- 134 :
*/
- 135 :
exports.prototype['account_holder_type'] = undefined;
- 136 :
/**
- 137 :
* The additional information or meta-information that EBPP can accept, maintain and transmit back to the client.
- 138 :
* @member {Object.<String, String>} custom_fields
- 139 :
*/
- 140 :
exports.prototype['custom_fields'] = undefined;
- 141 :
/**
- 142 :
* The sub type of the funding account.
- 143 :
* @member {module:models/SimplePaymentFundingAccountRequest.AccountSubtypeEnum} account_subtype
- 144 :
*/
- 145 :
exports.prototype['account_subtype'] = undefined;
- 146 :
/**
- 147 :
* @member {String} card_cvv_number
- 148 :
*/
- 149 :
exports.prototype['card_cvv_number'] = undefined;
- 150 :
/**
- 151 :
* @member {String} device_manufacturer_id
- 152 :
*/
- 153 :
exports.prototype['device_manufacturer_id'] = undefined;
- 154 :
/**
- 155 :
* UI representation of the account.
- 156 :
* @member {String} display_text
- 157 :
*/
- 158 :
exports.prototype['display_text'] = undefined;
- 159 :
- 160 :
- 161 :
/**
- 162 :
* Allowed values for the <code>account_holder_type</code> property.
- 163 :
* @enum {String}
- 164 :
* @readonly
- 165 :
*/
- 166 :
exports.AccountHolderTypeEnum = {
- 167 :
/**
- 168 :
* value: "personal"
- 169 :
* @const
- 170 :
*/
- 171 :
"personal": "personal",
- 172 :
/**
- 173 :
* value: "business"
- 174 :
* @const
- 175 :
*/
- 176 :
"business": "business" };
- 177 :
- 178 :
/**
- 179 :
* Allowed values for the <code>account_subtype</code> property.
- 180 :
* @enum {String}
- 181 :
* @readonly
- 182 :
*/
- 183 :
exports.AccountSubtypeEnum = {
- 184 :
/**
- 185 :
* value: "savings"
- 186 :
* @const
- 187 :
*/
- 188 :
"savings": "savings",
- 189 :
/**
- 190 :
* value: "checking"
- 191 :
* @const
- 192 :
*/
- 193 :
"checking": "checking",
- 194 :
/**
- 195 :
* value: "money_market"
- 196 :
* @const
- 197 :
*/
- 198 :
"money_market": "money_market",
- 199 :
/**
- 200 :
* value: "visa_credit"
- 201 :
* @const
- 202 :
*/
- 203 :
"visa_credit": "visa_credit",
- 204 :
/**
- 205 :
* value: "mastercard_credit"
- 206 :
* @const
- 207 :
*/
- 208 :
"mastercard_credit": "mastercard_credit",
- 209 :
/**
- 210 :
* value: "american_express_credit"
- 211 :
* @const
- 212 :
*/
- 213 :
"american_express_credit": "american_express_credit",
- 214 :
/**
- 215 :
* value: "discover_credit"
- 216 :
* @const
- 217 :
*/
- 218 :
"discover_credit": "discover_credit",
- 219 :
/**
- 220 :
* value: "visa_debit"
- 221 :
* @const
- 222 :
*/
- 223 :
"visa_debit": "visa_debit",
- 224 :
/**
- 225 :
* value: "mastercard_debit"
- 226 :
* @const
- 227 :
*/
- 228 :
"mastercard_debit": "mastercard_debit",
- 229 :
/**
- 230 :
* value: "discover_debit"
- 231 :
* @const
- 232 :
*/
- 233 :
"discover_debit": "discover_debit",
- 234 :
/**
- 235 :
* value: "apple_pay"
- 236 :
* @const
- 237 :
*/
- 238 :
"apple_pay": "apple_pay",
- 239 :
/**
- 240 :
* value: "google_pay"
- 241 :
* @const
- 242 :
*/
- 243 :
"google_pay": "google_pay",
- 244 :
/**
- 245 :
* value: "voyager_fleet"
- 246 :
* @const
- 247 :
*/
- 248 :
"voyager_fleet": "voyager_fleet" };
- 249 :
- 250 :
- 251 :
return exports;
- 252 :
}));
- 253 :
- 254 :