@cobo/cobo-waas2 1.29.0 → 1.31.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 (171) hide show
  1. package/README.md +28 -44
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/api/ComplianceApi.js +2 -2
  4. package/dist/api/GraphQLApi.js +85 -0
  5. package/dist/api/PaymentApi.js +194 -954
  6. package/dist/api/SwapsApi.js +3 -0
  7. package/dist/api/WalletsApi.js +18 -18
  8. package/dist/index.js +133 -133
  9. package/dist/model/AddressesEventData.js +8 -3
  10. package/dist/model/{AllocationRecord.js → AllocationItem.js} +42 -42
  11. package/dist/model/{AllocationRequest.js → AllocationParam.js} +33 -33
  12. package/dist/model/Balance.js +14 -0
  13. package/dist/model/BalanceUpdateInfoEventData.js +8 -3
  14. package/dist/model/BatchAllocation.js +11 -11
  15. package/dist/model/BatchAllocationDetail.js +15 -17
  16. package/dist/model/BridgingFee.js +12 -3
  17. package/dist/model/ChainsEventData.js +8 -3
  18. package/dist/model/ComplianceDispositionUpdateEventData.js +8 -3
  19. package/dist/model/ComplianceKyaScreeningsUpdateEventData.js +8 -3
  20. package/dist/model/ComplianceKytScreeningsUpdateEventData.js +8 -3
  21. package/dist/model/ContractCallParams.js +17 -1
  22. package/dist/model/CreateBatchAllocationRequest.js +17 -17
  23. package/dist/model/CreateBulkSendRequest.js +167 -0
  24. package/dist/model/{CreateCounterpartyWalletAddressRequest.js → CreateBulkSendRequestPayoutParamsInner.js} +59 -46
  25. package/dist/model/CreateKyaScreeningsBody.js +3 -3
  26. package/dist/model/CreatePaymentOrderRequest.js +10 -7
  27. package/dist/model/CreatePayoutRequest.js +33 -26
  28. package/dist/model/{DeleteDestination200Response.js → CreateTopUpAddresses.js} +57 -28
  29. package/dist/model/{ListDestinationBankAccounts200Response.js → CreateTopUpAddresses201Response.js} +21 -37
  30. package/dist/model/CreateWalletAddress.js +2 -2
  31. package/dist/model/{ListAllocations200Response.js → ListAllocationItems200Response.js} +22 -22
  32. package/dist/model/{ListPayoutItems200Response.js → ListBulkSendItems200Response.js} +22 -22
  33. package/dist/model/MPCVaultEventData.js +8 -3
  34. package/dist/model/OrderLinkBusinessInfo.js +10 -4
  35. package/dist/model/PaymentAddressUpdateEventData.js +8 -3
  36. package/dist/model/PaymentBridgeStatus.js +61 -0
  37. package/dist/model/PaymentBulkSend.js +182 -0
  38. package/dist/model/PaymentBulkSendEvent.js +359 -0
  39. package/dist/model/PaymentBulkSendExecutionMode.js +61 -0
  40. package/dist/model/PaymentBulkSendItem.js +190 -0
  41. package/dist/model/{PaymentPayoutItemStatus.js → PaymentBulkSendItemStatus.js} +11 -11
  42. package/dist/model/PaymentBulkSendItemValidationStatus.js +66 -0
  43. package/dist/model/PaymentBulkSendStatus.js +81 -0
  44. package/dist/model/PaymentEstimateFeeRequest.js +13 -0
  45. package/dist/model/PaymentFeeType.js +15 -0
  46. package/dist/model/PaymentOrderEventData.js +8 -3
  47. package/dist/model/PaymentPayout.js +93 -44
  48. package/dist/model/PaymentPayoutDetail.js +204 -54
  49. package/dist/model/PaymentPayoutEvent.js +185 -82
  50. package/dist/model/PaymentPayoutItem.js +9 -167
  51. package/dist/model/PaymentPayoutParam.js +6 -47
  52. package/dist/model/PaymentPayoutRecipientInfo.js +126 -0
  53. package/dist/model/PaymentPayoutStatus.js +9 -4
  54. package/dist/model/PaymentRefundEventData.js +8 -3
  55. package/dist/model/PaymentSettlementEvent.js +8 -3
  56. package/dist/model/PaymentTransactionEventData.js +8 -3
  57. package/dist/model/PreCheck.js +89 -0
  58. package/dist/model/SkipCheckType.js +56 -0
  59. package/dist/model/SupportedToken.js +17 -17
  60. package/dist/model/SuspendedTokenEventData.js +8 -3
  61. package/dist/model/TSSRequestWebhookEventData.js +8 -3
  62. package/dist/model/TokenListingEventData.js +8 -3
  63. package/dist/model/TokensEventData.js +8 -3
  64. package/dist/model/TransactionCoboCategory.js +5 -0
  65. package/dist/model/TransactionExtraType.js +5 -0
  66. package/dist/model/{CreateDestinationWalletAddressRequest.js → TransactionWalletConnectInfo.js} +52 -46
  67. package/dist/model/TransactionWebhookEventData.js +8 -3
  68. package/dist/model/TransferParams.js +16 -0
  69. package/dist/model/WalletInfoEventData.js +8 -3
  70. package/dist/model/WebhookEventData.js +82 -17
  71. package/dist/model/WebhookEventDataType.js +7 -2
  72. package/dist/model/WebhookEventType.js +25 -0
  73. package/docs/AddressesEventData.md +3 -1
  74. package/docs/AllocationItem.md +15 -0
  75. package/docs/AllocationParam.md +13 -0
  76. package/docs/Balance.md +1 -0
  77. package/docs/BalanceUpdateInfoEventData.md +3 -1
  78. package/docs/BatchAllocation.md +1 -1
  79. package/docs/BatchAllocationDetail.md +1 -1
  80. package/docs/BridgingFee.md +3 -2
  81. package/docs/ChainsEventData.md +3 -1
  82. package/docs/ComplianceApi.md +1 -1
  83. package/docs/ComplianceDispositionUpdateEventData.md +3 -1
  84. package/docs/ComplianceKyaScreeningsUpdateEventData.md +3 -1
  85. package/docs/ComplianceKytScreeningsUpdateEventData.md +3 -1
  86. package/docs/ContractCallParams.md +2 -1
  87. package/docs/CreateBatchAllocationRequest.md +1 -1
  88. package/docs/CreateBulkSendRequest.md +12 -0
  89. package/docs/CreateBulkSendRequestPayoutParamsInner.md +12 -0
  90. package/docs/CreateKyaScreeningsBody.md +1 -1
  91. package/docs/CreatePaymentOrderRequest.md +3 -3
  92. package/docs/CreatePayoutRequest.md +3 -3
  93. package/docs/CreateTopUpAddresses.md +11 -0
  94. package/docs/{DeleteDestination200Response.md → CreateTopUpAddresses201Response.md} +2 -2
  95. package/docs/CreateWalletAddress.md +1 -1
  96. package/docs/GraphQLApi.md +61 -0
  97. package/docs/{ListAllocations200Response.md → ListAllocationItems200Response.md} +2 -2
  98. package/docs/{ListPayoutItems200Response.md → ListBulkSendItems200Response.md} +2 -2
  99. package/docs/MPCVaultEventData.md +3 -1
  100. package/docs/OrderLinkBusinessInfo.md +3 -3
  101. package/docs/PaymentAddressUpdateEventData.md +3 -1
  102. package/docs/PaymentApi.md +197 -1063
  103. package/docs/PaymentBridgeStatus.md +12 -0
  104. package/docs/PaymentBulkSend.md +15 -0
  105. package/docs/PaymentBulkSendEvent.md +65 -0
  106. package/docs/PaymentBulkSendExecutionMode.md +12 -0
  107. package/docs/PaymentBulkSendItem.md +15 -0
  108. package/docs/{PaymentPayoutItemStatus.md → PaymentBulkSendItemStatus.md} +3 -3
  109. package/docs/PaymentBulkSendItemValidationStatus.md +14 -0
  110. package/docs/PaymentBulkSendStatus.md +20 -0
  111. package/docs/PaymentEstimateFeeRequest.md +1 -0
  112. package/docs/PaymentFeeType.md +6 -0
  113. package/docs/PaymentOrderEventData.md +3 -1
  114. package/docs/PaymentPayout.md +9 -7
  115. package/docs/PaymentPayoutDetail.md +11 -8
  116. package/docs/PaymentPayoutEvent.md +14 -9
  117. package/docs/PaymentPayoutItem.md +2 -13
  118. package/docs/PaymentPayoutParam.md +1 -4
  119. package/docs/PaymentPayoutRecipientInfo.md +12 -0
  120. package/docs/PaymentPayoutStatus.md +4 -2
  121. package/docs/PaymentRefundEventData.md +3 -1
  122. package/docs/PaymentSettlementEvent.md +3 -1
  123. package/docs/PaymentTransactionEventData.md +3 -1
  124. package/docs/PreCheck.md +9 -0
  125. package/docs/SkipCheckType.md +10 -0
  126. package/docs/SupportedToken.md +10 -10
  127. package/docs/SuspendedTokenEventData.md +3 -1
  128. package/docs/SwapsApi.md +2 -0
  129. package/docs/TSSRequestWebhookEventData.md +3 -1
  130. package/docs/TokenListingEventData.md +3 -1
  131. package/docs/TokensEventData.md +3 -1
  132. package/docs/TransactionCoboCategory.md +2 -0
  133. package/docs/TransactionExtraType.md +2 -0
  134. package/docs/TransactionWalletConnectInfo.md +12 -0
  135. package/docs/TransactionWebhookEventData.md +3 -1
  136. package/docs/TransferParams.md +1 -0
  137. package/docs/WalletInfoEventData.md +3 -1
  138. package/docs/WalletsApi.md +9 -9
  139. package/docs/WebhookEventData.md +16 -8
  140. package/docs/WebhookEventDataType.md +3 -1
  141. package/docs/WebhookEventType.md +10 -0
  142. package/package.json +1 -1
  143. package/dist/model/CreateDestinationBankAccountRequest.js +0 -272
  144. package/dist/model/DeleteCounterparty200Response.js +0 -110
  145. package/dist/model/DeleteCounterpartyWalletAddress200Response.js +0 -110
  146. package/dist/model/DeleteDestinationBankAccount200Response.js +0 -110
  147. package/dist/model/DeleteDestinationWalletAddress200Response.js +0 -110
  148. package/dist/model/EnableDestinationWhitelistRequest.js +0 -106
  149. package/dist/model/ListCounterpartyWalletAddress200Response.js +0 -123
  150. package/dist/model/ListDestinationWalletAddresses200Response.js +0 -123
  151. package/dist/model/PaymentPayoutItemDetail.js +0 -299
  152. package/dist/model/QueryDestinationWhitelistEnabled200Response.js +0 -106
  153. package/dist/model/UpdateCounterpartyByIdRequest.js +0 -160
  154. package/dist/model/UpdateDestinationByIdRequest.js +0 -173
  155. package/docs/AllocationRecord.md +0 -15
  156. package/docs/AllocationRequest.md +0 -13
  157. package/docs/CreateCounterpartyWalletAddressRequest.md +0 -11
  158. package/docs/CreateDestinationBankAccountRequest.md +0 -20
  159. package/docs/CreateDestinationWalletAddressRequest.md +0 -11
  160. package/docs/DeleteCounterparty200Response.md +0 -9
  161. package/docs/DeleteCounterpartyWalletAddress200Response.md +0 -9
  162. package/docs/DeleteDestinationBankAccount200Response.md +0 -9
  163. package/docs/DeleteDestinationWalletAddress200Response.md +0 -9
  164. package/docs/EnableDestinationWhitelistRequest.md +0 -9
  165. package/docs/ListCounterpartyWalletAddress200Response.md +0 -10
  166. package/docs/ListDestinationBankAccounts200Response.md +0 -10
  167. package/docs/ListDestinationWalletAddresses200Response.md +0 -10
  168. package/docs/PaymentPayoutItemDetail.md +0 -22
  169. package/docs/QueryDestinationWhitelistEnabled200Response.md +0 -9
  170. package/docs/UpdateCounterpartyByIdRequest.md +0 -13
  171. package/docs/UpdateDestinationByIdRequest.md +0 -14
@@ -14,16 +14,14 @@ var _Counterparty = _interopRequireDefault(require("../model/Counterparty"));
14
14
  var _CounterpartyDetail = _interopRequireDefault(require("../model/CounterpartyDetail"));
