@cobo/cobo-waas2 1.30.0 → 1.32.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 (105) hide show
  1. package/README.md +9 -36
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/api/AutoSweepApi.js +4 -4
  4. package/dist/api/FeeStationApi.js +4 -4
  5. package/dist/api/PaymentApi.js +76 -929
  6. package/dist/api/TransactionsApi.js +4 -4
  7. package/dist/api/WalletsApi.js +83 -0
  8. package/dist/index.js +35 -105
  9. package/dist/model/Balance.js +14 -0
  10. package/dist/model/BridgingFee.js +9 -0
  11. package/dist/model/ContractCallParams.js +16 -0
  12. package/dist/model/CreateDestinationBankAccount.js +26 -0
  13. package/dist/model/CreatePaymentOrderRequest.js +4 -3
  14. package/dist/model/CreateTopUpAddresses.js +2 -2
  15. package/dist/model/CreateWalletAddress.js +2 -2
  16. package/dist/model/DestinationBankAccount.js +26 -0
  17. package/dist/model/DestinationBankAccountDetail.js +26 -0
  18. package/dist/model/IntermediaryBankInfo.js +4 -6
  19. package/dist/model/MerchantBalance.js +4 -6
  20. package/dist/model/PaymentBridgeStatus.js +61 -0
  21. package/dist/model/PaymentBulkSendItem.js +9 -9
  22. package/dist/model/PaymentPayout.js +35 -4
  23. package/dist/model/PaymentPayoutDetail.js +49 -13
  24. package/dist/model/PaymentPayoutEvent.js +49 -13
  25. package/dist/model/PreCheck.js +89 -0
  26. package/dist/model/ReportType.js +5 -0
  27. package/dist/model/SkipCheckType.js +56 -0
  28. package/dist/model/SupportedToken.js +17 -17
  29. package/dist/model/TransactionDepositToAddressDestinationTxInfo.js +26 -0
  30. package/dist/model/TransactionRawTxInfo.js +32 -1
  31. package/dist/model/TransactionSelectedUtxo.js +39 -0
  32. package/dist/model/TransactionUtxoChange.js +13 -0
  33. package/dist/model/TransferParams.js +16 -0
  34. package/dist/model/TriggerTestPaymentWebhookEventResponse.js +83 -0
  35. package/dist/model/{QueryDestinationWhitelistEnabled200Response.js → TriggerTestPaymentsWebhookEventRequest.js} +35 -26
  36. package/dist/model/UTXO.js +48 -0
  37. package/dist/model/UpdateDestinationBankAccount.js +26 -0
  38. package/dist/model/WebhookEventData.js +6 -0
  39. package/dist/model/WebhookEventType.js +25 -0
  40. package/docs/AutoSweepApi.md +2 -2
  41. package/docs/Balance.md +1 -0
  42. package/docs/BridgingFee.md +1 -0
  43. package/docs/ContractCallParams.md +1 -0
  44. package/docs/CreateDestinationBankAccount.md +2 -0
  45. package/docs/CreatePaymentOrderRequest.md +2 -2
  46. package/docs/CreateTopUpAddresses.md +1 -1
  47. package/docs/CreateWalletAddress.md +1 -1
  48. package/docs/DestinationBankAccount.md +2 -0
  49. package/docs/DestinationBankAccountDetail.md +2 -0
  50. package/docs/FeeStationApi.md +2 -2
  51. package/docs/IntermediaryBankInfo.md +1 -1
  52. package/docs/MerchantBalance.md +1 -1
  53. package/docs/PaymentApi.md +185 -1153
  54. package/docs/PaymentBridgeStatus.md +12 -0
  55. package/docs/PaymentBulkSendItem.md +5 -5
  56. package/docs/PaymentPayout.md +2 -1
  57. package/docs/PaymentPayoutDetail.md +2 -1
  58. package/docs/PaymentPayoutEvent.md +2 -1
  59. package/docs/PreCheck.md +9 -0
  60. package/docs/ReportType.md +2 -0
  61. package/docs/SkipCheckType.md +10 -0
  62. package/docs/SupportedToken.md +10 -10
  63. package/docs/TransactionDepositToAddressDestinationTxInfo.md +2 -0
  64. package/docs/TransactionRawTxInfo.md +2 -1
  65. package/docs/TransactionSelectedUtxo.md +3 -0
  66. package/docs/TransactionUtxoChange.md +1 -0
  67. package/docs/TransactionsApi.md +2 -2
  68. package/docs/TransferParams.md +1 -0
  69. package/docs/TriggerTestPaymentWebhookEventResponse.md +9 -0
  70. package/docs/TriggerTestPaymentsWebhookEventRequest.md +10 -0
  71. package/docs/UTXO.md +4 -0
  72. package/docs/UpdateDestinationBankAccount.md +2 -0
  73. package/docs/WalletsApi.md +71 -0
  74. package/docs/WebhookEventData.md +1 -0
  75. package/docs/WebhookEventType.md +10 -0
  76. package/package.json +1 -1
  77. package/dist/model/CreateCounterpartyWalletAddressRequest.js +0 -140
  78. package/dist/model/CreateDestinationBankAccountRequest.js +0 -272
  79. package/dist/model/CreateDestinationWalletAddressRequest.js +0 -140
  80. package/dist/model/DeleteCounterparty200Response.js +0 -110
  81. package/dist/model/DeleteCounterpartyWalletAddress200Response.js +0 -110
  82. package/dist/model/DeleteDestination200Response.js +0 -110
  83. package/dist/model/DeleteDestinationBankAccount200Response.js +0 -110
  84. package/dist/model/DeleteDestinationWalletAddress200Response.js +0 -110
  85. package/dist/model/EnableDestinationWhitelistRequest.js +0 -106
  86. package/dist/model/ListCounterpartyWalletAddress200Response.js +0 -123
  87. package/dist/model/ListDestinationBankAccounts200Response.js +0 -123
  88. package/dist/model/ListDestinationWalletAddresses200Response.js +0 -123
  89. package/dist/model/UpdateCounterpartyByIdRequest.js +0 -160
  90. package/dist/model/UpdateDestinationByIdRequest.js +0 -173
  91. package/docs/CreateCounterpartyWalletAddressRequest.md +0 -11
  92. package/docs/CreateDestinationBankAccountRequest.md +0 -20
  93. package/docs/CreateDestinationWalletAddressRequest.md +0 -11
  94. package/docs/DeleteCounterparty200Response.md +0 -9
  95. package/docs/DeleteCounterpartyWalletAddress200Response.md +0 -9
  96. package/docs/DeleteDestination200Response.md +0 -9
  97. package/docs/DeleteDestinationBankAccount200Response.md +0 -9
  98. package/docs/DeleteDestinationWalletAddress200Response.md +0 -9
  99. package/docs/EnableDestinationWhitelistRequest.md +0 -9
  100. package/docs/ListCounterpartyWalletAddress200Response.md +0 -10
  101. package/docs/ListDestinationBankAccounts200Response.md +0 -10
  102. package/docs/ListDestinationWalletAddresses200Response.md +0 -10
  103. package/docs/QueryDestinationWhitelistEnabled200Response.md +0 -9
  104. package/docs/UpdateCounterpartyByIdRequest.md +0 -13
  105. package/docs/UpdateDestinationByIdRequest.md +0 -14
