@cobo/cobo-waas2 1.29.0 → 1.30.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.
- package/README.md +24 -9
- package/dist/ApiClient.js +1 -1
- package/dist/api/ComplianceApi.js +2 -2
- package/dist/api/GraphQLApi.js +85 -0
- package/dist/api/PaymentApi.js +218 -86
- package/dist/api/SwapsApi.js +3 -0
- package/dist/api/WalletsApi.js +18 -18
- package/dist/index.js +112 -28
- package/dist/model/AddressesEventData.js +8 -3
- package/dist/model/{AllocationRecord.js → AllocationItem.js} +42 -42
- package/dist/model/{AllocationRequest.js → AllocationParam.js} +33 -33
- package/dist/model/BalanceUpdateInfoEventData.js +8 -3
- package/dist/model/BatchAllocation.js +11 -11
- package/dist/model/BatchAllocationDetail.js +15 -17
- package/dist/model/BridgingFee.js +3 -3
- package/dist/model/ChainsEventData.js +8 -3
- package/dist/model/ComplianceDispositionUpdateEventData.js +8 -3
- package/dist/model/ComplianceKyaScreeningsUpdateEventData.js +8 -3
- package/dist/model/ComplianceKytScreeningsUpdateEventData.js +8 -3
- package/dist/model/ContractCallParams.js +1 -1
- package/dist/model/CreateBatchAllocationRequest.js +17 -17
- package/dist/model/CreateBulkSendRequest.js +167 -0
- package/dist/model/CreateBulkSendRequestPayoutParamsInner.js +153 -0
- package/dist/model/CreateKyaScreeningsBody.js +3 -3
- package/dist/model/CreatePaymentOrderRequest.js +7 -5
- package/dist/model/CreatePayoutRequest.js +33 -26
- package/dist/model/CreateTopUpAddresses.js +139 -0
- package/dist/model/CreateTopUpAddresses201Response.js +107 -0
- package/dist/model/{ListAllocations200Response.js → ListAllocationItems200Response.js} +22 -22
- package/dist/model/{ListPayoutItems200Response.js → ListBulkSendItems200Response.js} +22 -22
- package/dist/model/MPCVaultEventData.js +8 -3
- package/dist/model/OrderLinkBusinessInfo.js +10 -4
- package/dist/model/PaymentAddressUpdateEventData.js +8 -3
- package/dist/model/PaymentBulkSend.js +182 -0
- package/dist/model/PaymentBulkSendEvent.js +359 -0
- package/dist/model/PaymentBulkSendExecutionMode.js +61 -0
- package/dist/model/PaymentBulkSendItem.js +190 -0
- package/dist/model/{PaymentPayoutItemStatus.js → PaymentBulkSendItemStatus.js} +11 -11
- package/dist/model/PaymentBulkSendItemValidationStatus.js +66 -0
- package/dist/model/PaymentBulkSendStatus.js +81 -0
- package/dist/model/PaymentEstimateFeeRequest.js +13 -0
- package/dist/model/PaymentFeeType.js +15 -0
- package/dist/model/PaymentOrderEventData.js +8 -3
- package/dist/model/PaymentPayout.js +64 -46
- package/dist/model/PaymentPayoutDetail.js +166 -52
- package/dist/model/PaymentPayoutEvent.js +149 -82
- package/dist/model/PaymentPayoutItem.js +9 -167
- package/dist/model/PaymentPayoutParam.js +6 -47
- package/dist/model/PaymentPayoutRecipientInfo.js +126 -0
- package/dist/model/PaymentPayoutStatus.js +9 -4
- package/dist/model/PaymentRefundEventData.js +8 -3
- package/dist/model/PaymentSettlementEvent.js +8 -3
- package/dist/model/PaymentTransactionEventData.js +8 -3
- package/dist/model/SuspendedTokenEventData.js +8 -3
- package/dist/model/TSSRequestWebhookEventData.js +8 -3
- package/dist/model/TokenListingEventData.js +8 -3
- package/dist/model/TokensEventData.js +8 -3
- package/dist/model/TransactionCoboCategory.js +5 -0
- package/dist/model/TransactionExtraType.js +5 -0
- package/dist/model/TransactionWalletConnectInfo.js +146 -0
- package/dist/model/TransactionWebhookEventData.js +8 -3
- package/dist/model/WalletInfoEventData.js +8 -3
- package/dist/model/WebhookEventData.js +76 -17
- package/dist/model/WebhookEventDataType.js +7 -2
- package/dist/model/WebhookEventType.js +10 -0
- package/docs/AddressesEventData.md +3 -1
- package/docs/AllocationItem.md +15 -0
- package/docs/AllocationParam.md +13 -0
- package/docs/BalanceUpdateInfoEventData.md +3 -1
- package/docs/BatchAllocation.md +1 -1
- package/docs/BatchAllocationDetail.md +1 -1
- package/docs/BridgingFee.md +2 -2
- package/docs/ChainsEventData.md +3 -1
- package/docs/ComplianceApi.md +1 -1
- package/docs/ComplianceDispositionUpdateEventData.md +3 -1
- package/docs/ComplianceKyaScreeningsUpdateEventData.md +3 -1
- package/docs/ComplianceKytScreeningsUpdateEventData.md +3 -1
- package/docs/ContractCallParams.md +1 -1
- package/docs/CreateBatchAllocationRequest.md +1 -1
- package/docs/CreateBulkSendRequest.md +12 -0
- package/docs/CreateBulkSendRequestPayoutParamsInner.md +12 -0
- package/docs/CreateKyaScreeningsBody.md +1 -1
- package/docs/CreatePaymentOrderRequest.md +2 -2
- package/docs/CreatePayoutRequest.md +3 -3
- package/docs/CreateTopUpAddresses.md +11 -0
- package/docs/CreateTopUpAddresses201Response.md +9 -0
- package/docs/GraphQLApi.md +61 -0
- package/docs/{ListAllocations200Response.md → ListAllocationItems200Response.md} +2 -2
- package/docs/{ListPayoutItems200Response.md → ListBulkSendItems200Response.md} +2 -2
- package/docs/MPCVaultEventData.md +3 -1
- package/docs/OrderLinkBusinessInfo.md +3 -3
- package/docs/PaymentAddressUpdateEventData.md +3 -1
- package/docs/PaymentApi.md +231 -76
- package/docs/PaymentBulkSend.md +15 -0
- package/docs/PaymentBulkSendEvent.md +65 -0
- package/docs/PaymentBulkSendExecutionMode.md +12 -0
- package/docs/PaymentBulkSendItem.md +15 -0
- package/docs/{PaymentPayoutItemStatus.md → PaymentBulkSendItemStatus.md} +3 -3
- package/docs/PaymentBulkSendItemValidationStatus.md +14 -0
- package/docs/PaymentBulkSendStatus.md +20 -0
- package/docs/PaymentEstimateFeeRequest.md +1 -0
- package/docs/PaymentFeeType.md +6 -0
- package/docs/PaymentOrderEventData.md +3 -1
- package/docs/PaymentPayout.md +8 -7
- package/docs/PaymentPayoutDetail.md +10 -8
- package/docs/PaymentPayoutEvent.md +13 -9
- package/docs/PaymentPayoutItem.md +2 -13
- package/docs/PaymentPayoutParam.md +1 -4
- package/docs/PaymentPayoutRecipientInfo.md +12 -0
- package/docs/PaymentPayoutStatus.md +4 -2
- package/docs/PaymentRefundEventData.md +3 -1
- package/docs/PaymentSettlementEvent.md +3 -1
- package/docs/PaymentTransactionEventData.md +3 -1
- package/docs/SuspendedTokenEventData.md +3 -1
- package/docs/SwapsApi.md +2 -0
- package/docs/TSSRequestWebhookEventData.md +3 -1
- package/docs/TokenListingEventData.md +3 -1
- package/docs/TokensEventData.md +3 -1
- package/docs/TransactionCoboCategory.md +2 -0
- package/docs/TransactionExtraType.md +2 -0
- package/docs/TransactionWalletConnectInfo.md +12 -0
- package/docs/TransactionWebhookEventData.md +3 -1
- package/docs/WalletInfoEventData.md +3 -1
- package/docs/WalletsApi.md +9 -9
- package/docs/WebhookEventData.md +15 -8
- package/docs/WebhookEventDataType.md +3 -1
- package/docs/WebhookEventType.md +4 -0
- package/package.json +1 -1
- package/dist/model/PaymentPayoutItemDetail.js +0 -299
- package/docs/AllocationRecord.md +0 -15
- package/docs/AllocationRequest.md +0 -13
- package/docs/PaymentPayoutItemDetail.md +0 -22
package/dist/api/PaymentApi.js
CHANGED
|
@@ -14,6 +14,7 @@ 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"));
|
|
@@ -32,6 +33,8 @@ var _CreateRefundLinkRequest = _interopRequireDefault(require("../model/CreateRe
|
|
|
32
33
|
var _CreateRefundRequest = _interopRequireDefault(require("../model/CreateRefundRequest"));
|
|
33
34
|
var _CreateReportRequest = _interopRequireDefault(require("../model/CreateReportRequest"));
|
|
34
35
|
var _CreateSettlementRequestRequest = _interopRequireDefault(require("../model/CreateSettlementRequestRequest"));
|
|
36
|
+
var _CreateTopUpAddresses = _interopRequireDefault(require("../model/CreateTopUpAddresses"));
|
|
37
|
+
var _CreateTopUpAddresses201Response = _interopRequireDefault(require("../model/CreateTopUpAddresses201Response"));
|
|
35
38
|
var _CryptoAddress = _interopRequireDefault(require("../model/CryptoAddress"));
|
|
36
39
|
var _DeleteCounterparty200Response = _interopRequireDefault(require("../model/DeleteCounterparty200Response"));
|
|
37
40
|
var _DeleteCounterpartyById200Response = _interopRequireDefault(require("../model/DeleteCounterpartyById200Response"));
|
|
@@ -61,8 +64,9 @@ var _GetRefunds200Response = _interopRequireDefault(require("../model/GetRefunds
|
|
|
61
64
|
var _GetReports200Response = _interopRequireDefault(require("../model/GetReports200Response"));
|
|
62
65
|
var _GetSettlementInfoByIds200Response = _interopRequireDefault(require("../model/GetSettlementInfoByIds200Response"));
|
|
63
66
|
var _Link = _interopRequireDefault(require("../model/Link"));
|
|
64
|
-
var
|
|
67
|
+
var _ListAllocationItems200Response = _interopRequireDefault(require("../model/ListAllocationItems200Response"));
|
|
65
68
|
var _ListBatchAllocations200Response = _interopRequireDefault(require("../model/ListBatchAllocations200Response"));
|
|
69
|
+
var _ListBulkSendItems200Response = _interopRequireDefault(require("../model/ListBulkSendItems200Response"));
|
|
66
70
|
var _ListCounterparties200Response = _interopRequireDefault(require("../model/ListCounterparties200Response"));
|
|
67
71
|
var _ListCounterpartyEntries200Response = _interopRequireDefault(require("../model/ListCounterpartyEntries200Response"));
|
|
68
72
|
var _ListCounterpartyWalletAddress200Response = _interopRequireDefault(require("../model/ListCounterpartyWalletAddress200Response"));
|
|
@@ -75,7 +79,6 @@ var _ListMerchantBalances200Response = _interopRequireDefault(require("../model/
|
|
|
75
79
|
var _ListMerchants200Response = _interopRequireDefault(require("../model/ListMerchants200Response"));
|
|
76
80
|
var _ListPaymentOrders200Response = _interopRequireDefault(require("../model/ListPaymentOrders200Response"));
|
|
77
81
|
var _ListPaymentWalletBalances200Response = _interopRequireDefault(require("../model/ListPaymentWalletBalances200Response"));
|
|
78
|
-
var _ListPayoutItems200Response = _interopRequireDefault(require("../model/ListPayoutItems200Response"));
|
|
79
82
|
var _ListPayouts200Response = _interopRequireDefault(require("../model/ListPayouts200Response"));
|
|
80
83
|
var _ListSettlementDetails200Response = _interopRequireDefault(require("../model/ListSettlementDetails200Response"));
|
|
81
84
|
var _ListSettlementRequests200Response = _interopRequireDefault(require("../model/ListSettlementRequests200Response"));
|
|
@@ -84,6 +87,7 @@ var _ListTopUpPayers200Response = _interopRequireDefault(require("../model/ListT
|
|
|
84
87
|
var _Merchant = _interopRequireDefault(require("../model/Merchant"));
|
|
85
88
|
var _Order = _interopRequireDefault(require("../model/Order"));
|
|
86
89
|
var _PaymentAllocationAmount = _interopRequireDefault(require("../model/PaymentAllocationAmount"));
|
|
90
|
+
var _PaymentBulkSend = _interopRequireDefault(require("../model/PaymentBulkSend"));
|
|
87
91
|
var _PaymentEstimateFee201Response = _interopRequireDefault(require("../model/PaymentEstimateFee201Response"));
|
|
88
92
|
var _PaymentEstimateFeeRequest = _interopRequireDefault(require("../model/PaymentEstimateFeeRequest"));
|
|
89
93
|
var _PaymentPayout = _interopRequireDefault(require("../model/PaymentPayout"));
|
|
@@ -280,6 +284,47 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
280
284
|
});
|
|
281
285
|
}
|
|
282
286
|
|
|
287
|
+
/**
|
|
288
|
+
* Create bulk send
|
|
289
|
+
* This operation creates a bulk send to transfer funds to multiple recipients in a single request.
|
|
290
|
+
* @param {Object} opts Optional parameters
|
|
291
|
+
* @param {module:model/CreateBulkSendRequest} [CreateBulkSendRequest] The request body to create a bulk send.
|
|
292
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PaymentBulkSend} and HTTP response
|
|
293
|
+
*/
|
|
294
|
+
}, {
|
|
295
|
+
key: "createBulkSendWithHttpInfo",
|
|
296
|
+
value: function createBulkSendWithHttpInfo(opts) {
|
|
297
|
+
opts = opts || {};
|
|
298
|
+
var postBody = opts['CreateBulkSendRequest'];
|
|
299
|
+
if (postBody && postBody.toJSON) {
|
|
300
|
+
postBody = postBody.toJSON();
|
|
301
|
+
}
|
|
302
|
+
var pathParams = {};
|
|
303
|
+
var queryParams = {};
|
|
304
|
+
var headerParams = {};
|
|
305
|
+
var formParams = {};
|
|
306
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
307
|
+
var contentTypes = ['application/json'];
|
|
308
|
+
var accepts = ['application/json'];
|
|
309
|
+
var returnType = _PaymentBulkSend["default"];
|
|
310
|
+
return this.apiClient.callApi('/payments/bulk_sends', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* Create bulk send
|
|
315
|
+
* This operation creates a bulk send to transfer funds to multiple recipients in a single request.
|
|
316
|
+
* @param {Object} opts Optional parameters
|
|
317
|
+
* @param {module:model/CreateBulkSendRequest} opts.CreateBulkSendRequest The request body to create a bulk send.
|
|
318
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PaymentBulkSend}
|
|
319
|
+
*/
|
|
320
|
+
}, {
|
|
321
|
+
key: "createBulkSend",
|
|
322
|
+
value: function createBulkSend(opts) {
|
|
323
|
+
return this.createBulkSendWithHttpInfo(opts).then(function (response_and_data) {
|
|
324
|
+
return response_and_data.data;
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
|
|
283
328
|
/**
|
|
284
329
|
* Create counterparty
|
|
285
330
|
* This operation creates a [counterparty](https://www.cobo.com/payments/en/guides/counterparties).
|
|
@@ -774,7 +819,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
774
819
|
|
|
775
820
|
/**
|
|
776
821
|
* Create payout
|
|
777
|
-
* This operation
|
|
822
|
+
* This operation creates a payout to withdraw available balances.
|
|
778
823
|
* @param {Object} opts Optional parameters
|
|
779
824
|
* @param {module:model/CreatePayoutRequest} [CreatePayoutRequest] The request body to create a payout.
|
|
780
825
|
* @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 +845,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
800
845
|
|
|
801
846
|
/**
|
|
802
847
|
* Create payout
|
|
803
|
-
* This operation
|
|
848
|
+
* This operation creates a payout to withdraw available balances.
|
|
804
849
|
* @param {Object} opts Optional parameters
|
|
805
850
|
* @param {module:model/CreatePayoutRequest} opts.CreatePayoutRequest The request body to create a payout.
|
|
806
851
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PaymentPayout}
|
|
@@ -938,7 +983,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
938
983
|
|
|
939
984
|
/**
|
|
940
985
|
* Create settlement request
|
|
941
|
-
* This operation
|
|
986
|
+
* <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
987
|
* @param {Object} opts Optional parameters
|
|
943
988
|
* @param {module:model/CreateSettlementRequestRequest} [CreateSettlementRequestRequest] The request body to create a settlement request.
|
|
944
989
|
* @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 +1009,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
964
1009
|
|
|
965
1010
|
/**
|
|
966
1011
|
* Create settlement request
|
|
967
|
-
* This operation
|
|
1012
|
+
* <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
1013
|
* @param {Object} opts Optional parameters
|
|
969
1014
|
* @param {module:model/CreateSettlementRequestRequest} opts.CreateSettlementRequestRequest The request body to create a settlement request.
|
|
970
1015
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Settlement}
|
|
@@ -977,6 +1022,47 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
977
1022
|
});
|
|
978
1023
|
}
|
|
979
1024
|
|
|
1025
|
+
/**
|
|
1026
|
+
* Batch create top-up addresses
|
|
1027
|
+
* 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>
|
|
1028
|
+
* @param {Object} opts Optional parameters
|
|
1029
|
+
* @param {module:model/CreateTopUpAddresses} [CreateTopUpAddresses] The request body of the create top-up addresses operation.
|
|
1030
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateTopUpAddresses201Response} and HTTP response
|
|
1031
|
+
*/
|
|
1032
|
+
}, {
|
|
1033
|
+
key: "createTopUpAddressesWithHttpInfo",
|
|
1034
|
+
value: function createTopUpAddressesWithHttpInfo(opts) {
|
|
1035
|
+
opts = opts || {};
|
|
1036
|
+
var postBody = opts['CreateTopUpAddresses'];
|
|
1037
|
+
if (postBody && postBody.toJSON) {
|
|
1038
|
+
postBody = postBody.toJSON();
|
|
1039
|
+
}
|
|
1040
|
+
var pathParams = {};
|
|
1041
|
+
var queryParams = {};
|
|
1042
|
+
var headerParams = {};
|
|
1043
|
+
var formParams = {};
|
|
1044
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
1045
|
+
var contentTypes = ['application/json'];
|
|
1046
|
+
var accepts = ['application/json'];
|
|
1047
|
+
var returnType = _CreateTopUpAddresses201Response["default"];
|
|
1048
|
+
return this.apiClient.callApi('/payments/topup/address', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
/**
|
|
1052
|
+
* Batch create top-up addresses
|
|
1053
|
+
* 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>
|
|
1054
|
+
* @param {Object} opts Optional parameters
|
|
1055
|
+
* @param {module:model/CreateTopUpAddresses} opts.CreateTopUpAddresses The request body of the create top-up addresses operation.
|
|
1056
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateTopUpAddresses201Response}
|
|
1057
|
+
*/
|
|
1058
|
+
}, {
|
|
1059
|
+
key: "createTopUpAddresses",
|
|
1060
|
+
value: function createTopUpAddresses(opts) {
|
|
1061
|
+
return this.createTopUpAddressesWithHttpInfo(opts).then(function (response_and_data) {
|
|
1062
|
+
return response_and_data.data;
|
|
1063
|
+
});
|
|
1064
|
+
}
|
|
1065
|
+
|
|
980
1066
|
/**
|
|
981
1067
|
* Delete counterparty (Deprecated)
|
|
982
1068
|
* This operation deletes a counterparty.
|
|
@@ -1589,6 +1675,50 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1589
1675
|
});
|
|
1590
1676
|
}
|
|
1591
1677
|
|
|
1678
|
+
/**
|
|
1679
|
+
* Get bulk send information
|
|
1680
|
+
* This operation retrieves the information of a specific bulk send.
|
|
1681
|
+
* @param {String} bulk_send_id The bulk send ID.
|
|
1682
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PaymentBulkSend} and HTTP response
|
|
1683
|
+
*/
|
|
1684
|
+
}, {
|
|
1685
|
+
key: "getBulkSendByIdWithHttpInfo",
|
|
1686
|
+
value: function getBulkSendByIdWithHttpInfo(bulk_send_id) {
|
|
1687
|
+
var postBody = null;
|
|
1688
|
+
if (postBody && postBody.toJSON) {
|
|
1689
|
+
postBody = postBody.toJSON();
|
|
1690
|
+
}
|
|
1691
|
+
// verify the required parameter 'bulk_send_id' is set
|
|
1692
|
+
if (bulk_send_id === undefined || bulk_send_id === null) {
|
|
1693
|
+
throw new Error("Missing the required parameter 'bulk_send_id' when calling getBulkSendById");
|
|
1694
|
+
}
|
|
1695
|
+
var pathParams = {
|
|
1696
|
+
'bulk_send_id': bulk_send_id
|
|
1697
|
+
};
|
|
1698
|
+
var queryParams = {};
|
|
1699
|
+
var headerParams = {};
|
|
1700
|
+
var formParams = {};
|
|
1701
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
1702
|
+
var contentTypes = [];
|
|
1703
|
+
var accepts = ['application/json'];
|
|
1704
|
+
var returnType = _PaymentBulkSend["default"];
|
|
1705
|
+
return this.apiClient.callApi('/payments/bulk_sends/{bulk_send_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1706
|
+
}
|
|
1707
|
+
|
|
1708
|
+
/**
|
|
1709
|
+
* Get bulk send information
|
|
1710
|
+
* This operation retrieves the information of a specific bulk send.
|
|
1711
|
+
* @param {String} bulk_send_id The bulk send ID.
|
|
1712
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PaymentBulkSend}
|
|
1713
|
+
*/
|
|
1714
|
+
}, {
|
|
1715
|
+
key: "getBulkSendById",
|
|
1716
|
+
value: function getBulkSendById(bulk_send_id) {
|
|
1717
|
+
return this.getBulkSendByIdWithHttpInfo(bulk_send_id).then(function (response_and_data) {
|
|
1718
|
+
return response_and_data.data;
|
|
1719
|
+
});
|
|
1720
|
+
}
|
|
1721
|
+
|
|
1592
1722
|
/**
|
|
1593
1723
|
* Get counterparty information
|
|
1594
1724
|
* This operation retrieves the detailed information about a specified counterparty.
|
|
@@ -2254,7 +2384,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2254
2384
|
|
|
2255
2385
|
/**
|
|
2256
2386
|
* Get settlement request information
|
|
2257
|
-
* This operation retrieves the information of a specific settlement request.
|
|
2387
|
+
* <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
2388
|
* @param {String} settlement_request_id The settlement request ID.
|
|
2259
2389
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Settlement} and HTTP response
|
|
2260
2390
|
*/
|
|
@@ -2284,7 +2414,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2284
2414
|
|
|
2285
2415
|
/**
|
|
2286
2416
|
* Get settlement request information
|
|
2287
|
-
* This operation retrieves the information of a specific settlement request.
|
|
2417
|
+
* <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
2418
|
* @param {String} settlement_request_id The settlement request ID.
|
|
2289
2419
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Settlement}
|
|
2290
2420
|
*/
|
|
@@ -2302,7 +2432,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2302
2432
|
* @param {Object} opts Optional parameters
|
|
2303
2433
|
* @param {String} [merchant_ids] A list of merchant IDs to query.
|
|
2304
2434
|
* @param {String} [currency = 'USD')] The currency for the operation. Currently, only `USD` is supported.
|
|
2305
|
-
* @param {module:model/AcquiringType} [acquiring_type]
|
|
2435
|
+
* @param {module:model/AcquiringType} [acquiring_type] This parameter has been deprecated
|
|
2306
2436
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetSettlementInfoByIds200Response} and HTTP response
|
|
2307
2437
|
*/
|
|
2308
2438
|
}, {
|
|
@@ -2334,7 +2464,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2334
2464
|
* @param {Object} opts Optional parameters
|
|
2335
2465
|
* @param {String} opts.merchant_ids A list of merchant IDs to query.
|
|
2336
2466
|
* @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
|
|
2467
|
+
* @param {module:model/AcquiringType} opts.acquiring_type This parameter has been deprecated
|
|
2338
2468
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetSettlementInfoByIds200Response}
|
|
2339
2469
|
*/
|
|
2340
2470
|
}, {
|
|
@@ -2403,8 +2533,8 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2403
2533
|
}
|
|
2404
2534
|
|
|
2405
2535
|
/**
|
|
2406
|
-
* List all allocation
|
|
2407
|
-
* This operation retrieves the information of all
|
|
2536
|
+
* List all allocation items
|
|
2537
|
+
* This operation retrieves the information of all allocations.
|
|
2408
2538
|
* @param {Object} opts Optional parameters
|
|
2409
2539
|
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
2410
2540
|
* @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 +2543,11 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2413
2543
|
* @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
2544
|
* @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
2545
|
* @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/
|
|
2546
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListAllocationItems200Response} and HTTP response
|
|
2417
2547
|
*/
|
|
2418
2548
|
}, {
|
|
2419
|
-
key: "
|
|
2420
|
-
value: function
|
|
2549
|
+
key: "listAllocationItemsWithHttpInfo",
|
|
2550
|
+
value: function listAllocationItemsWithHttpInfo(opts) {
|
|
2421
2551
|
opts = opts || {};
|
|
2422
2552
|
var postBody = null;
|
|
2423
2553
|
if (postBody && postBody.toJSON) {
|
|
@@ -2438,13 +2568,13 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2438
2568
|
var authNames = ['OAuth2', 'CoboAuth'];
|
|
2439
2569
|
var contentTypes = [];
|
|
2440
2570
|
var accepts = ['application/json'];
|
|
2441
|
-
var returnType =
|
|
2442
|
-
return this.apiClient.callApi('/payments/
|
|
2571
|
+
var returnType = _ListAllocationItems200Response["default"];
|
|
2572
|
+
return this.apiClient.callApi('/payments/allocation_items', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
2443
2573
|
}
|
|
2444
2574
|
|
|
2445
2575
|
/**
|
|
2446
|
-
* List all allocation
|
|
2447
|
-
* This operation retrieves the information of all
|
|
2576
|
+
* List all allocation items
|
|
2577
|
+
* This operation retrieves the information of all allocations.
|
|
2448
2578
|
* @param {Object} opts Optional parameters
|
|
2449
2579
|
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
2450
2580
|
* @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 +2583,19 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2453
2583
|
* @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
2584
|
* @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
2585
|
* @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/
|
|
2586
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListAllocationItems200Response}
|
|
2457
2587
|
*/
|
|
2458
2588
|
}, {
|
|
2459
|
-
key: "
|
|
2460
|
-
value: function
|
|
2461
|
-
return this.
|
|
2589
|
+
key: "listAllocationItems",
|
|
2590
|
+
value: function listAllocationItems(opts) {
|
|
2591
|
+
return this.listAllocationItemsWithHttpInfo(opts).then(function (response_and_data) {
|
|
2462
2592
|
return response_and_data.data;
|
|
2463
2593
|
});
|
|
2464
2594
|
}
|
|
2465
2595
|
|
|
2466
2596
|
/**
|
|
2467
2597
|
* List all bank accounts
|
|
2468
|
-
*
|
|
2598
|
+
* <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
2599
|
* @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
2600
|
*/
|
|
2471
2601
|
}, {
|
|
@@ -2488,7 +2618,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2488
2618
|
|
|
2489
2619
|
/**
|
|
2490
2620
|
* List all bank accounts
|
|
2491
|
-
*
|
|
2621
|
+
* <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
2622
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/BankAccount>}
|
|
2493
2623
|
*/
|
|
2494
2624
|
}, {
|
|
@@ -2551,6 +2681,63 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2551
2681
|
});
|
|
2552
2682
|
}
|
|
2553
2683
|
|
|
2684
|
+
/**
|
|
2685
|
+
* List bulk send items
|
|
2686
|
+
* This operation retrieves the list of items for a specific bulk send.
|
|
2687
|
+
* @param {String} bulk_send_id The bulk send ID.
|
|
2688
|
+
* @param {Object} opts Optional parameters
|
|
2689
|
+
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
2690
|
+
* @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.
|
|
2691
|
+
* @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.
|
|
2692
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListBulkSendItems200Response} and HTTP response
|
|
2693
|
+
*/
|
|
2694
|
+
}, {
|
|
2695
|
+
key: "listBulkSendItemsWithHttpInfo",
|
|
2696
|
+
value: function listBulkSendItemsWithHttpInfo(bulk_send_id, opts) {
|
|
2697
|
+
opts = opts || {};
|
|
2698
|
+
var postBody = null;
|
|
2699
|
+
if (postBody && postBody.toJSON) {
|
|
2700
|
+
postBody = postBody.toJSON();
|
|
2701
|
+
}
|
|
2702
|
+
// verify the required parameter 'bulk_send_id' is set
|
|
2703
|
+
if (bulk_send_id === undefined || bulk_send_id === null) {
|
|
2704
|
+
throw new Error("Missing the required parameter 'bulk_send_id' when calling listBulkSendItems");
|
|
2705
|
+
}
|
|
2706
|
+
var pathParams = {
|
|
2707
|
+
'bulk_send_id': bulk_send_id
|
|
2708
|
+
};
|
|
2709
|
+
var queryParams = {
|
|
2710
|
+
'limit': opts['limit'],
|
|
2711
|
+
'before': opts['before'],
|
|
2712
|
+
'after': opts['after']
|
|
2713
|
+
};
|
|
2714
|
+
var headerParams = {};
|
|
2715
|
+
var formParams = {};
|
|
2716
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
2717
|
+
var contentTypes = [];
|
|
2718
|
+
var accepts = ['application/json'];
|
|
2719
|
+
var returnType = _ListBulkSendItems200Response["default"];
|
|
2720
|
+
return this.apiClient.callApi('/payments/bulk_sends/{bulk_send_id}/items', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
2721
|
+
}
|
|
2722
|
+
|
|
2723
|
+
/**
|
|
2724
|
+
* List bulk send items
|
|
2725
|
+
* This operation retrieves the list of items for a specific bulk send.
|
|
2726
|
+
* @param {String} bulk_send_id The bulk send ID.
|
|
2727
|
+
* @param {Object} opts Optional parameters
|
|
2728
|
+
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
2729
|
+
* @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.
|
|
2730
|
+
* @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.
|
|
2731
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListBulkSendItems200Response}
|
|
2732
|
+
*/
|
|
2733
|
+
}, {
|
|
2734
|
+
key: "listBulkSendItems",
|
|
2735
|
+
value: function listBulkSendItems(bulk_send_id, opts) {
|
|
2736
|
+
return this.listBulkSendItemsWithHttpInfo(bulk_send_id, opts).then(function (response_and_data) {
|
|
2737
|
+
return response_and_data.data;
|
|
2738
|
+
});
|
|
2739
|
+
}
|
|
2740
|
+
|
|
2554
2741
|
/**
|
|
2555
2742
|
* List all counterparties
|
|
2556
2743
|
* This operation retrieves the information of all counterparties. You can filter the results by using a keyword for fuzzy search on counterparty names.
|
|
@@ -3077,7 +3264,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
3077
3264
|
* @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
3265
|
* @param {Object} opts Optional parameters
|
|
3079
3266
|
* @param {String} [merchant_ids] A list of merchant IDs to query.
|
|
3080
|
-
* @param {module:model/AcquiringType} [acquiring_type]
|
|
3267
|
+
* @param {module:model/AcquiringType} [acquiring_type] This parameter has been deprecated
|
|
3081
3268
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListMerchantBalances200Response} and HTTP response
|
|
3082
3269
|
*/
|
|
3083
3270
|
}, {
|
|
@@ -3113,7 +3300,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
3113
3300
|
* @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
3301
|
* @param {Object} opts Optional parameters
|
|
3115
3302
|
* @param {String} opts.merchant_ids A list of merchant IDs to query.
|
|
3116
|
-
* @param {module:model/AcquiringType} opts.acquiring_type
|
|
3303
|
+
* @param {module:model/AcquiringType} opts.acquiring_type This parameter has been deprecated
|
|
3117
3304
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListMerchantBalances200Response}
|
|
3118
3305
|
*/
|
|
3119
3306
|
}, {
|
|
@@ -3326,61 +3513,6 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
3326
3513
|
});
|
|
3327
3514
|
}
|
|
3328
3515
|
|
|
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
3516
|
/**
|
|
3385
3517
|
* List all payouts
|
|
3386
3518
|
* This operation retrieves the information of all payouts.
|
|
@@ -3435,7 +3567,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
3435
3567
|
|
|
3436
3568
|
/**
|
|
3437
3569
|
* List all settlement details
|
|
3438
|
-
* This operation retrieves the information of all settlement details. You can filter the result by merchant ID or status.
|
|
3570
|
+
* <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
3571
|
* @param {Object} opts Optional parameters
|
|
3440
3572
|
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
3441
3573
|
* @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 +3603,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
3471
3603
|
|
|
3472
3604
|
/**
|
|
3473
3605
|
* List all settlement details
|
|
3474
|
-
* This operation retrieves the information of all settlement details. You can filter the result by merchant ID or status.
|
|
3606
|
+
* <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
3607
|
* @param {Object} opts Optional parameters
|
|
3476
3608
|
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
3477
3609
|
* @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 +3622,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
3490
3622
|
|
|
3491
3623
|
/**
|
|
3492
3624
|
* List all settlement requests
|
|
3493
|
-
* This operation retrieves the information of all settlement requests.
|
|
3625
|
+
* <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
3626
|
* @param {Object} opts Optional parameters
|
|
3495
3627
|
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
3496
3628
|
* @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 +3656,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
3524
3656
|
|
|
3525
3657
|
/**
|
|
3526
3658
|
* List all settlement requests
|
|
3527
|
-
* This operation retrieves the information of all settlement requests.
|
|
3659
|
+
* <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
3660
|
* @param {Object} opts Optional parameters
|
|
3529
3661
|
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
3530
3662
|
* @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.
|
package/dist/api/SwapsApi.js
CHANGED
|
@@ -247,6 +247,7 @@ var SwapsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
247
247
|
* List swap activities
|
|
248
248
|
* This operation retrieves a list of swap activities. You can filter the results by swap type, status, initiator, and time range.
|
|
249
249
|
* @param {Object} opts Optional parameters
|
|
250
|
+
* @param {String} [request_id] The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization.
|
|
250
251
|
* @param {module:model/SwapType} [type]
|
|
251
252
|
* @param {module:model/SwapActivityStatus} [status]
|
|
252
253
|
* @param {Number} [min_updated_timestamp] The start time of the query. All swap activities updated after the specified time will be retrieved. The time is in Unix timestamp format, measured in milliseconds.
|
|
@@ -269,6 +270,7 @@ var SwapsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
269
270
|
}
|
|
270
271
|
var pathParams = {};
|
|
271
272
|
var queryParams = {
|
|
273
|
+
'request_id': opts['request_id'],
|
|
272
274
|
'type': opts['type'],
|
|
273
275
|
'status': opts['status'],
|
|
274
276
|
'min_updated_timestamp': opts['min_updated_timestamp'],
|
|
@@ -293,6 +295,7 @@ var SwapsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
293
295
|
* List swap activities
|
|
294
296
|
* This operation retrieves a list of swap activities. You can filter the results by swap type, status, initiator, and time range.
|
|
295
297
|
* @param {Object} opts Optional parameters
|
|
298
|
+
* @param {String} opts.request_id The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization.
|
|
296
299
|
* @param {module:model/SwapType} opts.type
|
|
297
300
|
* @param {module:model/SwapActivityStatus} opts.status
|
|
298
301
|
* @param {Number} opts.min_updated_timestamp The start time of the query. All swap activities updated after the specified time will be retrieved. The time is in Unix timestamp format, measured in milliseconds.
|