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