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