1. 1 : (function(root, factory) {
  2. 2 : if (typeof define === 'function' && define.amd) {
  3. 3 : // AMD. Register as an anonymous module.
  4. 4 : define(['ApiClient', 'models/AuditInfoVo', 'models/FundingAccountAddress'], factory);
  5. 5 : } else if (typeof module === 'object' && module.exports) {
  6. 6 : // CommonJS-like environments that support module.exports, like Node.
  7. 7 : module.exports = factory(require('../ApiClient'), require('./AuditInfoVo'), require('./FundingAccountAddress'));
  8. 8 : } else {
  9. 9 : // Browser globals (root is window)
  10. 10 : if (!root.OrbipayPaymentsapiClient) {
  11. 11 : root.OrbipayPaymentsapiClient = {};
  12. 12 : }
  13. 13 : root.OrbipayPaymentsapiClient.FundingAccountResponse = factory(root.OrbipayPaymentsapiClient.ApiClient, root.OrbipayPaymentsapiClient.AuditInfoVo, root.OrbipayPaymentsapiClient.FundingAccountAddress);
  14. 14 : }
  15. 15 : }(this, function(ApiClient, AuditInfoVo, FundingAccountAddress) {
  16. 16 : 'use strict';
  17. 17 :
  18. 18 :
  19. 19 :
  20. 20 :
  21. 21 : /**
  22. 22 : * The FundingAccountResponse model module.
  23. 23 : * @module models/FundingAccountResponse
  24. 24 : */
  25. 25 :
  26. 26 : /**
  27. 27 : * <h3 style="color:red"> This class subject to change without prior notice, Please dont use this class directly. </h3>
  28. 28 :
  29. 29 : * Constructs a new <code>FundingAccountResponse</code>.
  30. 30 : * @alias module:models/FundingAccountResponse
  31. 31 : * @class
  32. 32 : */
  33. 33 : var exports = function() {
  34. 34 : var _this = this;
  35. 35 :
  36. 36 :
  37. 37 :
  38. 38 :
  39. 39 :
  40. 40 :
  41. 41 :
  42. 42 :
  43. 43 :
  44. 44 :
  45. 45 :
  46. 46 :
  47. 47 :
  48. 48 :
  49. 49 :
  50. 50 :
  51. 51 :
  52. 52 :
  53. 53 :
  54. 54 :
  55. 55 :
  56. 56 :
  57. 57 : };
  58. 58 :
  59. 59 : /**
  60. 60 : * Constructs a <code>FundingAccountResponse</code> from a plain JavaScript object, optionally creating a new instance.
  61. 61 : * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
  62. 62 : * @param {Object} data The plain JavaScript object bearing properties of interest.
  63. 63 : * @param {module:models/FundingAccountResponse} obj Optional instance to populate.
  64. 64 : * @return {module:models/FundingAccountResponse} The populated <code>FundingAccountResponse</code> instance.
  65. 65 : */
  66. 66 : exports.constructFromObject = function(data, obj) {
  67. 67 : if (data) {
  68. 68 : obj = obj || new exports();
  69. 69 :
  70. 70 : if (data.hasOwnProperty('account_holder_name')) {
  71. 71 : obj['account_holder_name'] = ApiClient.convertToType(data['account_holder_name'], 'String');
  72. 72 : }
  73. 73 : if (data.hasOwnProperty('nickname')) {
  74. 74 : obj['nickname'] = ApiClient.convertToType(data['nickname'], 'String');
  75. 75 : }
  76. 76 : if (data.hasOwnProperty('address')) {
  77. 77 : obj['address'] = FundingAccountAddress.constructFromObject(data['address']);
  78. 78 : }
  79. 79 : if (data.hasOwnProperty('account_number')) {
  80. 80 : obj['account_number'] = ApiClient.convertToType(data['account_number'], 'String');
  81. 81 : }
  82. 82 : if (data.hasOwnProperty('aba_routing_number')) {
  83. 83 : obj['aba_routing_number'] = ApiClient.convertToType(data['aba_routing_number'], 'String');
  84. 84 : }
  85. 85 : if (data.hasOwnProperty('issuer_name')) {
  86. 86 : obj['issuer_name'] = ApiClient.convertToType(data['issuer_name'], 'String');
  87. 87 : }
  88. 88 : if (data.hasOwnProperty('currency_code3d')) {
  89. 89 : obj['currency_code3d'] = ApiClient.convertToType(data['currency_code3d'], 'String');
  90. 90 : }
  91. 91 : if (data.hasOwnProperty('expiry_date')) {
  92. 92 : obj['expiry_date'] = ApiClient.convertToType(data['expiry_date'], 'String');
  93. 93 : }
  94. 94 : if (data.hasOwnProperty('account_holder_type')) {
  95. 95 : obj['account_holder_type'] = ApiClient.convertToType(data['account_holder_type'], 'String');
  96. 96 : }
  97. 97 : if (data.hasOwnProperty('custom_fields')) {
  98. 98 : obj['custom_fields'] = ApiClient.convertToType(data['custom_fields'], {'String': 'String'});
  99. 99 : }
  100. 100 : if (data.hasOwnProperty('account_subtype')) {
  101. 101 : obj['account_subtype'] = ApiClient.convertToType(data['account_subtype'], 'String');
  102. 102 : }
  103. 103 : if (data.hasOwnProperty('id')) {
  104. 104 : obj['id'] = ApiClient.convertToType(data['id'], 'String');
  105. 105 : }
  106. 106 : if (data.hasOwnProperty('url')) {
  107. 107 : obj['url'] = ApiClient.convertToType(data['url'], 'String');
  108. 108 : }
  109. 109 : if (data.hasOwnProperty('ach_eligible_flag')) {
  110. 110 : obj['ach_eligible_flag'] = ApiClient.convertToType(data['ach_eligible_flag'], 'String');
  111. 111 : }
  112. 112 : if (data.hasOwnProperty('atm_eligible_flag')) {
  113. 113 : obj['atm_eligible_flag'] = ApiClient.convertToType(data['atm_eligible_flag'], 'String');
  114. 114 : }
  115. 115 : if (data.hasOwnProperty('card_cvv_number')) {
  116. 116 : obj['card_cvv_number'] = ApiClient.convertToType(data['card_cvv_number'], 'String');
  117. 117 : }
  118. 118 : if (data.hasOwnProperty('account_type')) {
  119. 119 : obj['account_type'] = ApiClient.convertToType(data['account_type'], 'String');
  120. 120 : }
  121. 121 : if (data.hasOwnProperty('status')) {
  122. 122 : obj['status'] = ApiClient.convertToType(data['status'], 'String');
  123. 123 : }
  124. 124 : if (data.hasOwnProperty('display_text')) {
  125. 125 : obj['display_text'] = ApiClient.convertToType(data['display_text'], 'String');
  126. 126 : }
  127. 127 : if (data.hasOwnProperty('comments')) {
  128. 128 : obj['comments'] = ApiClient.convertToType(data['comments'], 'String');
  129. 129 : }
  130. 130 : if (data.hasOwnProperty('audit_info')) {
  131. 131 : obj['audit_info'] = AuditInfoVo.constructFromObject(data['audit_info']);
  132. 132 : }
  133. 133 : }
  134. 134 : return obj;
  135. 135 : };
  136. 136 :
  137. 137 : /**
  138. 138 : * The name as specified on the account.
  139. 139 : * @member {String} account_holder_name
  140. 140 : */
  141. 141 : exports.prototype['account_holder_name'] = undefined;
  142. 142 : /**
  143. 143 : * The nickname by which a customer might want to identify the account.
  144. 144 : * @member {String} nickname
  145. 145 : */
  146. 146 : exports.prototype['nickname'] = undefined;
  147. 147 : /**
  148. 148 : * @member {module:models/FundingAccountAddress} address
  149. 149 : */
  150. 150 : exports.prototype['address'] = undefined;
  151. 151 : /**
  152. 152 : * 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.
  153. 153 : * @member {String} account_number
  154. 154 : */
  155. 155 : exports.prototype['account_number'] = undefined;
  156. 156 : /**
  157. 157 : * The ABA/Routing number for the bank account.
  158. 158 : * @member {String} aba_routing_number
  159. 159 : */
  160. 160 : exports.prototype['aba_routing_number'] = undefined;
  161. 161 : /**
  162. 162 : * The name of the authority that has issued the account. This is relevant only in the case of bank accounts.
  163. 163 : * @member {String} issuer_name
  164. 164 : */
  165. 165 : exports.prototype['issuer_name'] = undefined;
  166. 166 : /**
  167. 167 : * The three-letter currency code in the ISO4217 format, in uppercase, for the card account. It must be a currency supported by EBPP. This defaults to USD.
  168. 168 : * @member {String} currency_code3d
  169. 169 : */
  170. 170 : exports.prototype['currency_code3d'] = undefined;
  171. 171 : /**
  172. 172 : * The expiry date for the card. This is to be in the format MM/YY.
  173. 173 : * @member {String} expiry_date
  174. 174 : */
  175. 175 : exports.prototype['expiry_date'] = undefined;
  176. 176 : /**
  177. 177 : * The type of ownership for the funding account. This is applicable only in the case of bank accounts and it is defaults to personal.
  178. 178 : * @member {module:models/FundingAccountResponse.AccountHolderTypeEnum} account_holder_type
  179. 179 : */
  180. 180 : exports.prototype['account_holder_type'] = undefined;
  181. 181 : /**
  182. 182 : * The additional information or meta-information that EBPP can accept, maintain and transmit back to the client. The custom fields need to be configured with EBPP before they can be accepted. EBPP would reject custom fields that are not pre-configured. Please contact <a href = \"mailto: support@billerpayments.com\">support@billerpayments.com</a> for more information on configuring and using custom fields. Only the custom fields enabled for the client, in EBPP, would be accepted in the requests.
  183. 183 : * @member {Object.<String, String>} custom_fields
  184. 184 : */
  185. 185 : exports.prototype['custom_fields'] = undefined;
  186. 186 : /**
  187. 187 : * 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/GooglePay/Voyager account.
  188. 188 : * @member {module:models/FundingAccountResponse.AccountSubtypeEnum} account_subtype
  189. 189 : */
  190. 190 : exports.prototype['account_subtype'] = undefined;
  191. 191 : /**
  192. 192 : * Id is a unique identifier assigned to the funding account in EBPP. A new Id is generated for the funding account when the account number is updated.
  193. 193 : * @member {String} id
  194. 194 : */
  195. 195 : exports.prototype['id'] = undefined;
  196. 196 : /**
  197. 197 : * This URL fetches the funding account details.
  198. 198 : * @member {String} url
  199. 199 : */
  200. 200 : exports.prototype['url'] = undefined;
  201. 201 : /**
  202. 202 : * Indicates if the funding account can be debited vide ACH, in case the funding account is a Demand Deposit Account (DDA).
  203. 203 : * @member {module:models/FundingAccountResponse.AchEligibleFlagEnum} ach_eligible_flag
  204. 204 : */
  205. 205 : exports.prototype['ach_eligible_flag'] = undefined;
  206. 206 : /**
  207. 207 : * Indicates if the funding account can be debited vide the ATM Rail network, in case the funding account is a Debit Card.
  208. 208 : * @member {module:models/FundingAccountResponse.AtmEligibleFlagEnum} atm_eligible_flag
  209. 209 : */
  210. 210 : exports.prototype['atm_eligible_flag'] = undefined;
  211. 211 : /**
  212. 212 : * This is never returned by EBPP. This needs to be passed to EBPP when adding or editing a card funding account.
  213. 213 : * @member {String} card_cvv_number
  214. 214 : */
  215. 215 : exports.prototype['card_cvv_number'] = undefined;
  216. 216 : /**
  217. 217 : * The type of the funding account.
  218. 218 : * @member {module:models/FundingAccountResponse.AccountTypeEnum} account_type
  219. 219 : */
  220. 220 : exports.prototype['account_type'] = undefined;
  221. 221 : /**
  222. 222 : * The status of the funding account in EBPP.
  223. 223 : * @member {module:models/FundingAccountResponse.StatusEnum} status
  224. 224 : */
  225. 225 : exports.prototype['status'] = undefined;
  226. 226 : /**
  227. 227 : * UI representation of the account.
  228. 228 : * @member {String} display_text
  229. 229 : */
  230. 230 : exports.prototype['display_text'] = undefined;
  231. 231 : /**
  232. 232 : * Comments that can be used to recollect the operation performed on the resource object. API clients need to ensure that no sensitive information is passed in the memo. Alacriti (EBPP) is not responsible for the security of any sensitive information that may be passed as part of the memo.
  233. 233 : * @member {String} comments
  234. 234 : */
  235. 235 : exports.prototype['comments'] = undefined;
  236. 236 : /**
  237. 237 : * @member {module:models/AuditInfoVo} audit_info
  238. 238 : */
  239. 239 : exports.prototype['audit_info'] = undefined;
  240. 240 :
  241. 241 :
  242. 242 : /**
  243. 243 : * Allowed values for the <code>account_holder_type</code> property.
  244. 244 : * @enum {String}
  245. 245 : * @readonly
  246. 246 : */
  247. 247 : exports.AccountHolderTypeEnum = {
  248. 248 : /**
  249. 249 : * value: "personal"
  250. 250 : * @const
  251. 251 : */
  252. 252 : "personal": "personal",
  253. 253 : /**
  254. 254 : * value: "business"
  255. 255 : * @const
  256. 256 : */
  257. 257 : "business": "business" };
  258. 258 :
  259. 259 : /**
  260. 260 : * Allowed values for the <code>account_subtype</code> property.
  261. 261 : * @enum {String}
  262. 262 : * @readonly
  263. 263 : */
  264. 264 : exports.AccountSubtypeEnum = {
  265. 265 : /**
  266. 266 : * value: "savings"
  267. 267 : * @const
  268. 268 : */
  269. 269 : "savings": "savings",
  270. 270 : /**
  271. 271 : * value: "checking"
  272. 272 : * @const
  273. 273 : */
  274. 274 : "checking": "checking",
  275. 275 : /**
  276. 276 : * value: "money_market"
  277. 277 : * @const
  278. 278 : */
  279. 279 : "money_market": "money_market",
  280. 280 : /**
  281. 281 : * value: "visa_credit"
  282. 282 : * @const
  283. 283 : */
  284. 284 : "visa_credit": "visa_credit",
  285. 285 : /**
  286. 286 : * value: "mastercard_credit"
  287. 287 : * @const
  288. 288 : */
  289. 289 : "mastercard_credit": "mastercard_credit",
  290. 290 : /**
  291. 291 : * value: "american_express_credit"
  292. 292 : * @const
  293. 293 : */
  294. 294 : "american_express_credit": "american_express_credit",
  295. 295 : /**
  296. 296 : * value: "discover_credit"
  297. 297 : * @const
  298. 298 : */
  299. 299 : "discover_credit": "discover_credit",
  300. 300 : /**
  301. 301 : * value: "visa_debit"
  302. 302 : * @const
  303. 303 : */
  304. 304 : "visa_debit": "visa_debit",
  305. 305 : /**
  306. 306 : * value: "mastercard_debit"
  307. 307 : * @const
  308. 308 : */
  309. 309 : "mastercard_debit": "mastercard_debit",
  310. 310 : /**
  311. 311 : * value: "discover_debit"
  312. 312 : * @const
  313. 313 : */
  314. 314 : "discover_debit": "discover_debit",
  315. 315 : /**
  316. 316 : * value: "apple_pay"
  317. 317 : * @const
  318. 318 : */
  319. 319 : "apple_pay": "apple_pay",
  320. 320 : /**
  321. 321 : * value: "google_pay"
  322. 322 : * @const
  323. 323 : */
  324. 324 : "google_pay": "google_pay",
  325. 325 : /**
  326. 326 : * value: "voyager_fleet"
  327. 327 : * @const
  328. 328 : */
  329. 329 : "voyager_fleet": "voyager_fleet" };
  330. 330 :
  331. 331 : /**
  332. 332 : * Allowed values for the <code>ach_eligible_flag</code> property.
  333. 333 : * @enum {String}
  334. 334 : * @readonly
  335. 335 : */
  336. 336 : exports.AchEligibleFlagEnum = {
  337. 337 : /**
  338. 338 : * value: "yes"
  339. 339 : * @const
  340. 340 : */
  341. 341 : "yes": "yes",
  342. 342 : /**
  343. 343 : * value: "no"
  344. 344 : * @const
  345. 345 : */
  346. 346 : "no": "no" };
  347. 347 :
  348. 348 : /**
  349. 349 : * Allowed values for the <code>atm_eligible_flag</code> property.
  350. 350 : * @enum {String}
  351. 351 : * @readonly
  352. 352 : */
  353. 353 : exports.AtmEligibleFlagEnum = {
  354. 354 : /**
  355. 355 : * value: "yes"
  356. 356 : * @const
  357. 357 : */
  358. 358 : "yes": "yes",
  359. 359 : /**
  360. 360 : * value: "no"
  361. 361 : * @const
  362. 362 : */
  363. 363 : "no": "no" };
  364. 364 :
  365. 365 : /**
  366. 366 : * Allowed values for the <code>account_type</code> property.
  367. 367 : * @enum {String}
  368. 368 : * @readonly
  369. 369 : */
  370. 370 : exports.AccountTypeEnum = {
  371. 371 : /**
  372. 372 : * value: "bank"
  373. 373 : * @const
  374. 374 : */
  375. 375 : "bank": "bank",
  376. 376 : /**
  377. 377 : * value: "debit_card"
  378. 378 : * @const
  379. 379 : */
  380. 380 : "debit_card": "debit_card",
  381. 381 : /**
  382. 382 : * value: "credit_card"
  383. 383 : * @const
  384. 384 : */
  385. 385 : "credit_card": "credit_card",
  386. 386 : /**
  387. 387 : * value: "wallet"
  388. 388 : * @const
  389. 389 : */
  390. 390 : "wallet": "wallet",
  391. 391 : /**
  392. 392 : * value: "closed_loop"
  393. 393 : * @const
  394. 394 : */
  395. 395 : "closed_loop": "closed_loop" };
  396. 396 :
  397. 397 : /**
  398. 398 : * Allowed values for the <code>status</code> property.
  399. 399 : * @enum {String}
  400. 400 : * @readonly
  401. 401 : */
  402. 402 : exports.StatusEnum = {
  403. 403 : /**
  404. 404 : * value: "active"
  405. 405 : * @const
  406. 406 : */
  407. 407 : "active": "active",
  408. 408 : /**
  409. 409 : * value: "inactive"
  410. 410 : * @const
  411. 411 : */
  412. 412 : "inactive": "inactive",
  413. 413 : /**
  414. 414 : * value: "frozen"
  415. 415 : * @const
  416. 416 : */
  417. 417 : "frozen": "frozen",
  418. 418 : /**
  419. 419 : * value: "unverified"
  420. 420 : * @const
  421. 421 : */
  422. 422 : "unverified": "unverified",
  423. 423 : /**
  424. 424 : * value: "unusable"
  425. 425 : * @const
  426. 426 : */
  427. 427 : "unusable": "unusable" };
  428. 428 :
  429. 429 :
  430. 430 : return exports;
  431. 431 : }));
  432. 432 :
  433. 433 :