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/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('./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.UpdateFundingAccountRequest = factory(root.OrbipayPaymentsapiClient.ApiClient, root.OrbipayPaymentsapiClient.FundingAccountAddress);
  14. 14 : }
  15. 15 : }(this, function(ApiClient, FundingAccountAddress) {
  16. 16 : 'use strict';
  17. 17 :
  18. 18 :
  19. 19 :
  20. 20 :
  21. 21 : /**
  22. 22 : * The UpdateFundingAccountRequest model module.
  23. 23 : * @module models/UpdateFundingAccountRequest
  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>UpdateFundingAccountRequest</code>.
  30. 30 : * @alias module:models/UpdateFundingAccountRequest
  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 : * Constructs a <code>UpdateFundingAccountRequest</code> from a plain JavaScript object, optionally creating a new instance.
  52. 52 : * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
  53. 53 : * @param {Object} data The plain JavaScript object bearing properties of interest.
  54. 54 : * @param {module:models/UpdateFundingAccountRequest} obj Optional instance to populate.
  55. 55 : * @return {module:models/UpdateFundingAccountRequest} The populated <code>UpdateFundingAccountRequest</code> instance.
  56. 56 : */
  57. 57 : exports.constructFromObject = function(data, obj) {
  58. 58 : if (data) {
  59. 59 : obj = obj || new exports();
  60. 60 :
  61. 61 : if (data.hasOwnProperty('account_holder_name')) {
  62. 62 : obj['account_holder_name'] = ApiClient.convertToType(data['account_holder_name'], 'String');
  63. 63 : }
  64. 64 : if (data.hasOwnProperty('nickname')) {
  65. 65 : obj['nickname'] = ApiClient.convertToType(data['nickname'], 'String');
  66. 66 : }
  67. 67 : if (data.hasOwnProperty('address')) {
  68. 68 : obj['address'] = FundingAccountAddress.constructFromObject(data['address']);
  69. 69 : }
  70. 70 : if (data.hasOwnProperty('account_number')) {
  71. 71 : obj['account_number'] = ApiClient.convertToType(data['account_number'], 'String');
  72. 72 : }
  73. 73 : if (data.hasOwnProperty('aba_routing_number')) {
  74. 74 : obj['aba_routing_number'] = ApiClient.convertToType(data['aba_routing_number'], 'String');
  75. 75 : }
  76. 76 : if (data.hasOwnProperty('expiry_date')) {
  77. 77 : obj['expiry_date'] = ApiClient.convertToType(data['expiry_date'], 'String');
  78. 78 : }
  79. 79 : if (data.hasOwnProperty('account_holder_type')) {
  80. 80 : obj['account_holder_type'] = ApiClient.convertToType(data['account_holder_type'], 'String');
  81. 81 : }
  82. 82 : if (data.hasOwnProperty('custom_fields')) {
  83. 83 : obj['custom_fields'] = ApiClient.convertToType(data['custom_fields'], {'String': 'String'});
  84. 84 : }
  85. 85 : if (data.hasOwnProperty('account_subtype')) {
  86. 86 : obj['account_subtype'] = ApiClient.convertToType(data['account_subtype'], 'String');
  87. 87 : }
  88. 88 : if (data.hasOwnProperty('status')) {
  89. 89 : obj['status'] = ApiClient.convertToType(data['status'], 'String');
  90. 90 : }
  91. 91 : if (data.hasOwnProperty('card_cvv_number')) {
  92. 92 : obj['card_cvv_number'] = ApiClient.convertToType(data['card_cvv_number'], 'String');
  93. 93 : }
  94. 94 : if (data.hasOwnProperty('comments')) {
  95. 95 : obj['comments'] = ApiClient.convertToType(data['comments'], 'String');
  96. 96 : }
  97. 97 : }
  98. 98 : return obj;
  99. 99 : };
  100. 100 :
  101. 101 : /**
  102. 102 : * The name as specified on the account.
  103. 103 : * @member {String} account_holder_name
  104. 104 : */
  105. 105 : exports.prototype['account_holder_name'] = undefined;
  106. 106 : /**
  107. 107 : * The nickname by which a customer might want to identify the account.
  108. 108 : * @member {String} nickname
  109. 109 : */
  110. 110 : exports.prototype['nickname'] = undefined;
  111. 111 : /**
  112. 112 : * @member {module:models/FundingAccountAddress} address
  113. 113 : */
  114. 114 : exports.prototype['address'] = undefined;
  115. 115 : /**
  116. 116 : * The number or reference that a customer uses to identify the funding account.
  117. 117 : * @member {String} account_number
  118. 118 : */
  119. 119 : exports.prototype['account_number'] = undefined;
  120. 120 : /**
  121. 121 : * The ABA/Routing number for the bank account.
  122. 122 : * @member {String} aba_routing_number
  123. 123 : */
  124. 124 : exports.prototype['aba_routing_number'] = undefined;
  125. 125 : /**
  126. 126 : * The expiry date for the card. This is to be in the format MM/YY. Only applicable for cards accounts.
  127. 127 : * @member {String} expiry_date
  128. 128 : */
  129. 129 : exports.prototype['expiry_date'] = undefined;
  130. 130 : /**
  131. 131 : * The type of ownership for the funding account. This is applicable only in the case of bank accounts and it is defaults to personal.
  132. 132 : * @member {module:models/UpdateFundingAccountRequest.AccountHolderTypeEnum} account_holder_type
  133. 133 : */
  134. 134 : exports.prototype['account_holder_type'] = undefined;
  135. 135 : /**
  136. 136 : * 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.
  137. 137 : * @member {Object.<String, String>} custom_fields
  138. 138 : */
  139. 139 : exports.prototype['custom_fields'] = undefined;
  140. 140 : /**
  141. 141 : * 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.
  142. 142 : * @member {module:models/UpdateFundingAccountRequest.AccountSubtypeEnum} account_subtype
  143. 143 : */
  144. 144 : exports.prototype['account_subtype'] = undefined;
  145. 145 : /**
  146. 146 : * The status of the funding account in EBPP.
  147. 147 : * @member {module:models/UpdateFundingAccountRequest.StatusEnum} status
  148. 148 : */
  149. 149 : exports.prototype['status'] = undefined;
  150. 150 : /**
  151. 151 : * This is never returned by EBPP. This needs to be passed to EBPP when adding or editing a card funding account.
  152. 152 : * @member {String} card_cvv_number
  153. 153 : */
  154. 154 : exports.prototype['card_cvv_number'] = undefined;
  155. 155 : /**
  156. 156 : * 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.
  157. 157 : * @member {String} comments
  158. 158 : */
  159. 159 : exports.prototype['comments'] = undefined;
  160. 160 :
  161. 161 :
  162. 162 : /**
  163. 163 : * Allowed values for the <code>account_holder_type</code> property.
  164. 164 : * @enum {String}
  165. 165 : * @readonly
  166. 166 : */
  167. 167 : exports.AccountHolderTypeEnum = {
  168. 168 : /**
  169. 169 : * value: "personal"
  170. 170 : * @const
  171. 171 : */
  172. 172 : "personal": "personal",
  173. 173 : /**
  174. 174 : * value: "business"
  175. 175 : * @const
  176. 176 : */
  177. 177 : "business": "business" };
  178. 178 :
  179. 179 : /**
  180. 180 : * Allowed values for the <code>account_subtype</code> property.
  181. 181 : * @enum {String}
  182. 182 : * @readonly
  183. 183 : */
  184. 184 : exports.AccountSubtypeEnum = {
  185. 185 : /**
  186. 186 : * value: "savings"
  187. 187 : * @const
  188. 188 : */
  189. 189 : "savings": "savings",
  190. 190 : /**
  191. 191 : * value: "checking"
  192. 192 : * @const
  193. 193 : */
  194. 194 : "checking": "checking",
  195. 195 : /**
  196. 196 : * value: "money_market"
  197. 197 : * @const
  198. 198 : */
  199. 199 : "money_market": "money_market",
  200. 200 : /**
  201. 201 : * value: "visa_credit"
  202. 202 : * @const
  203. 203 : */
  204. 204 : "visa_credit": "visa_credit",
  205. 205 : /**
  206. 206 : * value: "mastercard_credit"
  207. 207 : * @const
  208. 208 : */
  209. 209 : "mastercard_credit": "mastercard_credit",
  210. 210 : /**
  211. 211 : * value: "american_express_credit"
  212. 212 : * @const
  213. 213 : */
  214. 214 : "american_express_credit": "american_express_credit",
  215. 215 : /**
  216. 216 : * value: "discover_credit"
  217. 217 : * @const
  218. 218 : */
  219. 219 : "discover_credit": "discover_credit",
  220. 220 : /**
  221. 221 : * value: "visa_debit"
  222. 222 : * @const
  223. 223 : */
  224. 224 : "visa_debit": "visa_debit",
  225. 225 : /**
  226. 226 : * value: "mastercard_debit"
  227. 227 : * @const
  228. 228 : */
  229. 229 : "mastercard_debit": "mastercard_debit",
  230. 230 : /**
  231. 231 : * value: "discover_debit"
  232. 232 : * @const
  233. 233 : */
  234. 234 : "discover_debit": "discover_debit" };
  235. 235 :
  236. 236 : /**
  237. 237 : * Allowed values for the <code>status</code> property.
  238. 238 : * @enum {String}
  239. 239 : * @readonly
  240. 240 : */
  241. 241 : exports.StatusEnum = {
  242. 242 : /**
  243. 243 : * value: "active"
  244. 244 : * @const
  245. 245 : */
  246. 246 : "active": "active",
  247. 247 : /**
  248. 248 : * value: "frozen"
  249. 249 : * @const
  250. 250 : */
  251. 251 : "frozen": "frozen",
  252. 252 : /**
  253. 253 : * value: "unverified"
  254. 254 : * @const
  255. 255 : */
  256. 256 : "unverified": "unverified",
  257. 257 : /**
  258. 258 : * value: "inactive"
  259. 259 : * @const
  260. 260 : */
  261. 261 : "inactive": "inactive",
  262. 262 : /**
  263. 263 : * value: "deleted"
  264. 264 : * @const
  265. 265 : */
  266. 266 : "deleted": "deleted" };
  267. 267 :
  268. 268 :
  269. 269 : return exports;
  270. 270 : }));
  271. 271 :
  272. 272 :