@@ -34,7 +34,7 @@ var CreateTopUpAddresses = /*#__PURE__*/function () {
34
34
  * The request body to batch create top-up addresses.
35
35
  * @alias module:model/CreateTopUpAddresses
36
36
  * @param token_id {String} The token ID, which identifies the cryptocurrency.
37
- * @param custom_payer_ids {Array.<String>} A list of unique custom payer IDs required to create top-up addresses. The maximum number of items is 50.
37
+ * @param custom_payer_ids {Array.<String>} A list of unique custom payer IDs required to create top-up addresses.
38
38
  */
39
39
  function CreateTopUpAddresses(token_id, custom_payer_ids) {
40
40
  _classCallCheck(this, CreateTopUpAddresses);
@@ -132,7 +132,7 @@ CreateTopUpAddresses.prototype['merchant_id'] = undefined;
132
132
  CreateTopUpAddresses.prototype['token_id'] = undefined;
133
133
 
134
134
  /**
135
- * A list of unique custom payer IDs required to create top-up addresses. The maximum number of items is 50.
135
+ * A list of unique custom payer IDs required to create top-up addresses.
136
136
  * @member {Array.<String>} custom_payer_ids
137
137
  */
138
138
  CreateTopUpAddresses.prototype['custom_payer_ids'] = undefined;
@@ -33,7 +33,7 @@ var CreateWalletAddress = /*#__PURE__*/function () {
33
33
  * Constructs a new <code>CreateWalletAddress</code>.
34
34
  * @alias module:model/CreateWalletAddress
35
35
  * @param address {String} The wallet address.
36
- * @param chain_id {String} The chain ID of the address.
36
+ * @param chain_id {String} The chain ID of the cryptocurrency. Supported values in the development environment: - Counterparty: `ARBITRUM_ETH`, `BASE_ETH`, `BSC_BNB`, `ETH`, `TRON`, `MATIC`, `SOL`, `TTRON`, `SOLDEV_SOL`, `SETH` - Destination: `All EVM Networks`, `SOL`, `TRON`, `TTRON`, `SOLDEV_SOL` Supported values in the production environment: - Counterparty: `ARBITRUM_ETH`, `BASE_ETH`, `BSC_BNB`, `ETH`, `TRON`, `MATIC`, `SOL` - Destination: `All EVM Networks`, `SOL`, `TRON`
37
37
  */
38
38
  function CreateWalletAddress(address, chain_id) {
39
39
  _classCallCheck(this, CreateWalletAddress);
@@ -118,7 +118,7 @@ CreateWalletAddress.RequiredProperties = ["address", "chain_id"];
118
118
  CreateWalletAddress.prototype['address'] = undefined;
119
119
 
120
120
  /**
121
- * The chain ID of the address.
121
+ * The chain ID of the cryptocurrency. Supported values in the development environment: - Counterparty: `ARBITRUM_ETH`, `BASE_ETH`, `BSC_BNB`, `ETH`, `TRON`, `MATIC`, `SOL`, `TTRON`, `SOLDEV_SOL`, `SETH` - Destination: `All EVM Networks`, `SOL`, `TRON`, `TTRON`, `SOLDEV_SOL` Supported values in the production environment: - Counterparty: `ARBITRUM_ETH`, `BASE_ETH`, `BSC_BNB`, `ETH`, `TRON`, `MATIC`, `SOL` - Destination: `All EVM Networks`, `SOL`, `TRON`
122
122
  * @member {String} chain_id
123
123
  */
124
124
  CreateWalletAddress.prototype['chain_id'] = undefined;
@@ -127,6 +127,12 @@ var DestinationBankAccount = /*#__PURE__*/function () {
127
127
  if (data.hasOwnProperty('updated_timestamp')) {
128
128
  obj['updated_timestamp'] = _ApiClient["default"].convertToType(data['updated_timestamp'], 'Number');
129
129
  }
130
+ if (data.hasOwnProperty('country')) {
131
+ obj['country'] = _ApiClient["default"].convertToType(data['country'], 'String');
132
+ }
133
+ if (data.hasOwnProperty('city')) {
134
+ obj['city'] = _ApiClient["default"].convertToType(data['city'], 'String');
135
+ }
130
136
  }
131
137
  return obj;
132
138
  }
@@ -205,6 +211,14 @@ var DestinationBankAccount = /*#__PURE__*/function () {
205
211
  _IntermediaryBankInfo["default"].validateJSON(data['intermediary_bank_info']);
206
212
  }
207
213
  }
214
+ // ensure the json data is a string
215
+ if (data['country'] && !(typeof data['country'] === 'string' || data['country'] instanceof String)) {
216
+ throw new Error("Expected the field `country` to be a primitive type in the JSON string but got " + data['country']);
217
+ }
218
+ // ensure the json data is a string
219
+ if (data['city'] && !(typeof data['city'] === 'string' || data['city'] instanceof String)) {
220
+ throw new Error("Expected the field `city` to be a primitive type in the JSON string but got " + data['city']);
221
+ }
208
222
  return true;
209
223
  }
210
224
  }]);
