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 : * Constructs a <code>FundingAccountResponseCgen</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/FundingAccountResponseCgen} obj Optional instance to populate.
  64. 64 : * @return {module:models/FundingAccountResponseCgen} The populated <code>FundingAccountResponseCgen</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('comments')) {
  125. 125 : obj['comments'] = ApiClient.convertToType(data['comments'], 'String');
  126. 126 : }
  127. 127 : if (data.hasOwnProperty('deleted')) {
  128. 128 : obj['deleted'] = ApiClient.convertToType(data['deleted'], '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.
  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 Orbipay. 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. Only applicable for cards accounts.
  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/FundingAccountResponseCgen.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 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.
  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 Orbipay 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.
  188. 188 : * @member {module:models/FundingAccountResponseCgen.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 Orbipay. 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/FundingAccountResponseCgen.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/FundingAccountResponseCgen.AtmEligibleFlagEnum} atm_eligible_flag
  209. 209 : */
  210. 210 : exports.prototype['atm_eligible_flag'] = undefined;
  211. 211 : /**
  212. 212 : * This is never returned by Orbipay. This needs to be passed to Orbipay 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/FundingAccountResponseCgen.AccountTypeEnum} account_type
  219. 219 : */
  220. 220 : exports.prototype['account_type'] = undefined;
  221. 221 : /**
  222. 222 : * The status of the funding account in Orbipay.
  223. 223 : * @member {module:models/FundingAccountResponseCgen.StatusEnum} status
  224. 224 : */
  225. 225 : exports.prototype['status'] = undefined;
  226. 226 : /**
  227. 227 : * 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.
  228. 228 : * @member {String} comments
  229. 229 : */
  230. 230 : exports.prototype['comments'] = undefined;
  231. 231 : /**
  232. 232 : * The status of funding account which says whether the funding account is deleted or not
  233. 233 : * @member {String} deleted
  234. 234 : */
  235. 235 : exports.prototype['deleted'] = 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 : /**
  317. 317 : * Allowed values for the <code>ach_eligible_flag</code> property.
  318. 318 : * @enum {String}
  319. 319 : * @readonly
  320. 320 : */
  321. 321 : exports.AchEligibleFlagEnum = {
  322. 322 : /**
  323. 323 : * value: "yes"
  324. 324 : * @const
  325. 325 : */
  326. 326 : "yes": "yes",
  327. 327 : /**
  328. 328 : * value: "no"
  329. 329 : * @const
  330. 330 : */
  331. 331 : "no": "no" };
  332. 332 :
  333. 333 : /**
  334. 334 : * Allowed values for the <code>atm_eligible_flag</code> property.
  335. 335 : * @enum {String}
  336. 336 : * @readonly
  337. 337 : */
  338. 338 : exports.AtmEligibleFlagEnum = {
  339. 339 : /**
  340. 340 : * value: "yes"
  341. 341 : * @const
  342. 342 : */
  343. 343 : "yes": "yes",
  344. 344 : /**
  345. 345 : * value: "no"
  346. 346 : * @const
  347. 347 : */
  348. 348 : "no": "no" };
  349. 349 :
  350. 350 : /**
  351. 351 : * Allowed values for the <code>account_type</code> property.
  352. 352 : * @enum {String}
  353. 353 : * @readonly
  354. 354 : */
  355. 355 : exports.AccountTypeEnum = {
  356. 356 : /**
  357. 357 : * value: "bank"
  358. 358 : * @const
  359. 359 : */
  360. 360 : "bank": "bank",
  361. 361 : /**
  362. 362 : * value: "debit_card"
  363. 363 : * @const
  364. 364 : */
  365. 365 : "debit_card": "debit_card",
  366. 366 : /**
  367. 367 : * value: "credit_card"
  368. 368 : * @const
  369. 369 : */
  370. 370 : "credit_card": "credit_card" };
  371. 371 :
  372. 372 : /**
  373. 373 : * Allowed values for the <code>status</code> property.
  374. 374 : * @enum {String}
  375. 375 : * @readonly
  376. 376 : */
  377. 377 : exports.StatusEnum = {
  378. 378 : /**
  379. 379 : * value: "active"
  380. 380 : * @const
  381. 381 : */
  382. 382 : "active": "active",
  383. 383 : /**
  384. 384 : * value: "inactive"
  385. 385 : * @const
  386. 386 : */
  387. 387 : "inactive": "inactive",
  388. 388 : /**
  389. 389 : * value: "frozen"
  390. 390 : * @const
  391. 391 : */
  392. 392 : "frozen": "frozen",
  393. 393 : /**
  394. 394 : * value: "unverified"
  395. 395 : * @const
  396. 396 : */
  397. 397 : "unverified": "unverified",
  398. 398 : /**
  399. 399 : * value: "unusable"
  400. 400 : * @const
  401. 401 : */
  402. 402 : "unusable": "unusable" };
  403. 403 :
  404. 404 :
  405. 405 : return exports;
  406. 406 : }));
  407. 407 :
  408. 408 :