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.
  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.
  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.
  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.
  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 : * @member {String} card_cvv_number
  152. 152 : */
  153. 153 : exports.prototype['card_cvv_number'] = undefined;
  154. 154 : /**
  155. 155 : * Comments that can be used to recollect the operation performed on the resource object.
  156. 156 : * @member {String} comments
  157. 157 : */
  158. 158 : exports.prototype['comments'] = undefined;
  159. 159 :
  160. 160 :
  161. 161 : /**
  162. 162 : * Allowed values for the <code>account_holder_type</code> property.
  163. 163 : * @enum {String}
  164. 164 : * @readonly
  165. 165 : */
  166. 166 : exports.AccountHolderTypeEnum = {
  167. 167 : /**
  168. 168 : * value: "personal"
  169. 169 : * @const
  170. 170 : */
  171. 171 : "personal": "personal",
  172. 172 : /**
  173. 173 : * value: "business"
  174. 174 : * @const
  175. 175 : */
  176. 176 : "business": "business" };
  177. 177 :
  178. 178 : /**
  179. 179 : * Allowed values for the <code>account_subtype</code> property.
  180. 180 : * @enum {String}
  181. 181 : * @readonly
  182. 182 : */
  183. 183 : exports.AccountSubtypeEnum = {
  184. 184 : /**
  185. 185 : * value: "savings"
  186. 186 : * @const
  187. 187 : */
  188. 188 : "savings": "savings",
  189. 189 : /**
  190. 190 : * value: "checking"
  191. 191 : * @const
  192. 192 : */
  193. 193 : "checking": "checking",
  194. 194 : /**
  195. 195 : * value: "money_market"
  196. 196 : * @const
  197. 197 : */
  198. 198 : "money_market": "money_market",
  199. 199 : /**
  200. 200 : * value: "visa_credit"
  201. 201 : * @const
  202. 202 : */
  203. 203 : "visa_credit": "visa_credit",
  204. 204 : /**
  205. 205 : * value: "mastercard_credit"
  206. 206 : * @const
  207. 207 : */
  208. 208 : "mastercard_credit": "mastercard_credit",
  209. 209 : /**
  210. 210 : * value: "american_express_credit"
  211. 211 : * @const
  212. 212 : */
  213. 213 : "american_express_credit": "american_express_credit",
  214. 214 : /**
  215. 215 : * value: "discover_credit"
  216. 216 : * @const
  217. 217 : */
  218. 218 : "discover_credit": "discover_credit",
  219. 219 : /**
  220. 220 : * value: "visa_debit"
  221. 221 : * @const
  222. 222 : */
  223. 223 : "visa_debit": "visa_debit",
  224. 224 : /**
  225. 225 : * value: "mastercard_debit"
  226. 226 : * @const
  227. 227 : */
  228. 228 : "mastercard_debit": "mastercard_debit",
  229. 229 : /**
  230. 230 : * value: "discover_debit"
  231. 231 : * @const
  232. 232 : */
  233. 233 : "discover_debit": "discover_debit",
  234. 234 : /**
  235. 235 : * value: "voyager_fleet"
  236. 236 : * @const
  237. 237 : */
  238. 238 : "voyager_fleet": "voyager_fleet" };
  239. 239 :
  240. 240 : /**
  241. 241 : * Allowed values for the <code>status</code> property.
  242. 242 : * @enum {String}
  243. 243 : * @readonly
  244. 244 : */
  245. 245 : exports.StatusEnum = {
  246. 246 : /**
  247. 247 : * value: "active"
  248. 248 : * @const
  249. 249 : */
  250. 250 : "active": "active",
  251. 251 : /**
  252. 252 : * value: "frozen"
  253. 253 : * @const
  254. 254 : */
  255. 255 : "frozen": "frozen",
  256. 256 : /**
  257. 257 : * value: "unverified"
  258. 258 : * @const
  259. 259 : */
  260. 260 : "unverified": "unverified",
  261. 261 : /**
  262. 262 : * value: "inactive"
  263. 263 : * @const
  264. 264 : */
  265. 265 : "inactive": "inactive" };
  266. 266 :
  267. 267 :
  268. 268 : return exports;
  269. 269 : }));
  270. 270 :
  271. 271 :