@cobo/cobo-waas2 1.16.0 → 1.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (214) hide show
  1. package/README.md +46 -6
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/PreRequestScript.js +27 -33
  4. package/dist/api/AppWorkflowsApi.js +22 -22
  5. package/dist/api/FeeStationApi.js +2 -2
  6. package/dist/api/OAuthApi.js +93 -6
  7. package/dist/api/OrganizationsApi.js +79 -0
  8. package/dist/api/PaymentApi.js +265 -55
  9. package/dist/api/TransactionsApi.js +2 -2
  10. package/dist/api/WalletsApi.js +11 -8
  11. package/dist/index.js +252 -14
  12. package/dist/model/Account.js +174 -0
  13. package/dist/model/AcquiringType.js +61 -0
  14. package/dist/model/AddressTransferDestination.js +2 -2
  15. package/dist/model/AddressesEventData.js +8 -3
  16. package/dist/model/AppWorkflow.js +7 -7
  17. package/dist/model/AppWorkflowField.js +5 -5
  18. package/dist/model/AppWorkflowPolicy.js +1 -1
  19. package/dist/model/ApprovalEntry.js +1 -1
  20. package/dist/model/ApprovalRequest.js +5 -3
  21. package/dist/model/ApprovalRequestDetail.js +2 -1
  22. package/dist/model/ApprovalUser.js +4 -4
  23. package/dist/model/BalanceUpdateInfo.js +170 -0
  24. package/dist/model/BalanceUpdateInfoEventData.js +297 -0
  25. package/dist/model/BankAccount.js +2 -2
  26. package/dist/model/ChainInfo.js +1 -1
  27. package/dist/model/ChainsEventData.js +8 -3
  28. package/dist/model/CreateApprovalRequest201Response.js +2 -1
  29. package/dist/model/CreateMerchantRequest.js +13 -0
  30. package/dist/model/CreatePaymentOrderRequest.js +14 -5
  31. package/dist/model/CreateRefundRequest.js +41 -8
  32. package/dist/model/CreateSettlement.js +28 -12
  33. package/dist/model/CreateSettlementRequestRequest.js +27 -0
  34. package/dist/model/CryptoAddress.js +171 -0
  35. package/dist/model/CustodialTransferDestination.js +137 -0
  36. package/dist/model/EstimateContractCallFeeParams.js +2 -2
  37. package/dist/model/EstimateFeeParams.js +1 -1
  38. package/dist/model/EstimatedFILFee.js +170 -0
  39. package/dist/model/EstimatedFILFeeSlow.js +186 -0
  40. package/dist/model/EstimatedFee.js +68 -12
  41. package/dist/model/EstimatedSOLFee.js +170 -0
  42. package/dist/model/EstimatedSOLFeeSlow.js +184 -0
  43. package/dist/model/ExchangePermissionToken201Response.js +122 -0
  44. package/dist/model/{CreateBankAccountRequest.js → ExchangePermissionTokenRequest.js} +30 -28
  45. package/dist/model/FILBase.js +88 -0
  46. package/dist/model/FILPrice.js +114 -0
  47. package/dist/model/FeeType.js +10 -0
  48. package/dist/model/GetExchangeRate200Response.js +2 -2
  49. package/dist/model/GraphQLError.js +135 -0
  50. package/dist/model/GraphQLErrorLocationsInner.js +92 -0
  51. package/dist/model/{TransactionMessageSignBTCEIP191Destination.js → GraphQLRequest.js} +49 -36
  52. package/dist/model/GraphQLResponse.js +119 -0
  53. package/dist/model/ListTopUpPayers200Response.js +123 -0
  54. package/dist/model/ListTopUpPayers200ResponseDataInner.js +189 -0
  55. package/dist/model/MPCVaultEventData.js +8 -3
  56. package/dist/model/Merchant.js +15 -2
  57. package/dist/model/Order.js +16 -7
  58. package/dist/model/PayerAccount.js +189 -0
  59. package/dist/model/PaymentOrderEventData.js +33 -15
  60. package/dist/model/PaymentRefundEventData.js +66 -11
  61. package/dist/model/PaymentSettlementEvent.js +14 -9
  62. package/dist/model/PayoutChannel.js +61 -0
  63. package/dist/model/PolicyAction.js +1 -1
  64. package/dist/model/PolicyActionContent.js +6 -4
  65. package/dist/model/PolicyCondition.js +5 -5
  66. package/dist/model/RefreshPermissionTokenRequest.js +110 -0
  67. package/dist/model/Refund.js +39 -4
  68. package/dist/model/RefundStatus.js +5 -0
  69. package/dist/model/RequestApproval.js +9 -9
  70. package/dist/model/RevokeApprovalRequest201Response.js +2 -1
  71. package/dist/model/RevokeApprovalRequestRequest.js +2 -2
  72. package/dist/model/SOLBase.js +101 -0
  73. package/dist/model/SOLComputeUnit.js +101 -0
  74. package/dist/model/Settlement.js +3 -3
  75. package/dist/model/SettlementDetail.js +24 -6
  76. package/dist/model/SettlementInfo.js +11 -2
  77. package/dist/model/SupportedToken.js +222 -0
  78. package/dist/model/SwapActivityDetail.js +30 -0
  79. package/dist/model/SwapActivitySigners.js +110 -0
  80. package/dist/model/SwapQuote.js +17 -4
  81. package/dist/model/SwapSingingStatus.js +71 -0
  82. package/dist/model/TSSRequestWebhookEventData.js +8 -3
  83. package/dist/model/TokenListingEventData.js +8 -3
  84. package/dist/model/TokensEventData.js +8 -3
  85. package/dist/model/TopUpAddress.js +230 -0
  86. package/dist/model/TransactionCoboCategory.js +20 -0
  87. package/dist/model/TransactionDestination.js +14 -38
  88. package/dist/model/TransactionDestinationType.js +5 -0
  89. package/dist/model/TransactionEvmCalldataInfo.js +1 -1
  90. package/dist/model/TransactionFILFee.js +229 -0
  91. package/dist/model/TransactionFee.js +107 -9
  92. package/dist/model/TransactionRequestFILFee.js +186 -0
  93. package/dist/model/TransactionRequestFee.js +89 -9
  94. package/dist/model/TransactionRequestSOLFee.js +168 -0
  95. package/dist/model/TransactionSOLFee.js +229 -0
  96. package/dist/model/TransactionTransferToAddressDestination.js +2 -2
  97. package/dist/model/TransactionTransferToWalletDestination.js +2 -2
  98. package/dist/model/TransactionWebhookEventData.js +8 -3
  99. package/dist/model/TransferDestination.js +44 -16
  100. package/dist/model/TransferDestinationType.js +5 -0
  101. package/dist/model/UpdateMerchantByIdRequest.js +13 -0
  102. package/dist/model/UpdateRefundByIdRequest.js +110 -0
  103. package/dist/model/UpdateTopUpAddress.js +141 -0
  104. package/dist/model/WalletInfoEventData.js +8 -3
  105. package/dist/model/WebhookEvent.js +2 -2
  106. package/dist/model/WebhookEventData.js +83 -13
  107. package/dist/model/WebhookEventDataType.js +7 -2
  108. package/dist/model/WebhookEventLog.js +2 -2
  109. package/dist/model/WebhookEventType.js +15 -0
  110. package/docs/Account.md +14 -0
  111. package/docs/AcquiringType.md +12 -0
  112. package/docs/AddressTransferDestination.md +2 -2
  113. package/docs/AddressesEventData.md +3 -1
  114. package/docs/AppWorkflow.md +3 -3
  115. package/docs/AppWorkflowField.md +2 -2
  116. package/docs/AppWorkflowsApi.md +12 -12
  117. package/docs/ApprovalRequest.md +2 -2
  118. package/docs/ApprovalRequestDetail.md +1 -1
  119. package/docs/ApprovalUser.md +2 -2
  120. package/docs/BalanceUpdateInfo.md +13 -0
  121. package/docs/BalanceUpdateInfoEventData.md +47 -0
  122. package/docs/BankAccount.md +2 -2
  123. package/docs/ChainInfo.md +1 -1
  124. package/docs/ChainsEventData.md +3 -1
  125. package/docs/CreateApprovalRequest201Response.md +1 -1
  126. package/docs/CreateMerchantRequest.md +1 -0
  127. package/docs/CreatePaymentOrderRequest.md +2 -1
  128. package/docs/CreateRefundRequest.md +5 -2
  129. package/docs/CreateSettlement.md +7 -6
  130. package/docs/CreateSettlementRequestRequest.md +3 -0
  131. package/docs/CryptoAddress.md +14 -0
  132. package/docs/CustodialTransferDestination.md +11 -0
  133. package/docs/EstimateContractCallFeeParams.md +1 -1
  134. package/docs/EstimateFeeParams.md +1 -1
  135. package/docs/EstimatedFILFee.md +13 -0
  136. package/docs/EstimatedFILFeeSlow.md +12 -0
  137. package/docs/EstimatedFee.md +3 -3
  138. package/docs/EstimatedSOLFee.md +13 -0
  139. package/docs/EstimatedSOLFeeSlow.md +12 -0
  140. package/docs/ExchangePermissionToken201Response.md +12 -0
  141. package/docs/ExchangePermissionTokenRequest.md +9 -0
  142. package/docs/FILBase.md +9 -0
  143. package/docs/FILPrice.md +11 -0
  144. package/docs/FeeStationApi.md +1 -1
  145. package/docs/FeeType.md +4 -0
  146. package/docs/GetExchangeRate200Response.md +1 -1
  147. package/docs/GraphQLError.md +11 -0
  148. package/docs/GraphQLErrorLocationsInner.md +10 -0
  149. package/docs/GraphQLRequest.md +11 -0
  150. package/docs/GraphQLResponse.md +10 -0
  151. package/docs/ListTopUpPayers200Response.md +10 -0
  152. package/docs/ListTopUpPayers200ResponseDataInner.md +14 -0
  153. package/docs/MPCVaultEventData.md +3 -1
  154. package/docs/Merchant.md +3 -2
  155. package/docs/OAuthApi.md +102 -0
  156. package/docs/Order.md +6 -5
  157. package/docs/OrganizationsApi.md +55 -0
  158. package/docs/PayerAccount.md +14 -0
  159. package/docs/PaymentApi.md +247 -29
  160. package/docs/PaymentOrderEventData.md +9 -6
  161. package/docs/PaymentRefundEventData.md +10 -5
  162. package/docs/PaymentSettlementEvent.md +6 -4
  163. package/docs/PayoutChannel.md +12 -0
  164. package/docs/PolicyActionContent.md +4 -4
  165. package/docs/PolicyCondition.md +2 -2
  166. package/docs/RefreshPermissionTokenRequest.md +9 -0
  167. package/docs/Refund.md +7 -4
  168. package/docs/RefundStatus.md +2 -0
  169. package/docs/RequestApproval.md +4 -4
  170. package/docs/RevokeApprovalRequest201Response.md +1 -1
  171. package/docs/RevokeApprovalRequestRequest.md +1 -1
  172. package/docs/SOLBase.md +10 -0
  173. package/docs/SOLComputeUnit.md +10 -0
  174. package/docs/Settlement.md +3 -3
  175. package/docs/SettlementDetail.md +8 -6
  176. package/docs/SettlementInfo.md +3 -2
  177. package/docs/SupportedToken.md +17 -0
  178. package/docs/SwapActivityDetail.md +1 -0
  179. package/docs/SwapActivitySigners.md +11 -0
  180. package/docs/SwapQuote.md +3 -2
  181. package/docs/SwapSingingStatus.md +16 -0
  182. package/docs/TSSRequestWebhookEventData.md +3 -1
  183. package/docs/TokenListingEventData.md +3 -1
  184. package/docs/TokensEventData.md +3 -1
  185. package/docs/TopUpAddress.md +18 -0
  186. package/docs/TransactionCoboCategory.md +8 -0
  187. package/docs/TransactionDestination.md +2 -2
  188. package/docs/TransactionDestinationType.md +2 -0
  189. package/docs/TransactionEvmCalldataInfo.md +1 -1
  190. package/docs/TransactionFILFee.md +16 -0
  191. package/docs/TransactionFee.md +8 -1
  192. package/docs/TransactionRequestFILFee.md +13 -0
  193. package/docs/TransactionRequestFee.md +5 -1
  194. package/docs/TransactionRequestSOLFee.md +12 -0
  195. package/docs/TransactionSOLFee.md +16 -0
  196. package/docs/TransactionTransferToAddressDestination.md +2 -2
  197. package/docs/TransactionTransferToWalletDestination.md +1 -1
  198. package/docs/TransactionWebhookEventData.md +3 -1
  199. package/docs/TransactionsApi.md +1 -1
  200. package/docs/TransferDestination.md +3 -3
  201. package/docs/TransferDestinationType.md +2 -0
  202. package/docs/UpdateMerchantByIdRequest.md +1 -0
  203. package/docs/UpdateRefundByIdRequest.md +9 -0
  204. package/docs/UpdateTopUpAddress.md +11 -0
  205. package/docs/WalletInfoEventData.md +3 -1
  206. package/docs/WalletsApi.md +6 -4
  207. package/docs/WebhookEvent.md +1 -1
  208. package/docs/WebhookEventData.md +14 -5
  209. package/docs/WebhookEventDataType.md +3 -1
  210. package/docs/WebhookEventLog.md +1 -1
  211. package/docs/WebhookEventType.md +6 -0
  212. package/package.json +1 -1
  213. package/docs/CreateBankAccountRequest.md +0 -9
  214. package/docs/TransactionMessageSignBTCEIP191Destination.md +0 -10
