@cobo/cobo-waas2 1.28.0 → 1.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +88 -16
- package/dist/ApiClient.js +1 -1
- package/dist/api/AutoSweepApi.js +2 -2
- package/dist/api/ComplianceApi.js +144 -4
- package/dist/api/FeeStationApi.js +2 -2
- package/dist/api/GraphQLApi.js +85 -0
- package/dist/api/PaymentApi.js +1161 -154
- package/dist/api/StakingsApi.js +2 -2
- package/dist/api/SwapsApi.js +3 -0
- package/dist/api/TransactionsApi.js +6 -6
- package/dist/api/WalletsApi.js +18 -18
- package/dist/index.js +357 -28
- package/dist/model/AddressRiskLevel.js +71 -0
- package/dist/model/AddressesEventData.js +13 -3
- package/dist/model/{AllocationRecord.js → AllocationItem.js} +38 -35
- package/dist/model/{AllocationRequest.js → AllocationParam.js} +29 -26
- package/dist/model/BalanceUpdateInfoEventData.js +13 -3
- package/dist/model/BatchAllocation.js +12 -12
- package/dist/model/BatchAllocationDetail.js +15 -17
- package/dist/model/BridgingFee.js +3 -3
- package/dist/model/ChainsEventData.js +13 -3
- package/dist/model/CommissionFee.js +2 -2
- package/dist/model/ComplianceDispositionUpdateEventData.js +13 -3
- package/dist/model/ComplianceKyaScreeningsUpdateEventData.js +346 -0
- package/dist/model/ComplianceKytScreeningsUpdateEventData.js +13 -3
- package/dist/model/ContractCallParams.js +3 -3
- package/dist/model/CounterpartyWalletAddressDetail.js +2 -2
- package/dist/model/CreateBatchAllocationRequest.js +19 -19
- package/dist/model/CreateBulkSendRequest.js +167 -0
- package/dist/model/CreateBulkSendRequestPayoutParamsInner.js +153 -0
- package/dist/model/CreateCounterpartyEntry201Response.js +143 -0
- package/dist/model/CreateCounterpartyEntryRequest.js +141 -0
- package/dist/model/CreateDestinationEntry201Response.js +172 -0
- package/dist/model/CreateDestinationEntryRequest.js +172 -0
- package/dist/model/CreateKyaScreeningsBody.js +129 -0
- package/dist/model/CreateMerchantRequest.js +1 -1
- package/dist/model/CreatePaymentOrderRequest.js +17 -15
- package/dist/model/CreatePayoutRequest.js +35 -28
- package/dist/model/CreateRefundRequest.js +2 -2
- package/dist/model/CreateReportRequest.js +156 -0
- package/dist/model/CreateTopUpAddresses.js +139 -0
- package/dist/model/CreateTopUpAddresses201Response.js +107 -0
- package/dist/model/CreateWalletAddress.js +2 -2
- package/dist/model/DeleteCounterpartyById200Response.js +110 -0
- package/dist/model/DeleteCounterpartyEntry200Response.js +110 -0
- package/dist/model/DeleteDestinationById200Response.js +110 -0
- package/dist/model/DeleteDestinationEntry200Response.js +110 -0
- package/dist/model/EntryType.js +61 -0
- package/dist/model/GetCounterpartyEntry200Response.js +90 -0
- package/dist/model/GetDestinationEntry200Response.js +106 -0
- package/dist/model/{ListPayoutItems200Response.js → GetReports200Response.js} +22 -22
- package/dist/model/KyaRiskAssessment.js +151 -0
- package/dist/model/KyaRiskDetail.js +126 -0
- package/dist/model/KyaRiskLevel.js +66 -0
- package/dist/model/KyaScreeningRequest.js +154 -0
- package/dist/model/KyaScreeningResult.js +222 -0
- package/dist/model/KyaScreeningResultRiskAssessment.js +171 -0
- package/dist/model/KyaScreeningStatus.js +71 -0
- package/dist/model/KyaScreeningsEventData.js +174 -0
- package/dist/model/LinkDisplayInfo.js +1 -1
- package/dist/model/{ListAllocations200Response.js → ListAllocationItems200Response.js} +22 -22
- package/dist/model/ListBulkSendItems200Response.js +123 -0
- package/dist/model/ListCounterpartyEntries200Response.js +123 -0
- package/dist/model/ListDestinationEntries200Response.js +153 -0
- package/dist/model/ListKyaScreenings200Response.js +145 -0
- package/dist/model/MPCVaultEventData.js +13 -3
- package/dist/model/MerchantBalance.js +4 -4
- package/dist/model/Order.js +10 -10
- package/dist/model/OrderLinkBusinessInfo.js +22 -16
- package/dist/model/OrderLinkBusinessInfoCustomExchangeRatesInner.js +2 -4
- package/dist/model/OrderLinkBusinessInfoPayableAmountsInner.js +4 -4
- package/dist/model/PaymentAddressUpdateEventData.js +13 -3
- package/dist/model/PaymentAllocationAmount.js +2 -2
- package/dist/model/PaymentBulkSend.js +182 -0
- package/dist/model/PaymentBulkSendEvent.js +359 -0
- package/dist/model/PaymentBulkSendExecutionMode.js +61 -0
- package/dist/model/PaymentBulkSendItem.js +190 -0
- package/dist/model/{PaymentPayoutItemStatus.js → PaymentBulkSendItemStatus.js} +11 -11
- package/dist/model/PaymentBulkSendItemValidationStatus.js +66 -0
- package/dist/model/PaymentBulkSendStatus.js +81 -0
- package/dist/model/PaymentEstimateFeeRequest.js +13 -0
- package/dist/model/PaymentFeeType.js +15 -0
- package/dist/model/PaymentOrderEventData.js +31 -21
- package/dist/model/PaymentPayout.js +64 -46
- package/dist/model/PaymentPayoutDetail.js +166 -52
- package/dist/model/PaymentPayoutEvent.js +152 -80
- package/dist/model/PaymentPayoutItem.js +9 -166
- package/dist/model/PaymentPayoutParam.js +6 -46
- package/dist/model/PaymentPayoutRecipientInfo.js +126 -0
- package/dist/model/PaymentPayoutStatus.js +9 -4
- package/dist/model/PaymentRefundEventData.js +13 -3
- package/dist/model/PaymentSettlementEvent.js +13 -3
- package/dist/model/PaymentTransactionEventData.js +13 -3
- package/dist/model/PspBalance.js +4 -4
- package/dist/model/RefundLinkBusinessInfo.js +1 -1
- package/dist/model/Report.js +209 -0
- package/dist/model/ReportExportFormat.js +66 -0
- package/dist/model/ReportStatus.js +61 -0
- package/dist/model/ReportType.js +121 -0
- package/dist/model/SuspendedTokenEventData.js +13 -3
- package/dist/model/TSSRequestWebhookEventData.js +13 -3
- package/dist/model/TokenListingEventData.js +13 -3
- package/dist/model/TokensEventData.js +13 -3
- package/dist/model/TransactionCoboCategory.js +5 -0
- package/dist/model/TransactionExtraType.js +5 -0
- package/dist/model/TransactionWalletConnectInfo.js +146 -0
- package/dist/model/TransactionWebhookEventData.js +13 -3
- package/dist/model/TransferParams.js +2 -2
- package/dist/model/UpdateCounterpartyRequest.js +160 -0
- package/dist/model/UpdateDestinationEntry200Response.js +90 -0
- package/dist/model/UpdateDestinationEntryRequest.js +135 -0
- package/dist/model/UpdateDestinationRequest.js +173 -0
- package/dist/model/UpdateMerchantByIdRequest.js +1 -1
- package/dist/model/WalletAddress.js +20 -2
- package/dist/model/WalletInfoEventData.js +13 -3
- package/dist/model/WebhookEventData.js +121 -28
- package/dist/model/WebhookEventDataType.js +12 -2
- package/dist/model/WebhookEventType.js +15 -0
- package/docs/AddressRiskLevel.md +16 -0
- package/docs/AddressesEventData.md +5 -1
- package/docs/AllocationItem.md +15 -0
- package/docs/AllocationParam.md +13 -0
- package/docs/AutoSweepApi.md +1 -1
- package/docs/BalanceUpdateInfoEventData.md +5 -1
- package/docs/BatchAllocation.md +2 -2
- package/docs/BatchAllocationDetail.md +1 -1
- package/docs/BridgingFee.md +2 -2
- package/docs/ChainsEventData.md +5 -1
- package/docs/CommissionFee.md +1 -1
- package/docs/ComplianceApi.md +163 -0
- package/docs/ComplianceDispositionUpdateEventData.md +5 -1
- package/docs/ComplianceKyaScreeningsUpdateEventData.md +64 -0
- package/docs/ComplianceKytScreeningsUpdateEventData.md +5 -1
- package/docs/ContractCallParams.md +2 -2
- package/docs/CounterpartyWalletAddressDetail.md +1 -1
- package/docs/CreateBatchAllocationRequest.md +2 -2
- package/docs/CreateBulkSendRequest.md +12 -0
- package/docs/CreateBulkSendRequestPayoutParamsInner.md +12 -0
- package/docs/CreateCounterpartyEntry201Response.md +10 -0
- package/docs/CreateCounterpartyEntryRequest.md +10 -0
- package/docs/CreateDestinationEntry201Response.md +11 -0
- package/docs/CreateDestinationEntryRequest.md +11 -0
- package/docs/CreateKyaScreeningsBody.md +9 -0
- package/docs/CreateMerchantRequest.md +1 -1
- package/docs/CreatePaymentOrderRequest.md +11 -11
- package/docs/CreatePayoutRequest.md +4 -4
- package/docs/CreateRefundRequest.md +2 -2
- package/docs/CreateReportRequest.md +13 -0
- package/docs/CreateTopUpAddresses.md +11 -0
- package/docs/CreateTopUpAddresses201Response.md +9 -0
- package/docs/CreateWalletAddress.md +1 -1
- package/docs/DeleteCounterpartyById200Response.md +9 -0
- package/docs/DeleteCounterpartyEntry200Response.md +9 -0
- package/docs/DeleteDestinationById200Response.md +9 -0
- package/docs/DeleteDestinationEntry200Response.md +9 -0
- package/docs/EntryType.md +12 -0
- package/docs/FeeStationApi.md +1 -1
- package/docs/GetCounterpartyEntry200Response.md +9 -0
- package/docs/GetDestinationEntry200Response.md +10 -0
- package/docs/{ListAllocations200Response.md → GetReports200Response.md} +2 -2
- package/docs/GraphQLApi.md +61 -0
- package/docs/KyaRiskAssessment.md +11 -0
- package/docs/KyaRiskDetail.md +10 -0
- package/docs/KyaRiskLevel.md +14 -0
- package/docs/KyaScreeningRequest.md +12 -0
- package/docs/KyaScreeningResult.md +17 -0
- package/docs/KyaScreeningResultRiskAssessment.md +11 -0
- package/docs/KyaScreeningStatus.md +16 -0
- package/docs/KyaScreeningsEventData.md +14 -0
- package/docs/LinkDisplayInfo.md +1 -1
- package/docs/{ListPayoutItems200Response.md → ListAllocationItems200Response.md} +2 -2
- package/docs/ListBulkSendItems200Response.md +10 -0
- package/docs/ListCounterpartyEntries200Response.md +10 -0
- package/docs/ListDestinationEntries200Response.md +11 -0
- package/docs/ListKyaScreenings200Response.md +10 -0
- package/docs/MPCVaultEventData.md +5 -1
- package/docs/MerchantBalance.md +4 -4
- package/docs/Order.md +8 -8
- package/docs/OrderLinkBusinessInfo.md +11 -11
- package/docs/OrderLinkBusinessInfoCustomExchangeRatesInner.md +2 -2
- package/docs/OrderLinkBusinessInfoPayableAmountsInner.md +2 -2
- package/docs/PaymentAddressUpdateEventData.md +5 -1
- package/docs/PaymentAllocationAmount.md +1 -1
- package/docs/PaymentApi.md +1296 -198
- package/docs/PaymentBulkSend.md +15 -0
- package/docs/PaymentBulkSendEvent.md +65 -0
- package/docs/PaymentBulkSendExecutionMode.md +12 -0
- package/docs/PaymentBulkSendItem.md +15 -0
- package/docs/{PaymentPayoutItemStatus.md → PaymentBulkSendItemStatus.md} +3 -3
- package/docs/PaymentBulkSendItemValidationStatus.md +14 -0
- package/docs/PaymentBulkSendStatus.md +20 -0
- package/docs/PaymentEstimateFeeRequest.md +1 -0
- package/docs/PaymentFeeType.md +6 -0
- package/docs/PaymentOrderEventData.md +13 -9
- package/docs/PaymentPayout.md +8 -7
- package/docs/PaymentPayoutDetail.md +10 -8
- package/docs/PaymentPayoutEvent.md +15 -9
- package/docs/PaymentPayoutItem.md +2 -13
- package/docs/PaymentPayoutParam.md +1 -4
- package/docs/PaymentPayoutRecipientInfo.md +12 -0
- package/docs/PaymentPayoutStatus.md +4 -2
- package/docs/PaymentRefundEventData.md +5 -1
- package/docs/PaymentSettlementEvent.md +5 -1
- package/docs/PaymentTransactionEventData.md +5 -1
- package/docs/PspBalance.md +4 -4
- package/docs/RefundLinkBusinessInfo.md +1 -1
- package/docs/Report.md +17 -0
- package/docs/ReportExportFormat.md +14 -0
- package/docs/ReportStatus.md +12 -0
- package/docs/ReportType.md +36 -0
- package/docs/StakingsApi.md +1 -1
- package/docs/SuspendedTokenEventData.md +5 -1
- package/docs/SwapsApi.md +2 -0
- package/docs/TSSRequestWebhookEventData.md +5 -1
- package/docs/TokenListingEventData.md +5 -1
- package/docs/TokensEventData.md +5 -1
- package/docs/TransactionCoboCategory.md +2 -0
- package/docs/TransactionExtraType.md +2 -0
- package/docs/TransactionWalletConnectInfo.md +12 -0
- package/docs/TransactionWebhookEventData.md +5 -1
- package/docs/TransactionsApi.md +3 -3
- package/docs/TransferParams.md +1 -1
- package/docs/UpdateCounterpartyRequest.md +13 -0
- package/docs/UpdateDestinationEntry200Response.md +9 -0
- package/docs/UpdateDestinationEntryRequest.md +11 -0
- package/docs/UpdateDestinationRequest.md +14 -0
- package/docs/UpdateMerchantByIdRequest.md +1 -1
- package/docs/WalletAddress.md +3 -1
- package/docs/WalletInfoEventData.md +5 -1
- package/docs/WalletsApi.md +9 -9
- package/docs/WebhookEventData.md +28 -18
- package/docs/WebhookEventDataType.md +5 -1
- package/docs/WebhookEventType.md +6 -0
- package/package.json +1 -1
- package/dist/model/PaymentPayoutItemDetail.js +0 -298
- package/docs/AllocationRecord.md +0 -15
- package/docs/AllocationRequest.md +0 -13
- package/docs/PaymentPayoutItemDetail.md +0 -22
|
@@ -32,13 +32,12 @@ var PaymentPayoutParam = /*#__PURE__*/function () {
|
|
|
32
32
|
/**
|
|
33
33
|
* Constructs a new <code>PaymentPayoutParam</code>.
|
|
34
34
|
* @alias module:model/PaymentPayoutParam
|
|
35
|
-
* @param
|
|
36
|
-
* @param token_id {String} Only used in Crypto payout channel. The ID of the cryptocurrency you want to settle. Supported values: - USDC: `ETH_USDC`, `ARBITRUM_USDC`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
|
|
35
|
+
* @param token_id {String} The ID of the cryptocurrency you want to pay out. Specify this field when `payout_channel` is set to `Crypto`. Supported values: - USDC: `ETH_USDC`, `ARBITRUM_USDC`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
|
|
37
36
|
* @param amount {String} The payout cryptocurrency amount.
|
|
38
37
|
*/
|
|
39
|
-
function PaymentPayoutParam(
|
|
38
|
+
function PaymentPayoutParam(token_id, amount) {
|
|
40
39
|
_classCallCheck(this, PaymentPayoutParam);
|
|
41
|
-
PaymentPayoutParam.initialize(this,
|
|
40
|
+
PaymentPayoutParam.initialize(this, token_id, amount);
|
|
42
41
|
}
|
|
43
42
|
|
|
44
43
|
/**
|
|
@@ -48,8 +47,7 @@ var PaymentPayoutParam = /*#__PURE__*/function () {
|
|
|
48
47
|
*/
|
|
49
48
|
return _createClass(PaymentPayoutParam, null, [{
|
|
50
49
|
key: "initialize",
|
|
51
|
-
value: function initialize(obj,
|
|
52
|
-
obj['source_account'] = source_account;
|
|
50
|
+
value: function initialize(obj, token_id, amount) {
|
|
53
51
|
obj['token_id'] = token_id;
|
|
54
52
|
obj['amount'] = amount;
|
|
55
53
|
}
|
|
@@ -66,21 +64,12 @@ var PaymentPayoutParam = /*#__PURE__*/function () {
|
|
|
66
64
|
value: function constructFromObject(data, obj) {
|
|
67
65
|
if (data) {
|
|
68
66
|
obj = obj || new PaymentPayoutParam();
|
|
69
|
-
if (data.hasOwnProperty('source_account')) {
|
|
70
|
-
obj['source_account'] = _ApiClient["default"].convertToType(data['source_account'], 'String');
|
|
71
|
-
}
|
|
72
67
|
if (data.hasOwnProperty('token_id')) {
|
|
73
68
|
obj['token_id'] = _ApiClient["default"].convertToType(data['token_id'], 'String');
|
|
74
69
|
}
|
|
75
70
|
if (data.hasOwnProperty('amount')) {
|
|
76
71
|
obj['amount'] = _ApiClient["default"].convertToType(data['amount'], 'String');
|
|
77
72
|
}
|
|
78
|
-
if (data.hasOwnProperty('crypto_address_id')) {
|
|
79
|
-
obj['crypto_address_id'] = _ApiClient["default"].convertToType(data['crypto_address_id'], 'String');
|
|
80
|
-
}
|
|
81
|
-
if (data.hasOwnProperty('crypto_address')) {
|
|
82
|
-
obj['crypto_address'] = _ApiClient["default"].convertToType(data['crypto_address'], 'String');
|
|
83
|
-
}
|
|
84
73
|
}
|
|
85
74
|
return obj;
|
|
86
75
|
}
|
|
@@ -109,10 +98,6 @@ var PaymentPayoutParam = /*#__PURE__*/function () {
|
|
|
109
98
|
} finally {
|
|
110
99
|
_iterator.f();
|
|
111
100
|
}
|
|
112
|
-
if (data['source_account'] && !(typeof data['source_account'] === 'string' || data['source_account'] instanceof String)) {
|
|
113
|
-
throw new Error("Expected the field `source_account` to be a primitive type in the JSON string but got " + data['source_account']);
|
|
114
|
-
}
|
|
115
|
-
// ensure the json data is a string
|
|
116
101
|
if (data['token_id'] && !(typeof data['token_id'] === 'string' || data['token_id'] instanceof String)) {
|
|
117
102
|
throw new Error("Expected the field `token_id` to be a primitive type in the JSON string but got " + data['token_id']);
|
|
118
103
|
}
|
|
@@ -120,27 +105,14 @@ var PaymentPayoutParam = /*#__PURE__*/function () {
|
|
|
120
105
|
if (data['amount'] && !(typeof data['amount'] === 'string' || data['amount'] instanceof String)) {
|
|
121
106
|
throw new Error("Expected the field `amount` to be a primitive type in the JSON string but got " + data['amount']);
|
|
122
107
|
}
|
|
123
|
-
// ensure the json data is a string
|
|
124
|
-
if (data['crypto_address_id'] && !(typeof data['crypto_address_id'] === 'string' || data['crypto_address_id'] instanceof String)) {
|
|
125
|
-
throw new Error("Expected the field `crypto_address_id` to be a primitive type in the JSON string but got " + data['crypto_address_id']);
|
|
126
|
-
}
|
|
127
|
-
// ensure the json data is a string
|
|
128
|
-
if (data['crypto_address'] && !(typeof data['crypto_address'] === 'string' || data['crypto_address'] instanceof String)) {
|
|
129
|
-
throw new Error("Expected the field `crypto_address` to be a primitive type in the JSON string but got " + data['crypto_address']);
|
|
130
|
-
}
|
|
131
108
|
return true;
|
|
132
109
|
}
|
|
133
110
|
}]);
|
|
134
111
|
}();
|
|
135
|
-
PaymentPayoutParam.RequiredProperties = ["
|
|
112
|
+
PaymentPayoutParam.RequiredProperties = ["token_id", "amount"];
|
|
136
113
|
|
|
137
114
|
/**
|
|
138
|
-
*
|
|
139
|
-
*/
|
|
140
|
-
PaymentPayoutParam.prototype['source_account'] = undefined;
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* Only used in Crypto payout channel. The ID of the cryptocurrency you want to settle. Supported values: - USDC: `ETH_USDC`, `ARBITRUM_USDC`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
|
|
115
|
+
* The ID of the cryptocurrency you want to pay out. Specify this field when `payout_channel` is set to `Crypto`. Supported values: - USDC: `ETH_USDC`, `ARBITRUM_USDC`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
|
|
144
116
|
* @member {String} token_id
|
|
145
117
|
*/
|
|
146
118
|
PaymentPayoutParam.prototype['token_id'] = undefined;
|
|
@@ -150,16 +122,4 @@ PaymentPayoutParam.prototype['token_id'] = undefined;
|
|
|
150
122
|
* @member {String} amount
|
|
151
123
|
*/
|
|
152
124
|
PaymentPayoutParam.prototype['amount'] = undefined;
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* Only used in Crypto payout channel. The ID of the pre-approved crypto address used for Crypto settlements. - The value must refer to a valid address that has been pre-configured and approved for the given token.
|
|
156
|
-
* @member {String} crypto_address_id
|
|
157
|
-
*/
|
|
158
|
-
PaymentPayoutParam.prototype['crypto_address_id'] = undefined;
|
|
159
|
-
|
|
160
|
-
/**
|
|
161
|
-
* Only used in Crypto payout channel. The actual blockchain address to which funds will be transferred. If enable destination whitelist, this address must be associated with a destination.
|
|
162
|
-
* @member {String} crypto_address
|
|
163
|
-
*/
|
|
164
|
-
PaymentPayoutParam.prototype['crypto_address'] = undefined;
|
|
165
125
|
var _default = exports["default"] = PaymentPayoutParam;
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
|
+
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); }
|
|
10
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
11
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
12
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
13
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
15
|
+
* Cobo Wallet as a Service 2.0
|
|
16
|
+
*
|
|
17
|
+
* Contact: help@cobo.com
|
|
18
|
+
*
|
|
19
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
20
|
+
* https://openapi-generator.tech
|
|
21
|
+
* Do not edit the class manually.
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
/**
|
|
25
|
+
* The PaymentPayoutRecipientInfo model module.
|
|
26
|
+
* @module model/PaymentPayoutRecipientInfo
|
|
27
|
+
*/
|
|
28
|
+
var PaymentPayoutRecipientInfo = /*#__PURE__*/function () {
|
|
29
|
+
/**
|
|
30
|
+
* Constructs a new <code>PaymentPayoutRecipientInfo</code>.
|
|
31
|
+
* @alias module:model/PaymentPayoutRecipientInfo
|
|
32
|
+
*/
|
|
33
|
+
function PaymentPayoutRecipientInfo() {
|
|
34
|
+
_classCallCheck(this, PaymentPayoutRecipientInfo);
|
|
35
|
+
PaymentPayoutRecipientInfo.initialize(this);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Initializes the fields of this object.
|
|
40
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
41
|
+
* Only for internal use.
|
|
42
|
+
*/
|
|
43
|
+
return _createClass(PaymentPayoutRecipientInfo, null, [{
|
|
44
|
+
key: "initialize",
|
|
45
|
+
value: function initialize(obj) {}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Constructs a <code>PaymentPayoutRecipientInfo</code> from a plain JavaScript object, optionally creating a new instance.
|
|
49
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
50
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
51
|
+
* @param {module:model/PaymentPayoutRecipientInfo} obj Optional instance to populate.
|
|
52
|
+
* @return {module:model/PaymentPayoutRecipientInfo} The populated <code>PaymentPayoutRecipientInfo</code> instance.
|
|
53
|
+
*/
|
|
54
|
+
}, {
|
|
55
|
+
key: "constructFromObject",
|
|
56
|
+
value: function constructFromObject(data, obj) {
|
|
57
|
+
if (data) {
|
|
58
|
+
obj = obj || new PaymentPayoutRecipientInfo();
|
|
59
|
+
if (data.hasOwnProperty('address')) {
|
|
60
|
+
obj['address'] = _ApiClient["default"].convertToType(data['address'], 'String');
|
|
61
|
+
}
|
|
62
|
+
if (data.hasOwnProperty('token_id')) {
|
|
63
|
+
obj['token_id'] = _ApiClient["default"].convertToType(data['token_id'], 'String');
|
|
64
|
+
}
|
|
65
|
+
if (data.hasOwnProperty('currency')) {
|
|
66
|
+
obj['currency'] = _ApiClient["default"].convertToType(data['currency'], 'String');
|
|
67
|
+
}
|
|
68
|
+
if (data.hasOwnProperty('bank_account_id')) {
|
|
69
|
+
obj['bank_account_id'] = _ApiClient["default"].convertToType(data['bank_account_id'], 'String');
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return obj;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Validates the JSON data with respect to <code>PaymentPayoutRecipientInfo</code>.
|
|
77
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
78
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>PaymentPayoutRecipientInfo</code>.
|
|
79
|
+
*/
|
|
80
|
+
}, {
|
|
81
|
+
key: "validateJSON",
|
|
82
|
+
value: function validateJSON(data) {
|
|
83
|
+
// ensure the json data is a string
|
|
84
|
+
if (data['address'] && !(typeof data['address'] === 'string' || data['address'] instanceof String)) {
|
|
85
|
+
throw new Error("Expected the field `address` to be a primitive type in the JSON string but got " + data['address']);
|
|
86
|
+
}
|
|
87
|
+
// ensure the json data is a string
|
|
88
|
+
if (data['token_id'] && !(typeof data['token_id'] === 'string' || data['token_id'] instanceof String)) {
|
|
89
|
+
throw new Error("Expected the field `token_id` to be a primitive type in the JSON string but got " + data['token_id']);
|
|
90
|
+
}
|
|
91
|
+
// ensure the json data is a string
|
|
92
|
+
if (data['currency'] && !(typeof data['currency'] === 'string' || data['currency'] instanceof String)) {
|
|
93
|
+
throw new Error("Expected the field `currency` to be a primitive type in the JSON string but got " + data['currency']);
|
|
94
|
+
}
|
|
95
|
+
// ensure the json data is a string
|
|
96
|
+
if (data['bank_account_id'] && !(typeof data['bank_account_id'] === 'string' || data['bank_account_id'] instanceof String)) {
|
|
97
|
+
throw new Error("Expected the field `bank_account_id` to be a primitive type in the JSON string but got " + data['bank_account_id']);
|
|
98
|
+
}
|
|
99
|
+
return true;
|
|
100
|
+
}
|
|
101
|
+
}]);
|
|
102
|
+
}();
|
|
103
|
+
/**
|
|
104
|
+
* The recipient's wallet address where the payout will be sent.
|
|
105
|
+
* @member {String} address
|
|
106
|
+
*/
|
|
107
|
+
PaymentPayoutRecipientInfo.prototype['address'] = undefined;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* The token ID for the cryptocurrency to be sent to the recipient. If `recipient_info.token_id` is on a different chain than `payout_param.token_id`, the token will be automatically bridged to the chain specified in `recipient_info.token_id`.
|
|
111
|
+
* @member {String} token_id
|
|
112
|
+
*/
|
|
113
|
+
PaymentPayoutRecipientInfo.prototype['token_id'] = undefined;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* The fiat currency of the bank account to which the payout will be sent.
|
|
117
|
+
* @member {String} currency
|
|
118
|
+
*/
|
|
119
|
+
PaymentPayoutRecipientInfo.prototype['currency'] = undefined;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* The ID of the bank account to which the payout will be sent. You can retrieve the bank account ID by calling [List destination entries](https://www.cobo.com/payments/en/api-references/payment/list-destination-entries).
|
|
123
|
+
* @member {String} bank_account_id
|
|
124
|
+
*/
|
|
125
|
+
PaymentPayoutRecipientInfo.prototype['bank_account_id'] = undefined;
|
|
126
|
+
var _default = exports["default"] = PaymentPayoutRecipientInfo;
|
|
@@ -36,10 +36,15 @@ var PaymentPayoutStatus = exports["default"] = /*#__PURE__*/function () {
|
|
|
36
36
|
*/
|
|
37
37
|
_defineProperty(this, "Pending", "Pending");
|
|
38
38
|
/**
|
|
39
|
-
* value: "
|
|
39
|
+
* value: "Preparing"
|
|
40
40
|
* @const
|
|
41
41
|
*/
|
|
42
|
-
_defineProperty(this, "
|
|
42
|
+
_defineProperty(this, "Preparing", "Preparing");
|
|
43
|
+
/**
|
|
44
|
+
* value: "Transferring"
|
|
45
|
+
* @const
|
|
46
|
+
*/
|
|
47
|
+
_defineProperty(this, "Transferring", "Transferring");
|
|
43
48
|
/**
|
|
44
49
|
* value: "Completed"
|
|
45
50
|
* @const
|
|
@@ -56,10 +61,10 @@ var PaymentPayoutStatus = exports["default"] = /*#__PURE__*/function () {
|
|
|
56
61
|
*/
|
|
57
62
|
_defineProperty(this, "Failed", "Failed");
|
|
58
63
|
/**
|
|
59
|
-
* value: "
|
|
64
|
+
* value: "RejectedByBank"
|
|
60
65
|
* @const
|
|
61
66
|
*/
|
|
62
|
-
_defineProperty(this, "
|
|
67
|
+
_defineProperty(this, "RejectedByBank", "RejectedByBank");
|
|
63
68
|
/**
|
|
64
69
|
* value: "unknown_default_open_api"
|
|
65
70
|
* @const
|
|
@@ -40,7 +40,7 @@ var PaymentRefundEventData = /*#__PURE__*/function () {
|
|
|
40
40
|
* @alias module:model/PaymentRefundEventData
|
|
41
41
|
* @implements module:model/WebhookEventDataType
|
|
42
42
|
* @implements module:model/Refund
|
|
43
|
-
* @param data_type {module:model/PaymentRefundEventData.DataTypeEnum} The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data.
|
|
43
|
+
* @param data_type {module:model/PaymentRefundEventData.DataTypeEnum} The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data.
|
|
44
44
|
* @param refund_id {String} The refund order ID.
|
|
45
45
|
* @param token_id {String} The ID of the cryptocurrency used for refund.
|
|
46
46
|
* @param chain_id {String} The ID of the blockchain network on which the refund transaction occurs.
|
|
@@ -253,7 +253,7 @@ var PaymentRefundEventData = /*#__PURE__*/function () {
|
|
|
253
253
|
PaymentRefundEventData.RequiredProperties = ["data_type", "refund_id", "token_id", "chain_id", "amount", "to_address", "status"];
|
|
254
254
|
|
|
255
255
|
/**
|
|
256
|
-
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data.
|
|
256
|
+
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data.
|
|
257
257
|
* @member {module:model/PaymentRefundEventData.DataTypeEnum} data_type
|
|
258
258
|
*/
|
|
259
259
|
PaymentRefundEventData.prototype['data_type'] = undefined;
|
|
@@ -365,7 +365,7 @@ PaymentRefundEventData.prototype['commission_fee'] = undefined;
|
|
|
365
365
|
|
|
366
366
|
// Implement WebhookEventDataType interface:
|
|
367
367
|
/**
|
|
368
|
-
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data.
|
|
368
|
+
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data.
|
|
369
369
|
* @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
|
|
370
370
|
*/
|
|
371
371
|
_WebhookEventDataType["default"].prototype['data_type'] = undefined;
|
|
@@ -534,6 +534,11 @@ PaymentRefundEventData['DataTypeEnum'] = {
|
|
|
534
534
|
* @const
|
|
535
535
|
*/
|
|
536
536
|
"PaymentPayout": "PaymentPayout",
|
|
537
|
+
/**
|
|
538
|
+
* value: "PaymentBulkSend"
|
|
539
|
+
* @const
|
|
540
|
+
*/
|
|
541
|
+
"PaymentBulkSend": "PaymentBulkSend",
|
|
537
542
|
/**
|
|
538
543
|
* value: "BalanceUpdateInfo"
|
|
539
544
|
* @const
|
|
@@ -554,6 +559,11 @@ PaymentRefundEventData['DataTypeEnum'] = {
|
|
|
554
559
|
* @const
|
|
555
560
|
*/
|
|
556
561
|
"ComplianceKytScreenings": "ComplianceKytScreenings",
|
|
562
|
+
/**
|
|
563
|
+
* value: "ComplianceKyaScreenings"
|
|
564
|
+
* @const
|
|
565
|
+
*/
|
|
566
|
+
"ComplianceKyaScreenings": "ComplianceKyaScreenings",
|
|
557
567
|
/**
|
|
558
568
|
* value: "unknown_default_open_api"
|
|
559
569
|
* @const
|
|
@@ -42,7 +42,7 @@ var PaymentSettlementEvent = /*#__PURE__*/function () {
|
|
|
42
42
|
* @alias module:model/PaymentSettlementEvent
|
|
43
43
|
* @implements module:model/WebhookEventDataType
|
|
44
44
|
* @implements module:model/Settlement
|
|
45
|
-
* @param data_type {module:model/PaymentSettlementEvent.DataTypeEnum} The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data.
|
|
45
|
+
* @param data_type {module:model/PaymentSettlementEvent.DataTypeEnum} The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data.
|
|
46
46
|
* @param settlement_request_id {String} The settlement request ID generated by Cobo.
|
|
47
47
|
* @param request_id {String} The request ID provided by you when creating the settlement request.
|
|
48
48
|
* @param status {module:model/SettleRequestStatus}
|
|
@@ -212,7 +212,7 @@ var PaymentSettlementEvent = /*#__PURE__*/function () {
|
|
|
212
212
|
PaymentSettlementEvent.RequiredProperties = ["data_type", "settlement_request_id", "request_id", "status", "settlements"];
|
|
213
213
|
|
|
214
214
|
/**
|
|
215
|
-
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data.
|
|
215
|
+
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data.
|
|
216
216
|
* @member {module:model/PaymentSettlementEvent.DataTypeEnum} data_type
|
|
217
217
|
*/
|
|
218
218
|
PaymentSettlementEvent.prototype['data_type'] = undefined;
|
|
@@ -291,7 +291,7 @@ PaymentSettlementEvent.prototype['bank_account'] = undefined;
|
|
|
291
291
|
|
|
292
292
|
// Implement WebhookEventDataType interface:
|
|
293
293
|
/**
|
|
294
|
-
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data.
|
|
294
|
+
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data.
|
|
295
295
|
* @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
|
|
296
296
|
*/
|
|
297
297
|
_WebhookEventDataType["default"].prototype['data_type'] = undefined;
|
|
@@ -432,6 +432,11 @@ PaymentSettlementEvent['DataTypeEnum'] = {
|
|
|
432
432
|
* @const
|
|
433
433
|
*/
|
|
434
434
|
"PaymentPayout": "PaymentPayout",
|
|
435
|
+
/**
|
|
436
|
+
* value: "PaymentBulkSend"
|
|
437
|
+
* @const
|
|
438
|
+
*/
|
|
439
|
+
"PaymentBulkSend": "PaymentBulkSend",
|
|
435
440
|
/**
|
|
436
441
|
* value: "BalanceUpdateInfo"
|
|
437
442
|
* @const
|
|
@@ -452,6 +457,11 @@ PaymentSettlementEvent['DataTypeEnum'] = {
|
|
|
452
457
|
* @const
|
|
453
458
|
*/
|
|
454
459
|
"ComplianceKytScreenings": "ComplianceKytScreenings",
|
|
460
|
+
/**
|
|
461
|
+
* value: "ComplianceKyaScreenings"
|
|
462
|
+
* @const
|
|
463
|
+
*/
|
|
464
|
+
"ComplianceKyaScreenings": "ComplianceKyaScreenings",
|
|
455
465
|
/**
|
|
456
466
|
* value: "unknown_default_open_api"
|
|
457
467
|
* @const
|
|
@@ -49,7 +49,7 @@ var PaymentTransactionEventData = /*#__PURE__*/function () {
|
|
|
49
49
|
* @alias module:model/PaymentTransactionEventData
|
|
50
50
|
* @implements module:model/WebhookEventDataType
|
|
51
51
|
* @implements module:model/Transaction
|
|
52
|
-
* @param data_type {module:model/PaymentTransactionEventData.DataTypeEnum} The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data.
|
|
52
|
+
* @param data_type {module:model/PaymentTransactionEventData.DataTypeEnum} The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data.
|
|
53
53
|
* @param transaction_id {String} The transaction ID.
|
|
54
54
|
* @param wallet_id {String} For deposit transactions, this property represents the wallet ID of the transaction destination. For transactions of other types, this property represents the wallet ID of the transaction source.
|
|
55
55
|
* @param status {module:model/TransactionStatus}
|
|
@@ -378,7 +378,7 @@ var PaymentTransactionEventData = /*#__PURE__*/function () {
|
|
|
378
378
|
PaymentTransactionEventData.RequiredProperties = ["data_type", "transaction_id", "wallet_id", "status", "source", "destination", "initiator_type", "created_timestamp", "updated_timestamp", "acquiring_type"];
|
|
379
379
|
|
|
380
380
|
/**
|
|
381
|
-
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data.
|
|
381
|
+
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data.
|
|
382
382
|
* @member {module:model/PaymentTransactionEventData.DataTypeEnum} data_type
|
|
383
383
|
*/
|
|
384
384
|
PaymentTransactionEventData.prototype['data_type'] = undefined;
|
|
@@ -588,7 +588,7 @@ PaymentTransactionEventData.prototype['custom_payer_id'] = undefined;
|
|
|
588
588
|
|
|
589
589
|
// Implement WebhookEventDataType interface:
|
|
590
590
|
/**
|
|
591
|
-
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data.
|
|
591
|
+
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data.
|
|
592
592
|
* @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
|
|
593
593
|
*/
|
|
594
594
|
_WebhookEventDataType["default"].prototype['data_type'] = undefined;
|
|
@@ -813,6 +813,11 @@ PaymentTransactionEventData['DataTypeEnum'] = {
|
|
|
813
813
|
* @const
|
|
814
814
|
*/
|
|
815
815
|
"PaymentPayout": "PaymentPayout",
|
|
816
|
+
/**
|
|
817
|
+
* value: "PaymentBulkSend"
|
|
818
|
+
* @const
|
|
819
|
+
*/
|
|
820
|
+
"PaymentBulkSend": "PaymentBulkSend",
|
|
816
821
|
/**
|
|
817
822
|
* value: "BalanceUpdateInfo"
|
|
818
823
|
* @const
|
|
@@ -833,6 +838,11 @@ PaymentTransactionEventData['DataTypeEnum'] = {
|
|
|
833
838
|
* @const
|
|
834
839
|
*/
|
|
835
840
|
"ComplianceKytScreenings": "ComplianceKytScreenings",
|
|
841
|
+
/**
|
|
842
|
+
* value: "ComplianceKyaScreenings"
|
|
843
|
+
* @const
|
|
844
|
+
*/
|
|
845
|
+
"ComplianceKyaScreenings": "ComplianceKyaScreenings",
|
|
836
846
|
/**
|
|
837
847
|
* value: "unknown_default_open_api"
|
|
838
848
|
* @const
|
package/dist/model/PspBalance.js
CHANGED
|
@@ -170,7 +170,7 @@ PspBalance.prototype['developer_fee_amount'] = undefined;
|
|
|
170
170
|
PspBalance.prototype['settled_amount'] = undefined;
|
|
171
171
|
|
|
172
172
|
/**
|
|
173
|
-
*
|
|
173
|
+
* This field is reserved for future use.
|
|
174
174
|
* @member {String} payout_amount
|
|
175
175
|
*/
|
|
176
176
|
PspBalance.prototype['payout_amount'] = undefined;
|
|
@@ -182,19 +182,19 @@ PspBalance.prototype['payout_amount'] = undefined;
|
|
|
182
182
|
PspBalance.prototype['refunded_amount'] = undefined;
|
|
183
183
|
|
|
184
184
|
/**
|
|
185
|
-
* The total balance of the token available for payout or refund for the developer.
|
|
185
|
+
* The total balance of the token available for payout or refund for the developer. For more information, please refer to [Accounts and fund allocation](https://www.cobo.com/payments/en/guides/amounts-and-balances)
|
|
186
186
|
* @member {String} total_balance
|
|
187
187
|
*/
|
|
188
188
|
PspBalance.prototype['total_balance'] = undefined;
|
|
189
189
|
|
|
190
190
|
/**
|
|
191
|
-
*
|
|
191
|
+
* This field has been deprecated.
|
|
192
192
|
* @member {String} available_balance
|
|
193
193
|
*/
|
|
194
194
|
PspBalance.prototype['available_balance'] = undefined;
|
|
195
195
|
|
|
196
196
|
/**
|
|
197
|
-
*
|
|
197
|
+
* This field is reserved for future use.
|
|
198
198
|
* @member {String} locked_balance
|
|
199
199
|
*/
|
|
200
200
|
PspBalance.prototype['locked_balance'] = undefined;
|
|
@@ -155,7 +155,7 @@ RefundLinkBusinessInfo.prototype['refund_source'] = undefined;
|
|
|
155
155
|
RefundLinkBusinessInfo.prototype['merchant_id'] = undefined;
|
|
156
156
|
|
|
157
157
|
/**
|
|
158
|
-
* The developer fee amount to charge the merchant, denominated in the cryptocurrency of the original payment transaction. This field is only valid when `refund_source` is `Merchant`. For more information, please refer to [
|
|
158
|
+
* The developer fee amount to charge the merchant, denominated in the cryptocurrency of the original payment transaction. This field is only valid when `refund_source` is `Merchant`. For more information, please refer to [Accounts and fund allocation](https://www.cobo.com/payments/en/guides/amounts-and-balances). Must be: - A positive integer with up to two decimal places. - Less than the refund amount
|
|
159
159
|
* @member {String} fee_amount
|
|
160
160
|
*/
|
|
161
161
|
RefundLinkBusinessInfo.prototype['fee_amount'] = undefined;
|