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.SimplePaymentCustomerAccountRequest = 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 SimplePaymentCustomerAccountRequest model module.
  23. 23 : * @module models/SimplePaymentCustomerAccountRequest
  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>SimplePaymentCustomerAccountRequest</code>.
  30. 30 : * @alias module:models/SimplePaymentCustomerAccountRequest
  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 : * Constructs a <code>SimplePaymentCustomerAccountRequest</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/SimplePaymentCustomerAccountRequest} obj Optional instance to populate.
  57. 57 : * @return {module:models/SimplePaymentCustomerAccountRequest} The populated <code>SimplePaymentCustomerAccountRequest</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 : }
  100. 100 : return obj;
  101. 101 : };
  102. 102 :
  103. 103 : /**
  104. 104 : * The name as specified on the account.
  105. 105 : * @member {String} account_holder_name
  106. 106 : */
  107. 107 : exports.prototype['account_holder_name'] = undefined;
  108. 108 : /**
  109. 109 : * The nickname by which a customer might want to identify the account.
  110. 110 : * @member {String} nickname
  111. 111 : */
  112. 112 : exports.prototype['nickname'] = undefined;
  113. 113 : /**
  114. 114 : * @member {module:models/AddressVo} address
  115. 115 : */
  116. 116 : exports.prototype['address'] = undefined;
  117. 117 : /**
  118. 118 : * The unique identifier in the client system for the customer account.
  119. 119 : * @member {String} customer_account_reference
  120. 120 : */
  121. 121 : exports.prototype['customer_account_reference'] = undefined;
  122. 122 : /**
  123. 123 : * The number or reference that a customer uses to identify the customer's account.
  124. 124 : * @member {String} account_number
  125. 125 : */
  126. 126 : exports.prototype['account_number'] = undefined;
  127. 127 : /**
  128. 128 : * The current balance on the customer's account with the biller.
  129. 129 : * @member {String} current_balance
  130. 130 : */
  131. 131 : exports.prototype['current_balance'] = undefined;
  132. 132 : /**
  133. 133 : * The balance on the customer’s account with the biller as reported on the last statement.
  134. 134 : * @member {String} current_statement_balance
  135. 135 : */
  136. 136 : exports.prototype['current_statement_balance'] = undefined;
  137. 137 : /**
  138. 138 : * The minimum payment amount, as specified by the biller, that needs to be made against the customer’s account.
  139. 139 : * @member {String} minimum_payment_due
  140. 140 : */
  141. 141 : exports.prototype['minimum_payment_due'] = undefined;
  142. 142 : /**
  143. 143 : * The amount that is due from the past bills/statements on the customer’s account with the biller.
  144. 144 : * @member {String} past_amount_due
  145. 145 : */
  146. 146 : exports.prototype['past_amount_due'] = undefined;
  147. 147 : /**
  148. 148 : * 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.
  149. 149 : * @member {String} payment_due_date
  150. 150 : */
  151. 151 : exports.prototype['payment_due_date'] = undefined;
  152. 152 : /**
  153. 153 : * 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.
  154. 154 : * @member {String} statement_date
  155. 155 : */
  156. 156 : exports.prototype['statement_date'] = undefined;
  157. 157 : /**
  158. 158 : * The additional information or meta-information that EBPP can accept, maintain and transmit back to the client.
  159. 159 : * @member {Object.<String, String>} custom_fields
  160. 160 : */
  161. 161 : exports.prototype['custom_fields'] = undefined;
  162. 162 :
  163. 163 :
  164. 164 :
  165. 165 : return exports;
  166. 166 : }));
  167. 167 :
  168. 168 :