@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
|
@@ -35,11 +35,10 @@ var UpdateMpcWalletParams = /*#__PURE__*/function () {
|
|
|
35
35
|
* The information of MPC Wallets.
|
|
36
36
|
* @alias module:model/UpdateMpcWalletParams
|
|
37
37
|
* @param wallet_type {module:model/WalletType}
|
|
38
|
-
* @param name {String} The wallet name.
|
|
39
38
|
*/
|
|
40
|
-
function UpdateMpcWalletParams(wallet_type
|
|
39
|
+
function UpdateMpcWalletParams(wallet_type) {
|
|
41
40
|
_classCallCheck(this, UpdateMpcWalletParams);
|
|
42
|
-
UpdateMpcWalletParams.initialize(this, wallet_type
|
|
41
|
+
UpdateMpcWalletParams.initialize(this, wallet_type);
|
|
43
42
|
}
|
|
44
43
|
|
|
45
44
|
/**
|
|
@@ -49,9 +48,8 @@ var UpdateMpcWalletParams = /*#__PURE__*/function () {
|
|
|
49
48
|
*/
|
|
50
49
|
return _createClass(UpdateMpcWalletParams, 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 UpdateMpcWalletParams = /*#__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 UpdateMpcWalletParams = /*#__PURE__*/function () {
|
|
|
107
108
|
}
|
|
108
109
|
}]);
|
|
109
110
|
}();
|
|
110
|
-
UpdateMpcWalletParams.RequiredProperties = ["wallet_type"
|
|
111
|
+
UpdateMpcWalletParams.RequiredProperties = ["wallet_type"];
|
|
111
112
|
|
|
112
113
|
/**
|
|
113
114
|
* @member {module:model/WalletType} wallet_type
|
|
@@ -119,4 +120,10 @@ UpdateMpcWalletParams.prototype['wallet_type'] = undefined;
|
|
|
119
120
|
* @member {String} name
|
|
120
121
|
*/
|
|
121
122
|
UpdateMpcWalletParams.prototype['name'] = undefined;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Enable the auto sweep feature for the wallet
|
|
126
|
+
* @member {Boolean} enable_auto_sweep
|
|
127
|
+
*/
|
|
128
|
+
UpdateMpcWalletParams.prototype['enable_auto_sweep'] = undefined;
|
|
122
129
|
var _default = exports["default"] = UpdateMpcWalletParams;
|
|
@@ -238,5 +238,11 @@ UpdateWalletParams.prototype['wallet_type'] = undefined;
|
|
|
238
238
|
* @member {String} name
|
|
239
239
|
*/
|
|
240
240
|
UpdateWalletParams.prototype['name'] = undefined;
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* Enable the auto sweep feature for the wallet
|
|
244
|
+
* @member {Boolean} enable_auto_sweep
|
|
245
|
+
*/
|
|
246
|
+
UpdateWalletParams.prototype['enable_auto_sweep'] = undefined;
|
|
241
247
|
UpdateWalletParams.OneOf = ["UpdateCustodialWalletParams", "UpdateExchangeWalletParams", "UpdateMpcWalletParams", "UpdateSmartContractWalletParams"];
|
|
242
248
|
var _default = exports["default"] = UpdateWalletParams;
|
package/dist/model/WalletInfo.js
CHANGED
|
@@ -260,6 +260,12 @@ WalletInfo.prototype['name'] = undefined;
|
|
|
260
260
|
*/
|
|
261
261
|
WalletInfo.prototype['org_id'] = undefined;
|
|
262
262
|
|
|
263
|
+
/**
|
|
264
|
+
* Enable the auto sweep feature for the wallet
|
|
265
|
+
* @member {Boolean} enable_auto_sweep
|
|
266
|
+
*/
|
|
267
|
+
WalletInfo.prototype['enable_auto_sweep'] = undefined;
|
|
268
|
+
|
|
263
269
|
/**
|
|
264
270
|
* The project ID.
|
|
265
271
|
* @member {String} project_id
|
|
@@ -35,7 +35,7 @@ var WalletInfoEventData = /*#__PURE__*/function () {
|
|
|
35
35
|
* Constructs a new <code>WalletInfoEventData</code>.
|
|
36
36
|
* @alias module:model/WalletInfoEventData
|
|
37
37
|
* @implements module:model/WebhookEventDataType
|
|
38
|
-
* @param data_type {module:model/WalletInfoEventData.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.
|
|
38
|
+
* @param data_type {module:model/WalletInfoEventData.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.
|
|
39
39
|
*/
|
|
40
40
|
function WalletInfoEventData(data_type) {
|
|
41
41
|
_classCallCheck(this, WalletInfoEventData);
|
|
@@ -118,7 +118,7 @@ var WalletInfoEventData = /*#__PURE__*/function () {
|
|
|
118
118
|
WalletInfoEventData.RequiredProperties = ["data_type"];
|
|
119
119
|
|
|
120
120
|
/**
|
|
121
|
-
* 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.
|
|
121
|
+
* 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.
|
|
122
122
|
* @member {module:model/WalletInfoEventData.DataTypeEnum} data_type
|
|
123
123
|
*/
|
|
124
124
|
WalletInfoEventData.prototype['data_type'] = undefined;
|
|
@@ -130,7 +130,7 @@ WalletInfoEventData.prototype['wallet'] = undefined;
|
|
|
130
130
|
|
|
131
131
|
// Implement WebhookEventDataType interface:
|
|
132
132
|
/**
|
|
133
|
-
* 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.
|
|
133
|
+
* 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.
|
|
134
134
|
* @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
|
|
135
135
|
*/
|
|
136
136
|
_WebhookEventDataType["default"].prototype['data_type'] = undefined;
|
|
@@ -216,6 +216,11 @@ WalletInfoEventData['DataTypeEnum'] = {
|
|
|
216
216
|
* @const
|
|
217
217
|
*/
|
|
218
218
|
"SuspendedToken": "SuspendedToken",
|
|
219
|
+
/**
|
|
220
|
+
* value: "ComplianceDisposition"
|
|
221
|
+
* @const
|
|
222
|
+
*/
|
|
223
|
+
"ComplianceDisposition": "ComplianceDisposition",
|
|
219
224
|
/**
|
|
220
225
|
* value: "unknown_default_open_api"
|
|
221
226
|
* @const
|
|
@@ -12,6 +12,9 @@ var _Balance = _interopRequireDefault(require("./Balance"));
|
|
|
12
12
|
var _BalanceUpdateInfoEventData = _interopRequireDefault(require("./BalanceUpdateInfoEventData"));
|
|
13
13
|
var _ChainInfo = _interopRequireDefault(require("./ChainInfo"));
|
|
14
14
|
var _ChainsEventData = _interopRequireDefault(require("./ChainsEventData"));
|
|
15
|
+
var _ComplianceDispositionUpdateEventData = _interopRequireDefault(require("./ComplianceDispositionUpdateEventData"));
|
|
16
|
+
var _DispositionStatus = _interopRequireDefault(require("./DispositionStatus"));
|
|
17
|
+
var _DispositionType = _interopRequireDefault(require("./DispositionType"));
|
|
15
18
|
var _MPCVaultEventData = _interopRequireDefault(require("./MPCVaultEventData"));
|
|
16
19
|
var _PaymentAddressUpdateEventData = _interopRequireDefault(require("./PaymentAddressUpdateEventData"));
|
|
17
20
|
var _PaymentOrderEventData = _interopRequireDefault(require("./PaymentOrderEventData"));
|
|
@@ -75,7 +78,7 @@ var WebhookEventData = /*#__PURE__*/function () {
|
|
|
75
78
|
/**
|
|
76
79
|
* Constructs a new <code>WebhookEventData</code>.
|
|
77
80
|
* @alias module:model/WebhookEventData
|
|
78
|
-
* @param {(module:model/AddressesEventData|module:model/BalanceUpdateInfoEventData|module:model/ChainsEventData|module:model/MPCVaultEventData|module:model/PaymentAddressUpdateEventData|module:model/PaymentOrderEventData|module:model/PaymentRefundEventData|module:model/PaymentSettlementEvent|module:model/PaymentTransactionEventData|module:model/SuspendedTokenEventData|module:model/TSSRequestWebhookEventData|module:model/TokenListingEventData|module:model/TokensEventData|module:model/TransactionWebhookEventData|module:model/WalletInfoEventData)} instance The actual instance to initialize WebhookEventData.
|
|
81
|
+
* @param {(module:model/AddressesEventData|module:model/BalanceUpdateInfoEventData|module:model/ChainsEventData|module:model/ComplianceDispositionUpdateEventData|module:model/MPCVaultEventData|module:model/PaymentAddressUpdateEventData|module:model/PaymentOrderEventData|module:model/PaymentRefundEventData|module:model/PaymentSettlementEvent|module:model/PaymentTransactionEventData|module:model/SuspendedTokenEventData|module:model/TSSRequestWebhookEventData|module:model/TokenListingEventData|module:model/TokensEventData|module:model/TransactionWebhookEventData|module:model/WalletInfoEventData)} instance The actual instance to initialize WebhookEventData.
|
|
79
82
|
*/
|
|
80
83
|
function WebhookEventData() {
|
|
81
84
|
var instance = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
@@ -108,6 +111,10 @@ var WebhookEventData = /*#__PURE__*/function () {
|
|
|
108
111
|
this.actualInstance = _ChainsEventData["default"].constructFromObject(instance);
|
|
109
112
|
match++;
|
|
110
113
|
break;
|
|
114
|
+
case "ComplianceDisposition":
|
|
115
|
+
this.actualInstance = _ComplianceDispositionUpdateEventData["default"].constructFromObject(instance);
|
|
116
|
+
match++;
|
|
117
|
+
break;
|
|
111
118
|
case "MPCVault":
|
|
112
119
|
this.actualInstance = _MPCVaultEventData["default"].constructFromObject(instance);
|
|
113
120
|
match++;
|
|
@@ -507,13 +514,36 @@ var WebhookEventData = /*#__PURE__*/function () {
|
|
|
507
514
|
// json data failed to deserialize into PaymentAddressUpdateEventData
|
|
508
515
|
errorMessages.push("Failed to construct PaymentAddressUpdateEventData: " + err);
|
|
509
516
|
}
|
|
517
|
+
try {
|
|
518
|
+
if (instance instanceof _ComplianceDispositionUpdateEventData["default"]) {
|
|
519
|
+
this.actualInstance = instance;
|
|
520
|
+
} else if (!!_ComplianceDispositionUpdateEventData["default"].validateJSON && _ComplianceDispositionUpdateEventData["default"].validateJSON(instance)) {
|
|
521
|
+
// plain JS object
|
|
522
|
+
// create ComplianceDispositionUpdateEventData from JS object
|
|
523
|
+
this.actualInstance = _ComplianceDispositionUpdateEventData["default"].constructFromObject(instance);
|
|
524
|
+
} else {
|
|
525
|
+
if (_ComplianceDispositionUpdateEventData["default"].constructFromObject(instance)) {
|
|
526
|
+
if (!!_ComplianceDispositionUpdateEventData["default"].constructFromObject(instance).toJSON) {
|
|
527
|
+
if (_ComplianceDispositionUpdateEventData["default"].constructFromObject(instance).toJSON()) {
|
|
528
|
+
this.actualInstance = _ComplianceDispositionUpdateEventData["default"].constructFromObject(instance);
|
|
529
|
+
}
|
|
530
|
+
} else {
|
|
531
|
+
this.actualInstance = _ComplianceDispositionUpdateEventData["default"].constructFromObject(instance);
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
match++;
|
|
536
|
+
} catch (err) {
|
|
537
|
+
// json data failed to deserialize into ComplianceDispositionUpdateEventData
|
|
538
|
+
errorMessages.push("Failed to construct ComplianceDispositionUpdateEventData: " + err);
|
|
539
|
+
}
|
|
510
540
|
|
|
511
541
|
// if (match > 1) {
|
|
512
|
-
// throw new Error("Multiple matches found constructing `WebhookEventData` with oneOf schemas AddressesEventData, BalanceUpdateInfoEventData, ChainsEventData, MPCVaultEventData, PaymentAddressUpdateEventData, PaymentOrderEventData, PaymentRefundEventData, PaymentSettlementEvent, PaymentTransactionEventData, SuspendedTokenEventData, TSSRequestWebhookEventData, TokenListingEventData, TokensEventData, TransactionWebhookEventData, WalletInfoEventData. Input: " + JSON.stringify(instance));
|
|
542
|
+
// throw new Error("Multiple matches found constructing `WebhookEventData` with oneOf schemas AddressesEventData, BalanceUpdateInfoEventData, ChainsEventData, ComplianceDispositionUpdateEventData, MPCVaultEventData, PaymentAddressUpdateEventData, PaymentOrderEventData, PaymentRefundEventData, PaymentSettlementEvent, PaymentTransactionEventData, SuspendedTokenEventData, TSSRequestWebhookEventData, TokenListingEventData, TokensEventData, TransactionWebhookEventData, WalletInfoEventData. Input: " + JSON.stringify(instance));
|
|
513
543
|
// } else
|
|
514
544
|
if (match === 0) {
|
|
515
545
|
// this.actualInstance = null; // clear the actual instance in case there are multiple matches
|
|
516
|
-
// throw new Error("No match found constructing `WebhookEventData` with oneOf schemas AddressesEventData, BalanceUpdateInfoEventData, ChainsEventData, MPCVaultEventData, PaymentAddressUpdateEventData, PaymentOrderEventData, PaymentRefundEventData, PaymentSettlementEvent, PaymentTransactionEventData, SuspendedTokenEventData, TSSRequestWebhookEventData, TokenListingEventData, TokensEventData, TransactionWebhookEventData, WalletInfoEventData. Details: " +
|
|
546
|
+
// throw new Error("No match found constructing `WebhookEventData` with oneOf schemas AddressesEventData, BalanceUpdateInfoEventData, ChainsEventData, ComplianceDispositionUpdateEventData, MPCVaultEventData, PaymentAddressUpdateEventData, PaymentOrderEventData, PaymentRefundEventData, PaymentSettlementEvent, PaymentTransactionEventData, SuspendedTokenEventData, TSSRequestWebhookEventData, TokenListingEventData, TokensEventData, TransactionWebhookEventData, WalletInfoEventData. Details: " +
|
|
517
547
|
// errorMessages.join(", "));
|
|
518
548
|
return;
|
|
519
549
|
} else {// only 1 match
|
|
@@ -532,16 +562,16 @@ var WebhookEventData = /*#__PURE__*/function () {
|
|
|
532
562
|
key: "getActualInstance",
|
|
533
563
|
value:
|
|
534
564
|
/**
|
|
535
|
-
* Gets the actual instance, which can be <code>AddressesEventData</code>, <code>BalanceUpdateInfoEventData</code>, <code>ChainsEventData</code>, <code>MPCVaultEventData</code>, <code>PaymentAddressUpdateEventData</code>, <code>PaymentOrderEventData</code>, <code>PaymentRefundEventData</code>, <code>PaymentSettlementEvent</code>, <code>PaymentTransactionEventData</code>, <code>SuspendedTokenEventData</code>, <code>TSSRequestWebhookEventData</code>, <code>TokenListingEventData</code>, <code>TokensEventData</code>, <code>TransactionWebhookEventData</code>, <code>WalletInfoEventData</code>.
|
|
536
|
-
* @return {(module:model/AddressesEventData|module:model/BalanceUpdateInfoEventData|module:model/ChainsEventData|module:model/MPCVaultEventData|module:model/PaymentAddressUpdateEventData|module:model/PaymentOrderEventData|module:model/PaymentRefundEventData|module:model/PaymentSettlementEvent|module:model/PaymentTransactionEventData|module:model/SuspendedTokenEventData|module:model/TSSRequestWebhookEventData|module:model/TokenListingEventData|module:model/TokensEventData|module:model/TransactionWebhookEventData|module:model/WalletInfoEventData)} The actual instance.
|
|
565
|
+
* Gets the actual instance, which can be <code>AddressesEventData</code>, <code>BalanceUpdateInfoEventData</code>, <code>ChainsEventData</code>, <code>ComplianceDispositionUpdateEventData</code>, <code>MPCVaultEventData</code>, <code>PaymentAddressUpdateEventData</code>, <code>PaymentOrderEventData</code>, <code>PaymentRefundEventData</code>, <code>PaymentSettlementEvent</code>, <code>PaymentTransactionEventData</code>, <code>SuspendedTokenEventData</code>, <code>TSSRequestWebhookEventData</code>, <code>TokenListingEventData</code>, <code>TokensEventData</code>, <code>TransactionWebhookEventData</code>, <code>WalletInfoEventData</code>.
|
|
566
|
+
* @return {(module:model/AddressesEventData|module:model/BalanceUpdateInfoEventData|module:model/ChainsEventData|module:model/ComplianceDispositionUpdateEventData|module:model/MPCVaultEventData|module:model/PaymentAddressUpdateEventData|module:model/PaymentOrderEventData|module:model/PaymentRefundEventData|module:model/PaymentSettlementEvent|module:model/PaymentTransactionEventData|module:model/SuspendedTokenEventData|module:model/TSSRequestWebhookEventData|module:model/TokenListingEventData|module:model/TokensEventData|module:model/TransactionWebhookEventData|module:model/WalletInfoEventData)} The actual instance.
|
|
537
567
|
*/
|
|
538
568
|
function getActualInstance() {
|
|
539
569
|
return this.actualInstance;
|
|
540
570
|
}
|
|
541
571
|
|
|
542
572
|
/**
|
|
543
|
-
* Sets the actual instance, which can be <code>AddressesEventData</code>, <code>BalanceUpdateInfoEventData</code>, <code>ChainsEventData</code>, <code>MPCVaultEventData</code>, <code>PaymentAddressUpdateEventData</code>, <code>PaymentOrderEventData</code>, <code>PaymentRefundEventData</code>, <code>PaymentSettlementEvent</code>, <code>PaymentTransactionEventData</code>, <code>SuspendedTokenEventData</code>, <code>TSSRequestWebhookEventData</code>, <code>TokenListingEventData</code>, <code>TokensEventData</code>, <code>TransactionWebhookEventData</code>, <code>WalletInfoEventData</code>.
|
|
544
|
-
* @param {(module:model/AddressesEventData|module:model/BalanceUpdateInfoEventData|module:model/ChainsEventData|module:model/MPCVaultEventData|module:model/PaymentAddressUpdateEventData|module:model/PaymentOrderEventData|module:model/PaymentRefundEventData|module:model/PaymentSettlementEvent|module:model/PaymentTransactionEventData|module:model/SuspendedTokenEventData|module:model/TSSRequestWebhookEventData|module:model/TokenListingEventData|module:model/TokensEventData|module:model/TransactionWebhookEventData|module:model/WalletInfoEventData)} obj The actual instance.
|
|
573
|
+
* Sets the actual instance, which can be <code>AddressesEventData</code>, <code>BalanceUpdateInfoEventData</code>, <code>ChainsEventData</code>, <code>ComplianceDispositionUpdateEventData</code>, <code>MPCVaultEventData</code>, <code>PaymentAddressUpdateEventData</code>, <code>PaymentOrderEventData</code>, <code>PaymentRefundEventData</code>, <code>PaymentSettlementEvent</code>, <code>PaymentTransactionEventData</code>, <code>SuspendedTokenEventData</code>, <code>TSSRequestWebhookEventData</code>, <code>TokenListingEventData</code>, <code>TokensEventData</code>, <code>TransactionWebhookEventData</code>, <code>WalletInfoEventData</code>.
|
|
574
|
+
* @param {(module:model/AddressesEventData|module:model/BalanceUpdateInfoEventData|module:model/ChainsEventData|module:model/ComplianceDispositionUpdateEventData|module:model/MPCVaultEventData|module:model/PaymentAddressUpdateEventData|module:model/PaymentOrderEventData|module:model/PaymentRefundEventData|module:model/PaymentSettlementEvent|module:model/PaymentTransactionEventData|module:model/SuspendedTokenEventData|module:model/TSSRequestWebhookEventData|module:model/TokenListingEventData|module:model/TokensEventData|module:model/TransactionWebhookEventData|module:model/WalletInfoEventData)} obj The actual instance.
|
|
545
575
|
*/
|
|
546
576
|
}, {
|
|
547
577
|
key: "setActualInstance",
|
|
@@ -556,7 +586,7 @@ var WebhookEventData = /*#__PURE__*/function () {
|
|
|
556
586
|
}]);
|
|
557
587
|
}();
|
|
558
588
|
/**
|
|
559
|
-
* 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.
|
|
589
|
+
* 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.
|
|
560
590
|
* @member {module:model/WebhookEventData.DataTypeEnum} data_type
|
|
561
591
|
*/
|
|
562
592
|
_WebhookEventData = WebhookEventData;
|
|
@@ -739,7 +769,7 @@ WebhookEventData.prototype['fueling_info'] = undefined;
|
|
|
739
769
|
WebhookEventData.prototype['created_timestamp'] = undefined;
|
|
740
770
|
|
|
741
771
|
/**
|
|
742
|
-
* The time when the
|
|
772
|
+
* The time when the disposition was updated, in Unix timestamp format, measured in milliseconds.
|
|
743
773
|
* @member {Number} updated_timestamp
|
|
744
774
|
*/
|
|
745
775
|
WebhookEventData.prototype['updated_timestamp'] = undefined;
|
|
@@ -1046,5 +1076,27 @@ WebhookEventData.prototype['previous_address'] = undefined;
|
|
|
1046
1076
|
* @member {String} updated_address
|
|
1047
1077
|
*/
|
|
1048
1078
|
WebhookEventData.prototype['updated_address'] = undefined;
|
|
1049
|
-
|
|
1079
|
+
|
|
1080
|
+
/**
|
|
1081
|
+
* @member {module:model/DispositionType} disposition_type
|
|
1082
|
+
*/
|
|
1083
|
+
WebhookEventData.prototype['disposition_type'] = undefined;
|
|
1084
|
+
|
|
1085
|
+
/**
|
|
1086
|
+
* @member {module:model/DispositionStatus} disposition_status
|
|
1087
|
+
*/
|
|
1088
|
+
WebhookEventData.prototype['disposition_status'] = undefined;
|
|
1089
|
+
|
|
1090
|
+
/**
|
|
1091
|
+
* The blockchain address to receive the refunded/isolated funds.
|
|
1092
|
+
* @member {String} destination_address
|
|
1093
|
+
*/
|
|
1094
|
+
WebhookEventData.prototype['destination_address'] = undefined;
|
|
1095
|
+
|
|
1096
|
+
/**
|
|
1097
|
+
* The amount to be refunded/isolated from the original transaction, specified as a numeric string. This value cannot exceed the total amount of the original transaction.
|
|
1098
|
+
* @member {String} disposition_amount
|
|
1099
|
+
*/
|
|
1100
|
+
WebhookEventData.prototype['disposition_amount'] = undefined;
|
|
1101
|
+
WebhookEventData.OneOf = ["AddressesEventData", "BalanceUpdateInfoEventData", "ChainsEventData", "ComplianceDispositionUpdateEventData", "MPCVaultEventData", "PaymentAddressUpdateEventData", "PaymentOrderEventData", "PaymentRefundEventData", "PaymentSettlementEvent", "PaymentTransactionEventData", "SuspendedTokenEventData", "TSSRequestWebhookEventData", "TokenListingEventData", "TokensEventData", "TransactionWebhookEventData", "WalletInfoEventData"];
|
|
1050
1102
|
var _default = exports["default"] = WebhookEventData;
|
|
@@ -33,7 +33,7 @@ var WebhookEventDataType = /*#__PURE__*/function () {
|
|
|
33
33
|
* Constructs a new <code>WebhookEventDataType</code>.
|
|
34
34
|
* The data type of the event.
|
|
35
35
|
* @alias module:model/WebhookEventDataType
|
|
36
|
-
* @param data_type {module:model/WebhookEventDataType.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.
|
|
36
|
+
* @param data_type {module:model/WebhookEventDataType.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.
|
|
37
37
|
*/
|
|
38
38
|
function WebhookEventDataType(data_type) {
|
|
39
39
|
_classCallCheck(this, WebhookEventDataType);
|
|
@@ -104,7 +104,7 @@ var WebhookEventDataType = /*#__PURE__*/function () {
|
|
|
104
104
|
WebhookEventDataType.RequiredProperties = ["data_type"];
|
|
105
105
|
|
|
106
106
|
/**
|
|
107
|
-
* 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.
|
|
107
|
+
* 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.
|
|
108
108
|
* @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
|
|
109
109
|
*/
|
|
110
110
|
WebhookEventDataType.prototype['data_type'] = undefined;
|
|
@@ -190,6 +190,11 @@ WebhookEventDataType['DataTypeEnum'] = {
|
|
|
190
190
|
* @const
|
|
191
191
|
*/
|
|
192
192
|
"SuspendedToken": "SuspendedToken",
|
|
193
|
+
/**
|
|
194
|
+
* value: "ComplianceDisposition"
|
|
195
|
+
* @const
|
|
196
|
+
*/
|
|
197
|
+
"ComplianceDisposition": "ComplianceDisposition",
|
|
193
198
|
/**
|
|
194
199
|
* value: "unknown_default_open_api"
|
|
195
200
|
* @const
|
|
@@ -195,6 +195,11 @@ var WebhookEventType = exports["default"] = /*#__PURE__*/function () {
|
|
|
195
195
|
* @const
|
|
196
196
|
*/
|
|
197
197
|
_defineProperty(this, "payment.address.updated", "payment.address.updated");
|
|
198
|
+
/**
|
|
199
|
+
* value: "compliance.disposition.status.updated"
|
|
200
|
+
* @const
|
|
201
|
+
*/
|
|
202
|
+
_defineProperty(this, "compliance.disposition.status.updated", "compliance.disposition.status.updated");
|
|
198
203
|
/**
|
|
199
204
|
* value: "unknown_default_open_api"
|
|
200
205
|
* @const
|
package/docs/AddressBook.md
CHANGED
|
@@ -4,16 +4,16 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**org_id** | **String** |
|
|
8
|
-
**entry_id** | **String** |
|
|
9
|
-
**address** | **String** |
|
|
10
|
-
**memo** | **String** |
|
|
11
|
-
**wallet_name** | **String** |
|
|
7
|
+
**org_id** | **String** | Organization ID. |
|
|
8
|
+
**entry_id** | **String** | Address Book entry ID. |
|
|
9
|
+
**address** | **String** | Wallet address. |
|
|
10
|
+
**memo** | **String** | Optional memo or tag required by some chains. | [optional]
|
|
11
|
+
**wallet_name** | **String** | Wallet name. | [optional]
|
|
12
12
|
**wallet_type** | [**WalletType**](WalletType.md) | | [optional]
|
|
13
13
|
**wallet_subtype** | [**WalletSubtype**](WalletSubtype.md) | | [optional]
|
|
14
|
-
**label** | **String** |
|
|
14
|
+
**label** | **String** | A user-defined label for the address. |
|
|
15
15
|
**chain_ids** | **[String]** | A list of chain IDs. | [optional]
|
|
16
|
-
**email** | **String** |
|
|
16
|
+
**email** | **String** | Email of the address owner. | [optional]
|
|
17
17
|
**encoding** | [**AddressEncoding**](AddressEncoding.md) | | [optional]
|
|
18
18
|
|
|
19
19
|
|
package/docs/AddressBooksApi.md
CHANGED
|
@@ -4,17 +4,173 @@ All URIs are relative to *https://api.dev.cobo.com/v2*
|
|
|
4
4
|
|
|
5
5
|
Method | HTTP request | Description
|
|
6
6
|
------------- | ------------- | -------------
|
|
7
|
-
[**
|
|
7
|
+
[**createAddressBooks**](AddressBooksApi.md#createAddressBooks) | **POST** /address_books | Create Address Book entries
|
|
8
|
+
[**deleteAddressBookById**](AddressBooksApi.md#deleteAddressBookById) | **POST** /address_books/{entry_id}/delete | Delete Address Book entry
|
|
9
|
+
[**getAddressBookById**](AddressBooksApi.md#getAddressBookById) | **GET** /address_books/{entry_id} | Get Address Book entry
|
|
10
|
+
[**listAddressBooks**](AddressBooksApi.md#listAddressBooks) | **GET** /address_books | List Address Book entries
|
|
11
|
+
[**updateAddressBookById**](AddressBooksApi.md#updateAddressBookById) | **PUT** /address_books/{entry_id} | Update Address Book entry
|
|
8
12
|
|
|
9
13
|
|
|
10
14
|
|
|
15
|
+
## createAddressBooks
|
|
16
|
+
|
|
17
|
+
> CreateAddressBooks201Response createAddressBooks(opts)
|
|
18
|
+
|
|
19
|
+
Create Address Book entries
|
|
20
|
+
|
|
21
|
+
This operation adds new entries (records) to your Address Book.
|
|
22
|
+
|
|
23
|
+
### Example
|
|
24
|
+
|
|
25
|
+
```javascript
|
|
26
|
+
const CoboWaas2 = require('@cobo/cobo-waas2');
|
|
27
|
+
// Initialize the API client
|
|
28
|
+
const apiClient = CoboWaas2.ApiClient.instance
|
|
29
|
+
// Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
|
|
30
|
+
apiClient.setEnv(CoboWaas2.Env.DEV);
|
|
31
|
+
// Replace `<YOUR_PRIVATE_KEY>` with your private key
|
|
32
|
+
apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
|
|
33
|
+
// Call the API
|
|
34
|
+
const apiInstance = new CoboWaas2.AddressBooksApi();
|
|
35
|
+
const opts = {
|
|
36
|
+
'CreateAddressBooksParam': new CoboWaas2.CreateAddressBooksParam()
|
|
37
|
+
};
|
|
38
|
+
apiInstance.createAddressBooks(opts).then((data) => {
|
|
39
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
40
|
+
}, (error) => {
|
|
41
|
+
console.error(error);
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Parameters
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
Name | Type | Description | Notes
|
|
50
|
+
------------- | ------------- | ------------- | -------------
|
|
51
|
+
**CreateAddressBooksParam** | [**CreateAddressBooksParam**](CreateAddressBooksParam.md)| The request body of the create Address Books operation. | [optional]
|
|
52
|
+
|
|
53
|
+
### Return type
|
|
54
|
+
|
|
55
|
+
[**CreateAddressBooks201Response**](CreateAddressBooks201Response.md)
|
|
56
|
+
|
|
57
|
+
### Authorization
|
|
58
|
+
|
|
59
|
+
[OAuth2](../README.md#OAuth2), [CoboAuth](../README.md#CoboAuth)
|
|
60
|
+
|
|
61
|
+
### HTTP request headers
|
|
62
|
+
|
|
63
|
+
- **Content-Type**: application/json
|
|
64
|
+
- **Accept**: application/json
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
## deleteAddressBookById
|
|
68
|
+
|
|
69
|
+
> DeleteAddressBookById201Response deleteAddressBookById(entry_id)
|
|
70
|
+
|
|
71
|
+
Delete Address Book entry
|
|
72
|
+
|
|
73
|
+
This operation deletes a specified Address Book entry (record).
|
|
74
|
+
|
|
75
|
+
### Example
|
|
76
|
+
|
|
77
|
+
```javascript
|
|
78
|
+
const CoboWaas2 = require('@cobo/cobo-waas2');
|
|
79
|
+
// Initialize the API client
|
|
80
|
+
const apiClient = CoboWaas2.ApiClient.instance
|
|
81
|
+
// Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
|
|
82
|
+
apiClient.setEnv(CoboWaas2.Env.DEV);
|
|
83
|
+
// Replace `<YOUR_PRIVATE_KEY>` with your private key
|
|
84
|
+
apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
|
|
85
|
+
// Call the API
|
|
86
|
+
const apiInstance = new CoboWaas2.AddressBooksApi();
|
|
87
|
+
const entry_id = "f47ac10b-58cc-4372-a567-0e02b2c3d479";
|
|
88
|
+
apiInstance.deleteAddressBookById(entry_id).then((data) => {
|
|
89
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
90
|
+
}, (error) => {
|
|
91
|
+
console.error(error);
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### Parameters
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
Name | Type | Description | Notes
|
|
100
|
+
------------- | ------------- | ------------- | -------------
|
|
101
|
+
**entry_id** | **String**| The Address Book entry ID. |
|
|
102
|
+
|
|
103
|
+
### Return type
|
|
104
|
+
|
|
105
|
+
[**DeleteAddressBookById201Response**](DeleteAddressBookById201Response.md)
|
|
106
|
+
|
|
107
|
+
### Authorization
|
|
108
|
+
|
|
109
|
+
[OAuth2](../README.md#OAuth2), [CoboAuth](../README.md#CoboAuth)
|
|
110
|
+
|
|
111
|
+
### HTTP request headers
|
|
112
|
+
|
|
113
|
+
- **Content-Type**: Not defined
|
|
114
|
+
- **Accept**: application/json
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
## getAddressBookById
|
|
118
|
+
|
|
119
|
+
> AddressBook getAddressBookById(entry_id)
|
|
120
|
+
|
|
121
|
+
Get Address Book entry
|
|
122
|
+
|
|
123
|
+
This operation retrieves the detailed information about a specified Address Book entry (record).
|
|
124
|
+
|
|
125
|
+
### Example
|
|
126
|
+
|
|
127
|
+
```javascript
|
|
128
|
+
const CoboWaas2 = require('@cobo/cobo-waas2');
|
|
129
|
+
// Initialize the API client
|
|
130
|
+
const apiClient = CoboWaas2.ApiClient.instance
|
|
131
|
+
// Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
|
|
132
|
+
apiClient.setEnv(CoboWaas2.Env.DEV);
|
|
133
|
+
// Replace `<YOUR_PRIVATE_KEY>` with your private key
|
|
134
|
+
apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
|
|
135
|
+
// Call the API
|
|
136
|
+
const apiInstance = new CoboWaas2.AddressBooksApi();
|
|
137
|
+
const entry_id = "f47ac10b-58cc-4372-a567-0e02b2c3d479";
|
|
138
|
+
apiInstance.getAddressBookById(entry_id).then((data) => {
|
|
139
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
140
|
+
}, (error) => {
|
|
141
|
+
console.error(error);
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
### Parameters
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
Name | Type | Description | Notes
|
|
150
|
+
------------- | ------------- | ------------- | -------------
|
|
151
|
+
**entry_id** | **String**| The Address Book entry ID. |
|
|
152
|
+
|
|
153
|
+
### Return type
|
|
154
|
+
|
|
155
|
+
[**AddressBook**](AddressBook.md)
|
|
156
|
+
|
|
157
|
+
### Authorization
|
|
158
|
+
|
|
159
|
+
[OAuth2](../README.md#OAuth2), [CoboAuth](../README.md#CoboAuth)
|
|
160
|
+
|
|
161
|
+
### HTTP request headers
|
|
162
|
+
|
|
163
|
+
- **Content-Type**: Not defined
|
|
164
|
+
- **Accept**: application/json
|
|
165
|
+
|
|
166
|
+
|
|
11
167
|
## listAddressBooks
|
|
12
168
|
|
|
13
|
-
> ListAddressBooks200Response listAddressBooks(
|
|
169
|
+
> ListAddressBooks200Response listAddressBooks(opts)
|
|
14
170
|
|
|
15
|
-
List
|
|
171
|
+
List Address Book entries
|
|
16
172
|
|
|
17
|
-
This operation retrieves
|
|
173
|
+
This operation retrieves all entries (records) from your Address Book. You can filter the entries by chain ID, address, and label.
|
|
18
174
|
|
|
19
175
|
### Example
|
|
20
176
|
|
|
@@ -28,15 +184,15 @@ apiClient.setEnv(CoboWaas2.Env.DEV);
|
|
|
28
184
|
apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
|
|
29
185
|
// Call the API
|
|
30
186
|
const apiInstance = new CoboWaas2.AddressBooksApi();
|
|
31
|
-
const chain_id = "ETH";
|
|
32
187
|
const opts = {
|
|
188
|
+
'chain_id': "ETH",
|
|
33
189
|
'address': "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
|
|
34
190
|
'label': "test",
|
|
35
191
|
'limit': 10,
|
|
36
192
|
'before': "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1",
|
|
37
193
|
'after': "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk"
|
|
38
194
|
};
|
|
39
|
-
apiInstance.listAddressBooks(
|
|
195
|
+
apiInstance.listAddressBooks(opts).then((data) => {
|
|
40
196
|
console.log('API called successfully. Returned data: ' + data);
|
|
41
197
|
}, (error) => {
|
|
42
198
|
console.error(error);
|
|
@@ -49,9 +205,9 @@ apiInstance.listAddressBooks(chain_id, opts).then((data) => {
|
|
|
49
205
|
|
|
50
206
|
Name | Type | Description | Notes
|
|
51
207
|
------------- | ------------- | ------------- | -------------
|
|
52
|
-
**chain_id** | **String**| The chain ID, which is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains). |
|
|
208
|
+
**chain_id** | **String**| The chain ID, which is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains). | [optional]
|
|
53
209
|
**address** | **String**| The wallet address. | [optional]
|
|
54
|
-
**label** | **String**|
|
|
210
|
+
**label** | **String**| A user-defined label for the address. | [optional]
|
|
55
211
|
**limit** | **Number**| The maximum number of objects to return. For most operations, the value range is [1, 50]. | [optional] [default to 10]
|
|
56
212
|
**before** | **String**| A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response. | [optional]
|
|
57
213
|
**after** | **String**| A cursor indicating the position after the current page. This value is generated by Cobo and returned in the response. You do not need to provide it on the first request. When paginating forward (to the next page), you should pass the after value returned from the last response. | [optional]
|
|
@@ -69,3 +225,57 @@ Name | Type | Description | Notes
|
|
|
69
225
|
- **Content-Type**: Not defined
|
|
70
226
|
- **Accept**: application/json
|
|
71
227
|
|
|
228
|
+
|
|
229
|
+
## updateAddressBookById
|
|
230
|
+
|
|
231
|
+
> AddressBook updateAddressBookById(entry_id, opts)
|
|
232
|
+
|
|
233
|
+
Update Address Book entry
|
|
234
|
+
|
|
235
|
+
This operation updates the information of a specified Address Book entry (record).
|
|
236
|
+
|
|
237
|
+
### Example
|
|
238
|
+
|
|
239
|
+
```javascript
|
|
240
|
+
const CoboWaas2 = require('@cobo/cobo-waas2');
|
|
241
|
+
// Initialize the API client
|
|
242
|
+
const apiClient = CoboWaas2.ApiClient.instance
|
|
243
|
+
// Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
|
|
244
|
+
apiClient.setEnv(CoboWaas2.Env.DEV);
|
|
245
|
+
// Replace `<YOUR_PRIVATE_KEY>` with your private key
|
|
246
|
+
apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
|
|
247
|
+
// Call the API
|
|
248
|
+
const apiInstance = new CoboWaas2.AddressBooksApi();
|
|
249
|
+
const entry_id = "f47ac10b-58cc-4372-a567-0e02b2c3d479";
|
|
250
|
+
const opts = {
|
|
251
|
+
'UpdateAddressBookParam': new CoboWaas2.UpdateAddressBookParam()
|
|
252
|
+
};
|
|
253
|
+
apiInstance.updateAddressBookById(entry_id, opts).then((data) => {
|
|
254
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
255
|
+
}, (error) => {
|
|
256
|
+
console.error(error);
|
|
257
|
+
});
|
|
258
|
+
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
### Parameters
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
Name | Type | Description | Notes
|
|
265
|
+
------------- | ------------- | ------------- | -------------
|
|
266
|
+
**entry_id** | **String**| The Address Book entry ID. |
|
|
267
|
+
**UpdateAddressBookParam** | [**UpdateAddressBookParam**](UpdateAddressBookParam.md)| The request body of the update Address Book operation. | [optional]
|
|
268
|
+
|
|
269
|
+
### Return type
|
|
270
|
+
|
|
271
|
+
[**AddressBook**](AddressBook.md)
|
|
272
|
+
|
|
273
|
+
### Authorization
|
|
274
|
+
|
|
275
|
+
[OAuth2](../README.md#OAuth2), [CoboAuth](../README.md#CoboAuth)
|
|
276
|
+
|
|
277
|
+
### HTTP request headers
|
|
278
|
+
|
|
279
|
+
- **Content-Type**: application/json
|
|
280
|
+
- **Accept**: application/json
|
|
281
|
+
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**data_type** | **String** | 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. |
|
|
7
|
+
**data_type** | **String** | 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. |
|
|
8
8
|
**addresses** | [**[AddressesEventDataAllOfAddresses]**](AddressesEventDataAllOfAddresses.md) | A list of addresses. | [optional]
|
|
9
9
|
|
|
10
10
|
|
|
@@ -42,6 +42,8 @@ Name | Type | Description | Notes
|
|
|
42
42
|
|
|
43
43
|
* `SuspendedToken` (value: `"SuspendedToken"`)
|
|
44
44
|
|
|
45
|
+
* `ComplianceDisposition` (value: `"ComplianceDisposition"`)
|
|
46
|
+
|
|
45
47
|
* `unknown_default_open_api` (value: `"unknown_default_open_api"`)
|
|
46
48
|
|
|
47
49
|
|
package/docs/ApprovalDetail.md
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**transaction_id** | **String** |
|
|
8
|
-
**cobo_id** | **String** |
|
|
9
|
-
**request_id** | **String** |
|
|
10
|
-
**
|
|
7
|
+
**transaction_id** | **String** | Transaction ID. | [optional]
|
|
8
|
+
**cobo_id** | **String** | Cobo ID used to track a transaction. | [optional]
|
|
9
|
+
**request_id** | **String** | Request ID used to track a transaction request. | [optional]
|
|
10
|
+
**address_owner** | [**RoleDetail**](RoleDetail.md) | | [optional]
|
|
11
11
|
**spender** | [**RoleDetail**](RoleDetail.md) | | [optional]
|
|
12
12
|
**approver** | [**RoleDetail**](RoleDetail.md) | | [optional]
|
|
13
13
|
|