@cobo/cobo-waas2 1.29.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 +24 -9
- package/dist/ApiClient.js +1 -1
- package/dist/api/ComplianceApi.js +2 -2
- package/dist/api/GraphQLApi.js +85 -0
- package/dist/api/PaymentApi.js +218 -86
- package/dist/api/SwapsApi.js +3 -0
- package/dist/api/WalletsApi.js +18 -18
- package/dist/index.js +112 -28
- package/dist/model/AddressesEventData.js +8 -3
- package/dist/model/{AllocationRecord.js → AllocationItem.js} +42 -42
- package/dist/model/{AllocationRequest.js → AllocationParam.js} +33 -33
- package/dist/model/BalanceUpdateInfoEventData.js +8 -3
- package/dist/model/BatchAllocation.js +11 -11
- package/dist/model/BatchAllocationDetail.js +15 -17
- package/dist/model/BridgingFee.js +3 -3
- package/dist/model/ChainsEventData.js +8 -3
- package/dist/model/ComplianceDispositionUpdateEventData.js +8 -3
- package/dist/model/ComplianceKyaScreeningsUpdateEventData.js +8 -3
- package/dist/model/ComplianceKytScreeningsUpdateEventData.js +8 -3
- package/dist/model/ContractCallParams.js +1 -1
- package/dist/model/CreateBatchAllocationRequest.js +17 -17
- package/dist/model/CreateBulkSendRequest.js +167 -0
- package/dist/model/CreateBulkSendRequestPayoutParamsInner.js +153 -0
- package/dist/model/CreateKyaScreeningsBody.js +3 -3
- package/dist/model/CreatePaymentOrderRequest.js +7 -5
- package/dist/model/CreatePayoutRequest.js +33 -26
- package/dist/model/CreateTopUpAddresses.js +139 -0
- package/dist/model/CreateTopUpAddresses201Response.js +107 -0
- package/dist/model/{ListAllocations200Response.js → ListAllocationItems200Response.js} +22 -22
- package/dist/model/{ListPayoutItems200Response.js → ListBulkSendItems200Response.js} +22 -22
- package/dist/model/MPCVaultEventData.js +8 -3
- package/dist/model/OrderLinkBusinessInfo.js +10 -4
- package/dist/model/PaymentAddressUpdateEventData.js +8 -3
- 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 +8 -3
- package/dist/model/PaymentPayout.js +64 -46
- package/dist/model/PaymentPayoutDetail.js +166 -52
- package/dist/model/PaymentPayoutEvent.js +149 -82
- package/dist/model/PaymentPayoutItem.js +9 -167
- package/dist/model/PaymentPayoutParam.js +6 -47
- package/dist/model/PaymentPayoutRecipientInfo.js +126 -0
- package/dist/model/PaymentPayoutStatus.js +9 -4
- package/dist/model/PaymentRefundEventData.js +8 -3
- package/dist/model/PaymentSettlementEvent.js +8 -3
- package/dist/model/PaymentTransactionEventData.js +8 -3
- package/dist/model/SuspendedTokenEventData.js +8 -3
- package/dist/model/TSSRequestWebhookEventData.js +8 -3
- package/dist/model/TokenListingEventData.js +8 -3
- package/dist/model/TokensEventData.js +8 -3
- package/dist/model/TransactionCoboCategory.js +5 -0
- package/dist/model/TransactionExtraType.js +5 -0
- package/dist/model/TransactionWalletConnectInfo.js +146 -0
- package/dist/model/TransactionWebhookEventData.js +8 -3
- package/dist/model/WalletInfoEventData.js +8 -3
- package/dist/model/WebhookEventData.js +76 -17
- package/dist/model/WebhookEventDataType.js +7 -2
- package/dist/model/WebhookEventType.js +10 -0
- package/docs/AddressesEventData.md +3 -1
- package/docs/AllocationItem.md +15 -0
- package/docs/AllocationParam.md +13 -0
- package/docs/BalanceUpdateInfoEventData.md +3 -1
- package/docs/BatchAllocation.md +1 -1
- package/docs/BatchAllocationDetail.md +1 -1
- package/docs/BridgingFee.md +2 -2
- package/docs/ChainsEventData.md +3 -1
- package/docs/ComplianceApi.md +1 -1
- package/docs/ComplianceDispositionUpdateEventData.md +3 -1
- package/docs/ComplianceKyaScreeningsUpdateEventData.md +3 -1
- package/docs/ComplianceKytScreeningsUpdateEventData.md +3 -1
- package/docs/ContractCallParams.md +1 -1
- package/docs/CreateBatchAllocationRequest.md +1 -1
- package/docs/CreateBulkSendRequest.md +12 -0
- package/docs/CreateBulkSendRequestPayoutParamsInner.md +12 -0
- package/docs/CreateKyaScreeningsBody.md +1 -1
- package/docs/CreatePaymentOrderRequest.md +2 -2
- package/docs/CreatePayoutRequest.md +3 -3
- package/docs/CreateTopUpAddresses.md +11 -0
- package/docs/CreateTopUpAddresses201Response.md +9 -0
- package/docs/GraphQLApi.md +61 -0
- package/docs/{ListAllocations200Response.md → ListAllocationItems200Response.md} +2 -2
- package/docs/{ListPayoutItems200Response.md → ListBulkSendItems200Response.md} +2 -2
- package/docs/MPCVaultEventData.md +3 -1
- package/docs/OrderLinkBusinessInfo.md +3 -3
- package/docs/PaymentAddressUpdateEventData.md +3 -1
- package/docs/PaymentApi.md +231 -76
- 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 +3 -1
- package/docs/PaymentPayout.md +8 -7
- package/docs/PaymentPayoutDetail.md +10 -8
- package/docs/PaymentPayoutEvent.md +13 -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 +3 -1
- package/docs/PaymentSettlementEvent.md +3 -1
- package/docs/PaymentTransactionEventData.md +3 -1
- package/docs/SuspendedTokenEventData.md +3 -1
- package/docs/SwapsApi.md +2 -0
- package/docs/TSSRequestWebhookEventData.md +3 -1
- package/docs/TokenListingEventData.md +3 -1
- package/docs/TokensEventData.md +3 -1
- package/docs/TransactionCoboCategory.md +2 -0
- package/docs/TransactionExtraType.md +2 -0
- package/docs/TransactionWalletConnectInfo.md +12 -0
- package/docs/TransactionWebhookEventData.md +3 -1
- package/docs/WalletInfoEventData.md +3 -1
- package/docs/WalletsApi.md +9 -9
- package/docs/WebhookEventData.md +15 -8
- package/docs/WebhookEventDataType.md +3 -1
- package/docs/WebhookEventType.md +4 -0
- package/package.json +1 -1
- package/dist/model/PaymentPayoutItemDetail.js +0 -299
- package/docs/AllocationRecord.md +0 -15
- package/docs/AllocationRequest.md +0 -13
- package/docs/PaymentPayoutItemDetail.md +0 -22
|
@@ -25,22 +25,22 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
25
25
|
*
|
|
26
26
|
*/
|
|
27
27
|
/**
|
|
28
|
-
* The
|
|
29
|
-
* @module model/
|
|
28
|
+
* The AllocationItem model module.
|
|
29
|
+
* @module model/AllocationItem
|
|
30
30
|
*/
|
|
31
|
-
var
|
|
31
|
+
var AllocationItem = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
33
|
-
* Constructs a new <code>
|
|
34
|
-
* @alias module:model/
|
|
35
|
-
* @param
|
|
33
|
+
* Constructs a new <code>AllocationItem</code>.
|
|
34
|
+
* @alias module:model/AllocationItem
|
|
35
|
+
* @param allocation_item_id {String} The allocation item ID generated by Cobo.
|
|
36
36
|
* @param batch_allocation_id {String} The batch allocation ID generated by Cobo.
|
|
37
|
-
* @param token_id {String} The ID of the cryptocurrency to
|
|
38
|
-
* @param amount {String} The amount
|
|
39
|
-
* @param description {String} The description of the allocation
|
|
37
|
+
* @param token_id {String} The ID of the cryptocurrency you want to allocation. 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`
|
|
38
|
+
* @param amount {String} The allocation amount.
|
|
39
|
+
* @param description {String} The description of the allocation item.
|
|
40
40
|
*/
|
|
41
|
-
function
|
|
42
|
-
_classCallCheck(this,
|
|
43
|
-
|
|
41
|
+
function AllocationItem(allocation_item_id, batch_allocation_id, token_id, amount, description) {
|
|
42
|
+
_classCallCheck(this, AllocationItem);
|
|
43
|
+
AllocationItem.initialize(this, allocation_item_id, batch_allocation_id, token_id, amount, description);
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
/**
|
|
@@ -48,10 +48,10 @@ var AllocationRecord = /*#__PURE__*/function () {
|
|
|
48
48
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
49
49
|
* Only for internal use.
|
|
50
50
|
*/
|
|
51
|
-
return _createClass(
|
|
51
|
+
return _createClass(AllocationItem, null, [{
|
|
52
52
|
key: "initialize",
|
|
53
|
-
value: function initialize(obj,
|
|
54
|
-
obj['
|
|
53
|
+
value: function initialize(obj, allocation_item_id, batch_allocation_id, token_id, amount, description) {
|
|
54
|
+
obj['allocation_item_id'] = allocation_item_id;
|
|
55
55
|
obj['batch_allocation_id'] = batch_allocation_id;
|
|
56
56
|
obj['token_id'] = token_id;
|
|
57
57
|
obj['amount'] = amount;
|
|
@@ -59,19 +59,19 @@ var AllocationRecord = /*#__PURE__*/function () {
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
/**
|
|
62
|
-
* Constructs a <code>
|
|
62
|
+
* Constructs a <code>AllocationItem</code> from a plain JavaScript object, optionally creating a new instance.
|
|
63
63
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
64
64
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
65
|
-
* @param {module:model/
|
|
66
|
-
* @return {module:model/
|
|
65
|
+
* @param {module:model/AllocationItem} obj Optional instance to populate.
|
|
66
|
+
* @return {module:model/AllocationItem} The populated <code>AllocationItem</code> instance.
|
|
67
67
|
*/
|
|
68
68
|
}, {
|
|
69
69
|
key: "constructFromObject",
|
|
70
70
|
value: function constructFromObject(data, obj) {
|
|
71
71
|
if (data) {
|
|
72
|
-
obj = obj || new
|
|
73
|
-
if (data.hasOwnProperty('
|
|
74
|
-
obj['
|
|
72
|
+
obj = obj || new AllocationItem();
|
|
73
|
+
if (data.hasOwnProperty('allocation_item_id')) {
|
|
74
|
+
obj['allocation_item_id'] = _ApiClient["default"].convertToType(data['allocation_item_id'], 'String');
|
|
75
75
|
}
|
|
76
76
|
if (data.hasOwnProperty('batch_allocation_id')) {
|
|
77
77
|
obj['batch_allocation_id'] = _ApiClient["default"].convertToType(data['batch_allocation_id'], 'String');
|
|
@@ -96,15 +96,15 @@ var AllocationRecord = /*#__PURE__*/function () {
|
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
/**
|
|
99
|
-
* Validates the JSON data with respect to <code>
|
|
99
|
+
* Validates the JSON data with respect to <code>AllocationItem</code>.
|
|
100
100
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
101
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>
|
|
101
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>AllocationItem</code>.
|
|
102
102
|
*/
|
|
103
103
|
}, {
|
|
104
104
|
key: "validateJSON",
|
|
105
105
|
value: function validateJSON(data) {
|
|
106
106
|
// check to make sure all required properties are present in the JSON string
|
|
107
|
-
var _iterator = _createForOfIteratorHelper(
|
|
107
|
+
var _iterator = _createForOfIteratorHelper(AllocationItem.RequiredProperties),
|
|
108
108
|
_step;
|
|
109
109
|
try {
|
|
110
110
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -119,8 +119,8 @@ var AllocationRecord = /*#__PURE__*/function () {
|
|
|
119
119
|
} finally {
|
|
120
120
|
_iterator.f();
|
|
121
121
|
}
|
|
122
|
-
if (data['
|
|
123
|
-
throw new Error("Expected the field `
|
|
122
|
+
if (data['allocation_item_id'] && !(typeof data['allocation_item_id'] === 'string' || data['allocation_item_id'] instanceof String)) {
|
|
123
|
+
throw new Error("Expected the field `allocation_item_id` to be a primitive type in the JSON string but got " + data['allocation_item_id']);
|
|
124
124
|
}
|
|
125
125
|
// ensure the json data is a string
|
|
126
126
|
if (data['batch_allocation_id'] && !(typeof data['batch_allocation_id'] === 'string' || data['batch_allocation_id'] instanceof String)) {
|
|
@@ -150,47 +150,47 @@ var AllocationRecord = /*#__PURE__*/function () {
|
|
|
150
150
|
}
|
|
151
151
|
}]);
|
|
152
152
|
}();
|
|
153
|
-
|
|
153
|
+
AllocationItem.RequiredProperties = ["allocation_item_id", "batch_allocation_id", "token_id", "amount", "description"];
|
|
154
154
|
|
|
155
155
|
/**
|
|
156
|
-
* The allocation
|
|
157
|
-
* @member {String}
|
|
156
|
+
* The allocation item ID generated by Cobo.
|
|
157
|
+
* @member {String} allocation_item_id
|
|
158
158
|
*/
|
|
159
|
-
|
|
159
|
+
AllocationItem.prototype['allocation_item_id'] = undefined;
|
|
160
160
|
|
|
161
161
|
/**
|
|
162
162
|
* The batch allocation ID generated by Cobo.
|
|
163
163
|
* @member {String} batch_allocation_id
|
|
164
164
|
*/
|
|
165
|
-
|
|
165
|
+
AllocationItem.prototype['batch_allocation_id'] = undefined;
|
|
166
166
|
|
|
167
167
|
/**
|
|
168
|
-
* The ID of the cryptocurrency to
|
|
168
|
+
* The ID of the cryptocurrency you want to allocation. 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`
|
|
169
169
|
* @member {String} token_id
|
|
170
170
|
*/
|
|
171
|
-
|
|
171
|
+
AllocationItem.prototype['token_id'] = undefined;
|
|
172
172
|
|
|
173
173
|
/**
|
|
174
|
-
* The amount
|
|
174
|
+
* The allocation amount.
|
|
175
175
|
* @member {String} amount
|
|
176
176
|
*/
|
|
177
|
-
|
|
177
|
+
AllocationItem.prototype['amount'] = undefined;
|
|
178
178
|
|
|
179
179
|
/**
|
|
180
|
-
* The source account.
|
|
180
|
+
* The source account from which the allocation will be deducted. - If the source account is a merchant account, provide the merchant's ID (e.g., \"M1001\"). - If the source account is the developer account, use the string `\"developer\"`.
|
|
181
181
|
* @member {String} source_account
|
|
182
182
|
*/
|
|
183
|
-
|
|
183
|
+
AllocationItem.prototype['source_account'] = undefined;
|
|
184
184
|
|
|
185
185
|
/**
|
|
186
|
-
* The destination account.
|
|
186
|
+
* The destination account to which the allocation will be credited. - If the destination account is a merchant account, provide the merchant's ID (e.g., \"M1001\"). - If the destination account is the developer account, use the string `\"developer\"`.
|
|
187
187
|
* @member {String} destination_account
|
|
188
188
|
*/
|
|
189
|
-
|
|
189
|
+
AllocationItem.prototype['destination_account'] = undefined;
|
|
190
190
|
|
|
191
191
|
/**
|
|
192
|
-
* The description of the allocation
|
|
192
|
+
* The description of the allocation item.
|
|
193
193
|
* @member {String} description
|
|
194
194
|
*/
|
|
195
|
-
|
|
196
|
-
var _default = exports["default"] =
|
|
195
|
+
AllocationItem.prototype['description'] = undefined;
|
|
196
|
+
var _default = exports["default"] = AllocationItem;
|
|
@@ -25,22 +25,22 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
25
25
|
*
|
|
26
26
|
*/
|
|
27
27
|
/**
|
|
28
|
-
* The
|
|
29
|
-
* @module model/
|
|
28
|
+
* The AllocationParam model module.
|
|
29
|
+
* @module model/AllocationParam
|
|
30
30
|
*/
|
|
31
|
-
var
|
|
31
|
+
var AllocationParam = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
33
|
-
* Constructs a new <code>
|
|
34
|
-
* @alias module:model/
|
|
35
|
-
* @param token_id {String} The ID of the cryptocurrency you want to
|
|
36
|
-
* @param amount {String} The amount
|
|
37
|
-
* @param source_account {String} The source account.
|
|
38
|
-
* @param destination_account {String} The destination account.
|
|
39
|
-
* @param description {String} The description of the allocation
|
|
33
|
+
* Constructs a new <code>AllocationParam</code>.
|
|
34
|
+
* @alias module:model/AllocationParam
|
|
35
|
+
* @param token_id {String} The ID of the cryptocurrency you want to allocation. 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`
|
|
36
|
+
* @param amount {String} The allocation amount.
|
|
37
|
+
* @param source_account {String} The source account from which the allocation will be deducted. - If the source account is a merchant account, provide the merchant's ID (e.g., \"M1001\"). - If the source account is the developer account, use the string `\"developer\"`.
|
|
38
|
+
* @param destination_account {String} The destination account to which the allocation will be credited. - If the destination account is a merchant account, provide the merchant's ID (e.g., \"M1001\"). - If the destination account is the developer account, use the string `\"developer\"`.
|
|
39
|
+
* @param description {String} The description of the allocation.
|
|
40
40
|
*/
|
|
41
|
-
function
|
|
42
|
-
_classCallCheck(this,
|
|
43
|
-
|
|
41
|
+
function AllocationParam(token_id, amount, source_account, destination_account, description) {
|
|
42
|
+
_classCallCheck(this, AllocationParam);
|
|
43
|
+
AllocationParam.initialize(this, token_id, amount, source_account, destination_account, description);
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
/**
|
|
@@ -48,7 +48,7 @@ var AllocationRequest = /*#__PURE__*/function () {
|
|
|
48
48
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
49
49
|
* Only for internal use.
|
|
50
50
|
*/
|
|
51
|
-
return _createClass(
|
|
51
|
+
return _createClass(AllocationParam, null, [{
|
|
52
52
|
key: "initialize",
|
|
53
53
|
value: function initialize(obj, token_id, amount, source_account, destination_account, description) {
|
|
54
54
|
obj['token_id'] = token_id;
|
|
@@ -59,17 +59,17 @@ var AllocationRequest = /*#__PURE__*/function () {
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
/**
|
|
62
|
-
* Constructs a <code>
|
|
62
|
+
* Constructs a <code>AllocationParam</code> from a plain JavaScript object, optionally creating a new instance.
|
|
63
63
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
64
64
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
65
|
-
* @param {module:model/
|
|
66
|
-
* @return {module:model/
|
|
65
|
+
* @param {module:model/AllocationParam} obj Optional instance to populate.
|
|
66
|
+
* @return {module:model/AllocationParam} The populated <code>AllocationParam</code> instance.
|
|
67
67
|
*/
|
|
68
68
|
}, {
|
|
69
69
|
key: "constructFromObject",
|
|
70
70
|
value: function constructFromObject(data, obj) {
|
|
71
71
|
if (data) {
|
|
72
|
-
obj = obj || new
|
|
72
|
+
obj = obj || new AllocationParam();
|
|
73
73
|
if (data.hasOwnProperty('token_id')) {
|
|
74
74
|
obj['token_id'] = _ApiClient["default"].convertToType(data['token_id'], 'String');
|
|
75
75
|
}
|
|
@@ -90,15 +90,15 @@ var AllocationRequest = /*#__PURE__*/function () {
|
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
|
-
* Validates the JSON data with respect to <code>
|
|
93
|
+
* Validates the JSON data with respect to <code>AllocationParam</code>.
|
|
94
94
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
95
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>
|
|
95
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>AllocationParam</code>.
|
|
96
96
|
*/
|
|
97
97
|
}, {
|
|
98
98
|
key: "validateJSON",
|
|
99
99
|
value: function validateJSON(data) {
|
|
100
100
|
// check to make sure all required properties are present in the JSON string
|
|
101
|
-
var _iterator = _createForOfIteratorHelper(
|
|
101
|
+
var _iterator = _createForOfIteratorHelper(AllocationParam.RequiredProperties),
|
|
102
102
|
_step;
|
|
103
103
|
try {
|
|
104
104
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -136,35 +136,35 @@ var AllocationRequest = /*#__PURE__*/function () {
|
|
|
136
136
|
}
|
|
137
137
|
}]);
|
|
138
138
|
}();
|
|
139
|
-
|
|
139
|
+
AllocationParam.RequiredProperties = ["token_id", "amount", "source_account", "destination_account", "description"];
|
|
140
140
|
|
|
141
141
|
/**
|
|
142
|
-
* The ID of the cryptocurrency you want to
|
|
142
|
+
* The ID of the cryptocurrency you want to allocation. 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`
|
|
143
143
|
* @member {String} token_id
|
|
144
144
|
*/
|
|
145
|
-
|
|
145
|
+
AllocationParam.prototype['token_id'] = undefined;
|
|
146
146
|
|
|
147
147
|
/**
|
|
148
|
-
* The amount
|
|
148
|
+
* The allocation amount.
|
|
149
149
|
* @member {String} amount
|
|
150
150
|
*/
|
|
151
|
-
|
|
151
|
+
AllocationParam.prototype['amount'] = undefined;
|
|
152
152
|
|
|
153
153
|
/**
|
|
154
|
-
* The source account.
|
|
154
|
+
* The source account from which the allocation will be deducted. - If the source account is a merchant account, provide the merchant's ID (e.g., \"M1001\"). - If the source account is the developer account, use the string `\"developer\"`.
|
|
155
155
|
* @member {String} source_account
|
|
156
156
|
*/
|
|
157
|
-
|
|
157
|
+
AllocationParam.prototype['source_account'] = undefined;
|
|
158
158
|
|
|
159
159
|
/**
|
|
160
|
-
* The destination account.
|
|
160
|
+
* The destination account to which the allocation will be credited. - If the destination account is a merchant account, provide the merchant's ID (e.g., \"M1001\"). - If the destination account is the developer account, use the string `\"developer\"`.
|
|
161
161
|
* @member {String} destination_account
|
|
162
162
|
*/
|
|
163
|
-
|
|
163
|
+
AllocationParam.prototype['destination_account'] = undefined;
|
|
164
164
|
|
|
165
165
|
/**
|
|
166
|
-
* The description of the allocation
|
|
166
|
+
* The description of the allocation.
|
|
167
167
|
* @member {String} description
|
|
168
168
|
*/
|
|
169
|
-
|
|
170
|
-
var _default = exports["default"] =
|
|
169
|
+
AllocationParam.prototype['description'] = undefined;
|
|
170
|
+
var _default = exports["default"] = AllocationParam;
|
|
@@ -37,7 +37,7 @@ var BalanceUpdateInfoEventData = /*#__PURE__*/function () {
|
|
|
37
37
|
* @alias module:model/BalanceUpdateInfoEventData
|
|
38
38
|
* @implements module:model/WebhookEventDataType
|
|
39
39
|
* @implements module:model/BalanceUpdateInfo
|
|
40
|
-
* @param data_type {module:model/BalanceUpdateInfoEventData.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. - `ComplianceKyaScreenings`: The compliance KYA screenings event data.
|
|
40
|
+
* @param data_type {module:model/BalanceUpdateInfoEventData.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.
|
|
41
41
|
* @param token_id {String} The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens).
|
|
42
42
|
* @param address {String} The wallet address.
|
|
43
43
|
* @param wallet_uuid {String} The wallet ID.
|
|
@@ -156,7 +156,7 @@ var BalanceUpdateInfoEventData = /*#__PURE__*/function () {
|
|
|
156
156
|
BalanceUpdateInfoEventData.RequiredProperties = ["data_type", "token_id", "address", "wallet_uuid", "updated_timestamp", "balance"];
|
|
157
157
|
|
|
158
158
|
/**
|
|
159
|
-
* 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. - `ComplianceKyaScreenings`: The compliance KYA screenings event data.
|
|
159
|
+
* 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.
|
|
160
160
|
* @member {module:model/BalanceUpdateInfoEventData.DataTypeEnum} data_type
|
|
161
161
|
*/
|
|
162
162
|
BalanceUpdateInfoEventData.prototype['data_type'] = undefined;
|
|
@@ -192,7 +192,7 @@ BalanceUpdateInfoEventData.prototype['balance'] = undefined;
|
|
|
192
192
|
|
|
193
193
|
// Implement WebhookEventDataType interface:
|
|
194
194
|
/**
|
|
195
|
-
* 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. - `ComplianceKyaScreenings`: The compliance KYA screenings event data.
|
|
195
|
+
* 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.
|
|
196
196
|
* @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
|
|
197
197
|
*/
|
|
198
198
|
_WebhookEventDataType["default"].prototype['data_type'] = undefined;
|
|
@@ -298,6 +298,11 @@ BalanceUpdateInfoEventData['DataTypeEnum'] = {
|
|
|
298
298
|
* @const
|
|
299
299
|
*/
|
|
300
300
|
"PaymentPayout": "PaymentPayout",
|
|
301
|
+
/**
|
|
302
|
+
* value: "PaymentBulkSend"
|
|
303
|
+
* @const
|
|
304
|
+
*/
|
|
305
|
+
"PaymentBulkSend": "PaymentBulkSend",
|
|
301
306
|
/**
|
|
302
307
|
* value: "BalanceUpdateInfo"
|
|
303
308
|
* @const
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
-
var
|
|
8
|
+
var _AllocationParam = _interopRequireDefault(require("./AllocationParam"));
|
|
9
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
10
|
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); }
|
|
11
11
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
@@ -75,8 +75,8 @@ var BatchAllocation = /*#__PURE__*/function () {
|
|
|
75
75
|
if (data.hasOwnProperty('request_id')) {
|
|
76
76
|
obj['request_id'] = _ApiClient["default"].convertToType(data['request_id'], 'String');
|
|
77
77
|
}
|
|
78
|
-
if (data.hasOwnProperty('
|
|
79
|
-
obj['
|
|
78
|
+
if (data.hasOwnProperty('allocation_params')) {
|
|
79
|
+
obj['allocation_params'] = _ApiClient["default"].convertToType(data['allocation_params'], [_AllocationParam["default"]]);
|
|
80
80
|
}
|
|
81
81
|
if (data.hasOwnProperty('initiator')) {
|
|
82
82
|
obj['initiator'] = _ApiClient["default"].convertToType(data['initiator'], 'String');
|
|
@@ -122,19 +122,19 @@ var BatchAllocation = /*#__PURE__*/function () {
|
|
|
122
122
|
if (data['request_id'] && !(typeof data['request_id'] === 'string' || data['request_id'] instanceof String)) {
|
|
123
123
|
throw new Error("Expected the field `request_id` to be a primitive type in the JSON string but got " + data['request_id']);
|
|
124
124
|
}
|
|
125
|
-
if (data['
|
|
125
|
+
if (data['allocation_params']) {
|
|
126
126
|
// data not null
|
|
127
127
|
// ensure the json data is an array
|
|
128
|
-
if (!Array.isArray(data['
|
|
129
|
-
throw new Error("Expected the field `
|
|
128
|
+
if (!Array.isArray(data['allocation_params'])) {
|
|
129
|
+
throw new Error("Expected the field `allocation_params` to be an array in the JSON data but got " + data['allocation_params']);
|
|
130
130
|
}
|
|
131
|
-
// validate the optional field `
|
|
132
|
-
var _iterator2 = _createForOfIteratorHelper(data['
|
|
131
|
+
// validate the optional field `allocation_params` (array)
|
|
132
|
+
var _iterator2 = _createForOfIteratorHelper(data['allocation_params']),
|
|
133
133
|
_step2;
|
|
134
134
|
try {
|
|
135
135
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
136
136
|
var item = _step2.value;
|
|
137
|
-
|
|
137
|
+
_AllocationParam["default"].validateJSON(item);
|
|
138
138
|
}
|
|
139
139
|
} catch (err) {
|
|
140
140
|
_iterator2.e(err);
|
|
@@ -166,9 +166,9 @@ BatchAllocation.prototype['batch_allocation_id'] = undefined;
|
|
|
166
166
|
BatchAllocation.prototype['request_id'] = undefined;
|
|
167
167
|
|
|
168
168
|
/**
|
|
169
|
-
* @member {Array.<module:model/
|
|
169
|
+
* @member {Array.<module:model/AllocationParam>} allocation_params
|
|
170
170
|
*/
|
|
171
|
-
BatchAllocation.prototype['
|
|
171
|
+
BatchAllocation.prototype['allocation_params'] = undefined;
|
|
172
172
|
|
|
173
173
|
/**
|
|
174
174
|
* The initiator of this batch allocation, usually the API key you used to create the batch allocation.
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
-
var
|
|
8
|
+
var _AllocationItem = _interopRequireDefault(require("./AllocationItem"));
|
|
9
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
10
|
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); }
|
|
11
11
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
@@ -35,11 +35,10 @@ var BatchAllocationDetail = /*#__PURE__*/function () {
|
|
|
35
35
|
* @alias module:model/BatchAllocationDetail
|
|
36
36
|
* @param batch_allocation_id {String} The batch allocation ID generated by Cobo.
|
|
37
37
|
* @param request_id {String} The request ID provided by you when creating the batch allocation.
|
|
38
|
-
* @param allocation_records {Array.<module:model/AllocationRecord>}
|
|
39
38
|
*/
|
|
40
|
-
function BatchAllocationDetail(batch_allocation_id, request_id
|
|
39
|
+
function BatchAllocationDetail(batch_allocation_id, request_id) {
|
|
41
40
|
_classCallCheck(this, BatchAllocationDetail);
|
|
42
|
-
BatchAllocationDetail.initialize(this, batch_allocation_id, request_id
|
|
41
|
+
BatchAllocationDetail.initialize(this, batch_allocation_id, request_id);
|
|
43
42
|
}
|
|
44
43
|
|
|
45
44
|
/**
|
|
@@ -49,10 +48,9 @@ var BatchAllocationDetail = /*#__PURE__*/function () {
|
|
|
49
48
|
*/
|
|
50
49
|
return _createClass(BatchAllocationDetail, null, [{
|
|
51
50
|
key: "initialize",
|
|
52
|
-
value: function initialize(obj, batch_allocation_id, request_id
|
|
51
|
+
value: function initialize(obj, batch_allocation_id, request_id) {
|
|
53
52
|
obj['batch_allocation_id'] = batch_allocation_id;
|
|
54
53
|
obj['request_id'] = request_id;
|
|
55
|
-
obj['allocation_records'] = allocation_records;
|
|
56
54
|
}
|
|
57
55
|
|
|
58
56
|
/**
|
|
@@ -73,8 +71,8 @@ var BatchAllocationDetail = /*#__PURE__*/function () {
|
|
|
73
71
|
if (data.hasOwnProperty('request_id')) {
|
|
74
72
|
obj['request_id'] = _ApiClient["default"].convertToType(data['request_id'], 'String');
|
|
75
73
|
}
|
|
76
|
-
if (data.hasOwnProperty('
|
|
77
|
-
obj['
|
|
74
|
+
if (data.hasOwnProperty('allocation_items')) {
|
|
75
|
+
obj['allocation_items'] = _ApiClient["default"].convertToType(data['allocation_items'], [_AllocationItem["default"]]);
|
|
78
76
|
}
|
|
79
77
|
if (data.hasOwnProperty('initiator')) {
|
|
80
78
|
obj['initiator'] = _ApiClient["default"].convertToType(data['initiator'], 'String');
|
|
@@ -120,19 +118,19 @@ var BatchAllocationDetail = /*#__PURE__*/function () {
|
|
|
120
118
|
if (data['request_id'] && !(typeof data['request_id'] === 'string' || data['request_id'] instanceof String)) {
|
|
121
119
|
throw new Error("Expected the field `request_id` to be a primitive type in the JSON string but got " + data['request_id']);
|
|
122
120
|
}
|
|
123
|
-
if (data['
|
|
121
|
+
if (data['allocation_items']) {
|
|
124
122
|
// data not null
|
|
125
123
|
// ensure the json data is an array
|
|
126
|
-
if (!Array.isArray(data['
|
|
127
|
-
throw new Error("Expected the field `
|
|
124
|
+
if (!Array.isArray(data['allocation_items'])) {
|
|
125
|
+
throw new Error("Expected the field `allocation_items` to be an array in the JSON data but got " + data['allocation_items']);
|
|
128
126
|
}
|
|
129
|
-
// validate the optional field `
|
|
130
|
-
var _iterator2 = _createForOfIteratorHelper(data['
|
|
127
|
+
// validate the optional field `allocation_items` (array)
|
|
128
|
+
var _iterator2 = _createForOfIteratorHelper(data['allocation_items']),
|
|
131
129
|
_step2;
|
|
132
130
|
try {
|
|
133
131
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
134
132
|
var item = _step2.value;
|
|
135
|
-
|
|
133
|
+
_AllocationItem["default"].validateJSON(item);
|
|
136
134
|
}
|
|
137
135
|
} catch (err) {
|
|
138
136
|
_iterator2.e(err);
|
|
@@ -149,7 +147,7 @@ var BatchAllocationDetail = /*#__PURE__*/function () {
|
|
|
149
147
|
}
|
|
150
148
|
}]);
|
|
151
149
|
}();
|
|
152
|
-
BatchAllocationDetail.RequiredProperties = ["batch_allocation_id", "request_id"
|
|
150
|
+
BatchAllocationDetail.RequiredProperties = ["batch_allocation_id", "request_id"];
|
|
153
151
|
|
|
154
152
|
/**
|
|
155
153
|
* The batch allocation ID generated by Cobo.
|
|
@@ -164,9 +162,9 @@ BatchAllocationDetail.prototype['batch_allocation_id'] = undefined;
|
|
|
164
162
|
BatchAllocationDetail.prototype['request_id'] = undefined;
|
|
165
163
|
|
|
166
164
|
/**
|
|
167
|
-
* @member {Array.<module:model/
|
|
165
|
+
* @member {Array.<module:model/AllocationItem>} allocation_items
|
|
168
166
|
*/
|
|
169
|
-
BatchAllocationDetail.prototype['
|
|
167
|
+
BatchAllocationDetail.prototype['allocation_items'] = undefined;
|
|
170
168
|
|
|
171
169
|
/**
|
|
172
170
|
* The initiator of this batch allocation, usually the user's API key.
|
|
@@ -32,7 +32,7 @@ var BridgingFee = /*#__PURE__*/function () {
|
|
|
32
32
|
/**
|
|
33
33
|
* Constructs a new <code>BridgingFee</code>.
|
|
34
34
|
* @alias module:model/BridgingFee
|
|
35
|
-
* @param fee_amount {String} The fee charged for bridging tokens to another
|
|
35
|
+
* @param fee_amount {String} The fee charged for bridging tokens to another chain.
|
|
36
36
|
*/
|
|
37
37
|
function BridgingFee(fee_amount) {
|
|
38
38
|
_classCallCheck(this, BridgingFee);
|
|
@@ -117,7 +117,7 @@ var BridgingFee = /*#__PURE__*/function () {
|
|
|
117
117
|
BridgingFee.RequiredProperties = ["fee_amount"];
|
|
118
118
|
|
|
119
119
|
/**
|
|
120
|
-
* The fee charged for bridging tokens to another
|
|
120
|
+
* The fee charged for bridging tokens to another chain.
|
|
121
121
|
* @member {String} fee_amount
|
|
122
122
|
*/
|
|
123
123
|
BridgingFee.prototype['fee_amount'] = undefined;
|
|
@@ -129,7 +129,7 @@ BridgingFee.prototype['fee_amount'] = undefined;
|
|
|
129
129
|
BridgingFee.prototype['received_token_id'] = undefined;
|
|
130
130
|
|
|
131
131
|
/**
|
|
132
|
-
* The final amount of
|
|
132
|
+
* The final amount of the token received after bridging.
|
|
133
133
|
* @member {String} received_amount
|
|
134
134
|
*/
|
|
135
135
|
BridgingFee.prototype['received_amount'] = undefined;
|
|
@@ -37,7 +37,7 @@ var ChainsEventData = /*#__PURE__*/function () {
|
|
|
37
37
|
* Constructs a new <code>ChainsEventData</code>.
|
|
38
38
|
* @alias module:model/ChainsEventData
|
|
39
39
|
* @implements module:model/WebhookEventDataType
|
|
40
|
-
* @param data_type {module:model/ChainsEventData.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. - `ComplianceKyaScreenings`: The compliance KYA screenings event data.
|
|
40
|
+
* @param data_type {module:model/ChainsEventData.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.
|
|
41
41
|
* @param chains {Array.<module:model/ChainInfo>} The enabled chains.
|
|
42
42
|
*/
|
|
43
43
|
function ChainsEventData(data_type, chains) {
|
|
@@ -146,7 +146,7 @@ var ChainsEventData = /*#__PURE__*/function () {
|
|
|
146
146
|
ChainsEventData.RequiredProperties = ["data_type", "chains"];
|
|
147
147
|
|
|
148
148
|
/**
|
|
149
|
-
* 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. - `ComplianceKyaScreenings`: The compliance KYA screenings event data.
|
|
149
|
+
* 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.
|
|
150
150
|
* @member {module:model/ChainsEventData.DataTypeEnum} data_type
|
|
151
151
|
*/
|
|
152
152
|
ChainsEventData.prototype['data_type'] = undefined;
|
|
@@ -169,7 +169,7 @@ ChainsEventData.prototype['wallet_subtypes'] = undefined;
|
|
|
169
169
|
|
|
170
170
|
// Implement WebhookEventDataType interface:
|
|
171
171
|
/**
|
|
172
|
-
* 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. - `ComplianceKyaScreenings`: The compliance KYA screenings event data.
|
|
172
|
+
* 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.
|
|
173
173
|
* @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
|
|
174
174
|
*/
|
|
175
175
|
_WebhookEventDataType["default"].prototype['data_type'] = undefined;
|
|
@@ -250,6 +250,11 @@ ChainsEventData['DataTypeEnum'] = {
|
|
|
250
250
|
* @const
|
|
251
251
|
*/
|
|
252
252
|
"PaymentPayout": "PaymentPayout",
|
|
253
|
+
/**
|
|
254
|
+
* value: "PaymentBulkSend"
|
|
255
|
+
* @const
|
|
256
|
+
*/
|
|
257
|
+
"PaymentBulkSend": "PaymentBulkSend",
|
|
253
258
|
/**
|
|
254
259
|
* value: "BalanceUpdateInfo"
|
|
255
260
|
* @const
|