@@ -298,4 +312,16 @@ DestinationBankAccount.prototype['created_timestamp'] = undefined;
298
312
  * @member {Number} updated_timestamp
299
313
  */
300
314
  DestinationBankAccount.prototype['updated_timestamp'] = undefined;
315
+
316
+ /**
317
+ * Beneficiary's country, in ISO 3166-1 alpha-3 format.
318
+ * @member {String} country
319
+ */
320
+ DestinationBankAccount.prototype['country'] = undefined;
321
+
322
+ /**
323
+ * Beneficiary's city.
324
+ * @member {String} city
325
+ */
326
+ DestinationBankAccount.prototype['city'] = undefined;
301
327
  var _default = exports["default"] = DestinationBankAccount;
@@ -149,6 +149,12 @@ var DestinationBankAccountDetail = /*#__PURE__*/function () {
149
149
  if (data.hasOwnProperty('bank_account_status')) {
150
150
  obj['bank_account_status'] = _BankAccountStatus["default"].constructFromObject(data['bank_account_status']);
151
151
  }
152
+ if (data.hasOwnProperty('country')) {
153
+ obj['country'] = _ApiClient["default"].convertToType(data['country'], 'String');
154
+ }
155
+ if (data.hasOwnProperty('city')) {
156
+ obj['city'] = _ApiClient["default"].convertToType(data['city'], 'String');
157
+ }
152
158
  if (data.hasOwnProperty('created_timestamp')) {
153
159
  obj['created_timestamp'] = _ApiClient["default"].convertToType(data['created_timestamp'], 'Number');
154
160
  }
@@ -257,6 +263,14 @@ var DestinationBankAccountDetail = /*#__PURE__*/function () {
257
263
  _IntermediaryBankInfo["default"].validateJSON(data['intermediary_bank_info']);
258
264
  }
259
265
  }
266
+ // ensure the json data is a string
267
+ if (data['country'] && !(typeof data['country'] === 'string' || data['country'] instanceof String)) {
268
+ throw new Error("Expected the field `country` to be a primitive type in the JSON string but got " + data['country']);
269
+ }
270
+ // ensure the json data is a string
271
+ if (data['city'] && !(typeof data['city'] === 'string' || data['city'] instanceof String)) {
272
+ throw new Error("Expected the field `city` to be a primitive type in the JSON string but got " + data['city']);
273
+ }
260
274
  return true;
261
275
  }
262
276
  }]);
@@ -380,6 +394,18 @@ DestinationBankAccountDetail.prototype['intermediary_bank_info'] = undefined;
380
394
  */
381
395
  DestinationBankAccountDetail.prototype['bank_account_status'] = undefined;
382
396
 
