- 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 :
* Constructs a <code>FundingAccountSnapshotResponse</code> from a plain JavaScript object, optionally creating a new instance.
- 49 :
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
- 50 :
* @param {Object} data The plain JavaScript object bearing properties of interest.
- 51 :
* @param {module:models/FundingAccountSnapshotResponse} obj Optional instance to populate.
- 52 :
* @return {module:models/FundingAccountSnapshotResponse} The populated <code>FundingAccountSnapshotResponse</code> instance.
- 53 :
*/
- 54 :
exports.constructFromObject = function(data, obj) {
- 55 :
if (data) {
- 56 :
obj = obj || new exports();
- 57 :
- 58 :
if (data.hasOwnProperty('id')) {
- 59 :
obj['id'] = ApiClient.convertToType(data['id'], 'String');
- 60 :
}
- 61 :
if (data.hasOwnProperty('url')) {
- 62 :
obj['url'] = ApiClient.convertToType(data['url'], 'String');
- 63 :
}
- 64 :
if (data.hasOwnProperty('account_number')) {
- 65 :
obj['account_number'] = ApiClient.convertToType(data['account_number'], 'String');
- 66 :
}
- 67 :
if (data.hasOwnProperty('account_type')) {
- 68 :
obj['account_type'] = ApiClient.convertToType(data['account_type'], 'String');
- 69 :
}
- 70 :
if (data.hasOwnProperty('account_subtype')) {
- 71 :
obj['account_subtype'] = ApiClient.convertToType(data['account_subtype'], 'String');
- 72 :
}
- 73 :
if (data.hasOwnProperty('aba_routing_number')) {
- 74 :
obj['aba_routing_number'] = ApiClient.convertToType(data['aba_routing_number'], 'String');
- 75 :
}
- 76 :
if (data.hasOwnProperty('issuer_name')) {
- 77 :
obj['issuer_name'] = ApiClient.convertToType(data['issuer_name'], 'String');
- 78 :
}
- 79 :
if (data.hasOwnProperty('nickname')) {
- 80 :
obj['nickname'] = ApiClient.convertToType(data['nickname'], 'String');
- 81 :
}
- 82 :
}
- 83 :
return obj;
- 84 :
};
- 85 :
- 86 :
/**
- 87 :
* Id is a unique identifier assigned to the account in EBPP.
- 88 :
* @member {String} id
- 89 :
*/
- 90 :
exports.prototype['id'] = undefined;
- 91 :
/**
- 92 :
* This URL fetches the funding account details.
- 93 :
* @member {String} url
- 94 :
*/
- 95 :
exports.prototype['url'] = undefined;
- 96 :
/**
- 97 :
* The number or reference that a customer uses to identify the funding account.
- 98 :
* @member {String} account_number
- 99 :
*/
- 100 :
exports.prototype['account_number'] = undefined;
- 101 :
/**
- 102 :
* The type of the funding account.
- 103 :
* @member {module:models/FundingAccountSnapshotResponse.AccountTypeEnum} account_type
- 104 :
*/
- 105 :
exports.prototype['account_type'] = undefined;
- 106 :
/**
- 107 :
* 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 account.
- 108 :
* @member {module:models/FundingAccountSnapshotResponse.AccountSubtypeEnum} account_subtype
- 109 :
*/
- 110 :
exports.prototype['account_subtype'] = undefined;
- 111 :
/**
- 112 :
* The ABA/Routing number for the bank account.
- 113 :
* @member {String} aba_routing_number
- 114 :
*/
- 115 :
exports.prototype['aba_routing_number'] = undefined;
- 116 :
/**
- 117 :
* The name of the authority that has issued the account. This is relevant only in the case of bank accounts.
- 118 :
* @member {String} issuer_name
- 119 :
*/
- 120 :
exports.prototype['issuer_name'] = undefined;
- 121 :
/**
- 122 :
* The nickname by which a customer might want to identify the account.
- 123 :
* @member {String} nickname
- 124 :
*/
- 125 :
exports.prototype['nickname'] = undefined;
- 126 :
- 127 :
- 128 :
/**
- 129 :
* Allowed values for the <code>account_type</code> property.
- 130 :
* @enum {String}
- 131 :
* @readonly
- 132 :
*/
- 133 :
exports.AccountTypeEnum = {
- 134 :
/**
- 135 :
* value: "bank"
- 136 :
* @const
- 137 :
*/
- 138 :
"bank": "bank",
- 139 :
/**
- 140 :
* value: "debit_card"
- 141 :
* @const
- 142 :
*/
- 143 :
"debit_card": "debit_card",
- 144 :
/**
- 145 :
* value: "credit_card"
- 146 :
* @const
- 147 :
*/
- 148 :
"credit_card": "credit_card" };
- 149 :
- 150 :
/**
- 151 :
* Allowed values for the <code>account_subtype</code> property.
- 152 :
* @enum {String}
- 153 :
* @readonly
- 154 :
*/
- 155 :
exports.AccountSubtypeEnum = {
- 156 :
/**
- 157 :
* value: "savings"
- 158 :
* @const
- 159 :
*/
- 160 :
"savings": "savings",
- 161 :
/**
- 162 :
* value: "checking"
- 163 :
* @const
- 164 :
*/
- 165 :
"checking": "checking",
- 166 :
/**
- 167 :
* value: "money_market"
- 168 :
* @const
- 169 :
*/
- 170 :
"money_market": "money_market",
- 171 :
/**
- 172 :
* value: "visa_credit"
- 173 :
* @const
- 174 :
*/
- 175 :
"visa_credit": "visa_credit",
- 176 :
/**
- 177 :
* value: "mastercard_credit"
- 178 :
* @const
- 179 :
*/
- 180 :
"mastercard_credit": "mastercard_credit",
- 181 :
/**
- 182 :
* value: "american_express_credit"
- 183 :
* @const
- 184 :
*/
- 185 :
"american_express_credit": "american_express_credit",
- 186 :
/**
- 187 :
* value: "discover_credit"
- 188 :
* @const
- 189 :
*/
- 190 :
"discover_credit": "discover_credit",
- 191 :
/**
- 192 :
* value: "visa_debit"
- 193 :
* @const
- 194 :
*/
- 195 :
"visa_debit": "visa_debit",
- 196 :
/**
- 197 :
* value: "mastercard_debit"
- 198 :
* @const
- 199 :
*/
- 200 :
"mastercard_debit": "mastercard_debit",
- 201 :
/**
- 202 :
* value: "discover_debit"
- 203 :
* @const
- 204 :
*/
- 205 :
"discover_debit": "discover_debit" };
- 206 :
- 207 :
- 208 :
return exports;
- 209 :
}));
- 210 :
- 211 :