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