@cobo/cobo-waas2 1.28.0 → 1.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +88 -16
- 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/GraphQLApi.js +85 -0
- package/dist/api/PaymentApi.js +1161 -154
- package/dist/api/StakingsApi.js +2 -2
- package/dist/api/SwapsApi.js +3 -0
- package/dist/api/TransactionsApi.js +6 -6
- package/dist/api/WalletsApi.js +18 -18
- package/dist/index.js +357 -28
- package/dist/model/AddressRiskLevel.js +71 -0
- package/dist/model/AddressesEventData.js +13 -3
- package/dist/model/{AllocationRecord.js → AllocationItem.js} +38 -35
- package/dist/model/{AllocationRequest.js → AllocationParam.js} +29 -26
- package/dist/model/BalanceUpdateInfoEventData.js +13 -3
- package/dist/model/BatchAllocation.js +12 -12
- package/dist/model/BatchAllocationDetail.js +15 -17
- package/dist/model/BridgingFee.js +3 -3
- package/dist/model/ChainsEventData.js +13 -3
- package/dist/model/CommissionFee.js +2 -2
- package/dist/model/ComplianceDispositionUpdateEventData.js +13 -3
- package/dist/model/ComplianceKyaScreeningsUpdateEventData.js +346 -0
- package/dist/model/ComplianceKytScreeningsUpdateEventData.js +13 -3
- package/dist/model/ContractCallParams.js +3 -3
- package/dist/model/CounterpartyWalletAddressDetail.js +2 -2
- package/dist/model/CreateBatchAllocationRequest.js +19 -19
- package/dist/model/CreateBulkSendRequest.js +167 -0
- package/dist/model/CreateBulkSendRequestPayoutParamsInner.js +153 -0
- 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 +17 -15
- package/dist/model/CreatePayoutRequest.js +35 -28
- package/dist/model/CreateRefundRequest.js +2 -2
- package/dist/model/CreateReportRequest.js +156 -0
- package/dist/model/CreateTopUpAddresses.js +139 -0
- package/dist/model/CreateTopUpAddresses201Response.js +107 -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/{ListPayoutItems200Response.js → GetReports200Response.js} +22 -22
- 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/{ListAllocations200Response.js → ListAllocationItems200Response.js} +22 -22
- package/dist/model/ListBulkSendItems200Response.js +123 -0
- 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 +13 -3
- package/dist/model/MerchantBalance.js +4 -4
- package/dist/model/Order.js +10 -10
- package/dist/model/OrderLinkBusinessInfo.js +22 -16
- package/dist/model/OrderLinkBusinessInfoCustomExchangeRatesInner.js +2 -4
- package/dist/model/OrderLinkBusinessInfoPayableAmountsInner.js +4 -4
- package/dist/model/PaymentAddressUpdateEventData.js +13 -3
- package/dist/model/PaymentAllocationAmount.js +2 -2
- package/dist/model/PaymentBulkSend.js +182 -0
- package/dist/model/PaymentBulkSendEvent.js +359 -0
- package/dist/model/PaymentBulkSendExecutionMode.js +61 -0
- package/dist/model/PaymentBulkSendItem.js +190 -0
- package/dist/model/{PaymentPayoutItemStatus.js → PaymentBulkSendItemStatus.js} +11 -11
- package/dist/model/PaymentBulkSendItemValidationStatus.js +66 -0
- package/dist/model/PaymentBulkSendStatus.js +81 -0
- package/dist/model/PaymentEstimateFeeRequest.js +13 -0
- package/dist/model/PaymentFeeType.js +15 -0
- package/dist/model/PaymentOrderEventData.js +31 -21
- package/dist/model/PaymentPayout.js +64 -46
- package/dist/model/PaymentPayoutDetail.js +166 -52
- package/dist/model/PaymentPayoutEvent.js +152 -80
- package/dist/model/PaymentPayoutItem.js +9 -166
- package/dist/model/PaymentPayoutParam.js +6 -46
- package/dist/model/PaymentPayoutRecipientInfo.js +126 -0
- package/dist/model/PaymentPayoutStatus.js +9 -4
- package/dist/model/PaymentRefundEventData.js +13 -3
- package/dist/model/PaymentSettlementEvent.js +13 -3
- package/dist/model/PaymentTransactionEventData.js +13 -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 +13 -3
- package/dist/model/TSSRequestWebhookEventData.js +13 -3
- package/dist/model/TokenListingEventData.js +13 -3
- package/dist/model/TokensEventData.js +13 -3
- package/dist/model/TransactionCoboCategory.js +5 -0
- package/dist/model/TransactionExtraType.js +5 -0
- package/dist/model/TransactionWalletConnectInfo.js +146 -0
- package/dist/model/TransactionWebhookEventData.js +13 -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 +13 -3
- package/dist/model/WebhookEventData.js +121 -28
- package/dist/model/WebhookEventDataType.js +12 -2
- package/dist/model/WebhookEventType.js +15 -0
- package/docs/AddressRiskLevel.md +16 -0
- package/docs/AddressesEventData.md +5 -1
- package/docs/AllocationItem.md +15 -0
- package/docs/AllocationParam.md +13 -0
- package/docs/AutoSweepApi.md +1 -1
- package/docs/BalanceUpdateInfoEventData.md +5 -1
- package/docs/BatchAllocation.md +2 -2
- package/docs/BatchAllocationDetail.md +1 -1
- package/docs/BridgingFee.md +2 -2
- package/docs/ChainsEventData.md +5 -1
- package/docs/CommissionFee.md +1 -1
- package/docs/ComplianceApi.md +163 -0
- package/docs/ComplianceDispositionUpdateEventData.md +5 -1
- package/docs/ComplianceKyaScreeningsUpdateEventData.md +64 -0
- package/docs/ComplianceKytScreeningsUpdateEventData.md +5 -1
- package/docs/ContractCallParams.md +2 -2
- package/docs/CounterpartyWalletAddressDetail.md +1 -1
- package/docs/CreateBatchAllocationRequest.md +2 -2
- package/docs/CreateBulkSendRequest.md +12 -0
- package/docs/CreateBulkSendRequestPayoutParamsInner.md +12 -0
- 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 +11 -11
- package/docs/CreatePayoutRequest.md +4 -4
- package/docs/CreateRefundRequest.md +2 -2
- package/docs/CreateReportRequest.md +13 -0
- package/docs/CreateTopUpAddresses.md +11 -0
- package/docs/CreateTopUpAddresses201Response.md +9 -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/{ListAllocations200Response.md → GetReports200Response.md} +2 -2
- package/docs/GraphQLApi.md +61 -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/{ListPayoutItems200Response.md → ListAllocationItems200Response.md} +2 -2
- package/docs/ListBulkSendItems200Response.md +10 -0
- package/docs/ListCounterpartyEntries200Response.md +10 -0
- package/docs/ListDestinationEntries200Response.md +11 -0
- package/docs/ListKyaScreenings200Response.md +10 -0
- package/docs/MPCVaultEventData.md +5 -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 +5 -1
- package/docs/PaymentAllocationAmount.md +1 -1
- package/docs/PaymentApi.md +1296 -198
- package/docs/PaymentBulkSend.md +15 -0
- package/docs/PaymentBulkSendEvent.md +65 -0
- package/docs/PaymentBulkSendExecutionMode.md +12 -0
- package/docs/PaymentBulkSendItem.md +15 -0
- package/docs/{PaymentPayoutItemStatus.md → PaymentBulkSendItemStatus.md} +3 -3
- package/docs/PaymentBulkSendItemValidationStatus.md +14 -0
- package/docs/PaymentBulkSendStatus.md +20 -0
- package/docs/PaymentEstimateFeeRequest.md +1 -0
- package/docs/PaymentFeeType.md +6 -0
- package/docs/PaymentOrderEventData.md +13 -9
- package/docs/PaymentPayout.md +8 -7
- package/docs/PaymentPayoutDetail.md +10 -8
- package/docs/PaymentPayoutEvent.md +15 -9
- package/docs/PaymentPayoutItem.md +2 -13
- package/docs/PaymentPayoutParam.md +1 -4
- package/docs/PaymentPayoutRecipientInfo.md +12 -0
- package/docs/PaymentPayoutStatus.md +4 -2
- package/docs/PaymentRefundEventData.md +5 -1
- package/docs/PaymentSettlementEvent.md +5 -1
- package/docs/PaymentTransactionEventData.md +5 -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 +5 -1
- package/docs/SwapsApi.md +2 -0
- package/docs/TSSRequestWebhookEventData.md +5 -1
- package/docs/TokenListingEventData.md +5 -1
- package/docs/TokensEventData.md +5 -1
- package/docs/TransactionCoboCategory.md +2 -0
- package/docs/TransactionExtraType.md +2 -0
- package/docs/TransactionWalletConnectInfo.md +12 -0
- package/docs/TransactionWebhookEventData.md +5 -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 +5 -1
- package/docs/WalletsApi.md +9 -9
- package/docs/WebhookEventData.md +28 -18
- package/docs/WebhookEventDataType.md +5 -1
- package/docs/WebhookEventType.md +6 -0
- package/package.json +1 -1
- package/dist/model/PaymentPayoutItemDetail.js +0 -298
- package/docs/AllocationRecord.md +0 -15
- package/docs/AllocationRequest.md +0 -13
- package/docs/PaymentPayoutItemDetail.md +0 -22
package/dist/api/PaymentApi.js
CHANGED
|
@@ -14,10 +14,15 @@ var _Counterparty = _interopRequireDefault(require("../model/Counterparty"));
|
|
|
14
14
|
var _CounterpartyDetail = _interopRequireDefault(require("../model/CounterpartyDetail"));
|
|
15
15
|
var _CounterpartyType = _interopRequireDefault(require("../model/CounterpartyType"));
|
|
16
16
|
var _CreateBatchAllocationRequest = _interopRequireDefault(require("../model/CreateBatchAllocationRequest"));
|
|
17
|
+
var _CreateBulkSendRequest = _interopRequireDefault(require("../model/CreateBulkSendRequest"));
|
|
18
|
+
var _CreateCounterpartyEntry201Response = _interopRequireDefault(require("../model/CreateCounterpartyEntry201Response"));
|
|
19
|
+
var _CreateCounterpartyEntryRequest = _interopRequireDefault(require("../model/CreateCounterpartyEntryRequest"));
|
|
17
20
|
var _CreateCounterpartyRequest = _interopRequireDefault(require("../model/CreateCounterpartyRequest"));
|
|
18
21
|
var _CreateCounterpartyWalletAddressRequest = _interopRequireDefault(require("../model/CreateCounterpartyWalletAddressRequest"));
|
|
19
22
|
var _CreateCryptoAddressRequest = _interopRequireDefault(require("../model/CreateCryptoAddressRequest"));
|
|
20
23
|
var _CreateDestinationBankAccountRequest = _interopRequireDefault(require("../model/CreateDestinationBankAccountRequest"));
|
|
24
|
+
var _CreateDestinationEntry201Response = _interopRequireDefault(require("../model/CreateDestinationEntry201Response"));
|
|
25
|
+
var _CreateDestinationEntryRequest = _interopRequireDefault(require("../model/CreateDestinationEntryRequest"));
|
|
21
26
|
var _CreateDestinationRequest = _interopRequireDefault(require("../model/CreateDestinationRequest"));
|
|
22
27
|
var _CreateDestinationWalletAddressRequest = _interopRequireDefault(require("../model/CreateDestinationWalletAddressRequest"));
|
|
23
28
|
var _CreateMerchantRequest = _interopRequireDefault(require("../model/CreateMerchantRequest"));
|
|
@@ -26,13 +31,20 @@ var _CreatePaymentOrderRequest = _interopRequireDefault(require("../model/Create
|
|
|
26
31
|
var _CreatePayoutRequest = _interopRequireDefault(require("../model/CreatePayoutRequest"));
|
|
27
32
|
var _CreateRefundLinkRequest = _interopRequireDefault(require("../model/CreateRefundLinkRequest"));
|
|
28
33
|
var _CreateRefundRequest = _interopRequireDefault(require("../model/CreateRefundRequest"));
|
|
34
|
+
var _CreateReportRequest = _interopRequireDefault(require("../model/CreateReportRequest"));
|
|
29
35
|
var _CreateSettlementRequestRequest = _interopRequireDefault(require("../model/CreateSettlementRequestRequest"));
|
|
36
|
+
var _CreateTopUpAddresses = _interopRequireDefault(require("../model/CreateTopUpAddresses"));
|
|
37
|
+
var _CreateTopUpAddresses201Response = _interopRequireDefault(require("../model/CreateTopUpAddresses201Response"));
|
|
30
38
|
var _CryptoAddress = _interopRequireDefault(require("../model/CryptoAddress"));
|
|
31
39
|
var _DeleteCounterparty200Response = _interopRequireDefault(require("../model/DeleteCounterparty200Response"));
|
|
40
|
+
var _DeleteCounterpartyById200Response = _interopRequireDefault(require("../model/DeleteCounterpartyById200Response"));
|
|
41
|
+
var _DeleteCounterpartyEntry200Response = _interopRequireDefault(require("../model/DeleteCounterpartyEntry200Response"));
|
|
32
42
|
var _DeleteCounterpartyWalletAddress200Response = _interopRequireDefault(require("../model/DeleteCounterpartyWalletAddress200Response"));
|
|
33
43
|
var _DeleteCryptoAddress201Response = _interopRequireDefault(require("../model/DeleteCryptoAddress201Response"));
|
|
34
44
|
var _DeleteDestination200Response = _interopRequireDefault(require("../model/DeleteDestination200Response"));
|
|
35
45
|
var _DeleteDestinationBankAccount200Response = _interopRequireDefault(require("../model/DeleteDestinationBankAccount200Response"));
|
|
46
|
+
var _DeleteDestinationById200Response = _interopRequireDefault(require("../model/DeleteDestinationById200Response"));
|
|
47
|
+
var _DeleteDestinationEntry200Response = _interopRequireDefault(require("../model/DeleteDestinationEntry200Response"));
|
|
36
48
|
var _DeleteDestinationWalletAddress200Response = _interopRequireDefault(require("../model/DeleteDestinationWalletAddress200Response"));
|
|
37
49
|
var _Destination = _interopRequireDefault(require("../model/Destination"));
|
|
38
50
|
var _DestinationBankAccount = _interopRequireDefault(require("../model/DestinationBankAccount"));
|
|
@@ -40,19 +52,26 @@ var _DestinationBankAccountDetail = _interopRequireDefault(require("../model/Des
|
|
|
40
52
|
var _DestinationDetail = _interopRequireDefault(require("../model/DestinationDetail"));
|
|
41
53
|
var _DestinationType = _interopRequireDefault(require("../model/DestinationType"));
|
|
42
54
|
var _EnableDestinationWhitelistRequest = _interopRequireDefault(require("../model/EnableDestinationWhitelistRequest"));
|
|
55
|
+
var _EntryType = _interopRequireDefault(require("../model/EntryType"));
|
|
43
56
|
var _ErrorResponse = _interopRequireDefault(require("../model/ErrorResponse"));
|
|
44
57
|
var _ExchangeRate = _interopRequireDefault(require("../model/ExchangeRate"));
|
|
45
58
|
var _ForcedSweep = _interopRequireDefault(require("../model/ForcedSweep"));
|
|
46
59
|
var _ForcedSweepRequest = _interopRequireDefault(require("../model/ForcedSweepRequest"));
|
|
60
|
+
var _GetCounterpartyEntry200Response = _interopRequireDefault(require("../model/GetCounterpartyEntry200Response"));
|
|
61
|
+
var _GetDestinationEntry200Response = _interopRequireDefault(require("../model/GetDestinationEntry200Response"));
|
|
47
62
|
var _GetExchangeRate200Response = _interopRequireDefault(require("../model/GetExchangeRate200Response"));
|
|
48
63
|
var _GetRefunds200Response = _interopRequireDefault(require("../model/GetRefunds200Response"));
|
|
64
|
+
var _GetReports200Response = _interopRequireDefault(require("../model/GetReports200Response"));
|
|
49
65
|
var _GetSettlementInfoByIds200Response = _interopRequireDefault(require("../model/GetSettlementInfoByIds200Response"));
|
|
50
66
|
var _Link = _interopRequireDefault(require("../model/Link"));
|
|
51
|
-
var
|
|
67
|
+
var _ListAllocationItems200Response = _interopRequireDefault(require("../model/ListAllocationItems200Response"));
|
|
52
68
|
var _ListBatchAllocations200Response = _interopRequireDefault(require("../model/ListBatchAllocations200Response"));
|
|
69
|
+
var _ListBulkSendItems200Response = _interopRequireDefault(require("../model/ListBulkSendItems200Response"));
|
|
53
70
|
var _ListCounterparties200Response = _interopRequireDefault(require("../model/ListCounterparties200Response"));
|
|
71
|
+
var _ListCounterpartyEntries200Response = _interopRequireDefault(require("../model/ListCounterpartyEntries200Response"));
|
|
54
72
|
var _ListCounterpartyWalletAddress200Response = _interopRequireDefault(require("../model/ListCounterpartyWalletAddress200Response"));
|
|
55
73
|
var _ListDestinationBankAccounts200Response = _interopRequireDefault(require("../model/ListDestinationBankAccounts200Response"));
|
|
74
|
+
var _ListDestinationEntries200Response = _interopRequireDefault(require("../model/ListDestinationEntries200Response"));
|
|
56
75
|
var _ListDestinationWalletAddresses200Response = _interopRequireDefault(require("../model/ListDestinationWalletAddresses200Response"));
|
|
57
76
|
var _ListDestinations200Response = _interopRequireDefault(require("../model/ListDestinations200Response"));
|
|
58
77
|
var _ListForcedSweepRequests200Response = _interopRequireDefault(require("../model/ListForcedSweepRequests200Response"));
|
|
@@ -60,7 +79,6 @@ var _ListMerchantBalances200Response = _interopRequireDefault(require("../model/
|
|
|
60
79
|
var _ListMerchants200Response = _interopRequireDefault(require("../model/ListMerchants200Response"));
|
|
61
80
|
var _ListPaymentOrders200Response = _interopRequireDefault(require("../model/ListPaymentOrders200Response"));
|
|
62
81
|
var _ListPaymentWalletBalances200Response = _interopRequireDefault(require("../model/ListPaymentWalletBalances200Response"));
|
|
63
|
-
var _ListPayoutItems200Response = _interopRequireDefault(require("../model/ListPayoutItems200Response"));
|
|
64
82
|
var _ListPayouts200Response = _interopRequireDefault(require("../model/ListPayouts200Response"));
|
|
65
83
|
var _ListSettlementDetails200Response = _interopRequireDefault(require("../model/ListSettlementDetails200Response"));
|
|
66
84
|
var _ListSettlementRequests200Response = _interopRequireDefault(require("../model/ListSettlementRequests200Response"));
|
|
@@ -69,6 +87,7 @@ var _ListTopUpPayers200Response = _interopRequireDefault(require("../model/ListT
|
|
|
69
87
|
var _Merchant = _interopRequireDefault(require("../model/Merchant"));
|
|
70
88
|
var _Order = _interopRequireDefault(require("../model/Order"));
|
|
71
89
|
var _PaymentAllocationAmount = _interopRequireDefault(require("../model/PaymentAllocationAmount"));
|
|
90
|
+
var _PaymentBulkSend = _interopRequireDefault(require("../model/PaymentBulkSend"));
|
|
72
91
|
var _PaymentEstimateFee201Response = _interopRequireDefault(require("../model/PaymentEstimateFee201Response"));
|
|
73
92
|
var _PaymentEstimateFeeRequest = _interopRequireDefault(require("../model/PaymentEstimateFeeRequest"));
|
|
74
93
|
var _PaymentPayout = _interopRequireDefault(require("../model/PaymentPayout"));
|
|
@@ -76,13 +95,20 @@ var _PaymentPayoutDetail = _interopRequireDefault(require("../model/PaymentPayou
|
|
|
76
95
|
var _PspBalance = _interopRequireDefault(require("../model/PspBalance"));
|
|
77
96
|
var _QueryDestinationWhitelistEnabled200Response = _interopRequireDefault(require("../model/QueryDestinationWhitelistEnabled200Response"));
|
|
78
97
|
var _Refund = _interopRequireDefault(require("../model/Refund"));
|
|
98
|
+
var _Report = _interopRequireDefault(require("../model/Report"));
|
|
99
|
+
var _ReportStatus = _interopRequireDefault(require("../model/ReportStatus"));
|
|
100
|
+
var _ReportType = _interopRequireDefault(require("../model/ReportType"));
|
|
79
101
|
var _Settlement = _interopRequireDefault(require("../model/Settlement"));
|
|
80
102
|
var _SupportedToken = _interopRequireDefault(require("../model/SupportedToken"));
|
|
81
103
|
var _TopUpAddress = _interopRequireDefault(require("../model/TopUpAddress"));
|
|
82
104
|
var _UpdateBankAccountByIdRequest = _interopRequireDefault(require("../model/UpdateBankAccountByIdRequest"));
|
|
83
105
|
var _UpdateCounterpartyByIdRequest = _interopRequireDefault(require("../model/UpdateCounterpartyByIdRequest"));
|
|
106
|
+
var _UpdateCounterpartyRequest = _interopRequireDefault(require("../model/UpdateCounterpartyRequest"));
|
|
84
107
|
var _UpdateDestinationBankAccount = _interopRequireDefault(require("../model/UpdateDestinationBankAccount"));
|
|
85
108
|
var _UpdateDestinationByIdRequest = _interopRequireDefault(require("../model/UpdateDestinationByIdRequest"));
|
|
109
|
+
var _UpdateDestinationEntry200Response = _interopRequireDefault(require("../model/UpdateDestinationEntry200Response"));
|
|
110
|
+
var _UpdateDestinationEntryRequest = _interopRequireDefault(require("../model/UpdateDestinationEntryRequest"));
|
|
111
|
+
var _UpdateDestinationRequest = _interopRequireDefault(require("../model/UpdateDestinationRequest"));
|
|
86
112
|
var _UpdateMerchantByIdRequest = _interopRequireDefault(require("../model/UpdateMerchantByIdRequest"));
|
|
87
113
|
var _UpdatePaymentOrderRequest = _interopRequireDefault(require("../model/UpdatePaymentOrderRequest"));
|
|
88
114
|
var _UpdateRefundByIdRequest = _interopRequireDefault(require("../model/UpdateRefundByIdRequest"));
|
|
@@ -219,9 +245,9 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
219
245
|
|
|
220
246
|
/**
|
|
221
247
|
* Create batch allocation
|
|
222
|
-
* This operation
|
|
248
|
+
* This operation allocates funds between multiple accounts in one batch request.
|
|
223
249
|
* @param {Object} opts Optional parameters
|
|
224
|
-
* @param {module:model/CreateBatchAllocationRequest} [CreateBatchAllocationRequest] The request body to create a
|
|
250
|
+
* @param {module:model/CreateBatchAllocationRequest} [CreateBatchAllocationRequest] The request body to create a batch allocation request.
|
|
225
251
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/BatchAllocation} and HTTP response
|
|
226
252
|
*/
|
|
227
253
|
}, {
|
|
@@ -245,9 +271,9 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
245
271
|
|
|
246
272
|
/**
|
|
247
273
|
* Create batch allocation
|
|
248
|
-
* This operation
|
|
274
|
+
* This operation allocates funds between multiple accounts in one batch request.
|
|
249
275
|
* @param {Object} opts Optional parameters
|
|
250
|
-
* @param {module:model/CreateBatchAllocationRequest} opts.CreateBatchAllocationRequest The request body to create a
|
|
276
|
+
* @param {module:model/CreateBatchAllocationRequest} opts.CreateBatchAllocationRequest The request body to create a batch allocation request.
|
|
251
277
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/BatchAllocation}
|
|
252
278
|
*/
|
|
253
279
|
}, {
|
|
@@ -258,9 +284,50 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
258
284
|
});
|
|
259
285
|
}
|
|
260
286
|
|
|
287
|
+
/**
|
|
288
|
+
* Create bulk send
|
|
289
|
+
* This operation creates a bulk send to transfer funds to multiple recipients in a single request.
|
|
290
|
+
* @param {Object} opts Optional parameters
|
|
291
|
+
* @param {module:model/CreateBulkSendRequest} [CreateBulkSendRequest] The request body to create a bulk send.
|
|
292
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PaymentBulkSend} and HTTP response
|
|
293
|
+
*/
|
|
294
|
+
}, {
|
|
295
|
+
key: "createBulkSendWithHttpInfo",
|
|
296
|
+
value: function createBulkSendWithHttpInfo(opts) {
|
|
297
|
+
opts = opts || {};
|
|
298
|
+
var postBody = opts['CreateBulkSendRequest'];
|
|
299
|
+
if (postBody && postBody.toJSON) {
|
|
300
|
+
postBody = postBody.toJSON();
|
|
301
|
+
}
|
|
302
|
+
var pathParams = {};
|
|
303
|
+
var queryParams = {};
|
|
304
|
+
var headerParams = {};
|
|
305
|
+
var formParams = {};
|
|
306
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
307
|
+
var contentTypes = ['application/json'];
|
|
308
|
+
var accepts = ['application/json'];
|
|
309
|
+
var returnType = _PaymentBulkSend["default"];
|
|
310
|
+
return this.apiClient.callApi('/payments/bulk_sends', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* Create bulk send
|
|
315
|
+
* This operation creates a bulk send to transfer funds to multiple recipients in a single request.
|
|
316
|
+
* @param {Object} opts Optional parameters
|
|
317
|
+
* @param {module:model/CreateBulkSendRequest} opts.CreateBulkSendRequest The request body to create a bulk send.
|
|
318
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PaymentBulkSend}
|
|
319
|
+
*/
|
|
320
|
+
}, {
|
|
321
|
+
key: "createBulkSend",
|
|
322
|
+
value: function createBulkSend(opts) {
|
|
323
|
+
return this.createBulkSendWithHttpInfo(opts).then(function (response_and_data) {
|
|
324
|
+
return response_and_data.data;
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
|
|
261
328
|
/**
|
|
262
329
|
* Create counterparty
|
|
263
|
-
* This operation creates a counterparty.
|
|
330
|
+
* This operation creates a [counterparty](https://www.cobo.com/payments/en/guides/counterparties).
|
|
264
331
|
* @param {Object} opts Optional parameters
|
|
265
332
|
* @param {module:model/CreateCounterpartyRequest} [CreateCounterpartyRequest] The request body to create a counterparty.
|
|
266
333
|
* @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 +353,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
286
353
|
|
|
287
354
|
/**
|
|
288
355
|
* Create counterparty
|
|
289
|
-
* This operation creates a counterparty.
|
|
356
|
+
* This operation creates a [counterparty](https://www.cobo.com/payments/en/guides/counterparties).
|
|
290
357
|
* @param {Object} opts Optional parameters
|
|
291
358
|
* @param {module:model/CreateCounterpartyRequest} opts.CreateCounterpartyRequest The request body to create a counterparty.
|
|
292
359
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CounterpartyDetail}
|
|
@@ -299,6 +366,47 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
299
366
|
});
|
|
300
367
|
}
|
|
301
368
|
|
|
369
|
+
/**
|
|
370
|
+
* Create counterparty entry
|
|
371
|
+
* This operation creates one or more entries for a counterparty. A counterparty entry is a record of a counterparty's wallet address.
|
|
372
|
+
* @param {Object} opts Optional parameters
|
|
373
|
+
* @param {module:model/CreateCounterpartyEntryRequest} [CreateCounterpartyEntryRequest] The request body to create counterparty entries.
|
|
374
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateCounterpartyEntry201Response} and HTTP response
|
|
375
|
+
*/
|
|
376
|
+
}, {
|
|
377
|
+
key: "createCounterpartyEntryWithHttpInfo",
|
|
378
|
+
value: function createCounterpartyEntryWithHttpInfo(opts) {
|
|
379
|
+
opts = opts || {};
|
|
380
|
+
var postBody = opts['CreateCounterpartyEntryRequest'];
|
|
381
|
+
if (postBody && postBody.toJSON) {
|
|
382
|
+
postBody = postBody.toJSON();
|
|
383
|
+
}
|
|
384
|
+
var pathParams = {};
|
|
385
|
+
var queryParams = {};
|
|
386
|
+
var headerParams = {};
|
|
387
|
+
var formParams = {};
|
|
388
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
389
|
+
var contentTypes = ['application/json'];
|
|
390
|
+
var accepts = ['application/json'];
|
|
391
|
+
var returnType = _CreateCounterpartyEntry201Response["default"];
|
|
392
|
+
return this.apiClient.callApi('/payments/counterparty_entry', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
/**
|
|
396
|
+
* Create counterparty entry
|
|
397
|
+
* This operation creates one or more entries for a counterparty. A counterparty entry is a record of a counterparty's wallet address.
|
|
398
|
+
* @param {Object} opts Optional parameters
|
|
399
|
+
* @param {module:model/CreateCounterpartyEntryRequest} opts.CreateCounterpartyEntryRequest The request body to create counterparty entries.
|
|
400
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateCounterpartyEntry201Response}
|
|
401
|
+
*/
|
|
402
|
+
}, {
|
|
403
|
+
key: "createCounterpartyEntry",
|
|
404
|
+
value: function createCounterpartyEntry(opts) {
|
|
405
|
+
return this.createCounterpartyEntryWithHttpInfo(opts).then(function (response_and_data) {
|
|
406
|
+
return response_and_data.data;
|
|
407
|
+
});
|
|
408
|
+
}
|
|
409
|
+
|
|
302
410
|
/**
|
|
303
411
|
* Create counterparty wallet address
|
|
304
412
|
* This operation creates a counterparty wallet address.
|
|
@@ -383,7 +491,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
383
491
|
|
|
384
492
|
/**
|
|
385
493
|
* Create destination
|
|
386
|
-
* This operation creates a destination.
|
|
494
|
+
* This operation creates a [destination](https://www.cobo.com/payments/en/guides/destinations).
|
|
387
495
|
* @param {Object} opts Optional parameters
|
|
388
496
|
* @param {module:model/CreateDestinationRequest} [CreateDestinationRequest] The request body to create a destination.
|
|
389
497
|
* @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 +517,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
409
517
|
|
|
410
518
|
/**
|
|
411
519
|
* Create destination
|
|
412
|
-
* This operation creates a destination.
|
|
520
|
+
* This operation creates a [destination](https://www.cobo.com/payments/en/guides/destinations).
|
|
413
521
|
* @param {Object} opts Optional parameters
|
|
414
522
|
* @param {module:model/CreateDestinationRequest} opts.CreateDestinationRequest The request body to create a destination.
|
|
415
523
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DestinationDetail}
|
|
@@ -463,6 +571,47 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
463
571
|
});
|
|
464
572
|
}
|
|
465
573
|
|
|
574
|
+
/**
|
|
575
|
+
* Create destination entry
|
|
576
|
+
* 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.
|
|
577
|
+
* @param {Object} opts Optional parameters
|
|
578
|
+
* @param {module:model/CreateDestinationEntryRequest} [CreateDestinationEntryRequest] The request body to create destination entries.
|
|
579
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateDestinationEntry201Response} and HTTP response
|
|
580
|
+
*/
|
|
581
|
+
}, {
|
|
582
|
+
key: "createDestinationEntryWithHttpInfo",
|
|
583
|
+
value: function createDestinationEntryWithHttpInfo(opts) {
|
|
584
|
+
opts = opts || {};
|
|
585
|
+
var postBody = opts['CreateDestinationEntryRequest'];
|
|
586
|
+
if (postBody && postBody.toJSON) {
|
|
587
|
+
postBody = postBody.toJSON();
|
|
588
|
+
}
|
|
589
|
+
var pathParams = {};
|
|
590
|
+
var queryParams = {};
|
|
591
|
+
var headerParams = {};
|
|
592
|
+
var formParams = {};
|
|
593
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
594
|
+
var contentTypes = ['application/json'];
|
|
595
|
+
var accepts = ['application/json'];
|
|
596
|
+
var returnType = _CreateDestinationEntry201Response["default"];
|
|
597
|
+
return this.apiClient.callApi('/payments/destination_entry', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
/**
|
|
601
|
+
* Create destination entry
|
|
602
|
+
* 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.
|
|
603
|
+
* @param {Object} opts Optional parameters
|
|
604
|
+
* @param {module:model/CreateDestinationEntryRequest} opts.CreateDestinationEntryRequest The request body to create destination entries.
|
|
605
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateDestinationEntry201Response}
|
|
606
|
+
*/
|
|
607
|
+
}, {
|
|
608
|
+
key: "createDestinationEntry",
|
|
609
|
+
value: function createDestinationEntry(opts) {
|
|
610
|
+
return this.createDestinationEntryWithHttpInfo(opts).then(function (response_and_data) {
|
|
611
|
+
return response_and_data.data;
|
|
612
|
+
});
|
|
613
|
+
}
|
|
614
|
+
|
|
466
615
|
/**
|
|
467
616
|
* Create destination wallet address
|
|
468
617
|
* This operation creates a destination wallet address.
|
|
@@ -670,7 +819,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
670
819
|
|
|
671
820
|
/**
|
|
672
821
|
* Create payout
|
|
673
|
-
* This operation creates a payout to withdraw available balances.
|
|
822
|
+
* This operation creates a payout to withdraw available balances.
|
|
674
823
|
* @param {Object} opts Optional parameters
|
|
675
824
|
* @param {module:model/CreatePayoutRequest} [CreatePayoutRequest] The request body to create a payout.
|
|
676
825
|
* @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 +845,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
696
845
|
|
|
697
846
|
/**
|
|
698
847
|
* Create payout
|
|
699
|
-
* This operation creates a payout to withdraw available balances.
|
|
848
|
+
* This operation creates a payout to withdraw available balances.
|
|
700
849
|
* @param {Object} opts Optional parameters
|
|
701
850
|
* @param {module:model/CreatePayoutRequest} opts.CreatePayoutRequest The request body to create a payout.
|
|
702
851
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PaymentPayout}
|
|
@@ -791,9 +940,50 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
791
940
|
});
|
|
792
941
|
}
|
|
793
942
|
|
|
943
|
+
/**
|
|
944
|
+
* Generate reports
|
|
945
|
+
* This operation generates reports for a variety of payment activities, including pay-ins, payouts, and commission fees.
|
|
946
|
+
* @param {Object} opts Optional parameters
|
|
947
|
+
* @param {module:model/CreateReportRequest} [CreateReportRequest] The request body to create payment reports.
|
|
948
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Report} and HTTP response
|
|
949
|
+
*/
|
|
950
|
+
}, {
|
|
951
|
+
key: "createReportWithHttpInfo",
|
|
952
|
+
value: function createReportWithHttpInfo(opts) {
|
|
953
|
+
opts = opts || {};
|
|
954
|
+
var postBody = opts['CreateReportRequest'];
|
|
955
|
+
if (postBody && postBody.toJSON) {
|
|
956
|
+
postBody = postBody.toJSON();
|
|
957
|
+
}
|
|
958
|
+
var pathParams = {};
|
|
959
|
+
var queryParams = {};
|
|
960
|
+
var headerParams = {};
|
|
961
|
+
var formParams = {};
|
|
962
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
963
|
+
var contentTypes = ['application/json'];
|
|
964
|
+
var accepts = ['application/json'];
|
|
965
|
+
var returnType = _Report["default"];
|
|
966
|
+
return this.apiClient.callApi('/payments/reports', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
/**
|
|
970
|
+
* Generate reports
|
|
971
|
+
* This operation generates reports for a variety of payment activities, including pay-ins, payouts, and commission fees.
|
|
972
|
+
* @param {Object} opts Optional parameters
|
|
973
|
+
* @param {module:model/CreateReportRequest} opts.CreateReportRequest The request body to create payment reports.
|
|
974
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Report}
|
|
975
|
+
*/
|
|
976
|
+
}, {
|
|
977
|
+
key: "createReport",
|
|
978
|
+
value: function createReport(opts) {
|
|
979
|
+
return this.createReportWithHttpInfo(opts).then(function (response_and_data) {
|
|
980
|
+
return response_and_data.data;
|
|
981
|
+
});
|
|
982
|
+
}
|
|
983
|
+
|
|
794
984
|
/**
|
|
795
985
|
* Create settlement request
|
|
796
|
-
* This operation
|
|
986
|
+
* <Note>This operation has been deprecated. Please use [Create payout](https://www.cobo.com/payments/en/api-references/payment/create-payout) instead.</Note> You can include multiple merchants and cryptocurrencies in a single settlement request.
|
|
797
987
|
* @param {Object} opts Optional parameters
|
|
798
988
|
* @param {module:model/CreateSettlementRequestRequest} [CreateSettlementRequestRequest] The request body to create a settlement request.
|
|
799
989
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Settlement} and HTTP response
|
|
@@ -819,7 +1009,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
819
1009
|
|
|
820
1010
|
/**
|
|
821
1011
|
* Create settlement request
|
|
822
|
-
* This operation
|
|
1012
|
+
* <Note>This operation has been deprecated. Please use [Create payout](https://www.cobo.com/payments/en/api-references/payment/create-payout) instead.</Note> You can include multiple merchants and cryptocurrencies in a single settlement request.
|
|
823
1013
|
* @param {Object} opts Optional parameters
|
|
824
1014
|
* @param {module:model/CreateSettlementRequestRequest} opts.CreateSettlementRequestRequest The request body to create a settlement request.
|
|
825
1015
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Settlement}
|
|
@@ -833,7 +1023,48 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
833
1023
|
}
|
|
834
1024
|
|
|
835
1025
|
/**
|
|
836
|
-
*
|
|
1026
|
+
* Batch create top-up addresses
|
|
1027
|
+
* This operation creates top-up addresses for multiple payers under a specific merchant and token in a single request. <Note>This operation supports batch processing of up to 50 payers per request.</Note>
|
|
1028
|
+
* @param {Object} opts Optional parameters
|
|
1029
|
+
* @param {module:model/CreateTopUpAddresses} [CreateTopUpAddresses] The request body of the create top-up addresses operation.
|
|
1030
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateTopUpAddresses201Response} and HTTP response
|
|
1031
|
+
*/
|
|
1032
|
+
}, {
|
|
1033
|
+
key: "createTopUpAddressesWithHttpInfo",
|
|
1034
|
+
value: function createTopUpAddressesWithHttpInfo(opts) {
|
|
1035
|
+
opts = opts || {};
|
|
1036
|
+
var postBody = opts['CreateTopUpAddresses'];
|
|
1037
|
+
if (postBody && postBody.toJSON) {
|
|
1038
|
+
postBody = postBody.toJSON();
|
|
1039
|
+
}
|
|
1040
|
+
var pathParams = {};
|
|
1041
|
+
var queryParams = {};
|
|
1042
|
+
var headerParams = {};
|
|
1043
|
+
var formParams = {};
|
|
1044
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
1045
|
+
var contentTypes = ['application/json'];
|
|
1046
|
+
var accepts = ['application/json'];
|
|
1047
|
+
var returnType = _CreateTopUpAddresses201Response["default"];
|
|
1048
|
+
return this.apiClient.callApi('/payments/topup/address', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
/**
|
|
1052
|
+
* Batch create top-up addresses
|
|
1053
|
+
* This operation creates top-up addresses for multiple payers under a specific merchant and token in a single request. <Note>This operation supports batch processing of up to 50 payers per request.</Note>
|
|
1054
|
+
* @param {Object} opts Optional parameters
|
|
1055
|
+
* @param {module:model/CreateTopUpAddresses} opts.CreateTopUpAddresses The request body of the create top-up addresses operation.
|
|
1056
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateTopUpAddresses201Response}
|
|
1057
|
+
*/
|
|
1058
|
+
}, {
|
|
1059
|
+
key: "createTopUpAddresses",
|
|
1060
|
+
value: function createTopUpAddresses(opts) {
|
|
1061
|
+
return this.createTopUpAddressesWithHttpInfo(opts).then(function (response_and_data) {
|
|
1062
|
+
return response_and_data.data;
|
|
1063
|
+
});
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
/**
|
|
1067
|
+
* Delete counterparty (Deprecated)
|
|
837
1068
|
* This operation deletes a counterparty.
|
|
838
1069
|
* @param {String} counterparty_id The counterparty ID.
|
|
839
1070
|
* @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 +1094,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
863
1094
|
}
|
|
864
1095
|
|
|
865
1096
|
/**
|
|
866
|
-
* Delete counterparty
|
|
1097
|
+
* Delete counterparty (Deprecated)
|
|
867
1098
|
* This operation deletes a counterparty.
|
|
868
1099
|
* @param {String} counterparty_id The counterparty ID.
|
|
869
1100
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteCounterparty200Response}
|
|
@@ -876,6 +1107,108 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
876
1107
|
});
|
|
877
1108
|
}
|
|
878
1109
|
|
|
1110
|
+
/**
|
|
1111
|
+
* Delete counterparty
|
|
1112
|
+
* This operation deletes a counterparty. Note that this operation will delete all entries under the counterparty.
|
|
1113
|
+
* @param {String} counterparty_id The counterparty ID.
|
|
1114
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteCounterpartyById200Response} and HTTP response
|
|
1115
|
+
*/
|
|
1116
|
+
}, {
|
|
1117
|
+
key: "deleteCounterpartyByIdWithHttpInfo",
|
|
1118
|
+
value: function deleteCounterpartyByIdWithHttpInfo(counterparty_id) {
|
|
1119
|
+
var postBody = null;
|
|
1120
|
+
if (postBody && postBody.toJSON) {
|
|
1121
|
+
postBody = postBody.toJSON();
|
|
1122
|
+
}
|
|
1123
|
+
// verify the required parameter 'counterparty_id' is set
|
|
1124
|
+
if (counterparty_id === undefined || counterparty_id === null) {
|
|
1125
|
+
throw new Error("Missing the required parameter 'counterparty_id' when calling deleteCounterpartyById");
|
|
1126
|
+
}
|
|
1127
|
+
var pathParams = {
|
|
1128
|
+
'counterparty_id': counterparty_id
|
|
1129
|
+
};
|
|
1130
|
+
var queryParams = {};
|
|
1131
|
+
var headerParams = {};
|
|
1132
|
+
var formParams = {};
|
|
1133
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
1134
|
+
var contentTypes = [];
|
|
1135
|
+
var accepts = ['application/json'];
|
|
1136
|
+
var returnType = _DeleteCounterpartyById200Response["default"];
|
|
1137
|
+
return this.apiClient.callApi('/payments/counterparty/{counterparty_id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1140
|
+
/**
|
|
1141
|
+
* Delete counterparty
|
|
1142
|
+
* This operation deletes a counterparty. Note that this operation will delete all entries under the counterparty.
|
|
1143
|
+
* @param {String} counterparty_id The counterparty ID.
|
|
1144
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteCounterpartyById200Response}
|
|
1145
|
+
*/
|
|
1146
|
+
}, {
|
|
1147
|
+
key: "deleteCounterpartyById",
|
|
1148
|
+
value: function deleteCounterpartyById(counterparty_id) {
|
|
1149
|
+
return this.deleteCounterpartyByIdWithHttpInfo(counterparty_id).then(function (response_and_data) {
|
|
1150
|
+
return response_and_data.data;
|
|
1151
|
+
});
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
/**
|
|
1155
|
+
* Delete counterparty entry
|
|
1156
|
+
* This operation deletes a counterparty entry.
|
|
1157
|
+
* @param {String} counterparty_entry_id The counterparty entry ID. For example, the wallet address ID.
|
|
1158
|
+
* @param {String} counterparty_id The counterparty ID.
|
|
1159
|
+
* @param {Object} opts Optional parameters
|
|
1160
|
+
* @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.
|
|
1161
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteCounterpartyEntry200Response} and HTTP response
|
|
1162
|
+
*/
|
|
1163
|
+
}, {
|
|
1164
|
+
key: "deleteCounterpartyEntryWithHttpInfo",
|
|
1165
|
+
value: function deleteCounterpartyEntryWithHttpInfo(counterparty_entry_id, counterparty_id, opts) {
|
|
1166
|
+
opts = opts || {};
|
|
1167
|
+
var postBody = null;
|
|
1168
|
+
if (postBody && postBody.toJSON) {
|
|
1169
|
+
postBody = postBody.toJSON();
|
|
1170
|
+
}
|
|
1171
|
+
// verify the required parameter 'counterparty_entry_id' is set
|
|
1172
|
+
if (counterparty_entry_id === undefined || counterparty_entry_id === null) {
|
|
1173
|
+
throw new Error("Missing the required parameter 'counterparty_entry_id' when calling deleteCounterpartyEntry");
|
|
1174
|
+
}
|
|
1175
|
+
// verify the required parameter 'counterparty_id' is set
|
|
1176
|
+
if (counterparty_id === undefined || counterparty_id === null) {
|
|
1177
|
+
throw new Error("Missing the required parameter 'counterparty_id' when calling deleteCounterpartyEntry");
|
|
1178
|
+
}
|
|
1179
|
+
var pathParams = {
|
|
1180
|
+
'counterparty_entry_id': counterparty_entry_id
|
|
1181
|
+
};
|
|
1182
|
+
var queryParams = {
|
|
1183
|
+
'counterparty_id': counterparty_id,
|
|
1184
|
+
'entry_type': opts['entry_type']
|
|
1185
|
+
};
|
|
1186
|
+
var headerParams = {};
|
|
1187
|
+
var formParams = {};
|
|
1188
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
1189
|
+
var contentTypes = [];
|
|
1190
|
+
var accepts = ['application/json'];
|
|
1191
|
+
var returnType = _DeleteCounterpartyEntry200Response["default"];
|
|
1192
|
+
return this.apiClient.callApi('/payments/counterparty_entry/{counterparty_entry_id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
/**
|
|
1196
|
+
* Delete counterparty entry
|
|
1197
|
+
* This operation deletes a counterparty entry.
|
|
1198
|
+
* @param {String} counterparty_entry_id The counterparty entry ID. For example, the wallet address ID.
|
|
1199
|
+
* @param {String} counterparty_id The counterparty ID.
|
|
1200
|
+
* @param {Object} opts Optional parameters
|
|
1201
|
+
* @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.
|
|
1202
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteCounterpartyEntry200Response}
|
|
1203
|
+
*/
|
|
1204
|
+
}, {
|
|
1205
|
+
key: "deleteCounterpartyEntry",
|
|
1206
|
+
value: function deleteCounterpartyEntry(counterparty_entry_id, counterparty_id, opts) {
|
|
1207
|
+
return this.deleteCounterpartyEntryWithHttpInfo(counterparty_entry_id, counterparty_id, opts).then(function (response_and_data) {
|
|
1208
|
+
return response_and_data.data;
|
|
1209
|
+
});
|
|
1210
|
+
}
|
|
1211
|
+
|
|
879
1212
|
/**
|
|
880
1213
|
* Delete counterparty wallet address
|
|
881
1214
|
* This operation deletes a counterparty wallet address.
|
|
@@ -965,7 +1298,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
965
1298
|
}
|
|
966
1299
|
|
|
967
1300
|
/**
|
|
968
|
-
* Delete destination
|
|
1301
|
+
* Delete destination (Deprecated)
|
|
969
1302
|
* This operation deletes a destination.
|
|
970
1303
|
* @param {String} destination_id The destination ID.
|
|
971
1304
|
* @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 +1328,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
995
1328
|
}
|
|
996
1329
|
|
|
997
1330
|
/**
|
|
998
|
-
* Delete destination
|
|
1331
|
+
* Delete destination (Deprecated)
|
|
999
1332
|
* This operation deletes a destination.
|
|
1000
1333
|
* @param {String} destination_id The destination ID.
|
|
1001
1334
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteDestination200Response}
|
|
@@ -1052,6 +1385,109 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1052
1385
|
});
|
|
1053
1386
|
}
|
|
1054
1387
|
|
|
1388
|
+
/**
|
|
1389
|
+
* Delete destination
|
|
1390
|
+
* This operation deletes a destination. Note that this operation will delete all entries under the destination, including bank accounts and addresses.
|
|
1391
|
+
* @param {String} destination_id The destination ID.
|
|
1392
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteDestinationById200Response} and HTTP response
|
|
1393
|
+
*/
|
|
1394
|
+
}, {
|
|
1395
|
+
key: "deleteDestinationByIdWithHttpInfo",
|
|
1396
|
+
value: function deleteDestinationByIdWithHttpInfo(destination_id) {
|
|
1397
|
+
var postBody = null;
|
|
1398
|
+
if (postBody && postBody.toJSON) {
|
|
1399
|
+
postBody = postBody.toJSON();
|
|
1400
|
+
}
|
|
1401
|
+
// verify the required parameter 'destination_id' is set
|
|
1402
|
+
if (destination_id === undefined || destination_id === null) {
|
|
1403
|
+
throw new Error("Missing the required parameter 'destination_id' when calling deleteDestinationById");
|
|
1404
|
+
}
|
|
1405
|
+
var pathParams = {
|
|
1406
|
+
'destination_id': destination_id
|
|
1407
|
+
};
|
|
1408
|
+
var queryParams = {};
|
|
1409
|
+
var headerParams = {};
|
|
1410
|
+
var formParams = {};
|
|
1411
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
1412
|
+
var contentTypes = [];
|
|
1413
|
+
var accepts = ['application/json'];
|
|
1414
|
+
var returnType = _DeleteDestinationById200Response["default"];
|
|
1415
|
+
return this.apiClient.callApi('/payments/destination/{destination_id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1416
|
+
}
|
|
1417
|
+
|
|
1418
|
+
/**
|
|
1419
|
+
* Delete destination
|
|
1420
|
+
* This operation deletes a destination. Note that this operation will delete all entries under the destination, including bank accounts and addresses.
|
|
1421
|
+
* @param {String} destination_id The destination ID.
|
|
1422
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteDestinationById200Response}
|
|
1423
|
+
*/
|
|
1424
|
+
}, {
|
|
1425
|
+
key: "deleteDestinationById",
|
|
1426
|
+
value: function deleteDestinationById(destination_id) {
|
|
1427
|
+
return this.deleteDestinationByIdWithHttpInfo(destination_id).then(function (response_and_data) {
|
|
1428
|
+
return response_and_data.data;
|
|
1429
|
+
});
|
|
1430
|
+
}
|
|
1431
|
+
|
|
1432
|
+
/**
|
|
1433
|
+
* Delete destination entry
|
|
1434
|
+
* This operation deletes a destination entry.
|
|
1435
|
+
* @param {String} destination_entry_id The destination entry ID. For example, the wallet address ID or the bank account ID.
|
|
1436
|
+
* @param {String} destination_id The destination ID.
|
|
1437
|
+
* @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.
|
|
1438
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteDestinationEntry200Response} and HTTP response
|
|
1439
|
+
*/
|
|
1440
|
+
}, {
|
|
1441
|
+
key: "deleteDestinationEntryWithHttpInfo",
|
|
1442
|
+
value: function deleteDestinationEntryWithHttpInfo(destination_entry_id, destination_id, entry_type) {
|
|
1443
|
+
var postBody = null;
|
|
1444
|
+
if (postBody && postBody.toJSON) {
|
|
1445
|
+
postBody = postBody.toJSON();
|
|
1446
|
+
}
|
|
1447
|
+
// verify the required parameter 'destination_entry_id' is set
|
|
1448
|
+
if (destination_entry_id === undefined || destination_entry_id === null) {
|
|
1449
|
+
throw new Error("Missing the required parameter 'destination_entry_id' when calling deleteDestinationEntry");
|
|
1450
|
+
}
|
|
1451
|
+
// verify the required parameter 'destination_id' is set
|
|
1452
|
+
if (destination_id === undefined || destination_id === null) {
|
|
1453
|
+
throw new Error("Missing the required parameter 'destination_id' when calling deleteDestinationEntry");
|
|
1454
|
+
}
|
|
1455
|
+
// verify the required parameter 'entry_type' is set
|
|
1456
|
+
if (entry_type === undefined || entry_type === null) {
|
|
1457
|
+
throw new Error("Missing the required parameter 'entry_type' when calling deleteDestinationEntry");
|
|
1458
|
+
}
|
|
1459
|
+
var pathParams = {
|
|
1460
|
+
'destination_entry_id': destination_entry_id
|
|
1461
|
+
};
|
|
1462
|
+
var queryParams = {
|
|
1463
|
+
'destination_id': destination_id,
|
|
1464
|
+
'entry_type': entry_type
|
|
1465
|
+
};
|
|
1466
|
+
var headerParams = {};
|
|
1467
|
+
var formParams = {};
|
|
1468
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
1469
|
+
var contentTypes = [];
|
|
1470
|
+
var accepts = ['application/json'];
|
|
1471
|
+
var returnType = _DeleteDestinationEntry200Response["default"];
|
|
1472
|
+
return this.apiClient.callApi('/payments/destination_entry/{destination_entry_id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1473
|
+
}
|
|
1474
|
+
|
|
1475
|
+
/**
|
|
1476
|
+
* Delete destination entry
|
|
1477
|
+
* This operation deletes a destination entry.
|
|
1478
|
+
* @param {String} destination_entry_id The destination entry ID. For example, the wallet address ID or the bank account ID.
|
|
1479
|
+
* @param {String} destination_id The destination ID.
|
|
1480
|
+
* @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.
|
|
1481
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteDestinationEntry200Response}
|
|
1482
|
+
*/
|
|
1483
|
+
}, {
|
|
1484
|
+
key: "deleteDestinationEntry",
|
|
1485
|
+
value: function deleteDestinationEntry(destination_entry_id, destination_id, entry_type) {
|
|
1486
|
+
return this.deleteDestinationEntryWithHttpInfo(destination_entry_id, destination_id, entry_type).then(function (response_and_data) {
|
|
1487
|
+
return response_and_data.data;
|
|
1488
|
+
});
|
|
1489
|
+
}
|
|
1490
|
+
|
|
1055
1491
|
/**
|
|
1056
1492
|
* Delete destination wallet address
|
|
1057
1493
|
* This operation deletes a destination wallet address.
|
|
@@ -1139,10 +1575,10 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1139
1575
|
|
|
1140
1576
|
/**
|
|
1141
1577
|
* Get available allocation amount
|
|
1142
|
-
* This operation retrieves the
|
|
1578
|
+
* This operation retrieves the available amount that can be allocated from a source account to a destination account.
|
|
1143
1579
|
* @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
|
|
1580
|
+
* @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\"`.
|
|
1581
|
+
* @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
1582
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PaymentAllocationAmount} and HTTP response
|
|
1147
1583
|
*/
|
|
1148
1584
|
}, {
|
|
@@ -1181,10 +1617,10 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1181
1617
|
|
|
1182
1618
|
/**
|
|
1183
1619
|
* Get available allocation amount
|
|
1184
|
-
* This operation retrieves the
|
|
1620
|
+
* This operation retrieves the available amount that can be allocated from a source account to a destination account.
|
|
1185
1621
|
* @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
|
|
1622
|
+
* @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\"`.
|
|
1623
|
+
* @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
1624
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PaymentAllocationAmount}
|
|
1189
1625
|
*/
|
|
1190
1626
|
}, {
|
|
@@ -1196,7 +1632,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1196
1632
|
}
|
|
1197
1633
|
|
|
1198
1634
|
/**
|
|
1199
|
-
* Get batch allocation
|
|
1635
|
+
* Get batch allocation information
|
|
1200
1636
|
* This operation retrieves the information of a batch allocation.
|
|
1201
1637
|
* @param {String} batch_allocation_id The batch allocation ID.
|
|
1202
1638
|
* @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 +1662,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1226
1662
|
}
|
|
1227
1663
|
|
|
1228
1664
|
/**
|
|
1229
|
-
* Get batch allocation
|
|
1665
|
+
* Get batch allocation information
|
|
1230
1666
|
* This operation retrieves the information of a batch allocation.
|
|
1231
1667
|
* @param {String} batch_allocation_id The batch allocation ID.
|
|
1232
1668
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/BatchAllocationDetail}
|
|
@@ -1239,12 +1675,100 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1239
1675
|
});
|
|
1240
1676
|
}
|
|
1241
1677
|
|
|
1678
|
+
/**
|
|
1679
|
+
* Get bulk send information
|
|
1680
|
+
* This operation retrieves the information of a specific bulk send.
|
|
1681
|
+
* @param {String} bulk_send_id The bulk send ID.
|
|
1682
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PaymentBulkSend} and HTTP response
|
|
1683
|
+
*/
|
|
1684
|
+
}, {
|
|
1685
|
+
key: "getBulkSendByIdWithHttpInfo",
|
|
1686
|
+
value: function getBulkSendByIdWithHttpInfo(bulk_send_id) {
|
|
1687
|
+
var postBody = null;
|
|
1688
|
+
if (postBody && postBody.toJSON) {
|
|
1689
|
+
postBody = postBody.toJSON();
|
|
1690
|
+
}
|
|
1691
|
+
// verify the required parameter 'bulk_send_id' is set
|
|
1692
|
+
if (bulk_send_id === undefined || bulk_send_id === null) {
|
|
1693
|
+
throw new Error("Missing the required parameter 'bulk_send_id' when calling getBulkSendById");
|
|
1694
|
+
}
|
|
1695
|
+
var pathParams = {
|
|
1696
|
+
'bulk_send_id': bulk_send_id
|
|
1697
|
+
};
|
|
1698
|
+
var queryParams = {};
|
|
1699
|
+
var headerParams = {};
|
|
1700
|
+
var formParams = {};
|
|
1701
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
1702
|
+
var contentTypes = [];
|
|
1703
|
+
var accepts = ['application/json'];
|
|
1704
|
+
var returnType = _PaymentBulkSend["default"];
|
|
1705
|
+
return this.apiClient.callApi('/payments/bulk_sends/{bulk_send_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1706
|
+
}
|
|
1707
|
+
|
|
1708
|
+
/**
|
|
1709
|
+
* Get bulk send information
|
|
1710
|
+
* This operation retrieves the information of a specific bulk send.
|
|
1711
|
+
* @param {String} bulk_send_id The bulk send ID.
|
|
1712
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PaymentBulkSend}
|
|
1713
|
+
*/
|
|
1714
|
+
}, {
|
|
1715
|
+
key: "getBulkSendById",
|
|
1716
|
+
value: function getBulkSendById(bulk_send_id) {
|
|
1717
|
+
return this.getBulkSendByIdWithHttpInfo(bulk_send_id).then(function (response_and_data) {
|
|
1718
|
+
return response_and_data.data;
|
|
1719
|
+
});
|
|
1720
|
+
}
|
|
1721
|
+
|
|
1242
1722
|
/**
|
|
1243
1723
|
* Get counterparty information
|
|
1244
1724
|
* This operation retrieves the detailed information about a specified counterparty.
|
|
1245
1725
|
* @param {String} counterparty_id The counterparty ID.
|
|
1246
1726
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CounterpartyDetail} and HTTP response
|
|
1247
1727
|
*/
|
|
1728
|
+
}, {
|
|
1729
|
+
key: "getCounterpartyWithHttpInfo",
|
|
1730
|
+
value: function getCounterpartyWithHttpInfo(counterparty_id) {
|
|
1731
|
+
var postBody = null;
|
|
1732
|
+
if (postBody && postBody.toJSON) {
|
|
1733
|
+
postBody = postBody.toJSON();
|
|
1734
|
+
}
|
|
1735
|
+
// verify the required parameter 'counterparty_id' is set
|
|
1736
|
+
if (counterparty_id === undefined || counterparty_id === null) {
|
|
1737
|
+
throw new Error("Missing the required parameter 'counterparty_id' when calling getCounterparty");
|
|
1738
|
+
}
|
|
1739
|
+
var pathParams = {
|
|
1740
|
+
'counterparty_id': counterparty_id
|
|
1741
|
+
};
|
|
1742
|
+
var queryParams = {};
|
|
1743
|
+
var headerParams = {};
|
|
1744
|
+
var formParams = {};
|
|
1745
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
1746
|
+
var contentTypes = [];
|
|
1747
|
+
var accepts = ['application/json'];
|
|
1748
|
+
var returnType = _CounterpartyDetail["default"];
|
|
1749
|
+
return this.apiClient.callApi('/payments/counterparty/{counterparty_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1750
|
+
}
|
|
1751
|
+
|
|
1752
|
+
/**
|
|
1753
|
+
* Get counterparty information
|
|
1754
|
+
* This operation retrieves the detailed information about a specified counterparty.
|
|
1755
|
+
* @param {String} counterparty_id The counterparty ID.
|
|
1756
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CounterpartyDetail}
|
|
1757
|
+
*/
|
|
1758
|
+
}, {
|
|
1759
|
+
key: "getCounterparty",
|
|
1760
|
+
value: function getCounterparty(counterparty_id) {
|
|
1761
|
+
return this.getCounterpartyWithHttpInfo(counterparty_id).then(function (response_and_data) {
|
|
1762
|
+
return response_and_data.data;
|
|
1763
|
+
});
|
|
1764
|
+
}
|
|
1765
|
+
|
|
1766
|
+
/**
|
|
1767
|
+
* Get counterparty information (Deprecated)
|
|
1768
|
+
* This operation retrieves the detailed information about a specified counterparty.
|
|
1769
|
+
* @param {String} counterparty_id The counterparty ID.
|
|
1770
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CounterpartyDetail} and HTTP response
|
|
1771
|
+
*/
|
|
1248
1772
|
}, {
|
|
1249
1773
|
key: "getCounterpartyDetailByIdWithHttpInfo",
|
|
1250
1774
|
value: function getCounterpartyDetailByIdWithHttpInfo(counterparty_id) {
|
|
@@ -1270,7 +1794,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1270
1794
|
}
|
|
1271
1795
|
|
|
1272
1796
|
/**
|
|
1273
|
-
* Get counterparty information
|
|
1797
|
+
* Get counterparty information (Deprecated)
|
|
1274
1798
|
* This operation retrieves the detailed information about a specified counterparty.
|
|
1275
1799
|
* @param {String} counterparty_id The counterparty ID.
|
|
1276
1800
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CounterpartyDetail}
|
|
@@ -1283,6 +1807,101 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1283
1807
|
});
|
|
1284
1808
|
}
|
|
1285
1809
|
|
|
1810
|
+
/**
|
|
1811
|
+
* Get counterparty entry information
|
|
1812
|
+
* This operation retrieves the detailed information about a specified counterparty entry.
|
|
1813
|
+
* @param {String} counterparty_entry_id The counterparty entry ID. For example, the wallet address ID.
|
|
1814
|
+
* @param {Object} opts Optional parameters
|
|
1815
|
+
* @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.
|
|
1816
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetCounterpartyEntry200Response} and HTTP response
|
|
1817
|
+
*/
|
|
1818
|
+
}, {
|
|
1819
|
+
key: "getCounterpartyEntryWithHttpInfo",
|
|
1820
|
+
value: function getCounterpartyEntryWithHttpInfo(counterparty_entry_id, opts) {
|
|
1821
|
+
opts = opts || {};
|
|
1822
|
+
var postBody = null;
|
|
1823
|
+
if (postBody && postBody.toJSON) {
|
|
1824
|
+
postBody = postBody.toJSON();
|
|
1825
|
+
}
|
|
1826
|
+
// verify the required parameter 'counterparty_entry_id' is set
|
|
1827
|
+
if (counterparty_entry_id === undefined || counterparty_entry_id === null) {
|
|
1828
|
+
throw new Error("Missing the required parameter 'counterparty_entry_id' when calling getCounterpartyEntry");
|
|
1829
|
+
}
|
|
1830
|
+
var pathParams = {
|
|
1831
|
+
'counterparty_entry_id': counterparty_entry_id
|
|
1832
|
+
};
|
|
1833
|
+
var queryParams = {
|
|
1834
|
+
'entry_type': opts['entry_type']
|
|
1835
|
+
};
|
|
1836
|
+
var headerParams = {};
|
|
1837
|
+
var formParams = {};
|
|
1838
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
1839
|
+
var contentTypes = [];
|
|
1840
|
+
var accepts = ['application/json'];
|
|
1841
|
+
var returnType = _GetCounterpartyEntry200Response["default"];
|
|
1842
|
+
return this.apiClient.callApi('/payments/counterparty_entry/{counterparty_entry_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1843
|
+
}
|
|
1844
|
+
|
|
1845
|
+
/**
|
|
1846
|
+
* Get counterparty entry information
|
|
1847
|
+
* This operation retrieves the detailed information about a specified counterparty entry.
|
|
1848
|
+
* @param {String} counterparty_entry_id The counterparty entry ID. For example, the wallet address ID.
|
|
1849
|
+
* @param {Object} opts Optional parameters
|
|
1850
|
+
* @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.
|
|
1851
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetCounterpartyEntry200Response}
|
|
1852
|
+
*/
|
|
1853
|
+
}, {
|
|
1854
|
+
key: "getCounterpartyEntry",
|
|
1855
|
+
value: function getCounterpartyEntry(counterparty_entry_id, opts) {
|
|
1856
|
+
return this.getCounterpartyEntryWithHttpInfo(counterparty_entry_id, opts).then(function (response_and_data) {
|
|
1857
|
+
return response_and_data.data;
|
|
1858
|
+
});
|
|
1859
|
+
}
|
|
1860
|
+
|
|
1861
|
+
/**
|
|
1862
|
+
* Get destination information
|
|
1863
|
+
* This operation retrieves the detailed information about a specified destination.
|
|
1864
|
+
* @param {String} destination_id The destination ID.
|
|
1865
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DestinationDetail} and HTTP response
|
|
1866
|
+
*/
|
|
1867
|
+
}, {
|
|
1868
|
+
key: "getDestinationWithHttpInfo",
|
|
1869
|
+
value: function getDestinationWithHttpInfo(destination_id) {
|
|
1870
|
+
var postBody = null;
|
|
1871
|
+
if (postBody && postBody.toJSON) {
|
|
1872
|
+
postBody = postBody.toJSON();
|
|
1873
|
+
}
|
|
1874
|
+
// verify the required parameter 'destination_id' is set
|
|
1875
|
+
if (destination_id === undefined || destination_id === null) {
|
|
1876
|
+
throw new Error("Missing the required parameter 'destination_id' when calling getDestination");
|
|
1877
|
+
}
|
|
1878
|
+
var pathParams = {
|
|
1879
|
+
'destination_id': destination_id
|
|
1880
|
+
};
|
|
1881
|
+
var queryParams = {};
|
|
1882
|
+
var headerParams = {};
|
|
1883
|
+
var formParams = {};
|
|
1884
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
1885
|
+
var contentTypes = [];
|
|
1886
|
+
var accepts = ['application/json'];
|
|
1887
|
+
var returnType = _DestinationDetail["default"];
|
|
1888
|
+
return this.apiClient.callApi('/payments/destination/{destination_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1889
|
+
}
|
|
1890
|
+
|
|
1891
|
+
/**
|
|
1892
|
+
* Get destination information
|
|
1893
|
+
* This operation retrieves the detailed information about a specified destination.
|
|
1894
|
+
* @param {String} destination_id The destination ID.
|
|
1895
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DestinationDetail}
|
|
1896
|
+
*/
|
|
1897
|
+
}, {
|
|
1898
|
+
key: "getDestination",
|
|
1899
|
+
value: function getDestination(destination_id) {
|
|
1900
|
+
return this.getDestinationWithHttpInfo(destination_id).then(function (response_and_data) {
|
|
1901
|
+
return response_and_data.data;
|
|
1902
|
+
});
|
|
1903
|
+
}
|
|
1904
|
+
|
|
1286
1905
|
/**
|
|
1287
1906
|
* Get destination bank account information
|
|
1288
1907
|
* This operation retrieves the detailed information about a specified destination bank account.
|
|
@@ -1328,7 +1947,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1328
1947
|
}
|
|
1329
1948
|
|
|
1330
1949
|
/**
|
|
1331
|
-
* Get destination information
|
|
1950
|
+
* Get destination information (Deprecated)
|
|
1332
1951
|
* This operation retrieves the detailed information about a specified destination.
|
|
1333
1952
|
* @param {String} destination_id The destination ID.
|
|
1334
1953
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DestinationDetail} and HTTP response
|
|
@@ -1358,7 +1977,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1358
1977
|
}
|
|
1359
1978
|
|
|
1360
1979
|
/**
|
|
1361
|
-
* Get destination information
|
|
1980
|
+
* Get destination information (Deprecated)
|
|
1362
1981
|
* This operation retrieves the detailed information about a specified destination.
|
|
1363
1982
|
* @param {String} destination_id The destination ID.
|
|
1364
1983
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DestinationDetail}
|
|
@@ -1371,6 +1990,58 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1371
1990
|
});
|
|
1372
1991
|
}
|
|
1373
1992
|
|
|
1993
|
+
/**
|
|
1994
|
+
* Get destination entry information
|
|
1995
|
+
* This operation retrieves the detailed information about a specified destination entry.
|
|
1996
|
+
* @param {String} destination_entry_id The destination entry ID. For example, the wallet address ID or the bank account ID.
|
|
1997
|
+
* @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.
|
|
1998
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDestinationEntry200Response} and HTTP response
|
|
1999
|
+
*/
|
|
2000
|
+
}, {
|
|
2001
|
+
key: "getDestinationEntryWithHttpInfo",
|
|
2002
|
+
value: function getDestinationEntryWithHttpInfo(destination_entry_id, entry_type) {
|
|
2003
|
+
var postBody = null;
|
|
2004
|
+
if (postBody && postBody.toJSON) {
|
|
2005
|
+
postBody = postBody.toJSON();
|
|
2006
|
+
}
|
|
2007
|
+
// verify the required parameter 'destination_entry_id' is set
|
|
2008
|
+
if (destination_entry_id === undefined || destination_entry_id === null) {
|
|
2009
|
+
throw new Error("Missing the required parameter 'destination_entry_id' when calling getDestinationEntry");
|
|
2010
|
+
}
|
|
2011
|
+
// verify the required parameter 'entry_type' is set
|
|
2012
|
+
if (entry_type === undefined || entry_type === null) {
|
|
2013
|
+
throw new Error("Missing the required parameter 'entry_type' when calling getDestinationEntry");
|
|
2014
|
+
}
|
|
2015
|
+
var pathParams = {
|
|
2016
|
+
'destination_entry_id': destination_entry_id
|
|
2017
|
+
};
|
|
2018
|
+
var queryParams = {
|
|
2019
|
+
'entry_type': entry_type
|
|
2020
|
+
};
|
|
2021
|
+
var headerParams = {};
|
|
2022
|
+
var formParams = {};
|
|
2023
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
2024
|
+
var contentTypes = [];
|
|
2025
|
+
var accepts = ['application/json'];
|
|
2026
|
+
var returnType = _GetDestinationEntry200Response["default"];
|
|
2027
|
+
return this.apiClient.callApi('/payments/destination_entry/{destination_entry_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
2028
|
+
}
|
|
2029
|
+
|
|
2030
|
+
/**
|
|
2031
|
+
* Get destination entry information
|
|
2032
|
+
* This operation retrieves the detailed information about a specified destination entry.
|
|
2033
|
+
* @param {String} destination_entry_id The destination entry ID. For example, the wallet address ID or the bank account ID.
|
|
2034
|
+
* @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.
|
|
2035
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDestinationEntry200Response}
|
|
2036
|
+
*/
|
|
2037
|
+
}, {
|
|
2038
|
+
key: "getDestinationEntry",
|
|
2039
|
+
value: function getDestinationEntry(destination_entry_id, entry_type) {
|
|
2040
|
+
return this.getDestinationEntryWithHttpInfo(destination_entry_id, entry_type).then(function (response_and_data) {
|
|
2041
|
+
return response_and_data.data;
|
|
2042
|
+
});
|
|
2043
|
+
}
|
|
2044
|
+
|
|
1374
2045
|
/**
|
|
1375
2046
|
* Get exchange rate
|
|
1376
2047
|
* This operation retrieves the current exchange rate between a specified currency pair. The exchange rate is updated approximately every 10 minutes. <Note>This operation returns the exchange rate for reference only. The actual exchange rate may vary due to market fluctuations and other factors.</Note>
|
|
@@ -1512,7 +2183,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1512
2183
|
|
|
1513
2184
|
/**
|
|
1514
2185
|
* 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 [
|
|
2186
|
+
* 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
2187
|
* @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
2188
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PspBalance} and HTTP response
|
|
1518
2189
|
*/
|
|
@@ -1542,7 +2213,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1542
2213
|
|
|
1543
2214
|
/**
|
|
1544
2215
|
* 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 [
|
|
2216
|
+
* 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
2217
|
* @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
2218
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PspBalance}
|
|
1548
2219
|
*/
|
|
@@ -1607,7 +2278,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1607
2278
|
* @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
2279
|
* @param {String} [merchant_id] The merchant ID.
|
|
1609
2280
|
* @param {String} [request_id] The request ID.
|
|
1610
|
-
* @param {String} [statuses] A list of order, refund or
|
|
2281
|
+
* @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
2282
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetRefunds200Response} and HTTP response
|
|
1612
2283
|
*/
|
|
1613
2284
|
}, {
|
|
@@ -1645,7 +2316,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1645
2316
|
* @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
2317
|
* @param {String} opts.merchant_id The merchant ID.
|
|
1647
2318
|
* @param {String} opts.request_id The request ID.
|
|
1648
|
-
* @param {String} opts.statuses A list of order, refund or
|
|
2319
|
+
* @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
2320
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetRefunds200Response}
|
|
1650
2321
|
*/
|
|
1651
2322
|
}, {
|
|
@@ -1656,9 +2327,64 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1656
2327
|
});
|
|
1657
2328
|
}
|
|
1658
2329
|
|
|
2330
|
+
/**
|
|
2331
|
+
* List all reports
|
|
2332
|
+
* This operation retrieves the information of all reports.
|
|
2333
|
+
* @param {Object} opts Optional parameters
|
|
2334
|
+
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
2335
|
+
* @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.
|
|
2336
|
+
* @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.
|
|
2337
|
+
* @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.
|
|
2338
|
+
* @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.
|
|
2339
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetReports200Response} and HTTP response
|
|
2340
|
+
*/
|
|
2341
|
+
}, {
|
|
2342
|
+
key: "getReportsWithHttpInfo",
|
|
2343
|
+
value: function getReportsWithHttpInfo(opts) {
|
|
2344
|
+
opts = opts || {};
|
|
2345
|
+
var postBody = null;
|
|
2346
|
+
if (postBody && postBody.toJSON) {
|
|
2347
|
+
postBody = postBody.toJSON();
|
|
2348
|
+
}
|
|
2349
|
+
var pathParams = {};
|
|
2350
|
+
var queryParams = {
|
|
2351
|
+
'limit': opts['limit'],
|
|
2352
|
+
'before': opts['before'],
|
|
2353
|
+
'after': opts['after'],
|
|
2354
|
+
'report_type': opts['report_type'],
|
|
2355
|
+
'report_status': opts['report_status']
|
|
2356
|
+
};
|
|
2357
|
+
var headerParams = {};
|
|
2358
|
+
var formParams = {};
|
|
2359
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
2360
|
+
var contentTypes = [];
|
|
2361
|
+
var accepts = ['application/json'];
|
|
2362
|
+
var returnType = _GetReports200Response["default"];
|
|
2363
|
+
return this.apiClient.callApi('/payments/reports', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
2364
|
+
}
|
|
2365
|
+
|
|
2366
|
+
/**
|
|
2367
|
+
* List all reports
|
|
2368
|
+
* This operation retrieves the information of all reports.
|
|
2369
|
+
* @param {Object} opts Optional parameters
|
|
2370
|
+
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
2371
|
+
* @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.
|
|
2372
|
+
* @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.
|
|
2373
|
+
* @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.
|
|
2374
|
+
* @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.
|
|
2375
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetReports200Response}
|
|
2376
|
+
*/
|
|
2377
|
+
}, {
|
|
2378
|
+
key: "getReports",
|
|
2379
|
+
value: function getReports(opts) {
|
|
2380
|
+
return this.getReportsWithHttpInfo(opts).then(function (response_and_data) {
|
|
2381
|
+
return response_and_data.data;
|
|
2382
|
+
});
|
|
2383
|
+
}
|
|
2384
|
+
|
|
1659
2385
|
/**
|
|
1660
2386
|
* Get settlement request information
|
|
1661
|
-
* This operation retrieves the information of a specific settlement request.
|
|
2387
|
+
* <Note>This operation has been deprecated. Please use [Get payout information](https://www.cobo.com/payments/en/api-references/payment/get-payout-information) instead.</Note> This operation retrieves the information of a specific settlement request.
|
|
1662
2388
|
* @param {String} settlement_request_id The settlement request ID.
|
|
1663
2389
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Settlement} and HTTP response
|
|
1664
2390
|
*/
|
|
@@ -1688,7 +2414,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1688
2414
|
|
|
1689
2415
|
/**
|
|
1690
2416
|
* Get settlement request information
|
|
1691
|
-
* This operation retrieves the information of a specific settlement request.
|
|
2417
|
+
* <Note>This operation has been deprecated. Please use [Get payout information](https://www.cobo.com/payments/en/api-references/payment/get-payout-information) instead.</Note> This operation retrieves the information of a specific settlement request.
|
|
1692
2418
|
* @param {String} settlement_request_id The settlement request ID.
|
|
1693
2419
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Settlement}
|
|
1694
2420
|
*/
|
|
@@ -1706,7 +2432,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1706
2432
|
* @param {Object} opts Optional parameters
|
|
1707
2433
|
* @param {String} [merchant_ids] A list of merchant IDs to query.
|
|
1708
2434
|
* @param {String} [currency = 'USD')] The currency for the operation. Currently, only `USD` is supported.
|
|
1709
|
-
* @param {module:model/AcquiringType} [acquiring_type]
|
|
2435
|
+
* @param {module:model/AcquiringType} [acquiring_type] This parameter has been deprecated
|
|
1710
2436
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetSettlementInfoByIds200Response} and HTTP response
|
|
1711
2437
|
*/
|
|
1712
2438
|
}, {
|
|
@@ -1738,7 +2464,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1738
2464
|
* @param {Object} opts Optional parameters
|
|
1739
2465
|
* @param {String} opts.merchant_ids A list of merchant IDs to query.
|
|
1740
2466
|
* @param {String} opts.currency The currency for the operation. Currently, only `USD` is supported. (default to 'USD')
|
|
1741
|
-
* @param {module:model/AcquiringType} opts.acquiring_type
|
|
2467
|
+
* @param {module:model/AcquiringType} opts.acquiring_type This parameter has been deprecated
|
|
1742
2468
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetSettlementInfoByIds200Response}
|
|
1743
2469
|
*/
|
|
1744
2470
|
}, {
|
|
@@ -1807,21 +2533,21 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1807
2533
|
}
|
|
1808
2534
|
|
|
1809
2535
|
/**
|
|
1810
|
-
* List all
|
|
2536
|
+
* List all allocation items
|
|
1811
2537
|
* This operation retrieves the information of all allocations.
|
|
1812
2538
|
* @param {Object} opts Optional parameters
|
|
1813
2539
|
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
1814
2540
|
* @param {String} [before] A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response.
|
|
1815
2541
|
* @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]
|
|
2542
|
+
* @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\"`.
|
|
2543
|
+
* @param {String} [destination_account] The destination account. - If the destination account is a merchant account, provide the merchant's ID (e.g., \"M1001\"). - If the destination account is the developer account, use the string `\"developer\"`.
|
|
1818
2544
|
* @param {String} [token_id] The token ID, which is a unique identifier that specifies both the blockchain network and cryptocurrency token in the format `{CHAIN}_{TOKEN}`. Supported values include: - USDC: `ETH_USDC`, `ARBITRUM_USDCOIN`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC2`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
|
|
1819
2545
|
* @param {String} [batch_allocation_id] The batch allocation ID.
|
|
1820
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/
|
|
2546
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListAllocationItems200Response} and HTTP response
|
|
1821
2547
|
*/
|
|
1822
2548
|
}, {
|
|
1823
|
-
key: "
|
|
1824
|
-
value: function
|
|
2549
|
+
key: "listAllocationItemsWithHttpInfo",
|
|
2550
|
+
value: function listAllocationItemsWithHttpInfo(opts) {
|
|
1825
2551
|
opts = opts || {};
|
|
1826
2552
|
var postBody = null;
|
|
1827
2553
|
if (postBody && postBody.toJSON) {
|
|
@@ -1842,34 +2568,34 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1842
2568
|
var authNames = ['OAuth2', 'CoboAuth'];
|
|
1843
2569
|
var contentTypes = [];
|
|
1844
2570
|
var accepts = ['application/json'];
|
|
1845
|
-
var returnType =
|
|
1846
|
-
return this.apiClient.callApi('/payments/
|
|
2571
|
+
var returnType = _ListAllocationItems200Response["default"];
|
|
2572
|
+
return this.apiClient.callApi('/payments/allocation_items', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1847
2573
|
}
|
|
1848
2574
|
|
|
1849
2575
|
/**
|
|
1850
|
-
* List all
|
|
2576
|
+
* List all allocation items
|
|
1851
2577
|
* This operation retrieves the information of all allocations.
|
|
1852
2578
|
* @param {Object} opts Optional parameters
|
|
1853
2579
|
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
1854
2580
|
* @param {String} opts.before A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response.
|
|
1855
2581
|
* @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
|
|
2582
|
+
* @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\"`.
|
|
2583
|
+
* @param {String} opts.destination_account The destination account. - If the destination account is a merchant account, provide the merchant's ID (e.g., \"M1001\"). - If the destination account is the developer account, use the string `\"developer\"`.
|
|
1858
2584
|
* @param {String} opts.token_id The token ID, which is a unique identifier that specifies both the blockchain network and cryptocurrency token in the format `{CHAIN}_{TOKEN}`. Supported values include: - USDC: `ETH_USDC`, `ARBITRUM_USDCOIN`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC2`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
|
|
1859
2585
|
* @param {String} opts.batch_allocation_id The batch allocation ID.
|
|
1860
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/
|
|
2586
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListAllocationItems200Response}
|
|
1861
2587
|
*/
|
|
1862
2588
|
}, {
|
|
1863
|
-
key: "
|
|
1864
|
-
value: function
|
|
1865
|
-
return this.
|
|
2589
|
+
key: "listAllocationItems",
|
|
2590
|
+
value: function listAllocationItems(opts) {
|
|
2591
|
+
return this.listAllocationItemsWithHttpInfo(opts).then(function (response_and_data) {
|
|
1866
2592
|
return response_and_data.data;
|
|
1867
2593
|
});
|
|
1868
2594
|
}
|
|
1869
2595
|
|
|
1870
2596
|
/**
|
|
1871
2597
|
* List all bank accounts
|
|
1872
|
-
* This operation
|
|
2598
|
+
* <Note>This operation has been deprecated. Please use [List counterparty entries](https://www.cobo.com/payments/en/api-references/payment/list-counterparty-entries) instead.</Note> This operation retrieves the information of all bank accounts registered.
|
|
1873
2599
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/BankAccount>} and HTTP response
|
|
1874
2600
|
*/
|
|
1875
2601
|
}, {
|
|
@@ -1892,7 +2618,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1892
2618
|
|
|
1893
2619
|
/**
|
|
1894
2620
|
* List all bank accounts
|
|
1895
|
-
* This operation
|
|
2621
|
+
* <Note>This operation has been deprecated. Please use [List counterparty entries](https://www.cobo.com/payments/en/api-references/payment/list-counterparty-entries) instead.</Note> This operation retrieves the information of all bank accounts registered.
|
|
1896
2622
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/BankAccount>}
|
|
1897
2623
|
*/
|
|
1898
2624
|
}, {
|
|
@@ -1914,43 +2640,100 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1914
2640
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListBatchAllocations200Response} and HTTP response
|
|
1915
2641
|
*/
|
|
1916
2642
|
}, {
|
|
1917
|
-
key: "listBatchAllocationsWithHttpInfo",
|
|
1918
|
-
value: function listBatchAllocationsWithHttpInfo(opts) {
|
|
2643
|
+
key: "listBatchAllocationsWithHttpInfo",
|
|
2644
|
+
value: function listBatchAllocationsWithHttpInfo(opts) {
|
|
2645
|
+
opts = opts || {};
|
|
2646
|
+
var postBody = null;
|
|
2647
|
+
if (postBody && postBody.toJSON) {
|
|
2648
|
+
postBody = postBody.toJSON();
|
|
2649
|
+
}
|
|
2650
|
+
var pathParams = {};
|
|
2651
|
+
var queryParams = {
|
|
2652
|
+
'limit': opts['limit'],
|
|
2653
|
+
'before': opts['before'],
|
|
2654
|
+
'after': opts['after'],
|
|
2655
|
+
'request_id': opts['request_id']
|
|
2656
|
+
};
|
|
2657
|
+
var headerParams = {};
|
|
2658
|
+
var formParams = {};
|
|
2659
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
2660
|
+
var contentTypes = [];
|
|
2661
|
+
var accepts = ['application/json'];
|
|
2662
|
+
var returnType = _ListBatchAllocations200Response["default"];
|
|
2663
|
+
return this.apiClient.callApi('/payments/batch_allocations', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
2664
|
+
}
|
|
2665
|
+
|
|
2666
|
+
/**
|
|
2667
|
+
* List all batch allocations
|
|
2668
|
+
* This operation retrieves the information of all batch allocations.
|
|
2669
|
+
* @param {Object} opts Optional parameters
|
|
2670
|
+
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
2671
|
+
* @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.
|
|
2672
|
+
* @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.
|
|
2673
|
+
* @param {String} opts.request_id The request ID.
|
|
2674
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListBatchAllocations200Response}
|
|
2675
|
+
*/
|
|
2676
|
+
}, {
|
|
2677
|
+
key: "listBatchAllocations",
|
|
2678
|
+
value: function listBatchAllocations(opts) {
|
|
2679
|
+
return this.listBatchAllocationsWithHttpInfo(opts).then(function (response_and_data) {
|
|
2680
|
+
return response_and_data.data;
|
|
2681
|
+
});
|
|
2682
|
+
}
|
|
2683
|
+
|
|
2684
|
+
/**
|
|
2685
|
+
* List bulk send items
|
|
2686
|
+
* This operation retrieves the list of items for a specific bulk send.
|
|
2687
|
+
* @param {String} bulk_send_id The bulk send ID.
|
|
2688
|
+
* @param {Object} opts Optional parameters
|
|
2689
|
+
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
2690
|
+
* @param {String} [before] A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response.
|
|
2691
|
+
* @param {String} [after] A cursor indicating the position after the current page. This value is generated by Cobo and returned in the response. You do not need to provide it on the first request. When paginating forward (to the next page), you should pass the after value returned from the last response.
|
|
2692
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListBulkSendItems200Response} and HTTP response
|
|
2693
|
+
*/
|
|
2694
|
+
}, {
|
|
2695
|
+
key: "listBulkSendItemsWithHttpInfo",
|
|
2696
|
+
value: function listBulkSendItemsWithHttpInfo(bulk_send_id, opts) {
|
|
1919
2697
|
opts = opts || {};
|
|
1920
2698
|
var postBody = null;
|
|
1921
2699
|
if (postBody && postBody.toJSON) {
|
|
1922
2700
|
postBody = postBody.toJSON();
|
|
1923
2701
|
}
|
|
1924
|
-
|
|
2702
|
+
// verify the required parameter 'bulk_send_id' is set
|
|
2703
|
+
if (bulk_send_id === undefined || bulk_send_id === null) {
|
|
2704
|
+
throw new Error("Missing the required parameter 'bulk_send_id' when calling listBulkSendItems");
|
|
2705
|
+
}
|
|
2706
|
+
var pathParams = {
|
|
2707
|
+
'bulk_send_id': bulk_send_id
|
|
2708
|
+
};
|
|
1925
2709
|
var queryParams = {
|
|
1926
2710
|
'limit': opts['limit'],
|
|
1927
2711
|
'before': opts['before'],
|
|
1928
|
-
'after': opts['after']
|
|
1929
|
-
'request_id': opts['request_id']
|
|
2712
|
+
'after': opts['after']
|
|
1930
2713
|
};
|
|
1931
2714
|
var headerParams = {};
|
|
1932
2715
|
var formParams = {};
|
|
1933
2716
|
var authNames = ['OAuth2', 'CoboAuth'];
|
|
1934
2717
|
var contentTypes = [];
|
|
1935
2718
|
var accepts = ['application/json'];
|
|
1936
|
-
var returnType =
|
|
1937
|
-
return this.apiClient.callApi('/payments/
|
|
2719
|
+
var returnType = _ListBulkSendItems200Response["default"];
|
|
2720
|
+
return this.apiClient.callApi('/payments/bulk_sends/{bulk_send_id}/items', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1938
2721
|
}
|
|
1939
2722
|
|
|
1940
2723
|
/**
|
|
1941
|
-
* List
|
|
1942
|
-
* This operation retrieves the
|
|
2724
|
+
* List bulk send items
|
|
2725
|
+
* This operation retrieves the list of items for a specific bulk send.
|
|
2726
|
+
* @param {String} bulk_send_id The bulk send ID.
|
|
1943
2727
|
* @param {Object} opts Optional parameters
|
|
1944
2728
|
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
1945
2729
|
* @param {String} opts.before A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response.
|
|
1946
2730
|
* @param {String} opts.after A cursor indicating the position after the current page. This value is generated by Cobo and returned in the response. You do not need to provide it on the first request. When paginating forward (to the next page), you should pass the after value returned from the last response.
|
|
1947
|
-
* @
|
|
1948
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListBatchAllocations200Response}
|
|
2731
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListBulkSendItems200Response}
|
|
1949
2732
|
*/
|
|
1950
2733
|
}, {
|
|
1951
|
-
key: "
|
|
1952
|
-
value: function
|
|
1953
|
-
return this.
|
|
2734
|
+
key: "listBulkSendItems",
|
|
2735
|
+
value: function listBulkSendItems(bulk_send_id, opts) {
|
|
2736
|
+
return this.listBulkSendItemsWithHttpInfo(bulk_send_id, opts).then(function (response_and_data) {
|
|
1954
2737
|
return response_and_data.data;
|
|
1955
2738
|
});
|
|
1956
2739
|
}
|
|
@@ -1962,9 +2745,9 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1962
2745
|
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
1963
2746
|
* @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
2747
|
* @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]
|
|
2748
|
+
* @param {String} [keyword] A search term for performing fuzzy matches in the search query.
|
|
2749
|
+
* @param {module:model/CounterpartyType} [counterparty_type] The type of the counterparty. - `Individual`: The counterparty is an individual. - `Organization`: The counterparty is an organization.
|
|
2750
|
+
* @param {String} [country] Country code, in ISO 3166-1 alpha-3 format.
|
|
1968
2751
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListCounterparties200Response} and HTTP response
|
|
1969
2752
|
*/
|
|
1970
2753
|
}, {
|
|
@@ -2000,9 +2783,9 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2000
2783
|
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
2001
2784
|
* @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
2785
|
* @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
|
|
2786
|
+
* @param {String} opts.keyword A search term for performing fuzzy matches in the search query.
|
|
2787
|
+
* @param {module:model/CounterpartyType} opts.counterparty_type The type of the counterparty. - `Individual`: The counterparty is an individual. - `Organization`: The counterparty is an organization.
|
|
2788
|
+
* @param {String} opts.country Country code, in ISO 3166-1 alpha-3 format.
|
|
2006
2789
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListCounterparties200Response}
|
|
2007
2790
|
*/
|
|
2008
2791
|
}, {
|
|
@@ -2013,6 +2796,67 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2013
2796
|
});
|
|
2014
2797
|
}
|
|
2015
2798
|
|
|
2799
|
+
/**
|
|
2800
|
+
* List counterparty entries
|
|
2801
|
+
* This operation retrieves the information of counterparty entries.
|
|
2802
|
+
* @param {Object} opts Optional parameters
|
|
2803
|
+
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
2804
|
+
* @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.
|
|
2805
|
+
* @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.
|
|
2806
|
+
* @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.
|
|
2807
|
+
* @param {String} [counterparty_id] The counterparty ID.
|
|
2808
|
+
* @param {String} [chain_ids] The chain ID, which is the unique identifier of a blockchain.
|
|
2809
|
+
* @param {String} [wallet_address] The wallet address.
|
|
2810
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListCounterpartyEntries200Response} and HTTP response
|
|
2811
|
+
*/
|
|
2812
|
+
}, {
|
|
2813
|
+
key: "listCounterpartyEntriesWithHttpInfo",
|
|
2814
|
+
value: function listCounterpartyEntriesWithHttpInfo(opts) {
|
|
2815
|
+
opts = opts || {};
|
|
2816
|
+
var postBody = null;
|
|
2817
|
+
if (postBody && postBody.toJSON) {
|
|
2818
|
+
postBody = postBody.toJSON();
|
|
2819
|
+
}
|
|
2820
|
+
var pathParams = {};
|
|
2821
|
+
var queryParams = {
|
|
2822
|
+
'limit': opts['limit'],
|
|
2823
|
+
'before': opts['before'],
|
|
2824
|
+
'after': opts['after'],
|
|
2825
|
+
'entry_type': opts['entry_type'],
|
|
2826
|
+
'counterparty_id': opts['counterparty_id'],
|
|
2827
|
+
'chain_ids': opts['chain_ids'],
|
|
2828
|
+
'wallet_address': opts['wallet_address']
|
|
2829
|
+
};
|
|
2830
|
+
var headerParams = {};
|
|
2831
|
+
var formParams = {};
|
|
2832
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
2833
|
+
var contentTypes = [];
|
|
2834
|
+
var accepts = ['application/json'];
|
|
2835
|
+
var returnType = _ListCounterpartyEntries200Response["default"];
|
|
2836
|
+
return this.apiClient.callApi('/payments/counterparty_entry', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
2837
|
+
}
|
|
2838
|
+
|
|
2839
|
+
/**
|
|
2840
|
+
* List counterparty entries
|
|
2841
|
+
* This operation retrieves the information of counterparty entries.
|
|
2842
|
+
* @param {Object} opts Optional parameters
|
|
2843
|
+
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
2844
|
+
* @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.
|
|
2845
|
+
* @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.
|
|
2846
|
+
* @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.
|
|
2847
|
+
* @param {String} opts.counterparty_id The counterparty ID.
|
|
2848
|
+
* @param {String} opts.chain_ids The chain ID, which is the unique identifier of a blockchain.
|
|
2849
|
+
* @param {String} opts.wallet_address The wallet address.
|
|
2850
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListCounterpartyEntries200Response}
|
|
2851
|
+
*/
|
|
2852
|
+
}, {
|
|
2853
|
+
key: "listCounterpartyEntries",
|
|
2854
|
+
value: function listCounterpartyEntries(opts) {
|
|
2855
|
+
return this.listCounterpartyEntriesWithHttpInfo(opts).then(function (response_and_data) {
|
|
2856
|
+
return response_and_data.data;
|
|
2857
|
+
});
|
|
2858
|
+
}
|
|
2859
|
+
|
|
2016
2860
|
/**
|
|
2017
2861
|
* List counterparty wallet addresses
|
|
2018
2862
|
* This operation retrieves the information of counterparty wallet addresses.
|
|
@@ -2121,7 +2965,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2121
2965
|
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
2122
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.
|
|
2123
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.
|
|
2124
|
-
* @param {String} [keyword] A search term
|
|
2968
|
+
* @param {String} [keyword] A search term for performing fuzzy matches in the search query.
|
|
2125
2969
|
* @param {String} [destination_id] The destination ID.
|
|
2126
2970
|
* @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
2971
|
* @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 +3003,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2159
3003
|
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
2160
3004
|
* @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
3005
|
* @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
|
|
3006
|
+
* @param {String} opts.keyword A search term for performing fuzzy matches in the search query.
|
|
2163
3007
|
* @param {String} opts.destination_id The destination ID.
|
|
2164
3008
|
* @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
3009
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListDestinationBankAccounts200Response}
|
|
@@ -2172,6 +3016,77 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2172
3016
|
});
|
|
2173
3017
|
}
|
|
2174
3018
|
|
|
3019
|
+
/**
|
|
3020
|
+
* List destination entries
|
|
3021
|
+
* This operation retrieves the information of destination entries.
|
|
3022
|
+
* @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.
|
|
3023
|
+
* @param {Object} opts Optional parameters
|
|
3024
|
+
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
3025
|
+
* @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.
|
|
3026
|
+
* @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.
|
|
3027
|
+
* @param {String} [destination_id] The destination ID.
|
|
3028
|
+
* @param {String} [chain_ids] The chain ID, which is the unique identifier of a blockchain.
|
|
3029
|
+
* @param {String} [wallet_address] The wallet address.
|
|
3030
|
+
* @param {String} [keyword] A search term for performing fuzzy matches in the search query.
|
|
3031
|
+
* @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.
|
|
3032
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListDestinationEntries200Response} and HTTP response
|
|
3033
|
+
*/
|
|
3034
|
+
}, {
|
|
3035
|
+
key: "listDestinationEntriesWithHttpInfo",
|
|
3036
|
+
value: function listDestinationEntriesWithHttpInfo(entry_type, opts) {
|
|
3037
|
+
opts = opts || {};
|
|
3038
|
+
var postBody = null;
|
|
3039
|
+
if (postBody && postBody.toJSON) {
|
|
3040
|
+
postBody = postBody.toJSON();
|
|
3041
|
+
}
|
|
3042
|
+
// verify the required parameter 'entry_type' is set
|
|
3043
|
+
if (entry_type === undefined || entry_type === null) {
|
|
3044
|
+
throw new Error("Missing the required parameter 'entry_type' when calling listDestinationEntries");
|
|
3045
|
+
}
|
|
3046
|
+
var pathParams = {};
|
|
3047
|
+
var queryParams = {
|
|
3048
|
+
'limit': opts['limit'],
|
|
3049
|
+
'before': opts['before'],
|
|
3050
|
+
'after': opts['after'],
|
|
3051
|
+
'entry_type': entry_type,
|
|
3052
|
+
'destination_id': opts['destination_id'],
|
|
3053
|
+
'chain_ids': opts['chain_ids'],
|
|
3054
|
+
'wallet_address': opts['wallet_address'],
|
|
3055
|
+
'keyword': opts['keyword'],
|
|
3056
|
+
'bank_account_status': opts['bank_account_status']
|
|
3057
|
+
};
|
|
3058
|
+
var headerParams = {};
|
|
3059
|
+
var formParams = {};
|
|
3060
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
3061
|
+
var contentTypes = [];
|
|
3062
|
+
var accepts = ['application/json'];
|
|
3063
|
+
var returnType = _ListDestinationEntries200Response["default"];
|
|
3064
|
+
return this.apiClient.callApi('/payments/destination_entry', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
3065
|
+
}
|
|
3066
|
+
|
|
3067
|
+
/**
|
|
3068
|
+
* List destination entries
|
|
3069
|
+
* This operation retrieves the information of destination entries.
|
|
3070
|
+
* @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.
|
|
3071
|
+
* @param {Object} opts Optional parameters
|
|
3072
|
+
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
3073
|
+
* @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.
|
|
3074
|
+
* @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.
|
|
3075
|
+
* @param {String} opts.destination_id The destination ID.
|
|
3076
|
+
* @param {String} opts.chain_ids The chain ID, which is the unique identifier of a blockchain.
|
|
3077
|
+
* @param {String} opts.wallet_address The wallet address.
|
|
3078
|
+
* @param {String} opts.keyword A search term for performing fuzzy matches in the search query.
|
|
3079
|
+
* @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.
|
|
3080
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListDestinationEntries200Response}
|
|
3081
|
+
*/
|
|
3082
|
+
}, {
|
|
3083
|
+
key: "listDestinationEntries",
|
|
3084
|
+
value: function listDestinationEntries(entry_type, opts) {
|
|
3085
|
+
return this.listDestinationEntriesWithHttpInfo(entry_type, opts).then(function (response_and_data) {
|
|
3086
|
+
return response_and_data.data;
|
|
3087
|
+
});
|
|
3088
|
+
}
|
|
3089
|
+
|
|
2175
3090
|
/**
|
|
2176
3091
|
* List destination wallet addresses
|
|
2177
3092
|
* This operation retrieves the information of destination wallet addresses.
|
|
@@ -2237,9 +3152,9 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2237
3152
|
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
2238
3153
|
* @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
3154
|
* @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
|
|
3155
|
+
* @param {String} [keyword] A search term for performing fuzzy matches in the search query.
|
|
2241
3156
|
* @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]
|
|
3157
|
+
* @param {String} [country] Country code, in ISO 3166-1 alpha-3 format.
|
|
2243
3158
|
* @param {String} [merchant_ids] A list of merchant IDs to query.
|
|
2244
3159
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListDestinations200Response} and HTTP response
|
|
2245
3160
|
*/
|
|
@@ -2277,9 +3192,9 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2277
3192
|
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
2278
3193
|
* @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
3194
|
* @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
|
|
3195
|
+
* @param {String} opts.keyword A search term for performing fuzzy matches in the search query.
|
|
2281
3196
|
* @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
|
|
3197
|
+
* @param {String} opts.country Country code, in ISO 3166-1 alpha-3 format.
|
|
2283
3198
|
* @param {String} opts.merchant_ids A list of merchant IDs to query.
|
|
2284
3199
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListDestinations200Response}
|
|
2285
3200
|
*/
|
|
@@ -2345,11 +3260,11 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2345
3260
|
|
|
2346
3261
|
/**
|
|
2347
3262
|
* 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 [
|
|
3263
|
+
* 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
3264
|
* @param {String} token_id The token ID, which is a unique identifier that specifies both the blockchain network and cryptocurrency token in the format `{CHAIN}_{TOKEN}`. Supported values include: - USDC: `ETH_USDC`, `ARBITRUM_USDCOIN`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC2`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
|
|
2350
3265
|
* @param {Object} opts Optional parameters
|
|
2351
3266
|
* @param {String} [merchant_ids] A list of merchant IDs to query.
|
|
2352
|
-
* @param {module:model/AcquiringType} [acquiring_type]
|
|
3267
|
+
* @param {module:model/AcquiringType} [acquiring_type] This parameter has been deprecated
|
|
2353
3268
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListMerchantBalances200Response} and HTTP response
|
|
2354
3269
|
*/
|
|
2355
3270
|
}, {
|
|
@@ -2381,11 +3296,11 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2381
3296
|
|
|
2382
3297
|
/**
|
|
2383
3298
|
* 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 [
|
|
3299
|
+
* 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
3300
|
* @param {String} token_id The token ID, which is a unique identifier that specifies both the blockchain network and cryptocurrency token in the format `{CHAIN}_{TOKEN}`. Supported values include: - USDC: `ETH_USDC`, `ARBITRUM_USDCOIN`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC2`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
|
|
2386
3301
|
* @param {Object} opts Optional parameters
|
|
2387
3302
|
* @param {String} opts.merchant_ids A list of merchant IDs to query.
|
|
2388
|
-
* @param {module:model/AcquiringType} opts.acquiring_type
|
|
3303
|
+
* @param {module:model/AcquiringType} opts.acquiring_type This parameter has been deprecated
|
|
2389
3304
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListMerchantBalances200Response}
|
|
2390
3305
|
*/
|
|
2391
3306
|
}, {
|
|
@@ -2403,7 +3318,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2403
3318
|
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
2404
3319
|
* @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
3320
|
* @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
|
|
3321
|
+
* @param {String} [keyword] A search term for performing fuzzy matches in the search query.
|
|
2407
3322
|
* @param {String} [wallet_id] This parameter has been deprecated.
|
|
2408
3323
|
* @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
3324
|
* @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 +3356,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2441
3356
|
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
2442
3357
|
* @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
3358
|
* @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
|
|
3359
|
+
* @param {String} opts.keyword A search term for performing fuzzy matches in the search query.
|
|
2445
3360
|
* @param {String} opts.wallet_id This parameter has been deprecated.
|
|
2446
3361
|
* @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
3362
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListMerchants200Response}
|
|
@@ -2463,7 +3378,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2463
3378
|
* @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
3379
|
* @param {String} [merchant_id] The merchant ID.
|
|
2465
3380
|
* @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
|
|
3381
|
+
* @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
3382
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListPaymentOrders200Response} and HTTP response
|
|
2468
3383
|
*/
|
|
2469
3384
|
}, {
|
|
@@ -2501,7 +3416,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2501
3416
|
* @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
3417
|
* @param {String} opts.merchant_id The merchant ID.
|
|
2503
3418
|
* @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
|
|
3419
|
+
* @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
3420
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListPaymentOrders200Response}
|
|
2506
3421
|
*/
|
|
2507
3422
|
}, {
|
|
@@ -2598,61 +3513,6 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2598
3513
|
});
|
|
2599
3514
|
}
|
|
2600
3515
|
|
|
2601
|
-
/**
|
|
2602
|
-
* List all payout items
|
|
2603
|
-
* This operation retrieves the information of all payout items. You can filter the result by merchant ID or status.
|
|
2604
|
-
* @param {Object} opts Optional parameters
|
|
2605
|
-
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
2606
|
-
* @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
|
-
* @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 settlement 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 settlement details](https://www.cobo.com/payments/en/api-references/payment/list-all-settlement-details)
|
|
2610
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListPayoutItems200Response} and HTTP response
|
|
2611
|
-
*/
|
|
2612
|
-
}, {
|
|
2613
|
-
key: "listPayoutItemsWithHttpInfo",
|
|
2614
|
-
value: function listPayoutItemsWithHttpInfo(opts) {
|
|
2615
|
-
opts = opts || {};
|
|
2616
|
-
var postBody = null;
|
|
2617
|
-
if (postBody && postBody.toJSON) {
|
|
2618
|
-
postBody = postBody.toJSON();
|
|
2619
|
-
}
|
|
2620
|
-
var pathParams = {};
|
|
2621
|
-
var queryParams = {
|
|
2622
|
-
'limit': opts['limit'],
|
|
2623
|
-
'before': opts['before'],
|
|
2624
|
-
'after': opts['after'],
|
|
2625
|
-
'source_account': opts['source_account'],
|
|
2626
|
-
'statuses': opts['statuses']
|
|
2627
|
-
};
|
|
2628
|
-
var headerParams = {};
|
|
2629
|
-
var formParams = {};
|
|
2630
|
-
var authNames = ['OAuth2', 'CoboAuth'];
|
|
2631
|
-
var contentTypes = [];
|
|
2632
|
-
var accepts = ['application/json'];
|
|
2633
|
-
var returnType = _ListPayoutItems200Response["default"];
|
|
2634
|
-
return this.apiClient.callApi('/payments/payout_items', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
2635
|
-
}
|
|
2636
|
-
|
|
2637
|
-
/**
|
|
2638
|
-
* List all payout items
|
|
2639
|
-
* This operation retrieves the information of all payout items. You can filter the result by merchant ID or status.
|
|
2640
|
-
* @param {Object} opts Optional parameters
|
|
2641
|
-
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
2642
|
-
* @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
|
-
* @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 settlement 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 settlement details](https://www.cobo.com/payments/en/api-references/payment/list-all-settlement-details)
|
|
2646
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListPayoutItems200Response}
|
|
2647
|
-
*/
|
|
2648
|
-
}, {
|
|
2649
|
-
key: "listPayoutItems",
|
|
2650
|
-
value: function listPayoutItems(opts) {
|
|
2651
|
-
return this.listPayoutItemsWithHttpInfo(opts).then(function (response_and_data) {
|
|
2652
|
-
return response_and_data.data;
|
|
2653
|
-
});
|
|
2654
|
-
}
|
|
2655
|
-
|
|
2656
3516
|
/**
|
|
2657
3517
|
* List all payouts
|
|
2658
3518
|
* This operation retrieves the information of all payouts.
|
|
@@ -2707,13 +3567,13 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2707
3567
|
|
|
2708
3568
|
/**
|
|
2709
3569
|
* List all settlement details
|
|
2710
|
-
* This operation retrieves the information of all settlement details. You can filter the result by merchant ID or status.
|
|
3570
|
+
* <Note>This operation has been deprecated.</Note> This operation retrieves the information of all settlement details. You can filter the result by merchant ID or status.
|
|
2711
3571
|
* @param {Object} opts Optional parameters
|
|
2712
3572
|
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
2713
3573
|
* @param {String} [before] A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response.
|
|
2714
3574
|
* @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
3575
|
* @param {String} [merchant_id] The merchant ID.
|
|
2716
|
-
* @param {String} [statuses] A list of order, refund or
|
|
3576
|
+
* @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
3577
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListSettlementDetails200Response} and HTTP response
|
|
2718
3578
|
*/
|
|
2719
3579
|
}, {
|
|
@@ -2743,13 +3603,13 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2743
3603
|
|
|
2744
3604
|
/**
|
|
2745
3605
|
* List all settlement details
|
|
2746
|
-
* This operation retrieves the information of all settlement details. You can filter the result by merchant ID or status.
|
|
3606
|
+
* <Note>This operation has been deprecated.</Note> This operation retrieves the information of all settlement details. You can filter the result by merchant ID or status.
|
|
2747
3607
|
* @param {Object} opts Optional parameters
|
|
2748
3608
|
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
2749
3609
|
* @param {String} opts.before A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response.
|
|
2750
3610
|
* @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
3611
|
* @param {String} opts.merchant_id The merchant ID.
|
|
2752
|
-
* @param {String} opts.statuses A list of order, refund or
|
|
3612
|
+
* @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
3613
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListSettlementDetails200Response}
|
|
2754
3614
|
*/
|
|
2755
3615
|
}, {
|
|
@@ -2762,7 +3622,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2762
3622
|
|
|
2763
3623
|
/**
|
|
2764
3624
|
* List all settlement requests
|
|
2765
|
-
* This operation retrieves the information of all settlement requests.
|
|
3625
|
+
* <Note>This operation has been deprecated. Please use [List all payouts](https://www.cobo.com/payments/en/api-references/payment/list-all-payouts) instead.</Note> This operation retrieves the information of all settlement requests.
|
|
2766
3626
|
* @param {Object} opts Optional parameters
|
|
2767
3627
|
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
2768
3628
|
* @param {String} [before] A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response.
|
|
@@ -2796,7 +3656,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2796
3656
|
|
|
2797
3657
|
/**
|
|
2798
3658
|
* List all settlement requests
|
|
2799
|
-
* This operation retrieves the information of all settlement requests.
|
|
3659
|
+
* <Note>This operation has been deprecated. Please use [List all payouts](https://www.cobo.com/payments/en/api-references/payment/list-all-payouts) instead.</Note> This operation retrieves the information of all settlement requests.
|
|
2800
3660
|
* @param {Object} opts Optional parameters
|
|
2801
3661
|
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
2802
3662
|
* @param {String} opts.before A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response.
|
|
@@ -3053,6 +3913,55 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
3053
3913
|
* This operation updates the information of a specified counterparty.
|
|
3054
3914
|
* @param {String} counterparty_id The counterparty ID.
|
|
3055
3915
|
* @param {Object} opts Optional parameters
|
|
3916
|
+
* @param {module:model/UpdateCounterpartyRequest} [UpdateCounterpartyRequest] The request body to update a counterparty.
|
|
3917
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Counterparty} and HTTP response
|
|
3918
|
+
*/
|
|
3919
|
+
}, {
|
|
3920
|
+
key: "updateCounterpartyWithHttpInfo",
|
|
3921
|
+
value: function updateCounterpartyWithHttpInfo(counterparty_id, opts) {
|
|
3922
|
+
opts = opts || {};
|
|
3923
|
+
var postBody = opts['UpdateCounterpartyRequest'];
|
|
3924
|
+
if (postBody && postBody.toJSON) {
|
|
3925
|
+
postBody = postBody.toJSON();
|
|
3926
|
+
}
|
|
3927
|
+
// verify the required parameter 'counterparty_id' is set
|
|
3928
|
+
if (counterparty_id === undefined || counterparty_id === null) {
|
|
3929
|
+
throw new Error("Missing the required parameter 'counterparty_id' when calling updateCounterparty");
|
|
3930
|
+
}
|
|
3931
|
+
var pathParams = {
|
|
3932
|
+
'counterparty_id': counterparty_id
|
|
3933
|
+
};
|
|
3934
|
+
var queryParams = {};
|
|
3935
|
+
var headerParams = {};
|
|
3936
|
+
var formParams = {};
|
|
3937
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
3938
|
+
var contentTypes = ['application/json'];
|
|
3939
|
+
var accepts = ['application/json'];
|
|
3940
|
+
var returnType = _Counterparty["default"];
|
|
3941
|
+
return this.apiClient.callApi('/payments/counterparty/{counterparty_id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
3942
|
+
}
|
|
3943
|
+
|
|
3944
|
+
/**
|
|
3945
|
+
* Update counterparty
|
|
3946
|
+
* This operation updates the information of a specified counterparty.
|
|
3947
|
+
* @param {String} counterparty_id The counterparty ID.
|
|
3948
|
+
* @param {Object} opts Optional parameters
|
|
3949
|
+
* @param {module:model/UpdateCounterpartyRequest} opts.UpdateCounterpartyRequest The request body to update a counterparty.
|
|
3950
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Counterparty}
|
|
3951
|
+
*/
|
|
3952
|
+
}, {
|
|
3953
|
+
key: "updateCounterparty",
|
|
3954
|
+
value: function updateCounterparty(counterparty_id, opts) {
|
|
3955
|
+
return this.updateCounterpartyWithHttpInfo(counterparty_id, opts).then(function (response_and_data) {
|
|
3956
|
+
return response_and_data.data;
|
|
3957
|
+
});
|
|
3958
|
+
}
|
|
3959
|
+
|
|
3960
|
+
/**
|
|
3961
|
+
* Update counterparty (Deprecated)
|
|
3962
|
+
* This operation updates the information of a specified counterparty.
|
|
3963
|
+
* @param {String} counterparty_id The counterparty ID.
|
|
3964
|
+
* @param {Object} opts Optional parameters
|
|
3056
3965
|
* @param {module:model/UpdateCounterpartyByIdRequest} [UpdateCounterpartyByIdRequest] The request body to update a counterparty.
|
|
3057
3966
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Counterparty} and HTTP response
|
|
3058
3967
|
*/
|
|
@@ -3082,7 +3991,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
3082
3991
|
}
|
|
3083
3992
|
|
|
3084
3993
|
/**
|
|
3085
|
-
* Update counterparty
|
|
3994
|
+
* Update counterparty (Deprecated)
|
|
3086
3995
|
* This operation updates the information of a specified counterparty.
|
|
3087
3996
|
* @param {String} counterparty_id The counterparty ID.
|
|
3088
3997
|
* @param {Object} opts Optional parameters
|
|
@@ -3097,6 +4006,55 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
3097
4006
|
});
|
|
3098
4007
|
}
|
|
3099
4008
|
|
|
4009
|
+
/**
|
|
4010
|
+
* Update destination
|
|
4011
|
+
* This operation updates the information of a specified destination.
|
|
4012
|
+
* @param {String} destination_id The destination ID.
|
|
4013
|
+
* @param {Object} opts Optional parameters
|
|
4014
|
+
* @param {module:model/UpdateDestinationRequest} [UpdateDestinationRequest] The request body to update a destination.
|
|
4015
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Destination} and HTTP response
|
|
4016
|
+
*/
|
|
4017
|
+
}, {
|
|
4018
|
+
key: "updateDestinationWithHttpInfo",
|
|
4019
|
+
value: function updateDestinationWithHttpInfo(destination_id, opts) {
|
|
4020
|
+
opts = opts || {};
|
|
4021
|
+
var postBody = opts['UpdateDestinationRequest'];
|
|
4022
|
+
if (postBody && postBody.toJSON) {
|
|
4023
|
+
postBody = postBody.toJSON();
|
|
4024
|
+
}
|
|
4025
|
+
// verify the required parameter 'destination_id' is set
|
|
4026
|
+
if (destination_id === undefined || destination_id === null) {
|
|
4027
|
+
throw new Error("Missing the required parameter 'destination_id' when calling updateDestination");
|
|
4028
|
+
}
|
|
4029
|
+
var pathParams = {
|
|
4030
|
+
'destination_id': destination_id
|
|
4031
|
+
};
|
|
4032
|
+
var queryParams = {};
|
|
4033
|
+
var headerParams = {};
|
|
4034
|
+
var formParams = {};
|
|
4035
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
4036
|
+
var contentTypes = ['application/json'];
|
|
4037
|
+
var accepts = ['application/json'];
|
|
4038
|
+
var returnType = _Destination["default"];
|
|
4039
|
+
return this.apiClient.callApi('/payments/destination/{destination_id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
4040
|
+
}
|
|
4041
|
+
|
|
4042
|
+
/**
|
|
4043
|
+
* Update destination
|
|
4044
|
+
* This operation updates the information of a specified destination.
|
|
4045
|
+
* @param {String} destination_id The destination ID.
|
|
4046
|
+
* @param {Object} opts Optional parameters
|
|
4047
|
+
* @param {module:model/UpdateDestinationRequest} opts.UpdateDestinationRequest The request body to update a destination.
|
|
4048
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Destination}
|
|
4049
|
+
*/
|
|
4050
|
+
}, {
|
|
4051
|
+
key: "updateDestination",
|
|
4052
|
+
value: function updateDestination(destination_id, opts) {
|
|
4053
|
+
return this.updateDestinationWithHttpInfo(destination_id, opts).then(function (response_and_data) {
|
|
4054
|
+
return response_and_data.data;
|
|
4055
|
+
});
|
|
4056
|
+
}
|
|
4057
|
+
|
|
3100
4058
|
/**
|
|
3101
4059
|
* Update destination bank account
|
|
3102
4060
|
* This operation updates the information of a specified destination bank account.
|
|
@@ -3147,11 +4105,11 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
3147
4105
|
}
|
|
3148
4106
|
|
|
3149
4107
|
/**
|
|
3150
|
-
* Update destination
|
|
4108
|
+
* Update destination (Deprecated)
|
|
3151
4109
|
* This operation updates the information of a specified destination.
|
|
3152
4110
|
* @param {String} destination_id The destination ID.
|
|
3153
4111
|
* @param {Object} opts Optional parameters
|
|
3154
|
-
* @param {module:model/UpdateDestinationByIdRequest} [UpdateDestinationByIdRequest] The request body to
|
|
4112
|
+
* @param {module:model/UpdateDestinationByIdRequest} [UpdateDestinationByIdRequest] The request body to update a destination.
|
|
3155
4113
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Destination} and HTTP response
|
|
3156
4114
|
*/
|
|
3157
4115
|
}, {
|
|
@@ -3180,11 +4138,11 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
3180
4138
|
}
|
|
3181
4139
|
|
|
3182
4140
|
/**
|
|
3183
|
-
* Update destination
|
|
4141
|
+
* Update destination (Deprecated)
|
|
3184
4142
|
* This operation updates the information of a specified destination.
|
|
3185
4143
|
* @param {String} destination_id The destination ID.
|
|
3186
4144
|
* @param {Object} opts Optional parameters
|
|
3187
|
-
* @param {module:model/UpdateDestinationByIdRequest} opts.UpdateDestinationByIdRequest The request body to
|
|
4145
|
+
* @param {module:model/UpdateDestinationByIdRequest} opts.UpdateDestinationByIdRequest The request body to update a destination.
|
|
3188
4146
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Destination}
|
|
3189
4147
|
*/
|
|
3190
4148
|
}, {
|
|
@@ -3195,6 +4153,55 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
3195
4153
|
});
|
|
3196
4154
|
}
|
|
3197
4155
|
|
|
4156
|
+
/**
|
|
4157
|
+
* Update destination entry
|
|
4158
|
+
* This operation updates the information of a specified destination entry.
|
|
4159
|
+
* @param {String} destination_entry_id The destination entry ID. For example, the wallet address ID or the bank account ID.
|
|
4160
|
+
* @param {Object} opts Optional parameters
|
|
4161
|
+
* @param {module:model/UpdateDestinationEntryRequest} [UpdateDestinationEntryRequest] The request body to update a destination entry.
|
|
4162
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateDestinationEntry200Response} and HTTP response
|
|
4163
|
+
*/
|
|
4164
|
+
}, {
|
|
4165
|
+
key: "updateDestinationEntryWithHttpInfo",
|
|
4166
|
+
value: function updateDestinationEntryWithHttpInfo(destination_entry_id, opts) {
|
|
4167
|
+
opts = opts || {};
|
|
4168
|
+
var postBody = opts['UpdateDestinationEntryRequest'];
|
|
4169
|
+
if (postBody && postBody.toJSON) {
|
|
4170
|
+
postBody = postBody.toJSON();
|
|
4171
|
+
}
|
|
4172
|
+
// verify the required parameter 'destination_entry_id' is set
|
|
4173
|
+
if (destination_entry_id === undefined || destination_entry_id === null) {
|
|
4174
|
+
throw new Error("Missing the required parameter 'destination_entry_id' when calling updateDestinationEntry");
|
|
4175
|
+
}
|
|
4176
|
+
var pathParams = {
|
|
4177
|
+
'destination_entry_id': destination_entry_id
|
|
4178
|
+
};
|
|
4179
|
+
var queryParams = {};
|
|
4180
|
+
var headerParams = {};
|
|
4181
|
+
var formParams = {};
|
|
4182
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
4183
|
+
var contentTypes = ['application/json'];
|
|
4184
|
+
var accepts = ['application/json'];
|
|
4185
|
+
var returnType = _UpdateDestinationEntry200Response["default"];
|
|
4186
|
+
return this.apiClient.callApi('/payments/destination_entry/{destination_entry_id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
4187
|
+
}
|
|
4188
|
+
|
|
4189
|
+
/**
|
|
4190
|
+
* Update destination entry
|
|
4191
|
+
* This operation updates the information of a specified destination entry.
|
|
4192
|
+
* @param {String} destination_entry_id The destination entry ID. For example, the wallet address ID or the bank account ID.
|
|
4193
|
+
* @param {Object} opts Optional parameters
|
|
4194
|
+
* @param {module:model/UpdateDestinationEntryRequest} opts.UpdateDestinationEntryRequest The request body to update a destination entry.
|
|
4195
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateDestinationEntry200Response}
|
|
4196
|
+
*/
|
|
4197
|
+
}, {
|
|
4198
|
+
key: "updateDestinationEntry",
|
|
4199
|
+
value: function updateDestinationEntry(destination_entry_id, opts) {
|
|
4200
|
+
return this.updateDestinationEntryWithHttpInfo(destination_entry_id, opts).then(function (response_and_data) {
|
|
4201
|
+
return response_and_data.data;
|
|
4202
|
+
});
|
|
4203
|
+
}
|
|
4204
|
+
|
|
3198
4205
|
/**
|
|
3199
4206
|
* Update merchant
|
|
3200
4207
|
* This operation updates the information of an existing merchant.
|