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/AddressVo'], 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('./AddressVo'));
  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.CreateCustomerAccountRequest = factory(root.OrbipayPaymentsapiClient.ApiClient, root.OrbipayPaymentsapiClient.AddressVo);
  14. 14 : }
  15. 15 : }(this, function(ApiClient, AddressVo) {
  16. 16 : 'use strict';
  17. 17 :
  18. 18 :
  19. 19 :
  20. 20 :
  21. 21 : /**
  22. 22 : * The CreateCustomerAccountRequest model module.
  23. 23 : * @module models/CreateCustomerAccountRequest
  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>CreateCustomerAccountRequest</code>.
  30. 30 : * @alias module:models/CreateCustomerAccountRequest
  31. 31 : * @class
  32. 32 : * @param account_holder_name {String} The name as specified on the account.
  33. 33 : * @param account_number {String} The number or reference that a customer uses to identify the customer's account.
  34. 34 : */
  35. 35 : var exports = function(account_holder_name, account_number) {
  36. 36 : var _this = this;
  37. 37 :
  38. 38 : _this['account_holder_name'] = account_holder_name;
  39. 39 :
  40. 40 :
  41. 41 :
  42. 42 : _this['account_number'] = account_number;
  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 : * Constructs a <code>CreateCustomerAccountRequest</code> from a plain JavaScript object, optionally creating a new instance.
  57. 57 : * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
  58. 58 : * @param {Object} data The plain JavaScript object bearing properties of interest.
  59. 59 : * @param {module:models/CreateCustomerAccountRequest} obj Optional instance to populate.
  60. 60 : * @return {module:models/CreateCustomerAccountRequest} The populated <code>CreateCustomerAccountRequest</code> instance.
  61. 61 : */
  62. 62 : exports.constructFromObject = function(data, obj) {
  63. 63 : if (data) {
  64. 64 : obj = obj || new exports();
  65. 65 :
  66. 66 : if (data.hasOwnProperty('account_holder_name')) {
  67. 67 : obj['account_holder_name'] = ApiClient.convertToType(data['account_holder_name'], 'String');
  68. 68 : }
  69. 69 : if (data.hasOwnProperty('nickname')) {
  70. 70 : obj['nickname'] = ApiClient.convertToType(data['nickname'], 'String');
  71. 71 : }
  72. 72 : if (data.hasOwnProperty('address')) {
  73. 73 : obj['address'] = AddressVo.constructFromObject(data['address']);
  74. 74 : }
  75. 75 : if (data.hasOwnProperty('customer_account_reference')) {
  76. 76 : obj['customer_account_reference'] = ApiClient.convertToType(data['customer_account_reference'], 'String');
  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('current_balance')) {
  82. 82 : obj['current_balance'] = ApiClient.convertToType(data['current_balance'], 'String');
  83. 83 : }
  84. 84 : if (data.hasOwnProperty('current_statement_balance')) {
  85. 85 : obj['current_statement_balance'] = ApiClient.convertToType(data['current_statement_balance'], 'String');
  86. 86 : }
  87. 87 : if (data.hasOwnProperty('minimum_payment_due')) {
  88. 88 : obj['minimum_payment_due'] = ApiClient.convertToType(data['minimum_payment_due'], 'String');
  89. 89 : }
  90. 90 : if (data.hasOwnProperty('past_amount_due')) {
  91. 91 : obj['past_amount_due'] = ApiClient.convertToType(data['past_amount_due'], 'String');
  92. 92 : }
  93. 93 : if (data.hasOwnProperty('payment_due_date')) {
  94. 94 : obj['payment_due_date'] = ApiClient.convertToType(data['payment_due_date'], 'String');
  95. 95 : }
  96. 96 : if (data.hasOwnProperty('statement_date')) {
  97. 97 : obj['statement_date'] = ApiClient.convertToType(data['statement_date'], 'String');
  98. 98 : }
  99. 99 : if (data.hasOwnProperty('payoff_amount')) {
  100. 100 : obj['payoff_amount'] = ApiClient.convertToType(data['payoff_amount'], 'String');
  101. 101 : }
  102. 102 : if (data.hasOwnProperty('payoff_expiry_date')) {
  103. 103 : obj['payoff_expiry_date'] = ApiClient.convertToType(data['payoff_expiry_date'], 'String');
  104. 104 : }
  105. 105 : if (data.hasOwnProperty('status')) {
  106. 106 : obj['status'] = ApiClient.convertToType(data['status'], 'String');
  107. 107 : }
  108. 108 : if (data.hasOwnProperty('custom_fields')) {
  109. 109 : obj['custom_fields'] = ApiClient.convertToType(data['custom_fields'], {'String': 'String'});
  110. 110 : }
  111. 111 : }
  112. 112 : return obj;
  113. 113 : };
  114. 114 :
  115. 115 : /**
  116. 116 : * The name as specified on the account.
  117. 117 : * @member {String} account_holder_name
  118. 118 : */
  119. 119 : exports.prototype['account_holder_name'] = undefined;
  120. 120 : /**
  121. 121 : * The nickname by which a customer might want to identify the account.
  122. 122 : * @member {String} nickname
  123. 123 : */
  124. 124 : exports.prototype['nickname'] = undefined;
  125. 125 : /**
  126. 126 : * @member {module:models/AddressVo} address
  127. 127 : */
  128. 128 : exports.prototype['address'] = undefined;
  129. 129 : /**
  130. 130 : * The unique identifier in the client system for the customer account.
  131. 131 : * @member {String} customer_account_reference
  132. 132 : */
  133. 133 : exports.prototype['customer_account_reference'] = undefined;
  134. 134 : /**
  135. 135 : * The number or reference that a customer uses to identify the customer's account.
  136. 136 : * @member {String} account_number
  137. 137 : */
  138. 138 : exports.prototype['account_number'] = undefined;
  139. 139 : /**
  140. 140 : * The current balance on the customer's account with the biller.
  141. 141 : * @member {String} current_balance
  142. 142 : */
  143. 143 : exports.prototype['current_balance'] = undefined;
  144. 144 : /**
  145. 145 : * The balance on the customer’s account with the biller as reported on the last statement.
  146. 146 : * @member {String} current_statement_balance
  147. 147 : */
  148. 148 : exports.prototype['current_statement_balance'] = undefined;
  149. 149 : /**
  150. 150 : * The minimum payment amount, as specified by the biller, that needs to be made against the customer’s account.
  151. 151 : * @member {String} minimum_payment_due
  152. 152 : */
  153. 153 : exports.prototype['minimum_payment_due'] = undefined;
  154. 154 : /**
  155. 155 : * The amount that is due from the past bills/statements on the customer’s account with the biller.
  156. 156 : * @member {String} past_amount_due
  157. 157 : */
  158. 158 : exports.prototype['past_amount_due'] = undefined;
  159. 159 : /**
  160. 160 : * The date by which the customer needs to clear the dues against the customer's account with the biller. It must be in ISO8601 full-date format, namely, YYYY-MM-DD.
  161. 161 : * @member {String} payment_due_date
  162. 162 : */
  163. 163 : exports.prototype['payment_due_date'] = undefined;
  164. 164 : /**
  165. 165 : * The date on which the biller generates the statement for the customer's account. It must be in ISO8601 full-date format, namely, YYYY-MM-DD.
  166. 166 : * @member {String} statement_date
  167. 167 : */
  168. 168 : exports.prototype['statement_date'] = undefined;
  169. 169 : /**
  170. 170 : * This field contains the computed current loan payoff amount at the time of inquiry for the customer’s account with the biller.
  171. 171 : * @member {String} payoff_amount
  172. 172 : */
  173. 173 : exports.prototype['payoff_amount'] = undefined;
  174. 174 : /**
  175. 175 : * The date till the payoff_amount is valid for the customer’s account with the biller. It must be in ISO8601 full-date format, namely, YYYY-MM-DD.
  176. 176 : * @member {String} payoff_expiry_date
  177. 177 : */
  178. 178 : exports.prototype['payoff_expiry_date'] = undefined;
  179. 179 : /**
  180. 180 : * The status of the customer's account in EBPP and it is defaults to active.
  181. 181 : * @member {module:models/CreateCustomerAccountRequest.StatusEnum} status
  182. 182 : */
  183. 183 : exports.prototype['status'] = undefined;
  184. 184 : /**
  185. 185 : * The additional information or meta-information that EBPP can accept, maintain and transmit back to the client.
  186. 186 : * @member {Object.<String, String>} custom_fields
  187. 187 : */
  188. 188 : exports.prototype['custom_fields'] = undefined;
  189. 189 :
  190. 190 :
  191. 191 : /**
  192. 192 : * Allowed values for the <code>status</code> property.
  193. 193 : * @enum {String}
  194. 194 : * @readonly
  195. 195 : */
  196. 196 : exports.StatusEnum = {
  197. 197 : /**
  198. 198 : * value: "active"
  199. 199 : * @const
  200. 200 : */
  201. 201 : "active": "active",
  202. 202 : /**
  203. 203 : * value: "inactive"
  204. 204 : * @const
  205. 205 : */
  206. 206 : "inactive": "inactive",
  207. 207 : /**
  208. 208 : * value: "incollections"
  209. 209 : * @const
  210. 210 : */
  211. 211 : "incollections": "incollections",
  212. 212 : /**
  213. 213 : * value: "inbankruptcy"
  214. 214 : * @const
  215. 215 : */
  216. 216 : "inbankruptcy": "inbankruptcy" };
  217. 217 :
  218. 218 :
  219. 219 : return exports;
  220. 220 : }));
  221. 221 :
  222. 222 :