@cobo/cobo-waas2 1.28.0 → 1.29.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 +66 -9
- package/dist/ApiClient.js +1 -1
- package/dist/api/AutoSweepApi.js +2 -2
- package/dist/api/ComplianceApi.js +144 -4
- package/dist/api/FeeStationApi.js +2 -2
- package/dist/api/PaymentApi.js +960 -85
- package/dist/api/StakingsApi.js +2 -2
- package/dist/api/TransactionsApi.js +6 -6
- package/dist/index.js +245 -0
- package/dist/model/AddressRiskLevel.js +71 -0
- package/dist/model/AddressesEventData.js +8 -3
- package/dist/model/AllocationRecord.js +8 -5
- package/dist/model/AllocationRequest.js +10 -7
- package/dist/model/BalanceUpdateInfoEventData.js +8 -3
- package/dist/model/BatchAllocation.js +1 -1
- package/dist/model/ChainsEventData.js +8 -3
- package/dist/model/CommissionFee.js +2 -2
- package/dist/model/ComplianceDispositionUpdateEventData.js +8 -3
- package/dist/model/ComplianceKyaScreeningsUpdateEventData.js +341 -0
- package/dist/model/ComplianceKytScreeningsUpdateEventData.js +8 -3
- package/dist/model/ContractCallParams.js +2 -2
- package/dist/model/CounterpartyWalletAddressDetail.js +2 -2
- package/dist/model/CreateBatchAllocationRequest.js +2 -2
- package/dist/model/CreateCounterpartyEntry201Response.js +143 -0
- package/dist/model/CreateCounterpartyEntryRequest.js +141 -0
- package/dist/model/CreateDestinationEntry201Response.js +172 -0
- package/dist/model/CreateDestinationEntryRequest.js +172 -0
- package/dist/model/CreateKyaScreeningsBody.js +129 -0
- package/dist/model/CreateMerchantRequest.js +1 -1
- package/dist/model/CreatePaymentOrderRequest.js +11 -11
- package/dist/model/CreatePayoutRequest.js +5 -5
- package/dist/model/CreateRefundRequest.js +2 -2
- package/dist/model/CreateReportRequest.js +156 -0
- package/dist/model/CreateWalletAddress.js +2 -2
- package/dist/model/DeleteCounterpartyById200Response.js +110 -0
- package/dist/model/DeleteCounterpartyEntry200Response.js +110 -0
- package/dist/model/DeleteDestinationById200Response.js +110 -0
- package/dist/model/DeleteDestinationEntry200Response.js +110 -0
- package/dist/model/EntryType.js +61 -0
- package/dist/model/GetCounterpartyEntry200Response.js +90 -0
- package/dist/model/GetDestinationEntry200Response.js +106 -0
- package/dist/model/GetReports200Response.js +123 -0
- package/dist/model/KyaRiskAssessment.js +151 -0
- package/dist/model/KyaRiskDetail.js +126 -0
- package/dist/model/KyaRiskLevel.js +66 -0
- package/dist/model/KyaScreeningRequest.js +154 -0
- package/dist/model/KyaScreeningResult.js +222 -0
- package/dist/model/KyaScreeningResultRiskAssessment.js +171 -0
- package/dist/model/KyaScreeningStatus.js +71 -0
- package/dist/model/KyaScreeningsEventData.js +174 -0
- package/dist/model/LinkDisplayInfo.js +1 -1
- package/dist/model/ListCounterpartyEntries200Response.js +123 -0
- package/dist/model/ListDestinationEntries200Response.js +153 -0
- package/dist/model/ListKyaScreenings200Response.js +145 -0
- package/dist/model/MPCVaultEventData.js +8 -3
- package/dist/model/MerchantBalance.js +4 -4
- package/dist/model/Order.js +10 -10
- package/dist/model/OrderLinkBusinessInfo.js +12 -12
- package/dist/model/OrderLinkBusinessInfoCustomExchangeRatesInner.js +2 -4
- package/dist/model/OrderLinkBusinessInfoPayableAmountsInner.js +4 -4
- package/dist/model/PaymentAddressUpdateEventData.js +8 -3
- package/dist/model/PaymentAllocationAmount.js +2 -2
- package/dist/model/PaymentOrderEventData.js +26 -21
- package/dist/model/PaymentPayout.js +3 -3
- package/dist/model/PaymentPayoutDetail.js +3 -3
- package/dist/model/PaymentPayoutEvent.js +14 -9
- package/dist/model/PaymentPayoutItem.js +8 -7
- package/dist/model/PaymentPayoutItemDetail.js +8 -7
- package/dist/model/PaymentPayoutParam.js +8 -7
- package/dist/model/PaymentRefundEventData.js +8 -3
- package/dist/model/PaymentSettlementEvent.js +8 -3
- package/dist/model/PaymentTransactionEventData.js +8 -3
- package/dist/model/PspBalance.js +4 -4
- package/dist/model/RefundLinkBusinessInfo.js +1 -1
- package/dist/model/Report.js +209 -0
- package/dist/model/ReportExportFormat.js +66 -0
- package/dist/model/ReportStatus.js +61 -0
- package/dist/model/ReportType.js +121 -0
- 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/TransactionWebhookEventData.js +8 -3
- package/dist/model/TransferParams.js +2 -2
- package/dist/model/UpdateCounterpartyRequest.js +160 -0
- package/dist/model/UpdateDestinationEntry200Response.js +90 -0
- package/dist/model/UpdateDestinationEntryRequest.js +135 -0
- package/dist/model/UpdateDestinationRequest.js +173 -0
- package/dist/model/UpdateMerchantByIdRequest.js +1 -1
- package/dist/model/WalletAddress.js +20 -2
- package/dist/model/WalletInfoEventData.js +8 -3
- package/dist/model/WebhookEventData.js +58 -24
- package/dist/model/WebhookEventDataType.js +7 -2
- package/dist/model/WebhookEventType.js +5 -0
- package/docs/AddressRiskLevel.md +16 -0
- package/docs/AddressesEventData.md +3 -1
- package/docs/AllocationRecord.md +5 -5
- package/docs/AllocationRequest.md +5 -5
- package/docs/AutoSweepApi.md +1 -1
- package/docs/BalanceUpdateInfoEventData.md +3 -1
- package/docs/BatchAllocation.md +1 -1
- package/docs/ChainsEventData.md +3 -1
- package/docs/CommissionFee.md +1 -1
- package/docs/ComplianceApi.md +163 -0
- package/docs/ComplianceDispositionUpdateEventData.md +3 -1
- package/docs/ComplianceKyaScreeningsUpdateEventData.md +62 -0
- package/docs/ComplianceKytScreeningsUpdateEventData.md +3 -1
- package/docs/ContractCallParams.md +1 -1
- package/docs/CounterpartyWalletAddressDetail.md +1 -1
- package/docs/CreateBatchAllocationRequest.md +1 -1
- package/docs/CreateCounterpartyEntry201Response.md +10 -0
- package/docs/CreateCounterpartyEntryRequest.md +10 -0
- package/docs/CreateDestinationEntry201Response.md +11 -0
- package/docs/CreateDestinationEntryRequest.md +11 -0
- package/docs/CreateKyaScreeningsBody.md +9 -0
- package/docs/CreateMerchantRequest.md +1 -1
- package/docs/CreatePaymentOrderRequest.md +10 -10
- package/docs/CreatePayoutRequest.md +4 -4
- package/docs/CreateRefundRequest.md +2 -2
- package/docs/CreateReportRequest.md +13 -0
- package/docs/CreateWalletAddress.md +1 -1
- package/docs/DeleteCounterpartyById200Response.md +9 -0
- package/docs/DeleteCounterpartyEntry200Response.md +9 -0
- package/docs/DeleteDestinationById200Response.md +9 -0
- package/docs/DeleteDestinationEntry200Response.md +9 -0
- package/docs/EntryType.md +12 -0
- package/docs/FeeStationApi.md +1 -1
- package/docs/GetCounterpartyEntry200Response.md +9 -0
- package/docs/GetDestinationEntry200Response.md +10 -0
- package/docs/GetReports200Response.md +10 -0
- package/docs/KyaRiskAssessment.md +11 -0
- package/docs/KyaRiskDetail.md +10 -0
- package/docs/KyaRiskLevel.md +14 -0
- package/docs/KyaScreeningRequest.md +12 -0
- package/docs/KyaScreeningResult.md +17 -0
- package/docs/KyaScreeningResultRiskAssessment.md +11 -0
- package/docs/KyaScreeningStatus.md +16 -0
- package/docs/KyaScreeningsEventData.md +14 -0
- package/docs/LinkDisplayInfo.md +1 -1
- package/docs/ListCounterpartyEntries200Response.md +10 -0
- package/docs/ListDestinationEntries200Response.md +11 -0
- package/docs/ListKyaScreenings200Response.md +10 -0
- package/docs/MPCVaultEventData.md +3 -1
- package/docs/MerchantBalance.md +4 -4
- package/docs/Order.md +8 -8
- package/docs/OrderLinkBusinessInfo.md +11 -11
- package/docs/OrderLinkBusinessInfoCustomExchangeRatesInner.md +2 -2
- package/docs/OrderLinkBusinessInfoPayableAmountsInner.md +2 -2
- package/docs/PaymentAddressUpdateEventData.md +3 -1
- package/docs/PaymentAllocationAmount.md +1 -1
- package/docs/PaymentApi.md +1104 -161
- package/docs/PaymentOrderEventData.md +11 -9
- package/docs/PaymentPayout.md +3 -3
- package/docs/PaymentPayoutDetail.md +3 -3
- package/docs/PaymentPayoutEvent.md +6 -4
- package/docs/PaymentPayoutItem.md +6 -6
- package/docs/PaymentPayoutItemDetail.md +6 -6
- package/docs/PaymentPayoutParam.md +5 -5
- package/docs/PaymentRefundEventData.md +3 -1
- package/docs/PaymentSettlementEvent.md +3 -1
- package/docs/PaymentTransactionEventData.md +3 -1
- package/docs/PspBalance.md +4 -4
- package/docs/RefundLinkBusinessInfo.md +1 -1
- package/docs/Report.md +17 -0
- package/docs/ReportExportFormat.md +14 -0
- package/docs/ReportStatus.md +12 -0
- package/docs/ReportType.md +36 -0
- package/docs/StakingsApi.md +1 -1
- package/docs/SuspendedTokenEventData.md +3 -1
- package/docs/TSSRequestWebhookEventData.md +3 -1
- package/docs/TokenListingEventData.md +3 -1
- package/docs/TokensEventData.md +3 -1
- package/docs/TransactionWebhookEventData.md +3 -1
- package/docs/TransactionsApi.md +3 -3
- package/docs/TransferParams.md +1 -1
- package/docs/UpdateCounterpartyRequest.md +13 -0
- package/docs/UpdateDestinationEntry200Response.md +9 -0
- package/docs/UpdateDestinationEntryRequest.md +11 -0
- package/docs/UpdateDestinationRequest.md +14 -0
- package/docs/UpdateMerchantByIdRequest.md +1 -1
- package/docs/WalletAddress.md +3 -1
- package/docs/WalletInfoEventData.md +3 -1
- package/docs/WebhookEventData.md +18 -15
- package/docs/WebhookEventDataType.md +3 -1
- package/docs/WebhookEventType.md +2 -0
- package/package.json +1 -1
package/dist/api/PaymentApi.js
CHANGED
|
@@ -14,10 +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 _CreateCounterpartyEntry201Response = _interopRequireDefault(require("../model/CreateCounterpartyEntry201Response"));
|
|
18
|
+
var _CreateCounterpartyEntryRequest = _interopRequireDefault(require("../model/CreateCounterpartyEntryRequest"));
|
|
17
19
|
var _CreateCounterpartyRequest = _interopRequireDefault(require("../model/CreateCounterpartyRequest"));
|
|
18
20
|
var _CreateCounterpartyWalletAddressRequest = _interopRequireDefault(require("../model/CreateCounterpartyWalletAddressRequest"));
|
|
19
21
|
var _CreateCryptoAddressRequest = _interopRequireDefault(require("../model/CreateCryptoAddressRequest"));
|
|
20
22
|
var _CreateDestinationBankAccountRequest = _interopRequireDefault(require("../model/CreateDestinationBankAccountRequest"));
|
|
23
|
+
var _CreateDestinationEntry201Response = _interopRequireDefault(require("../model/CreateDestinationEntry201Response"));
|
|
24
|
+
var _CreateDestinationEntryRequest = _interopRequireDefault(require("../model/CreateDestinationEntryRequest"));
|
|
21
25
|
var _CreateDestinationRequest = _interopRequireDefault(require("../model/CreateDestinationRequest"));
|
|
22
26
|
var _CreateDestinationWalletAddressRequest = _interopRequireDefault(require("../model/CreateDestinationWalletAddressRequest"));
|
|
23
27
|
var _CreateMerchantRequest = _interopRequireDefault(require("../model/CreateMerchantRequest"));
|
|
@@ -26,13 +30,18 @@ var _CreatePaymentOrderRequest = _interopRequireDefault(require("../model/Create
|
|
|
26
30
|
var _CreatePayoutRequest = _interopRequireDefault(require("../model/CreatePayoutRequest"));
|
|
27
31
|
var _CreateRefundLinkRequest = _interopRequireDefault(require("../model/CreateRefundLinkRequest"));
|
|
28
32
|
var _CreateRefundRequest = _interopRequireDefault(require("../model/CreateRefundRequest"));
|
|
33
|
+
var _CreateReportRequest = _interopRequireDefault(require("../model/CreateReportRequest"));
|
|
29
34
|
var _CreateSettlementRequestRequest = _interopRequireDefault(require("../model/CreateSettlementRequestRequest"));
|
|
30
35
|
var _CryptoAddress = _interopRequireDefault(require("../model/CryptoAddress"));
|
|
31
36
|
var _DeleteCounterparty200Response = _interopRequireDefault(require("../model/DeleteCounterparty200Response"));
|
|
37
|
+
var _DeleteCounterpartyById200Response = _interopRequireDefault(require("../model/DeleteCounterpartyById200Response"));
|
|
38
|
+
var _DeleteCounterpartyEntry200Response = _interopRequireDefault(require("../model/DeleteCounterpartyEntry200Response"));
|
|
32
39
|
var _DeleteCounterpartyWalletAddress200Response = _interopRequireDefault(require("../model/DeleteCounterpartyWalletAddress200Response"));
|
|
33
40
|
var _DeleteCryptoAddress201Response = _interopRequireDefault(require("../model/DeleteCryptoAddress201Response"));
|
|
34
41
|
var _DeleteDestination200Response = _interopRequireDefault(require("../model/DeleteDestination200Response"));
|
|
35
42
|
var _DeleteDestinationBankAccount200Response = _interopRequireDefault(require("../model/DeleteDestinationBankAccount200Response"));
|
|
43
|
+
var _DeleteDestinationById200Response = _interopRequireDefault(require("../model/DeleteDestinationById200Response"));
|
|
44
|
+
var _DeleteDestinationEntry200Response = _interopRequireDefault(require("../model/DeleteDestinationEntry200Response"));
|
|
36
45
|
var _DeleteDestinationWalletAddress200Response = _interopRequireDefault(require("../model/DeleteDestinationWalletAddress200Response"));
|
|
37
46
|
var _Destination = _interopRequireDefault(require("../model/Destination"));
|
|
38
47
|
var _DestinationBankAccount = _interopRequireDefault(require("../model/DestinationBankAccount"));
|
|
@@ -40,19 +49,25 @@ var _DestinationBankAccountDetail = _interopRequireDefault(require("../model/Des
|
|
|
40
49
|
var _DestinationDetail = _interopRequireDefault(require("../model/DestinationDetail"));
|
|
41
50
|
var _DestinationType = _interopRequireDefault(require("../model/DestinationType"));
|
|
42
51
|
var _EnableDestinationWhitelistRequest = _interopRequireDefault(require("../model/EnableDestinationWhitelistRequest"));
|
|
52
|
+
var _EntryType = _interopRequireDefault(require("../model/EntryType"));
|
|
43
53
|
var _ErrorResponse = _interopRequireDefault(require("../model/ErrorResponse"));
|
|
44
54
|
var _ExchangeRate = _interopRequireDefault(require("../model/ExchangeRate"));
|
|
45
55
|
var _ForcedSweep = _interopRequireDefault(require("../model/ForcedSweep"));
|
|
46
56
|
var _ForcedSweepRequest = _interopRequireDefault(require("../model/ForcedSweepRequest"));
|
|
57
|
+
var _GetCounterpartyEntry200Response = _interopRequireDefault(require("../model/GetCounterpartyEntry200Response"));
|
|
58
|
+
var _GetDestinationEntry200Response = _interopRequireDefault(require("../model/GetDestinationEntry200Response"));
|
|
47
59
|
var _GetExchangeRate200Response = _interopRequireDefault(require("../model/GetExchangeRate200Response"));
|
|
48
60
|
var _GetRefunds200Response = _interopRequireDefault(require("../model/GetRefunds200Response"));
|
|
61
|
+
var _GetReports200Response = _interopRequireDefault(require("../model/GetReports200Response"));
|
|
49
62
|
var _GetSettlementInfoByIds200Response = _interopRequireDefault(require("../model/GetSettlementInfoByIds200Response"));
|
|
50
63
|
var _Link = _interopRequireDefault(require("../model/Link"));
|
|
51
64
|
var _ListAllocations200Response = _interopRequireDefault(require("../model/ListAllocations200Response"));
|
|
52
65
|
var _ListBatchAllocations200Response = _interopRequireDefault(require("../model/ListBatchAllocations200Response"));
|
|
53
66
|
var _ListCounterparties200Response = _interopRequireDefault(require("../model/ListCounterparties200Response"));
|
|
67
|
+
var _ListCounterpartyEntries200Response = _interopRequireDefault(require("../model/ListCounterpartyEntries200Response"));
|
|
54
68
|
var _ListCounterpartyWalletAddress200Response = _interopRequireDefault(require("../model/ListCounterpartyWalletAddress200Response"));
|
|
55
69
|
var _ListDestinationBankAccounts200Response = _interopRequireDefault(require("../model/ListDestinationBankAccounts200Response"));
|
|
70
|
+
var _ListDestinationEntries200Response = _interopRequireDefault(require("../model/ListDestinationEntries200Response"));
|
|
56
71
|
var _ListDestinationWalletAddresses200Response = _interopRequireDefault(require("../model/ListDestinationWalletAddresses200Response"));
|
|
57
72
|
var _ListDestinations200Response = _interopRequireDefault(require("../model/ListDestinations200Response"));
|
|
58
73
|
var _ListForcedSweepRequests200Response = _interopRequireDefault(require("../model/ListForcedSweepRequests200Response"));
|
|
@@ -76,13 +91,20 @@ var _PaymentPayoutDetail = _interopRequireDefault(require("../model/PaymentPayou
|
|
|
76
91
|
var _PspBalance = _interopRequireDefault(require("../model/PspBalance"));
|
|
77
92
|
var _QueryDestinationWhitelistEnabled200Response = _interopRequireDefault(require("../model/QueryDestinationWhitelistEnabled200Response"));
|
|
78
93
|
var _Refund = _interopRequireDefault(require("../model/Refund"));
|
|
94
|
+
var _Report = _interopRequireDefault(require("../model/Report"));
|
|
95
|
+
var _ReportStatus = _interopRequireDefault(require("../model/ReportStatus"));
|
|
96
|
+
var _ReportType = _interopRequireDefault(require("../model/ReportType"));
|
|
79
97
|
var _Settlement = _interopRequireDefault(require("../model/Settlement"));
|
|
80
98
|
var _SupportedToken = _interopRequireDefault(require("../model/SupportedToken"));
|
|
81
99
|
var _TopUpAddress = _interopRequireDefault(require("../model/TopUpAddress"));
|
|
82
100
|
var _UpdateBankAccountByIdRequest = _interopRequireDefault(require("../model/UpdateBankAccountByIdRequest"));
|
|
83
101
|
var _UpdateCounterpartyByIdRequest = _interopRequireDefault(require("../model/UpdateCounterpartyByIdRequest"));
|
|
102
|
+
var _UpdateCounterpartyRequest = _interopRequireDefault(require("../model/UpdateCounterpartyRequest"));
|
|
84
103
|
var _UpdateDestinationBankAccount = _interopRequireDefault(require("../model/UpdateDestinationBankAccount"));
|
|
85
104
|
var _UpdateDestinationByIdRequest = _interopRequireDefault(require("../model/UpdateDestinationByIdRequest"));
|
|
105
|
+
var _UpdateDestinationEntry200Response = _interopRequireDefault(require("../model/UpdateDestinationEntry200Response"));
|
|
106
|
+
var _UpdateDestinationEntryRequest = _interopRequireDefault(require("../model/UpdateDestinationEntryRequest"));
|
|
107
|
+
var _UpdateDestinationRequest = _interopRequireDefault(require("../model/UpdateDestinationRequest"));
|
|
86
108
|
var _UpdateMerchantByIdRequest = _interopRequireDefault(require("../model/UpdateMerchantByIdRequest"));
|
|
87
109
|
var _UpdatePaymentOrderRequest = _interopRequireDefault(require("../model/UpdatePaymentOrderRequest"));
|
|
88
110
|
var _UpdateRefundByIdRequest = _interopRequireDefault(require("../model/UpdateRefundByIdRequest"));
|
|
@@ -219,9 +241,9 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
219
241
|
|
|
220
242
|
/**
|
|
221
243
|
* Create batch allocation
|
|
222
|
-
* This operation
|
|
244
|
+
* This operation allocates funds between multiple accounts in one batch request.
|
|
223
245
|
* @param {Object} opts Optional parameters
|
|
224
|
-
* @param {module:model/CreateBatchAllocationRequest} [CreateBatchAllocationRequest] The request body to create a
|
|
246
|
+
* @param {module:model/CreateBatchAllocationRequest} [CreateBatchAllocationRequest] The request body to create a batch allocation request.
|
|
225
247
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/BatchAllocation} and HTTP response
|
|
226
248
|
*/
|
|
227
249
|
}, {
|
|
@@ -245,9 +267,9 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
245
267
|
|
|
246
268
|
/**
|
|
247
269
|
* Create batch allocation
|
|
248
|
-
* This operation
|
|
270
|
+
* This operation allocates funds between multiple accounts in one batch request.
|
|
249
271
|
* @param {Object} opts Optional parameters
|
|
250
|
-
* @param {module:model/CreateBatchAllocationRequest} opts.CreateBatchAllocationRequest The request body to create a
|
|
272
|
+
* @param {module:model/CreateBatchAllocationRequest} opts.CreateBatchAllocationRequest The request body to create a batch allocation request.
|
|
251
273
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/BatchAllocation}
|
|
252
274
|
*/
|
|
253
275
|
}, {
|
|
@@ -260,7 +282,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
260
282
|
|
|
261
283
|
/**
|
|
262
284
|
* Create counterparty
|
|
263
|
-
* This operation creates a counterparty.
|
|
285
|
+
* This operation creates a [counterparty](https://www.cobo.com/payments/en/guides/counterparties).
|
|
264
286
|
* @param {Object} opts Optional parameters
|
|
265
287
|
* @param {module:model/CreateCounterpartyRequest} [CreateCounterpartyRequest] The request body to create a counterparty.
|
|
266
288
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CounterpartyDetail} and HTTP response
|
|
@@ -286,7 +308,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
286
308
|
|
|
287
309
|
/**
|
|
288
310
|
* Create counterparty
|
|
289
|
-
* This operation creates a counterparty.
|
|
311
|
+
* This operation creates a [counterparty](https://www.cobo.com/payments/en/guides/counterparties).
|
|
290
312
|
* @param {Object} opts Optional parameters
|
|
291
313
|
* @param {module:model/CreateCounterpartyRequest} opts.CreateCounterpartyRequest The request body to create a counterparty.
|
|
292
314
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CounterpartyDetail}
|
|
@@ -299,6 +321,47 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
299
321
|
});
|
|
300
322
|
}
|
|
301
323
|
|
|
324
|
+
/**
|
|
325
|
+
* Create counterparty entry
|
|
326
|
+
* This operation creates one or more entries for a counterparty. A counterparty entry is a record of a counterparty's wallet address.
|
|
327
|
+
* @param {Object} opts Optional parameters
|
|
328
|
+
* @param {module:model/CreateCounterpartyEntryRequest} [CreateCounterpartyEntryRequest] The request body to create counterparty entries.
|
|
329
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateCounterpartyEntry201Response} and HTTP response
|
|
330
|
+
*/
|
|
331
|
+
}, {
|
|
332
|
+
key: "createCounterpartyEntryWithHttpInfo",
|
|
333
|
+
value: function createCounterpartyEntryWithHttpInfo(opts) {
|
|
334
|
+
opts = opts || {};
|
|
335
|
+
var postBody = opts['CreateCounterpartyEntryRequest'];
|
|
336
|
+
if (postBody && postBody.toJSON) {
|
|
337
|
+
postBody = postBody.toJSON();
|
|
338
|
+
}
|
|
339
|
+
var pathParams = {};
|
|
340
|
+
var queryParams = {};
|
|
341
|
+
var headerParams = {};
|
|
342
|
+
var formParams = {};
|
|
343
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
344
|
+
var contentTypes = ['application/json'];
|
|
345
|
+
var accepts = ['application/json'];
|
|
346
|
+
var returnType = _CreateCounterpartyEntry201Response["default"];
|
|
347
|
+
return this.apiClient.callApi('/payments/counterparty_entry', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* Create counterparty entry
|
|
352
|
+
* This operation creates one or more entries for a counterparty. A counterparty entry is a record of a counterparty's wallet address.
|
|
353
|
+
* @param {Object} opts Optional parameters
|
|
354
|
+
* @param {module:model/CreateCounterpartyEntryRequest} opts.CreateCounterpartyEntryRequest The request body to create counterparty entries.
|
|
355
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateCounterpartyEntry201Response}
|
|
356
|
+
*/
|
|
357
|
+
}, {
|
|
358
|
+
key: "createCounterpartyEntry",
|
|
359
|
+
value: function createCounterpartyEntry(opts) {
|
|
360
|
+
return this.createCounterpartyEntryWithHttpInfo(opts).then(function (response_and_data) {
|
|
361
|
+
return response_and_data.data;
|
|
362
|
+
});
|
|
363
|
+
}
|
|
364
|
+
|
|
302
365
|
/**
|
|
303
366
|
* Create counterparty wallet address
|
|
304
367
|
* This operation creates a counterparty wallet address.
|
|
@@ -383,7 +446,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
383
446
|
|
|
384
447
|
/**
|
|
385
448
|
* Create destination
|
|
386
|
-
* This operation creates a destination.
|
|
449
|
+
* This operation creates a [destination](https://www.cobo.com/payments/en/guides/destinations).
|
|
387
450
|
* @param {Object} opts Optional parameters
|
|
388
451
|
* @param {module:model/CreateDestinationRequest} [CreateDestinationRequest] The request body to create a destination.
|
|
389
452
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DestinationDetail} and HTTP response
|
|
@@ -409,7 +472,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
409
472
|
|
|
410
473
|
/**
|
|
411
474
|
* Create destination
|
|
412
|
-
* This operation creates a destination.
|
|
475
|
+
* This operation creates a [destination](https://www.cobo.com/payments/en/guides/destinations).
|
|
413
476
|
* @param {Object} opts Optional parameters
|
|
414
477
|
* @param {module:model/CreateDestinationRequest} opts.CreateDestinationRequest The request body to create a destination.
|
|
415
478
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DestinationDetail}
|
|
@@ -463,6 +526,47 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
463
526
|
});
|
|
464
527
|
}
|
|
465
528
|
|
|
529
|
+
/**
|
|
530
|
+
* Create destination entry
|
|
531
|
+
* 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.
|
|
532
|
+
* @param {Object} opts Optional parameters
|
|
533
|
+
* @param {module:model/CreateDestinationEntryRequest} [CreateDestinationEntryRequest] The request body to create destination entries.
|
|
534
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateDestinationEntry201Response} and HTTP response
|
|
535
|
+
*/
|
|
536
|
+
}, {
|
|
537
|
+
key: "createDestinationEntryWithHttpInfo",
|
|
538
|
+
value: function createDestinationEntryWithHttpInfo(opts) {
|
|
539
|
+
opts = opts || {};
|
|
540
|
+
var postBody = opts['CreateDestinationEntryRequest'];
|
|
541
|
+
if (postBody && postBody.toJSON) {
|
|
542
|
+
postBody = postBody.toJSON();
|
|
543
|
+
}
|
|
544
|
+
var pathParams = {};
|
|
545
|
+
var queryParams = {};
|
|
546
|
+
var headerParams = {};
|
|
547
|
+
var formParams = {};
|
|
548
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
549
|
+
var contentTypes = ['application/json'];
|
|
550
|
+
var accepts = ['application/json'];
|
|
551
|
+
var returnType = _CreateDestinationEntry201Response["default"];
|
|
552
|
+
return this.apiClient.callApi('/payments/destination_entry', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
/**
|
|
556
|
+
* Create destination entry
|
|
557
|
+
* 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.
|
|
558
|
+
* @param {Object} opts Optional parameters
|
|
559
|
+
* @param {module:model/CreateDestinationEntryRequest} opts.CreateDestinationEntryRequest The request body to create destination entries.
|
|
560
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateDestinationEntry201Response}
|
|
561
|
+
*/
|
|
562
|
+
}, {
|
|
563
|
+
key: "createDestinationEntry",
|
|
564
|
+
value: function createDestinationEntry(opts) {
|
|
565
|
+
return this.createDestinationEntryWithHttpInfo(opts).then(function (response_and_data) {
|
|
566
|
+
return response_and_data.data;
|
|
567
|
+
});
|
|
568
|
+
}
|
|
569
|
+
|
|
466
570
|
/**
|
|
467
571
|
* Create destination wallet address
|
|
468
572
|
* This operation creates a destination wallet address.
|
|
@@ -670,7 +774,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
670
774
|
|
|
671
775
|
/**
|
|
672
776
|
* Create payout
|
|
673
|
-
* This operation
|
|
777
|
+
* This operation initiates a payout, distributing funds either to cryptocurrency addresses or to bank accounts as fiat currency.
|
|
674
778
|
* @param {Object} opts Optional parameters
|
|
675
779
|
* @param {module:model/CreatePayoutRequest} [CreatePayoutRequest] The request body to create a payout.
|
|
676
780
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PaymentPayout} and HTTP response
|
|
@@ -696,7 +800,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
696
800
|
|
|
697
801
|
/**
|
|
698
802
|
* Create payout
|
|
699
|
-
* This operation
|
|
803
|
+
* This operation initiates a payout, distributing funds either to cryptocurrency addresses or to bank accounts as fiat currency.
|
|
700
804
|
* @param {Object} opts Optional parameters
|
|
701
805
|
* @param {module:model/CreatePayoutRequest} opts.CreatePayoutRequest The request body to create a payout.
|
|
702
806
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PaymentPayout}
|
|
@@ -791,6 +895,47 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
791
895
|
});
|
|
792
896
|
}
|
|
793
897
|
|
|
898
|
+
/**
|
|
899
|
+
* Generate reports
|
|
900
|
+
* This operation generates reports for a variety of payment activities, including pay-ins, payouts, and commission fees.
|
|
901
|
+
* @param {Object} opts Optional parameters
|
|
902
|
+
* @param {module:model/CreateReportRequest} [CreateReportRequest] The request body to create payment reports.
|
|
903
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Report} and HTTP response
|
|
904
|
+
*/
|
|
905
|
+
}, {
|
|
906
|
+
key: "createReportWithHttpInfo",
|
|
907
|
+
value: function createReportWithHttpInfo(opts) {
|
|
908
|
+
opts = opts || {};
|
|
909
|
+
var postBody = opts['CreateReportRequest'];
|
|
910
|
+
if (postBody && postBody.toJSON) {
|
|
911
|
+
postBody = postBody.toJSON();
|
|
912
|
+
}
|
|
913
|
+
var pathParams = {};
|
|
914
|
+
var queryParams = {};
|
|
915
|
+
var headerParams = {};
|
|
916
|
+
var formParams = {};
|
|
917
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
918
|
+
var contentTypes = ['application/json'];
|
|
919
|
+
var accepts = ['application/json'];
|
|
920
|
+
var returnType = _Report["default"];
|
|
921
|
+
return this.apiClient.callApi('/payments/reports', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
/**
|
|
925
|
+
* Generate reports
|
|
926
|
+
* This operation generates reports for a variety of payment activities, including pay-ins, payouts, and commission fees.
|
|
927
|
+
* @param {Object} opts Optional parameters
|
|
928
|
+
* @param {module:model/CreateReportRequest} opts.CreateReportRequest The request body to create payment reports.
|
|
929
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Report}
|
|
930
|
+
*/
|
|
931
|
+
}, {
|
|
932
|
+
key: "createReport",
|
|
933
|
+
value: function createReport(opts) {
|
|
934
|
+
return this.createReportWithHttpInfo(opts).then(function (response_and_data) {
|
|
935
|
+
return response_and_data.data;
|
|
936
|
+
});
|
|
937
|
+
}
|
|
938
|
+
|
|
794
939
|
/**
|
|
795
940
|
* Create settlement request
|
|
796
941
|
* This operation creates a settlement request to withdraw available balances.
|
|
@@ -833,7 +978,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
833
978
|
}
|
|
834
979
|
|
|
835
980
|
/**
|
|
836
|
-
* Delete counterparty
|
|
981
|
+
* Delete counterparty (Deprecated)
|
|
837
982
|
* This operation deletes a counterparty.
|
|
838
983
|
* @param {String} counterparty_id The counterparty ID.
|
|
839
984
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteCounterparty200Response} and HTTP response
|
|
@@ -863,7 +1008,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
863
1008
|
}
|
|
864
1009
|
|
|
865
1010
|
/**
|
|
866
|
-
* Delete counterparty
|
|
1011
|
+
* Delete counterparty (Deprecated)
|
|
867
1012
|
* This operation deletes a counterparty.
|
|
868
1013
|
* @param {String} counterparty_id The counterparty ID.
|
|
869
1014
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteCounterparty200Response}
|
|
@@ -876,6 +1021,108 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
876
1021
|
});
|
|
877
1022
|
}
|
|
878
1023
|
|
|
1024
|
+
/**
|
|
1025
|
+
* Delete counterparty
|
|
1026
|
+
* This operation deletes a counterparty. Note that this operation will delete all entries under the counterparty.
|
|
1027
|
+
* @param {String} counterparty_id The counterparty ID.
|
|
1028
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteCounterpartyById200Response} and HTTP response
|
|
1029
|
+
*/
|
|
1030
|
+
}, {
|
|
1031
|
+
key: "deleteCounterpartyByIdWithHttpInfo",
|
|
1032
|
+
value: function deleteCounterpartyByIdWithHttpInfo(counterparty_id) {
|
|
1033
|
+
var postBody = null;
|
|
1034
|
+
if (postBody && postBody.toJSON) {
|
|
1035
|
+
postBody = postBody.toJSON();
|
|
1036
|
+
}
|
|
1037
|
+
// verify the required parameter 'counterparty_id' is set
|
|
1038
|
+
if (counterparty_id === undefined || counterparty_id === null) {
|
|
1039
|
+
throw new Error("Missing the required parameter 'counterparty_id' when calling deleteCounterpartyById");
|
|
1040
|
+
}
|
|
1041
|
+
var pathParams = {
|
|
1042
|
+
'counterparty_id': counterparty_id
|
|
1043
|
+
};
|
|
1044
|
+
var queryParams = {};
|
|
1045
|
+
var headerParams = {};
|
|
1046
|
+
var formParams = {};
|
|
1047
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
1048
|
+
var contentTypes = [];
|
|
1049
|
+
var accepts = ['application/json'];
|
|
1050
|
+
var returnType = _DeleteCounterpartyById200Response["default"];
|
|
1051
|
+
return this.apiClient.callApi('/payments/counterparty/{counterparty_id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
/**
|
|
1055
|
+
* Delete counterparty
|
|
1056
|
+
* This operation deletes a counterparty. Note that this operation will delete all entries under the counterparty.
|
|
1057
|
+
* @param {String} counterparty_id The counterparty ID.
|
|
1058
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteCounterpartyById200Response}
|
|
1059
|
+
*/
|
|
1060
|
+
}, {
|
|
1061
|
+
key: "deleteCounterpartyById",
|
|
1062
|
+
value: function deleteCounterpartyById(counterparty_id) {
|
|
1063
|
+
return this.deleteCounterpartyByIdWithHttpInfo(counterparty_id).then(function (response_and_data) {
|
|
1064
|
+
return response_and_data.data;
|
|
1065
|
+
});
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
/**
|
|
1069
|
+
* Delete counterparty entry
|
|
1070
|
+
* This operation deletes a counterparty entry.
|
|
1071
|
+
* @param {String} counterparty_entry_id The counterparty entry ID. For example, the wallet address ID.
|
|
1072
|
+
* @param {String} counterparty_id The counterparty ID.
|
|
1073
|
+
* @param {Object} opts Optional parameters
|
|
1074
|
+
* @param {module:model/EntryType} [entry_type] The type of the counterparty entry. - `Address`: The counterparty entry is an address. - `BankAccount`: The counterparty entry is a bank account.
|
|
1075
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteCounterpartyEntry200Response} and HTTP response
|
|
1076
|
+
*/
|
|
1077
|
+
}, {
|
|
1078
|
+
key: "deleteCounterpartyEntryWithHttpInfo",
|
|
1079
|
+
value: function deleteCounterpartyEntryWithHttpInfo(counterparty_entry_id, counterparty_id, opts) {
|
|
1080
|
+
opts = opts || {};
|
|
1081
|
+
var postBody = null;
|
|
1082
|
+
if (postBody && postBody.toJSON) {
|
|
1083
|
+
postBody = postBody.toJSON();
|
|
1084
|
+
}
|
|
1085
|
+
// verify the required parameter 'counterparty_entry_id' is set
|
|
1086
|
+
if (counterparty_entry_id === undefined || counterparty_entry_id === null) {
|
|
1087
|
+
throw new Error("Missing the required parameter 'counterparty_entry_id' when calling deleteCounterpartyEntry");
|
|
1088
|
+
}
|
|
1089
|
+
// verify the required parameter 'counterparty_id' is set
|
|
1090
|
+
if (counterparty_id === undefined || counterparty_id === null) {
|
|
1091
|
+
throw new Error("Missing the required parameter 'counterparty_id' when calling deleteCounterpartyEntry");
|
|
1092
|
+
}
|
|
1093
|
+
var pathParams = {
|
|
1094
|
+
'counterparty_entry_id': counterparty_entry_id
|
|
1095
|
+
};
|
|
1096
|
+
var queryParams = {
|
|
1097
|
+
'counterparty_id': counterparty_id,
|
|
1098
|
+
'entry_type': opts['entry_type']
|
|
1099
|
+
};
|
|
1100
|
+
var headerParams = {};
|
|
1101
|
+
var formParams = {};
|
|
1102
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
1103
|
+
var contentTypes = [];
|
|
1104
|
+
var accepts = ['application/json'];
|
|
1105
|
+
var returnType = _DeleteCounterpartyEntry200Response["default"];
|
|
1106
|
+
return this.apiClient.callApi('/payments/counterparty_entry/{counterparty_entry_id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1107
|
+
}
|
|
1108
|
+
|
|
1109
|
+
/**
|
|
1110
|
+
* Delete counterparty entry
|
|
1111
|
+
* This operation deletes a counterparty entry.
|
|
1112
|
+
* @param {String} counterparty_entry_id The counterparty entry ID. For example, the wallet address ID.
|
|
1113
|
+
* @param {String} counterparty_id The counterparty ID.
|
|
1114
|
+
* @param {Object} opts Optional parameters
|
|
1115
|
+
* @param {module:model/EntryType} opts.entry_type The type of the counterparty entry. - `Address`: The counterparty entry is an address. - `BankAccount`: The counterparty entry is a bank account.
|
|
1116
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteCounterpartyEntry200Response}
|
|
1117
|
+
*/
|
|
1118
|
+
}, {
|
|
1119
|
+
key: "deleteCounterpartyEntry",
|
|
1120
|
+
value: function deleteCounterpartyEntry(counterparty_entry_id, counterparty_id, opts) {
|
|
1121
|
+
return this.deleteCounterpartyEntryWithHttpInfo(counterparty_entry_id, counterparty_id, opts).then(function (response_and_data) {
|
|
1122
|
+
return response_and_data.data;
|
|
1123
|
+
});
|
|
1124
|
+
}
|
|
1125
|
+
|
|
879
1126
|
/**
|
|
880
1127
|
* Delete counterparty wallet address
|
|
881
1128
|
* This operation deletes a counterparty wallet address.
|
|
@@ -965,7 +1212,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
965
1212
|
}
|
|
966
1213
|
|
|
967
1214
|
/**
|
|
968
|
-
* Delete destination
|
|
1215
|
+
* Delete destination (Deprecated)
|
|
969
1216
|
* This operation deletes a destination.
|
|
970
1217
|
* @param {String} destination_id The destination ID.
|
|
971
1218
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteDestination200Response} and HTTP response
|
|
@@ -995,7 +1242,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
995
1242
|
}
|
|
996
1243
|
|
|
997
1244
|
/**
|
|
998
|
-
* Delete destination
|
|
1245
|
+
* Delete destination (Deprecated)
|
|
999
1246
|
* This operation deletes a destination.
|
|
1000
1247
|
* @param {String} destination_id The destination ID.
|
|
1001
1248
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteDestination200Response}
|
|
@@ -1052,6 +1299,109 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1052
1299
|
});
|
|
1053
1300
|
}
|
|
1054
1301
|
|
|
1302
|
+
/**
|
|
1303
|
+
* Delete destination
|
|
1304
|
+
* This operation deletes a destination. Note that this operation will delete all entries under the destination, including bank accounts and addresses.
|
|
1305
|
+
* @param {String} destination_id The destination ID.
|
|
1306
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteDestinationById200Response} and HTTP response
|
|
1307
|
+
*/
|
|
1308
|
+
}, {
|
|
1309
|
+
key: "deleteDestinationByIdWithHttpInfo",
|
|
1310
|
+
value: function deleteDestinationByIdWithHttpInfo(destination_id) {
|
|
1311
|
+
var postBody = null;
|
|
1312
|
+
if (postBody && postBody.toJSON) {
|
|
1313
|
+
postBody = postBody.toJSON();
|
|
1314
|
+
}
|
|
1315
|
+
// verify the required parameter 'destination_id' is set
|
|
1316
|
+
if (destination_id === undefined || destination_id === null) {
|
|
1317
|
+
throw new Error("Missing the required parameter 'destination_id' when calling deleteDestinationById");
|
|
1318
|
+
}
|
|
1319
|
+
var pathParams = {
|
|
1320
|
+
'destination_id': destination_id
|
|
1321
|
+
};
|
|
1322
|
+
var queryParams = {};
|
|
1323
|
+
var headerParams = {};
|
|
1324
|
+
var formParams = {};
|
|
1325
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
1326
|
+
var contentTypes = [];
|
|
1327
|
+
var accepts = ['application/json'];
|
|
1328
|
+
var returnType = _DeleteDestinationById200Response["default"];
|
|
1329
|
+
return this.apiClient.callApi('/payments/destination/{destination_id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
/**
|
|
1333
|
+
* Delete destination
|
|
1334
|
+
* This operation deletes a destination. Note that this operation will delete all entries under the destination, including bank accounts and addresses.
|
|
1335
|
+
* @param {String} destination_id The destination ID.
|
|
1336
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteDestinationById200Response}
|
|
1337
|
+
*/
|
|
1338
|
+
}, {
|
|
1339
|
+
key: "deleteDestinationById",
|
|
1340
|
+
value: function deleteDestinationById(destination_id) {
|
|
1341
|
+
return this.deleteDestinationByIdWithHttpInfo(destination_id).then(function (response_and_data) {
|
|
1342
|
+
return response_and_data.data;
|
|
1343
|
+
});
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
/**
|
|
1347
|
+
* Delete destination entry
|
|
1348
|
+
* This operation deletes a destination entry.
|
|
1349
|
+
* @param {String} destination_entry_id The destination entry ID. For example, the wallet address ID or the bank account ID.
|
|
1350
|
+
* @param {String} destination_id The destination ID.
|
|
1351
|
+
* @param {module:model/EntryType} entry_type EntryType defines the type of the counterparty entry: - `Address`: The counterparty entry is an address. - `BankAccount`: The counterparty entry is a bank account.
|
|
1352
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteDestinationEntry200Response} and HTTP response
|
|
1353
|
+
*/
|
|
1354
|
+
}, {
|
|
1355
|
+
key: "deleteDestinationEntryWithHttpInfo",
|
|
1356
|
+
value: function deleteDestinationEntryWithHttpInfo(destination_entry_id, destination_id, entry_type) {
|
|
1357
|
+
var postBody = null;
|
|
1358
|
+
if (postBody && postBody.toJSON) {
|
|
1359
|
+
postBody = postBody.toJSON();
|
|
1360
|
+
}
|
|
1361
|
+
// verify the required parameter 'destination_entry_id' is set
|
|
1362
|
+
if (destination_entry_id === undefined || destination_entry_id === null) {
|
|
1363
|
+
throw new Error("Missing the required parameter 'destination_entry_id' when calling deleteDestinationEntry");
|
|
1364
|
+
}
|
|
1365
|
+
// verify the required parameter 'destination_id' is set
|
|
1366
|
+
if (destination_id === undefined || destination_id === null) {
|
|
1367
|
+
throw new Error("Missing the required parameter 'destination_id' when calling deleteDestinationEntry");
|
|
1368
|
+
}
|
|
1369
|
+
// verify the required parameter 'entry_type' is set
|
|
1370
|
+
if (entry_type === undefined || entry_type === null) {
|
|
1371
|
+
throw new Error("Missing the required parameter 'entry_type' when calling deleteDestinationEntry");
|
|
1372
|
+
}
|
|
1373
|
+
var pathParams = {
|
|
1374
|
+
'destination_entry_id': destination_entry_id
|
|
1375
|
+
};
|
|
1376
|
+
var queryParams = {
|
|
1377
|
+
'destination_id': destination_id,
|
|
1378
|
+
'entry_type': entry_type
|
|
1379
|
+
};
|
|
1380
|
+
var headerParams = {};
|
|
1381
|
+
var formParams = {};
|
|
1382
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
1383
|
+
var contentTypes = [];
|
|
1384
|
+
var accepts = ['application/json'];
|
|
1385
|
+
var returnType = _DeleteDestinationEntry200Response["default"];
|
|
1386
|
+
return this.apiClient.callApi('/payments/destination_entry/{destination_entry_id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1387
|
+
}
|
|
1388
|
+
|
|
1389
|
+
/**
|
|
1390
|
+
* Delete destination entry
|
|
1391
|
+
* This operation deletes a destination entry.
|
|
1392
|
+
* @param {String} destination_entry_id The destination entry ID. For example, the wallet address ID or the bank account ID.
|
|
1393
|
+
* @param {String} destination_id The destination ID.
|
|
1394
|
+
* @param {module:model/EntryType} entry_type EntryType defines the type of the counterparty entry: - `Address`: The counterparty entry is an address. - `BankAccount`: The counterparty entry is a bank account.
|
|
1395
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteDestinationEntry200Response}
|
|
1396
|
+
*/
|
|
1397
|
+
}, {
|
|
1398
|
+
key: "deleteDestinationEntry",
|
|
1399
|
+
value: function deleteDestinationEntry(destination_entry_id, destination_id, entry_type) {
|
|
1400
|
+
return this.deleteDestinationEntryWithHttpInfo(destination_entry_id, destination_id, entry_type).then(function (response_and_data) {
|
|
1401
|
+
return response_and_data.data;
|
|
1402
|
+
});
|
|
1403
|
+
}
|
|
1404
|
+
|
|
1055
1405
|
/**
|
|
1056
1406
|
* Delete destination wallet address
|
|
1057
1407
|
* This operation deletes a destination wallet address.
|
|
@@ -1139,10 +1489,10 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1139
1489
|
|
|
1140
1490
|
/**
|
|
1141
1491
|
* Get available allocation amount
|
|
1142
|
-
* This operation retrieves the
|
|
1492
|
+
* This operation retrieves the available amount that can be allocated from a source account to a destination account.
|
|
1143
1493
|
* @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`
|
|
1144
|
-
* @param {String} source_account
|
|
1145
|
-
* @param {String} destination_account
|
|
1494
|
+
* @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\"`.
|
|
1495
|
+
* @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\"`.
|
|
1146
1496
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PaymentAllocationAmount} and HTTP response
|
|
1147
1497
|
*/
|
|
1148
1498
|
}, {
|
|
@@ -1181,10 +1531,10 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1181
1531
|
|
|
1182
1532
|
/**
|
|
1183
1533
|
* Get available allocation amount
|
|
1184
|
-
* This operation retrieves the
|
|
1534
|
+
* This operation retrieves the available amount that can be allocated from a source account to a destination account.
|
|
1185
1535
|
* @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`
|
|
1186
|
-
* @param {String} source_account
|
|
1187
|
-
* @param {String} destination_account
|
|
1536
|
+
* @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\"`.
|
|
1537
|
+
* @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\"`.
|
|
1188
1538
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PaymentAllocationAmount}
|
|
1189
1539
|
*/
|
|
1190
1540
|
}, {
|
|
@@ -1196,7 +1546,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1196
1546
|
}
|
|
1197
1547
|
|
|
1198
1548
|
/**
|
|
1199
|
-
* Get batch allocation
|
|
1549
|
+
* Get batch allocation information
|
|
1200
1550
|
* This operation retrieves the information of a batch allocation.
|
|
1201
1551
|
* @param {String} batch_allocation_id The batch allocation ID.
|
|
1202
1552
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/BatchAllocationDetail} and HTTP response
|
|
@@ -1226,7 +1576,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1226
1576
|
}
|
|
1227
1577
|
|
|
1228
1578
|
/**
|
|
1229
|
-
* Get batch allocation
|
|
1579
|
+
* Get batch allocation information
|
|
1230
1580
|
* This operation retrieves the information of a batch allocation.
|
|
1231
1581
|
* @param {String} batch_allocation_id The batch allocation ID.
|
|
1232
1582
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/BatchAllocationDetail}
|
|
@@ -1245,6 +1595,50 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1245
1595
|
* @param {String} counterparty_id The counterparty ID.
|
|
1246
1596
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CounterpartyDetail} and HTTP response
|
|
1247
1597
|
*/
|
|
1598
|
+
}, {
|
|
1599
|
+
key: "getCounterpartyWithHttpInfo",
|
|
1600
|
+
value: function getCounterpartyWithHttpInfo(counterparty_id) {
|
|
1601
|
+
var postBody = null;
|
|
1602
|
+
if (postBody && postBody.toJSON) {
|
|
1603
|
+
postBody = postBody.toJSON();
|
|
1604
|
+
}
|
|
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");
|
|
1608
|
+
}
|
|
1609
|
+
var pathParams = {
|
|
1610
|
+
'counterparty_id': counterparty_id
|
|
1611
|
+
};
|
|
1612
|
+
var queryParams = {};
|
|
1613
|
+
var headerParams = {};
|
|
1614
|
+
var formParams = {};
|
|
1615
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
1616
|
+
var contentTypes = [];
|
|
1617
|
+
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);
|
|
1620
|
+
}
|
|
1621
|
+
|
|
1622
|
+
/**
|
|
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}
|
|
1627
|
+
*/
|
|
1628
|
+
}, {
|
|
1629
|
+
key: "getCounterparty",
|
|
1630
|
+
value: function getCounterparty(counterparty_id) {
|
|
1631
|
+
return this.getCounterpartyWithHttpInfo(counterparty_id).then(function (response_and_data) {
|
|
1632
|
+
return response_and_data.data;
|
|
1633
|
+
});
|
|
1634
|
+
}
|
|
1635
|
+
|
|
1636
|
+
/**
|
|
1637
|
+
* Get counterparty information (Deprecated)
|
|
1638
|
+
* This operation retrieves the detailed information about a specified counterparty.
|
|
1639
|
+
* @param {String} counterparty_id The counterparty ID.
|
|
1640
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CounterpartyDetail} and HTTP response
|
|
1641
|
+
*/
|
|
1248
1642
|
}, {
|
|
1249
1643
|
key: "getCounterpartyDetailByIdWithHttpInfo",
|
|
1250
1644
|
value: function getCounterpartyDetailByIdWithHttpInfo(counterparty_id) {
|
|
@@ -1270,7 +1664,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1270
1664
|
}
|
|
1271
1665
|
|
|
1272
1666
|
/**
|
|
1273
|
-
* Get counterparty information
|
|
1667
|
+
* Get counterparty information (Deprecated)
|
|
1274
1668
|
* This operation retrieves the detailed information about a specified counterparty.
|
|
1275
1669
|
* @param {String} counterparty_id The counterparty ID.
|
|
1276
1670
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CounterpartyDetail}
|
|
@@ -1283,6 +1677,101 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1283
1677
|
});
|
|
1284
1678
|
}
|
|
1285
1679
|
|
|
1680
|
+
/**
|
|
1681
|
+
* Get counterparty entry information
|
|
1682
|
+
* This operation retrieves the detailed information about a specified counterparty entry.
|
|
1683
|
+
* @param {String} counterparty_entry_id The counterparty entry ID. For example, the wallet address ID.
|
|
1684
|
+
* @param {Object} opts Optional parameters
|
|
1685
|
+
* @param {module:model/EntryType} [entry_type] The type of the counterparty entry. - `Address`: The counterparty entry is an address. - `BankAccount`: The counterparty entry is a bank account.
|
|
1686
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetCounterpartyEntry200Response} and HTTP response
|
|
1687
|
+
*/
|
|
1688
|
+
}, {
|
|
1689
|
+
key: "getCounterpartyEntryWithHttpInfo",
|
|
1690
|
+
value: function getCounterpartyEntryWithHttpInfo(counterparty_entry_id, opts) {
|
|
1691
|
+
opts = opts || {};
|
|
1692
|
+
var postBody = null;
|
|
1693
|
+
if (postBody && postBody.toJSON) {
|
|
1694
|
+
postBody = postBody.toJSON();
|
|
1695
|
+
}
|
|
1696
|
+
// verify the required parameter 'counterparty_entry_id' is set
|
|
1697
|
+
if (counterparty_entry_id === undefined || counterparty_entry_id === null) {
|
|
1698
|
+
throw new Error("Missing the required parameter 'counterparty_entry_id' when calling getCounterpartyEntry");
|
|
1699
|
+
}
|
|
1700
|
+
var pathParams = {
|
|
1701
|
+
'counterparty_entry_id': counterparty_entry_id
|
|
1702
|
+
};
|
|
1703
|
+
var queryParams = {
|
|
1704
|
+
'entry_type': opts['entry_type']
|
|
1705
|
+
};
|
|
1706
|
+
var headerParams = {};
|
|
1707
|
+
var formParams = {};
|
|
1708
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
1709
|
+
var contentTypes = [];
|
|
1710
|
+
var accepts = ['application/json'];
|
|
1711
|
+
var returnType = _GetCounterpartyEntry200Response["default"];
|
|
1712
|
+
return this.apiClient.callApi('/payments/counterparty_entry/{counterparty_entry_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1713
|
+
}
|
|
1714
|
+
|
|
1715
|
+
/**
|
|
1716
|
+
* Get counterparty entry information
|
|
1717
|
+
* This operation retrieves the detailed information about a specified counterparty entry.
|
|
1718
|
+
* @param {String} counterparty_entry_id The counterparty entry ID. For example, the wallet address ID.
|
|
1719
|
+
* @param {Object} opts Optional parameters
|
|
1720
|
+
* @param {module:model/EntryType} opts.entry_type The type of the counterparty entry. - `Address`: The counterparty entry is an address. - `BankAccount`: The counterparty entry is a bank account.
|
|
1721
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetCounterpartyEntry200Response}
|
|
1722
|
+
*/
|
|
1723
|
+
}, {
|
|
1724
|
+
key: "getCounterpartyEntry",
|
|
1725
|
+
value: function getCounterpartyEntry(counterparty_entry_id, opts) {
|
|
1726
|
+
return this.getCounterpartyEntryWithHttpInfo(counterparty_entry_id, opts).then(function (response_and_data) {
|
|
1727
|
+
return response_and_data.data;
|
|
1728
|
+
});
|
|
1729
|
+
}
|
|
1730
|
+
|
|
1731
|
+
/**
|
|
1732
|
+
* Get destination information
|
|
1733
|
+
* This operation retrieves the detailed information about a specified destination.
|
|
1734
|
+
* @param {String} destination_id The destination ID.
|
|
1735
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DestinationDetail} and HTTP response
|
|
1736
|
+
*/
|
|
1737
|
+
}, {
|
|
1738
|
+
key: "getDestinationWithHttpInfo",
|
|
1739
|
+
value: function getDestinationWithHttpInfo(destination_id) {
|
|
1740
|
+
var postBody = null;
|
|
1741
|
+
if (postBody && postBody.toJSON) {
|
|
1742
|
+
postBody = postBody.toJSON();
|
|
1743
|
+
}
|
|
1744
|
+
// verify the required parameter 'destination_id' is set
|
|
1745
|
+
if (destination_id === undefined || destination_id === null) {
|
|
1746
|
+
throw new Error("Missing the required parameter 'destination_id' when calling getDestination");
|
|
1747
|
+
}
|
|
1748
|
+
var pathParams = {
|
|
1749
|
+
'destination_id': destination_id
|
|
1750
|
+
};
|
|
1751
|
+
var queryParams = {};
|
|
1752
|
+
var headerParams = {};
|
|
1753
|
+
var formParams = {};
|
|
1754
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
1755
|
+
var contentTypes = [];
|
|
1756
|
+
var accepts = ['application/json'];
|
|
1757
|
+
var returnType = _DestinationDetail["default"];
|
|
1758
|
+
return this.apiClient.callApi('/payments/destination/{destination_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1759
|
+
}
|
|
1760
|
+
|
|
1761
|
+
/**
|
|
1762
|
+
* Get destination information
|
|
1763
|
+
* This operation retrieves the detailed information about a specified destination.
|
|
1764
|
+
* @param {String} destination_id The destination ID.
|
|
1765
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DestinationDetail}
|
|
1766
|
+
*/
|
|
1767
|
+
}, {
|
|
1768
|
+
key: "getDestination",
|
|
1769
|
+
value: function getDestination(destination_id) {
|
|
1770
|
+
return this.getDestinationWithHttpInfo(destination_id).then(function (response_and_data) {
|
|
1771
|
+
return response_and_data.data;
|
|
1772
|
+
});
|
|
1773
|
+
}
|
|
1774
|
+
|
|
1286
1775
|
/**
|
|
1287
1776
|
* Get destination bank account information
|
|
1288
1777
|
* This operation retrieves the detailed information about a specified destination bank account.
|
|
@@ -1328,45 +1817,97 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1328
1817
|
}
|
|
1329
1818
|
|
|
1330
1819
|
/**
|
|
1331
|
-
* Get destination information
|
|
1820
|
+
* Get destination information (Deprecated)
|
|
1332
1821
|
* This operation retrieves the detailed information about a specified destination.
|
|
1333
1822
|
* @param {String} destination_id The destination ID.
|
|
1334
1823
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DestinationDetail} and HTTP response
|
|
1335
1824
|
*/
|
|
1336
1825
|
}, {
|
|
1337
|
-
key: "getDestinationDetailByIdWithHttpInfo",
|
|
1338
|
-
value: function getDestinationDetailByIdWithHttpInfo(destination_id) {
|
|
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
|
+
/**
|
|
1864
|
+
* Get destination entry information
|
|
1865
|
+
* This operation retrieves the detailed information about a specified destination entry.
|
|
1866
|
+
* @param {String} destination_entry_id The destination entry ID. For example, the wallet address ID or the bank account ID.
|
|
1867
|
+
* @param {module:model/EntryType} entry_type EntryType defines the type of the counterparty entry: - `Address`: The counterparty entry is an address. - `BankAccount`: The counterparty entry is a bank account.
|
|
1868
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDestinationEntry200Response} and HTTP response
|
|
1869
|
+
*/
|
|
1870
|
+
}, {
|
|
1871
|
+
key: "getDestinationEntryWithHttpInfo",
|
|
1872
|
+
value: function getDestinationEntryWithHttpInfo(destination_entry_id, entry_type) {
|
|
1339
1873
|
var postBody = null;
|
|
1340
1874
|
if (postBody && postBody.toJSON) {
|
|
1341
1875
|
postBody = postBody.toJSON();
|
|
1342
1876
|
}
|
|
1343
|
-
// verify the required parameter '
|
|
1344
|
-
if (
|
|
1345
|
-
throw new Error("Missing the required parameter '
|
|
1877
|
+
// verify the required parameter 'destination_entry_id' is set
|
|
1878
|
+
if (destination_entry_id === undefined || destination_entry_id === null) {
|
|
1879
|
+
throw new Error("Missing the required parameter 'destination_entry_id' when calling getDestinationEntry");
|
|
1880
|
+
}
|
|
1881
|
+
// verify the required parameter 'entry_type' is set
|
|
1882
|
+
if (entry_type === undefined || entry_type === null) {
|
|
1883
|
+
throw new Error("Missing the required parameter 'entry_type' when calling getDestinationEntry");
|
|
1346
1884
|
}
|
|
1347
1885
|
var pathParams = {
|
|
1348
|
-
'
|
|
1886
|
+
'destination_entry_id': destination_entry_id
|
|
1887
|
+
};
|
|
1888
|
+
var queryParams = {
|
|
1889
|
+
'entry_type': entry_type
|
|
1349
1890
|
};
|
|
1350
|
-
var queryParams = {};
|
|
1351
1891
|
var headerParams = {};
|
|
1352
1892
|
var formParams = {};
|
|
1353
1893
|
var authNames = ['OAuth2', 'CoboAuth'];
|
|
1354
1894
|
var contentTypes = [];
|
|
1355
1895
|
var accepts = ['application/json'];
|
|
1356
|
-
var returnType =
|
|
1357
|
-
return this.apiClient.callApi('/payments/
|
|
1896
|
+
var returnType = _GetDestinationEntry200Response["default"];
|
|
1897
|
+
return this.apiClient.callApi('/payments/destination_entry/{destination_entry_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1358
1898
|
}
|
|
1359
1899
|
|
|
1360
1900
|
/**
|
|
1361
|
-
* Get destination information
|
|
1362
|
-
* This operation retrieves the detailed information about a specified destination.
|
|
1363
|
-
* @param {String}
|
|
1364
|
-
* @
|
|
1901
|
+
* Get destination entry information
|
|
1902
|
+
* This operation retrieves the detailed information about a specified destination entry.
|
|
1903
|
+
* @param {String} destination_entry_id The destination entry ID. For example, the wallet address ID or the bank account ID.
|
|
1904
|
+
* @param {module:model/EntryType} entry_type EntryType defines the type of the counterparty entry: - `Address`: The counterparty entry is an address. - `BankAccount`: The counterparty entry is a bank account.
|
|
1905
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDestinationEntry200Response}
|
|
1365
1906
|
*/
|
|
1366
1907
|
}, {
|
|
1367
|
-
key: "
|
|
1368
|
-
value: function
|
|
1369
|
-
return this.
|
|
1908
|
+
key: "getDestinationEntry",
|
|
1909
|
+
value: function getDestinationEntry(destination_entry_id, entry_type) {
|
|
1910
|
+
return this.getDestinationEntryWithHttpInfo(destination_entry_id, entry_type).then(function (response_and_data) {
|
|
1370
1911
|
return response_and_data.data;
|
|
1371
1912
|
});
|
|
1372
1913
|
}
|
|
@@ -1512,7 +2053,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1512
2053
|
|
|
1513
2054
|
/**
|
|
1514
2055
|
* Get developer balance
|
|
1515
|
-
* This operation retrieves the balance information for you as the developer. The balance information is grouped by token. For more information, please refer to [
|
|
2056
|
+
* This operation retrieves the balance information for you as the developer. The balance information is grouped by token. For more information, please refer to [Accounts and fund allocation](https://www.cobo.com/payments/en/guides/amounts-and-balances).
|
|
1516
2057
|
* @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`
|
|
1517
2058
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PspBalance} and HTTP response
|
|
1518
2059
|
*/
|
|
@@ -1542,7 +2083,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1542
2083
|
|
|
1543
2084
|
/**
|
|
1544
2085
|
* Get developer balance
|
|
1545
|
-
* This operation retrieves the balance information for you as the developer. The balance information is grouped by token. For more information, please refer to [
|
|
2086
|
+
* This operation retrieves the balance information for you as the developer. The balance information is grouped by token. For more information, please refer to [Accounts and fund allocation](https://www.cobo.com/payments/en/guides/amounts-and-balances).
|
|
1546
2087
|
* @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`
|
|
1547
2088
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PspBalance}
|
|
1548
2089
|
*/
|
|
@@ -1607,7 +2148,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1607
2148
|
* @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.
|
|
1608
2149
|
* @param {String} [merchant_id] The merchant ID.
|
|
1609
2150
|
* @param {String} [request_id] The request ID.
|
|
1610
|
-
* @param {String} [statuses] A list of order, refund or
|
|
2151
|
+
* @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)
|
|
1611
2152
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetRefunds200Response} and HTTP response
|
|
1612
2153
|
*/
|
|
1613
2154
|
}, {
|
|
@@ -1645,7 +2186,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1645
2186
|
* @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.
|
|
1646
2187
|
* @param {String} opts.merchant_id The merchant ID.
|
|
1647
2188
|
* @param {String} opts.request_id The request ID.
|
|
1648
|
-
* @param {String} opts.statuses A list of order, refund or
|
|
2189
|
+
* @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)
|
|
1649
2190
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetRefunds200Response}
|
|
1650
2191
|
*/
|
|
1651
2192
|
}, {
|
|
@@ -1656,6 +2197,61 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1656
2197
|
});
|
|
1657
2198
|
}
|
|
1658
2199
|
|
|
2200
|
+
/**
|
|
2201
|
+
* List all reports
|
|
2202
|
+
* This operation retrieves the information of all reports.
|
|
2203
|
+
* @param {Object} opts Optional parameters
|
|
2204
|
+
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
2205
|
+
* @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.
|
|
2206
|
+
* @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.
|
|
2207
|
+
* @param {module:model/ReportType} [report_type] The type of the report. - `Order`: Summary of all pay-in orders. - `OrderTransaction`: Summary of all pay-in order transactions. - `TopUpTransaction`: Summary of all top-up transactions. - `PayinWeeklyStatement`: Weekly report of all pay-ins (including order mode and top-up mode). - `PayinDailyStatement`: Daily report of all pay-ins (including order mode and top-up mode). - `CryptoPayout`: Summary of all crypto payout transactions. - `OffRamp`: Summary of all fiat off-ramp transactions. - `Refund`: Summary of all refund transactions. - `PayoutWeeklyStatement`: Weekly report of all payouts (including crypto payouts, fiat off-ramps, and refunds). - `PayoutDailyStatement`: Daily report of all payouts (including crypto payouts, fiat off-ramps, and refunds). - `PayinCommissionFee`: Summary of all commission fees for pay-ins. - `PayoutCommissionFee`: Summary of all commission fees for payouts. - `BalanceChange`: Summary of balance changes for all accounts. - `Summary`: Summary of all pay-ins, payouts, and commission fees.
|
|
2208
|
+
* @param {module:model/ReportStatus} [report_status] The status of the report. - `Completed`: The report has been generated successfully. - `Failed`: The report could not be generated.
|
|
2209
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetReports200Response} and HTTP response
|
|
2210
|
+
*/
|
|
2211
|
+
}, {
|
|
2212
|
+
key: "getReportsWithHttpInfo",
|
|
2213
|
+
value: function getReportsWithHttpInfo(opts) {
|
|
2214
|
+
opts = opts || {};
|
|
2215
|
+
var postBody = null;
|
|
2216
|
+
if (postBody && postBody.toJSON) {
|
|
2217
|
+
postBody = postBody.toJSON();
|
|
2218
|
+
}
|
|
2219
|
+
var pathParams = {};
|
|
2220
|
+
var queryParams = {
|
|
2221
|
+
'limit': opts['limit'],
|
|
2222
|
+
'before': opts['before'],
|
|
2223
|
+
'after': opts['after'],
|
|
2224
|
+
'report_type': opts['report_type'],
|
|
2225
|
+
'report_status': opts['report_status']
|
|
2226
|
+
};
|
|
2227
|
+
var headerParams = {};
|
|
2228
|
+
var formParams = {};
|
|
2229
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
2230
|
+
var contentTypes = [];
|
|
2231
|
+
var accepts = ['application/json'];
|
|
2232
|
+
var returnType = _GetReports200Response["default"];
|
|
2233
|
+
return this.apiClient.callApi('/payments/reports', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
2234
|
+
}
|
|
2235
|
+
|
|
2236
|
+
/**
|
|
2237
|
+
* List all reports
|
|
2238
|
+
* This operation retrieves the information of all reports.
|
|
2239
|
+
* @param {Object} opts Optional parameters
|
|
2240
|
+
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
2241
|
+
* @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.
|
|
2242
|
+
* @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.
|
|
2243
|
+
* @param {module:model/ReportType} opts.report_type The type of the report. - `Order`: Summary of all pay-in orders. - `OrderTransaction`: Summary of all pay-in order transactions. - `TopUpTransaction`: Summary of all top-up transactions. - `PayinWeeklyStatement`: Weekly report of all pay-ins (including order mode and top-up mode). - `PayinDailyStatement`: Daily report of all pay-ins (including order mode and top-up mode). - `CryptoPayout`: Summary of all crypto payout transactions. - `OffRamp`: Summary of all fiat off-ramp transactions. - `Refund`: Summary of all refund transactions. - `PayoutWeeklyStatement`: Weekly report of all payouts (including crypto payouts, fiat off-ramps, and refunds). - `PayoutDailyStatement`: Daily report of all payouts (including crypto payouts, fiat off-ramps, and refunds). - `PayinCommissionFee`: Summary of all commission fees for pay-ins. - `PayoutCommissionFee`: Summary of all commission fees for payouts. - `BalanceChange`: Summary of balance changes for all accounts. - `Summary`: Summary of all pay-ins, payouts, and commission fees.
|
|
2244
|
+
* @param {module:model/ReportStatus} opts.report_status The status of the report. - `Completed`: The report has been generated successfully. - `Failed`: The report could not be generated.
|
|
2245
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetReports200Response}
|
|
2246
|
+
*/
|
|
2247
|
+
}, {
|
|
2248
|
+
key: "getReports",
|
|
2249
|
+
value: function getReports(opts) {
|
|
2250
|
+
return this.getReportsWithHttpInfo(opts).then(function (response_and_data) {
|
|
2251
|
+
return response_and_data.data;
|
|
2252
|
+
});
|
|
2253
|
+
}
|
|
2254
|
+
|
|
1659
2255
|
/**
|
|
1660
2256
|
* Get settlement request information
|
|
1661
2257
|
* This operation retrieves the information of a specific settlement request.
|
|
@@ -1807,14 +2403,14 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1807
2403
|
}
|
|
1808
2404
|
|
|
1809
2405
|
/**
|
|
1810
|
-
* List all
|
|
1811
|
-
* This operation retrieves the information of all
|
|
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.
|
|
1812
2408
|
* @param {Object} opts Optional parameters
|
|
1813
2409
|
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
1814
2410
|
* @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.
|
|
1815
2411
|
* @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.
|
|
1816
|
-
* @param {String} [source_account]
|
|
1817
|
-
* @param {String} [destination_account]
|
|
2412
|
+
* @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\"`.
|
|
2413
|
+
* @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\"`.
|
|
1818
2414
|
* @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`
|
|
1819
2415
|
* @param {String} [batch_allocation_id] The batch allocation ID.
|
|
1820
2416
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListAllocations200Response} and HTTP response
|
|
@@ -1847,14 +2443,14 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1847
2443
|
}
|
|
1848
2444
|
|
|
1849
2445
|
/**
|
|
1850
|
-
* List all
|
|
1851
|
-
* This operation retrieves the information of all
|
|
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.
|
|
1852
2448
|
* @param {Object} opts Optional parameters
|
|
1853
2449
|
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
1854
2450
|
* @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.
|
|
1855
2451
|
* @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.
|
|
1856
|
-
* @param {String} opts.source_account
|
|
1857
|
-
* @param {String} opts.destination_account
|
|
2452
|
+
* @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\"`.
|
|
2453
|
+
* @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\"`.
|
|
1858
2454
|
* @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`
|
|
1859
2455
|
* @param {String} opts.batch_allocation_id The batch allocation ID.
|
|
1860
2456
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListAllocations200Response}
|
|
@@ -1869,7 +2465,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1869
2465
|
|
|
1870
2466
|
/**
|
|
1871
2467
|
* List all bank accounts
|
|
1872
|
-
* 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.
|
|
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.
|
|
1873
2469
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/BankAccount>} and HTTP response
|
|
1874
2470
|
*/
|
|
1875
2471
|
}, {
|
|
@@ -1892,7 +2488,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1892
2488
|
|
|
1893
2489
|
/**
|
|
1894
2490
|
* List all bank accounts
|
|
1895
|
-
* 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.
|
|
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.
|
|
1896
2492
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/BankAccount>}
|
|
1897
2493
|
*/
|
|
1898
2494
|
}, {
|
|
@@ -1962,9 +2558,9 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1962
2558
|
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
1963
2559
|
* @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.
|
|
1964
2560
|
* @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.
|
|
1965
|
-
* @param {String} [keyword] A search term
|
|
1966
|
-
* @param {module:model/CounterpartyType} [counterparty_type]
|
|
1967
|
-
* @param {String} [country]
|
|
2561
|
+
* @param {String} [keyword] A search term for performing fuzzy matches in the search query.
|
|
2562
|
+
* @param {module:model/CounterpartyType} [counterparty_type] The type of the counterparty. - `Individual`: The counterparty is an individual. - `Organization`: The counterparty is an organization.
|
|
2563
|
+
* @param {String} [country] Country code, in ISO 3166-1 alpha-3 format.
|
|
1968
2564
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListCounterparties200Response} and HTTP response
|
|
1969
2565
|
*/
|
|
1970
2566
|
}, {
|
|
@@ -2000,9 +2596,9 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2000
2596
|
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
2001
2597
|
* @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.
|
|
2002
2598
|
* @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.
|
|
2003
|
-
* @param {String} opts.keyword A search term
|
|
2004
|
-
* @param {module:model/CounterpartyType} opts.counterparty_type
|
|
2005
|
-
* @param {String} opts.country
|
|
2599
|
+
* @param {String} opts.keyword A search term for performing fuzzy matches in the search query.
|
|
2600
|
+
* @param {module:model/CounterpartyType} opts.counterparty_type The type of the counterparty. - `Individual`: The counterparty is an individual. - `Organization`: The counterparty is an organization.
|
|
2601
|
+
* @param {String} opts.country Country code, in ISO 3166-1 alpha-3 format.
|
|
2006
2602
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListCounterparties200Response}
|
|
2007
2603
|
*/
|
|
2008
2604
|
}, {
|
|
@@ -2013,6 +2609,67 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2013
2609
|
});
|
|
2014
2610
|
}
|
|
2015
2611
|
|
|
2612
|
+
/**
|
|
2613
|
+
* List counterparty entries
|
|
2614
|
+
* This operation retrieves the information of counterparty entries.
|
|
2615
|
+
* @param {Object} opts Optional parameters
|
|
2616
|
+
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
2617
|
+
* @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.
|
|
2618
|
+
* @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.
|
|
2619
|
+
* @param {module:model/EntryType} [entry_type] The type of the counterparty entry. - `Address`: The counterparty entry is an address. - `BankAccount`: The counterparty entry is a bank account.
|
|
2620
|
+
* @param {String} [counterparty_id] The counterparty ID.
|
|
2621
|
+
* @param {String} [chain_ids] The chain ID, which is the unique identifier of a blockchain.
|
|
2622
|
+
* @param {String} [wallet_address] The wallet address.
|
|
2623
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListCounterpartyEntries200Response} and HTTP response
|
|
2624
|
+
*/
|
|
2625
|
+
}, {
|
|
2626
|
+
key: "listCounterpartyEntriesWithHttpInfo",
|
|
2627
|
+
value: function listCounterpartyEntriesWithHttpInfo(opts) {
|
|
2628
|
+
opts = opts || {};
|
|
2629
|
+
var postBody = null;
|
|
2630
|
+
if (postBody && postBody.toJSON) {
|
|
2631
|
+
postBody = postBody.toJSON();
|
|
2632
|
+
}
|
|
2633
|
+
var pathParams = {};
|
|
2634
|
+
var queryParams = {
|
|
2635
|
+
'limit': opts['limit'],
|
|
2636
|
+
'before': opts['before'],
|
|
2637
|
+
'after': opts['after'],
|
|
2638
|
+
'entry_type': opts['entry_type'],
|
|
2639
|
+
'counterparty_id': opts['counterparty_id'],
|
|
2640
|
+
'chain_ids': opts['chain_ids'],
|
|
2641
|
+
'wallet_address': opts['wallet_address']
|
|
2642
|
+
};
|
|
2643
|
+
var headerParams = {};
|
|
2644
|
+
var formParams = {};
|
|
2645
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
2646
|
+
var contentTypes = [];
|
|
2647
|
+
var accepts = ['application/json'];
|
|
2648
|
+
var returnType = _ListCounterpartyEntries200Response["default"];
|
|
2649
|
+
return this.apiClient.callApi('/payments/counterparty_entry', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
2650
|
+
}
|
|
2651
|
+
|
|
2652
|
+
/**
|
|
2653
|
+
* List counterparty entries
|
|
2654
|
+
* This operation retrieves the information of counterparty entries.
|
|
2655
|
+
* @param {Object} opts Optional parameters
|
|
2656
|
+
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
2657
|
+
* @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.
|
|
2658
|
+
* @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.
|
|
2659
|
+
* @param {module:model/EntryType} opts.entry_type The type of the counterparty entry. - `Address`: The counterparty entry is an address. - `BankAccount`: The counterparty entry is a bank account.
|
|
2660
|
+
* @param {String} opts.counterparty_id The counterparty ID.
|
|
2661
|
+
* @param {String} opts.chain_ids The chain ID, which is the unique identifier of a blockchain.
|
|
2662
|
+
* @param {String} opts.wallet_address The wallet address.
|
|
2663
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListCounterpartyEntries200Response}
|
|
2664
|
+
*/
|
|
2665
|
+
}, {
|
|
2666
|
+
key: "listCounterpartyEntries",
|
|
2667
|
+
value: function listCounterpartyEntries(opts) {
|
|
2668
|
+
return this.listCounterpartyEntriesWithHttpInfo(opts).then(function (response_and_data) {
|
|
2669
|
+
return response_and_data.data;
|
|
2670
|
+
});
|
|
2671
|
+
}
|
|
2672
|
+
|
|
2016
2673
|
/**
|
|
2017
2674
|
* List counterparty wallet addresses
|
|
2018
2675
|
* This operation retrieves the information of counterparty wallet addresses.
|
|
@@ -2121,7 +2778,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2121
2778
|
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
2122
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.
|
|
2123
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.
|
|
2124
|
-
* @param {String} [keyword] A search term
|
|
2781
|
+
* @param {String} [keyword] A search term for performing fuzzy matches in the search query.
|
|
2125
2782
|
* @param {String} [destination_id] The destination ID.
|
|
2126
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.
|
|
2127
2784
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListDestinationBankAccounts200Response} and HTTP response
|
|
@@ -2159,7 +2816,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2159
2816
|
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
2160
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.
|
|
2161
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.
|
|
2162
|
-
* @param {String} opts.keyword A search term
|
|
2819
|
+
* @param {String} opts.keyword A search term for performing fuzzy matches in the search query.
|
|
2163
2820
|
* @param {String} opts.destination_id The destination ID.
|
|
2164
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.
|
|
2165
2822
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListDestinationBankAccounts200Response}
|
|
@@ -2172,6 +2829,77 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2172
2829
|
});
|
|
2173
2830
|
}
|
|
2174
2831
|
|
|
2832
|
+
/**
|
|
2833
|
+
* List destination entries
|
|
2834
|
+
* This operation retrieves the information of destination entries.
|
|
2835
|
+
* @param {module:model/EntryType} entry_type EntryType defines the type of the counterparty entry: - `Address`: The counterparty entry is an address. - `BankAccount`: The counterparty entry is a bank account.
|
|
2836
|
+
* @param {Object} opts Optional parameters
|
|
2837
|
+
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
2838
|
+
* @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.
|
|
2839
|
+
* @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.
|
|
2840
|
+
* @param {String} [destination_id] The destination ID.
|
|
2841
|
+
* @param {String} [chain_ids] The chain ID, which is the unique identifier of a blockchain.
|
|
2842
|
+
* @param {String} [wallet_address] The wallet address.
|
|
2843
|
+
* @param {String} [keyword] A search term for performing fuzzy matches in the search query.
|
|
2844
|
+
* @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.
|
|
2845
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListDestinationEntries200Response} and HTTP response
|
|
2846
|
+
*/
|
|
2847
|
+
}, {
|
|
2848
|
+
key: "listDestinationEntriesWithHttpInfo",
|
|
2849
|
+
value: function listDestinationEntriesWithHttpInfo(entry_type, opts) {
|
|
2850
|
+
opts = opts || {};
|
|
2851
|
+
var postBody = null;
|
|
2852
|
+
if (postBody && postBody.toJSON) {
|
|
2853
|
+
postBody = postBody.toJSON();
|
|
2854
|
+
}
|
|
2855
|
+
// verify the required parameter 'entry_type' is set
|
|
2856
|
+
if (entry_type === undefined || entry_type === null) {
|
|
2857
|
+
throw new Error("Missing the required parameter 'entry_type' when calling listDestinationEntries");
|
|
2858
|
+
}
|
|
2859
|
+
var pathParams = {};
|
|
2860
|
+
var queryParams = {
|
|
2861
|
+
'limit': opts['limit'],
|
|
2862
|
+
'before': opts['before'],
|
|
2863
|
+
'after': opts['after'],
|
|
2864
|
+
'entry_type': entry_type,
|
|
2865
|
+
'destination_id': opts['destination_id'],
|
|
2866
|
+
'chain_ids': opts['chain_ids'],
|
|
2867
|
+
'wallet_address': opts['wallet_address'],
|
|
2868
|
+
'keyword': opts['keyword'],
|
|
2869
|
+
'bank_account_status': opts['bank_account_status']
|
|
2870
|
+
};
|
|
2871
|
+
var headerParams = {};
|
|
2872
|
+
var formParams = {};
|
|
2873
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
2874
|
+
var contentTypes = [];
|
|
2875
|
+
var accepts = ['application/json'];
|
|
2876
|
+
var returnType = _ListDestinationEntries200Response["default"];
|
|
2877
|
+
return this.apiClient.callApi('/payments/destination_entry', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
2878
|
+
}
|
|
2879
|
+
|
|
2880
|
+
/**
|
|
2881
|
+
* List destination entries
|
|
2882
|
+
* This operation retrieves the information of destination entries.
|
|
2883
|
+
* @param {module:model/EntryType} entry_type EntryType defines the type of the counterparty entry: - `Address`: The counterparty entry is an address. - `BankAccount`: The counterparty entry is a bank account.
|
|
2884
|
+
* @param {Object} opts Optional parameters
|
|
2885
|
+
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
2886
|
+
* @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.
|
|
2887
|
+
* @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.
|
|
2888
|
+
* @param {String} opts.destination_id The destination ID.
|
|
2889
|
+
* @param {String} opts.chain_ids The chain ID, which is the unique identifier of a blockchain.
|
|
2890
|
+
* @param {String} opts.wallet_address The wallet address.
|
|
2891
|
+
* @param {String} opts.keyword A search term for performing fuzzy matches in the search query.
|
|
2892
|
+
* @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.
|
|
2893
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListDestinationEntries200Response}
|
|
2894
|
+
*/
|
|
2895
|
+
}, {
|
|
2896
|
+
key: "listDestinationEntries",
|
|
2897
|
+
value: function listDestinationEntries(entry_type, opts) {
|
|
2898
|
+
return this.listDestinationEntriesWithHttpInfo(entry_type, opts).then(function (response_and_data) {
|
|
2899
|
+
return response_and_data.data;
|
|
2900
|
+
});
|
|
2901
|
+
}
|
|
2902
|
+
|
|
2175
2903
|
/**
|
|
2176
2904
|
* List destination wallet addresses
|
|
2177
2905
|
* This operation retrieves the information of destination wallet addresses.
|
|
@@ -2237,9 +2965,9 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2237
2965
|
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
2238
2966
|
* @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.
|
|
2239
2967
|
* @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.
|
|
2240
|
-
* @param {String} [keyword] A search term
|
|
2968
|
+
* @param {String} [keyword] A search term for performing fuzzy matches in the search query.
|
|
2241
2969
|
* @param {module:model/DestinationType} [destination_type] DestinationType defines the type of the destination: - `Individual`: The destination is an individual. - `Organization`: The destination is an organization.
|
|
2242
|
-
* @param {String} [country]
|
|
2970
|
+
* @param {String} [country] Country code, in ISO 3166-1 alpha-3 format.
|
|
2243
2971
|
* @param {String} [merchant_ids] A list of merchant IDs to query.
|
|
2244
2972
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListDestinations200Response} and HTTP response
|
|
2245
2973
|
*/
|
|
@@ -2277,9 +3005,9 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2277
3005
|
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
2278
3006
|
* @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.
|
|
2279
3007
|
* @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.
|
|
2280
|
-
* @param {String} opts.keyword A search term
|
|
3008
|
+
* @param {String} opts.keyword A search term for performing fuzzy matches in the search query.
|
|
2281
3009
|
* @param {module:model/DestinationType} opts.destination_type DestinationType defines the type of the destination: - `Individual`: The destination is an individual. - `Organization`: The destination is an organization.
|
|
2282
|
-
* @param {String} opts.country
|
|
3010
|
+
* @param {String} opts.country Country code, in ISO 3166-1 alpha-3 format.
|
|
2283
3011
|
* @param {String} opts.merchant_ids A list of merchant IDs to query.
|
|
2284
3012
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListDestinations200Response}
|
|
2285
3013
|
*/
|
|
@@ -2345,7 +3073,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2345
3073
|
|
|
2346
3074
|
/**
|
|
2347
3075
|
* List merchant balances
|
|
2348
|
-
* This operation retrieves the balance information for specified merchants. The balance information is grouped by token and acquiring type. If you do not specify the `merchant_ids` parameter, the balance information for all merchants will be returned. For more information, please refer to [
|
|
3076
|
+
* This operation retrieves the balance information for specified merchants. The balance information is grouped by token and acquiring type. If you do not specify the `merchant_ids` parameter, the balance information for all merchants will be returned. For more information, please refer to [Accounts and fund allocation](https://www.cobo.com/payments/en/guides/amounts-and-balances).
|
|
2349
3077
|
* @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`
|
|
2350
3078
|
* @param {Object} opts Optional parameters
|
|
2351
3079
|
* @param {String} [merchant_ids] A list of merchant IDs to query.
|
|
@@ -2381,7 +3109,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2381
3109
|
|
|
2382
3110
|
/**
|
|
2383
3111
|
* List merchant balances
|
|
2384
|
-
* This operation retrieves the balance information for specified merchants. The balance information is grouped by token and acquiring type. If you do not specify the `merchant_ids` parameter, the balance information for all merchants will be returned. For more information, please refer to [
|
|
3112
|
+
* This operation retrieves the balance information for specified merchants. The balance information is grouped by token and acquiring type. If you do not specify the `merchant_ids` parameter, the balance information for all merchants will be returned. For more information, please refer to [Accounts and fund allocation](https://www.cobo.com/payments/en/guides/amounts-and-balances).
|
|
2385
3113
|
* @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`
|
|
2386
3114
|
* @param {Object} opts Optional parameters
|
|
2387
3115
|
* @param {String} opts.merchant_ids A list of merchant IDs to query.
|
|
@@ -2403,7 +3131,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2403
3131
|
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
2404
3132
|
* @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.
|
|
2405
3133
|
* @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.
|
|
2406
|
-
* @param {String} [keyword] A search term
|
|
3134
|
+
* @param {String} [keyword] A search term for performing fuzzy matches in the search query.
|
|
2407
3135
|
* @param {String} [wallet_id] This parameter has been deprecated.
|
|
2408
3136
|
* @param {module:model/WalletSetup} [wallet_setup] The type of wallet setup for the merchant. Each wallet contains multiple cryptocurrency addresses that serve as the merchant’s receiving addresses. - `Shared`: Multiple merchants share the same wallet. The wallet’s addresses may be used to receive payments for multiple merchants simultaneously. - `Separate`: Create a dedicated wallet for the merchant to achieve complete fund isolation. All addresses in this wallet are only used to receive payments for this merchant. - `Default`: The default wallet automatically created by the system for the default merchant (the merchant that shares the same name as your organization).
|
|
2409
3137
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListMerchants200Response} and HTTP response
|
|
@@ -2441,7 +3169,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2441
3169
|
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
2442
3170
|
* @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.
|
|
2443
3171
|
* @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.
|
|
2444
|
-
* @param {String} opts.keyword A search term
|
|
3172
|
+
* @param {String} opts.keyword A search term for performing fuzzy matches in the search query.
|
|
2445
3173
|
* @param {String} opts.wallet_id This parameter has been deprecated.
|
|
2446
3174
|
* @param {module:model/WalletSetup} opts.wallet_setup The type of wallet setup for the merchant. Each wallet contains multiple cryptocurrency addresses that serve as the merchant’s receiving addresses. - `Shared`: Multiple merchants share the same wallet. The wallet’s addresses may be used to receive payments for multiple merchants simultaneously. - `Separate`: Create a dedicated wallet for the merchant to achieve complete fund isolation. All addresses in this wallet are only used to receive payments for this merchant. - `Default`: The default wallet automatically created by the system for the default merchant (the merchant that shares the same name as your organization).
|
|
2447
3175
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListMerchants200Response}
|
|
@@ -2463,7 +3191,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2463
3191
|
* @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.
|
|
2464
3192
|
* @param {String} [merchant_id] The merchant ID.
|
|
2465
3193
|
* @param {String} [psp_order_id] A unique reference code assigned by the developer to identify this order in their system.
|
|
2466
|
-
* @param {String} [statuses] A list of order, refund or
|
|
3194
|
+
* @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)
|
|
2467
3195
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListPaymentOrders200Response} and HTTP response
|
|
2468
3196
|
*/
|
|
2469
3197
|
}, {
|
|
@@ -2501,7 +3229,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2501
3229
|
* @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.
|
|
2502
3230
|
* @param {String} opts.merchant_id The merchant ID.
|
|
2503
3231
|
* @param {String} opts.psp_order_id A unique reference code assigned by the developer to identify this order in their system.
|
|
2504
|
-
* @param {String} opts.statuses A list of order, refund or
|
|
3232
|
+
* @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)
|
|
2505
3233
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListPaymentOrders200Response}
|
|
2506
3234
|
*/
|
|
2507
3235
|
}, {
|
|
@@ -2600,13 +3328,13 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2600
3328
|
|
|
2601
3329
|
/**
|
|
2602
3330
|
* List all payout items
|
|
2603
|
-
* This operation retrieves the information of all payout items. You can filter the result by
|
|
3331
|
+
* This operation retrieves the information of all payout items. You can filter the result by source account or status.
|
|
2604
3332
|
* @param {Object} opts Optional parameters
|
|
2605
3333
|
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
2606
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.
|
|
2607
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.
|
|
2608
|
-
* @param {String} [source_account]
|
|
2609
|
-
* @param {String} [statuses] A list of order, refund or
|
|
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)
|
|
2610
3338
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListPayoutItems200Response} and HTTP response
|
|
2611
3339
|
*/
|
|
2612
3340
|
}, {
|
|
@@ -2636,13 +3364,13 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2636
3364
|
|
|
2637
3365
|
/**
|
|
2638
3366
|
* List all payout items
|
|
2639
|
-
* This operation retrieves the information of all payout items. You can filter the result by
|
|
3367
|
+
* This operation retrieves the information of all payout items. You can filter the result by source account or status.
|
|
2640
3368
|
* @param {Object} opts Optional parameters
|
|
2641
3369
|
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
2642
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.
|
|
2643
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.
|
|
2644
|
-
* @param {String} opts.source_account
|
|
2645
|
-
* @param {String} opts.statuses A list of order, refund or
|
|
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)
|
|
2646
3374
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListPayoutItems200Response}
|
|
2647
3375
|
*/
|
|
2648
3376
|
}, {
|
|
@@ -2713,7 +3441,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2713
3441
|
* @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.
|
|
2714
3442
|
* @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.
|
|
2715
3443
|
* @param {String} [merchant_id] The merchant ID.
|
|
2716
|
-
* @param {String} [statuses] A list of order, refund or
|
|
3444
|
+
* @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)
|
|
2717
3445
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListSettlementDetails200Response} and HTTP response
|
|
2718
3446
|
*/
|
|
2719
3447
|
}, {
|
|
@@ -2749,7 +3477,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2749
3477
|
* @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.
|
|
2750
3478
|
* @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.
|
|
2751
3479
|
* @param {String} opts.merchant_id The merchant ID.
|
|
2752
|
-
* @param {String} opts.statuses A list of order, refund or
|
|
3480
|
+
* @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)
|
|
2753
3481
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListSettlementDetails200Response}
|
|
2754
3482
|
*/
|
|
2755
3483
|
}, {
|
|
@@ -3053,6 +3781,55 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
3053
3781
|
* This operation updates the information of a specified counterparty.
|
|
3054
3782
|
* @param {String} counterparty_id The counterparty ID.
|
|
3055
3783
|
* @param {Object} opts Optional parameters
|
|
3784
|
+
* @param {module:model/UpdateCounterpartyRequest} [UpdateCounterpartyRequest] The request body to update a counterparty.
|
|
3785
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Counterparty} and HTTP response
|
|
3786
|
+
*/
|
|
3787
|
+
}, {
|
|
3788
|
+
key: "updateCounterpartyWithHttpInfo",
|
|
3789
|
+
value: function updateCounterpartyWithHttpInfo(counterparty_id, opts) {
|
|
3790
|
+
opts = opts || {};
|
|
3791
|
+
var postBody = opts['UpdateCounterpartyRequest'];
|
|
3792
|
+
if (postBody && postBody.toJSON) {
|
|
3793
|
+
postBody = postBody.toJSON();
|
|
3794
|
+
}
|
|
3795
|
+
// verify the required parameter 'counterparty_id' is set
|
|
3796
|
+
if (counterparty_id === undefined || counterparty_id === null) {
|
|
3797
|
+
throw new Error("Missing the required parameter 'counterparty_id' when calling updateCounterparty");
|
|
3798
|
+
}
|
|
3799
|
+
var pathParams = {
|
|
3800
|
+
'counterparty_id': counterparty_id
|
|
3801
|
+
};
|
|
3802
|
+
var queryParams = {};
|
|
3803
|
+
var headerParams = {};
|
|
3804
|
+
var formParams = {};
|
|
3805
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
3806
|
+
var contentTypes = ['application/json'];
|
|
3807
|
+
var accepts = ['application/json'];
|
|
3808
|
+
var returnType = _Counterparty["default"];
|
|
3809
|
+
return this.apiClient.callApi('/payments/counterparty/{counterparty_id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
3810
|
+
}
|
|
3811
|
+
|
|
3812
|
+
/**
|
|
3813
|
+
* Update counterparty
|
|
3814
|
+
* This operation updates the information of a specified counterparty.
|
|
3815
|
+
* @param {String} counterparty_id The counterparty ID.
|
|
3816
|
+
* @param {Object} opts Optional parameters
|
|
3817
|
+
* @param {module:model/UpdateCounterpartyRequest} opts.UpdateCounterpartyRequest The request body to update a counterparty.
|
|
3818
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Counterparty}
|
|
3819
|
+
*/
|
|
3820
|
+
}, {
|
|
3821
|
+
key: "updateCounterparty",
|
|
3822
|
+
value: function updateCounterparty(counterparty_id, opts) {
|
|
3823
|
+
return this.updateCounterpartyWithHttpInfo(counterparty_id, opts).then(function (response_and_data) {
|
|
3824
|
+
return response_and_data.data;
|
|
3825
|
+
});
|
|
3826
|
+
}
|
|
3827
|
+
|
|
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
|
|
3056
3833
|
* @param {module:model/UpdateCounterpartyByIdRequest} [UpdateCounterpartyByIdRequest] The request body to update a counterparty.
|
|
3057
3834
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Counterparty} and HTTP response
|
|
3058
3835
|
*/
|
|
@@ -3082,7 +3859,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
3082
3859
|
}
|
|
3083
3860
|
|
|
3084
3861
|
/**
|
|
3085
|
-
* Update counterparty
|
|
3862
|
+
* Update counterparty (Deprecated)
|
|
3086
3863
|
* This operation updates the information of a specified counterparty.
|
|
3087
3864
|
* @param {String} counterparty_id The counterparty ID.
|
|
3088
3865
|
* @param {Object} opts Optional parameters
|
|
@@ -3097,6 +3874,55 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
3097
3874
|
});
|
|
3098
3875
|
}
|
|
3099
3876
|
|
|
3877
|
+
/**
|
|
3878
|
+
* Update destination
|
|
3879
|
+
* This operation updates the information of a specified destination.
|
|
3880
|
+
* @param {String} destination_id The destination ID.
|
|
3881
|
+
* @param {Object} opts Optional parameters
|
|
3882
|
+
* @param {module:model/UpdateDestinationRequest} [UpdateDestinationRequest] The request body to update a destination.
|
|
3883
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Destination} and HTTP response
|
|
3884
|
+
*/
|
|
3885
|
+
}, {
|
|
3886
|
+
key: "updateDestinationWithHttpInfo",
|
|
3887
|
+
value: function updateDestinationWithHttpInfo(destination_id, opts) {
|
|
3888
|
+
opts = opts || {};
|
|
3889
|
+
var postBody = opts['UpdateDestinationRequest'];
|
|
3890
|
+
if (postBody && postBody.toJSON) {
|
|
3891
|
+
postBody = postBody.toJSON();
|
|
3892
|
+
}
|
|
3893
|
+
// verify the required parameter 'destination_id' is set
|
|
3894
|
+
if (destination_id === undefined || destination_id === null) {
|
|
3895
|
+
throw new Error("Missing the required parameter 'destination_id' when calling updateDestination");
|
|
3896
|
+
}
|
|
3897
|
+
var pathParams = {
|
|
3898
|
+
'destination_id': destination_id
|
|
3899
|
+
};
|
|
3900
|
+
var queryParams = {};
|
|
3901
|
+
var headerParams = {};
|
|
3902
|
+
var formParams = {};
|
|
3903
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
3904
|
+
var contentTypes = ['application/json'];
|
|
3905
|
+
var accepts = ['application/json'];
|
|
3906
|
+
var returnType = _Destination["default"];
|
|
3907
|
+
return this.apiClient.callApi('/payments/destination/{destination_id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
3908
|
+
}
|
|
3909
|
+
|
|
3910
|
+
/**
|
|
3911
|
+
* Update destination
|
|
3912
|
+
* This operation updates the information of a specified destination.
|
|
3913
|
+
* @param {String} destination_id The destination ID.
|
|
3914
|
+
* @param {Object} opts Optional parameters
|
|
3915
|
+
* @param {module:model/UpdateDestinationRequest} opts.UpdateDestinationRequest The request body to update a destination.
|
|
3916
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Destination}
|
|
3917
|
+
*/
|
|
3918
|
+
}, {
|
|
3919
|
+
key: "updateDestination",
|
|
3920
|
+
value: function updateDestination(destination_id, opts) {
|
|
3921
|
+
return this.updateDestinationWithHttpInfo(destination_id, opts).then(function (response_and_data) {
|
|
3922
|
+
return response_and_data.data;
|
|
3923
|
+
});
|
|
3924
|
+
}
|
|
3925
|
+
|
|
3100
3926
|
/**
|
|
3101
3927
|
* Update destination bank account
|
|
3102
3928
|
* This operation updates the information of a specified destination bank account.
|
|
@@ -3147,11 +3973,11 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
3147
3973
|
}
|
|
3148
3974
|
|
|
3149
3975
|
/**
|
|
3150
|
-
* Update destination
|
|
3976
|
+
* Update destination (Deprecated)
|
|
3151
3977
|
* This operation updates the information of a specified destination.
|
|
3152
3978
|
* @param {String} destination_id The destination ID.
|
|
3153
3979
|
* @param {Object} opts Optional parameters
|
|
3154
|
-
* @param {module:model/UpdateDestinationByIdRequest} [UpdateDestinationByIdRequest] The request body to
|
|
3980
|
+
* @param {module:model/UpdateDestinationByIdRequest} [UpdateDestinationByIdRequest] The request body to update a destination.
|
|
3155
3981
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Destination} and HTTP response
|
|
3156
3982
|
*/
|
|
3157
3983
|
}, {
|
|
@@ -3180,11 +4006,11 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
3180
4006
|
}
|
|
3181
4007
|
|
|
3182
4008
|
/**
|
|
3183
|
-
* Update destination
|
|
4009
|
+
* Update destination (Deprecated)
|
|
3184
4010
|
* This operation updates the information of a specified destination.
|
|
3185
4011
|
* @param {String} destination_id The destination ID.
|
|
3186
4012
|
* @param {Object} opts Optional parameters
|
|
3187
|
-
* @param {module:model/UpdateDestinationByIdRequest} opts.UpdateDestinationByIdRequest The request body to
|
|
4013
|
+
* @param {module:model/UpdateDestinationByIdRequest} opts.UpdateDestinationByIdRequest The request body to update a destination.
|
|
3188
4014
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Destination}
|
|
3189
4015
|
*/
|
|
3190
4016
|
}, {
|
|
@@ -3195,6 +4021,55 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
3195
4021
|
});
|
|
3196
4022
|
}
|
|
3197
4023
|
|
|
4024
|
+
/**
|
|
4025
|
+
* Update destination entry
|
|
4026
|
+
* This operation updates the information of a specified destination entry.
|
|
4027
|
+
* @param {String} destination_entry_id The destination entry ID. For example, the wallet address ID or the bank account ID.
|
|
4028
|
+
* @param {Object} opts Optional parameters
|
|
4029
|
+
* @param {module:model/UpdateDestinationEntryRequest} [UpdateDestinationEntryRequest] The request body to update a destination entry.
|
|
4030
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateDestinationEntry200Response} and HTTP response
|
|
4031
|
+
*/
|
|
4032
|
+
}, {
|
|
4033
|
+
key: "updateDestinationEntryWithHttpInfo",
|
|
4034
|
+
value: function updateDestinationEntryWithHttpInfo(destination_entry_id, opts) {
|
|
4035
|
+
opts = opts || {};
|
|
4036
|
+
var postBody = opts['UpdateDestinationEntryRequest'];
|
|
4037
|
+
if (postBody && postBody.toJSON) {
|
|
4038
|
+
postBody = postBody.toJSON();
|
|
4039
|
+
}
|
|
4040
|
+
// verify the required parameter 'destination_entry_id' is set
|
|
4041
|
+
if (destination_entry_id === undefined || destination_entry_id === null) {
|
|
4042
|
+
throw new Error("Missing the required parameter 'destination_entry_id' when calling updateDestinationEntry");
|
|
4043
|
+
}
|
|
4044
|
+
var pathParams = {
|
|
4045
|
+
'destination_entry_id': destination_entry_id
|
|
4046
|
+
};
|
|
4047
|
+
var queryParams = {};
|
|
4048
|
+
var headerParams = {};
|
|
4049
|
+
var formParams = {};
|
|
4050
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
4051
|
+
var contentTypes = ['application/json'];
|
|
4052
|
+
var accepts = ['application/json'];
|
|
4053
|
+
var returnType = _UpdateDestinationEntry200Response["default"];
|
|
4054
|
+
return this.apiClient.callApi('/payments/destination_entry/{destination_entry_id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
4055
|
+
}
|
|
4056
|
+
|
|
4057
|
+
/**
|
|
4058
|
+
* Update destination entry
|
|
4059
|
+
* This operation updates the information of a specified destination entry.
|
|
4060
|
+
* @param {String} destination_entry_id The destination entry ID. For example, the wallet address ID or the bank account ID.
|
|
4061
|
+
* @param {Object} opts Optional parameters
|
|
4062
|
+
* @param {module:model/UpdateDestinationEntryRequest} opts.UpdateDestinationEntryRequest The request body to update a destination entry.
|
|
4063
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateDestinationEntry200Response}
|
|
4064
|
+
*/
|
|
4065
|
+
}, {
|
|
4066
|
+
key: "updateDestinationEntry",
|
|
4067
|
+
value: function updateDestinationEntry(destination_entry_id, opts) {
|
|
4068
|
+
return this.updateDestinationEntryWithHttpInfo(destination_entry_id, opts).then(function (response_and_data) {
|
|
4069
|
+
return response_and_data.data;
|
|
4070
|
+
});
|
|
4071
|
+
}
|
|
4072
|
+
|
|
3198
4073
|
/**
|
|
3199
4074
|
* Update merchant
|
|
3200
4075
|
* This operation updates the information of an existing merchant.
|