@@ -0,0 +1,189 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _PaymentTransaction = _interopRequireDefault(require("./PaymentTransaction"));
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
11
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
12
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
13
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
14
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
15
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
16
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
17
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
19
+ * Cobo Wallet as a Service 2.0
20
+ *
21
+ * Contact: help@cobo.com
22
+ *
23
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
24
+ * https://openapi-generator.tech
25
+ * Do not edit the class manually.
26
+ *
27
+ */
28
+ /**
29
+ * The ListTopUpPayers200ResponseDataInner model module.
30
+ * @module model/ListTopUpPayers200ResponseDataInner
31
+ */
32
+ var ListTopUpPayers200ResponseDataInner = /*#__PURE__*/function () {
33
+ /**
34
+ * Constructs a new <code>ListTopUpPayers200ResponseDataInner</code>.
35
+ * @alias module:model/ListTopUpPayers200ResponseDataInner
36
+ * @param merchant_id {String} The merchant ID.
37
+ * @param payer_id {String} A unique identifier assigned by Cobo to track and identify individual payers.
38
+ * @param developer_fee_rate {String} The developer fee rate applied to top-up transactions made by this payer. Expressed as a decimal string where \"0.1\" represents 10%.
39
+ */
40
+ function ListTopUpPayers200ResponseDataInner(merchant_id, payer_id, developer_fee_rate) {
41
+ _classCallCheck(this, ListTopUpPayers200ResponseDataInner);
42
+ ListTopUpPayers200ResponseDataInner.initialize(this, merchant_id, payer_id, developer_fee_rate);
43
+ }
44
+
45
+ /**
46
+ * Initializes the fields of this object.
47
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
48
+ * Only for internal use.
49
+ */
50
+ return _createClass(ListTopUpPayers200ResponseDataInner, null, [{
51
+ key: "initialize",
52
+ value: function initialize(obj, merchant_id, payer_id, developer_fee_rate) {
53
+ obj['merchant_id'] = merchant_id;
54
+ obj['payer_id'] = payer_id;
55
+ obj['developer_fee_rate'] = developer_fee_rate;
56
+ }
57
+
58
+ /**
59
+ * Constructs a <code>ListTopUpPayers200ResponseDataInner</code> from a plain JavaScript object, optionally creating a new instance.
60
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
61
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
62
+ * @param {module:model/ListTopUpPayers200ResponseDataInner} obj Optional instance to populate.
63
+ * @return {module:model/ListTopUpPayers200ResponseDataInner} The populated <code>ListTopUpPayers200ResponseDataInner</code> instance.
64
+ */
65
+ }, {
66
+ key: "constructFromObject",
67
+ value: function constructFromObject(data, obj) {
68
+ if (data) {
69
+ obj = obj || new ListTopUpPayers200ResponseDataInner();
70
+ if (data.hasOwnProperty('merchant_id')) {
71
+ obj['merchant_id'] = _ApiClient["default"].convertToType(data['merchant_id'], 'String');
72
+ }
73
+ if (data.hasOwnProperty('payer_id')) {
74
+ obj['payer_id'] = _ApiClient["default"].convertToType(data['payer_id'], 'String');
75
+ }
76
+ if (data.hasOwnProperty('developer_fee_rate')) {
77
+ obj['developer_fee_rate'] = _ApiClient["default"].convertToType(data['developer_fee_rate'], 'String');
78
+ }
79
+ if (data.hasOwnProperty('created_timestamp')) {
80
+ obj['created_timestamp'] = _ApiClient["default"].convertToType(data['created_timestamp'], 'Number');
81
+ }
82
+ if (data.hasOwnProperty('updated_timestamp')) {
83
+ obj['updated_timestamp'] = _ApiClient["default"].convertToType(data['updated_timestamp'], 'Number');
84
+ }
85
+ if (data.hasOwnProperty('transactions')) {
86
+ obj['transactions'] = _ApiClient["default"].convertToType(data['transactions'], [_PaymentTransaction["default"]]);
87
+ }
88
+ }
89
+ return obj;
90
+ }
91
+
92
+ /**
93
+ * Validates the JSON data with respect to <code>ListTopUpPayers200ResponseDataInner</code>.
94
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
95
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>ListTopUpPayers200ResponseDataInner</code>.
96
+ */
97
+ }, {
98
+ key: "validateJSON",
99
+ value: function validateJSON(data) {
100
+ // check to make sure all required properties are present in the JSON string
101
+ var _iterator = _createForOfIteratorHelper(ListTopUpPayers200ResponseDataInner.RequiredProperties),
102
+ _step;
103
+ try {
104
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
105
+ var property = _step.value;
106
+ if (!data.hasOwnProperty(property)) {
107
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
108
+ }
109
+ }
110
+ // ensure the json data is a string
111
+ } catch (err) {
112
+ _iterator.e(err);
113
+ } finally {
114
+ _iterator.f();
115
+ }
116
+ if (data['merchant_id'] && !(typeof data['merchant_id'] === 'string' || data['merchant_id'] instanceof String)) {
117
+ throw new Error("Expected the field `merchant_id` to be a primitive type in the JSON string but got " + data['merchant_id']);
118
+ }
119
+ // ensure the json data is a string
120
+ if (data['payer_id'] && !(typeof data['payer_id'] === 'string' || data['payer_id'] instanceof String)) {
121
+ throw new Error("Expected the field `payer_id` to be a primitive type in the JSON string but got " + data['payer_id']);
122
+ }
123
+ // ensure the json data is a string
124
+ if (data['developer_fee_rate'] && !(typeof data['developer_fee_rate'] === 'string' || data['developer_fee_rate'] instanceof String)) {
125
+ throw new Error("Expected the field `developer_fee_rate` to be a primitive type in the JSON string but got " + data['developer_fee_rate']);
126
+ }
127
+ if (data['transactions']) {
128
+ // data not null
129
+ // ensure the json data is an array
130
+ if (!Array.isArray(data['transactions'])) {
131
+ throw new Error("Expected the field `transactions` to be an array in the JSON data but got " + data['transactions']);
132
+ }
133
+ // validate the optional field `transactions` (array)
134
+ var _iterator2 = _createForOfIteratorHelper(data['transactions']),
135
+ _step2;
136
+ try {
137
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
138
+ var item = _step2.value;
139
+ _PaymentTransaction["default"].validateJSON(item);
140
+ }
141
+ } catch (err) {
142
+ _iterator2.e(err);
143
+ } finally {
144
+ _iterator2.f();
145
+ }
146
+ ;
147
+ }
148
+ return true;
149
+ }
150
+ }]);
151
+ }();
152
+ ListTopUpPayers200ResponseDataInner.RequiredProperties = ["merchant_id", "payer_id", "developer_fee_rate"];
153
+
154
+ /**
155
+ * The merchant ID.
156
+ * @member {String} merchant_id
157
+ */
158
+ ListTopUpPayers200ResponseDataInner.prototype['merchant_id'] = undefined;
159
+
160
+ /**
161
+ * A unique identifier assigned by Cobo to track and identify individual payers.
162
+ * @member {String} payer_id
163
+ */
164
+ ListTopUpPayers200ResponseDataInner.prototype['payer_id'] = undefined;
165
+
166
+ /**
167
+ * The developer fee rate applied to top-up transactions made by this payer. Expressed as a decimal string where \"0.1\" represents 10%.
168
+ * @member {String} developer_fee_rate
169
+ */
170
+ ListTopUpPayers200ResponseDataInner.prototype['developer_fee_rate'] = undefined;
171
+
172
+ /**
173
+ * The creation time of the payer, represented as a UNIX timestamp in seconds.
174
+ * @member {Number} created_timestamp
175
+ */
176
+ ListTopUpPayers200ResponseDataInner.prototype['created_timestamp'] = undefined;
177
+
178
+ /**
179
+ * The last update time of the payer, represented as a UNIX timestamp in seconds.
180
+ * @member {Number} updated_timestamp
181
+ */
182
+ ListTopUpPayers200ResponseDataInner.prototype['updated_timestamp'] = undefined;
183
+
184
+ /**
185
+ * An array of top-up transactions associated with this payer.
186
+ * @member {Array.<module:model/PaymentTransaction>} transactions
187
+ */
188
+ ListTopUpPayers200ResponseDataInner.prototype['transactions'] = undefined;
189
+ var _default = exports["default"] = ListTopUpPayers200ResponseDataInner;
@@ -38,7 +38,7 @@ var MPCVaultEventData = /*#__PURE__*/function () {
38
38
  * @alias module:model/MPCVaultEventData
39
39
  * @implements module:model/WebhookEventDataType
40
40
  * @implements module:model/MPCVault
41
- * @param data_type {module:model/MPCVaultEventData.DataTypeEnum} The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data.
41
+ * @param data_type {module:model/MPCVaultEventData.DataTypeEnum} The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `BalanceUpdateInfo`: The balance update event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data.
42
42
  */
43
43
  function MPCVaultEventData(data_type) {
44
44
  _classCallCheck(this, MPCVaultEventData);
@@ -164,7 +164,7 @@ var MPCVaultEventData = /*#__PURE__*/function () {
164
164
  MPCVaultEventData.RequiredProperties = ["data_type"];
165
165
 
166
166
  /**
167
- * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data.
167
+ * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `BalanceUpdateInfo`: The balance update event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data.
168
168
  * @member {module:model/MPCVaultEventData.DataTypeEnum} data_type
169
169
  */
170
170
  MPCVaultEventData.prototype['data_type'] = undefined;
@@ -205,7 +205,7 @@ MPCVaultEventData.prototype['created_timestamp'] = undefined;
205
205
 
206
206
  // Implement WebhookEventDataType interface:
207
207
  /**
208
- * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data.
208
+ * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `BalanceUpdateInfo`: The balance update event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data.
209
209
  * @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
210
210
  */
211
211
  _WebhookEventDataType["default"].prototype['data_type'] = undefined;
@@ -285,6 +285,11 @@ MPCVaultEventData['DataTypeEnum'] = {
285
285
  * @const
286
286
  */
287
287
  "TokenListing": "TokenListing",
288
+ /**
289
+ * value: "BalanceUpdateInfo"
290
+ * @const
291
+ */
292
+ "BalanceUpdateInfo": "BalanceUpdateInfo",
288
293
  /**
289
294
  * value: "PaymentOrder"
290
295
  * @const
@@ -75,6 +75,9 @@ var Merchant = /*#__PURE__*/function () {
75
75
  if (data.hasOwnProperty('wallet_id')) {
76
76
  obj['wallet_id'] = _ApiClient["default"].convertToType(data['wallet_id'], 'String');
77
77
  }
78
+ if (data.hasOwnProperty('developer_fee_rate')) {
79
+ obj['developer_fee_rate'] = _ApiClient["default"].convertToType(data['developer_fee_rate'], 'String');
80
+ }
78
81
  if (data.hasOwnProperty('created_timestamp')) {
79
82
  obj['created_timestamp'] = _ApiClient["default"].convertToType(data['created_timestamp'], 'Number');
80
83
  }
@@ -120,6 +123,10 @@ var Merchant = /*#__PURE__*/function () {
120
123
  if (data['wallet_id'] && !(typeof data['wallet_id'] === 'string' || data['wallet_id'] instanceof String)) {
121
124
  throw new Error("Expected the field `wallet_id` to be a primitive type in the JSON string but got " + data['wallet_id']);
122
125
  }
126
+ // ensure the json data is a string
127
+ if (data['developer_fee_rate'] && !(typeof data['developer_fee_rate'] === 'string' || data['developer_fee_rate'] instanceof String)) {
128
+ throw new Error("Expected the field `developer_fee_rate` to be a primitive type in the JSON string but got " + data['developer_fee_rate']);
129
+ }
123
130
  return true;
124
131
  }
125
132
  }]);
@@ -145,13 +152,19 @@ Merchant.prototype['name'] = undefined;
145
152
  Merchant.prototype['wallet_id'] = undefined;
146
153
 
147
154
  /**
148
- * The created time of the merchant, represented as a UNIX timestamp in seconds.
155
+ * The developer fee rate applied to this merchant. Expressed as a string in decimal format where \"0.1\" represents 10%. This fee is deducted from the payment amount and only applies to top-up transactions.
156
+ * @member {String} developer_fee_rate
157
+ */
158
+ Merchant.prototype['developer_fee_rate'] = undefined;
159
+
160
+ /**
161
+ * The creation time of the merchant, represented as a UNIX timestamp in seconds.
149
162
  * @member {Number} created_timestamp
150
163
  */
151
164
  Merchant.prototype['created_timestamp'] = undefined;
152
165
 
153
166
  /**
154
- * The updated time of the merchant, represented as a UNIX timestamp in seconds.
167
+ * The last update time of the merchant, represented as a UNIX timestamp in seconds.
155
168
  * @member {Number} updated_timestamp
156
169
  */
157
170
  Merchant.prototype['updated_timestamp'] = undefined;
@@ -7,6 +7,7 @@ exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
8
  var _OrderStatus = _interopRequireDefault(require("./OrderStatus"));
9
9
  var _PaymentTransaction = _interopRequireDefault(require("./PaymentTransaction"));
10
+ var _SettleStatus = _interopRequireDefault(require("./SettleStatus"));
10
11
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
11
12
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
12
13
  function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
@@ -35,8 +36,8 @@ var Order = /*#__PURE__*/function () {
35
36
  * Constructs a new <code>Order</code>.
36
37
  * @alias module:model/Order
37
38
  * @param order_id {String} The order ID.
38
- * @param token_id {String} The ID of the cryptocurrency used for payment.
39
- * @param chain_id {String} The ID of the blockchain network where the payment transaction should be made.
39
+ * @param token_id {String} The ID of the cryptocurrency used for payment. Supported tokens: - USDC: `ETH_USDC`, `ARBITRUM_USDC`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
40
+ * @param chain_id {String} The ID of the blockchain network where the payment transaction should be made. Supported chains: - USDC: `ETH`, `ARBITRUM`, `SOL`, `BASE`, `MATIC`, `BSC` - USDT: `TRON`, `ETH`, `ARBITRUM`, `SOL`, `BASE`, `MATIC`, `BSC`
40
41
  * @param payable_amount {String} The cryptocurrency amount to be paid for this order.
41
42
  * @param receive_address {String} The recipient wallet address to be used for the payment transaction.
42
43
  * @param currency {String} The fiat currency of the order.
@@ -140,6 +141,9 @@ var Order = /*#__PURE__*/function () {
140
141
  if (data.hasOwnProperty('transactions')) {
141
142
  obj['transactions'] = _ApiClient["default"].convertToType(data['transactions'], [_PaymentTransaction["default"]]);
142
143
  }
144
+ if (data.hasOwnProperty('settlement_status')) {
145
+ obj['settlement_status'] = _SettleStatus["default"].constructFromObject(data['settlement_status']);
146
+ }
143
147
  }
144
148
  return obj;
145
149
  }
@@ -259,13 +263,13 @@ Order.prototype['order_id'] = undefined;
259
263
  Order.prototype['merchant_id'] = undefined;
260
264
 
261
265
  /**
262
- * The ID of the cryptocurrency used for payment.
266
+ * The ID of the cryptocurrency used for payment. Supported tokens: - USDC: `ETH_USDC`, `ARBITRUM_USDC`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
263
267
  * @member {String} token_id
264
268
  */
265
269
  Order.prototype['token_id'] = undefined;
266
270
 
267
271
  /**
268
- * The ID of the blockchain network where the payment transaction should be made.
272
+ * The ID of the blockchain network where the payment transaction should be made. Supported chains: - USDC: `ETH`, `ARBITRUM`, `SOL`, `BASE`, `MATIC`, `BSC` - USDT: `TRON`, `ETH`, `ARBITRUM`, `SOL`, `BASE`, `MATIC`, `BSC`
269
273
  * @member {String} chain_id
270
274
  */
271
275
  Order.prototype['chain_id'] = undefined;
@@ -336,20 +340,25 @@ Order.prototype['status'] = undefined;
336
340
  Order.prototype['received_token_amount'] = undefined;
337
341
 
338
342
  /**
339
- * The created time of the order, represented as a UNIX timestamp in seconds.
343
+ * The creation time of the order, represented as a UNIX timestamp in seconds.
340
344
  * @member {Number} created_timestamp
341
345
  */
342
346
  Order.prototype['created_timestamp'] = undefined;
343
347
 
344
348
  /**
345
- * The updated time of the order, represented as a UNIX timestamp in seconds.
349
+ * The last update time of the order, represented as a UNIX timestamp in seconds.
346
350
  * @member {Number} updated_timestamp
347
351
  */
348
352
  Order.prototype['updated_timestamp'] = undefined;
349
353
 
350
354
  /**
351
- * An array of transactions associated with this pay-in order. Each transaction represents a separate blockchain operation related to the settlement process.
355
+ * An array of transactions associated with this pay-in order. Each transaction represents a separate blockchain operation related to the pay-in process.
352
356
  * @member {Array.<module:model/PaymentTransaction>} transactions
353
357
  */
354
358
  Order.prototype['transactions'] = undefined;
359
+
360
+ /**
361
+ * @member {module:model/SettleStatus} settlement_status
362
+ */
363
+ Order.prototype['settlement_status'] = undefined;
355
364
  var _default = exports["default"] = Order;
@@ -0,0 +1,189 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _Account = _interopRequireDefault(require("./Account"));
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
11
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
12
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
13
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
14
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
15
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
16
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
17
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
19
+ * Cobo Wallet as a Service 2.0
20
+ *
21
+ * Contact: help@cobo.com
22
+ *
23
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
24
+ * https://openapi-generator.tech
25
+ * Do not edit the class manually.
26
+ *
27
+ */
28
+ /**
29
+ * The PayerAccount model module.
30
+ * @module model/PayerAccount
31
+ */
32
+ var PayerAccount = /*#__PURE__*/function () {
33
+ /**
34
+ * Constructs a new <code>PayerAccount</code>.
35
+ * @alias module:model/PayerAccount
36
+ * @param merchant_id {String} The merchant ID.
37
+ * @param payer_id {String} A unique identifier assigned by Cobo to track and identify individual payers.
38
+ * @param developer_fee_rate {String} The developer fee rate applied to the top-up transactions made by the payer. Expressed as a decimal string where \"0.1\" represents 10%.
39
+ */
40
+ function PayerAccount(merchant_id, payer_id, developer_fee_rate) {
41
+ _classCallCheck(this, PayerAccount);
42
+ PayerAccount.initialize(this, merchant_id, payer_id, developer_fee_rate);
43
+ }
44
+
45
+ /**
46
+ * Initializes the fields of this object.
47
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
48
+ * Only for internal use.
49
+ */
50
+ return _createClass(PayerAccount, null, [{
51
+ key: "initialize",
52
+ value: function initialize(obj, merchant_id, payer_id, developer_fee_rate) {
53
+ obj['merchant_id'] = merchant_id;
54
+ obj['payer_id'] = payer_id;
55
+ obj['developer_fee_rate'] = developer_fee_rate;
56
+ }
57
+
58
+ /**
59
+ * Constructs a <code>PayerAccount</code> from a plain JavaScript object, optionally creating a new instance.
60
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
61
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
62
+ * @param {module:model/PayerAccount} obj Optional instance to populate.
63
+ * @return {module:model/PayerAccount} The populated <code>PayerAccount</code> instance.
64
+ */
65
+ }, {
66
+ key: "constructFromObject",
67
+ value: function constructFromObject(data, obj) {
68
+ if (data) {
69
+ obj = obj || new PayerAccount();
70
+ if (data.hasOwnProperty('merchant_id')) {
71
+ obj['merchant_id'] = _ApiClient["default"].convertToType(data['merchant_id'], 'String');
72
+ }
73
+ if (data.hasOwnProperty('payer_id')) {
74
+ obj['payer_id'] = _ApiClient["default"].convertToType(data['payer_id'], 'String');
75
+ }
76
+ if (data.hasOwnProperty('developer_fee_rate')) {
77
+ obj['developer_fee_rate'] = _ApiClient["default"].convertToType(data['developer_fee_rate'], 'String');
78
+ }
79
+ if (data.hasOwnProperty('created_timestamp')) {
80
+ obj['created_timestamp'] = _ApiClient["default"].convertToType(data['created_timestamp'], 'Number');
81
+ }
82
+ if (data.hasOwnProperty('updated_timestamp')) {
83
+ obj['updated_timestamp'] = _ApiClient["default"].convertToType(data['updated_timestamp'], 'Number');
84
+ }
85
+ if (data.hasOwnProperty('accounts')) {
86
+ obj['accounts'] = _ApiClient["default"].convertToType(data['accounts'], [_Account["default"]]);
87
+ }
88
+ }
89
+ return obj;
90
+ }
91
+
92
+ /**
93
+ * Validates the JSON data with respect to <code>PayerAccount</code>.
94
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
95
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>PayerAccount</code>.
96
+ */
97
+ }, {
98
+ key: "validateJSON",
99
+ value: function validateJSON(data) {
100
+ // check to make sure all required properties are present in the JSON string
101
+ var _iterator = _createForOfIteratorHelper(PayerAccount.RequiredProperties),
102
+ _step;
103
+ try {
104
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
105
+ var property = _step.value;
106
+ if (!data.hasOwnProperty(property)) {
107
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
108
+ }
109
+ }
110
+ // ensure the json data is a string
111
+ } catch (err) {
112
+ _iterator.e(err);
113
+ } finally {
114
+ _iterator.f();
115
+ }
116
+ if (data['merchant_id'] && !(typeof data['merchant_id'] === 'string' || data['merchant_id'] instanceof String)) {
117
+ throw new Error("Expected the field `merchant_id` to be a primitive type in the JSON string but got " + data['merchant_id']);
118
+ }
119
+ // ensure the json data is a string
120
+ if (data['payer_id'] && !(typeof data['payer_id'] === 'string' || data['payer_id'] instanceof String)) {
121
+ throw new Error("Expected the field `payer_id` to be a primitive type in the JSON string but got " + data['payer_id']);
122
+ }
123
+ // ensure the json data is a string
124
+ if (data['developer_fee_rate'] && !(typeof data['developer_fee_rate'] === 'string' || data['developer_fee_rate'] instanceof String)) {
125
+ throw new Error("Expected the field `developer_fee_rate` to be a primitive type in the JSON string but got " + data['developer_fee_rate']);
126
+ }
127
+ if (data['accounts']) {
128
+ // data not null
129
+ // ensure the json data is an array
130
+ if (!Array.isArray(data['accounts'])) {
131
+ throw new Error("Expected the field `accounts` to be an array in the JSON data but got " + data['accounts']);
132
+ }
133
+ // validate the optional field `accounts` (array)
134
+ var _iterator2 = _createForOfIteratorHelper(data['accounts']),
135
+ _step2;
136
+ try {
137
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
138
+ var item = _step2.value;
139
+ _Account["default"].validateJSON(item);
140
+ }
141
+ } catch (err) {
142
+ _iterator2.e(err);
143
+ } finally {
144
+ _iterator2.f();
145
+ }
146
+ ;
147
+ }
148
+ return true;
149
+ }
150
+ }]);
151
+ }();
152
+ PayerAccount.RequiredProperties = ["merchant_id", "payer_id", "developer_fee_rate"];
153
+
154
+ /**
155
+ * The merchant ID.
156
+ * @member {String} merchant_id
157
+ */
158
+ PayerAccount.prototype['merchant_id'] = undefined;
159
+
160
+ /**
161
+ * A unique identifier assigned by Cobo to track and identify individual payers.
162
+ * @member {String} payer_id
163
+ */
164
+ PayerAccount.prototype['payer_id'] = undefined;
165
+
166
+ /**
167
+ * The developer fee rate applied to the top-up transactions made by the payer. Expressed as a decimal string where \"0.1\" represents 10%.
168
+ * @member {String} developer_fee_rate
169
+ */
170
+ PayerAccount.prototype['developer_fee_rate'] = undefined;
171
+
172
+ /**
173
+ * The creation time of the payer, represented as a UNIX timestamp in seconds.
174
+ * @member {Number} created_timestamp
175
+ */
176
+ PayerAccount.prototype['created_timestamp'] = undefined;
177
+
178
+ /**
179
+ * The last update time of the payer, represented as a UNIX timestamp in seconds.
180
+ * @member {Number} updated_timestamp
181
+ */
182
+ PayerAccount.prototype['updated_timestamp'] = undefined;
183
+
184
+ /**
185
+ * An array of accounts associated with this payer.
186
+ * @member {Array.<module:model/Account>} accounts
187
+ */
188
+ PayerAccount.prototype['accounts'] = undefined;
189
+ var _default = exports["default"] = PayerAccount;