15
15
  var _CounterpartyType = _interopRequireDefault(require("../model/CounterpartyType"));
16
16
  var _CreateBatchAllocationRequest = _interopRequireDefault(require("../model/CreateBatchAllocationRequest"));
17
+ var _CreateBulkSendRequest = _interopRequireDefault(require("../model/CreateBulkSendRequest"));
17
18
  var _CreateCounterpartyEntry201Response = _interopRequireDefault(require("../model/CreateCounterpartyEntry201Response"));
18
19
  var _CreateCounterpartyEntryRequest = _interopRequireDefault(require("../model/CreateCounterpartyEntryRequest"));
19
20
  var _CreateCounterpartyRequest = _interopRequireDefault(require("../model/CreateCounterpartyRequest"));
20
- var _CreateCounterpartyWalletAddressRequest = _interopRequireDefault(require("../model/CreateCounterpartyWalletAddressRequest"));
21
21
  var _CreateCryptoAddressRequest = _interopRequireDefault(require("../model/CreateCryptoAddressRequest"));
22
- var _CreateDestinationBankAccountRequest = _interopRequireDefault(require("../model/CreateDestinationBankAccountRequest"));
23
22
  var _CreateDestinationEntry201Response = _interopRequireDefault(require("../model/CreateDestinationEntry201Response"));
24
23
  var _CreateDestinationEntryRequest = _interopRequireDefault(require("../model/CreateDestinationEntryRequest"));
25
24
  var _CreateDestinationRequest = _interopRequireDefault(require("../model/CreateDestinationRequest"));
26
- var _CreateDestinationWalletAddressRequest = _interopRequireDefault(require("../model/CreateDestinationWalletAddressRequest"));
27
25
  var _CreateMerchantRequest = _interopRequireDefault(require("../model/CreateMerchantRequest"));
28
26
  var _CreateOrderLinkRequest = _interopRequireDefault(require("../model/CreateOrderLinkRequest"));
29
27
  var _CreatePaymentOrderRequest = _interopRequireDefault(require("../model/CreatePaymentOrderRequest"));