397
+ /**
398
+ * Beneficiary's country, in ISO 3166-1 alpha-3 format.
399
+ * @member {String} country
400
+ */
401
+ DestinationBankAccountDetail.prototype['country'] = undefined;
402
+
403
+ /**
404
+ * Beneficiary's city.
405
+ * @member {String} city
406
+ */
407
+ DestinationBankAccountDetail.prototype['city'] = undefined;
408
+
383
409
  /**
384
410
  * The created time of the bank account, represented as a UNIX timestamp in seconds.
385
411
  * @member {Number} created_timestamp
@@ -33,12 +33,11 @@ var IntermediaryBankInfo = /*#__PURE__*/function () {
33
33
  * Constructs a new <code>IntermediaryBankInfo</code>.
34
34
  * @alias module:model/IntermediaryBankInfo
35
35
  * @param bank_name {String} The name of the intermediary bank.
36
- * @param bank_address {String} The address of the intermediary bank.
37
36
  * @param bank_swift_code {String} The SWIFT or BIC code of the intermediary bank.
38
37
  */
39
- function IntermediaryBankInfo(bank_name, bank_address, bank_swift_code) {
38
+ function IntermediaryBankInfo(bank_name, bank_swift_code) {
40
39
  _classCallCheck(this, IntermediaryBankInfo);
41
- IntermediaryBankInfo.initialize(this, bank_name, bank_address, bank_swift_code);
40
+ IntermediaryBankInfo.initialize(this, bank_name, bank_swift_code);
42
41
  }
43
42
 
44
43
  /**
@@ -48,9 +47,8 @@ var IntermediaryBankInfo = /*#__PURE__*/function () {
48
47
  */
49
48
  return _createClass(IntermediaryBankInfo, null, [{
50
49
  key: "initialize",
51
- value: function initialize(obj, bank_name, bank_address, bank_swift_code) {
50
+ value: function initialize(obj, bank_name, bank_swift_code) {
52
51
  obj['bank_name'] = bank_name;
53
- obj['bank_address'] = bank_address;
54
52
  obj['bank_swift_code'] = bank_swift_code;
55
53
  }
56
54
 
@@ -118,7 +116,7 @@ var IntermediaryBankInfo = /*#__PURE__*/function () {
118
116
  }
119
117
  }]);
120
118
  }();
121
- IntermediaryBankInfo.RequiredProperties = ["bank_name", "bank_address", "bank_swift_code"];
119
+ IntermediaryBankInfo.RequiredProperties = ["bank_name", "bank_swift_code"];
122
120
 
123
121
  /**
124
122
  * The name of the intermediary bank.
@@ -35,11 +35,10 @@ var MerchantBalance = /*#__PURE__*/function () {
35
35
  * @alias module:model/MerchantBalance
36
36
  * @param merchant_id {String} The merchant ID.
37
37
  * @param token_id {String} The token ID, which is a unique identifier that specifies both the blockchain network and cryptocurrency token in the format `{CHAIN}_{TOKEN}`.
38
- * @param acquiring_type {module:model/AcquiringType}
39
38
  */
40
- function MerchantBalance(merchant_id, token_id, acquiring_type) {
39
+ function MerchantBalance(merchant_id, token_id) {
41
40
  _classCallCheck(this, MerchantBalance);
42
- MerchantBalance.initialize(this, merchant_id, token_id, acquiring_type);
41
+ MerchantBalance.initialize(this, merchant_id, token_id);
43
42
  }
44
43
 
45
44
  /**
@@ -49,10 +48,9 @@ var MerchantBalance = /*#__PURE__*/function () {
49
48
  */
50
49
  return _createClass(MerchantBalance, null, [{
51
50
  key: "initialize",
52
- value: function initialize(obj, merchant_id, token_id, acquiring_type) {
51
+ value: function initialize(obj, merchant_id, token_id) {
53
52
  obj['merchant_id'] = merchant_id;
54
53
  obj['token_id'] = token_id;
55
- obj['acquiring_type'] = acquiring_type;
56
54
  }
57
55
 
58
56
  /**
@@ -164,7 +162,7 @@ var MerchantBalance = /*#__PURE__*/function () {
164
162
  }
165
163
  }]);
166
164
  }();
167
- MerchantBalance.RequiredProperties = ["merchant_id", "token_id", "acquiring_type"];
165
+ MerchantBalance.RequiredProperties = ["merchant_id", "token_id"];
168
166
 
169
167
  /**
170
168
  * The merchant ID.
@@ -0,0 +1,61 @@
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
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
+ 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); }
10
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
11
+ 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); } }
12
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
13
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
14
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
15
+ 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); } /**
16
+ * Cobo Wallet as a Service 2.0
17
+ *
18
+ * Contact: help@cobo.com
19
+ *
20
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
21
+ * https://openapi-generator.tech
22
+ * Do not edit the class manually.
23
+ *
24
+ */
25
+ /**
26
+ * Enum class PaymentBridgeStatus.
27
+ * @enum {}
28
+ * @readonly
29
+ */
30
+ var PaymentBridgeStatus = exports["default"] = /*#__PURE__*/function () {
31
+ function PaymentBridgeStatus() {
32
+ _classCallCheck(this, PaymentBridgeStatus);
33
+ /**
34
+ * value: "Completed"
35
+ * @const
36
+ */
37
+ _defineProperty(this, "Completed", "Completed");
38
+ /**
39
+ * value: "Failed"
40
+ * @const
41
+ */
42
+ _defineProperty(this, "Failed", "Failed");
43
+ /**
44
+ * value: "unknown_default_open_api"
45
+ * @const
46
+ */
47
+ _defineProperty(this, "unknown_default_open_api", "unknown_default_open_api");
48
+ }
49
+ return _createClass(PaymentBridgeStatus, null, [{
50
+ key: "constructFromObject",
51
+ value:
52
+ /**
53
+ * Returns a <code>PaymentBridgeStatus</code> enum value from a Javascript object name.
54
+ * @param {Object} data The plain JavaScript object containing the name of the enum value.
55
+ * @return {module:model/PaymentBridgeStatus} The enum <code>PaymentBridgeStatus</code> value.
56
+ */
57
+ function constructFromObject(object) {
58
+ return object;
59
+ }
60
+ }]);
61
+ }();
@@ -34,10 +34,10 @@ var PaymentBulkSendItem = /*#__PURE__*/function () {
34
34
  /**
35
35
  * Constructs a new <code>PaymentBulkSendItem</code>.
36
36
  * @alias module:model/PaymentBulkSendItem
37
- * @param bulk_send_item_id {String} The payout item ID.
38
- * @param token_id {String} The token ID of the payout item.
39
- * @param receiving_address {String} The receiving address of the payout item.
40
- * @param amount {String} The amount of the payout item.
37
+ * @param bulk_send_item_id {String} The bulk send item ID.
38
+ * @param token_id {String} The token ID of the cryptocurrency to be sent to the recipient.
39
+ * @param receiving_address {String} The receiving address.
40
+ * @param amount {String} The amount of the cryptocurrency to be sent to the recipient.
41
41
  * @param status {module:model/PaymentBulkSendItemStatus}
42
42
  * @param validation_status {module:model/PaymentBulkSendItemValidationStatus}
43
43
  */
@@ -149,31 +149,31 @@ var PaymentBulkSendItem = /*#__PURE__*/function () {
149
149
  PaymentBulkSendItem.RequiredProperties = ["bulk_send_item_id", "token_id", "receiving_address", "amount", "status", "validation_status"];
150
150
 
151
151
  /**
152
- * The payout item ID.
152
+ * The bulk send item ID.
153
153
  * @member {String} bulk_send_item_id
154
154
  */
155
155
  PaymentBulkSendItem.prototype['bulk_send_item_id'] = undefined;
156
156
 
157
157
  /**
158
- * The token ID of the payout item.
158
+ * The token ID of the cryptocurrency to be sent to the recipient.
159
159
  * @member {String} token_id
160
160
  */
161
161
  PaymentBulkSendItem.prototype['token_id'] = undefined;
162
162
 
163
163
  /**
164
- * The receiving address of the payout item.
164
+ * The receiving address.
165
165
  * @member {String} receiving_address
166
166
  */
167
167
  PaymentBulkSendItem.prototype['receiving_address'] = undefined;
168
168
 
169
169
  /**
170
- * The amount of the payout item.
170
+ * The amount of the cryptocurrency to be sent to the recipient.
171
171
  * @member {String} amount
172
172
  */
173
173
  PaymentBulkSendItem.prototype['amount'] = undefined;
174
174
 
175
175
  /**
176
- * The note of the payout item.
176
+ * A note or comment about the bulk send item.
177
177
  * @member {String} description
178
178
  */
179
179
  PaymentBulkSendItem.prototype['description'] = undefined;
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _CommissionFee = _interopRequireDefault(require("./CommissionFee"));
8
9
  var _PaymentPayoutItem = _interopRequireDefault(require("./PaymentPayoutItem"));
9
10
  var _PaymentPayoutRecipientInfo = _interopRequireDefault(require("./PaymentPayoutRecipientInfo"));
10
11
  var _PaymentPayoutStatus = _interopRequireDefault(require("./PaymentPayoutStatus"));
@@ -100,12 +101,15 @@ var PaymentPayout = /*#__PURE__*/function () {
100
101
  if (data.hasOwnProperty('actual_payout_amount')) {
101
102
  obj['actual_payout_amount'] = _ApiClient["default"].convertToType(data['actual_payout_amount'], 'String');
102
103
  }
103
- if (data.hasOwnProperty('status')) {
104
- obj['status'] = _PaymentPayoutStatus["default"].constructFromObject(data['status']);
104
+ if (data.hasOwnProperty('commission_fees')) {
105
+ obj['commission_fees'] = _ApiClient["default"].convertToType(data['commission_fees'], [_CommissionFee["default"]]);
105
106
  }
106
107
  if (data.hasOwnProperty('remark')) {
107
108
  obj['remark'] = _ApiClient["default"].convertToType(data['remark'], 'String');
108
109
  }
110
+ if (data.hasOwnProperty('status')) {
111
+ obj['status'] = _PaymentPayoutStatus["default"].constructFromObject(data['status']);
112
+ }
109
113
  if (data.hasOwnProperty('created_timestamp')) {
110
114
  obj['created_timestamp'] = _ApiClient["default"].convertToType(data['created_timestamp'], 'Number');
111
115
  }
@@ -187,6 +191,27 @@ var PaymentPayout = /*#__PURE__*/function () {
187
191
  if (data['actual_payout_amount'] && !(typeof data['actual_payout_amount'] === 'string' || data['actual_payout_amount'] instanceof String)) {
188
192
  throw new Error("Expected the field `actual_payout_amount` to be a primitive type in the JSON string but got " + data['actual_payout_amount']);
189
193
  }
194
+ if (data['commission_fees']) {
195
+ // data not null
196
+ // ensure the json data is an array
197
+ if (!Array.isArray(data['commission_fees'])) {
198
+ throw new Error("Expected the field `commission_fees` to be an array in the JSON data but got " + data['commission_fees']);
199
+ }
200
+ // validate the optional field `commission_fees` (array)
201
+ var _iterator3 = _createForOfIteratorHelper(data['commission_fees']),
202
+ _step3;
203
+ try {
204
+ for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
205
+ var _item = _step3.value;
206
+ _CommissionFee["default"].validateJSON(_item);
207
+ }
208
+ } catch (err) {
209
+ _iterator3.e(err);
210
+ } finally {
211
+ _iterator3.f();
212
+ }
213
+ ;
214
+ }
190
215
  // ensure the json data is a string
191
216
  if (data['remark'] && !(typeof data['remark'] === 'string' || data['remark'] instanceof String)) {
192
217
  throw new Error("Expected the field `remark` to be a primitive type in the JSON string but got " + data['remark']);
@@ -244,9 +269,10 @@ PaymentPayout.prototype['initiator'] = undefined;
244
269
  PaymentPayout.prototype['actual_payout_amount'] = undefined;
245
270
 
246
271
  /**
247
- * @member {module:model/PaymentPayoutStatus} status
272
+ * The commission fees of the payout.
273
+ * @member {Array.<module:model/CommissionFee>} commission_fees
248
274
  */
249
- PaymentPayout.prototype['status'] = undefined;
275
+ PaymentPayout.prototype['commission_fees'] = undefined;
250
276
 
251
277
  /**
252
278
  * A note or comment about the payout.
@@ -254,6 +280,11 @@ PaymentPayout.prototype['status'] = undefined;
254
280
  */
255
281
  PaymentPayout.prototype['remark'] = undefined;
256
282
 
283
+ /**
284
+ * @member {module:model/PaymentPayoutStatus} status
285
+ */
286
+ PaymentPayout.prototype['status'] = undefined;
287
+
257
288
  /**
258
289
  * The created time of the payout, represented as a UNIX timestamp in seconds.
259
290
  * @member {Number} created_timestamp
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _CommissionFee = _interopRequireDefault(require("./CommissionFee"));
8
9
  var _PaymentPayout = _interopRequireDefault(require("./PaymentPayout"));
9
10
  var _PaymentPayoutItem = _interopRequireDefault(require("./PaymentPayoutItem"));
10
11
  var _PaymentPayoutRecipientInfo = _interopRequireDefault(require("./PaymentPayoutRecipientInfo"));
@@ -105,12 +106,15 @@ var PaymentPayoutDetail = /*#__PURE__*/function () {
105
106
  if (data.hasOwnProperty('actual_payout_amount')) {
106
107
  obj['actual_payout_amount'] = _ApiClient["default"].convertToType(data['actual_payout_amount'], 'String');
107
108
  }
108
- if (data.hasOwnProperty('status')) {
109
- obj['status'] = _PaymentPayoutStatus["default"].constructFromObject(data['status']);
109
+ if (data.hasOwnProperty('commission_fees')) {
110
+ obj['commission_fees'] = _ApiClient["default"].convertToType(data['commission_fees'], [_CommissionFee["default"]]);
110
111
  }
111
112
  if (data.hasOwnProperty('remark')) {
112
113
  obj['remark'] = _ApiClient["default"].convertToType(data['remark'], 'String');
113
114
  }
115
+ if (data.hasOwnProperty('status')) {
116
+ obj['status'] = _PaymentPayoutStatus["default"].constructFromObject(data['status']);
117
+ }
114
118
  if (data.hasOwnProperty('created_timestamp')) {
115
119
  obj['created_timestamp'] = _ApiClient["default"].convertToType(data['created_timestamp'], 'Number');
116
120
  }
@@ -195,6 +199,27 @@ var PaymentPayoutDetail = /*#__PURE__*/function () {
195
199
  if (data['actual_payout_amount'] && !(typeof data['actual_payout_amount'] === 'string' || data['actual_payout_amount'] instanceof String)) {
196
200
  throw new Error("Expected the field `actual_payout_amount` to be a primitive type in the JSON string but got " + data['actual_payout_amount']);
197
201
  }
202
+ if (data['commission_fees']) {
203
+ // data not null
204
+ // ensure the json data is an array
205
+ if (!Array.isArray(data['commission_fees'])) {
206
+ throw new Error("Expected the field `commission_fees` to be an array in the JSON data but got " + data['commission_fees']);
207
+ }
208
+ // validate the optional field `commission_fees` (array)
209
+ var _iterator3 = _createForOfIteratorHelper(data['commission_fees']),
210
+ _step3;
211
+ try {
212
+ for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
213
+ var _item = _step3.value;
214
+ _CommissionFee["default"].validateJSON(_item);
215
+ }
216
+ } catch (err) {
217
+ _iterator3.e(err);
218
+ } finally {
219
+ _iterator3.f();
220
+ }
221
+ ;
222
+ }
198
223
  // ensure the json data is a string
199
224
  if (data['remark'] && !(typeof data['remark'] === 'string' || data['remark'] instanceof String)) {
200
225
  throw new Error("Expected the field `remark` to be a primitive type in the JSON string but got " + data['remark']);
@@ -206,17 +231,17 @@ var PaymentPayoutDetail = /*#__PURE__*/function () {
206
231
  throw new Error("Expected the field `transactions` to be an array in the JSON data but got " + data['transactions']);
207
232
  }
208
233
  // validate the optional field `transactions` (array)
209
- var _iterator3 = _createForOfIteratorHelper(data['transactions']),
210
- _step3;
234
+ var _iterator4 = _createForOfIteratorHelper(data['transactions']),
235
+ _step4;
211
236
  try {
212
- for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
213
- var _item = _step3.value;
214
- _PaymentTransaction["default"].validateJSON(_item);
237
+ for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
238
+ var _item2 = _step4.value;
239
+ _PaymentTransaction["default"].validateJSON(_item2);
215
240
  }
216
241
  } catch (err) {
217
- _iterator3.e(err);
242
+ _iterator4.e(err);
218
243
  } finally {
219
- _iterator3.f();
244
+ _iterator4.f();
220
245
  }
221
246
  ;
222
247
  }
@@ -273,9 +298,10 @@ PaymentPayoutDetail.prototype['initiator'] = undefined;
273
298
  PaymentPayoutDetail.prototype['actual_payout_amount'] = undefined;
274
299
 
275
300
  /**
276
- * @member {module:model/PaymentPayoutStatus} status
301
+ * The commission fees of the payout.
302
+ * @member {Array.<module:model/CommissionFee>} commission_fees
277
303
  */
278
- PaymentPayoutDetail.prototype['status'] = undefined;
304
+ PaymentPayoutDetail.prototype['commission_fees'] = undefined;
279
305
 
280
306
  /**
281
307
  * A note or comment about the payout.
@@ -283,6 +309,11 @@ PaymentPayoutDetail.prototype['status'] = undefined;
283
309
  */
284
310
  PaymentPayoutDetail.prototype['remark'] = undefined;
285
311
 
312
+ /**
313
+ * @member {module:model/PaymentPayoutStatus} status
314
+ */
315
+ PaymentPayoutDetail.prototype['status'] = undefined;
316
+
286
317
  /**
287
318
  * The created time of the payout, represented as a UNIX timestamp in seconds.
288
319
  * @member {Number} created_timestamp
@@ -341,14 +372,19 @@ _PaymentPayout["default"].prototype['initiator'] = undefined;
341
372
  */
342
373
  _PaymentPayout["default"].prototype['actual_payout_amount'] = undefined;
343
374
  /**
344
- * @member {module:model/PaymentPayoutStatus} status
375
+ * The commission fees of the payout.
376
+ * @member {Array.<module:model/CommissionFee>} commission_fees
345
377
  */
346
- _PaymentPayout["default"].prototype['status'] = undefined;
378
+ _PaymentPayout["default"].prototype['commission_fees'] = undefined;
347
379
  /**
348
380
  * A note or comment about the payout.
349
381
  * @member {String} remark
350
382
  */
351
383
  _PaymentPayout["default"].prototype['remark'] = undefined;
384
+ /**
385
+ * @member {module:model/PaymentPayoutStatus} status
386
+ */
387
+ _PaymentPayout["default"].prototype['status'] = undefined;
352
388
  /**
353
389
  * The created time of the payout, represented as a UNIX timestamp in seconds.
354
390
  * @member {Number} created_timestamp
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _CommissionFee = _interopRequireDefault(require("./CommissionFee"));
8
9
  var _PaymentPayoutDetail = _interopRequireDefault(require("./PaymentPayoutDetail"));
9
10
  var _PaymentPayoutItem = _interopRequireDefault(require("./PaymentPayoutItem"));
10
11
  var _PaymentPayoutRecipientInfo = _interopRequireDefault(require("./PaymentPayoutRecipientInfo"));
@@ -114,12 +115,15 @@ var PaymentPayoutEvent = /*#__PURE__*/function () {
114
115
  if (data.hasOwnProperty('actual_payout_amount')) {
115
116
  obj['actual_payout_amount'] = _ApiClient["default"].convertToType(data['actual_payout_amount'], 'String');
116
117
  }
117
- if (data.hasOwnProperty('status')) {
118
- obj['status'] = _PaymentPayoutStatus["default"].constructFromObject(data['status']);
118
+ if (data.hasOwnProperty('commission_fees')) {
119
+ obj['commission_fees'] = _ApiClient["default"].convertToType(data['commission_fees'], [_CommissionFee["default"]]);
119
120
  }
120
121
  if (data.hasOwnProperty('remark')) {
121
122
  obj['remark'] = _ApiClient["default"].convertToType(data['remark'], 'String');
122
123
  }
124
+ if (data.hasOwnProperty('status')) {
125
+ obj['status'] = _PaymentPayoutStatus["default"].constructFromObject(data['status']);
126
+ }
123
127
  if (data.hasOwnProperty('created_timestamp')) {
124
128
  obj['created_timestamp'] = _ApiClient["default"].convertToType(data['created_timestamp'], 'Number');
125
129
  }
@@ -208,6 +212,27 @@ var PaymentPayoutEvent = /*#__PURE__*/function () {
208
212
  if (data['actual_payout_amount'] && !(typeof data['actual_payout_amount'] === 'string' || data['actual_payout_amount'] instanceof String)) {
209
213
  throw new Error("Expected the field `actual_payout_amount` to be a primitive type in the JSON string but got " + data['actual_payout_amount']);
210
214
  }
215
+ if (data['commission_fees']) {
216
+ // data not null
217
+ // ensure the json data is an array
218
+ if (!Array.isArray(data['commission_fees'])) {
219
+ throw new Error("Expected the field `commission_fees` to be an array in the JSON data but got " + data['commission_fees']);
220
+ }
221
+ // validate the optional field `commission_fees` (array)
222
+ var _iterator3 = _createForOfIteratorHelper(data['commission_fees']),
223
+ _step3;
224
+ try {
225
+ for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
226
+ var _item = _step3.value;
227
+ _CommissionFee["default"].validateJSON(_item);
228
+ }
229
+ } catch (err) {
230
+ _iterator3.e(err);
231
+ } finally {
232
+ _iterator3.f();
233
+ }
234
+ ;
235
+ }
211
236
  // ensure the json data is a string
212
237
  if (data['remark'] && !(typeof data['remark'] === 'string' || data['remark'] instanceof String)) {
213
238
  throw new Error("Expected the field `remark` to be a primitive type in the JSON string but got " + data['remark']);
@@ -219,17 +244,17 @@ var PaymentPayoutEvent = /*#__PURE__*/function () {
219
244
  throw new Error("Expected the field `transactions` to be an array in the JSON data but got " + data['transactions']);
220
245
  }
221
246
  // validate the optional field `transactions` (array)
222
- var _iterator3 = _createForOfIteratorHelper(data['transactions']),
223
- _step3;
247
+ var _iterator4 = _createForOfIteratorHelper(data['transactions']),
248
+ _step4;
224
249
  try {
225
- for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
226
- var _item = _step3.value;
227
- _PaymentTransaction["default"].validateJSON(_item);
250
+ for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
251
+ var _item2 = _step4.value;
252
+ _PaymentTransaction["default"].validateJSON(_item2);
228
253
  }
229
254
  } catch (err) {
230
- _iterator3.e(err);
255
+ _iterator4.e(err);
231
256
  } finally {
232
- _iterator3.f();
257
+ _iterator4.f();
233
258
  }
234
259
  ;
235
260
  }
@@ -292,9 +317,10 @@ PaymentPayoutEvent.prototype['initiator'] = undefined;
292
317
  PaymentPayoutEvent.prototype['actual_payout_amount'] = undefined;
293
318
 
294
319
  /**
295
- * @member {module:model/PaymentPayoutStatus} status
320
+ * The commission fees of the payout.
321
+ * @member {Array.<module:model/CommissionFee>} commission_fees
296
322
  */
297
- PaymentPayoutEvent.prototype['status'] = undefined;
323
+ PaymentPayoutEvent.prototype['commission_fees'] = undefined;
298
324
 
299
325
  /**
300
326
  * A note or comment about the payout.
@@ -302,6 +328,11 @@ PaymentPayoutEvent.prototype['status'] = undefined;
302
328
  */
303
329
  PaymentPayoutEvent.prototype['remark'] = undefined;
304
330
 
331
+ /**
332
+ * @member {module:model/PaymentPayoutStatus} status
333
+ */
334
+ PaymentPayoutEvent.prototype['status'] = undefined;
335
+
305
336
  /**
306
337
  * The created time of the payout, represented as a UNIX timestamp in seconds.
307
338
  * @member {Number} created_timestamp
@@ -366,14 +397,19 @@ _PaymentPayoutDetail["default"].prototype['initiator'] = undefined;
366
397
  */
367
398
  _PaymentPayoutDetail["default"].prototype['actual_payout_amount'] = undefined;
368
399
  /**
369
- * @member {module:model/PaymentPayoutStatus} status
400
+ * The commission fees of the payout.
401
+ * @member {Array.<module:model/CommissionFee>} commission_fees
370
402
  */
371
- _PaymentPayoutDetail["default"].prototype['status'] = undefined;
403
+ _PaymentPayoutDetail["default"].prototype['commission_fees'] = undefined;
372
404
  /**
373
405
  * A note or comment about the payout.
374
406
  * @member {String} remark
375
407
  */
376
408
  _PaymentPayoutDetail["default"].prototype['remark'] = undefined;
409
+ /**
410
+ * @member {module:model/PaymentPayoutStatus} status
411
+ */
412
+ _PaymentPayoutDetail["default"].prototype['status'] = undefined;
377
413
  /**
378
414
  * The created time of the payout, represented as a UNIX timestamp in seconds.
379
415
  * @member {Number} created_timestamp