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.UpdateCustomerAccountRequest = 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 UpdateCustomerAccountRequest model module.
  23. 23 : * @module models/UpdateCustomerAccountRequest
  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>UpdateCustomerAccountRequest</code>.
  30. 30 : * @alias module:models/UpdateCustomerAccountRequest
  31. 31 : * @class
  32. 32 : * @param account_number {String} The number or reference that a customer uses to identify the customer's account.
  33. 33 : */
  34. 34 : var exports = function(account_number) {
  35. 35 : var _this = this;
  36. 36 :
  37. 37 :
  38. 38 :
  39. 39 :
  40. 40 :
  41. 41 : _this['account_number'] = account_number;
  42. 42 :
  43. 43 :
  44. 44 :
  45. 45 :
  46. 46 :
  47. 47 :
  48. 48 :
  49. 49 :
  50. 50 : };
  51. 51 :
  52. 52 : /**
  53. 53 : * Constructs a <code>UpdateCustomerAccountRequest</code> from a plain JavaScript object, optionally creating a new instance.
  54. 54 : * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
  55. 55 : * @param {Object} data The plain JavaScript object bearing properties of interest.
  56. 56 : * @param {module:models/UpdateCustomerAccountRequest} obj Optional instance to populate.
  57. 57 : * @return {module:models/UpdateCustomerAccountRequest} The populated <code>UpdateCustomerAccountRequest</code> instance.
  58. 58 : */
  59. 59 : exports.constructFromObject = function(data, obj) {
  60. 60 : if (data) {
  61. 61 : obj = obj || new exports();
  62. 62 :
  63. 63 : if (data.hasOwnProperty('account_holder_name')) {
  64. 64 : obj['account_holder_name'] = ApiClient.convertToType(data['account_holder_name'], 'String');
  65. 65 : }
  66. 66 : if (data.hasOwnProperty('nickname')) {
  67. 67 : obj['nickname'] = ApiClient.convertToType(data['nickname'], 'String');
  68. 68 : }
  69. 69 : if (data.hasOwnProperty('address')) {
  70. 70 : obj['address'] = AddressVo.constructFromObject(data['address']);
  71. 71 : }
  72. 72 : if (data.hasOwnProperty('customer_account_reference')) {
  73. 73 : obj['customer_account_reference'] = ApiClient.convertToType(data['customer_account_reference'], 'String');
  74. 74 : }
  75. 75 : if (data.hasOwnProperty('account_number')) {
  76. 76 : obj['account_number'] = ApiClient.convertToType(data['account_number'], 'String');
  77. 77 : }
  78. 78 : if (data.hasOwnProperty('current_balance')) {
  79. 79 : obj['current_balance'] = ApiClient.convertToType(data['current_balance'], 'String');
  80. 80 : }
  81. 81 : if (data.hasOwnProperty('current_statement_balance')) {
  82. 82 : obj['current_statement_balance'] = ApiClient.convertToType(data['current_statement_balance'], 'String');
  83. 83 : }
  84. 84 : if (data.hasOwnProperty('minimum_payment_due')) {
  85. 85 : obj['minimum_payment_due'] = ApiClient.convertToType(data['minimum_payment_due'], 'String');
  86. 86 : }
  87. 87 : if (data.hasOwnProperty('past_amount_due')) {
  88. 88 : obj['past_amount_due'] = ApiClient.convertToType(data['past_amount_due'], 'String');
  89. 89 : }
  90. 90 : if (data.hasOwnProperty('payment_due_date')) {
  91. 91 : obj['payment_due_date'] = ApiClient.convertToType(data['payment_due_date'], 'String');
  92. 92 : }
  93. 93 : if (data.hasOwnProperty('statement_date')) {
  94. 94 : obj['statement_date'] = ApiClient.convertToType(data['statement_date'], '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('status')) {
  100. 100 : obj['status'] = ApiClient.convertToType(data['status'], 'String');
  101. 101 : }
  102. 102 : }
  103. 103 : return obj;
  104. 104 : };
  105. 105 :
  106. 106 : /**
  107. 107 : * The name as specified on the account.
  108. 108 : * @member {String} account_holder_name
  109. 109 : */
  110. 110 : exports.prototype['account_holder_name'] = undefined;
  111. 111 : /**
  112. 112 : * The nickname by which a customer might want to identify the account.
  113. 113 : * @member {String} nickname
  114. 114 : */
  115. 115 : exports.prototype['nickname'] = undefined;
  116. 116 : /**
  117. 117 : * @member {module:models/AddressVo} address
  118. 118 : */
  119. 119 : exports.prototype['address'] = undefined;
  120. 120 : /**
  121. 121 : * The unique identifier in the client system for the customer account.
  122. 122 : * @member {String} customer_account_reference
  123. 123 : */
  124. 124 : exports.prototype['customer_account_reference'] = undefined;
  125. 125 : /**
  126. 126 : * The number or reference that a customer uses to identify the customer's account.
  127. 127 : * @member {String} account_number
  128. 128 : */
  129. 129 : exports.prototype['account_number'] = undefined;
  130. 130 : /**
  131. 131 : * The current balance on the customer's account with the biller.
  132. 132 : * @member {String} current_balance
  133. 133 : */
  134. 134 : exports.prototype['current_balance'] = undefined;
  135. 135 : /**
  136. 136 : * The balance on the customer’s account with the biller as reported on the last statement.
  137. 137 : * @member {String} current_statement_balance
  138. 138 : */
  139. 139 : exports.prototype['current_statement_balance'] = undefined;
  140. 140 : /**
  141. 141 : * The minimum payment amount, as specified by the biller, that needs to be made against the customer’s account.
  142. 142 : * @member {String} minimum_payment_due
  143. 143 : */
  144. 144 : exports.prototype['minimum_payment_due'] = undefined;
  145. 145 : /**
  146. 146 : * The amount that is due from the past bills/statements on the customer’s account with the biller.
  147. 147 : * @member {String} past_amount_due
  148. 148 : */
  149. 149 : exports.prototype['past_amount_due'] = undefined;
  150. 150 : /**
  151. 151 : * 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.
  152. 152 : * @member {String} payment_due_date
  153. 153 : */
  154. 154 : exports.prototype['payment_due_date'] = undefined;
  155. 155 : /**
  156. 156 : * 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.
  157. 157 : * @member {String} statement_date
  158. 158 : */
  159. 159 : exports.prototype['statement_date'] = undefined;
  160. 160 : /**
  161. 161 : * 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.
  162. 162 : * @member {Object.<String, String>} custom_fields
  163. 163 : */
  164. 164 : exports.prototype['custom_fields'] = undefined;
  165. 165 : /**
  166. 166 : * The status of the customer's account in EBPP.
  167. 167 : * @member {module:models/UpdateCustomerAccountRequest.StatusEnum} status
  168. 168 : */
  169. 169 : exports.prototype['status'] = undefined;
  170. 170 :
  171. 171 :
  172. 172 : /**
  173. 173 : * Allowed values for the <code>status</code> property.
  174. 174 : * @enum {String}
  175. 175 : * @readonly
  176. 176 : */
  177. 177 : exports.StatusEnum = {
  178. 178 : /**
  179. 179 : * value: "active"
  180. 180 : * @const
  181. 181 : */
  182. 182 : "active": "active",
  183. 183 : /**
  184. 184 : * value: "inactive"
  185. 185 : * @const
  186. 186 : */
  187. 187 : "inactive": "inactive",
  188. 188 : /**
  189. 189 : * value: "incollections"
  190. 190 : * @const
  191. 191 : */
  192. 192 : "incollections": "incollections" };
  193. 193 :
  194. 194 :
  195. 195 : return exports;
  196. 196 : }));
  197. 197 :
  198. 198 :