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', 'models/AuditInfoVo'], 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'), require('./AuditInfoVo'));
  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.CustomerAccountResponse = factory(root.OrbipayPaymentsapiClient.ApiClient, root.OrbipayPaymentsapiClient.AddressVo, root.OrbipayPaymentsapiClient.AuditInfoVo);
  14. 14 : }
  15. 15 : }(this, function(ApiClient, AddressVo, AuditInfoVo) {
  16. 16 : 'use strict';
  17. 17 :
  18. 18 :
  19. 19 :
  20. 20 :
  21. 21 : /**
  22. 22 : * The CustomerAccountResponse model module.
  23. 23 : * @module models/CustomerAccountResponse
  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>CustomerAccountResponse</code>.
  30. 30 : * @alias module:models/CustomerAccountResponse
  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 : * @param status {module:models/CustomerAccountResponse.StatusEnum} The status of the customer's account in EBPP.
  35. 35 : */
  36. 36 : var exports = function(account_holder_name, account_number, status) {
  37. 37 : var _this = this;
  38. 38 :
  39. 39 : _this['account_holder_name'] = account_holder_name;
  40. 40 :
  41. 41 :
  42. 42 :
  43. 43 : _this['account_number'] = account_number;
  44. 44 :
  45. 45 :
  46. 46 :
  47. 47 :
  48. 48 :
  49. 49 :
  50. 50 :
  51. 51 :
  52. 52 :
  53. 53 :
  54. 54 : _this['status'] = status;
  55. 55 :
  56. 56 :
  57. 57 :
  58. 58 : };
  59. 59 :
  60. 60 : /**
  61. 61 : * Constructs a <code>CustomerAccountResponse</code> from a plain JavaScript object, optionally creating a new instance.
  62. 62 : * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
  63. 63 : * @param {Object} data The plain JavaScript object bearing properties of interest.
  64. 64 : * @param {module:models/CustomerAccountResponse} obj Optional instance to populate.
  65. 65 : * @return {module:models/CustomerAccountResponse} The populated <code>CustomerAccountResponse</code> instance.
  66. 66 : */
  67. 67 : exports.constructFromObject = function(data, obj) {
  68. 68 : if (data) {
  69. 69 : obj = obj || new exports();
  70. 70 :
  71. 71 : if (data.hasOwnProperty('account_holder_name')) {
  72. 72 : obj['account_holder_name'] = ApiClient.convertToType(data['account_holder_name'], 'String');
  73. 73 : }
  74. 74 : if (data.hasOwnProperty('nickname')) {
  75. 75 : obj['nickname'] = ApiClient.convertToType(data['nickname'], 'String');
  76. 76 : }
  77. 77 : if (data.hasOwnProperty('address')) {
  78. 78 : obj['address'] = AddressVo.constructFromObject(data['address']);
  79. 79 : }
  80. 80 : if (data.hasOwnProperty('customer_account_reference')) {
  81. 81 : obj['customer_account_reference'] = ApiClient.convertToType(data['customer_account_reference'], 'String');
  82. 82 : }
  83. 83 : if (data.hasOwnProperty('account_number')) {
  84. 84 : obj['account_number'] = ApiClient.convertToType(data['account_number'], 'String');
  85. 85 : }
  86. 86 : if (data.hasOwnProperty('current_balance')) {
  87. 87 : obj['current_balance'] = ApiClient.convertToType(data['current_balance'], 'String');
  88. 88 : }
  89. 89 : if (data.hasOwnProperty('current_statement_balance')) {
  90. 90 : obj['current_statement_balance'] = ApiClient.convertToType(data['current_statement_balance'], 'String');
  91. 91 : }
  92. 92 : if (data.hasOwnProperty('minimum_payment_due')) {
  93. 93 : obj['minimum_payment_due'] = ApiClient.convertToType(data['minimum_payment_due'], 'String');
  94. 94 : }
  95. 95 : if (data.hasOwnProperty('past_amount_due')) {
  96. 96 : obj['past_amount_due'] = ApiClient.convertToType(data['past_amount_due'], 'String');
  97. 97 : }
  98. 98 : if (data.hasOwnProperty('payment_due_date')) {
  99. 99 : obj['payment_due_date'] = ApiClient.convertToType(data['payment_due_date'], 'String');
  100. 100 : }
  101. 101 : if (data.hasOwnProperty('statement_date')) {
  102. 102 : obj['statement_date'] = ApiClient.convertToType(data['statement_date'], 'String');
  103. 103 : }
  104. 104 : if (data.hasOwnProperty('payoff_amount')) {
  105. 105 : obj['payoff_amount'] = ApiClient.convertToType(data['payoff_amount'], 'String');
  106. 106 : }
  107. 107 : if (data.hasOwnProperty('payoff_expiry_date')) {
  108. 108 : obj['payoff_expiry_date'] = ApiClient.convertToType(data['payoff_expiry_date'], 'String');
  109. 109 : }
  110. 110 : if (data.hasOwnProperty('id')) {
  111. 111 : obj['id'] = ApiClient.convertToType(data['id'], 'String');
  112. 112 : }
  113. 113 : if (data.hasOwnProperty('url')) {
  114. 114 : obj['url'] = ApiClient.convertToType(data['url'], 'String');
  115. 115 : }
  116. 116 : if (data.hasOwnProperty('status')) {
  117. 117 : obj['status'] = ApiClient.convertToType(data['status'], 'String');
  118. 118 : }
  119. 119 : if (data.hasOwnProperty('custom_fields')) {
  120. 120 : obj['custom_fields'] = ApiClient.convertToType(data['custom_fields'], {'String': 'String'});
  121. 121 : }
  122. 122 : if (data.hasOwnProperty('comments')) {
  123. 123 : obj['comments'] = ApiClient.convertToType(data['comments'], 'String');
  124. 124 : }
  125. 125 : if (data.hasOwnProperty('audit_info')) {
  126. 126 : obj['audit_info'] = AuditInfoVo.constructFromObject(data['audit_info']);
  127. 127 : }
  128. 128 : }
  129. 129 : return obj;
  130. 130 : };
  131. 131 :
  132. 132 : /**
  133. 133 : * The name as specified on the account.
  134. 134 : * @member {String} account_holder_name
  135. 135 : */
  136. 136 : exports.prototype['account_holder_name'] = undefined;
  137. 137 : /**
  138. 138 : * The nickname by which a customer might want to identify the account.
  139. 139 : * @member {String} nickname
  140. 140 : */
  141. 141 : exports.prototype['nickname'] = undefined;
  142. 142 : /**
  143. 143 : * @member {module:models/AddressVo} address
  144. 144 : */
  145. 145 : exports.prototype['address'] = undefined;
  146. 146 : /**
  147. 147 : * The unique identifier in the client system for the customer account.
  148. 148 : * @member {String} customer_account_reference
  149. 149 : */
  150. 150 : exports.prototype['customer_account_reference'] = undefined;
  151. 151 : /**
  152. 152 : * The number or reference that a customer uses to identify the customer's account.
  153. 153 : * @member {String} account_number
  154. 154 : */
  155. 155 : exports.prototype['account_number'] = undefined;
  156. 156 : /**
  157. 157 : * The current balance on the customer's account with the biller.
  158. 158 : * @member {String} current_balance
  159. 159 : */
  160. 160 : exports.prototype['current_balance'] = undefined;
  161. 161 : /**
  162. 162 : * The balance on the customer’s account with the biller as reported on the last statement.
  163. 163 : * @member {String} current_statement_balance
  164. 164 : */
  165. 165 : exports.prototype['current_statement_balance'] = undefined;
  166. 166 : /**
  167. 167 : * The minimum payment amount, as specified by the biller, that needs to be made against the customer’s account.
  168. 168 : * @member {String} minimum_payment_due
  169. 169 : */
  170. 170 : exports.prototype['minimum_payment_due'] = undefined;
  171. 171 : /**
  172. 172 : * The amount that is due from the past bills/statements on the customer’s account with the biller.
  173. 173 : * @member {String} past_amount_due
  174. 174 : */
  175. 175 : exports.prototype['past_amount_due'] = undefined;
  176. 176 : /**
  177. 177 : * 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.
  178. 178 : * @member {String} payment_due_date
  179. 179 : */
  180. 180 : exports.prototype['payment_due_date'] = undefined;
  181. 181 : /**
  182. 182 : * 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.
  183. 183 : * @member {String} statement_date
  184. 184 : */
  185. 185 : exports.prototype['statement_date'] = undefined;
  186. 186 : /**
  187. 187 : * This field contains the computed current loan payoff amount at the time of inquiry for the customer’s account with the biller.
  188. 188 : * @member {String} payoff_amount
  189. 189 : */
  190. 190 : exports.prototype['payoff_amount'] = undefined;
  191. 191 : /**
  192. 192 : * 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.
  193. 193 : * @member {String} payoff_expiry_date
  194. 194 : */
  195. 195 : exports.prototype['payoff_expiry_date'] = undefined;
  196. 196 : /**
  197. 197 : * Id is a unique identifier assigned to the customer account in EBPP.
  198. 198 : * @member {String} id
  199. 199 : */
  200. 200 : exports.prototype['id'] = undefined;
  201. 201 : /**
  202. 202 : * This URL fetches the Account details.
  203. 203 : * @member {String} url
  204. 204 : */
  205. 205 : exports.prototype['url'] = undefined;
  206. 206 : /**
  207. 207 : * The status of the customer's account in EBPP.
  208. 208 : * @member {module:models/CustomerAccountResponse.StatusEnum} status
  209. 209 : */
  210. 210 : exports.prototype['status'] = undefined;
  211. 211 : /**
  212. 212 : * 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.
  213. 213 : * @member {Object.<String, String>} custom_fields
  214. 214 : */
  215. 215 : exports.prototype['custom_fields'] = undefined;
  216. 216 : /**
  217. 217 : * 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.
  218. 218 : * @member {String} comments
  219. 219 : */
  220. 220 : exports.prototype['comments'] = undefined;
  221. 221 : /**
  222. 222 : * @member {module:models/AuditInfoVo} audit_info
  223. 223 : */
  224. 224 : exports.prototype['audit_info'] = undefined;
  225. 225 :
  226. 226 :
  227. 227 : /**
  228. 228 : * Allowed values for the <code>status</code> property.
  229. 229 : * @enum {String}
  230. 230 : * @readonly
  231. 231 : */
  232. 232 : exports.StatusEnum = {
  233. 233 : /**
  234. 234 : * value: "active"
  235. 235 : * @const
  236. 236 : */
  237. 237 : "active": "active",
  238. 238 : /**
  239. 239 : * value: "inactive"
  240. 240 : * @const
  241. 241 : */
  242. 242 : "inactive": "inactive",
  243. 243 : /**
  244. 244 : * value: "incollections"
  245. 245 : * @const
  246. 246 : */
  247. 247 : "incollections": "incollections",
  248. 248 : /**
  249. 249 : * value: "inbankruptcy"
  250. 250 : * @const
  251. 251 : */
  252. 252 : "inbankruptcy": "inbankruptcy" };
  253. 253 :
  254. 254 :
  255. 255 : return exports;
  256. 256 : }));
  257. 257 :
  258. 258 :