@cobo/cobo-waas2 1.21.0 → 1.23.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 +80 -5
- package/dist/ApiClient.js +1 -1
- package/dist/PreRequestScript.js +2 -4
- package/dist/api/AddressBooksApi.js +200 -21
- package/dist/api/AutoSweepApi.js +289 -0
- package/dist/api/ComplianceApi.js +214 -0
- package/dist/api/PaymentApi.js +233 -20
- package/dist/api/TokenizationApi.js +1024 -0
- package/dist/api/TransactionsApi.js +105 -4
- package/dist/api/WalletsApi.js +4 -4
- package/dist/api/WalletsMPCWalletsApi.js +2 -2
- package/dist/index.js +259 -7
- package/dist/model/AddressBook.js +12 -12
- package/dist/model/AddressesEventData.js +8 -3
- package/dist/model/ApprovalDetail.js +11 -11
- package/dist/model/ApprovalResult.js +6 -11
- package/dist/model/ApprovalTemplate.js +4 -4
- package/dist/model/ApprovalTransactionResult.js +8 -8
- package/dist/model/ApprovalUserDetail.js +95 -24
- package/dist/model/AutoSweepTask.js +198 -0
- package/dist/model/AutoSweepTaskStatus.js +61 -0
- package/dist/model/BalanceUpdateInfoEventData.js +8 -3
- package/dist/model/ChainInfo.js +14 -1
- package/dist/model/ChainsEventData.js +8 -3
- package/dist/model/ComplianceDispositionUpdateEventData.js +321 -0
- package/dist/model/CreateAddressBookParam.js +165 -0
- package/dist/model/CreateAddressBooks201Response.js +107 -0
- package/dist/model/CreateAddressBooksParam.js +128 -0
- package/dist/model/CreateAutoSweepTask.js +126 -0
- package/dist/model/CreateCryptoAddressRequest.js +5 -5
- package/dist/model/CreateCustodialWalletParams.js +9 -0
- package/dist/model/CreateExchangeWalletParams.js +14 -0
- package/dist/model/CreateMerchantRequest.js +1 -1
- package/dist/model/CreateMpcWalletParams.js +14 -0
- package/dist/model/CreatePaymentOrderRequest.js +3 -3
- package/dist/model/CreateRefundRequest.js +2 -2
- package/dist/model/CreateSafeWalletParams.js +9 -0
- package/dist/model/CreateSettlement.js +28 -5
- package/dist/model/CreateSmartContractWalletParams.js +6 -0
- package/dist/model/CreateSweepToAddress.js +126 -0
- package/dist/model/CreateWalletParams.js +6 -0
- package/dist/model/CreatedWalletInfo.js +6 -0
- package/dist/model/CustodialWalletInfo.js +9 -0
- package/dist/model/DeleteAddressBookById201Response.js +106 -0
- package/dist/model/DeleteCryptoAddress201Response.js +2 -2
- package/dist/model/DispositionEventData.js +170 -0
- package/dist/model/DispositionQueryResponse.js +146 -0
- package/dist/model/DispositionResponse.js +122 -0
- package/dist/model/DispositionStatus.js +116 -0
- package/dist/model/DispositionType.js +66 -0
- package/dist/model/ExchangeWalletInfo.js +14 -0
- package/dist/model/GetTokenizationAllowlistActivation200Response.js +107 -0
- package/dist/model/IsolateDisposition.js +167 -0
- package/dist/model/ListAutoSweepTask200Response.js +123 -0
- package/dist/model/ListMerchantBalances200Response.js +107 -0
- package/dist/model/ListPaymentWalletBalances200Response.js +107 -0
- package/dist/model/ListTokenizationBlocklistAddresses200Response.js +145 -0
- package/dist/model/ListWalletSweepToAddresses200Response.js +107 -0
- package/dist/model/MPCVaultEventData.js +8 -3
- package/dist/model/MPCWalletInfo.js +14 -0
- package/dist/model/Merchant.js +1 -1
- package/dist/model/MerchantBalance.js +201 -0
- package/dist/model/OrgInfo.js +9 -0
- package/dist/model/PaymentAddressUpdateEventData.js +8 -3
- package/dist/model/PaymentOrderEventData.js +8 -3
- package/dist/model/PaymentRefundEventData.js +8 -3
- package/dist/model/PaymentSettlementEvent.js +8 -3
- package/dist/model/PaymentTransactionEventData.js +8 -3
- package/dist/model/PaymentWalletBalance.js +177 -0
- package/dist/model/PspBalance.js +175 -0
- package/dist/model/ReceivedAmountPerAddress.js +126 -0
- package/dist/model/RefundDisposition.js +167 -0
- package/dist/model/RoleDetail.js +41 -6
- package/dist/model/SafeWallet.js +9 -0
- package/dist/model/SettlementDetail.js +1 -1
- package/dist/model/SmartContractWalletInfo.js +6 -0
- package/dist/model/SuspendedTokenEventData.js +8 -3
- package/dist/model/SweepToAddress.js +135 -0
- package/dist/model/SweepToAddressStatus.js +61 -0
- package/dist/model/TSSRequestWebhookEventData.js +8 -3
- package/dist/model/TokenListingEventData.js +8 -3
- package/dist/model/TokenizationActivityInfo.js +8 -4
- package/dist/model/TokenizationAllowlistActivationRequest.js +13 -0
- package/dist/model/TokenizationAllowlistAddressNote.js +4 -4
- package/dist/model/TokenizationAllowlistAddressesResponse.js +145 -0
- package/dist/model/TokenizationBlocklistAddressNote.js +4 -4
- package/dist/model/TokenizationBurnEstimateFeeParams.js +13 -0
- package/dist/model/TokenizationBurnTokenParamsBurnsInner.js +4 -4
- package/dist/model/TokenizationBurnTokenRequest.js +13 -0
- package/dist/model/TokenizationContractCallEstimateFeeParams.js +13 -0
- package/dist/model/TokenizationContractCallParamsData.js +43 -9
- package/dist/model/TokenizationContractCallRequest.js +13 -0
- package/dist/model/TokenizationContractCallType.js +5 -0
- package/dist/model/TokenizationERC20TokenParams.js +4 -4
- package/dist/model/TokenizationEstimateFeeRequestOperationParams.js +6 -0
- package/dist/model/TokenizationEvmContractCallParams.js +2 -2
- package/dist/model/TokenizationIssueEstimateFeeParams.js +13 -0
- package/dist/model/TokenizationIssueTokenParamsTokenParams.js +40 -12
- package/dist/model/TokenizationIssuedTokenRequest.js +14 -1
- package/dist/model/TokenizationMintEstimateFeeParams.js +13 -0
- package/dist/model/TokenizationMintTokenRequest.js +13 -0
- package/dist/model/TokenizationMpcOperationSource.js +2 -2
- package/dist/model/TokenizationPauseEstimateFeeParams.js +13 -0
- package/dist/model/TokenizationPauseTokenRequest.js +13 -0
- package/dist/model/TokenizationSOLTokenParams.js +173 -0
- package/dist/model/TokenizationSolContractCallParams.js +137 -0
- package/dist/model/TokenizationSolTokenPermissionParams.js +140 -0
- package/dist/model/TokenizationToggleAllowlistEstimateFeeParams.js +13 -0
- package/dist/model/TokenizationTokenDetailInfo.js +6 -6
- package/dist/model/TokenizationTokenInfo.js +4 -4
- package/dist/model/TokenizationTokenOperationSource.js +1 -1
- package/dist/model/TokenizationTokenPermissionParams.js +1 -1
- package/dist/model/TokenizationTokenPermissionType.js +15 -0
- package/dist/model/TokenizationTokenStandard.js +5 -0
- package/dist/model/TokenizationUnpauseEstimateFeeParams.js +13 -0
- package/dist/model/TokenizationUnpauseTokenRequest.js +13 -0
- package/dist/model/TokenizationUpdateAllowlistAddressesEstimateFeeParams.js +13 -0
- package/dist/model/TokenizationUpdateAllowlistAddressesParamsAddressesInner.js +1 -1
- package/dist/model/TokenizationUpdateAllowlistAddressesRequest.js +13 -0
- package/dist/model/TokenizationUpdateBlocklistAddressesEstimateFeeParams.js +13 -0
- package/dist/model/TokenizationUpdateBlocklistAddressesParamsAddressesInner.js +1 -1
- package/dist/model/TokenizationUpdateBlocklistAddressesRequest.js +13 -0
- package/dist/model/TokenizationWeb3OperationSource.js +2 -2
- package/dist/model/TokensEventData.js +8 -3
- package/dist/model/TransactionWebhookEventData.js +8 -3
- package/dist/model/UnfreezeDisposition.js +111 -0
- package/dist/model/UpdateAddressBookParam.js +150 -0
- package/dist/model/UpdateCustodialWalletParams.js +13 -6
- package/dist/model/UpdateMerchantByIdRequest.js +1 -1
- package/dist/model/UpdateMpcWalletParams.js +13 -6
- package/dist/model/UpdateWalletParams.js +6 -0
- package/dist/model/WalletInfo.js +6 -0
- package/dist/model/WalletInfoEventData.js +8 -3
- package/dist/model/WebhookEventData.js +62 -10
- package/dist/model/WebhookEventDataType.js +7 -2
- package/dist/model/WebhookEventType.js +5 -0
- package/docs/AddressBook.md +7 -7
- package/docs/AddressBooksApi.md +218 -8
- package/docs/AddressesEventData.md +3 -1
- package/docs/ApprovalDetail.md +4 -4
- package/docs/ApprovalResult.md +3 -5
- package/docs/ApprovalTemplate.md +3 -3
- package/docs/ApprovalTransactionResult.md +4 -4
- package/docs/ApprovalUserDetail.md +15 -9
- package/docs/AutoSweepApi.md +285 -0
- package/docs/AutoSweepTask.md +16 -0
- package/docs/AutoSweepTaskStatus.md +12 -0
- package/docs/BalanceUpdateInfoEventData.md +3 -1
- package/docs/ChainInfo.md +2 -1
- package/docs/ChainsEventData.md +3 -1
- package/docs/ComplianceApi.md +218 -0
- package/docs/ComplianceDispositionUpdateEventData.md +56 -0
- package/docs/CreateAddressBookParam.md +13 -0
- package/docs/CreateAddressBooks201Response.md +9 -0
- package/docs/CreateAddressBooksParam.md +9 -0
- package/docs/CreateAutoSweepTask.md +10 -0
- package/docs/CreateCryptoAddressRequest.md +3 -3
- package/docs/CreateCustodialWalletParams.md +1 -0
- package/docs/CreateExchangeWalletParams.md +1 -0
- package/docs/CreateMerchantRequest.md +1 -1
- package/docs/CreateMpcWalletParams.md +1 -0
- package/docs/CreatePaymentOrderRequest.md +2 -2
- package/docs/CreateRefundRequest.md +1 -1
- package/docs/CreateSafeWalletParams.md +1 -0
- package/docs/CreateSettlement.md +2 -2
- package/docs/CreateSmartContractWalletParams.md +1 -0
- package/docs/CreateSweepToAddress.md +10 -0
- package/docs/CreateWalletParams.md +1 -0
- package/docs/CreatedWalletInfo.md +1 -0
- package/docs/CustodialWalletInfo.md +1 -0
- package/docs/DeleteAddressBookById201Response.md +9 -0
- package/docs/DeleteCryptoAddress201Response.md +1 -1
- package/docs/DispositionEventData.md +14 -0
- package/docs/DispositionQueryResponse.md +12 -0
- package/docs/DispositionResponse.md +10 -0
- package/docs/DispositionStatus.md +34 -0
- package/docs/DispositionType.md +14 -0
- package/docs/ExchangeWalletInfo.md +1 -0
- package/docs/GetTokenizationAllowlistActivation200Response.md +9 -0
- package/docs/IsolateDisposition.md +13 -0
- package/docs/ListAutoSweepTask200Response.md +10 -0
- package/docs/ListMerchantBalances200Response.md +9 -0
- package/docs/ListPaymentWalletBalances200Response.md +9 -0
- package/docs/ListTokenizationBlocklistAddresses200Response.md +10 -0
- package/docs/ListWalletSweepToAddresses200Response.md +9 -0
- package/docs/MPCVaultEventData.md +3 -1
- package/docs/MPCWalletInfo.md +1 -0
- package/docs/Merchant.md +1 -1
- package/docs/MerchantBalance.md +16 -0
- package/docs/OrgInfo.md +1 -0
- package/docs/PaymentAddressUpdateEventData.md +3 -1
- package/docs/PaymentApi.md +229 -11
- package/docs/PaymentOrderEventData.md +3 -1
- package/docs/PaymentRefundEventData.md +3 -1
- package/docs/PaymentSettlementEvent.md +3 -1
- package/docs/PaymentTransactionEventData.md +3 -1
- package/docs/PaymentWalletBalance.md +14 -0
- package/docs/PspBalance.md +14 -0
- package/docs/ReceivedAmountPerAddress.md +10 -0
- package/docs/RefundDisposition.md +13 -0
- package/docs/RoleDetail.md +4 -1
- package/docs/SafeWallet.md +1 -0
- package/docs/SettlementDetail.md +1 -1
- package/docs/SmartContractWalletInfo.md +1 -0
- package/docs/SuspendedTokenEventData.md +3 -1
- package/docs/SweepToAddress.md +11 -0
- package/docs/SweepToAddressStatus.md +12 -0
- package/docs/TSSRequestWebhookEventData.md +3 -1
- package/docs/TokenListingEventData.md +3 -1
- package/docs/TokenizationActivityInfo.md +2 -2
- package/docs/TokenizationAllowlistActivationRequest.md +1 -0
- package/docs/TokenizationAllowlistAddressNote.md +3 -3
- package/docs/TokenizationAllowlistAddressesResponse.md +10 -0
- package/docs/TokenizationApi.md +1069 -0
- package/docs/TokenizationBlocklistAddressNote.md +3 -3
- package/docs/TokenizationBurnEstimateFeeParams.md +1 -0
- package/docs/TokenizationBurnTokenParamsBurnsInner.md +2 -2
- package/docs/TokenizationBurnTokenRequest.md +1 -0
- package/docs/TokenizationContractCallEstimateFeeParams.md +1 -0
- package/docs/TokenizationContractCallParamsData.md +2 -1
- package/docs/TokenizationContractCallRequest.md +1 -0
- package/docs/TokenizationContractCallType.md +2 -0
- package/docs/TokenizationERC20TokenParams.md +1 -1
- package/docs/TokenizationEstimateFeeRequestOperationParams.md +1 -0
- package/docs/TokenizationEvmContractCallParams.md +1 -1
- package/docs/TokenizationIssueEstimateFeeParams.md +1 -0
- package/docs/TokenizationIssueTokenParamsTokenParams.md +2 -2
- package/docs/TokenizationIssuedTokenRequest.md +2 -1
- package/docs/TokenizationMintEstimateFeeParams.md +1 -0
- package/docs/TokenizationMintTokenRequest.md +1 -0
- package/docs/TokenizationMpcOperationSource.md +1 -1
- package/docs/TokenizationPauseEstimateFeeParams.md +1 -0
- package/docs/TokenizationPauseTokenRequest.md +1 -0
- package/docs/TokenizationSOLTokenParams.md +14 -0
- package/docs/TokenizationSolContractCallParams.md +10 -0
- package/docs/TokenizationSolTokenPermissionParams.md +13 -0
- package/docs/TokenizationToggleAllowlistEstimateFeeParams.md +1 -0
- package/docs/TokenizationTokenDetailInfo.md +1 -1
- package/docs/TokenizationTokenInfo.md +1 -1
- package/docs/TokenizationTokenOperationSource.md +1 -1
- package/docs/TokenizationTokenPermissionType.md +6 -0
- package/docs/TokenizationTokenStandard.md +2 -0
- package/docs/TokenizationUnpauseEstimateFeeParams.md +1 -0
- package/docs/TokenizationUnpauseTokenRequest.md +1 -0
- package/docs/TokenizationUpdateAllowlistAddressesEstimateFeeParams.md +1 -0
- package/docs/TokenizationUpdateAllowlistAddressesParamsAddressesInner.md +1 -1
- package/docs/TokenizationUpdateAllowlistAddressesRequest.md +1 -0
- package/docs/TokenizationUpdateBlocklistAddressesEstimateFeeParams.md +1 -0
- package/docs/TokenizationUpdateBlocklistAddressesParamsAddressesInner.md +1 -1
- package/docs/TokenizationUpdateBlocklistAddressesRequest.md +1 -0
- package/docs/TokenizationWeb3OperationSource.md +1 -1
- package/docs/TokensEventData.md +3 -1
- package/docs/TransactionWebhookEventData.md +3 -1
- package/docs/TransactionsApi.md +114 -2
- package/docs/UnfreezeDisposition.md +9 -0
- package/docs/UpdateAddressBookParam.md +12 -0
- package/docs/UpdateCustodialWalletParams.md +2 -1
- package/docs/UpdateMerchantByIdRequest.md +1 -1
- package/docs/UpdateMpcWalletParams.md +2 -1
- package/docs/UpdateWalletParams.md +1 -0
- package/docs/WalletInfo.md +1 -0
- package/docs/WalletInfoEventData.md +3 -1
- package/docs/WalletsApi.md +2 -2
- package/docs/WalletsMPCWalletsApi.md +1 -1
- package/docs/WebhookEventData.md +8 -2
- package/docs/WebhookEventDataType.md +3 -1
- package/docs/WebhookEventType.md +2 -0
- package/package.json +1 -1
- package/dist/model/ApprovalShowInfo.js +0 -140
- package/docs/ApprovalShowInfo.md +0 -13
|
@@ -83,6 +83,9 @@ var TokenizationUnpauseTokenRequest = /*#__PURE__*/function () {
|
|
|
83
83
|
if (data.hasOwnProperty('fee')) {
|
|
84
84
|
obj['fee'] = _TransactionRequestFee["default"].constructFromObject(data['fee']);
|
|
85
85
|
}
|
|
86
|
+
if (data.hasOwnProperty('request_id')) {
|
|
87
|
+
obj['request_id'] = _ApiClient["default"].convertToType(data['request_id'], 'String');
|
|
88
|
+
}
|
|
86
89
|
}
|
|
87
90
|
return obj;
|
|
88
91
|
}
|
|
@@ -128,6 +131,10 @@ var TokenizationUnpauseTokenRequest = /*#__PURE__*/function () {
|
|
|
128
131
|
_TransactionRequestFee["default"].validateJSON(data['fee']);
|
|
129
132
|
}
|
|
130
133
|
}
|
|
134
|
+
// ensure the json data is a string
|
|
135
|
+
if (data['request_id'] && !(typeof data['request_id'] === 'string' || data['request_id'] instanceof String)) {
|
|
136
|
+
throw new Error("Expected the field `request_id` to be a primitive type in the JSON string but got " + data['request_id']);
|
|
137
|
+
}
|
|
131
138
|
return true;
|
|
132
139
|
}
|
|
133
140
|
}]);
|
|
@@ -150,6 +157,12 @@ TokenizationUnpauseTokenRequest.prototype['app_initiator'] = undefined;
|
|
|
150
157
|
*/
|
|
151
158
|
TokenizationUnpauseTokenRequest.prototype['fee'] = undefined;
|
|
152
159
|
|
|
160
|
+
/**
|
|
161
|
+
* The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization.
|
|
162
|
+
* @member {String} request_id
|
|
163
|
+
*/
|
|
164
|
+
TokenizationUnpauseTokenRequest.prototype['request_id'] = undefined;
|
|
165
|
+
|
|
153
166
|
// Implement TokenizationUnpauseTokenParams interface:
|
|
154
167
|
/**
|
|
155
168
|
* @member {module:model/TokenizationTokenOperationSource} source
|
|
@@ -93,6 +93,9 @@ var TokenizationUpdateAllowlistAddressesEstimateFeeParams = /*#__PURE__*/functio
|
|
|
93
93
|
if (data.hasOwnProperty('token_id')) {
|
|
94
94
|
obj['token_id'] = _ApiClient["default"].convertToType(data['token_id'], 'String');
|
|
95
95
|
}
|
|
96
|
+
if (data.hasOwnProperty('request_id')) {
|
|
97
|
+
obj['request_id'] = _ApiClient["default"].convertToType(data['request_id'], 'String');
|
|
98
|
+
}
|
|
96
99
|
}
|
|
97
100
|
return obj;
|
|
98
101
|
}
|
|
@@ -152,6 +155,10 @@ var TokenizationUpdateAllowlistAddressesEstimateFeeParams = /*#__PURE__*/functio
|
|
|
152
155
|
if (data['token_id'] && !(typeof data['token_id'] === 'string' || data['token_id'] instanceof String)) {
|
|
153
156
|
throw new Error("Expected the field `token_id` to be a primitive type in the JSON string but got " + data['token_id']);
|
|
154
157
|
}
|
|
158
|
+
// ensure the json data is a string
|
|
159
|
+
if (data['request_id'] && !(typeof data['request_id'] === 'string' || data['request_id'] instanceof String)) {
|
|
160
|
+
throw new Error("Expected the field `request_id` to be a primitive type in the JSON string but got " + data['request_id']);
|
|
161
|
+
}
|
|
155
162
|
return true;
|
|
156
163
|
}
|
|
157
164
|
}]);
|
|
@@ -185,6 +192,12 @@ TokenizationUpdateAllowlistAddressesEstimateFeeParams.prototype['operation_type'
|
|
|
185
192
|
*/
|
|
186
193
|
TokenizationUpdateAllowlistAddressesEstimateFeeParams.prototype['token_id'] = undefined;
|
|
187
194
|
|
|
195
|
+
/**
|
|
196
|
+
* The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization.
|
|
197
|
+
* @member {String} request_id
|
|
198
|
+
*/
|
|
199
|
+
TokenizationUpdateAllowlistAddressesEstimateFeeParams.prototype['request_id'] = undefined;
|
|
200
|
+
|
|
188
201
|
// Implement TokenizationUpdateAllowlistAddressesParams interface:
|
|
189
202
|
/**
|
|
190
203
|
* @member {module:model/TokenizationUpdateAddressAction} action
|
|
@@ -116,7 +116,7 @@ TokenizationUpdateAllowlistAddressesParamsAddressesInner.RequiredProperties = ["
|
|
|
116
116
|
TokenizationUpdateAllowlistAddressesParamsAddressesInner.prototype['address'] = undefined;
|
|
117
117
|
|
|
118
118
|
/**
|
|
119
|
-
* An optional note for the address, primarily used when adding.
|
|
119
|
+
* An optional note for the address, primarily used when adding addresses.
|
|
120
120
|
* @member {String} note
|
|
121
121
|
*/
|
|
122
122
|
TokenizationUpdateAllowlistAddressesParamsAddressesInner.prototype['note'] = undefined;
|
|
@@ -95,6 +95,9 @@ var TokenizationUpdateAllowlistAddressesRequest = /*#__PURE__*/function () {
|
|
|
95
95
|
if (data.hasOwnProperty('fee')) {
|
|
96
96
|
obj['fee'] = _TransactionRequestFee["default"].constructFromObject(data['fee']);
|
|
97
97
|
}
|
|
98
|
+
if (data.hasOwnProperty('request_id')) {
|
|
99
|
+
obj['request_id'] = _ApiClient["default"].convertToType(data['request_id'], 'String');
|
|
100
|
+
}
|
|
98
101
|
}
|
|
99
102
|
return obj;
|
|
100
103
|
}
|
|
@@ -161,6 +164,10 @@ var TokenizationUpdateAllowlistAddressesRequest = /*#__PURE__*/function () {
|
|
|
161
164
|
_TransactionRequestFee["default"].validateJSON(data['fee']);
|
|
162
165
|
}
|
|
163
166
|
}
|
|
167
|
+
// ensure the json data is a string
|
|
168
|
+
if (data['request_id'] && !(typeof data['request_id'] === 'string' || data['request_id'] instanceof String)) {
|
|
169
|
+
throw new Error("Expected the field `request_id` to be a primitive type in the JSON string but got " + data['request_id']);
|
|
170
|
+
}
|
|
164
171
|
return true;
|
|
165
172
|
}
|
|
166
173
|
}]);
|
|
@@ -194,6 +201,12 @@ TokenizationUpdateAllowlistAddressesRequest.prototype['app_initiator'] = undefin
|
|
|
194
201
|
*/
|
|
195
202
|
TokenizationUpdateAllowlistAddressesRequest.prototype['fee'] = undefined;
|
|
196
203
|
|
|
204
|
+
/**
|
|
205
|
+
* The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization.
|
|
206
|
+
* @member {String} request_id
|
|
207
|
+
*/
|
|
208
|
+
TokenizationUpdateAllowlistAddressesRequest.prototype['request_id'] = undefined;
|
|
209
|
+
|
|
197
210
|
// Implement TokenizationUpdateAllowlistAddressesParams interface:
|
|
198
211
|
/**
|
|
199
212
|
* @member {module:model/TokenizationUpdateAddressAction} action
|
|
@@ -93,6 +93,9 @@ var TokenizationUpdateBlocklistAddressesEstimateFeeParams = /*#__PURE__*/functio
|
|
|
93
93
|
if (data.hasOwnProperty('token_id')) {
|
|
94
94
|
obj['token_id'] = _ApiClient["default"].convertToType(data['token_id'], 'String');
|
|
95
95
|
}
|
|
96
|
+
if (data.hasOwnProperty('request_id')) {
|
|
97
|
+
obj['request_id'] = _ApiClient["default"].convertToType(data['request_id'], 'String');
|
|
98
|
+
}
|
|
96
99
|
}
|
|
97
100
|
return obj;
|
|
98
101
|
}
|
|
@@ -152,6 +155,10 @@ var TokenizationUpdateBlocklistAddressesEstimateFeeParams = /*#__PURE__*/functio
|
|
|
152
155
|
if (data['token_id'] && !(typeof data['token_id'] === 'string' || data['token_id'] instanceof String)) {
|
|
153
156
|
throw new Error("Expected the field `token_id` to be a primitive type in the JSON string but got " + data['token_id']);
|
|
154
157
|
}
|
|
158
|
+
// ensure the json data is a string
|
|
159
|
+
if (data['request_id'] && !(typeof data['request_id'] === 'string' || data['request_id'] instanceof String)) {
|
|
160
|
+
throw new Error("Expected the field `request_id` to be a primitive type in the JSON string but got " + data['request_id']);
|
|
161
|
+
}
|
|
155
162
|
return true;
|
|
156
163
|
}
|
|
157
164
|
}]);
|
|
@@ -185,6 +192,12 @@ TokenizationUpdateBlocklistAddressesEstimateFeeParams.prototype['operation_type'
|
|
|
185
192
|
*/
|
|
186
193
|
TokenizationUpdateBlocklistAddressesEstimateFeeParams.prototype['token_id'] = undefined;
|
|
187
194
|
|
|
195
|
+
/**
|
|
196
|
+
* The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization.
|
|
197
|
+
* @member {String} request_id
|
|
198
|
+
*/
|
|
199
|
+
TokenizationUpdateBlocklistAddressesEstimateFeeParams.prototype['request_id'] = undefined;
|
|
200
|
+
|
|
188
201
|
// Implement TokenizationUpdateBlocklistAddressesParams interface:
|
|
189
202
|
/**
|
|
190
203
|
* @member {module:model/TokenizationUpdateAddressAction} action
|
|
@@ -116,7 +116,7 @@ TokenizationUpdateBlocklistAddressesParamsAddressesInner.RequiredProperties = ["
|
|
|
116
116
|
TokenizationUpdateBlocklistAddressesParamsAddressesInner.prototype['address'] = undefined;
|
|
117
117
|
|
|
118
118
|
/**
|
|
119
|
-
* An optional note for the address, primarily used when adding.
|
|
119
|
+
* An optional note for the address, primarily used when adding addresses.
|
|
120
120
|
* @member {String} note
|
|
121
121
|
*/
|
|
122
122
|
TokenizationUpdateBlocklistAddressesParamsAddressesInner.prototype['note'] = undefined;
|
|
@@ -95,6 +95,9 @@ var TokenizationUpdateBlocklistAddressesRequest = /*#__PURE__*/function () {
|
|
|
95
95
|
if (data.hasOwnProperty('fee')) {
|
|
96
96
|
obj['fee'] = _TransactionRequestFee["default"].constructFromObject(data['fee']);
|
|
97
97
|
}
|
|
98
|
+
if (data.hasOwnProperty('request_id')) {
|
|
99
|
+
obj['request_id'] = _ApiClient["default"].convertToType(data['request_id'], 'String');
|
|
100
|
+
}
|
|
98
101
|
}
|
|
99
102
|
return obj;
|
|
100
103
|
}
|
|
@@ -161,6 +164,10 @@ var TokenizationUpdateBlocklistAddressesRequest = /*#__PURE__*/function () {
|
|
|
161
164
|
_TransactionRequestFee["default"].validateJSON(data['fee']);
|
|
162
165
|
}
|
|
163
166
|
}
|
|
167
|
+
// ensure the json data is a string
|
|
168
|
+
if (data['request_id'] && !(typeof data['request_id'] === 'string' || data['request_id'] instanceof String)) {
|
|
169
|
+
throw new Error("Expected the field `request_id` to be a primitive type in the JSON string but got " + data['request_id']);
|
|
170
|
+
}
|
|
164
171
|
return true;
|
|
165
172
|
}
|
|
166
173
|
}]);
|
|
@@ -194,6 +201,12 @@ TokenizationUpdateBlocklistAddressesRequest.prototype['app_initiator'] = undefin
|
|
|
194
201
|
*/
|
|
195
202
|
TokenizationUpdateBlocklistAddressesRequest.prototype['fee'] = undefined;
|
|
196
203
|
|
|
204
|
+
/**
|
|
205
|
+
* The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization.
|
|
206
|
+
* @member {String} request_id
|
|
207
|
+
*/
|
|
208
|
+
TokenizationUpdateBlocklistAddressesRequest.prototype['request_id'] = undefined;
|
|
209
|
+
|
|
197
210
|
// Implement TokenizationUpdateBlocklistAddressesParams interface:
|
|
198
211
|
/**
|
|
199
212
|
* @member {module:model/TokenizationUpdateAddressAction} action
|
|
@@ -35,7 +35,7 @@ var TokenizationWeb3OperationSource = /*#__PURE__*/function () {
|
|
|
35
35
|
* @alias module:model/TokenizationWeb3OperationSource
|
|
36
36
|
* @param source_type {module:model/TokenizationOperationSourceType}
|
|
37
37
|
* @param wallet_id {String} The wallet ID.
|
|
38
|
-
* @param address {String} The wallet address to interact with the token contract
|
|
38
|
+
* @param address {String} The wallet address used to interact with the token contract.
|
|
39
39
|
*/
|
|
40
40
|
function TokenizationWeb3OperationSource(source_type, wallet_id, address) {
|
|
41
41
|
_classCallCheck(this, TokenizationWeb3OperationSource);
|
|
@@ -129,7 +129,7 @@ TokenizationWeb3OperationSource.prototype['source_type'] = undefined;
|
|
|
129
129
|
TokenizationWeb3OperationSource.prototype['wallet_id'] = undefined;
|
|
130
130
|
|
|
131
131
|
/**
|
|
132
|
-
* The wallet address to interact with the token contract
|
|
132
|
+
* The wallet address used to interact with the token contract.
|
|
133
133
|
* @member {String} address
|
|
134
134
|
*/
|
|
135
135
|
TokenizationWeb3OperationSource.prototype['address'] = undefined;
|
|
@@ -37,7 +37,7 @@ var TokensEventData = /*#__PURE__*/function () {
|
|
|
37
37
|
* Constructs a new <code>TokensEventData</code>.
|
|
38
38
|
* @alias module:model/TokensEventData
|
|
39
39
|
* @implements module:model/WebhookEventDataType
|
|
40
|
-
* @param data_type {module:model/TokensEventData.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. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
|
|
40
|
+
* @param data_type {module:model/TokensEventData.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. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data.
|
|
41
41
|
* @param tokens {Array.<module:model/TokenInfo>} The enabled tokens.
|
|
42
42
|
*/
|
|
43
43
|
function TokensEventData(data_type, tokens) {
|
|
@@ -146,7 +146,7 @@ var TokensEventData = /*#__PURE__*/function () {
|
|
|
146
146
|
TokensEventData.RequiredProperties = ["data_type", "tokens"];
|
|
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. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension 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. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data.
|
|
150
150
|
* @member {module:model/TokensEventData.DataTypeEnum} data_type
|
|
151
151
|
*/
|
|
152
152
|
TokensEventData.prototype['data_type'] = undefined;
|
|
@@ -169,7 +169,7 @@ TokensEventData.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. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension 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. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data.
|
|
173
173
|
* @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
|
|
174
174
|
*/
|
|
175
175
|
_WebhookEventDataType["default"].prototype['data_type'] = undefined;
|
|
@@ -255,6 +255,11 @@ TokensEventData['DataTypeEnum'] = {
|
|
|
255
255
|
* @const
|
|
256
256
|
*/
|
|
257
257
|
"SuspendedToken": "SuspendedToken",
|
|
258
|
+
/**
|
|
259
|
+
* value: "ComplianceDisposition"
|
|
260
|
+
* @const
|
|
261
|
+
*/
|
|
262
|
+
"ComplianceDisposition": "ComplianceDisposition",
|
|
258
263
|
/**
|
|
259
264
|
* value: "unknown_default_open_api"
|
|
260
265
|
* @const
|
|
@@ -48,7 +48,7 @@ var TransactionWebhookEventData = /*#__PURE__*/function () {
|
|
|
48
48
|
* @alias module:model/TransactionWebhookEventData
|
|
49
49
|
* @implements module:model/WebhookEventDataType
|
|
50
50
|
* @implements module:model/Transaction
|
|
51
|
-
* @param data_type {module:model/TransactionWebhookEventData.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. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
|
|
51
|
+
* @param data_type {module:model/TransactionWebhookEventData.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. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data.
|
|
52
52
|
* @param transaction_id {String} The transaction ID.
|
|
53
53
|
* @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.
|
|
54
54
|
* @param status {module:model/TransactionStatus}
|
|
@@ -344,7 +344,7 @@ var TransactionWebhookEventData = /*#__PURE__*/function () {
|
|
|
344
344
|
TransactionWebhookEventData.RequiredProperties = ["data_type", "transaction_id", "wallet_id", "status", "source", "destination", "initiator_type", "created_timestamp", "updated_timestamp"];
|
|
345
345
|
|
|
346
346
|
/**
|
|
347
|
-
* 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. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
|
|
347
|
+
* 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. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data.
|
|
348
348
|
* @member {module:model/TransactionWebhookEventData.DataTypeEnum} data_type
|
|
349
349
|
*/
|
|
350
350
|
TransactionWebhookEventData.prototype['data_type'] = undefined;
|
|
@@ -525,7 +525,7 @@ TransactionWebhookEventData.prototype['updated_timestamp'] = undefined;
|
|
|
525
525
|
|
|
526
526
|
// Implement WebhookEventDataType interface:
|
|
527
527
|
/**
|
|
528
|
-
* 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. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
|
|
528
|
+
* 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. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data.
|
|
529
529
|
* @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
|
|
530
530
|
*/
|
|
531
531
|
_WebhookEventDataType["default"].prototype['data_type'] = undefined;
|
|
@@ -755,6 +755,11 @@ TransactionWebhookEventData['DataTypeEnum'] = {
|
|
|
755
755
|
* @const
|
|
756
756
|
*/
|
|
757
757
|
"SuspendedToken": "SuspendedToken",
|
|
758
|
+
/**
|
|
759
|
+
* value: "ComplianceDisposition"
|
|
760
|
+
* @const
|
|
761
|
+
*/
|
|
762
|
+
"ComplianceDisposition": "ComplianceDisposition",
|
|
758
763
|
/**
|
|
759
764
|
* value: "unknown_default_open_api"
|
|
760
765
|
* @const
|
|
@@ -0,0 +1,111 @@
|
|
|
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 _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; } } }; }
|
|
11
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
12
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
13
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
14
|
+
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); } }
|
|
15
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
16
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
|
+
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); } /**
|
|
18
|
+
* Cobo Wallet as a Service 2.0
|
|
19
|
+
*
|
|
20
|
+
* Contact: help@cobo.com
|
|
21
|
+
*
|
|
22
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
23
|
+
* https://openapi-generator.tech
|
|
24
|
+
* Do not edit the class manually.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
/**
|
|
28
|
+
* The UnfreezeDisposition model module.
|
|
29
|
+
* @module model/UnfreezeDisposition
|
|
30
|
+
*/
|
|
31
|
+
var UnfreezeDisposition = /*#__PURE__*/function () {
|
|
32
|
+
/**
|
|
33
|
+
* Constructs a new <code>UnfreezeDisposition</code>.
|
|
34
|
+
* The information about a request to unfreeze funds.
|
|
35
|
+
* @alias module:model/UnfreezeDisposition
|
|
36
|
+
* @param transaction_id {String} The UUID of the transaction whose funds are to be unfrozen.
|
|
37
|
+
*/
|
|
38
|
+
function UnfreezeDisposition(transaction_id) {
|
|
39
|
+
_classCallCheck(this, UnfreezeDisposition);
|
|
40
|
+
UnfreezeDisposition.initialize(this, transaction_id);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Initializes the fields of this object.
|
|
45
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
46
|
+
* Only for internal use.
|
|
47
|
+
*/
|
|
48
|
+
return _createClass(UnfreezeDisposition, null, [{
|
|
49
|
+
key: "initialize",
|
|
50
|
+
value: function initialize(obj, transaction_id) {
|
|
51
|
+
obj['transaction_id'] = transaction_id;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Constructs a <code>UnfreezeDisposition</code> from a plain JavaScript object, optionally creating a new instance.
|
|
56
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
57
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
58
|
+
* @param {module:model/UnfreezeDisposition} obj Optional instance to populate.
|
|
59
|
+
* @return {module:model/UnfreezeDisposition} The populated <code>UnfreezeDisposition</code> instance.
|
|
60
|
+
*/
|
|
61
|
+
}, {
|
|
62
|
+
key: "constructFromObject",
|
|
63
|
+
value: function constructFromObject(data, obj) {
|
|
64
|
+
if (data) {
|
|
65
|
+
obj = obj || new UnfreezeDisposition();
|
|
66
|
+
if (data.hasOwnProperty('transaction_id')) {
|
|
67
|
+
obj['transaction_id'] = _ApiClient["default"].convertToType(data['transaction_id'], 'String');
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
return obj;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Validates the JSON data with respect to <code>UnfreezeDisposition</code>.
|
|
75
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
76
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>UnfreezeDisposition</code>.
|
|
77
|
+
*/
|
|
78
|
+
}, {
|
|
79
|
+
key: "validateJSON",
|
|
80
|
+
value: function validateJSON(data) {
|
|
81
|
+
// check to make sure all required properties are present in the JSON string
|
|
82
|
+
var _iterator = _createForOfIteratorHelper(UnfreezeDisposition.RequiredProperties),
|
|
83
|
+
_step;
|
|
84
|
+
try {
|
|
85
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
86
|
+
var property = _step.value;
|
|
87
|
+
if (!data.hasOwnProperty(property)) {
|
|
88
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
// ensure the json data is a string
|
|
92
|
+
} catch (err) {
|
|
93
|
+
_iterator.e(err);
|
|
94
|
+
} finally {
|
|
95
|
+
_iterator.f();
|
|
96
|
+
}
|
|
97
|
+
if (data['transaction_id'] && !(typeof data['transaction_id'] === 'string' || data['transaction_id'] instanceof String)) {
|
|
98
|
+
throw new Error("Expected the field `transaction_id` to be a primitive type in the JSON string but got " + data['transaction_id']);
|
|
99
|
+
}
|
|
100
|
+
return true;
|
|
101
|
+
}
|
|
102
|
+
}]);
|
|
103
|
+
}();
|
|
104
|
+
UnfreezeDisposition.RequiredProperties = ["transaction_id"];
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* The UUID of the transaction whose funds are to be unfrozen.
|
|
108
|
+
* @member {String} transaction_id
|
|
109
|
+
*/
|
|
110
|
+
UnfreezeDisposition.prototype['transaction_id'] = undefined;
|
|
111
|
+
var _default = exports["default"] = UnfreezeDisposition;
|
|
@@ -0,0 +1,150 @@
|
|
|
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 _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; } } }; }
|
|
11
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
12
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
13
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
14
|
+
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); } }
|
|
15
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
16
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
|
+
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); } /**
|
|
18
|
+
* Cobo Wallet as a Service 2.0
|
|
19
|
+
*
|
|
20
|
+
* Contact: help@cobo.com
|
|
21
|
+
*
|
|
22
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
23
|
+
* https://openapi-generator.tech
|
|
24
|
+
* Do not edit the class manually.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
/**
|
|
28
|
+
* The UpdateAddressBookParam model module.
|
|
29
|
+
* @module model/UpdateAddressBookParam
|
|
30
|
+
*/
|
|
31
|
+
var UpdateAddressBookParam = /*#__PURE__*/function () {
|
|
32
|
+
/**
|
|
33
|
+
* Constructs a new <code>UpdateAddressBookParam</code>.
|
|
34
|
+
* The request body to update Address Book.
|
|
35
|
+
* @alias module:model/UpdateAddressBookParam
|
|
36
|
+
* @param chain_ids {Array.<String>} A list of chain IDs.
|
|
37
|
+
*/
|
|
38
|
+
function UpdateAddressBookParam(chain_ids) {
|
|
39
|
+
_classCallCheck(this, UpdateAddressBookParam);
|
|
40
|
+
UpdateAddressBookParam.initialize(this, chain_ids);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Initializes the fields of this object.
|
|
45
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
46
|
+
* Only for internal use.
|
|
47
|
+
*/
|
|
48
|
+
return _createClass(UpdateAddressBookParam, null, [{
|
|
49
|
+
key: "initialize",
|
|
50
|
+
value: function initialize(obj, chain_ids) {
|
|
51
|
+
obj['chain_ids'] = chain_ids;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Constructs a <code>UpdateAddressBookParam</code> from a plain JavaScript object, optionally creating a new instance.
|
|
56
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
57
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
58
|
+
* @param {module:model/UpdateAddressBookParam} obj Optional instance to populate.
|
|
59
|
+
* @return {module:model/UpdateAddressBookParam} The populated <code>UpdateAddressBookParam</code> instance.
|
|
60
|
+
*/
|
|
61
|
+
}, {
|
|
62
|
+
key: "constructFromObject",
|
|
63
|
+
value: function constructFromObject(data, obj) {
|
|
64
|
+
if (data) {
|
|
65
|
+
obj = obj || new UpdateAddressBookParam();
|
|
66
|
+
if (data.hasOwnProperty('chain_ids')) {
|
|
67
|
+
obj['chain_ids'] = _ApiClient["default"].convertToType(data['chain_ids'], ['String']);
|
|
68
|
+
}
|
|
69
|
+
if (data.hasOwnProperty('memo')) {
|
|
70
|
+
obj['memo'] = _ApiClient["default"].convertToType(data['memo'], 'String');
|
|
71
|
+
}
|
|
72
|
+
if (data.hasOwnProperty('label')) {
|
|
73
|
+
obj['label'] = _ApiClient["default"].convertToType(data['label'], 'String');
|
|
74
|
+
}
|
|
75
|
+
if (data.hasOwnProperty('email')) {
|
|
76
|
+
obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String');
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
return obj;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Validates the JSON data with respect to <code>UpdateAddressBookParam</code>.
|
|
84
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
85
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>UpdateAddressBookParam</code>.
|
|
86
|
+
*/
|
|
87
|
+
}, {
|
|
88
|
+
key: "validateJSON",
|
|
89
|
+
value: function validateJSON(data) {
|
|
90
|
+
// check to make sure all required properties are present in the JSON string
|
|
91
|
+
var _iterator = _createForOfIteratorHelper(UpdateAddressBookParam.RequiredProperties),
|
|
92
|
+
_step;
|
|
93
|
+
try {
|
|
94
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
95
|
+
var property = _step.value;
|
|
96
|
+
if (!data.hasOwnProperty(property)) {
|
|
97
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
// ensure the json data is an array
|
|
101
|
+
} catch (err) {
|
|
102
|
+
_iterator.e(err);
|
|
103
|
+
} finally {
|
|
104
|
+
_iterator.f();
|
|
105
|
+
}
|
|
106
|
+
if (!Array.isArray(data['chain_ids'])) {
|
|
107
|
+
throw new Error("Expected the field `chain_ids` to be an array in the JSON data but got " + data['chain_ids']);
|
|
108
|
+
}
|
|
109
|
+
// ensure the json data is a string
|
|
110
|
+
if (data['memo'] && !(typeof data['memo'] === 'string' || data['memo'] instanceof String)) {
|
|
111
|
+
throw new Error("Expected the field `memo` to be a primitive type in the JSON string but got " + data['memo']);
|
|
112
|
+
}
|
|
113
|
+
// ensure the json data is a string
|
|
114
|
+
if (data['label'] && !(typeof data['label'] === 'string' || data['label'] instanceof String)) {
|
|
115
|
+
throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data['label']);
|
|
116
|
+
}
|
|
117
|
+
// ensure the json data is a string
|
|
118
|
+
if (data['email'] && !(typeof data['email'] === 'string' || data['email'] instanceof String)) {
|
|
119
|
+
throw new Error("Expected the field `email` to be a primitive type in the JSON string but got " + data['email']);
|
|
120
|
+
}
|
|
121
|
+
return true;
|
|
122
|
+
}
|
|
123
|
+
}]);
|
|
124
|
+
}();
|
|
125
|
+
UpdateAddressBookParam.RequiredProperties = ["chain_ids"];
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* A list of chain IDs.
|
|
129
|
+
* @member {Array.<String>} chain_ids
|
|
130
|
+
*/
|
|
131
|
+
UpdateAddressBookParam.prototype['chain_ids'] = undefined;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Optional memo or tag required by some chains.
|
|
135
|
+
* @member {String} memo
|
|
136
|
+
*/
|
|
137
|
+
UpdateAddressBookParam.prototype['memo'] = undefined;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* A user-defined label for the address.
|
|
141
|
+
* @member {String} label
|
|
142
|
+
*/
|
|
143
|
+
UpdateAddressBookParam.prototype['label'] = undefined;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Email of the address owner.
|
|
147
|
+
* @member {String} email
|
|
148
|
+
*/
|
|
149
|
+
UpdateAddressBookParam.prototype['email'] = undefined;
|
|
150
|
+
var _default = exports["default"] = UpdateAddressBookParam;
|
|
@@ -35,11 +35,10 @@ var UpdateCustodialWalletParams = /*#__PURE__*/function () {
|
|
|
35
35
|
* The information of Custodial Wallets.
|
|
36
36
|
* @alias module:model/UpdateCustodialWalletParams
|
|
37
37
|
* @param wallet_type {module:model/WalletType}
|
|
38
|
-
* @param name {String} The wallet name.
|
|
39
38
|
*/
|
|
40
|
-
function UpdateCustodialWalletParams(wallet_type
|
|
39
|
+
function UpdateCustodialWalletParams(wallet_type) {
|
|
41
40
|
_classCallCheck(this, UpdateCustodialWalletParams);
|
|
42
|
-
UpdateCustodialWalletParams.initialize(this, wallet_type
|
|
41
|
+
UpdateCustodialWalletParams.initialize(this, wallet_type);
|
|
43
42
|
}
|
|
44
43
|
|
|
45
44
|
/**
|
|
@@ -49,9 +48,8 @@ var UpdateCustodialWalletParams = /*#__PURE__*/function () {
|
|
|
49
48
|
*/
|
|
50
49
|
return _createClass(UpdateCustodialWalletParams, null, [{
|
|
51
50
|
key: "initialize",
|
|
52
|
-
value: function initialize(obj, wallet_type
|
|
51
|
+
value: function initialize(obj, wallet_type) {
|
|
53
52
|
obj['wallet_type'] = wallet_type;
|
|
54
|
-
obj['name'] = name;
|
|
55
53
|
}
|
|
56
54
|
|
|
57
55
|
/**
|
|
@@ -72,6 +70,9 @@ var UpdateCustodialWalletParams = /*#__PURE__*/function () {
|
|
|
72
70
|
if (data.hasOwnProperty('name')) {
|
|
73
71
|
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
|
|
74
72
|
}
|
|
73
|
+
if (data.hasOwnProperty('enable_auto_sweep')) {
|
|
74
|
+
obj['enable_auto_sweep'] = _ApiClient["default"].convertToType(data['enable_auto_sweep'], 'Boolean');
|
|
75
|
+
}
|
|
75
76
|
}
|
|
76
77
|
return obj;
|
|
77
78
|
}
|
|
@@ -107,7 +108,7 @@ var UpdateCustodialWalletParams = /*#__PURE__*/function () {
|
|
|
107
108
|
}
|
|
108
109
|
}]);
|
|
109
110
|
}();
|
|
110
|
-
UpdateCustodialWalletParams.RequiredProperties = ["wallet_type"
|
|
111
|
+
UpdateCustodialWalletParams.RequiredProperties = ["wallet_type"];
|
|
111
112
|
|
|
112
113
|
/**
|
|
113
114
|
* @member {module:model/WalletType} wallet_type
|
|
@@ -119,4 +120,10 @@ UpdateCustodialWalletParams.prototype['wallet_type'] = undefined;
|
|
|
119
120
|
* @member {String} name
|
|
120
121
|
*/
|
|
121
122
|
UpdateCustodialWalletParams.prototype['name'] = undefined;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Enable the auto sweep feature for the wallet
|
|
126
|
+
* @member {Boolean} enable_auto_sweep
|
|
127
|
+
*/
|
|
128
|
+
UpdateCustodialWalletParams.prototype['enable_auto_sweep'] = undefined;
|
|
122
129
|
var _default = exports["default"] = UpdateCustodialWalletParams;
|
|
@@ -93,7 +93,7 @@ var UpdateMerchantByIdRequest = /*#__PURE__*/function () {
|
|
|
93
93
|
UpdateMerchantByIdRequest.prototype['name'] = undefined;
|
|
94
94
|
|
|
95
95
|
/**
|
|
96
|
-
* The developer fee rate applied to this merchant. Expressed as a string in decimal format where \"0.1\" represents 10%. This fee is deducted from the payment amount and only applies to top-up transactions.
|
|
96
|
+
* The developer fee rate applied to this merchant. Expressed as a string in decimal format where \"0.1\" represents 10%. This fee is deducted from the payment amount and only applies to top-up transactions. If you are a merchant (directly serving the payer), you do not need to configure the developer fee rate.
|
|
97
97
|
* @member {String} developer_fee_rate
|
|
98
98
|
*/
|
|
99
99
|
UpdateMerchantByIdRequest.prototype['developer_fee_rate'] = undefined;
|