@cobo/cobo-waas2 1.30.0 → 1.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -36
- package/dist/ApiClient.js +1 -1
- package/dist/api/AutoSweepApi.js +4 -4
- package/dist/api/FeeStationApi.js +4 -4
- package/dist/api/PaymentApi.js +76 -929
- package/dist/api/TransactionsApi.js +4 -4
- package/dist/api/WalletsApi.js +83 -0
- package/dist/index.js +35 -105
- package/dist/model/Balance.js +14 -0
- package/dist/model/BridgingFee.js +9 -0
- package/dist/model/ContractCallParams.js +16 -0
- package/dist/model/CreateDestinationBankAccount.js +26 -0
- package/dist/model/CreatePaymentOrderRequest.js +4 -3
- package/dist/model/CreateTopUpAddresses.js +2 -2
- package/dist/model/CreateWalletAddress.js +2 -2
- package/dist/model/DestinationBankAccount.js +26 -0
- package/dist/model/DestinationBankAccountDetail.js +26 -0
- package/dist/model/IntermediaryBankInfo.js +4 -6
- package/dist/model/MerchantBalance.js +4 -6
- package/dist/model/PaymentBridgeStatus.js +61 -0
- package/dist/model/PaymentBulkSendItem.js +9 -9
- package/dist/model/PaymentPayout.js +35 -4
- package/dist/model/PaymentPayoutDetail.js +49 -13
- package/dist/model/PaymentPayoutEvent.js +49 -13
- package/dist/model/PreCheck.js +89 -0
- package/dist/model/ReportType.js +5 -0
- package/dist/model/SkipCheckType.js +56 -0
- package/dist/model/SupportedToken.js +17 -17
- package/dist/model/TransactionDepositToAddressDestinationTxInfo.js +26 -0
- package/dist/model/TransactionRawTxInfo.js +32 -1
- package/dist/model/TransactionSelectedUtxo.js +39 -0
- package/dist/model/TransactionUtxoChange.js +13 -0
- package/dist/model/TransferParams.js +16 -0
- package/dist/model/TriggerTestPaymentWebhookEventResponse.js +83 -0
- package/dist/model/{QueryDestinationWhitelistEnabled200Response.js → TriggerTestPaymentsWebhookEventRequest.js} +35 -26
- package/dist/model/UTXO.js +48 -0
- package/dist/model/UpdateDestinationBankAccount.js +26 -0
- package/dist/model/WebhookEventData.js +6 -0
- package/dist/model/WebhookEventType.js +25 -0
- package/docs/AutoSweepApi.md +2 -2
- package/docs/Balance.md +1 -0
- package/docs/BridgingFee.md +1 -0
- package/docs/ContractCallParams.md +1 -0
- package/docs/CreateDestinationBankAccount.md +2 -0
- package/docs/CreatePaymentOrderRequest.md +2 -2
- package/docs/CreateTopUpAddresses.md +1 -1
- package/docs/CreateWalletAddress.md +1 -1
- package/docs/DestinationBankAccount.md +2 -0
- package/docs/DestinationBankAccountDetail.md +2 -0
- package/docs/FeeStationApi.md +2 -2
- package/docs/IntermediaryBankInfo.md +1 -1
- package/docs/MerchantBalance.md +1 -1
- package/docs/PaymentApi.md +185 -1153
- package/docs/PaymentBridgeStatus.md +12 -0
- package/docs/PaymentBulkSendItem.md +5 -5
- package/docs/PaymentPayout.md +2 -1
- package/docs/PaymentPayoutDetail.md +2 -1
- package/docs/PaymentPayoutEvent.md +2 -1
- package/docs/PreCheck.md +9 -0
- package/docs/ReportType.md +2 -0
- package/docs/SkipCheckType.md +10 -0
- package/docs/SupportedToken.md +10 -10
- package/docs/TransactionDepositToAddressDestinationTxInfo.md +2 -0
- package/docs/TransactionRawTxInfo.md +2 -1
- package/docs/TransactionSelectedUtxo.md +3 -0
- package/docs/TransactionUtxoChange.md +1 -0
- package/docs/TransactionsApi.md +2 -2
- package/docs/TransferParams.md +1 -0
- package/docs/TriggerTestPaymentWebhookEventResponse.md +9 -0
- package/docs/TriggerTestPaymentsWebhookEventRequest.md +10 -0
- package/docs/UTXO.md +4 -0
- package/docs/UpdateDestinationBankAccount.md +2 -0
- package/docs/WalletsApi.md +71 -0
- package/docs/WebhookEventData.md +1 -0
- package/docs/WebhookEventType.md +10 -0
- package/package.json +1 -1
- package/dist/model/CreateCounterpartyWalletAddressRequest.js +0 -140
- package/dist/model/CreateDestinationBankAccountRequest.js +0 -272
- package/dist/model/CreateDestinationWalletAddressRequest.js +0 -140
- package/dist/model/DeleteCounterparty200Response.js +0 -110
- package/dist/model/DeleteCounterpartyWalletAddress200Response.js +0 -110
- package/dist/model/DeleteDestination200Response.js +0 -110
- package/dist/model/DeleteDestinationBankAccount200Response.js +0 -110
- package/dist/model/DeleteDestinationWalletAddress200Response.js +0 -110
- package/dist/model/EnableDestinationWhitelistRequest.js +0 -106
- package/dist/model/ListCounterpartyWalletAddress200Response.js +0 -123
- package/dist/model/ListDestinationBankAccounts200Response.js +0 -123
- package/dist/model/ListDestinationWalletAddresses200Response.js +0 -123
- package/dist/model/UpdateCounterpartyByIdRequest.js +0 -160
- package/dist/model/UpdateDestinationByIdRequest.js +0 -173
- package/docs/CreateCounterpartyWalletAddressRequest.md +0 -11
- package/docs/CreateDestinationBankAccountRequest.md +0 -20
- package/docs/CreateDestinationWalletAddressRequest.md +0 -11
- package/docs/DeleteCounterparty200Response.md +0 -9
- package/docs/DeleteCounterpartyWalletAddress200Response.md +0 -9
- package/docs/DeleteDestination200Response.md +0 -9
- package/docs/DeleteDestinationBankAccount200Response.md +0 -9
- package/docs/DeleteDestinationWalletAddress200Response.md +0 -9
- package/docs/EnableDestinationWhitelistRequest.md +0 -9
- package/docs/ListCounterpartyWalletAddress200Response.md +0 -10
- package/docs/ListDestinationBankAccounts200Response.md +0 -10
- package/docs/ListDestinationWalletAddresses200Response.md +0 -10
- package/docs/QueryDestinationWhitelistEnabled200Response.md +0 -9
- package/docs/UpdateCounterpartyByIdRequest.md +0 -13
- package/docs/UpdateDestinationByIdRequest.md +0 -14
package/dist/api/PaymentApi.js
CHANGED
|
@@ -18,13 +18,10 @@ var _CreateBulkSendRequest = _interopRequireDefault(require("../model/CreateBulk
|
|
|
18
18
|
var _CreateCounterpartyEntry201Response = _interopRequireDefault(require("../model/CreateCounterpartyEntry201Response"));
|
|
19
19
|
var _CreateCounterpartyEntryRequest = _interopRequireDefault(require("../model/CreateCounterpartyEntryRequest"));
|
|
20
20
|
var _CreateCounterpartyRequest = _interopRequireDefault(require("../model/CreateCounterpartyRequest"));
|
|
21
|
-
var _CreateCounterpartyWalletAddressRequest = _interopRequireDefault(require("../model/CreateCounterpartyWalletAddressRequest"));
|
|
22
21
|
var _CreateCryptoAddressRequest = _interopRequireDefault(require("../model/CreateCryptoAddressRequest"));
|
|
23
|
-
var _CreateDestinationBankAccountRequest = _interopRequireDefault(require("../model/CreateDestinationBankAccountRequest"));
|
|
24
22
|
var _CreateDestinationEntry201Response = _interopRequireDefault(require("../model/CreateDestinationEntry201Response"));
|
|
25
23
|
var _CreateDestinationEntryRequest = _interopRequireDefault(require("../model/CreateDestinationEntryRequest"));
|
|
26
24
|
var _CreateDestinationRequest = _interopRequireDefault(require("../model/CreateDestinationRequest"));
|
|
27
|
-
var _CreateDestinationWalletAddressRequest = _interopRequireDefault(require("../model/CreateDestinationWalletAddressRequest"));
|
|
28
25
|
var _CreateMerchantRequest = _interopRequireDefault(require("../model/CreateMerchantRequest"));
|
|
29
26
|
var _CreateOrderLinkRequest = _interopRequireDefault(require("../model/CreateOrderLinkRequest"));
|
|
30
27
|
var _CreatePaymentOrderRequest = _interopRequireDefault(require("../model/CreatePaymentOrderRequest"));
|
|
@@ -36,22 +33,14 @@ var _CreateSettlementRequestRequest = _interopRequireDefault(require("../model/C
|
|
|
36
33
|
var _CreateTopUpAddresses = _interopRequireDefault(require("../model/CreateTopUpAddresses"));
|
|
37
34
|
var _CreateTopUpAddresses201Response = _interopRequireDefault(require("../model/CreateTopUpAddresses201Response"));
|
|
38
35
|
var _CryptoAddress = _interopRequireDefault(require("../model/CryptoAddress"));
|
|
39
|
-
var _DeleteCounterparty200Response = _interopRequireDefault(require("../model/DeleteCounterparty200Response"));
|
|
40
36
|
var _DeleteCounterpartyById200Response = _interopRequireDefault(require("../model/DeleteCounterpartyById200Response"));
|
|
41
37
|
var _DeleteCounterpartyEntry200Response = _interopRequireDefault(require("../model/DeleteCounterpartyEntry200Response"));
|
|
42
|
-
var _DeleteCounterpartyWalletAddress200Response = _interopRequireDefault(require("../model/DeleteCounterpartyWalletAddress200Response"));
|
|
43
38
|
var _DeleteCryptoAddress201Response = _interopRequireDefault(require("../model/DeleteCryptoAddress201Response"));
|
|
44
|
-
var _DeleteDestination200Response = _interopRequireDefault(require("../model/DeleteDestination200Response"));
|
|
45
|
-
var _DeleteDestinationBankAccount200Response = _interopRequireDefault(require("../model/DeleteDestinationBankAccount200Response"));
|
|
46
39
|
var _DeleteDestinationById200Response = _interopRequireDefault(require("../model/DeleteDestinationById200Response"));
|
|
47
40
|
var _DeleteDestinationEntry200Response = _interopRequireDefault(require("../model/DeleteDestinationEntry200Response"));
|
|
48
|
-
var _DeleteDestinationWalletAddress200Response = _interopRequireDefault(require("../model/DeleteDestinationWalletAddress200Response"));
|
|
49
41
|
var _Destination = _interopRequireDefault(require("../model/Destination"));
|
|
50
|
-
var _DestinationBankAccount = _interopRequireDefault(require("../model/DestinationBankAccount"));
|
|
51
|
-
var _DestinationBankAccountDetail = _interopRequireDefault(require("../model/DestinationBankAccountDetail"));
|
|
52
42
|
var _DestinationDetail = _interopRequireDefault(require("../model/DestinationDetail"));
|
|
53
43
|
var _DestinationType = _interopRequireDefault(require("../model/DestinationType"));
|
|
54
|
-
var _EnableDestinationWhitelistRequest = _interopRequireDefault(require("../model/EnableDestinationWhitelistRequest"));
|
|
55
44
|
var _EntryType = _interopRequireDefault(require("../model/EntryType"));
|
|
56
45
|
var _ErrorResponse = _interopRequireDefault(require("../model/ErrorResponse"));
|
|
57
46
|
var _ExchangeRate = _interopRequireDefault(require("../model/ExchangeRate"));
|
|
@@ -69,10 +58,7 @@ var _ListBatchAllocations200Response = _interopRequireDefault(require("../model/
|
|
|
69
58
|
var _ListBulkSendItems200Response = _interopRequireDefault(require("../model/ListBulkSendItems200Response"));
|
|
70
59
|
var _ListCounterparties200Response = _interopRequireDefault(require("../model/ListCounterparties200Response"));
|
|
71
60
|
var _ListCounterpartyEntries200Response = _interopRequireDefault(require("../model/ListCounterpartyEntries200Response"));
|
|
72
|
-
var _ListCounterpartyWalletAddress200Response = _interopRequireDefault(require("../model/ListCounterpartyWalletAddress200Response"));
|
|
73
|
-
var _ListDestinationBankAccounts200Response = _interopRequireDefault(require("../model/ListDestinationBankAccounts200Response"));
|
|
74
61
|
var _ListDestinationEntries200Response = _interopRequireDefault(require("../model/ListDestinationEntries200Response"));
|
|
75
|
-
var _ListDestinationWalletAddresses200Response = _interopRequireDefault(require("../model/ListDestinationWalletAddresses200Response"));
|
|
76
62
|
var _ListDestinations200Response = _interopRequireDefault(require("../model/ListDestinations200Response"));
|
|
77
63
|
var _ListForcedSweepRequests200Response = _interopRequireDefault(require("../model/ListForcedSweepRequests200Response"));
|
|
78
64
|
var _ListMerchantBalances200Response = _interopRequireDefault(require("../model/ListMerchantBalances200Response"));
|
|
@@ -93,7 +79,6 @@ var _PaymentEstimateFeeRequest = _interopRequireDefault(require("../model/Paymen
|
|
|
93
79
|
var _PaymentPayout = _interopRequireDefault(require("../model/PaymentPayout"));
|
|
94
80
|
var _PaymentPayoutDetail = _interopRequireDefault(require("../model/PaymentPayoutDetail"));
|
|
95
81
|
var _PspBalance = _interopRequireDefault(require("../model/PspBalance"));
|
|
96
|
-
var _QueryDestinationWhitelistEnabled200Response = _interopRequireDefault(require("../model/QueryDestinationWhitelistEnabled200Response"));
|
|
97
82
|
var _Refund = _interopRequireDefault(require("../model/Refund"));
|
|
98
83
|
var _Report = _interopRequireDefault(require("../model/Report"));
|
|
99
84
|
var _ReportStatus = _interopRequireDefault(require("../model/ReportStatus"));
|
|
@@ -101,11 +86,10 @@ var _ReportType = _interopRequireDefault(require("../model/ReportType"));
|
|
|
101
86
|
var _Settlement = _interopRequireDefault(require("../model/Settlement"));
|
|
102
87
|
var _SupportedToken = _interopRequireDefault(require("../model/SupportedToken"));
|
|
103
88
|
var _TopUpAddress = _interopRequireDefault(require("../model/TopUpAddress"));
|
|
89
|
+
var _TriggerTestPaymentWebhookEventResponse = _interopRequireDefault(require("../model/TriggerTestPaymentWebhookEventResponse"));
|
|
90
|
+
var _TriggerTestPaymentsWebhookEventRequest = _interopRequireDefault(require("../model/TriggerTestPaymentsWebhookEventRequest"));
|
|
104
91
|
var _UpdateBankAccountByIdRequest = _interopRequireDefault(require("../model/UpdateBankAccountByIdRequest"));
|
|
105
|
-
var _UpdateCounterpartyByIdRequest = _interopRequireDefault(require("../model/UpdateCounterpartyByIdRequest"));
|
|
106
92
|
var _UpdateCounterpartyRequest = _interopRequireDefault(require("../model/UpdateCounterpartyRequest"));
|
|
107
|
-
var _UpdateDestinationBankAccount = _interopRequireDefault(require("../model/UpdateDestinationBankAccount"));
|
|
108
|
-
var _UpdateDestinationByIdRequest = _interopRequireDefault(require("../model/UpdateDestinationByIdRequest"));
|
|
109
93
|
var _UpdateDestinationEntry200Response = _interopRequireDefault(require("../model/UpdateDestinationEntry200Response"));
|
|
110
94
|
var _UpdateDestinationEntryRequest = _interopRequireDefault(require("../model/UpdateDestinationEntryRequest"));
|
|
111
95
|
var _UpdateDestinationRequest = _interopRequireDefault(require("../model/UpdateDestinationRequest"));
|
|
@@ -113,7 +97,6 @@ var _UpdateMerchantByIdRequest = _interopRequireDefault(require("../model/Update
|
|
|
113
97
|
var _UpdatePaymentOrderRequest = _interopRequireDefault(require("../model/UpdatePaymentOrderRequest"));
|
|
114
98
|
var _UpdateRefundByIdRequest = _interopRequireDefault(require("../model/UpdateRefundByIdRequest"));
|
|
115
99
|
var _UpdateTopUpAddress = _interopRequireDefault(require("../model/UpdateTopUpAddress"));
|
|
116
|
-
var _WalletAddress = _interopRequireDefault(require("../model/WalletAddress"));
|
|
117
100
|
var _WalletSetup = _interopRequireDefault(require("../model/WalletSetup"));
|
|
118
101
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
119
102
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
@@ -407,50 +390,9 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
407
390
|
});
|
|
408
391
|
}
|
|
409
392
|
|
|
410
|
-
/**
|
|
411
|
-
* Create counterparty wallet address
|
|
412
|
-
* This operation creates a counterparty wallet address.
|
|
413
|
-
* @param {Object} opts Optional parameters
|
|
414
|
-
* @param {module:model/CreateCounterpartyWalletAddressRequest} [CreateCounterpartyWalletAddressRequest] The request body to create a counterparty wallet address.
|
|
415
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/WalletAddress} and HTTP response
|
|
416
|
-
*/
|
|
417
|
-
}, {
|
|
418
|
-
key: "createCounterpartyWalletAddressWithHttpInfo",
|
|
419
|
-
value: function createCounterpartyWalletAddressWithHttpInfo(opts) {
|
|
420
|
-
opts = opts || {};
|
|
421
|
-
var postBody = opts['CreateCounterpartyWalletAddressRequest'];
|
|
422
|
-
if (postBody && postBody.toJSON) {
|
|
423
|
-
postBody = postBody.toJSON();
|
|
424
|
-
}
|
|
425
|
-
var pathParams = {};
|
|
426
|
-
var queryParams = {};
|
|
427
|
-
var headerParams = {};
|
|
428
|
-
var formParams = {};
|
|
429
|
-
var authNames = ['OAuth2', 'CoboAuth'];
|
|
430
|
-
var contentTypes = ['application/json'];
|
|
431
|
-
var accepts = ['application/json'];
|
|
432
|
-
var returnType = _WalletAddress["default"];
|
|
433
|
-
return this.apiClient.callApi('/payments/counterparty/wallet_address', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
/**
|
|
437
|
-
* Create counterparty wallet address
|
|
438
|
-
* This operation creates a counterparty wallet address.
|
|
439
|
-
* @param {Object} opts Optional parameters
|
|
440
|
-
* @param {module:model/CreateCounterpartyWalletAddressRequest} opts.CreateCounterpartyWalletAddressRequest The request body to create a counterparty wallet address.
|
|
441
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/WalletAddress}
|
|
442
|
-
*/
|
|
443
|
-
}, {
|
|
444
|
-
key: "createCounterpartyWalletAddress",
|
|
445
|
-
value: function createCounterpartyWalletAddress(opts) {
|
|
446
|
-
return this.createCounterpartyWalletAddressWithHttpInfo(opts).then(function (response_and_data) {
|
|
447
|
-
return response_and_data.data;
|
|
448
|
-
});
|
|
449
|
-
}
|
|
450
|
-
|
|
451
393
|
/**
|
|
452
394
|
* Create crypto address
|
|
453
|
-
* This operation registers a crypto address for crypto payouts. The registered address can later be referenced by its ID when creating settlement requests.
|
|
395
|
+
* <Note>This operation has been deprecated.</Note> This operation registers a crypto address for crypto payouts. The registered address can later be referenced by its ID when creating settlement requests.
|
|
454
396
|
* @param {Object} opts Optional parameters
|
|
455
397
|
* @param {module:model/CreateCryptoAddressRequest} [CreateCryptoAddressRequest] The request body to register a crypto address.
|
|
456
398
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CryptoAddress} and HTTP response
|
|
@@ -476,7 +418,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
476
418
|
|
|
477
419
|
/**
|
|
478
420
|
* Create crypto address
|
|
479
|
-
* This operation registers a crypto address for crypto payouts. The registered address can later be referenced by its ID when creating settlement requests.
|
|
421
|
+
* <Note>This operation has been deprecated.</Note> This operation registers a crypto address for crypto payouts. The registered address can later be referenced by its ID when creating settlement requests.
|
|
480
422
|
* @param {Object} opts Optional parameters
|
|
481
423
|
* @param {module:model/CreateCryptoAddressRequest} opts.CreateCryptoAddressRequest The request body to register a crypto address.
|
|
482
424
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CryptoAddress}
|
|
@@ -530,47 +472,6 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
530
472
|
});
|
|
531
473
|
}
|
|
532
474
|
|
|
533
|
-
/**
|
|
534
|
-
* Create destination bank account
|
|
535
|
-
* This operation creates a destination bank account.
|
|
536
|
-
* @param {Object} opts Optional parameters
|
|
537
|
-
* @param {module:model/CreateDestinationBankAccountRequest} [CreateDestinationBankAccountRequest] The request body to create a destination bank account.
|
|
538
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DestinationBankAccount} and HTTP response
|
|
539
|
-
*/
|
|
540
|
-
}, {
|
|
541
|
-
key: "createDestinationBankAccountWithHttpInfo",
|
|
542
|
-
value: function createDestinationBankAccountWithHttpInfo(opts) {
|
|
543
|
-
opts = opts || {};
|
|
544
|
-
var postBody = opts['CreateDestinationBankAccountRequest'];
|
|
545
|
-
if (postBody && postBody.toJSON) {
|
|
546
|
-
postBody = postBody.toJSON();
|
|
547
|
-
}
|
|
548
|
-
var pathParams = {};
|
|
549
|
-
var queryParams = {};
|
|
550
|
-
var headerParams = {};
|
|
551
|
-
var formParams = {};
|
|
552
|
-
var authNames = ['OAuth2', 'CoboAuth'];
|
|
553
|
-
var contentTypes = ['application/json'];
|
|
554
|
-
var accepts = ['application/json'];
|
|
555
|
-
var returnType = _DestinationBankAccount["default"];
|
|
556
|
-
return this.apiClient.callApi('/payments/destination/bank_account', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
/**
|
|
560
|
-
* Create destination bank account
|
|
561
|
-
* This operation creates a destination bank account.
|
|
562
|
-
* @param {Object} opts Optional parameters
|
|
563
|
-
* @param {module:model/CreateDestinationBankAccountRequest} opts.CreateDestinationBankAccountRequest The request body to create a destination bank account.
|
|
564
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DestinationBankAccount}
|
|
565
|
-
*/
|
|
566
|
-
}, {
|
|
567
|
-
key: "createDestinationBankAccount",
|
|
568
|
-
value: function createDestinationBankAccount(opts) {
|
|
569
|
-
return this.createDestinationBankAccountWithHttpInfo(opts).then(function (response_and_data) {
|
|
570
|
-
return response_and_data.data;
|
|
571
|
-
});
|
|
572
|
-
}
|
|
573
|
-
|
|
574
475
|
/**
|
|
575
476
|
* Create destination entry
|
|
576
477
|
* 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.
|
|
@@ -612,47 +513,6 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
612
513
|
});
|
|
613
514
|
}
|
|
614
515
|
|
|
615
|
-
/**
|
|
616
|
-
* Create destination wallet address
|
|
617
|
-
* This operation creates a destination wallet address.
|
|
618
|
-
* @param {Object} opts Optional parameters
|
|
619
|
-
* @param {module:model/CreateDestinationWalletAddressRequest} [CreateDestinationWalletAddressRequest] The request body to create a destination wallet address.
|
|
620
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/WalletAddress} and HTTP response
|
|
621
|
-
*/
|
|
622
|
-
}, {
|
|
623
|
-
key: "createDestinationWalletAddressWithHttpInfo",
|
|
624
|
-
value: function createDestinationWalletAddressWithHttpInfo(opts) {
|
|
625
|
-
opts = opts || {};
|
|
626
|
-
var postBody = opts['CreateDestinationWalletAddressRequest'];
|
|
627
|
-
if (postBody && postBody.toJSON) {
|
|
628
|
-
postBody = postBody.toJSON();
|
|
629
|
-
}
|
|
630
|
-
var pathParams = {};
|
|
631
|
-
var queryParams = {};
|
|
632
|
-
var headerParams = {};
|
|
633
|
-
var formParams = {};
|
|
634
|
-
var authNames = ['OAuth2', 'CoboAuth'];
|
|
635
|
-
var contentTypes = ['application/json'];
|
|
636
|
-
var accepts = ['application/json'];
|
|
637
|
-
var returnType = _WalletAddress["default"];
|
|
638
|
-
return this.apiClient.callApi('/payments/destination/wallet_address', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
639
|
-
}
|
|
640
|
-
|
|
641
|
-
/**
|
|
642
|
-
* Create destination wallet address
|
|
643
|
-
* This operation creates a destination wallet address.
|
|
644
|
-
* @param {Object} opts Optional parameters
|
|
645
|
-
* @param {module:model/CreateDestinationWalletAddressRequest} opts.CreateDestinationWalletAddressRequest The request body to create a destination wallet address.
|
|
646
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/WalletAddress}
|
|
647
|
-
*/
|
|
648
|
-
}, {
|
|
649
|
-
key: "createDestinationWalletAddress",
|
|
650
|
-
value: function createDestinationWalletAddress(opts) {
|
|
651
|
-
return this.createDestinationWalletAddressWithHttpInfo(opts).then(function (response_and_data) {
|
|
652
|
-
return response_and_data.data;
|
|
653
|
-
});
|
|
654
|
-
}
|
|
655
|
-
|
|
656
516
|
/**
|
|
657
517
|
* Create forced sweep
|
|
658
518
|
* <Warning>This operation has been deprecated.</Warning> This operation creates a forced sweep to transfer funds from addresses within a specified wallet to its designated sweep-to address.
|
|
@@ -1063,50 +923,6 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1063
923
|
});
|
|
1064
924
|
}
|
|
1065
925
|
|
|
1066
|
-
/**
|
|
1067
|
-
* Delete counterparty (Deprecated)
|
|
1068
|
-
* This operation deletes a counterparty.
|
|
1069
|
-
* @param {String} counterparty_id The counterparty ID.
|
|
1070
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteCounterparty200Response} and HTTP response
|
|
1071
|
-
*/
|
|
1072
|
-
}, {
|
|
1073
|
-
key: "deleteCounterpartyWithHttpInfo",
|
|
1074
|
-
value: function deleteCounterpartyWithHttpInfo(counterparty_id) {
|
|
1075
|
-
var postBody = null;
|
|
1076
|
-
if (postBody && postBody.toJSON) {
|
|
1077
|
-
postBody = postBody.toJSON();
|
|
1078
|
-
}
|
|
1079
|
-
// verify the required parameter 'counterparty_id' is set
|
|
1080
|
-
if (counterparty_id === undefined || counterparty_id === null) {
|
|
1081
|
-
throw new Error("Missing the required parameter 'counterparty_id' when calling deleteCounterparty");
|
|
1082
|
-
}
|
|
1083
|
-
var pathParams = {
|
|
1084
|
-
'counterparty_id': counterparty_id
|
|
1085
|
-
};
|
|
1086
|
-
var queryParams = {};
|
|
1087
|
-
var headerParams = {};
|
|
1088
|
-
var formParams = {};
|
|
1089
|
-
var authNames = ['OAuth2', 'CoboAuth'];
|
|
1090
|
-
var contentTypes = [];
|
|
1091
|
-
var accepts = ['application/json'];
|
|
1092
|
-
var returnType = _DeleteCounterparty200Response["default"];
|
|
1093
|
-
return this.apiClient.callApi('/payments/counterparty/{counterparty_id}/delete', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1094
|
-
}
|
|
1095
|
-
|
|
1096
|
-
/**
|
|
1097
|
-
* Delete counterparty (Deprecated)
|
|
1098
|
-
* This operation deletes a counterparty.
|
|
1099
|
-
* @param {String} counterparty_id The counterparty ID.
|
|
1100
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteCounterparty200Response}
|
|
1101
|
-
*/
|
|
1102
|
-
}, {
|
|
1103
|
-
key: "deleteCounterparty",
|
|
1104
|
-
value: function deleteCounterparty(counterparty_id) {
|
|
1105
|
-
return this.deleteCounterpartyWithHttpInfo(counterparty_id).then(function (response_and_data) {
|
|
1106
|
-
return response_and_data.data;
|
|
1107
|
-
});
|
|
1108
|
-
}
|
|
1109
|
-
|
|
1110
926
|
/**
|
|
1111
927
|
* Delete counterparty
|
|
1112
928
|
* This operation deletes a counterparty. Note that this operation will delete all entries under the counterparty.
|
|
@@ -1209,53 +1025,9 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1209
1025
|
});
|
|
1210
1026
|
}
|
|
1211
1027
|
|
|
1212
|
-
/**
|
|
1213
|
-
* Delete counterparty wallet address
|
|
1214
|
-
* This operation deletes a counterparty wallet address.
|
|
1215
|
-
* @param {String} wallet_address_id The wallet address ID.
|
|
1216
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteCounterpartyWalletAddress200Response} and HTTP response
|
|
1217
|
-
*/
|
|
1218
|
-
}, {
|
|
1219
|
-
key: "deleteCounterpartyWalletAddressWithHttpInfo",
|
|
1220
|
-
value: function deleteCounterpartyWalletAddressWithHttpInfo(wallet_address_id) {
|
|
1221
|
-
var postBody = null;
|
|
1222
|
-
if (postBody && postBody.toJSON) {
|
|
1223
|
-
postBody = postBody.toJSON();
|
|
1224
|
-
}
|
|
1225
|
-
// verify the required parameter 'wallet_address_id' is set
|
|
1226
|
-
if (wallet_address_id === undefined || wallet_address_id === null) {
|
|
1227
|
-
throw new Error("Missing the required parameter 'wallet_address_id' when calling deleteCounterpartyWalletAddress");
|
|
1228
|
-
}
|
|
1229
|
-
var pathParams = {
|
|
1230
|
-
'wallet_address_id': wallet_address_id
|
|
1231
|
-
};
|
|
1232
|
-
var queryParams = {};
|
|
1233
|
-
var headerParams = {};
|
|
1234
|
-
var formParams = {};
|
|
1235
|
-
var authNames = ['OAuth2', 'CoboAuth'];
|
|
1236
|
-
var contentTypes = [];
|
|
1237
|
-
var accepts = ['application/json'];
|
|
1238
|
-
var returnType = _DeleteCounterpartyWalletAddress200Response["default"];
|
|
1239
|
-
return this.apiClient.callApi('/payments/counterparty/wallet_address/{wallet_address_id}/delete', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1240
|
-
}
|
|
1241
|
-
|
|
1242
|
-
/**
|
|
1243
|
-
* Delete counterparty wallet address
|
|
1244
|
-
* This operation deletes a counterparty wallet address.
|
|
1245
|
-
* @param {String} wallet_address_id The wallet address ID.
|
|
1246
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteCounterpartyWalletAddress200Response}
|
|
1247
|
-
*/
|
|
1248
|
-
}, {
|
|
1249
|
-
key: "deleteCounterpartyWalletAddress",
|
|
1250
|
-
value: function deleteCounterpartyWalletAddress(wallet_address_id) {
|
|
1251
|
-
return this.deleteCounterpartyWalletAddressWithHttpInfo(wallet_address_id).then(function (response_and_data) {
|
|
1252
|
-
return response_and_data.data;
|
|
1253
|
-
});
|
|
1254
|
-
}
|
|
1255
|
-
|
|
1256
1028
|
/**
|
|
1257
1029
|
* Delete crypto address
|
|
1258
|
-
* This operation unregisters a crypto address from being used for crypto payouts.
|
|
1030
|
+
* <Note>This operation has been deprecated.</Note> This operation unregisters a crypto address from being used for crypto payouts.
|
|
1259
1031
|
* @param {String} crypto_address_id The crypto address ID.
|
|
1260
1032
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteCryptoAddress201Response} and HTTP response
|
|
1261
1033
|
*/
|
|
@@ -1285,7 +1057,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1285
1057
|
|
|
1286
1058
|
/**
|
|
1287
1059
|
* Delete crypto address
|
|
1288
|
-
* This operation unregisters a crypto address from being used for crypto payouts.
|
|
1060
|
+
* <Note>This operation has been deprecated.</Note> This operation unregisters a crypto address from being used for crypto payouts.
|
|
1289
1061
|
* @param {String} crypto_address_id The crypto address ID.
|
|
1290
1062
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteCryptoAddress201Response}
|
|
1291
1063
|
*/
|
|
@@ -1297,94 +1069,6 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1297
1069
|
});
|
|
1298
1070
|
}
|
|
1299
1071
|
|
|
1300
|
-
/**
|
|
1301
|
-
* Delete destination (Deprecated)
|
|
1302
|
-
* This operation deletes a destination.
|
|
1303
|
-
* @param {String} destination_id The destination ID.
|
|
1304
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteDestination200Response} and HTTP response
|
|
1305
|
-
*/
|
|
1306
|
-
}, {
|
|
1307
|
-
key: "deleteDestinationWithHttpInfo",
|
|
1308
|
-
value: function deleteDestinationWithHttpInfo(destination_id) {
|
|
1309
|
-
var postBody = null;
|
|
1310
|
-
if (postBody && postBody.toJSON) {
|
|
1311
|
-
postBody = postBody.toJSON();
|
|
1312
|
-
}
|
|
1313
|
-
// verify the required parameter 'destination_id' is set
|
|
1314
|
-
if (destination_id === undefined || destination_id === null) {
|
|
1315
|
-
throw new Error("Missing the required parameter 'destination_id' when calling deleteDestination");
|
|
1316
|
-
}
|
|
1317
|
-
var pathParams = {
|
|
1318
|
-
'destination_id': destination_id
|
|
1319
|
-
};
|
|
1320
|
-
var queryParams = {};
|
|
1321
|
-
var headerParams = {};
|
|
1322
|
-
var formParams = {};
|
|
1323
|
-
var authNames = ['OAuth2', 'CoboAuth'];
|
|
1324
|
-
var contentTypes = [];
|
|
1325
|
-
var accepts = ['application/json'];
|
|
1326
|
-
var returnType = _DeleteDestination200Response["default"];
|
|
1327
|
-
return this.apiClient.callApi('/payments/destination/{destination_id}/delete', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1328
|
-
}
|
|
1329
|
-
|
|
1330
|
-
/**
|
|
1331
|
-
* Delete destination (Deprecated)
|
|
1332
|
-
* This operation deletes a destination.
|
|
1333
|
-
* @param {String} destination_id The destination ID.
|
|
1334
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteDestination200Response}
|
|
1335
|
-
*/
|
|
1336
|
-
}, {
|
|
1337
|
-
key: "deleteDestination",
|
|
1338
|
-
value: function deleteDestination(destination_id) {
|
|
1339
|
-
return this.deleteDestinationWithHttpInfo(destination_id).then(function (response_and_data) {
|
|
1340
|
-
return response_and_data.data;
|
|
1341
|
-
});
|
|
1342
|
-
}
|
|
1343
|
-
|
|
1344
|
-
/**
|
|
1345
|
-
* Delete destination bank account
|
|
1346
|
-
* This operation deletes a destination bank account.
|
|
1347
|
-
* @param {String} bank_account_id The bank account ID.
|
|
1348
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteDestinationBankAccount200Response} and HTTP response
|
|
1349
|
-
*/
|
|
1350
|
-
}, {
|
|
1351
|
-
key: "deleteDestinationBankAccountWithHttpInfo",
|
|
1352
|
-
value: function deleteDestinationBankAccountWithHttpInfo(bank_account_id) {
|
|
1353
|
-
var postBody = null;
|
|
1354
|
-
if (postBody && postBody.toJSON) {
|
|
1355
|
-
postBody = postBody.toJSON();
|
|
1356
|
-
}
|
|
1357
|
-
// verify the required parameter 'bank_account_id' is set
|
|
1358
|
-
if (bank_account_id === undefined || bank_account_id === null) {
|
|
1359
|
-
throw new Error("Missing the required parameter 'bank_account_id' when calling deleteDestinationBankAccount");
|
|
1360
|
-
}
|
|
1361
|
-
var pathParams = {
|
|
1362
|
-
'bank_account_id': bank_account_id
|
|
1363
|
-
};
|
|
1364
|
-
var queryParams = {};
|
|
1365
|
-
var headerParams = {};
|
|
1366
|
-
var formParams = {};
|
|
1367
|
-
var authNames = ['OAuth2', 'CoboAuth'];
|
|
1368
|
-
var contentTypes = [];
|
|
1369
|
-
var accepts = ['application/json'];
|
|
1370
|
-
var returnType = _DeleteDestinationBankAccount200Response["default"];
|
|
1371
|
-
return this.apiClient.callApi('/payments/destination/bank_account/{bank_account_id}/delete', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1372
|
-
}
|
|
1373
|
-
|
|
1374
|
-
/**
|
|
1375
|
-
* Delete destination bank account
|
|
1376
|
-
* This operation deletes a destination bank account.
|
|
1377
|
-
* @param {String} bank_account_id The bank account ID.
|
|
1378
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteDestinationBankAccount200Response}
|
|
1379
|
-
*/
|
|
1380
|
-
}, {
|
|
1381
|
-
key: "deleteDestinationBankAccount",
|
|
1382
|
-
value: function deleteDestinationBankAccount(bank_account_id) {
|
|
1383
|
-
return this.deleteDestinationBankAccountWithHttpInfo(bank_account_id).then(function (response_and_data) {
|
|
1384
|
-
return response_and_data.data;
|
|
1385
|
-
});
|
|
1386
|
-
}
|
|
1387
|
-
|
|
1388
1072
|
/**
|
|
1389
1073
|
* Delete destination
|
|
1390
1074
|
* This operation deletes a destination. Note that this operation will delete all entries under the destination, including bank accounts and addresses.
|
|
@@ -1488,91 +1172,6 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1488
1172
|
});
|
|
1489
1173
|
}
|
|
1490
1174
|
|
|
1491
|
-
/**
|
|
1492
|
-
* Delete destination wallet address
|
|
1493
|
-
* This operation deletes a destination wallet address.
|
|
1494
|
-
* @param {String} wallet_address_id The wallet address ID.
|
|
1495
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteDestinationWalletAddress200Response} and HTTP response
|
|
1496
|
-
*/
|
|
1497
|
-
}, {
|
|
1498
|
-
key: "deleteDestinationWalletAddressWithHttpInfo",
|
|
1499
|
-
value: function deleteDestinationWalletAddressWithHttpInfo(wallet_address_id) {
|
|
1500
|
-
var postBody = null;
|
|
1501
|
-
if (postBody && postBody.toJSON) {
|
|
1502
|
-
postBody = postBody.toJSON();
|
|
1503
|
-
}
|
|
1504
|
-
// verify the required parameter 'wallet_address_id' is set
|
|
1505
|
-
if (wallet_address_id === undefined || wallet_address_id === null) {
|
|
1506
|
-
throw new Error("Missing the required parameter 'wallet_address_id' when calling deleteDestinationWalletAddress");
|
|
1507
|
-
}
|
|
1508
|
-
var pathParams = {
|
|
1509
|
-
'wallet_address_id': wallet_address_id
|
|
1510
|
-
};
|
|
1511
|
-
var queryParams = {};
|
|
1512
|
-
var headerParams = {};
|
|
1513
|
-
var formParams = {};
|
|
1514
|
-
var authNames = ['OAuth2', 'CoboAuth'];
|
|
1515
|
-
var contentTypes = [];
|
|
1516
|
-
var accepts = ['application/json'];
|
|
1517
|
-
var returnType = _DeleteDestinationWalletAddress200Response["default"];
|
|
1518
|
-
return this.apiClient.callApi('/payments/destination/wallet_address/{wallet_address_id}/delete', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1519
|
-
}
|
|
1520
|
-
|
|
1521
|
-
/**
|
|
1522
|
-
* Delete destination wallet address
|
|
1523
|
-
* This operation deletes a destination wallet address.
|
|
1524
|
-
* @param {String} wallet_address_id The wallet address ID.
|
|
1525
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteDestinationWalletAddress200Response}
|
|
1526
|
-
*/
|
|
1527
|
-
}, {
|
|
1528
|
-
key: "deleteDestinationWalletAddress",
|
|
1529
|
-
value: function deleteDestinationWalletAddress(wallet_address_id) {
|
|
1530
|
-
return this.deleteDestinationWalletAddressWithHttpInfo(wallet_address_id).then(function (response_and_data) {
|
|
1531
|
-
return response_and_data.data;
|
|
1532
|
-
});
|
|
1533
|
-
}
|
|
1534
|
-
|
|
1535
|
-
/**
|
|
1536
|
-
* Enable or disable destination whitelist
|
|
1537
|
-
* This operation enables or disables the whitelist for a destination.
|
|
1538
|
-
* @param {Object} opts Optional parameters
|
|
1539
|
-
* @param {module:model/EnableDestinationWhitelistRequest} [EnableDestinationWhitelistRequest] The request body to enable or disable the destination whitelist.
|
|
1540
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/QueryDestinationWhitelistEnabled200Response} and HTTP response
|
|
1541
|
-
*/
|
|
1542
|
-
}, {
|
|
1543
|
-
key: "enableDestinationWhitelistWithHttpInfo",
|
|
1544
|
-
value: function enableDestinationWhitelistWithHttpInfo(opts) {
|
|
1545
|
-
opts = opts || {};
|
|
1546
|
-
var postBody = opts['EnableDestinationWhitelistRequest'];
|
|
1547
|
-
if (postBody && postBody.toJSON) {
|
|
1548
|
-
postBody = postBody.toJSON();
|
|
1549
|
-
}
|
|
1550
|
-
var pathParams = {};
|
|
1551
|
-
var queryParams = {};
|
|
1552
|
-
var headerParams = {};
|
|
1553
|
-
var formParams = {};
|
|
1554
|
-
var authNames = ['OAuth2', 'CoboAuth'];
|
|
1555
|
-
var contentTypes = ['application/json'];
|
|
1556
|
-
var accepts = ['application/json'];
|
|
1557
|
-
var returnType = _QueryDestinationWhitelistEnabled200Response["default"];
|
|
1558
|
-
return this.apiClient.callApi('/payments/destination/enable_whitelist', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1559
|
-
}
|
|
1560
|
-
|
|
1561
|
-
/**
|
|
1562
|
-
* Enable or disable destination whitelist
|
|
1563
|
-
* This operation enables or disables the whitelist for a destination.
|
|
1564
|
-
* @param {Object} opts Optional parameters
|
|
1565
|
-
* @param {module:model/EnableDestinationWhitelistRequest} opts.EnableDestinationWhitelistRequest The request body to enable or disable the destination whitelist.
|
|
1566
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/QueryDestinationWhitelistEnabled200Response}
|
|
1567
|
-
*/
|
|
1568
|
-
}, {
|
|
1569
|
-
key: "enableDestinationWhitelist",
|
|
1570
|
-
value: function enableDestinationWhitelist(opts) {
|
|
1571
|
-
return this.enableDestinationWhitelistWithHttpInfo(opts).then(function (response_and_data) {
|
|
1572
|
-
return response_and_data.data;
|
|
1573
|
-
});
|
|
1574
|
-
}
|
|
1575
|
-
|
|
1576
1175
|
/**
|
|
1577
1176
|
* Get available allocation amount
|
|
1578
1177
|
* This operation retrieves the available amount that can be allocated from a source account to a destination account.
|
|
@@ -1763,50 +1362,6 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1763
1362
|
});
|
|
1764
1363
|
}
|
|
1765
1364
|
|
|
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
|
-
*/
|
|
1772
|
-
}, {
|
|
1773
|
-
key: "getCounterpartyDetailByIdWithHttpInfo",
|
|
1774
|
-
value: function getCounterpartyDetailByIdWithHttpInfo(counterparty_id) {
|
|
1775
|
-
var postBody = null;
|
|
1776
|
-
if (postBody && postBody.toJSON) {
|
|
1777
|
-
postBody = postBody.toJSON();
|
|
1778
|
-
}
|
|
1779
|
-
// verify the required parameter 'counterparty_id' is set
|
|
1780
|
-
if (counterparty_id === undefined || counterparty_id === null) {
|
|
1781
|
-
throw new Error("Missing the required parameter 'counterparty_id' when calling getCounterpartyDetailById");
|
|
1782
|
-
}
|
|
1783
|
-
var pathParams = {
|
|
1784
|
-
'counterparty_id': counterparty_id
|
|
1785
|
-
};
|
|
1786
|
-
var queryParams = {};
|
|
1787
|
-
var headerParams = {};
|
|
1788
|
-
var formParams = {};
|
|
1789
|
-
var authNames = ['OAuth2', 'CoboAuth'];
|
|
1790
|
-
var contentTypes = [];
|
|
1791
|
-
var accepts = ['application/json'];
|
|
1792
|
-
var returnType = _CounterpartyDetail["default"];
|
|
1793
|
-
return this.apiClient.callApi('/payments/counterparty/{counterparty_id}/detail', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1794
|
-
}
|
|
1795
|
-
|
|
1796
|
-
/**
|
|
1797
|
-
* Get counterparty information (Deprecated)
|
|
1798
|
-
* This operation retrieves the detailed information about a specified counterparty.
|
|
1799
|
-
* @param {String} counterparty_id The counterparty ID.
|
|
1800
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CounterpartyDetail}
|
|
1801
|
-
*/
|
|
1802
|
-
}, {
|
|
1803
|
-
key: "getCounterpartyDetailById",
|
|
1804
|
-
value: function getCounterpartyDetailById(counterparty_id) {
|
|
1805
|
-
return this.getCounterpartyDetailByIdWithHttpInfo(counterparty_id).then(function (response_and_data) {
|
|
1806
|
-
return response_and_data.data;
|
|
1807
|
-
});
|
|
1808
|
-
}
|
|
1809
|
-
|
|
1810
1365
|
/**
|
|
1811
1366
|
* Get counterparty entry information
|
|
1812
1367
|
* This operation retrieves the detailed information about a specified counterparty entry.
|
|
@@ -1902,94 +1457,6 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1902
1457
|
});
|
|
1903
1458
|
}
|
|
1904
1459
|
|
|
1905
|
-
/**
|
|
1906
|
-
* Get destination bank account information
|
|
1907
|
-
* This operation retrieves the detailed information about a specified destination bank account.
|
|
1908
|
-
* @param {String} bank_account_id The bank account ID.
|
|
1909
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DestinationBankAccountDetail} and HTTP response
|
|
1910
|
-
*/
|
|
1911
|
-
}, {
|
|
1912
|
-
key: "getDestinationBankAccountDetailByIdWithHttpInfo",
|
|
1913
|
-
value: function getDestinationBankAccountDetailByIdWithHttpInfo(bank_account_id) {
|
|
1914
|
-
var postBody = null;
|
|
1915
|
-
if (postBody && postBody.toJSON) {
|
|
1916
|
-
postBody = postBody.toJSON();
|
|
1917
|
-
}
|
|
1918
|
-
// verify the required parameter 'bank_account_id' is set
|
|
1919
|
-
if (bank_account_id === undefined || bank_account_id === null) {
|
|
1920
|
-
throw new Error("Missing the required parameter 'bank_account_id' when calling getDestinationBankAccountDetailById");
|
|
1921
|
-
}
|
|
1922
|
-
var pathParams = {
|
|
1923
|
-
'bank_account_id': bank_account_id
|
|
1924
|
-
};
|
|
1925
|
-
var queryParams = {};
|
|
1926
|
-
var headerParams = {};
|
|
1927
|
-
var formParams = {};
|
|
1928
|
-
var authNames = ['OAuth2', 'CoboAuth'];
|
|
1929
|
-
var contentTypes = [];
|
|
1930
|
-
var accepts = ['application/json'];
|
|
1931
|
-
var returnType = _DestinationBankAccountDetail["default"];
|
|
1932
|
-
return this.apiClient.callApi('/payments/destination/bank_account/{bank_account_id}/detail', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1933
|
-
}
|
|
1934
|
-
|
|
1935
|
-
/**
|
|
1936
|
-
* Get destination bank account information
|
|
1937
|
-
* This operation retrieves the detailed information about a specified destination bank account.
|
|
1938
|
-
* @param {String} bank_account_id The bank account ID.
|
|
1939
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DestinationBankAccountDetail}
|
|
1940
|
-
*/
|
|
1941
|
-
}, {
|
|
1942
|
-
key: "getDestinationBankAccountDetailById",
|
|
1943
|
-
value: function getDestinationBankAccountDetailById(bank_account_id) {
|
|
1944
|
-
return this.getDestinationBankAccountDetailByIdWithHttpInfo(bank_account_id).then(function (response_and_data) {
|
|
1945
|
-
return response_and_data.data;
|
|
1946
|
-
});
|
|
1947
|
-
}
|
|
1948
|
-
|
|
1949
|
-
/**
|
|
1950
|
-
* Get destination information (Deprecated)
|
|
1951
|
-
* This operation retrieves the detailed information about a specified destination.
|
|
1952
|
-
* @param {String} destination_id The destination ID.
|
|
1953
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DestinationDetail} and HTTP response
|
|
1954
|
-
*/
|
|
1955
|
-
}, {
|
|
1956
|
-
key: "getDestinationDetailByIdWithHttpInfo",
|
|
1957
|
-
value: function getDestinationDetailByIdWithHttpInfo(destination_id) {
|
|
1958
|
-
var postBody = null;
|
|
1959
|
-
if (postBody && postBody.toJSON) {
|
|
1960
|
-
postBody = postBody.toJSON();
|
|
1961
|
-
}
|
|
1962
|
-
// verify the required parameter 'destination_id' is set
|
|
1963
|
-
if (destination_id === undefined || destination_id === null) {
|
|
1964
|
-
throw new Error("Missing the required parameter 'destination_id' when calling getDestinationDetailById");
|
|
1965
|
-
}
|
|
1966
|
-
var pathParams = {
|
|
1967
|
-
'destination_id': destination_id
|
|
1968
|
-
};
|
|
1969
|
-
var queryParams = {};
|
|
1970
|
-
var headerParams = {};
|
|
1971
|
-
var formParams = {};
|
|
1972
|
-
var authNames = ['OAuth2', 'CoboAuth'];
|
|
1973
|
-
var contentTypes = [];
|
|
1974
|
-
var accepts = ['application/json'];
|
|
1975
|
-
var returnType = _DestinationDetail["default"];
|
|
1976
|
-
return this.apiClient.callApi('/payments/destination/{destination_id}/detail', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1977
|
-
}
|
|
1978
|
-
|
|
1979
|
-
/**
|
|
1980
|
-
* Get destination information (Deprecated)
|
|
1981
|
-
* This operation retrieves the detailed information about a specified destination.
|
|
1982
|
-
* @param {String} destination_id The destination ID.
|
|
1983
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DestinationDetail}
|
|
1984
|
-
*/
|
|
1985
|
-
}, {
|
|
1986
|
-
key: "getDestinationDetailById",
|
|
1987
|
-
value: function getDestinationDetailById(destination_id) {
|
|
1988
|
-
return this.getDestinationDetailByIdWithHttpInfo(destination_id).then(function (response_and_data) {
|
|
1989
|
-
return response_and_data.data;
|
|
1990
|
-
});
|
|
1991
|
-
}
|
|
1992
|
-
|
|
1993
1460
|
/**
|
|
1994
1461
|
* Get destination entry information
|
|
1995
1462
|
* This operation retrieves the detailed information about a specified destination entry.
|
|
@@ -2762,116 +2229,56 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2762
2229
|
var queryParams = {
|
|
2763
2230
|
'limit': opts['limit'],
|
|
2764
2231
|
'before': opts['before'],
|
|
2765
|
-
'after': opts['after'],
|
|
2766
|
-
'keyword': opts['keyword'],
|
|
2767
|
-
'counterparty_type': opts['counterparty_type'],
|
|
2768
|
-
'country': opts['country']
|
|
2769
|
-
};
|
|
2770
|
-
var headerParams = {};
|
|
2771
|
-
var formParams = {};
|
|
2772
|
-
var authNames = ['OAuth2', 'CoboAuth'];
|
|
2773
|
-
var contentTypes = [];
|
|
2774
|
-
var accepts = ['application/json'];
|
|
2775
|
-
var returnType = _ListCounterparties200Response["default"];
|
|
2776
|
-
return this.apiClient.callApi('/payments/counterparty', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
2777
|
-
}
|
|
2778
|
-
|
|
2779
|
-
/**
|
|
2780
|
-
* List all counterparties
|
|
2781
|
-
* This operation retrieves the information of all counterparties. You can filter the results by using a keyword for fuzzy search on counterparty names.
|
|
2782
|
-
* @param {Object} opts Optional parameters
|
|
2783
|
-
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
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.
|
|
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.
|
|
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.
|
|
2789
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListCounterparties200Response}
|
|
2790
|
-
*/
|
|
2791
|
-
}, {
|
|
2792
|
-
key: "listCounterparties",
|
|
2793
|
-
value: function listCounterparties(opts) {
|
|
2794
|
-
return this.listCounterpartiesWithHttpInfo(opts).then(function (response_and_data) {
|
|
2795
|
-
return response_and_data.data;
|
|
2796
|
-
});
|
|
2797
|
-
}
|
|
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']
|
|
2232
|
+
'after': opts['after'],
|
|
2233
|
+
'keyword': opts['keyword'],
|
|
2234
|
+
'counterparty_type': opts['counterparty_type'],
|
|
2235
|
+
'country': opts['country']
|
|
2829
2236
|
};
|
|
2830
2237
|
var headerParams = {};
|
|
2831
2238
|
var formParams = {};
|
|
2832
2239
|
var authNames = ['OAuth2', 'CoboAuth'];
|
|
2833
2240
|
var contentTypes = [];
|
|
2834
2241
|
var accepts = ['application/json'];
|
|
2835
|
-
var returnType =
|
|
2836
|
-
return this.apiClient.callApi('/payments/
|
|
2242
|
+
var returnType = _ListCounterparties200Response["default"];
|
|
2243
|
+
return this.apiClient.callApi('/payments/counterparty', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
2837
2244
|
}
|
|
2838
2245
|
|
|
2839
2246
|
/**
|
|
2840
|
-
* List
|
|
2841
|
-
* This operation retrieves the information of counterparty
|
|
2247
|
+
* List all counterparties
|
|
2248
|
+
* This operation retrieves the information of all counterparties. You can filter the results by using a keyword for fuzzy search on counterparty names.
|
|
2842
2249
|
* @param {Object} opts Optional parameters
|
|
2843
2250
|
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
2844
2251
|
* @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
2252
|
* @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 {
|
|
2847
|
-
* @param {
|
|
2848
|
-
* @param {String} opts.
|
|
2849
|
-
* @
|
|
2850
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListCounterpartyEntries200Response}
|
|
2253
|
+
* @param {String} opts.keyword A search term for performing fuzzy matches in the search query.
|
|
2254
|
+
* @param {module:model/CounterpartyType} opts.counterparty_type The type of the counterparty. - `Individual`: The counterparty is an individual. - `Organization`: The counterparty is an organization.
|
|
2255
|
+
* @param {String} opts.country Country code, in ISO 3166-1 alpha-3 format.
|
|
2256
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListCounterparties200Response}
|
|
2851
2257
|
*/
|
|
2852
2258
|
}, {
|
|
2853
|
-
key: "
|
|
2854
|
-
value: function
|
|
2855
|
-
return this.
|
|
2259
|
+
key: "listCounterparties",
|
|
2260
|
+
value: function listCounterparties(opts) {
|
|
2261
|
+
return this.listCounterpartiesWithHttpInfo(opts).then(function (response_and_data) {
|
|
2856
2262
|
return response_and_data.data;
|
|
2857
2263
|
});
|
|
2858
2264
|
}
|
|
2859
2265
|
|
|
2860
2266
|
/**
|
|
2861
|
-
* List counterparty
|
|
2862
|
-
* This operation retrieves the information of counterparty
|
|
2267
|
+
* List counterparty entries
|
|
2268
|
+
* This operation retrieves the information of counterparty entries.
|
|
2863
2269
|
* @param {Object} opts Optional parameters
|
|
2864
2270
|
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
2865
2271
|
* @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.
|
|
2866
2272
|
* @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.
|
|
2273
|
+
* @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.
|
|
2867
2274
|
* @param {String} [counterparty_id] The counterparty ID.
|
|
2868
2275
|
* @param {String} [chain_ids] The chain ID, which is the unique identifier of a blockchain.
|
|
2869
2276
|
* @param {String} [wallet_address] The wallet address.
|
|
2870
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/
|
|
2277
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListCounterpartyEntries200Response} and HTTP response
|
|
2871
2278
|
*/
|
|
2872
2279
|
}, {
|
|
2873
|
-
key: "
|
|
2874
|
-
value: function
|
|
2280
|
+
key: "listCounterpartyEntriesWithHttpInfo",
|
|
2281
|
+
value: function listCounterpartyEntriesWithHttpInfo(opts) {
|
|
2875
2282
|
opts = opts || {};
|
|
2876
2283
|
var postBody = null;
|
|
2877
2284
|
if (postBody && postBody.toJSON) {
|
|
@@ -2882,6 +2289,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2882
2289
|
'limit': opts['limit'],
|
|
2883
2290
|
'before': opts['before'],
|
|
2884
2291
|
'after': opts['after'],
|
|
2292
|
+
'entry_type': opts['entry_type'],
|
|
2885
2293
|
'counterparty_id': opts['counterparty_id'],
|
|
2886
2294
|
'chain_ids': opts['chain_ids'],
|
|
2887
2295
|
'wallet_address': opts['wallet_address']
|
|
@@ -2891,33 +2299,34 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2891
2299
|
var authNames = ['OAuth2', 'CoboAuth'];
|
|
2892
2300
|
var contentTypes = [];
|
|
2893
2301
|
var accepts = ['application/json'];
|
|
2894
|
-
var returnType =
|
|
2895
|
-
return this.apiClient.callApi('/payments/
|
|
2302
|
+
var returnType = _ListCounterpartyEntries200Response["default"];
|
|
2303
|
+
return this.apiClient.callApi('/payments/counterparty_entry', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
2896
2304
|
}
|
|
2897
2305
|
|
|
2898
2306
|
/**
|
|
2899
|
-
* List counterparty
|
|
2900
|
-
* This operation retrieves the information of counterparty
|
|
2307
|
+
* List counterparty entries
|
|
2308
|
+
* This operation retrieves the information of counterparty entries.
|
|
2901
2309
|
* @param {Object} opts Optional parameters
|
|
2902
2310
|
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
2903
2311
|
* @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.
|
|
2904
2312
|
* @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.
|
|
2313
|
+
* @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.
|
|
2905
2314
|
* @param {String} opts.counterparty_id The counterparty ID.
|
|
2906
2315
|
* @param {String} opts.chain_ids The chain ID, which is the unique identifier of a blockchain.
|
|
2907
2316
|
* @param {String} opts.wallet_address The wallet address.
|
|
2908
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/
|
|
2317
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListCounterpartyEntries200Response}
|
|
2909
2318
|
*/
|
|
2910
2319
|
}, {
|
|
2911
|
-
key: "
|
|
2912
|
-
value: function
|
|
2913
|
-
return this.
|
|
2320
|
+
key: "listCounterpartyEntries",
|
|
2321
|
+
value: function listCounterpartyEntries(opts) {
|
|
2322
|
+
return this.listCounterpartyEntriesWithHttpInfo(opts).then(function (response_and_data) {
|
|
2914
2323
|
return response_and_data.data;
|
|
2915
2324
|
});
|
|
2916
2325
|
}
|
|
2917
2326
|
|
|
2918
2327
|
/**
|
|
2919
2328
|
* List crypto addresses
|
|
2920
|
-
* This operation retrieves a list of crypto addresses registered for crypto payouts. Contact our support team at [help@cobo.com](mailto:help@cobo.com) to register a new crypto address.
|
|
2329
|
+
* <Note>This operation has been deprecated.</Note> This operation retrieves a list of crypto addresses registered for crypto payouts. Contact our support team at [help@cobo.com](mailto:help@cobo.com) to register a new crypto address.
|
|
2921
2330
|
* @param {Object} opts Optional parameters
|
|
2922
2331
|
* @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`
|
|
2923
2332
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/CryptoAddress>} and HTTP response
|
|
@@ -2945,7 +2354,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2945
2354
|
|
|
2946
2355
|
/**
|
|
2947
2356
|
* List crypto addresses
|
|
2948
|
-
* This operation retrieves a list of crypto addresses registered for crypto payouts. Contact our support team at [help@cobo.com](mailto:help@cobo.com) to register a new crypto address.
|
|
2357
|
+
* <Note>This operation has been deprecated.</Note> This operation retrieves a list of crypto addresses registered for crypto payouts. Contact our support team at [help@cobo.com](mailto:help@cobo.com) to register a new crypto address.
|
|
2949
2358
|
* @param {Object} opts Optional parameters
|
|
2950
2359
|
* @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`
|
|
2951
2360
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/CryptoAddress>}
|
|
@@ -2958,64 +2367,6 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2958
2367
|
});
|
|
2959
2368
|
}
|
|
2960
2369
|
|
|
2961
|
-
/**
|
|
2962
|
-
* List destination bank accounts
|
|
2963
|
-
* This operation retrieves the information of destination bank accounts.
|
|
2964
|
-
* @param {Object} opts Optional parameters
|
|
2965
|
-
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
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.
|
|
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.
|
|
2968
|
-
* @param {String} [keyword] A search term for performing fuzzy matches in the search query.
|
|
2969
|
-
* @param {String} [destination_id] The destination ID.
|
|
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.
|
|
2971
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListDestinationBankAccounts200Response} and HTTP response
|
|
2972
|
-
*/
|
|
2973
|
-
}, {
|
|
2974
|
-
key: "listDestinationBankAccountsWithHttpInfo",
|
|
2975
|
-
value: function listDestinationBankAccountsWithHttpInfo(opts) {
|
|
2976
|
-
opts = opts || {};
|
|
2977
|
-
var postBody = null;
|
|
2978
|
-
if (postBody && postBody.toJSON) {
|
|
2979
|
-
postBody = postBody.toJSON();
|
|
2980
|
-
}
|
|
2981
|
-
var pathParams = {};
|
|
2982
|
-
var queryParams = {
|
|
2983
|
-
'limit': opts['limit'],
|
|
2984
|
-
'before': opts['before'],
|
|
2985
|
-
'after': opts['after'],
|
|
2986
|
-
'keyword': opts['keyword'],
|
|
2987
|
-
'destination_id': opts['destination_id'],
|
|
2988
|
-
'bank_account_status': opts['bank_account_status']
|
|
2989
|
-
};
|
|
2990
|
-
var headerParams = {};
|
|
2991
|
-
var formParams = {};
|
|
2992
|
-
var authNames = ['OAuth2', 'CoboAuth'];
|
|
2993
|
-
var contentTypes = [];
|
|
2994
|
-
var accepts = ['application/json'];
|
|
2995
|
-
var returnType = _ListDestinationBankAccounts200Response["default"];
|
|
2996
|
-
return this.apiClient.callApi('/payments/destination/bank_account', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
2997
|
-
}
|
|
2998
|
-
|
|
2999
|
-
/**
|
|
3000
|
-
* List destination bank accounts
|
|
3001
|
-
* This operation retrieves the information of destination bank accounts.
|
|
3002
|
-
* @param {Object} opts Optional parameters
|
|
3003
|
-
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
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.
|
|
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.
|
|
3006
|
-
* @param {String} opts.keyword A search term for performing fuzzy matches in the search query.
|
|
3007
|
-
* @param {String} opts.destination_id The destination ID.
|
|
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.
|
|
3009
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListDestinationBankAccounts200Response}
|
|
3010
|
-
*/
|
|
3011
|
-
}, {
|
|
3012
|
-
key: "listDestinationBankAccounts",
|
|
3013
|
-
value: function listDestinationBankAccounts(opts) {
|
|
3014
|
-
return this.listDestinationBankAccountsWithHttpInfo(opts).then(function (response_and_data) {
|
|
3015
|
-
return response_and_data.data;
|
|
3016
|
-
});
|
|
3017
|
-
}
|
|
3018
|
-
|
|
3019
2370
|
/**
|
|
3020
2371
|
* List destination entries
|
|
3021
2372
|
* This operation retrieves the information of destination entries.
|
|
@@ -3087,64 +2438,6 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
3087
2438
|
});
|
|
3088
2439
|
}
|
|
3089
2440
|
|
|
3090
|
-
/**
|
|
3091
|
-
* List destination wallet addresses
|
|
3092
|
-
* This operation retrieves the information of destination wallet addresses.
|
|
3093
|
-
* @param {Object} opts Optional parameters
|
|
3094
|
-
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
3095
|
-
* @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.
|
|
3096
|
-
* @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.
|
|
3097
|
-
* @param {String} [destination_id] The destination ID.
|
|
3098
|
-
* @param {String} [chain_ids] The chain ID, which is the unique identifier of a blockchain.
|
|
3099
|
-
* @param {String} [wallet_address] The wallet address.
|
|
3100
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListDestinationWalletAddresses200Response} and HTTP response
|
|
3101
|
-
*/
|
|
3102
|
-
}, {
|
|
3103
|
-
key: "listDestinationWalletAddressesWithHttpInfo",
|
|
3104
|
-
value: function listDestinationWalletAddressesWithHttpInfo(opts) {
|
|
3105
|
-
opts = opts || {};
|
|
3106
|
-
var postBody = null;
|
|
3107
|
-
if (postBody && postBody.toJSON) {
|
|
3108
|
-
postBody = postBody.toJSON();
|
|
3109
|
-
}
|
|
3110
|
-
var pathParams = {};
|
|
3111
|
-
var queryParams = {
|
|
3112
|
-
'limit': opts['limit'],
|
|
3113
|
-
'before': opts['before'],
|
|
3114
|
-
'after': opts['after'],
|
|
3115
|
-
'destination_id': opts['destination_id'],
|
|
3116
|
-
'chain_ids': opts['chain_ids'],
|
|
3117
|
-
'wallet_address': opts['wallet_address']
|
|
3118
|
-
};
|
|
3119
|
-
var headerParams = {};
|
|
3120
|
-
var formParams = {};
|
|
3121
|
-
var authNames = ['OAuth2', 'CoboAuth'];
|
|
3122
|
-
var contentTypes = [];
|
|
3123
|
-
var accepts = ['application/json'];
|
|
3124
|
-
var returnType = _ListDestinationWalletAddresses200Response["default"];
|
|
3125
|
-
return this.apiClient.callApi('/payments/destination/wallet_address', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
3126
|
-
}
|
|
3127
|
-
|
|
3128
|
-
/**
|
|
3129
|
-
* List destination wallet addresses
|
|
3130
|
-
* This operation retrieves the information of destination wallet addresses.
|
|
3131
|
-
* @param {Object} opts Optional parameters
|
|
3132
|
-
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
3133
|
-
* @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.
|
|
3134
|
-
* @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.
|
|
3135
|
-
* @param {String} opts.destination_id The destination ID.
|
|
3136
|
-
* @param {String} opts.chain_ids The chain ID, which is the unique identifier of a blockchain.
|
|
3137
|
-
* @param {String} opts.wallet_address The wallet address.
|
|
3138
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListDestinationWalletAddresses200Response}
|
|
3139
|
-
*/
|
|
3140
|
-
}, {
|
|
3141
|
-
key: "listDestinationWalletAddresses",
|
|
3142
|
-
value: function listDestinationWalletAddresses(opts) {
|
|
3143
|
-
return this.listDestinationWalletAddressesWithHttpInfo(opts).then(function (response_and_data) {
|
|
3144
|
-
return response_and_data.data;
|
|
3145
|
-
});
|
|
3146
|
-
}
|
|
3147
|
-
|
|
3148
2441
|
/**
|
|
3149
2442
|
* List all destinations
|
|
3150
2443
|
* This operation retrieves the information of all destinations. You can filter the results by using a keyword for fuzzy search on destination names.
|
|
@@ -3260,29 +2553,25 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
3260
2553
|
|
|
3261
2554
|
/**
|
|
3262
2555
|
* List merchant balances
|
|
3263
|
-
*
|
|
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`
|
|
2556
|
+
* This operation retrieves merchant balance information. You need to specify at least one of `merchant_ids` or `token_id` to filter the results. <Note>Do not pass `acquiring_type` for this operation.</Note> For more information, refer to [Cobo Payments Guide](https://www.cobo.com/payments/en/guides/overview).
|
|
3265
2557
|
* @param {Object} opts Optional parameters
|
|
3266
|
-
* @param {String} [merchant_ids]
|
|
2558
|
+
* @param {String} [merchant_ids] The comma-separated list of merchant IDs to filter by. At least one of `merchant_ids` or `token_id` must be provided. For more information about merchants, refer to [Cobo Payments Guide](https://www.cobo.com/payments/en/guides/overview).
|
|
2559
|
+
* @param {String} [token_id] The token ID that identifies the cryptocurrency. At least one of `merchant_ids` or `token_id` must be provided. For a complete list of supported tokens, refer to [Cobo Payments Guide](https://www.cobo.com/payments/en/guides/overview).
|
|
3267
2560
|
* @param {module:model/AcquiringType} [acquiring_type] This parameter has been deprecated
|
|
3268
2561
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListMerchantBalances200Response} and HTTP response
|
|
3269
2562
|
*/
|
|
3270
2563
|
}, {
|
|
3271
2564
|
key: "listMerchantBalancesWithHttpInfo",
|
|
3272
|
-
value: function listMerchantBalancesWithHttpInfo(
|
|
2565
|
+
value: function listMerchantBalancesWithHttpInfo(opts) {
|
|
3273
2566
|
opts = opts || {};
|
|
3274
2567
|
var postBody = null;
|
|
3275
2568
|
if (postBody && postBody.toJSON) {
|
|
3276
2569
|
postBody = postBody.toJSON();
|
|
3277
2570
|
}
|
|
3278
|
-
// verify the required parameter 'token_id' is set
|
|
3279
|
-
if (token_id === undefined || token_id === null) {
|
|
3280
|
-
throw new Error("Missing the required parameter 'token_id' when calling listMerchantBalances");
|
|
3281
|
-
}
|
|
3282
2571
|
var pathParams = {};
|
|
3283
2572
|
var queryParams = {
|
|
3284
2573
|
'merchant_ids': opts['merchant_ids'],
|
|
3285
|
-
'token_id': token_id,
|
|
2574
|
+
'token_id': opts['token_id'],
|
|
3286
2575
|
'acquiring_type': opts['acquiring_type']
|
|
3287
2576
|
};
|
|
3288
2577
|
var headerParams = {};
|
|
@@ -3296,17 +2585,17 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
3296
2585
|
|
|
3297
2586
|
/**
|
|
3298
2587
|
* List merchant balances
|
|
3299
|
-
*
|
|
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`
|
|
2588
|
+
* This operation retrieves merchant balance information. You need to specify at least one of `merchant_ids` or `token_id` to filter the results. <Note>Do not pass `acquiring_type` for this operation.</Note> For more information, refer to [Cobo Payments Guide](https://www.cobo.com/payments/en/guides/overview).
|
|
3301
2589
|
* @param {Object} opts Optional parameters
|
|
3302
|
-
* @param {String} opts.merchant_ids
|
|
2590
|
+
* @param {String} opts.merchant_ids The comma-separated list of merchant IDs to filter by. At least one of `merchant_ids` or `token_id` must be provided. For more information about merchants, refer to [Cobo Payments Guide](https://www.cobo.com/payments/en/guides/overview).
|
|
2591
|
+
* @param {String} opts.token_id The token ID that identifies the cryptocurrency. At least one of `merchant_ids` or `token_id` must be provided. For a complete list of supported tokens, refer to [Cobo Payments Guide](https://www.cobo.com/payments/en/guides/overview).
|
|
3303
2592
|
* @param {module:model/AcquiringType} opts.acquiring_type This parameter has been deprecated
|
|
3304
2593
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListMerchantBalances200Response}
|
|
3305
2594
|
*/
|
|
3306
2595
|
}, {
|
|
3307
2596
|
key: "listMerchantBalances",
|
|
3308
|
-
value: function listMerchantBalances(
|
|
3309
|
-
return this.listMerchantBalancesWithHttpInfo(
|
|
2597
|
+
value: function listMerchantBalances(opts) {
|
|
2598
|
+
return this.listMerchantBalancesWithHttpInfo(opts).then(function (response_and_data) {
|
|
3310
2599
|
return response_and_data.data;
|
|
3311
2600
|
});
|
|
3312
2601
|
}
|
|
@@ -3428,8 +2717,8 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
3428
2717
|
}
|
|
3429
2718
|
|
|
3430
2719
|
/**
|
|
3431
|
-
* List
|
|
3432
|
-
* This operation retrieves
|
|
2720
|
+
* List supported tokens
|
|
2721
|
+
* This operation retrieves all tokens supported by Cobo Payments. Use this operation to get token details such as token ID, symbol, decimal precision, contract address, and chain information before creating payment orders. For more information about Cobo Payments, see [Cobo Payments Overview](https://www.cobo.com/payments/en/guides/overview).
|
|
3433
2722
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/SupportedToken>} and HTTP response
|
|
3434
2723
|
*/
|
|
3435
2724
|
}, {
|
|
@@ -3451,8 +2740,8 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
3451
2740
|
}
|
|
3452
2741
|
|
|
3453
2742
|
/**
|
|
3454
|
-
* List
|
|
3455
|
-
* This operation retrieves
|
|
2743
|
+
* List supported tokens
|
|
2744
|
+
* This operation retrieves all tokens supported by Cobo Payments. Use this operation to get token details such as token ID, symbol, decimal precision, contract address, and chain information before creating payment orders. For more information about Cobo Payments, see [Cobo Payments Overview](https://www.cobo.com/payments/en/guides/overview).
|
|
3456
2745
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/SupportedToken>}
|
|
3457
2746
|
*/
|
|
3458
2747
|
}, {
|
|
@@ -3824,14 +3113,17 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
3824
3113
|
}
|
|
3825
3114
|
|
|
3826
3115
|
/**
|
|
3827
|
-
*
|
|
3828
|
-
* This operation
|
|
3829
|
-
* @
|
|
3116
|
+
* Trigger test webhook event
|
|
3117
|
+
* This operation tests the functionality of your Payments webhook endpoint by triggering a test webhook event. The test event is sent to all endpoints you have registered on Cobo Portal. You need to specify the event type. By default, the payload contains dummy data with no impact on your real business transactions or activities. You can optionally provide the `override_data` property to customize the payload. For more information about Payments webhooks, see [Cobo Payments Guide](https://www.cobo.com/payments/en/guides/overview). For webhook event types and payload structure, refer to [List all webhook events](https://www.cobo.com/developers/v2/api-references/developers--webhooks/list-all-webhook-events).
|
|
3118
|
+
* @param {Object} opts Optional parameters
|
|
3119
|
+
* @param {module:model/TriggerTestPaymentsWebhookEventRequest} [TriggerTestPaymentsWebhookEventRequest] The request body used to trigger a test Payments webhook event. You need to specify the event type. You can optionally include the `override_data` property to customize the payload. The provided fields must match the webhook event data structure for the specified event type.
|
|
3120
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TriggerTestPaymentWebhookEventResponse} and HTTP response
|
|
3830
3121
|
*/
|
|
3831
3122
|
}, {
|
|
3832
|
-
key: "
|
|
3833
|
-
value: function
|
|
3834
|
-
|
|
3123
|
+
key: "triggerTestPaymentsWebhookEventWithHttpInfo",
|
|
3124
|
+
value: function triggerTestPaymentsWebhookEventWithHttpInfo(opts) {
|
|
3125
|
+
opts = opts || {};
|
|
3126
|
+
var postBody = opts['TriggerTestPaymentsWebhookEventRequest'];
|
|
3835
3127
|
if (postBody && postBody.toJSON) {
|
|
3836
3128
|
postBody = postBody.toJSON();
|
|
3837
3129
|
}
|
|
@@ -3839,29 +3131,31 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
3839
3131
|
var queryParams = {};
|
|
3840
3132
|
var headerParams = {};
|
|
3841
3133
|
var formParams = {};
|
|
3842
|
-
var authNames = ['
|
|
3843
|
-
var contentTypes = [];
|
|
3134
|
+
var authNames = ['CoboAuth'];
|
|
3135
|
+
var contentTypes = ['application/json'];
|
|
3844
3136
|
var accepts = ['application/json'];
|
|
3845
|
-
var returnType =
|
|
3846
|
-
return this.apiClient.callApi('/payments/
|
|
3137
|
+
var returnType = _TriggerTestPaymentWebhookEventResponse["default"];
|
|
3138
|
+
return this.apiClient.callApi('/payments/webhooks/trigger', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
3847
3139
|
}
|
|
3848
3140
|
|
|
3849
3141
|
/**
|
|
3850
|
-
*
|
|
3851
|
-
* This operation
|
|
3852
|
-
* @
|
|
3142
|
+
* Trigger test webhook event
|
|
3143
|
+
* This operation tests the functionality of your Payments webhook endpoint by triggering a test webhook event. The test event is sent to all endpoints you have registered on Cobo Portal. You need to specify the event type. By default, the payload contains dummy data with no impact on your real business transactions or activities. You can optionally provide the `override_data` property to customize the payload. For more information about Payments webhooks, see [Cobo Payments Guide](https://www.cobo.com/payments/en/guides/overview). For webhook event types and payload structure, refer to [List all webhook events](https://www.cobo.com/developers/v2/api-references/developers--webhooks/list-all-webhook-events).
|
|
3144
|
+
* @param {Object} opts Optional parameters
|
|
3145
|
+
* @param {module:model/TriggerTestPaymentsWebhookEventRequest} opts.TriggerTestPaymentsWebhookEventRequest The request body used to trigger a test Payments webhook event. You need to specify the event type. You can optionally include the `override_data` property to customize the payload. The provided fields must match the webhook event data structure for the specified event type.
|
|
3146
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TriggerTestPaymentWebhookEventResponse}
|
|
3853
3147
|
*/
|
|
3854
3148
|
}, {
|
|
3855
|
-
key: "
|
|
3856
|
-
value: function
|
|
3857
|
-
return this.
|
|
3149
|
+
key: "triggerTestPaymentsWebhookEvent",
|
|
3150
|
+
value: function triggerTestPaymentsWebhookEvent(opts) {
|
|
3151
|
+
return this.triggerTestPaymentsWebhookEventWithHttpInfo(opts).then(function (response_and_data) {
|
|
3858
3152
|
return response_and_data.data;
|
|
3859
3153
|
});
|
|
3860
3154
|
}
|
|
3861
3155
|
|
|
3862
3156
|
/**
|
|
3863
3157
|
* Update bank account
|
|
3864
|
-
* This operation updates the information of an existing bank account.
|
|
3158
|
+
* <Note>This operation has been deprecated.</Note> This operation updates the information of an existing bank account.
|
|
3865
3159
|
* @param {String} bank_account_id The bank account ID.
|
|
3866
3160
|
* @param {Object} opts Optional parameters
|
|
3867
3161
|
* @param {module:model/UpdateBankAccountByIdRequest} [UpdateBankAccountByIdRequest] The request body for updating an existing bank account.
|
|
@@ -3894,7 +3188,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
3894
3188
|
|
|
3895
3189
|
/**
|
|
3896
3190
|
* Update bank account
|
|
3897
|
-
* This operation updates the information of an existing bank account.
|
|
3191
|
+
* <Note>This operation has been deprecated.</Note> This operation updates the information of an existing bank account.
|
|
3898
3192
|
* @param {String} bank_account_id The bank account ID.
|
|
3899
3193
|
* @param {Object} opts Optional parameters
|
|
3900
3194
|
* @param {module:model/UpdateBankAccountByIdRequest} opts.UpdateBankAccountByIdRequest The request body for updating an existing bank account.
|
|
@@ -3957,55 +3251,6 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
3957
3251
|
});
|
|
3958
3252
|
}
|
|
3959
3253
|
|
|
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
|
|
3965
|
-
* @param {module:model/UpdateCounterpartyByIdRequest} [UpdateCounterpartyByIdRequest] The request body to update a counterparty.
|
|
3966
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Counterparty} and HTTP response
|
|
3967
|
-
*/
|
|
3968
|
-
}, {
|
|
3969
|
-
key: "updateCounterpartyByIdWithHttpInfo",
|
|
3970
|
-
value: function updateCounterpartyByIdWithHttpInfo(counterparty_id, opts) {
|
|
3971
|
-
opts = opts || {};
|
|
3972
|
-
var postBody = opts['UpdateCounterpartyByIdRequest'];
|
|
3973
|
-
if (postBody && postBody.toJSON) {
|
|
3974
|
-
postBody = postBody.toJSON();
|
|
3975
|
-
}
|
|
3976
|
-
// verify the required parameter 'counterparty_id' is set
|
|
3977
|
-
if (counterparty_id === undefined || counterparty_id === null) {
|
|
3978
|
-
throw new Error("Missing the required parameter 'counterparty_id' when calling updateCounterpartyById");
|
|
3979
|
-
}
|
|
3980
|
-
var pathParams = {
|
|
3981
|
-
'counterparty_id': counterparty_id
|
|
3982
|
-
};
|
|
3983
|
-
var queryParams = {};
|
|
3984
|
-
var headerParams = {};
|
|
3985
|
-
var formParams = {};
|
|
3986
|
-
var authNames = ['OAuth2', 'CoboAuth'];
|
|
3987
|
-
var contentTypes = ['application/json'];
|
|
3988
|
-
var accepts = ['application/json'];
|
|
3989
|
-
var returnType = _Counterparty["default"];
|
|
3990
|
-
return this.apiClient.callApi('/payments/counterparty/{counterparty_id}/update', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
3991
|
-
}
|
|
3992
|
-
|
|
3993
|
-
/**
|
|
3994
|
-
* Update counterparty (Deprecated)
|
|
3995
|
-
* This operation updates the information of a specified counterparty.
|
|
3996
|
-
* @param {String} counterparty_id The counterparty ID.
|
|
3997
|
-
* @param {Object} opts Optional parameters
|
|
3998
|
-
* @param {module:model/UpdateCounterpartyByIdRequest} opts.UpdateCounterpartyByIdRequest The request body to update a counterparty.
|
|
3999
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Counterparty}
|
|
4000
|
-
*/
|
|
4001
|
-
}, {
|
|
4002
|
-
key: "updateCounterpartyById",
|
|
4003
|
-
value: function updateCounterpartyById(counterparty_id, opts) {
|
|
4004
|
-
return this.updateCounterpartyByIdWithHttpInfo(counterparty_id, opts).then(function (response_and_data) {
|
|
4005
|
-
return response_and_data.data;
|
|
4006
|
-
});
|
|
4007
|
-
}
|
|
4008
|
-
|
|
4009
3254
|
/**
|
|
4010
3255
|
* Update destination
|
|
4011
3256
|
* This operation updates the information of a specified destination.
|
|
@@ -4055,104 +3300,6 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
4055
3300
|
});
|
|
4056
3301
|
}
|
|
4057
3302
|
|
|
4058
|
-
/**
|
|
4059
|
-
* Update destination bank account
|
|
4060
|
-
* This operation updates the information of a specified destination bank account.
|
|
4061
|
-
* @param {String} bank_account_id The bank account ID.
|
|
4062
|
-
* @param {Object} opts Optional parameters
|
|
4063
|
-
* @param {module:model/UpdateDestinationBankAccount} [UpdateDestinationBankAccount] The request body to update a destination bank account.
|
|
4064
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DestinationBankAccount} and HTTP response
|
|
4065
|
-
*/
|
|
4066
|
-
}, {
|
|
4067
|
-
key: "updateDestinationBankAccountByIdWithHttpInfo",
|
|
4068
|
-
value: function updateDestinationBankAccountByIdWithHttpInfo(bank_account_id, opts) {
|
|
4069
|
-
opts = opts || {};
|
|
4070
|
-
var postBody = opts['UpdateDestinationBankAccount'];
|
|
4071
|
-
if (postBody && postBody.toJSON) {
|
|
4072
|
-
postBody = postBody.toJSON();
|
|
4073
|
-
}
|
|
4074
|
-
// verify the required parameter 'bank_account_id' is set
|
|
4075
|
-
if (bank_account_id === undefined || bank_account_id === null) {
|
|
4076
|
-
throw new Error("Missing the required parameter 'bank_account_id' when calling updateDestinationBankAccountById");
|
|
4077
|
-
}
|
|
4078
|
-
var pathParams = {
|
|
4079
|
-
'bank_account_id': bank_account_id
|
|
4080
|
-
};
|
|
4081
|
-
var queryParams = {};
|
|
4082
|
-
var headerParams = {};
|
|
4083
|
-
var formParams = {};
|
|
4084
|
-
var authNames = ['OAuth2', 'CoboAuth'];
|
|
4085
|
-
var contentTypes = ['application/json'];
|
|
4086
|
-
var accepts = ['application/json'];
|
|
4087
|
-
var returnType = _DestinationBankAccount["default"];
|
|
4088
|
-
return this.apiClient.callApi('/payments/destination/bank_account/{bank_account_id}/update', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
4089
|
-
}
|
|
4090
|
-
|
|
4091
|
-
/**
|
|
4092
|
-
* Update destination bank account
|
|
4093
|
-
* This operation updates the information of a specified destination bank account.
|
|
4094
|
-
* @param {String} bank_account_id The bank account ID.
|
|
4095
|
-
* @param {Object} opts Optional parameters
|
|
4096
|
-
* @param {module:model/UpdateDestinationBankAccount} opts.UpdateDestinationBankAccount The request body to update a destination bank account.
|
|
4097
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DestinationBankAccount}
|
|
4098
|
-
*/
|
|
4099
|
-
}, {
|
|
4100
|
-
key: "updateDestinationBankAccountById",
|
|
4101
|
-
value: function updateDestinationBankAccountById(bank_account_id, opts) {
|
|
4102
|
-
return this.updateDestinationBankAccountByIdWithHttpInfo(bank_account_id, opts).then(function (response_and_data) {
|
|
4103
|
-
return response_and_data.data;
|
|
4104
|
-
});
|
|
4105
|
-
}
|
|
4106
|
-
|
|
4107
|
-
/**
|
|
4108
|
-
* Update destination (Deprecated)
|
|
4109
|
-
* This operation updates the information of a specified destination.
|
|
4110
|
-
* @param {String} destination_id The destination ID.
|
|
4111
|
-
* @param {Object} opts Optional parameters
|
|
4112
|
-
* @param {module:model/UpdateDestinationByIdRequest} [UpdateDestinationByIdRequest] The request body to update a destination.
|
|
4113
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Destination} and HTTP response
|
|
4114
|
-
*/
|
|
4115
|
-
}, {
|
|
4116
|
-
key: "updateDestinationByIdWithHttpInfo",
|
|
4117
|
-
value: function updateDestinationByIdWithHttpInfo(destination_id, opts) {
|
|
4118
|
-
opts = opts || {};
|
|
4119
|
-
var postBody = opts['UpdateDestinationByIdRequest'];
|
|
4120
|
-
if (postBody && postBody.toJSON) {
|
|
4121
|
-
postBody = postBody.toJSON();
|
|
4122
|
-
}
|
|
4123
|
-
// verify the required parameter 'destination_id' is set
|
|
4124
|
-
if (destination_id === undefined || destination_id === null) {
|
|
4125
|
-
throw new Error("Missing the required parameter 'destination_id' when calling updateDestinationById");
|
|
4126
|
-
}
|
|
4127
|
-
var pathParams = {
|
|
4128
|
-
'destination_id': destination_id
|
|
4129
|
-
};
|
|
4130
|
-
var queryParams = {};
|
|
4131
|
-
var headerParams = {};
|
|
4132
|
-
var formParams = {};
|
|
4133
|
-
var authNames = ['OAuth2', 'CoboAuth'];
|
|
4134
|
-
var contentTypes = ['application/json'];
|
|
4135
|
-
var accepts = ['application/json'];
|
|
4136
|
-
var returnType = _Destination["default"];
|
|
4137
|
-
return this.apiClient.callApi('/payments/destination/{destination_id}/update', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
4138
|
-
}
|
|
4139
|
-
|
|
4140
|
-
/**
|
|
4141
|
-
* Update destination (Deprecated)
|
|
4142
|
-
* This operation updates the information of a specified destination.
|
|
4143
|
-
* @param {String} destination_id The destination ID.
|
|
4144
|
-
* @param {Object} opts Optional parameters
|
|
4145
|
-
* @param {module:model/UpdateDestinationByIdRequest} opts.UpdateDestinationByIdRequest The request body to update a destination.
|
|
4146
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Destination}
|
|
4147
|
-
*/
|
|
4148
|
-
}, {
|
|
4149
|
-
key: "updateDestinationById",
|
|
4150
|
-
value: function updateDestinationById(destination_id, opts) {
|
|
4151
|
-
return this.updateDestinationByIdWithHttpInfo(destination_id, opts).then(function (response_and_data) {
|
|
4152
|
-
return response_and_data.data;
|
|
4153
|
-
});
|
|
4154
|
-
}
|
|
4155
|
-
|
|
4156
3303
|
/**
|
|
4157
3304
|
* Update destination entry
|
|
4158
3305
|
* This operation updates the information of a specified destination entry.
|