@cobo/cobo-waas2 1.30.0 → 1.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -36
- package/dist/ApiClient.js +1 -1
- package/dist/api/PaymentApi.js +39 -931
- package/dist/index.js +21 -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/CreatePaymentOrderRequest.js +4 -3
- package/dist/model/CreateTopUpAddresses.js +2 -2
- package/dist/model/CreateWalletAddress.js +2 -2
- 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/SkipCheckType.js +56 -0
- package/dist/model/SupportedToken.js +17 -17
- package/dist/model/TransferParams.js +16 -0
- package/dist/model/WebhookEventData.js +6 -0
- package/dist/model/WebhookEventType.js +15 -0
- package/docs/Balance.md +1 -0
- package/docs/BridgingFee.md +1 -0
- package/docs/ContractCallParams.md +1 -0
- package/docs/CreatePaymentOrderRequest.md +2 -2
- package/docs/CreateTopUpAddresses.md +1 -1
- package/docs/CreateWalletAddress.md +1 -1
- package/docs/PaymentApi.md +117 -1138
- 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/SkipCheckType.md +10 -0
- package/docs/SupportedToken.md +10 -10
- package/docs/TransferParams.md +1 -0
- package/docs/WebhookEventData.md +1 -0
- package/docs/WebhookEventType.md +6 -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/QueryDestinationWhitelistEnabled200Response.js +0 -106
- 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"));
|
|
@@ -102,10 +87,7 @@ var _Settlement = _interopRequireDefault(require("../model/Settlement"));
|
|
|
102
87
|
var _SupportedToken = _interopRequireDefault(require("../model/SupportedToken"));
|
|
103
88
|
var _TopUpAddress = _interopRequireDefault(require("../model/TopUpAddress"));
|
|
104
89
|
var _UpdateBankAccountByIdRequest = _interopRequireDefault(require("../model/UpdateBankAccountByIdRequest"));
|
|
105
|
-
var _UpdateCounterpartyByIdRequest = _interopRequireDefault(require("../model/UpdateCounterpartyByIdRequest"));
|
|
106
90
|
var _UpdateCounterpartyRequest = _interopRequireDefault(require("../model/UpdateCounterpartyRequest"));
|
|
107
|
-
var _UpdateDestinationBankAccount = _interopRequireDefault(require("../model/UpdateDestinationBankAccount"));
|
|
108
|
-
var _UpdateDestinationByIdRequest = _interopRequireDefault(require("../model/UpdateDestinationByIdRequest"));
|
|
109
91
|
var _UpdateDestinationEntry200Response = _interopRequireDefault(require("../model/UpdateDestinationEntry200Response"));
|
|
110
92
|
var _UpdateDestinationEntryRequest = _interopRequireDefault(require("../model/UpdateDestinationEntryRequest"));
|
|
111
93
|
var _UpdateDestinationRequest = _interopRequireDefault(require("../model/UpdateDestinationRequest"));
|
|
@@ -113,7 +95,6 @@ var _UpdateMerchantByIdRequest = _interopRequireDefault(require("../model/Update
|
|
|
113
95
|
var _UpdatePaymentOrderRequest = _interopRequireDefault(require("../model/UpdatePaymentOrderRequest"));
|
|
114
96
|
var _UpdateRefundByIdRequest = _interopRequireDefault(require("../model/UpdateRefundByIdRequest"));
|
|
115
97
|
var _UpdateTopUpAddress = _interopRequireDefault(require("../model/UpdateTopUpAddress"));
|
|
116
|
-
var _WalletAddress = _interopRequireDefault(require("../model/WalletAddress"));
|
|
117
98
|
var _WalletSetup = _interopRequireDefault(require("../model/WalletSetup"));
|
|
118
99
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
119
100
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
@@ -407,50 +388,9 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
407
388
|
});
|
|
408
389
|
}
|
|
409
390
|
|
|
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
391
|
/**
|
|
452
392
|
* 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.
|
|
393
|
+
* <Note>This operation has been deprecated.</Note> This operation registers a crypto address for crypto payouts. The registered address can later be referenced by its ID when creating settlement requests.
|
|
454
394
|
* @param {Object} opts Optional parameters
|
|
455
395
|
* @param {module:model/CreateCryptoAddressRequest} [CreateCryptoAddressRequest] The request body to register a crypto address.
|
|
456
396
|
* @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 +416,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
476
416
|
|
|
477
417
|
/**
|
|
478
418
|
* 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.
|
|
419
|
+
* <Note>This operation has been deprecated.</Note> This operation registers a crypto address for crypto payouts. The registered address can later be referenced by its ID when creating settlement requests.
|
|
480
420
|
* @param {Object} opts Optional parameters
|
|
481
421
|
* @param {module:model/CreateCryptoAddressRequest} opts.CreateCryptoAddressRequest The request body to register a crypto address.
|
|
482
422
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CryptoAddress}
|
|
@@ -530,47 +470,6 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
530
470
|
});
|
|
531
471
|
}
|
|
532
472
|
|
|
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
473
|
/**
|
|
575
474
|
* Create destination entry
|
|
576
475
|
* This operation creates one or more entries for a destination. A destination entry is a record of a destination's wallet addresses or bank accounts.
|
|
@@ -612,47 +511,6 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
612
511
|
});
|
|
613
512
|
}
|
|
614
513
|
|
|
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
514
|
/**
|
|
657
515
|
* Create forced sweep
|
|
658
516
|
* <Warning>This operation has been deprecated.</Warning> This operation creates a forced sweep to transfer funds from addresses within a specified wallet to its designated sweep-to address.
|
|
@@ -1063,50 +921,6 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1063
921
|
});
|
|
1064
922
|
}
|
|
1065
923
|
|
|
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
924
|
/**
|
|
1111
925
|
* Delete counterparty
|
|
1112
926
|
* This operation deletes a counterparty. Note that this operation will delete all entries under the counterparty.
|
|
@@ -1209,53 +1023,9 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1209
1023
|
});
|
|
1210
1024
|
}
|
|
1211
1025
|
|
|
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
1026
|
/**
|
|
1257
1027
|
* Delete crypto address
|
|
1258
|
-
* This operation unregisters a crypto address from being used for crypto payouts.
|
|
1028
|
+
* <Note>This operation has been deprecated.</Note> This operation unregisters a crypto address from being used for crypto payouts.
|
|
1259
1029
|
* @param {String} crypto_address_id The crypto address ID.
|
|
1260
1030
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteCryptoAddress201Response} and HTTP response
|
|
1261
1031
|
*/
|
|
@@ -1285,7 +1055,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1285
1055
|
|
|
1286
1056
|
/**
|
|
1287
1057
|
* Delete crypto address
|
|
1288
|
-
* This operation unregisters a crypto address from being used for crypto payouts.
|
|
1058
|
+
* <Note>This operation has been deprecated.</Note> This operation unregisters a crypto address from being used for crypto payouts.
|
|
1289
1059
|
* @param {String} crypto_address_id The crypto address ID.
|
|
1290
1060
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteCryptoAddress201Response}
|
|
1291
1061
|
*/
|
|
@@ -1297,94 +1067,6 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1297
1067
|
});
|
|
1298
1068
|
}
|
|
1299
1069
|
|
|
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
1070
|
/**
|
|
1389
1071
|
* Delete destination
|
|
1390
1072
|
* This operation deletes a destination. Note that this operation will delete all entries under the destination, including bank accounts and addresses.
|
|
@@ -1488,91 +1170,6 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1488
1170
|
});
|
|
1489
1171
|
}
|
|
1490
1172
|
|
|
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
1173
|
/**
|
|
1577
1174
|
* Get available allocation amount
|
|
1578
1175
|
* This operation retrieves the available amount that can be allocated from a source account to a destination account.
|
|
@@ -1763,50 +1360,6 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1763
1360
|
});
|
|
1764
1361
|
}
|
|
1765
1362
|
|
|
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
1363
|
/**
|
|
1811
1364
|
* Get counterparty entry information
|
|
1812
1365
|
* This operation retrieves the detailed information about a specified counterparty entry.
|
|
@@ -1902,94 +1455,6 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1902
1455
|
});
|
|
1903
1456
|
}
|
|
1904
1457
|
|
|
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
1458
|
/**
|
|
1994
1459
|
* Get destination entry information
|
|
1995
1460
|
* This operation retrieves the detailed information about a specified destination entry.
|
|
@@ -2772,106 +2237,46 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2772
2237
|
var authNames = ['OAuth2', 'CoboAuth'];
|
|
2773
2238
|
var contentTypes = [];
|
|
2774
2239
|
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']
|
|
2829
|
-
};
|
|
2830
|
-
var headerParams = {};
|
|
2831
|
-
var formParams = {};
|
|
2832
|
-
var authNames = ['OAuth2', 'CoboAuth'];
|
|
2833
|
-
var contentTypes = [];
|
|
2834
|
-
var accepts = ['application/json'];
|
|
2835
|
-
var returnType = _ListCounterpartyEntries200Response["default"];
|
|
2836
|
-
return this.apiClient.callApi('/payments/counterparty_entry', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
2240
|
+
var returnType = _ListCounterparties200Response["default"];
|
|
2241
|
+
return this.apiClient.callApi('/payments/counterparty', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
2837
2242
|
}
|
|
2838
2243
|
|
|
2839
2244
|
/**
|
|
2840
|
-
* List
|
|
2841
|
-
* This operation retrieves the information of counterparty
|
|
2245
|
+
* List all counterparties
|
|
2246
|
+
* This operation retrieves the information of all counterparties. You can filter the results by using a keyword for fuzzy search on counterparty names.
|
|
2842
2247
|
* @param {Object} opts Optional parameters
|
|
2843
2248
|
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
2844
2249
|
* @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
2250
|
* @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}
|
|
2251
|
+
* @param {String} opts.keyword A search term for performing fuzzy matches in the search query.
|
|
2252
|
+
* @param {module:model/CounterpartyType} opts.counterparty_type The type of the counterparty. - `Individual`: The counterparty is an individual. - `Organization`: The counterparty is an organization.
|
|
2253
|
+
* @param {String} opts.country Country code, in ISO 3166-1 alpha-3 format.
|
|
2254
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListCounterparties200Response}
|
|
2851
2255
|
*/
|
|
2852
2256
|
}, {
|
|
2853
|
-
key: "
|
|
2854
|
-
value: function
|
|
2855
|
-
return this.
|
|
2257
|
+
key: "listCounterparties",
|
|
2258
|
+
value: function listCounterparties(opts) {
|
|
2259
|
+
return this.listCounterpartiesWithHttpInfo(opts).then(function (response_and_data) {
|
|
2856
2260
|
return response_and_data.data;
|
|
2857
2261
|
});
|
|
2858
2262
|
}
|
|
2859
2263
|
|
|
2860
2264
|
/**
|
|
2861
|
-
* List counterparty
|
|
2862
|
-
* This operation retrieves the information of counterparty
|
|
2265
|
+
* List counterparty entries
|
|
2266
|
+
* This operation retrieves the information of counterparty entries.
|
|
2863
2267
|
* @param {Object} opts Optional parameters
|
|
2864
2268
|
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
2865
2269
|
* @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
2270
|
* @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.
|
|
2271
|
+
* @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
2272
|
* @param {String} [counterparty_id] The counterparty ID.
|
|
2868
2273
|
* @param {String} [chain_ids] The chain ID, which is the unique identifier of a blockchain.
|
|
2869
2274
|
* @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/
|
|
2275
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListCounterpartyEntries200Response} and HTTP response
|
|
2871
2276
|
*/
|
|
2872
2277
|
}, {
|
|
2873
|
-
key: "
|
|
2874
|
-
value: function
|
|
2278
|
+
key: "listCounterpartyEntriesWithHttpInfo",
|
|
2279
|
+
value: function listCounterpartyEntriesWithHttpInfo(opts) {
|
|
2875
2280
|
opts = opts || {};
|
|
2876
2281
|
var postBody = null;
|
|
2877
2282
|
if (postBody && postBody.toJSON) {
|
|
@@ -2882,6 +2287,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2882
2287
|
'limit': opts['limit'],
|
|
2883
2288
|
'before': opts['before'],
|
|
2884
2289
|
'after': opts['after'],
|
|
2290
|
+
'entry_type': opts['entry_type'],
|
|
2885
2291
|
'counterparty_id': opts['counterparty_id'],
|
|
2886
2292
|
'chain_ids': opts['chain_ids'],
|
|
2887
2293
|
'wallet_address': opts['wallet_address']
|
|
@@ -2891,33 +2297,34 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2891
2297
|
var authNames = ['OAuth2', 'CoboAuth'];
|
|
2892
2298
|
var contentTypes = [];
|
|
2893
2299
|
var accepts = ['application/json'];
|
|
2894
|
-
var returnType =
|
|
2895
|
-
return this.apiClient.callApi('/payments/
|
|
2300
|
+
var returnType = _ListCounterpartyEntries200Response["default"];
|
|
2301
|
+
return this.apiClient.callApi('/payments/counterparty_entry', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
2896
2302
|
}
|
|
2897
2303
|
|
|
2898
2304
|
/**
|
|
2899
|
-
* List counterparty
|
|
2900
|
-
* This operation retrieves the information of counterparty
|
|
2305
|
+
* List counterparty entries
|
|
2306
|
+
* This operation retrieves the information of counterparty entries.
|
|
2901
2307
|
* @param {Object} opts Optional parameters
|
|
2902
2308
|
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
2903
2309
|
* @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
2310
|
* @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.
|
|
2311
|
+
* @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
2312
|
* @param {String} opts.counterparty_id The counterparty ID.
|
|
2906
2313
|
* @param {String} opts.chain_ids The chain ID, which is the unique identifier of a blockchain.
|
|
2907
2314
|
* @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/
|
|
2315
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListCounterpartyEntries200Response}
|
|
2909
2316
|
*/
|
|
2910
2317
|
}, {
|
|
2911
|
-
key: "
|
|
2912
|
-
value: function
|
|
2913
|
-
return this.
|
|
2318
|
+
key: "listCounterpartyEntries",
|
|
2319
|
+
value: function listCounterpartyEntries(opts) {
|
|
2320
|
+
return this.listCounterpartyEntriesWithHttpInfo(opts).then(function (response_and_data) {
|
|
2914
2321
|
return response_and_data.data;
|
|
2915
2322
|
});
|
|
2916
2323
|
}
|
|
2917
2324
|
|
|
2918
2325
|
/**
|
|
2919
2326
|
* 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.
|
|
2327
|
+
* <Note>This operation has been deprecated.</Note> This operation retrieves a list of crypto addresses registered for crypto payouts. Contact our support team at [help@cobo.com](mailto:help@cobo.com) to register a new crypto address.
|
|
2921
2328
|
* @param {Object} opts Optional parameters
|
|
2922
2329
|
* @param {String} [token_id] The token ID, which is a unique identifier that specifies both the blockchain network and cryptocurrency token in the format `{CHAIN}_{TOKEN}`. Supported values include: - USDC: `ETH_USDC`, `ARBITRUM_USDCOIN`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC2`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
|
|
2923
2330
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/CryptoAddress>} and HTTP response
|
|
@@ -2945,7 +2352,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2945
2352
|
|
|
2946
2353
|
/**
|
|
2947
2354
|
* 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.
|
|
2355
|
+
* <Note>This operation has been deprecated.</Note> This operation retrieves a list of crypto addresses registered for crypto payouts. Contact our support team at [help@cobo.com](mailto:help@cobo.com) to register a new crypto address.
|
|
2949
2356
|
* @param {Object} opts Optional parameters
|
|
2950
2357
|
* @param {String} opts.token_id The token ID, which is a unique identifier that specifies both the blockchain network and cryptocurrency token in the format `{CHAIN}_{TOKEN}`. Supported values include: - USDC: `ETH_USDC`, `ARBITRUM_USDCOIN`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC2`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
|
|
2951
2358
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/CryptoAddress>}
|
|
@@ -2958,64 +2365,6 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2958
2365
|
});
|
|
2959
2366
|
}
|
|
2960
2367
|
|
|
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
2368
|
/**
|
|
3020
2369
|
* List destination entries
|
|
3021
2370
|
* This operation retrieves the information of destination entries.
|
|
@@ -3087,64 +2436,6 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
3087
2436
|
});
|
|
3088
2437
|
}
|
|
3089
2438
|
|
|
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
2439
|
/**
|
|
3149
2440
|
* List all destinations
|
|
3150
2441
|
* This operation retrieves the information of all destinations. You can filter the results by using a keyword for fuzzy search on destination names.
|
|
@@ -3428,8 +2719,8 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
3428
2719
|
}
|
|
3429
2720
|
|
|
3430
2721
|
/**
|
|
3431
|
-
* List
|
|
3432
|
-
* This operation retrieves
|
|
2722
|
+
* List supported tokens
|
|
2723
|
+
* This operation retrieves all tokens supported by Cobo Payments. Use this operation to get token details such as token ID, symbol, decimal precision, contract address, and chain information before creating payment orders. For more information about Cobo Payments, see [Cobo Payments Overview](https://www.cobo.com/payments/en/guides/overview).
|
|
3433
2724
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/SupportedToken>} and HTTP response
|
|
3434
2725
|
*/
|
|
3435
2726
|
}, {
|
|
@@ -3451,8 +2742,8 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
3451
2742
|
}
|
|
3452
2743
|
|
|
3453
2744
|
/**
|
|
3454
|
-
* List
|
|
3455
|
-
* This operation retrieves
|
|
2745
|
+
* List supported tokens
|
|
2746
|
+
* This operation retrieves all tokens supported by Cobo Payments. Use this operation to get token details such as token ID, symbol, decimal precision, contract address, and chain information before creating payment orders. For more information about Cobo Payments, see [Cobo Payments Overview](https://www.cobo.com/payments/en/guides/overview).
|
|
3456
2747
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/SupportedToken>}
|
|
3457
2748
|
*/
|
|
3458
2749
|
}, {
|
|
@@ -3823,45 +3114,9 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
3823
3114
|
});
|
|
3824
3115
|
}
|
|
3825
3116
|
|
|
3826
|
-
/**
|
|
3827
|
-
* Query destination whitelist enabled status
|
|
3828
|
-
* This operation retrieves the information of whether the destination whitelist is enabled.
|
|
3829
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/QueryDestinationWhitelistEnabled200Response} and HTTP response
|
|
3830
|
-
*/
|
|
3831
|
-
}, {
|
|
3832
|
-
key: "queryDestinationWhitelistEnabledWithHttpInfo",
|
|
3833
|
-
value: function queryDestinationWhitelistEnabledWithHttpInfo() {
|
|
3834
|
-
var postBody = null;
|
|
3835
|
-
if (postBody && postBody.toJSON) {
|
|
3836
|
-
postBody = postBody.toJSON();
|
|
3837
|
-
}
|
|
3838
|
-
var pathParams = {};
|
|
3839
|
-
var queryParams = {};
|
|
3840
|
-
var headerParams = {};
|
|
3841
|
-
var formParams = {};
|
|
3842
|
-
var authNames = ['OAuth2', 'CoboAuth'];
|
|
3843
|
-
var contentTypes = [];
|
|
3844
|
-
var accepts = ['application/json'];
|
|
3845
|
-
var returnType = _QueryDestinationWhitelistEnabled200Response["default"];
|
|
3846
|
-
return this.apiClient.callApi('/payments/destination/enable_whitelist', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
3847
|
-
}
|
|
3848
|
-
|
|
3849
|
-
/**
|
|
3850
|
-
* Query destination whitelist enabled status
|
|
3851
|
-
* This operation retrieves the information of whether the destination whitelist is enabled.
|
|
3852
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/QueryDestinationWhitelistEnabled200Response}
|
|
3853
|
-
*/
|
|
3854
|
-
}, {
|
|
3855
|
-
key: "queryDestinationWhitelistEnabled",
|
|
3856
|
-
value: function queryDestinationWhitelistEnabled() {
|
|
3857
|
-
return this.queryDestinationWhitelistEnabledWithHttpInfo().then(function (response_and_data) {
|
|
3858
|
-
return response_and_data.data;
|
|
3859
|
-
});
|
|
3860
|
-
}
|
|
3861
|
-
|
|
3862
3117
|
/**
|
|
3863
3118
|
* Update bank account
|
|
3864
|
-
* This operation updates the information of an existing bank account.
|
|
3119
|
+
* <Note>This operation has been deprecated.</Note> This operation updates the information of an existing bank account.
|
|
3865
3120
|
* @param {String} bank_account_id The bank account ID.
|
|
3866
3121
|
* @param {Object} opts Optional parameters
|
|
3867
3122
|
* @param {module:model/UpdateBankAccountByIdRequest} [UpdateBankAccountByIdRequest] The request body for updating an existing bank account.
|
|
@@ -3894,7 +3149,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
3894
3149
|
|
|
3895
3150
|
/**
|
|
3896
3151
|
* Update bank account
|
|
3897
|
-
* This operation updates the information of an existing bank account.
|
|
3152
|
+
* <Note>This operation has been deprecated.</Note> This operation updates the information of an existing bank account.
|
|
3898
3153
|
* @param {String} bank_account_id The bank account ID.
|
|
3899
3154
|
* @param {Object} opts Optional parameters
|
|
3900
3155
|
* @param {module:model/UpdateBankAccountByIdRequest} opts.UpdateBankAccountByIdRequest The request body for updating an existing bank account.
|
|
@@ -3957,55 +3212,6 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
3957
3212
|
});
|
|
3958
3213
|
}
|
|
3959
3214
|
|
|
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
3215
|
/**
|
|
4010
3216
|
* Update destination
|
|
4011
3217
|
* This operation updates the information of a specified destination.
|
|
@@ -4055,104 +3261,6 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
4055
3261
|
});
|
|
4056
3262
|
}
|
|
4057
3263
|
|
|
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
3264
|
/**
|
|
4157
3265
|
* Update destination entry
|
|
4158
3266
|
* This operation updates the information of a specified destination entry.
|