@@ -32,23 +30,17 @@ var _CreateRefundLinkRequest = _interopRequireDefault(require("../model/CreateRe
32
30
  var _CreateRefundRequest = _interopRequireDefault(require("../model/CreateRefundRequest"));
33
31
  var _CreateReportRequest = _interopRequireDefault(require("../model/CreateReportRequest"));
34
32
  var _CreateSettlementRequestRequest = _interopRequireDefault(require("../model/CreateSettlementRequestRequest"));
33
+ var _CreateTopUpAddresses = _interopRequireDefault(require("../model/CreateTopUpAddresses"));
34
+ var _CreateTopUpAddresses201Response = _interopRequireDefault(require("../model/CreateTopUpAddresses201Response"));
35
35
  var _CryptoAddress = _interopRequireDefault(require("../model/CryptoAddress"));
36
- var _DeleteCounterparty200Response = _interopRequireDefault(require("../model/DeleteCounterparty200Response"));
37
36
  var _DeleteCounterpartyById200Response = _interopRequireDefault(require("../model/DeleteCounterpartyById200Response"));
38
37
  var _DeleteCounterpartyEntry200Response = _interopRequireDefault(require("../model/DeleteCounterpartyEntry200Response"));
39
- var _DeleteCounterpartyWalletAddress200Response = _interopRequireDefault(require("../model/DeleteCounterpartyWalletAddress200Response"));
40
38
  var _DeleteCryptoAddress201Response = _interopRequireDefault(require("../model/DeleteCryptoAddress201Response"));
41
- var _DeleteDestination200Response = _interopRequireDefault(require("../model/DeleteDestination200Response"));
42
- var _DeleteDestinationBankAccount200Response = _interopRequireDefault(require("../model/DeleteDestinationBankAccount200Response"));
43
39
  var _DeleteDestinationById200Response = _interopRequireDefault(require("../model/DeleteDestinationById200Response"));
44
40
  var _DeleteDestinationEntry200Response = _interopRequireDefault(require("../model/DeleteDestinationEntry200Response"));
45
- var _DeleteDestinationWalletAddress200Response = _interopRequireDefault(require("../model/DeleteDestinationWalletAddress200Response"));
46
41
  var _Destination = _interopRequireDefault(require("../model/Destination"));
47
- var _DestinationBankAccount = _interopRequireDefault(require("../model/DestinationBankAccount"));
48
- var _DestinationBankAccountDetail = _interopRequireDefault(require("../model/DestinationBankAccountDetail"));
49
42
  var _DestinationDetail = _interopRequireDefault(require("../model/DestinationDetail"));
50
43
  var _DestinationType = _interopRequireDefault(require("../model/DestinationType"));
51
- var _EnableDestinationWhitelistRequest = _interopRequireDefault(require("../model/EnableDestinationWhitelistRequest"));
52
44
  var _EntryType = _interopRequireDefault(require("../model/EntryType"));
53
45
  var _ErrorResponse = _interopRequireDefault(require("../model/ErrorResponse"));
54
46
  var _ExchangeRate = _interopRequireDefault(require("../model/ExchangeRate"));
@@ -61,21 +53,18 @@ var _GetRefunds200Response = _interopRequireDefault(require("../model/GetRefunds
61
53
  var _GetReports200Response = _interopRequireDefault(require("../model/GetReports200Response"));
62
54
  var _GetSettlementInfoByIds200Response = _interopRequireDefault(require("../model/GetSettlementInfoByIds200Response"));
63
55
  var _Link = _interopRequireDefault(require("../model/Link"));
64
- var _ListAllocations200Response = _interopRequireDefault(require("../model/ListAllocations200Response"));
56
+ var _ListAllocationItems200Response = _interopRequireDefault(require("../model/ListAllocationItems200Response"));
65
57
  var _ListBatchAllocations200Response = _interopRequireDefault(require("../model/ListBatchAllocations200Response"));
58
+ var _ListBulkSendItems200Response = _interopRequireDefault(require("../model/ListBulkSendItems200Response"));
66
59
  var _ListCounterparties200Response = _interopRequireDefault(require("../model/ListCounterparties200Response"));
67
60
  var _ListCounterpartyEntries200Response = _interopRequireDefault(require("../model/ListCounterpartyEntries200Response"));
68
- var _ListCounterpartyWalletAddress200Response = _interopRequireDefault(require("../model/ListCounterpartyWalletAddress200Response"));
69
- var _ListDestinationBankAccounts200Response = _interopRequireDefault(require("../model/ListDestinationBankAccounts200Response"));
70
61
  var _ListDestinationEntries200Response = _interopRequireDefault(require("../model/ListDestinationEntries200Response"));
71
- var _ListDestinationWalletAddresses200Response = _interopRequireDefault(require("../model/ListDestinationWalletAddresses200Response"));
72
62
  var _ListDestinations200Response = _interopRequireDefault(require("../model/ListDestinations200Response"));
73
63
  var _ListForcedSweepRequests200Response = _interopRequireDefault(require("../model/ListForcedSweepRequests200Response"));
74
64
  var _ListMerchantBalances200Response = _interopRequireDefault(require("../model/ListMerchantBalances200Response"));
75
65
  var _ListMerchants200Response = _interopRequireDefault(require("../model/ListMerchants200Response"));
76
66
  var _ListPaymentOrders200Response = _interopRequireDefault(require("../model/ListPaymentOrders200Response"));
77
67
  var _ListPaymentWalletBalances200Response = _interopRequireDefault(require("../model/ListPaymentWalletBalances200Response"));
78
- var _ListPayoutItems200Response = _interopRequireDefault(require("../model/ListPayoutItems200Response"));
79
68
  var _ListPayouts200Response = _interopRequireDefault(require("../model/ListPayouts200Response"));
80
69
  var _ListSettlementDetails200Response = _interopRequireDefault(require("../model/ListSettlementDetails200Response"));
81
70
  var _ListSettlementRequests200Response = _interopRequireDefault(require("../model/ListSettlementRequests200Response"));
@@ -84,12 +73,12 @@ var _ListTopUpPayers200Response = _interopRequireDefault(require("../model/ListT
84
73
  var _Merchant = _interopRequireDefault(require("../model/Merchant"));
85
74
  var _Order = _interopRequireDefault(require("../model/Order"));
86
75
  var _PaymentAllocationAmount = _interopRequireDefault(require("../model/PaymentAllocationAmount"));
76
+ var _PaymentBulkSend = _interopRequireDefault(require("../model/PaymentBulkSend"));
87
77
  var _PaymentEstimateFee201Response = _interopRequireDefault(require("../model/PaymentEstimateFee201Response"));
88
78
  var _PaymentEstimateFeeRequest = _interopRequireDefault(require("../model/PaymentEstimateFeeRequest"));
89
79
  var _PaymentPayout = _interopRequireDefault(require("../model/PaymentPayout"));
90
80
  var _PaymentPayoutDetail = _interopRequireDefault(require("../model/PaymentPayoutDetail"));
91
81
  var _PspBalance = _interopRequireDefault(require("../model/PspBalance"));
92
- var _QueryDestinationWhitelistEnabled200Response = _interopRequireDefault(require("../model/QueryDestinationWhitelistEnabled200Response"));
93
82
  var _Refund = _interopRequireDefault(require("../model/Refund"));
94
83
  var _Report = _interopRequireDefault(require("../model/Report"));
95
84
  var _ReportStatus = _interopRequireDefault(require("../model/ReportStatus"));
@@ -98,10 +87,7 @@ var _Settlement = _interopRequireDefault(require("../model/Settlement"));
98
87
  var _SupportedToken = _interopRequireDefault(require("../model/SupportedToken"));
99
88
  var _TopUpAddress = _interopRequireDefault(require("../model/TopUpAddress"));
100
89
  var _UpdateBankAccountByIdRequest = _interopRequireDefault(require("../model/UpdateBankAccountByIdRequest"));
101
- var _UpdateCounterpartyByIdRequest = _interopRequireDefault(require("../model/UpdateCounterpartyByIdRequest"));
102
90
  var _UpdateCounterpartyRequest = _interopRequireDefault(require("../model/UpdateCounterpartyRequest"));
103
- var _UpdateDestinationBankAccount = _interopRequireDefault(require("../model/UpdateDestinationBankAccount"));
104
- var _UpdateDestinationByIdRequest = _interopRequireDefault(require("../model/UpdateDestinationByIdRequest"));
105
91
  var _UpdateDestinationEntry200Response = _interopRequireDefault(require("../model/UpdateDestinationEntry200Response"));
106
92
  var _UpdateDestinationEntryRequest = _interopRequireDefault(require("../model/UpdateDestinationEntryRequest"));
107
93
  var _UpdateDestinationRequest = _interopRequireDefault(require("../model/UpdateDestinationRequest"));
@@ -109,7 +95,6 @@ var _UpdateMerchantByIdRequest = _interopRequireDefault(require("../model/Update
109
95
  var _UpdatePaymentOrderRequest = _interopRequireDefault(require("../model/UpdatePaymentOrderRequest"));
110
96
  var _UpdateRefundByIdRequest = _interopRequireDefault(require("../model/UpdateRefundByIdRequest"));
111
97
  var _UpdateTopUpAddress = _interopRequireDefault(require("../model/UpdateTopUpAddress"));
112
- var _WalletAddress = _interopRequireDefault(require("../model/WalletAddress"));
113
98
  var _WalletSetup = _interopRequireDefault(require("../model/WalletSetup"));
114
99
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
115
100
  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); }
@@ -280,6 +265,47 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
280
265
  });
281
266
  }
282
267
 
268
+ /**
269
+ * Create bulk send
270
+ * This operation creates a bulk send to transfer funds to multiple recipients in a single request.
271
+ * @param {Object} opts Optional parameters
272
+ * @param {module:model/CreateBulkSendRequest} [CreateBulkSendRequest] The request body to create a bulk send.
273
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PaymentBulkSend} and HTTP response
274
+ */
275
+ }, {
276
+ key: "createBulkSendWithHttpInfo",
277
+ value: function createBulkSendWithHttpInfo(opts) {
278
+ opts = opts || {};
279
+ var postBody = opts['CreateBulkSendRequest'];
280
+ if (postBody && postBody.toJSON) {
281
+ postBody = postBody.toJSON();
282
+ }
283
+ var pathParams = {};
284
+ var queryParams = {};
285
+ var headerParams = {};
286
+ var formParams = {};
287
+ var authNames = ['OAuth2', 'CoboAuth'];
288
+ var contentTypes = ['application/json'];
289
+ var accepts = ['application/json'];
290
+ var returnType = _PaymentBulkSend["default"];
291
+ return this.apiClient.callApi('/payments/bulk_sends', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
292
+ }
293
+
294
+ /**
295
+ * Create bulk send
296
+ * This operation creates a bulk send to transfer funds to multiple recipients in a single request.
297
+ * @param {Object} opts Optional parameters
298
+ * @param {module:model/CreateBulkSendRequest} opts.CreateBulkSendRequest The request body to create a bulk send.
299
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PaymentBulkSend}
300
+ */
301
+ }, {
302
+ key: "createBulkSend",
303
+ value: function createBulkSend(opts) {
304
+ return this.createBulkSendWithHttpInfo(opts).then(function (response_and_data) {
305
+ return response_and_data.data;
306
+ });
307
+ }
308
+
283
309
  /**
284
310
  * Create counterparty
285
311
  * This operation creates a [counterparty](https://www.cobo.com/payments/en/guides/counterparties).
@@ -362,50 +388,9 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
362
388
  });
363
389
  }
364
390
 
365
- /**
366
- * Create counterparty wallet address
367
- * This operation creates a counterparty wallet address.
368
- * @param {Object} opts Optional parameters
369
- * @param {module:model/CreateCounterpartyWalletAddressRequest} [CreateCounterpartyWalletAddressRequest] The request body to create a counterparty wallet address.
370
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/WalletAddress} and HTTP response
371
- */
372
- }, {
373
- key: "createCounterpartyWalletAddressWithHttpInfo",
374
- value: function createCounterpartyWalletAddressWithHttpInfo(opts) {
375
- opts = opts || {};
376
- var postBody = opts['CreateCounterpartyWalletAddressRequest'];
377
- if (postBody && postBody.toJSON) {
378
- postBody = postBody.toJSON();
379
- }
380
- var pathParams = {};
381
- var queryParams = {};
382
- var headerParams = {};
383
- var formParams = {};
384
- var authNames = ['OAuth2', 'CoboAuth'];
385
- var contentTypes = ['application/json'];
386
- var accepts = ['application/json'];
387
- var returnType = _WalletAddress["default"];
388
- return this.apiClient.callApi('/payments/counterparty/wallet_address', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
389
- }
390
-
391
- /**
392
- * Create counterparty wallet address
393
- * This operation creates a counterparty wallet address.
394
- * @param {Object} opts Optional parameters
395
- * @param {module:model/CreateCounterpartyWalletAddressRequest} opts.CreateCounterpartyWalletAddressRequest The request body to create a counterparty wallet address.
396
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/WalletAddress}
397
- */
398
- }, {
399
- key: "createCounterpartyWalletAddress",
400
- value: function createCounterpartyWalletAddress(opts) {
401
- return this.createCounterpartyWalletAddressWithHttpInfo(opts).then(function (response_and_data) {
402
- return response_and_data.data;
403
- });
404
- }
405
-
406
391
  /**
407
392
  * Create crypto address
408
- * This operation registers a crypto address for crypto payouts. The registered address can later be referenced by its ID when creating settlement requests.
393
+ * <Note>This operation has been deprecated.</Note> This operation registers a crypto address for crypto payouts. The registered address can later be referenced by its ID when creating settlement requests.
409
394
  * @param {Object} opts Optional parameters
410
395
  * @param {module:model/CreateCryptoAddressRequest} [CreateCryptoAddressRequest] The request body to register a crypto address.
411
396
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CryptoAddress} and HTTP response
@@ -431,7 +416,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
431
416
 
432
417
  /**
433
418
  * Create crypto address
434
- * This operation registers a crypto address for crypto payouts. The registered address can later be referenced by its ID when creating settlement requests.
419
+ * <Note>This operation has been deprecated.</Note> This operation registers a crypto address for crypto payouts. The registered address can later be referenced by its ID when creating settlement requests.
435
420
  * @param {Object} opts Optional parameters
436
421
  * @param {module:model/CreateCryptoAddressRequest} opts.CreateCryptoAddressRequest The request body to register a crypto address.
437
422
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CryptoAddress}
@@ -485,47 +470,6 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
485
470
  });
486
471
  }
487
472
 
488
- /**
489
- * Create destination bank account
490
- * This operation creates a destination bank account.
491
- * @param {Object} opts Optional parameters
492
- * @param {module:model/CreateDestinationBankAccountRequest} [CreateDestinationBankAccountRequest] The request body to create a destination bank account.
493
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DestinationBankAccount} and HTTP response
494
- */
495
- }, {
496
- key: "createDestinationBankAccountWithHttpInfo",
497
- value: function createDestinationBankAccountWithHttpInfo(opts) {
498
- opts = opts || {};
499
- var postBody = opts['CreateDestinationBankAccountRequest'];
500
- if (postBody && postBody.toJSON) {
501
- postBody = postBody.toJSON();
502
- }
503
- var pathParams = {};
504
- var queryParams = {};
505
- var headerParams = {};
506
- var formParams = {};
507
- var authNames = ['OAuth2', 'CoboAuth'];
508
- var contentTypes = ['application/json'];
509
- var accepts = ['application/json'];
510
- var returnType = _DestinationBankAccount["default"];
511
- return this.apiClient.callApi('/payments/destination/bank_account', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
512
- }
513
-
514
- /**
515
- * Create destination bank account
516
- * This operation creates a destination bank account.
517
- * @param {Object} opts Optional parameters
518
- * @param {module:model/CreateDestinationBankAccountRequest} opts.CreateDestinationBankAccountRequest The request body to create a destination bank account.
519
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DestinationBankAccount}
520
- */
521
- }, {
522
- key: "createDestinationBankAccount",
523
- value: function createDestinationBankAccount(opts) {
524
- return this.createDestinationBankAccountWithHttpInfo(opts).then(function (response_and_data) {
525
- return response_and_data.data;
526
- });
527
- }
528
-
529
473
  /**
530
474
  * Create destination entry
531
475
  * This operation creates one or more entries for a destination. A destination entry is a record of a destination's wallet addresses or bank accounts.
@@ -567,47 +511,6 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
567
511
  });
568
512
  }
569
513
 
570
- /**
571
- * Create destination wallet address
572
- * This operation creates a destination wallet address.
573
- * @param {Object} opts Optional parameters
574
- * @param {module:model/CreateDestinationWalletAddressRequest} [CreateDestinationWalletAddressRequest] The request body to create a destination wallet address.
575
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/WalletAddress} and HTTP response
576
- */
577
- }, {
578
- key: "createDestinationWalletAddressWithHttpInfo",
579
- value: function createDestinationWalletAddressWithHttpInfo(opts) {
580
- opts = opts || {};
581
- var postBody = opts['CreateDestinationWalletAddressRequest'];
582
- if (postBody && postBody.toJSON) {
583
- postBody = postBody.toJSON();
584
- }
585
- var pathParams = {};
586
- var queryParams = {};
587
- var headerParams = {};
588
- var formParams = {};
589
- var authNames = ['OAuth2', 'CoboAuth'];
590
- var contentTypes = ['application/json'];
591
- var accepts = ['application/json'];
592
- var returnType = _WalletAddress["default"];
593
- return this.apiClient.callApi('/payments/destination/wallet_address', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
594
- }
595
-
596
- /**
597
- * Create destination wallet address
598
- * This operation creates a destination wallet address.
599
- * @param {Object} opts Optional parameters
600
- * @param {module:model/CreateDestinationWalletAddressRequest} opts.CreateDestinationWalletAddressRequest The request body to create a destination wallet address.
601
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/WalletAddress}
602
- */
603
- }, {
604
- key: "createDestinationWalletAddress",
605
- value: function createDestinationWalletAddress(opts) {
606
- return this.createDestinationWalletAddressWithHttpInfo(opts).then(function (response_and_data) {
607
- return response_and_data.data;
608
- });
609
- }
610
-
611
514
  /**
612
515
  * Create forced sweep
613
516
  * <Warning>This operation has been deprecated.</Warning> This operation creates a forced sweep to transfer funds from addresses within a specified wallet to its designated sweep-to address.
@@ -774,7 +677,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
774
677
 
775
678
  /**
776
679
  * Create payout
777
- * This operation initiates a payout, distributing funds either to cryptocurrency addresses or to bank accounts as fiat currency.
680
+ * This operation creates a payout to withdraw available balances.
778
681
  * @param {Object} opts Optional parameters
779
682
  * @param {module:model/CreatePayoutRequest} [CreatePayoutRequest] The request body to create a payout.
780
683
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PaymentPayout} and HTTP response
@@ -800,7 +703,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
800
703
 
801
704
  /**
802
705
  * Create payout
803
- * This operation initiates a payout, distributing funds either to cryptocurrency addresses or to bank accounts as fiat currency.
706
+ * This operation creates a payout to withdraw available balances.
804
707
  * @param {Object} opts Optional parameters
805
708
  * @param {module:model/CreatePayoutRequest} opts.CreatePayoutRequest The request body to create a payout.
806
709
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PaymentPayout}
@@ -938,7 +841,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
938
841
 
939
842
  /**
940
843
  * Create settlement request
941
- * This operation creates a settlement request to withdraw available balances.
844
+ * <Note>This operation has been deprecated. Please use [Create payout](https://www.cobo.com/payments/en/api-references/payment/create-payout) instead.</Note> You can include multiple merchants and cryptocurrencies in a single settlement request.
942
845
  * @param {Object} opts Optional parameters
943
846
  * @param {module:model/CreateSettlementRequestRequest} [CreateSettlementRequestRequest] The request body to create a settlement request.
944
847
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Settlement} and HTTP response
@@ -964,7 +867,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
964
867
 
965
868
  /**
966
869
  * Create settlement request
967
- * This operation creates a settlement request to withdraw available balances.
870
+ * <Note>This operation has been deprecated. Please use [Create payout](https://www.cobo.com/payments/en/api-references/payment/create-payout) instead.</Note> You can include multiple merchants and cryptocurrencies in a single settlement request.
968
871
  * @param {Object} opts Optional parameters
969
872
  * @param {module:model/CreateSettlementRequestRequest} opts.CreateSettlementRequestRequest The request body to create a settlement request.
970
873
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Settlement}
@@ -978,45 +881,42 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
978
881
  }
979
882
 
980
883
  /**
981
- * Delete counterparty (Deprecated)
982
- * This operation deletes a counterparty.
983
- * @param {String} counterparty_id The counterparty ID.
984
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteCounterparty200Response} and HTTP response
884
+ * Batch create top-up addresses
885
+ * This operation creates top-up addresses for multiple payers under a specific merchant and token in a single request. <Note>This operation supports batch processing of up to 50 payers per request.</Note>
886
+ * @param {Object} opts Optional parameters
887
+ * @param {module:model/CreateTopUpAddresses} [CreateTopUpAddresses] The request body of the create top-up addresses operation.
888
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateTopUpAddresses201Response} and HTTP response
985
889
  */
986
890
  }, {
987
- key: "deleteCounterpartyWithHttpInfo",
988
- value: function deleteCounterpartyWithHttpInfo(counterparty_id) {
989
- var postBody = null;
891
+ key: "createTopUpAddressesWithHttpInfo",
892
+ value: function createTopUpAddressesWithHttpInfo(opts) {
893
+ opts = opts || {};
894
+ var postBody = opts['CreateTopUpAddresses'];
990
895
  if (postBody && postBody.toJSON) {
991
896
  postBody = postBody.toJSON();
992
897
  }
993
- // verify the required parameter 'counterparty_id' is set
994
- if (counterparty_id === undefined || counterparty_id === null) {
995
- throw new Error("Missing the required parameter 'counterparty_id' when calling deleteCounterparty");
996
- }
997
- var pathParams = {
998
- 'counterparty_id': counterparty_id
999
- };
898
+ var pathParams = {};
1000
899
  var queryParams = {};
1001
900
  var headerParams = {};
1002
901
  var formParams = {};
1003
902
  var authNames = ['OAuth2', 'CoboAuth'];
1004
- var contentTypes = [];
903
+ var contentTypes = ['application/json'];
1005
904
  var accepts = ['application/json'];
1006
- var returnType = _DeleteCounterparty200Response["default"];
1007
- return this.apiClient.callApi('/payments/counterparty/{counterparty_id}/delete', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
905
+ var returnType = _CreateTopUpAddresses201Response["default"];
906
+ return this.apiClient.callApi('/payments/topup/address', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1008
907
  }
1009
908
 
1010
909
  /**
1011
- * Delete counterparty (Deprecated)
1012
- * This operation deletes a counterparty.
1013
- * @param {String} counterparty_id The counterparty ID.
1014
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteCounterparty200Response}
910
+ * Batch create top-up addresses
911
+ * This operation creates top-up addresses for multiple payers under a specific merchant and token in a single request. <Note>This operation supports batch processing of up to 50 payers per request.</Note>
912
+ * @param {Object} opts Optional parameters
913
+ * @param {module:model/CreateTopUpAddresses} opts.CreateTopUpAddresses The request body of the create top-up addresses operation.
914
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateTopUpAddresses201Response}
1015
915
  */
1016
916
  }, {
1017
- key: "deleteCounterparty",
1018
- value: function deleteCounterparty(counterparty_id) {
1019
- return this.deleteCounterpartyWithHttpInfo(counterparty_id).then(function (response_and_data) {
917
+ key: "createTopUpAddresses",
918
+ value: function createTopUpAddresses(opts) {
919
+ return this.createTopUpAddressesWithHttpInfo(opts).then(function (response_and_data) {
1020
920
  return response_and_data.data;
1021
921
  });
1022
922
  }
@@ -1123,53 +1023,9 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
1123
1023
  });
1124
1024
  }
1125
1025
 
1126
- /**
1127
- * Delete counterparty wallet address
1128
- * This operation deletes a counterparty wallet address.
1129
- * @param {String} wallet_address_id The wallet address ID.
1130
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteCounterpartyWalletAddress200Response} and HTTP response
1131
- */
1132
- }, {
1133
- key: "deleteCounterpartyWalletAddressWithHttpInfo",
1134
- value: function deleteCounterpartyWalletAddressWithHttpInfo(wallet_address_id) {
1135
- var postBody = null;
1136
- if (postBody && postBody.toJSON) {
1137
- postBody = postBody.toJSON();
1138
- }
1139
- // verify the required parameter 'wallet_address_id' is set
1140
- if (wallet_address_id === undefined || wallet_address_id === null) {
1141
- throw new Error("Missing the required parameter 'wallet_address_id' when calling deleteCounterpartyWalletAddress");
1142
- }
1143
- var pathParams = {
1144
- 'wallet_address_id': wallet_address_id
1145
- };
1146
- var queryParams = {};
1147
- var headerParams = {};
1148
- var formParams = {};
1149
- var authNames = ['OAuth2', 'CoboAuth'];
1150
- var contentTypes = [];
1151
- var accepts = ['application/json'];
1152
- var returnType = _DeleteCounterpartyWalletAddress200Response["default"];
1153
- return this.apiClient.callApi('/payments/counterparty/wallet_address/{wallet_address_id}/delete', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1154
- }
1155
-
1156
- /**
1157
- * Delete counterparty wallet address
1158
- * This operation deletes a counterparty wallet address.
1159
- * @param {String} wallet_address_id The wallet address ID.
1160
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteCounterpartyWalletAddress200Response}
1161
- */
1162
- }, {
1163
- key: "deleteCounterpartyWalletAddress",
1164
- value: function deleteCounterpartyWalletAddress(wallet_address_id) {
1165
- return this.deleteCounterpartyWalletAddressWithHttpInfo(wallet_address_id).then(function (response_and_data) {
1166
- return response_and_data.data;
1167
- });
1168
- }
1169
-
1170
1026
  /**
1171
1027
  * Delete crypto address
1172
- * This operation unregisters a crypto address from being used for crypto payouts.
1028
+ * <Note>This operation has been deprecated.</Note> This operation unregisters a crypto address from being used for crypto payouts.
1173
1029
  * @param {String} crypto_address_id The crypto address ID.
1174
1030
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteCryptoAddress201Response} and HTTP response
1175
1031
  */
@@ -1199,7 +1055,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
1199
1055
 
1200
1056
  /**
1201
1057
  * Delete crypto address
1202
- * This operation unregisters a crypto address from being used for crypto payouts.
1058
+ * <Note>This operation has been deprecated.</Note> This operation unregisters a crypto address from being used for crypto payouts.
1203
1059
  * @param {String} crypto_address_id The crypto address ID.
1204
1060
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteCryptoAddress201Response}
1205
1061
  */
@@ -1211,94 +1067,6 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
1211
1067
  });
1212
1068
  }
1213
1069
 
1214
- /**
1215
- * Delete destination (Deprecated)
1216
- * This operation deletes a destination.
1217
- * @param {String} destination_id The destination ID.
1218
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteDestination200Response} and HTTP response
1219
- */
1220
- }, {
1221
- key: "deleteDestinationWithHttpInfo",
1222
- value: function deleteDestinationWithHttpInfo(destination_id) {
1223
- var postBody = null;
1224
- if (postBody && postBody.toJSON) {
1225
- postBody = postBody.toJSON();
1226
- }
1227
- // verify the required parameter 'destination_id' is set
1228
- if (destination_id === undefined || destination_id === null) {
1229
- throw new Error("Missing the required parameter 'destination_id' when calling deleteDestination");
1230
- }
1231
- var pathParams = {
1232
- 'destination_id': destination_id
1233
- };
1234
- var queryParams = {};
1235
- var headerParams = {};
1236
- var formParams = {};
1237
- var authNames = ['OAuth2', 'CoboAuth'];
1238
- var contentTypes = [];
1239
- var accepts = ['application/json'];
1240
- var returnType = _DeleteDestination200Response["default"];
1241
- return this.apiClient.callApi('/payments/destination/{destination_id}/delete', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1242
- }
1243
-
1244
- /**
1245
- * Delete destination (Deprecated)
1246
- * This operation deletes a destination.
1247
- * @param {String} destination_id The destination ID.
1248
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteDestination200Response}
1249
- */
1250
- }, {
1251
- key: "deleteDestination",
1252
- value: function deleteDestination(destination_id) {
1253
- return this.deleteDestinationWithHttpInfo(destination_id).then(function (response_and_data) {
1254
- return response_and_data.data;
1255
- });
1256
- }
1257
-
1258
- /**
1259
- * Delete destination bank account
1260
- * This operation deletes a destination bank account.
1261
- * @param {String} bank_account_id The bank account ID.
1262
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteDestinationBankAccount200Response} and HTTP response
1263
- */
1264
- }, {
1265
- key: "deleteDestinationBankAccountWithHttpInfo",
1266
- value: function deleteDestinationBankAccountWithHttpInfo(bank_account_id) {
1267
- var postBody = null;
1268
- if (postBody && postBody.toJSON) {
1269
- postBody = postBody.toJSON();
1270
- }
1271
- // verify the required parameter 'bank_account_id' is set
1272
- if (bank_account_id === undefined || bank_account_id === null) {
1273
- throw new Error("Missing the required parameter 'bank_account_id' when calling deleteDestinationBankAccount");
1274
- }
1275
- var pathParams = {
1276
- 'bank_account_id': bank_account_id
1277
- };
1278
- var queryParams = {};
1279
- var headerParams = {};
1280
- var formParams = {};
1281
- var authNames = ['OAuth2', 'CoboAuth'];
1282
- var contentTypes = [];
1283
- var accepts = ['application/json'];
1284
- var returnType = _DeleteDestinationBankAccount200Response["default"];
1285
- return this.apiClient.callApi('/payments/destination/bank_account/{bank_account_id}/delete', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1286
- }
1287
-
1288
- /**
1289
- * Delete destination bank account
1290
- * This operation deletes a destination bank account.
1291
- * @param {String} bank_account_id The bank account ID.
1292
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteDestinationBankAccount200Response}
1293
- */
1294
- }, {
1295
- key: "deleteDestinationBankAccount",
1296
- value: function deleteDestinationBankAccount(bank_account_id) {
1297
- return this.deleteDestinationBankAccountWithHttpInfo(bank_account_id).then(function (response_and_data) {
1298
- return response_and_data.data;
1299
- });
1300
- }
1301
-
1302
1070
  /**
1303
1071
  * Delete destination
1304
1072
  * This operation deletes a destination. Note that this operation will delete all entries under the destination, including bank accounts and addresses.
@@ -1402,91 +1170,6 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
1402
1170
  });
1403
1171
  }
1404
1172
 
1405
- /**
1406
- * Delete destination wallet address
1407
- * This operation deletes a destination wallet address.
1408
- * @param {String} wallet_address_id The wallet address ID.
1409
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteDestinationWalletAddress200Response} and HTTP response
1410
- */
1411
- }, {
1412
- key: "deleteDestinationWalletAddressWithHttpInfo",
1413
- value: function deleteDestinationWalletAddressWithHttpInfo(wallet_address_id) {
1414
- var postBody = null;
1415
- if (postBody && postBody.toJSON) {
1416
- postBody = postBody.toJSON();
1417
- }
1418
- // verify the required parameter 'wallet_address_id' is set
1419
- if (wallet_address_id === undefined || wallet_address_id === null) {
1420
- throw new Error("Missing the required parameter 'wallet_address_id' when calling deleteDestinationWalletAddress");
1421
- }
1422
- var pathParams = {
1423
- 'wallet_address_id': wallet_address_id
1424
- };
1425
- var queryParams = {};
1426
- var headerParams = {};
1427
- var formParams = {};
1428
- var authNames = ['OAuth2', 'CoboAuth'];
1429
- var contentTypes = [];
1430
- var accepts = ['application/json'];
1431
- var returnType = _DeleteDestinationWalletAddress200Response["default"];
1432
- return this.apiClient.callApi('/payments/destination/wallet_address/{wallet_address_id}/delete', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1433
- }
1434
-
1435
- /**
1436
- * Delete destination wallet address
1437
- * This operation deletes a destination wallet address.
1438
- * @param {String} wallet_address_id The wallet address ID.
1439
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteDestinationWalletAddress200Response}
1440
- */
1441
- }, {
1442
- key: "deleteDestinationWalletAddress",
1443
- value: function deleteDestinationWalletAddress(wallet_address_id) {
1444
- return this.deleteDestinationWalletAddressWithHttpInfo(wallet_address_id).then(function (response_and_data) {
1445
- return response_and_data.data;
1446
- });
1447
- }
1448
-
1449
- /**
1450
- * Enable or disable destination whitelist
1451
- * This operation enables or disables the whitelist for a destination.
1452
- * @param {Object} opts Optional parameters
1453
- * @param {module:model/EnableDestinationWhitelistRequest} [EnableDestinationWhitelistRequest] The request body to enable or disable the destination whitelist.
1454
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/QueryDestinationWhitelistEnabled200Response} and HTTP response
1455
- */
1456
- }, {
1457
- key: "enableDestinationWhitelistWithHttpInfo",
1458
- value: function enableDestinationWhitelistWithHttpInfo(opts) {
1459
- opts = opts || {};
1460
- var postBody = opts['EnableDestinationWhitelistRequest'];
1461
- if (postBody && postBody.toJSON) {
1462
- postBody = postBody.toJSON();
1463
- }
1464
- var pathParams = {};
1465
- var queryParams = {};
1466
- var headerParams = {};
1467
- var formParams = {};
1468
- var authNames = ['OAuth2', 'CoboAuth'];
1469
- var contentTypes = ['application/json'];
1470
- var accepts = ['application/json'];
1471
- var returnType = _QueryDestinationWhitelistEnabled200Response["default"];
1472
- return this.apiClient.callApi('/payments/destination/enable_whitelist', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1473
- }
1474
-
1475
- /**
1476
- * Enable or disable destination whitelist
1477
- * This operation enables or disables the whitelist for a destination.
1478
- * @param {Object} opts Optional parameters
1479
- * @param {module:model/EnableDestinationWhitelistRequest} opts.EnableDestinationWhitelistRequest The request body to enable or disable the destination whitelist.
1480
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/QueryDestinationWhitelistEnabled200Response}
1481
- */
1482
- }, {
1483
- key: "enableDestinationWhitelist",
1484
- value: function enableDestinationWhitelist(opts) {
1485
- return this.enableDestinationWhitelistWithHttpInfo(opts).then(function (response_and_data) {
1486
- return response_and_data.data;
1487
- });
1488
- }
1489
-
1490
1173
  /**
1491
1174
  * Get available allocation amount
1492
1175
  * This operation retrieves the available amount that can be allocated from a source account to a destination account.
@@ -1590,24 +1273,24 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
1590
1273
  }
1591
1274
 
1592
1275
  /**
1593
- * Get counterparty information
1594
- * This operation retrieves the detailed information about a specified counterparty.
1595
- * @param {String} counterparty_id The counterparty ID.
1596
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CounterpartyDetail} and HTTP response
1276
+ * Get bulk send information
1277
+ * This operation retrieves the information of a specific bulk send.
1278
+ * @param {String} bulk_send_id The bulk send ID.
1279
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PaymentBulkSend} and HTTP response
1597
1280
  */
1598
1281
  }, {
1599
- key: "getCounterpartyWithHttpInfo",
1600
- value: function getCounterpartyWithHttpInfo(counterparty_id) {
1282
+ key: "getBulkSendByIdWithHttpInfo",
1283
+ value: function getBulkSendByIdWithHttpInfo(bulk_send_id) {
1601
1284
  var postBody = null;
1602
1285
  if (postBody && postBody.toJSON) {
1603
1286
  postBody = postBody.toJSON();
1604
1287
  }
1605
- // verify the required parameter 'counterparty_id' is set
1606
- if (counterparty_id === undefined || counterparty_id === null) {
1607
- throw new Error("Missing the required parameter 'counterparty_id' when calling getCounterparty");
1288
+ // verify the required parameter 'bulk_send_id' is set
1289
+ if (bulk_send_id === undefined || bulk_send_id === null) {
1290
+ throw new Error("Missing the required parameter 'bulk_send_id' when calling getBulkSendById");
1608
1291
  }
1609
1292
  var pathParams = {
1610
- 'counterparty_id': counterparty_id
1293
+ 'bulk_send_id': bulk_send_id
1611
1294
  };
1612
1295
  var queryParams = {};
1613
1296
  var headerParams = {};
@@ -1615,40 +1298,40 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
1615
1298
  var authNames = ['OAuth2', 'CoboAuth'];
1616
1299
  var contentTypes = [];
1617
1300
  var accepts = ['application/json'];
1618
- var returnType = _CounterpartyDetail["default"];
1619
- return this.apiClient.callApi('/payments/counterparty/{counterparty_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1301
+ var returnType = _PaymentBulkSend["default"];
1302
+ return this.apiClient.callApi('/payments/bulk_sends/{bulk_send_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1620
1303
  }
1621
1304
 
1622
1305
  /**
1623
- * Get counterparty information
1624
- * This operation retrieves the detailed information about a specified counterparty.
1625
- * @param {String} counterparty_id The counterparty ID.
1626
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CounterpartyDetail}
1306
+ * Get bulk send information
1307
+ * This operation retrieves the information of a specific bulk send.
1308
+ * @param {String} bulk_send_id The bulk send ID.
1309
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PaymentBulkSend}
1627
1310
  */
1628
1311
  }, {
1629
- key: "getCounterparty",
1630
- value: function getCounterparty(counterparty_id) {
1631
- return this.getCounterpartyWithHttpInfo(counterparty_id).then(function (response_and_data) {
1312
+ key: "getBulkSendById",
1313
+ value: function getBulkSendById(bulk_send_id) {
1314
+ return this.getBulkSendByIdWithHttpInfo(bulk_send_id).then(function (response_and_data) {
1632
1315
  return response_and_data.data;
1633
1316
  });
1634
1317
  }
1635
1318
 
1636
1319
  /**
1637
- * Get counterparty information (Deprecated)
1320
+ * Get counterparty information
1638
1321
  * This operation retrieves the detailed information about a specified counterparty.
1639
1322
  * @param {String} counterparty_id The counterparty ID.
1640
1323
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CounterpartyDetail} and HTTP response
1641
1324
  */
1642
1325
  }, {
1643
- key: "getCounterpartyDetailByIdWithHttpInfo",
1644
- value: function getCounterpartyDetailByIdWithHttpInfo(counterparty_id) {
1326
+ key: "getCounterpartyWithHttpInfo",
1327
+ value: function getCounterpartyWithHttpInfo(counterparty_id) {
1645
1328
  var postBody = null;
1646
1329
  if (postBody && postBody.toJSON) {
1647
1330
  postBody = postBody.toJSON();
1648
1331
  }
1649
1332
  // verify the required parameter 'counterparty_id' is set
1650
1333
  if (counterparty_id === undefined || counterparty_id === null) {
1651
- throw new Error("Missing the required parameter 'counterparty_id' when calling getCounterpartyDetailById");
1334
+ throw new Error("Missing the required parameter 'counterparty_id' when calling getCounterparty");
1652
1335
  }
1653
1336
  var pathParams = {
1654
1337
  'counterparty_id': counterparty_id
@@ -1660,19 +1343,19 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
1660
1343
  var contentTypes = [];
1661
1344
  var accepts = ['application/json'];
1662
1345
  var returnType = _CounterpartyDetail["default"];
1663
- return this.apiClient.callApi('/payments/counterparty/{counterparty_id}/detail', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1346
+ return this.apiClient.callApi('/payments/counterparty/{counterparty_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1664
1347
  }
1665
1348
 
1666
1349
  /**
1667
- * Get counterparty information (Deprecated)
1350
+ * Get counterparty information
1668
1351
  * This operation retrieves the detailed information about a specified counterparty.
1669
1352
  * @param {String} counterparty_id The counterparty ID.
1670
1353
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CounterpartyDetail}
1671
1354
  */
1672
1355
  }, {
1673
- key: "getCounterpartyDetailById",
1674
- value: function getCounterpartyDetailById(counterparty_id) {
1675
- return this.getCounterpartyDetailByIdWithHttpInfo(counterparty_id).then(function (response_and_data) {
1356
+ key: "getCounterparty",
1357
+ value: function getCounterparty(counterparty_id) {
1358
+ return this.getCounterpartyWithHttpInfo(counterparty_id).then(function (response_and_data) {
1676
1359
  return response_and_data.data;
1677
1360
  });
1678
1361
  }
@@ -1772,94 +1455,6 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
1772
1455
  });
1773
1456
  }
1774
1457
 
1775
- /**
1776
- * Get destination bank account information
1777
- * This operation retrieves the detailed information about a specified destination bank account.
1778
- * @param {String} bank_account_id The bank account ID.
1779
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DestinationBankAccountDetail} and HTTP response
1780
- */
1781
- }, {
1782
- key: "getDestinationBankAccountDetailByIdWithHttpInfo",
1783
- value: function getDestinationBankAccountDetailByIdWithHttpInfo(bank_account_id) {
1784
- var postBody = null;
1785
- if (postBody && postBody.toJSON) {
1786
- postBody = postBody.toJSON();
1787
- }
1788
- // verify the required parameter 'bank_account_id' is set
1789
- if (bank_account_id === undefined || bank_account_id === null) {
1790
- throw new Error("Missing the required parameter 'bank_account_id' when calling getDestinationBankAccountDetailById");
1791
- }
1792
- var pathParams = {
1793
- 'bank_account_id': bank_account_id
1794
- };
1795
- var queryParams = {};
1796
- var headerParams = {};
1797
- var formParams = {};
1798
- var authNames = ['OAuth2', 'CoboAuth'];
1799
- var contentTypes = [];
1800
- var accepts = ['application/json'];
1801
- var returnType = _DestinationBankAccountDetail["default"];
1802
- return this.apiClient.callApi('/payments/destination/bank_account/{bank_account_id}/detail', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1803
- }
1804
-
1805
- /**
1806
- * Get destination bank account information
1807
- * This operation retrieves the detailed information about a specified destination bank account.
1808
- * @param {String} bank_account_id The bank account ID.
1809
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DestinationBankAccountDetail}
1810
- */
1811
- }, {
1812
- key: "getDestinationBankAccountDetailById",
1813
- value: function getDestinationBankAccountDetailById(bank_account_id) {
1814
- return this.getDestinationBankAccountDetailByIdWithHttpInfo(bank_account_id).then(function (response_and_data) {
1815
- return response_and_data.data;
1816
- });
1817
- }
1818
-
1819
- /**
1820
- * Get destination information (Deprecated)
1821
- * This operation retrieves the detailed information about a specified destination.
1822
- * @param {String} destination_id The destination ID.
1823
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DestinationDetail} and HTTP response
1824
- */
1825
- }, {
1826
- key: "getDestinationDetailByIdWithHttpInfo",
1827
- value: function getDestinationDetailByIdWithHttpInfo(destination_id) {
1828
- var postBody = null;
1829
- if (postBody && postBody.toJSON) {
1830
- postBody = postBody.toJSON();
1831
- }
1832
- // verify the required parameter 'destination_id' is set
1833
- if (destination_id === undefined || destination_id === null) {
1834
- throw new Error("Missing the required parameter 'destination_id' when calling getDestinationDetailById");
1835
- }
1836
- var pathParams = {
1837
- 'destination_id': destination_id
1838
- };
1839
- var queryParams = {};
1840
- var headerParams = {};
1841
- var formParams = {};
1842
- var authNames = ['OAuth2', 'CoboAuth'];
1843
- var contentTypes = [];
1844
- var accepts = ['application/json'];
1845
- var returnType = _DestinationDetail["default"];
1846
- return this.apiClient.callApi('/payments/destination/{destination_id}/detail', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1847
- }
1848
-
1849
- /**
1850
- * Get destination information (Deprecated)
1851
- * This operation retrieves the detailed information about a specified destination.
1852
- * @param {String} destination_id The destination ID.
1853
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DestinationDetail}
1854
- */
1855
- }, {
1856
- key: "getDestinationDetailById",
1857
- value: function getDestinationDetailById(destination_id) {
1858
- return this.getDestinationDetailByIdWithHttpInfo(destination_id).then(function (response_and_data) {
1859
- return response_and_data.data;
1860
- });
1861
- }
1862
-
1863
1458
  /**
1864
1459
  * Get destination entry information
1865
1460
  * This operation retrieves the detailed information about a specified destination entry.
@@ -2254,7 +1849,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
2254
1849
 
2255
1850
  /**
2256
1851
  * Get settlement request information
2257
- * This operation retrieves the information of a specific settlement request.
1852
+ * <Note>This operation has been deprecated. Please use [Get payout information](https://www.cobo.com/payments/en/api-references/payment/get-payout-information) instead.</Note> This operation retrieves the information of a specific settlement request.
2258
1853
  * @param {String} settlement_request_id The settlement request ID.
2259
1854
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Settlement} and HTTP response
2260
1855
  */
@@ -2284,7 +1879,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
2284
1879
 
2285
1880
  /**
2286
1881
  * Get settlement request information
2287
- * This operation retrieves the information of a specific settlement request.
1882
+ * <Note>This operation has been deprecated. Please use [Get payout information](https://www.cobo.com/payments/en/api-references/payment/get-payout-information) instead.</Note> This operation retrieves the information of a specific settlement request.
2288
1883
  * @param {String} settlement_request_id The settlement request ID.
2289
1884
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Settlement}
2290
1885
  */
@@ -2302,7 +1897,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
2302
1897
  * @param {Object} opts Optional parameters
2303
1898
  * @param {String} [merchant_ids] A list of merchant IDs to query.
2304
1899
  * @param {String} [currency = 'USD')] The currency for the operation. Currently, only `USD` is supported.
2305
- * @param {module:model/AcquiringType} [acquiring_type]
1900
+ * @param {module:model/AcquiringType} [acquiring_type] This parameter has been deprecated
2306
1901
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetSettlementInfoByIds200Response} and HTTP response
2307
1902
  */
2308
1903
  }, {
@@ -2334,7 +1929,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
2334
1929
  * @param {Object} opts Optional parameters
2335
1930
  * @param {String} opts.merchant_ids A list of merchant IDs to query.
2336
1931
  * @param {String} opts.currency The currency for the operation. Currently, only `USD` is supported. (default to 'USD')
2337
- * @param {module:model/AcquiringType} opts.acquiring_type
1932
+ * @param {module:model/AcquiringType} opts.acquiring_type This parameter has been deprecated
2338
1933
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetSettlementInfoByIds200Response}
2339
1934
  */
2340
1935
  }, {
@@ -2403,8 +1998,8 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
2403
1998
  }
2404
1999
 
2405
2000
  /**
2406
- * List all allocation records
2407
- * This operation retrieves the information of all allocation records. One allocation record corresponds to one allocation request in a batch allocation.
2001
+ * List all allocation items
2002
+ * This operation retrieves the information of all allocations.
2408
2003
  * @param {Object} opts Optional parameters
2409
2004
  * @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
2410
2005
  * @param {String} [before] A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response.
@@ -2413,11 +2008,11 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
2413
2008
  * @param {String} [destination_account] The destination account. - If the destination account is a merchant account, provide the merchant's ID (e.g., \"M1001\"). - If the destination account is the developer account, use the string `\"developer\"`.
2414
2009
  * @param {String} [token_id] The token ID, which is a unique identifier that specifies both the blockchain network and cryptocurrency token in the format `{CHAIN}_{TOKEN}`. Supported values include: - USDC: `ETH_USDC`, `ARBITRUM_USDCOIN`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC2`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
2415
2010
  * @param {String} [batch_allocation_id] The batch allocation ID.
2416
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListAllocations200Response} and HTTP response
2011
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListAllocationItems200Response} and HTTP response
2417
2012
  */
2418
2013
  }, {
2419
- key: "listAllocationsWithHttpInfo",
2420
- value: function listAllocationsWithHttpInfo(opts) {
2014
+ key: "listAllocationItemsWithHttpInfo",
2015
+ value: function listAllocationItemsWithHttpInfo(opts) {
2421
2016
  opts = opts || {};
2422
2017
  var postBody = null;
2423
2018
  if (postBody && postBody.toJSON) {
@@ -2438,13 +2033,13 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
2438
2033
  var authNames = ['OAuth2', 'CoboAuth'];
2439
2034
  var contentTypes = [];
2440
2035
  var accepts = ['application/json'];
2441
- var returnType = _ListAllocations200Response["default"];
2442
- return this.apiClient.callApi('/payments/allocation_records', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
2036
+ var returnType = _ListAllocationItems200Response["default"];
2037
+ return this.apiClient.callApi('/payments/allocation_items', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
2443
2038
  }
2444
2039
 
2445
2040
  /**
2446
- * List all allocation records
2447
- * This operation retrieves the information of all allocation records. One allocation record corresponds to one allocation request in a batch allocation.
2041
+ * List all allocation items
2042
+ * This operation retrieves the information of all allocations.
2448
2043
  * @param {Object} opts Optional parameters
2449
2044
  * @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
2450
2045
  * @param {String} opts.before A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response.
@@ -2453,19 +2048,19 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
2453
2048
  * @param {String} opts.destination_account The destination account. - If the destination account is a merchant account, provide the merchant's ID (e.g., \"M1001\"). - If the destination account is the developer account, use the string `\"developer\"`.
2454
2049
  * @param {String} opts.token_id The token ID, which is a unique identifier that specifies both the blockchain network and cryptocurrency token in the format `{CHAIN}_{TOKEN}`. Supported values include: - USDC: `ETH_USDC`, `ARBITRUM_USDCOIN`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC2`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
2455
2050
  * @param {String} opts.batch_allocation_id The batch allocation ID.
2456
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListAllocations200Response}
2051
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListAllocationItems200Response}
2457
2052
  */
2458
2053
  }, {
2459
- key: "listAllocations",
2460
- value: function listAllocations(opts) {
2461
- return this.listAllocationsWithHttpInfo(opts).then(function (response_and_data) {
2054
+ key: "listAllocationItems",
2055
+ value: function listAllocationItems(opts) {
2056
+ return this.listAllocationItemsWithHttpInfo(opts).then(function (response_and_data) {
2462
2057
  return response_and_data.data;
2463
2058
  });
2464
2059
  }
2465
2060
 
2466
2061
  /**
2467
2062
  * List all bank accounts
2468
- * <Note>This operation has been deprecated.</Note> This operation retrieves the information of all bank accounts you have registered for payment settlement. Contact our support team at [help@cobo.com](mailto:help@cobo.com) to register a new bank account.
2063
+ * <Note>This operation has been deprecated. Please use [List counterparty entries](https://www.cobo.com/payments/en/api-references/payment/list-counterparty-entries) instead.</Note> This operation retrieves the information of all bank accounts registered.
2469
2064
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/BankAccount>} and HTTP response
2470
2065
  */
2471
2066
  }, {
@@ -2488,7 +2083,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
2488
2083
 
2489
2084
  /**
2490
2085
  * List all bank accounts
2491
- * <Note>This operation has been deprecated.</Note> This operation retrieves the information of all bank accounts you have registered for payment settlement. Contact our support team at [help@cobo.com](mailto:help@cobo.com) to register a new bank account.
2086
+ * <Note>This operation has been deprecated. Please use [List counterparty entries](https://www.cobo.com/payments/en/api-references/payment/list-counterparty-entries) instead.</Note> This operation retrieves the information of all bank accounts registered.
2492
2087
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/BankAccount>}
2493
2088
  */
2494
2089
  }, {
@@ -2551,6 +2146,63 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
2551
2146
  });
2552
2147
  }
2553
2148
 
2149
+ /**
2150
+ * List bulk send items
2151
+ * This operation retrieves the list of items for a specific bulk send.
2152
+ * @param {String} bulk_send_id The bulk send ID.
2153
+ * @param {Object} opts Optional parameters
2154
+ * @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
2155
+ * @param {String} [before] A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response.
2156
+ * @param {String} [after] A cursor indicating the position after the current page. This value is generated by Cobo and returned in the response. You do not need to provide it on the first request. When paginating forward (to the next page), you should pass the after value returned from the last response.
2157
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListBulkSendItems200Response} and HTTP response
2158
+ */
2159
+ }, {
2160
+ key: "listBulkSendItemsWithHttpInfo",
2161
+ value: function listBulkSendItemsWithHttpInfo(bulk_send_id, opts) {
2162
+ opts = opts || {};
2163
+ var postBody = null;
2164
+ if (postBody && postBody.toJSON) {
2165
+ postBody = postBody.toJSON();
2166
+ }
2167
+ // verify the required parameter 'bulk_send_id' is set
2168
+ if (bulk_send_id === undefined || bulk_send_id === null) {
2169
+ throw new Error("Missing the required parameter 'bulk_send_id' when calling listBulkSendItems");
2170
+ }
2171
+ var pathParams = {
2172
+ 'bulk_send_id': bulk_send_id
2173
+ };
2174
+ var queryParams = {
2175
+ 'limit': opts['limit'],
2176
+ 'before': opts['before'],
2177
+ 'after': opts['after']
2178
+ };
2179
+ var headerParams = {};
2180
+ var formParams = {};
2181
+ var authNames = ['OAuth2', 'CoboAuth'];
2182
+ var contentTypes = [];
2183
+ var accepts = ['application/json'];
2184
+ var returnType = _ListBulkSendItems200Response["default"];
2185
+ return this.apiClient.callApi('/payments/bulk_sends/{bulk_send_id}/items', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
2186
+ }
2187
+
2188
+ /**
2189
+ * List bulk send items
2190
+ * This operation retrieves the list of items for a specific bulk send.
2191
+ * @param {String} bulk_send_id The bulk send ID.
2192
+ * @param {Object} opts Optional parameters
2193
+ * @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
2194
+ * @param {String} opts.before A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response.
2195
+ * @param {String} opts.after A cursor indicating the position after the current page. This value is generated by Cobo and returned in the response. You do not need to provide it on the first request. When paginating forward (to the next page), you should pass the after value returned from the last response.
2196
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListBulkSendItems200Response}
2197
+ */
2198
+ }, {
2199
+ key: "listBulkSendItems",
2200
+ value: function listBulkSendItems(bulk_send_id, opts) {
2201
+ return this.listBulkSendItemsWithHttpInfo(bulk_send_id, opts).then(function (response_and_data) {
2202
+ return response_and_data.data;
2203
+ });
2204
+ }
2205
+
2554
2206
  /**
2555
2207
  * List all counterparties
2556
2208
  * This operation retrieves the information of all counterparties. You can filter the results by using a keyword for fuzzy search on counterparty names.
@@ -2670,67 +2322,9 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
2670
2322
  });
2671
2323
  }
2672
2324
 
2673
- /**
2674
- * List counterparty wallet addresses
2675
- * This operation retrieves the information of counterparty wallet addresses.
2676
- * @param {Object} opts Optional parameters
2677
- * @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
2678
- * @param {String} [before] A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response.
2679
- * @param {String} [after] A cursor indicating the position after the current page. This value is generated by Cobo and returned in the response. You do not need to provide it on the first request. When paginating forward (to the next page), you should pass the after value returned from the last response.
2680
- * @param {String} [counterparty_id] The counterparty ID.
2681
- * @param {String} [chain_ids] The chain ID, which is the unique identifier of a blockchain.
2682
- * @param {String} [wallet_address] The wallet address.
2683
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListCounterpartyWalletAddress200Response} and HTTP response
2684
- */
2685
- }, {
2686
- key: "listCounterpartyWalletAddressWithHttpInfo",
2687
- value: function listCounterpartyWalletAddressWithHttpInfo(opts) {
2688
- opts = opts || {};
2689
- var postBody = null;
2690
- if (postBody && postBody.toJSON) {
2691
- postBody = postBody.toJSON();
2692
- }
2693
- var pathParams = {};
2694
- var queryParams = {
2695
- 'limit': opts['limit'],
2696
- 'before': opts['before'],
2697
- 'after': opts['after'],
2698
- 'counterparty_id': opts['counterparty_id'],
2699
- 'chain_ids': opts['chain_ids'],
2700
- 'wallet_address': opts['wallet_address']
2701
- };
2702
- var headerParams = {};
2703
- var formParams = {};
2704
- var authNames = ['OAuth2', 'CoboAuth'];
2705
- var contentTypes = [];
2706
- var accepts = ['application/json'];
2707
- var returnType = _ListCounterpartyWalletAddress200Response["default"];
2708
- return this.apiClient.callApi('/payments/counterparty/wallet_address', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
2709
- }
2710
-
2711
- /**
2712
- * List counterparty wallet addresses
2713
- * This operation retrieves the information of counterparty wallet addresses.
2714
- * @param {Object} opts Optional parameters
2715
- * @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
2716
- * @param {String} opts.before A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response.
2717
- * @param {String} opts.after A cursor indicating the position after the current page. This value is generated by Cobo and returned in the response. You do not need to provide it on the first request. When paginating forward (to the next page), you should pass the after value returned from the last response.
2718
- * @param {String} opts.counterparty_id The counterparty ID.
2719
- * @param {String} opts.chain_ids The chain ID, which is the unique identifier of a blockchain.
2720
- * @param {String} opts.wallet_address The wallet address.
2721
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListCounterpartyWalletAddress200Response}
2722
- */
2723
- }, {
2724
- key: "listCounterpartyWalletAddress",
2725
- value: function listCounterpartyWalletAddress(opts) {
2726
- return this.listCounterpartyWalletAddressWithHttpInfo(opts).then(function (response_and_data) {
2727
- return response_and_data.data;
2728
- });
2729
- }
2730
-
2731
2325
  /**
2732
2326
  * List crypto addresses
2733
- * This operation retrieves a list of crypto addresses registered for crypto payouts. Contact our support team at [help@cobo.com](mailto:help@cobo.com) to register a new crypto address.
2327
+ * <Note>This operation has been deprecated.</Note> This operation retrieves a list of crypto addresses registered for crypto payouts. Contact our support team at [help@cobo.com](mailto:help@cobo.com) to register a new crypto address.
2734
2328
  * @param {Object} opts Optional parameters
2735
2329
  * @param {String} [token_id] The token ID, which is a unique identifier that specifies both the blockchain network and cryptocurrency token in the format `{CHAIN}_{TOKEN}`. Supported values include: - USDC: `ETH_USDC`, `ARBITRUM_USDCOIN`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC2`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
2736
2330
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/CryptoAddress>} and HTTP response
@@ -2758,7 +2352,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
2758
2352
 
2759
2353
  /**
2760
2354
  * List crypto addresses
2761
- * This operation retrieves a list of crypto addresses registered for crypto payouts. Contact our support team at [help@cobo.com](mailto:help@cobo.com) to register a new crypto address.
2355
+ * <Note>This operation has been deprecated.</Note> This operation retrieves a list of crypto addresses registered for crypto payouts. Contact our support team at [help@cobo.com](mailto:help@cobo.com) to register a new crypto address.
2762
2356
  * @param {Object} opts Optional parameters
2763
2357
  * @param {String} opts.token_id The token ID, which is a unique identifier that specifies both the blockchain network and cryptocurrency token in the format `{CHAIN}_{TOKEN}`. Supported values include: - USDC: `ETH_USDC`, `ARBITRUM_USDCOIN`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC2`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
2764
2358
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/CryptoAddress>}
@@ -2771,64 +2365,6 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
2771
2365
  });
2772
2366
  }
2773
2367
 
2774
- /**
2775
- * List destination bank accounts
2776
- * This operation retrieves the information of destination bank accounts.
2777
- * @param {Object} opts Optional parameters
2778
- * @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
2779
- * @param {String} [before] A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response.
2780
- * @param {String} [after] A cursor indicating the position after the current page. This value is generated by Cobo and returned in the response. You do not need to provide it on the first request. When paginating forward (to the next page), you should pass the after value returned from the last response.
2781
- * @param {String} [keyword] A search term for performing fuzzy matches in the search query.
2782
- * @param {String} [destination_id] The destination ID.
2783
- * @param {module:model/BankAccountStatus} [bank_account_status] BankAccountStatus defines the status of the bank account: - `Pending`: The bank account is pending verification by Cobo. - `Approved`: The bank account has been approved by Cobo. - `Rejected`: The bank account has been rejected by Cobo.
2784
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListDestinationBankAccounts200Response} and HTTP response
2785
- */
2786
- }, {
2787
- key: "listDestinationBankAccountsWithHttpInfo",
2788
- value: function listDestinationBankAccountsWithHttpInfo(opts) {
2789
- opts = opts || {};
2790
- var postBody = null;
2791
- if (postBody && postBody.toJSON) {
2792
- postBody = postBody.toJSON();
2793
- }
2794
- var pathParams = {};
2795
- var queryParams = {
2796
- 'limit': opts['limit'],
2797
- 'before': opts['before'],
2798
- 'after': opts['after'],
2799
- 'keyword': opts['keyword'],
2800
- 'destination_id': opts['destination_id'],
2801
- 'bank_account_status': opts['bank_account_status']
2802
- };
2803
- var headerParams = {};
2804
- var formParams = {};
2805
- var authNames = ['OAuth2', 'CoboAuth'];
2806
- var contentTypes = [];
2807
- var accepts = ['application/json'];
2808
- var returnType = _ListDestinationBankAccounts200Response["default"];
2809
- return this.apiClient.callApi('/payments/destination/bank_account', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
2810
- }
2811
-
2812
- /**
2813
- * List destination bank accounts
2814
- * This operation retrieves the information of destination bank accounts.
2815
- * @param {Object} opts Optional parameters
2816
- * @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
2817
- * @param {String} opts.before A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response.
2818
- * @param {String} opts.after A cursor indicating the position after the current page. This value is generated by Cobo and returned in the response. You do not need to provide it on the first request. When paginating forward (to the next page), you should pass the after value returned from the last response.
2819
- * @param {String} opts.keyword A search term for performing fuzzy matches in the search query.
2820
- * @param {String} opts.destination_id The destination ID.
2821
- * @param {module:model/BankAccountStatus} opts.bank_account_status BankAccountStatus defines the status of the bank account: - `Pending`: The bank account is pending verification by Cobo. - `Approved`: The bank account has been approved by Cobo. - `Rejected`: The bank account has been rejected by Cobo.
2822
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListDestinationBankAccounts200Response}
2823
- */
2824
- }, {
2825
- key: "listDestinationBankAccounts",
2826
- value: function listDestinationBankAccounts(opts) {
2827
- return this.listDestinationBankAccountsWithHttpInfo(opts).then(function (response_and_data) {
2828
- return response_and_data.data;
2829
- });
2830
- }
2831
-
2832
2368
  /**
2833
2369
  * List destination entries
2834
2370
  * This operation retrieves the information of destination entries.
@@ -2900,64 +2436,6 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
2900
2436
  });
2901
2437
  }
2902
2438
 
2903
- /**
2904
- * List destination wallet addresses
2905
- * This operation retrieves the information of destination wallet addresses.
2906
- * @param {Object} opts Optional parameters
2907
- * @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
2908
- * @param {String} [before] A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response.
2909
- * @param {String} [after] A cursor indicating the position after the current page. This value is generated by Cobo and returned in the response. You do not need to provide it on the first request. When paginating forward (to the next page), you should pass the after value returned from the last response.
2910
- * @param {String} [destination_id] The destination ID.
2911
- * @param {String} [chain_ids] The chain ID, which is the unique identifier of a blockchain.
2912
- * @param {String} [wallet_address] The wallet address.
2913
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListDestinationWalletAddresses200Response} and HTTP response
2914
- */
2915
- }, {
2916
- key: "listDestinationWalletAddressesWithHttpInfo",
2917
- value: function listDestinationWalletAddressesWithHttpInfo(opts) {
2918
- opts = opts || {};
2919
- var postBody = null;
2920
- if (postBody && postBody.toJSON) {
2921
- postBody = postBody.toJSON();
2922
- }
2923
- var pathParams = {};
2924
- var queryParams = {
2925
- 'limit': opts['limit'],
2926
- 'before': opts['before'],
2927
- 'after': opts['after'],
2928
- 'destination_id': opts['destination_id'],
2929
- 'chain_ids': opts['chain_ids'],
2930
- 'wallet_address': opts['wallet_address']
2931
- };
2932
- var headerParams = {};
2933
- var formParams = {};
2934
- var authNames = ['OAuth2', 'CoboAuth'];
2935
- var contentTypes = [];
2936
- var accepts = ['application/json'];
2937
- var returnType = _ListDestinationWalletAddresses200Response["default"];
2938
- return this.apiClient.callApi('/payments/destination/wallet_address', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
2939
- }
2940
-
2941
- /**
2942
- * List destination wallet addresses
2943
- * This operation retrieves the information of destination wallet addresses.
2944
- * @param {Object} opts Optional parameters
2945
- * @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
2946
- * @param {String} opts.before A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response.
2947
- * @param {String} opts.after A cursor indicating the position after the current page. This value is generated by Cobo and returned in the response. You do not need to provide it on the first request. When paginating forward (to the next page), you should pass the after value returned from the last response.
2948
- * @param {String} opts.destination_id The destination ID.
2949
- * @param {String} opts.chain_ids The chain ID, which is the unique identifier of a blockchain.
2950
- * @param {String} opts.wallet_address The wallet address.
2951
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListDestinationWalletAddresses200Response}
2952
- */
2953
- }, {
2954
- key: "listDestinationWalletAddresses",
2955
- value: function listDestinationWalletAddresses(opts) {
2956
- return this.listDestinationWalletAddressesWithHttpInfo(opts).then(function (response_and_data) {
2957
- return response_and_data.data;
2958
- });
2959
- }
2960
-
2961
2439
  /**
2962
2440
  * List all destinations
2963
2441
  * This operation retrieves the information of all destinations. You can filter the results by using a keyword for fuzzy search on destination names.
@@ -3077,7 +2555,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
3077
2555
  * @param {String} token_id The token ID, which is a unique identifier that specifies both the blockchain network and cryptocurrency token in the format `{CHAIN}_{TOKEN}`. Supported values include: - USDC: `ETH_USDC`, `ARBITRUM_USDCOIN`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC2`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
3078
2556
  * @param {Object} opts Optional parameters
3079
2557
  * @param {String} [merchant_ids] A list of merchant IDs to query.
3080
- * @param {module:model/AcquiringType} [acquiring_type]
2558
+ * @param {module:model/AcquiringType} [acquiring_type] This parameter has been deprecated
3081
2559
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListMerchantBalances200Response} and HTTP response
3082
2560
  */
3083
2561
  }, {
@@ -3113,7 +2591,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
3113
2591
  * @param {String} token_id The token ID, which is a unique identifier that specifies both the blockchain network and cryptocurrency token in the format `{CHAIN}_{TOKEN}`. Supported values include: - USDC: `ETH_USDC`, `ARBITRUM_USDCOIN`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC2`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
3114
2592
  * @param {Object} opts Optional parameters
3115
2593
  * @param {String} opts.merchant_ids A list of merchant IDs to query.
3116
- * @param {module:model/AcquiringType} opts.acquiring_type
2594
+ * @param {module:model/AcquiringType} opts.acquiring_type This parameter has been deprecated
3117
2595
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListMerchantBalances200Response}
3118
2596
  */
3119
2597
  }, {
@@ -3241,8 +2719,8 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
3241
2719
  }
3242
2720
 
3243
2721
  /**
3244
- * List all supported tokens
3245
- * This operation retrieves the information of all supported tokens.
2722
+ * List supported tokens
2723
+ * This operation retrieves all tokens supported by Cobo Payments. Use this operation to get token details such as token ID, symbol, decimal precision, contract address, and chain information before creating payment orders. For more information about Cobo Payments, see [Cobo Payments Overview](https://www.cobo.com/payments/en/guides/overview).
3246
2724
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/SupportedToken>} and HTTP response
3247
2725
  */
3248
2726
  }, {
@@ -3264,8 +2742,8 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
3264
2742
  }
3265
2743
 
3266
2744
  /**
3267
- * List all supported tokens
3268
- * This operation retrieves the information of all supported tokens.
2745
+ * List supported tokens
2746
+ * This operation retrieves all tokens supported by Cobo Payments. Use this operation to get token details such as token ID, symbol, decimal precision, contract address, and chain information before creating payment orders. For more information about Cobo Payments, see [Cobo Payments Overview](https://www.cobo.com/payments/en/guides/overview).
3269
2747
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/SupportedToken>}
3270
2748
  */
3271
2749
  }, {
@@ -3326,61 +2804,6 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
3326
2804
  });
3327
2805
  }
3328
2806
 
3329
- /**
3330
- * List all payout items
3331
- * This operation retrieves the information of all payout items. You can filter the result by source account or status.
3332
- * @param {Object} opts Optional parameters
3333
- * @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
3334
- * @param {String} [before] A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response.
3335
- * @param {String} [after] A cursor indicating the position after the current page. This value is generated by Cobo and returned in the response. You do not need to provide it on the first request. When paginating forward (to the next page), you should pass the after value returned from the last response.
3336
- * @param {String} [source_account] The source account. - If the source account is a merchant account, provide the merchant's ID (e.g., \"M1001\"). - If the source account is the developer account, use the string `\"developer\"`.
3337
- * @param {String} [statuses] A list of order, refund or payout item statuses. You can refer to the following operations for the possible status values: - [Get pay-in order information](https://www.cobo.com/payments/en/api-references/payment/get-pay-in-order-information) - [Get refund order information](https://www.cobo.com/payments/en/api-references/payment/get-refund-order-information) - [List all payout items](https://www.cobo.com/payments/en/api-references/payment/list-all-payout-items)
3338
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListPayoutItems200Response} and HTTP response
3339
- */
3340
- }, {
3341
- key: "listPayoutItemsWithHttpInfo",
3342
- value: function listPayoutItemsWithHttpInfo(opts) {
3343
- opts = opts || {};
3344
- var postBody = null;
3345
- if (postBody && postBody.toJSON) {
3346
- postBody = postBody.toJSON();
3347
- }
3348
- var pathParams = {};
3349
- var queryParams = {
3350
- 'limit': opts['limit'],
3351
- 'before': opts['before'],
3352
- 'after': opts['after'],
3353
- 'source_account': opts['source_account'],
3354
- 'statuses': opts['statuses']
3355
- };
3356
- var headerParams = {};
3357
- var formParams = {};
3358
- var authNames = ['OAuth2', 'CoboAuth'];
3359
- var contentTypes = [];
3360
- var accepts = ['application/json'];
3361
- var returnType = _ListPayoutItems200Response["default"];
3362
- return this.apiClient.callApi('/payments/payout_items', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
3363
- }
3364
-
3365
- /**
3366
- * List all payout items
3367
- * This operation retrieves the information of all payout items. You can filter the result by source account or status.
3368
- * @param {Object} opts Optional parameters
3369
- * @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
3370
- * @param {String} opts.before A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response.
3371
- * @param {String} opts.after A cursor indicating the position after the current page. This value is generated by Cobo and returned in the response. You do not need to provide it on the first request. When paginating forward (to the next page), you should pass the after value returned from the last response.
3372
- * @param {String} opts.source_account The source account. - If the source account is a merchant account, provide the merchant's ID (e.g., \"M1001\"). - If the source account is the developer account, use the string `\"developer\"`.
3373
- * @param {String} opts.statuses A list of order, refund or payout item statuses. You can refer to the following operations for the possible status values: - [Get pay-in order information](https://www.cobo.com/payments/en/api-references/payment/get-pay-in-order-information) - [Get refund order information](https://www.cobo.com/payments/en/api-references/payment/get-refund-order-information) - [List all payout items](https://www.cobo.com/payments/en/api-references/payment/list-all-payout-items)
3374
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListPayoutItems200Response}
3375
- */
3376
- }, {
3377
- key: "listPayoutItems",
3378
- value: function listPayoutItems(opts) {
3379
- return this.listPayoutItemsWithHttpInfo(opts).then(function (response_and_data) {
3380
- return response_and_data.data;
3381
- });
3382
- }
3383
-
3384
2807
  /**
3385
2808
  * List all payouts
3386
2809
  * This operation retrieves the information of all payouts.
@@ -3435,7 +2858,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
3435
2858
 
3436
2859
  /**
3437
2860
  * List all settlement details
3438
- * This operation retrieves the information of all settlement details. You can filter the result by merchant ID or status.
2861
+ * <Note>This operation has been deprecated.</Note> This operation retrieves the information of all settlement details. You can filter the result by merchant ID or status.
3439
2862
  * @param {Object} opts Optional parameters
3440
2863
  * @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
3441
2864
  * @param {String} [before] A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response.
@@ -3471,7 +2894,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
3471
2894
 
3472
2895
  /**
3473
2896
  * List all settlement details
3474
- * This operation retrieves the information of all settlement details. You can filter the result by merchant ID or status.
2897
+ * <Note>This operation has been deprecated.</Note> This operation retrieves the information of all settlement details. You can filter the result by merchant ID or status.
3475
2898
  * @param {Object} opts Optional parameters
3476
2899
  * @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
3477
2900
  * @param {String} opts.before A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response.
@@ -3490,7 +2913,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
3490
2913
 
3491
2914
  /**
3492
2915
  * List all settlement requests
3493
- * This operation retrieves the information of all settlement requests.
2916
+ * <Note>This operation has been deprecated. Please use [List all payouts](https://www.cobo.com/payments/en/api-references/payment/list-all-payouts) instead.</Note> This operation retrieves the information of all settlement requests.
3494
2917
  * @param {Object} opts Optional parameters
3495
2918
  * @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
3496
2919
  * @param {String} [before] A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response.
@@ -3524,7 +2947,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
3524
2947
 
3525
2948
  /**
3526
2949
  * List all settlement requests
3527
- * This operation retrieves the information of all settlement requests.
2950
+ * <Note>This operation has been deprecated. Please use [List all payouts](https://www.cobo.com/payments/en/api-references/payment/list-all-payouts) instead.</Note> This operation retrieves the information of all settlement requests.
3528
2951
  * @param {Object} opts Optional parameters
3529
2952
  * @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
3530
2953
  * @param {String} opts.before A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response.
@@ -3691,45 +3114,9 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
3691
3114
  });
3692
3115
  }
3693
3116
 
3694
- /**
3695
- * Query destination whitelist enabled status
3696
- * This operation retrieves the information of whether the destination whitelist is enabled.
3697
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/QueryDestinationWhitelistEnabled200Response} and HTTP response
3698
- */
3699
- }, {
3700
- key: "queryDestinationWhitelistEnabledWithHttpInfo",
3701
- value: function queryDestinationWhitelistEnabledWithHttpInfo() {
3702
- var postBody = null;
3703
- if (postBody && postBody.toJSON) {
3704
- postBody = postBody.toJSON();
3705
- }
3706
- var pathParams = {};
3707
- var queryParams = {};
3708
- var headerParams = {};
3709
- var formParams = {};
3710
- var authNames = ['OAuth2', 'CoboAuth'];
3711
- var contentTypes = [];
3712
- var accepts = ['application/json'];
3713
- var returnType = _QueryDestinationWhitelistEnabled200Response["default"];
3714
- return this.apiClient.callApi('/payments/destination/enable_whitelist', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
3715
- }
3716
-
3717
- /**
3718
- * Query destination whitelist enabled status
3719
- * This operation retrieves the information of whether the destination whitelist is enabled.
3720
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/QueryDestinationWhitelistEnabled200Response}
3721
- */
3722
- }, {
3723
- key: "queryDestinationWhitelistEnabled",
3724
- value: function queryDestinationWhitelistEnabled() {
3725
- return this.queryDestinationWhitelistEnabledWithHttpInfo().then(function (response_and_data) {
3726
- return response_and_data.data;
3727
- });
3728
- }
3729
-
3730
3117
  /**
3731
3118
  * Update bank account
3732
- * This operation updates the information of an existing bank account.
3119
+ * <Note>This operation has been deprecated.</Note> This operation updates the information of an existing bank account.
3733
3120
  * @param {String} bank_account_id The bank account ID.
3734
3121
  * @param {Object} opts Optional parameters
3735
3122
  * @param {module:model/UpdateBankAccountByIdRequest} [UpdateBankAccountByIdRequest] The request body for updating an existing bank account.
@@ -3762,7 +3149,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
3762
3149
 
3763
3150
  /**
3764
3151
  * Update bank account
3765
- * This operation updates the information of an existing bank account.
3152
+ * <Note>This operation has been deprecated.</Note> This operation updates the information of an existing bank account.
3766
3153
  * @param {String} bank_account_id The bank account ID.
3767
3154
  * @param {Object} opts Optional parameters
3768
3155
  * @param {module:model/UpdateBankAccountByIdRequest} opts.UpdateBankAccountByIdRequest The request body for updating an existing bank account.
@@ -3825,55 +3212,6 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
3825
3212
  });
3826
3213
  }
3827
3214
 
3828
- /**
3829
- * Update counterparty (Deprecated)
3830
- * This operation updates the information of a specified counterparty.
3831
- * @param {String} counterparty_id The counterparty ID.
3832
- * @param {Object} opts Optional parameters
3833
- * @param {module:model/UpdateCounterpartyByIdRequest} [UpdateCounterpartyByIdRequest] The request body to update a counterparty.
3834
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Counterparty} and HTTP response
3835
- */
3836
- }, {
3837
- key: "updateCounterpartyByIdWithHttpInfo",
3838
- value: function updateCounterpartyByIdWithHttpInfo(counterparty_id, opts) {
3839
- opts = opts || {};
3840
- var postBody = opts['UpdateCounterpartyByIdRequest'];
3841
- if (postBody && postBody.toJSON) {
3842
- postBody = postBody.toJSON();
3843
- }
3844
- // verify the required parameter 'counterparty_id' is set
3845
- if (counterparty_id === undefined || counterparty_id === null) {
3846
- throw new Error("Missing the required parameter 'counterparty_id' when calling updateCounterpartyById");
3847
- }
3848
- var pathParams = {
3849
- 'counterparty_id': counterparty_id
3850
- };
3851
- var queryParams = {};
3852
- var headerParams = {};
3853
- var formParams = {};
3854
- var authNames = ['OAuth2', 'CoboAuth'];
3855
- var contentTypes = ['application/json'];
3856
- var accepts = ['application/json'];
3857
- var returnType = _Counterparty["default"];
3858
- return this.apiClient.callApi('/payments/counterparty/{counterparty_id}/update', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
3859
- }
3860
-
3861
- /**
3862
- * Update counterparty (Deprecated)
3863
- * This operation updates the information of a specified counterparty.
3864
- * @param {String} counterparty_id The counterparty ID.
3865
- * @param {Object} opts Optional parameters
3866
- * @param {module:model/UpdateCounterpartyByIdRequest} opts.UpdateCounterpartyByIdRequest The request body to update a counterparty.
3867
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Counterparty}
3868
- */
3869
- }, {
3870
- key: "updateCounterpartyById",
3871
- value: function updateCounterpartyById(counterparty_id, opts) {
3872
- return this.updateCounterpartyByIdWithHttpInfo(counterparty_id, opts).then(function (response_and_data) {
3873
- return response_and_data.data;
3874
- });
3875
- }
3876
-
3877
3215
  /**
3878
3216
  * Update destination
3879
3217
  * This operation updates the information of a specified destination.
@@ -3923,104 +3261,6 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
3923
3261
  });
3924
3262
  }
3925
3263
 
3926
- /**
3927
- * Update destination bank account
3928
- * This operation updates the information of a specified destination bank account.
3929
- * @param {String} bank_account_id The bank account ID.
3930
- * @param {Object} opts Optional parameters
3931
- * @param {module:model/UpdateDestinationBankAccount} [UpdateDestinationBankAccount] The request body to update a destination bank account.
3932
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DestinationBankAccount} and HTTP response
3933
- */
3934
- }, {
3935
- key: "updateDestinationBankAccountByIdWithHttpInfo",
3936
- value: function updateDestinationBankAccountByIdWithHttpInfo(bank_account_id, opts) {
3937
- opts = opts || {};
3938
- var postBody = opts['UpdateDestinationBankAccount'];
3939
- if (postBody && postBody.toJSON) {
3940
- postBody = postBody.toJSON();
3941
- }
3942
- // verify the required parameter 'bank_account_id' is set
3943
- if (bank_account_id === undefined || bank_account_id === null) {
3944
- throw new Error("Missing the required parameter 'bank_account_id' when calling updateDestinationBankAccountById");
3945
- }
3946
- var pathParams = {
3947
- 'bank_account_id': bank_account_id
3948
- };
3949
- var queryParams = {};
3950
- var headerParams = {};
3951
- var formParams = {};
3952
- var authNames = ['OAuth2', 'CoboAuth'];
3953
- var contentTypes = ['application/json'];
3954
- var accepts = ['application/json'];
3955
- var returnType = _DestinationBankAccount["default"];
3956
- return this.apiClient.callApi('/payments/destination/bank_account/{bank_account_id}/update', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
3957
- }
3958
-
3959
- /**
3960
- * Update destination bank account
3961
- * This operation updates the information of a specified destination bank account.
3962
- * @param {String} bank_account_id The bank account ID.
3963
- * @param {Object} opts Optional parameters
3964
- * @param {module:model/UpdateDestinationBankAccount} opts.UpdateDestinationBankAccount The request body to update a destination bank account.
3965
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DestinationBankAccount}
3966
- */
3967
- }, {
3968
- key: "updateDestinationBankAccountById",
3969
- value: function updateDestinationBankAccountById(bank_account_id, opts) {
3970
- return this.updateDestinationBankAccountByIdWithHttpInfo(bank_account_id, opts).then(function (response_and_data) {
3971
- return response_and_data.data;
3972
- });
3973
- }
3974
-
3975
- /**
3976
- * Update destination (Deprecated)
3977
- * This operation updates the information of a specified destination.
3978
- * @param {String} destination_id The destination ID.
3979
- * @param {Object} opts Optional parameters
3980
- * @param {module:model/UpdateDestinationByIdRequest} [UpdateDestinationByIdRequest] The request body to update a destination.
3981
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Destination} and HTTP response
3982
- */
3983
- }, {
3984
- key: "updateDestinationByIdWithHttpInfo",
3985
- value: function updateDestinationByIdWithHttpInfo(destination_id, opts) {
3986
- opts = opts || {};
3987
- var postBody = opts['UpdateDestinationByIdRequest'];
3988
- if (postBody && postBody.toJSON) {
3989
- postBody = postBody.toJSON();
3990
- }
3991
- // verify the required parameter 'destination_id' is set
3992
- if (destination_id === undefined || destination_id === null) {
3993
- throw new Error("Missing the required parameter 'destination_id' when calling updateDestinationById");
3994
- }
3995
- var pathParams = {
3996
- 'destination_id': destination_id
3997
- };
3998
- var queryParams = {};
3999
- var headerParams = {};
4000
- var formParams = {};
4001
- var authNames = ['OAuth2', 'CoboAuth'];
4002
- var contentTypes = ['application/json'];
4003
- var accepts = ['application/json'];
4004
- var returnType = _Destination["default"];
4005
- return this.apiClient.callApi('/payments/destination/{destination_id}/update', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
4006
- }
4007
-
4008
- /**
4009
- * Update destination (Deprecated)
4010
- * This operation updates the information of a specified destination.
4011
- * @param {String} destination_id The destination ID.
4012
- * @param {Object} opts Optional parameters
4013
- * @param {module:model/UpdateDestinationByIdRequest} opts.UpdateDestinationByIdRequest The request body to update a destination.
4014
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Destination}
4015
- */
4016
- }, {
4017
- key: "updateDestinationById",
4018
- value: function updateDestinationById(destination_id, opts) {
4019
- return this.updateDestinationByIdWithHttpInfo(destination_id, opts).then(function (response_and_data) {
4020
- return response_and_data.data;
4021
- });
4022
- }
4023
-
4024
3264
  /**
4025
3265
  * Update destination entry
4026
3266
  * This operation updates the information of a specified destination entry.