@cobo/cobo-waas2 1.18.0 → 1.19.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 +78 -4
- package/dist/ApiClient.js +1 -1
- package/dist/api/OAuthApi.js +2 -2
- package/dist/api/TransactionsApi.js +0 -92
- package/dist/api/WalletsApi.js +50 -0
- package/dist/index.js +518 -7
- package/dist/model/AddressesEventData.js +13 -8
- package/dist/model/ApprovalDetail.js +160 -0
- package/dist/model/ApprovalResult.js +66 -0
- package/dist/model/ApprovalShowInfo.js +140 -0
- package/dist/model/ApprovalTemplate.js +114 -0
- package/dist/model/ApprovalTransactionResult.js +66 -0
- package/dist/model/ApprovalUserDetail.js +196 -0
- package/dist/model/AutoFuelType.js +5 -0
- package/dist/model/BalanceUpdateInfoEventData.js +13 -8
- package/dist/model/ChainsEventData.js +13 -8
- package/dist/model/CreatePaymentOrderRequest.js +7 -6
- package/dist/model/CreateSettlement.js +1 -2
- package/dist/model/CustodialWeb3TransferSource.js +2 -2
- package/dist/model/EstimatedEvmEip1559Fee.js +2 -2
- package/dist/model/EstimatedEvmLegacyFee.js +2 -2
- package/dist/model/EstimatedFILFee.js +2 -2
- package/dist/model/EstimatedFILFeeSlow.js +12 -12
- package/dist/model/EstimatedFee.js +1 -1
- package/dist/model/EstimatedFixedFee.js +2 -2
- package/dist/model/EstimatedSOLFee.js +2 -2
- package/dist/model/EstimatedSOLFeeSlow.js +11 -11
- package/dist/model/EstimatedUtxoFee.js +2 -2
- package/dist/model/EvmEip1559FeeBasePrice.js +0 -1
- package/dist/model/EvmEip1559FeeRate.js +2 -2
- package/dist/model/EvmLegacyFeeBasePrice.js +0 -1
- package/dist/model/EvmLegacyFeeRate.js +2 -2
- package/dist/model/FILBase.js +1 -1
- package/dist/model/FILPrice.js +3 -4
- package/dist/model/FeeRate.js +1 -1
- package/dist/model/FixedFeeRate.js +2 -2
- package/dist/model/GetMaxTransferableValueWithFeeModelRequest.js +156 -0
- package/dist/model/MPCVaultEventData.js +13 -8
- package/dist/model/MaxFeeAmount.js +0 -1
- package/dist/model/MaxTransferableValue.js +2 -2
- package/dist/model/MpcTransferSource.js +2 -2
- package/dist/model/PaymentOrderEventData.js +13 -8
- package/dist/model/PaymentRefundEventData.js +13 -8
- package/dist/model/PaymentSettlementEvent.js +13 -8
- package/dist/model/{ListTransactionApprovalDetails200Response.js → RoleDetail.js} +46 -27
- package/dist/model/SOLBase.js +2 -2
- package/dist/model/SOLComputeUnit.js +2 -3
- package/dist/model/SuspendedTokenEventData.js +225 -0
- package/dist/model/SuspendedTokenOperationType.js +61 -0
- package/dist/model/SwapActivity.js +29 -0
- package/dist/model/SwapActivityDetail.js +38 -0
- package/dist/model/TSSRequestWebhookEventData.js +13 -8
- package/dist/model/TokenListingEventData.js +13 -8
- package/dist/model/TokenizationActivityInfo.js +224 -0
- package/dist/model/TokenizationActivityStatus.js +66 -0
- package/dist/model/TokenizationAddressPermission.js +135 -0
- package/dist/model/TokenizationAllowlistActivationParams.js +124 -0
- package/dist/model/TokenizationAllowlistActivationRequest.js +180 -0
- package/dist/model/TokenizationAllowlistAddressNote.js +132 -0
- package/dist/model/TokenizationAppInitiator.js +87 -0
- package/dist/model/TokenizationBlocklistAddressNote.js +132 -0
- package/dist/model/TokenizationBurnEstimateFeeParams.js +187 -0
- package/dist/model/TokenizationBurnTokenParams.js +146 -0
- package/dist/model/TokenizationBurnTokenParamsBurnsInner.js +125 -0
- package/dist/model/TokenizationBurnTokenRequest.js +202 -0
- package/dist/model/TokenizationContractCallEstimateFeeParams.js +167 -0
- package/dist/model/TokenizationContractCallParams.js +107 -0
- package/dist/model/TokenizationContractCallParamsData.js +164 -0
- package/dist/model/TokenizationContractCallRequest.js +182 -0
- package/dist/model/TokenizationContractCallType.js +56 -0
- package/dist/model/TokenizationERC20TokenParams.js +173 -0
- package/dist/model/TokenizationEstimateFeeRequest.js +113 -0
- package/dist/model/TokenizationEstimateFeeRequestOperationParams.js +439 -0
- package/dist/model/TokenizationEvmContractCallParams.js +133 -0
- package/dist/model/TokenizationHoldingInfo.js +166 -0
- package/dist/model/TokenizationIssueEstimateFeeParams.js +176 -0
- package/dist/model/TokenizationIssueTokenParams.js +146 -0
- package/dist/model/TokenizationIssueTokenParamsTokenParams.js +183 -0
- package/dist/model/TokenizationIssuedTokenRequest.js +206 -0
- package/dist/model/TokenizationListActivitiesResponse.js +146 -0
- package/dist/model/TokenizationListEnabledChainsResponse.js +128 -0
- package/dist/model/TokenizationListHoldingsResponse.js +146 -0
- package/dist/model/TokenizationListTokenInfoResponse.js +146 -0
- package/dist/model/TokenizationMintEstimateFeeParams.js +187 -0
- package/dist/model/TokenizationMintTokenParams.js +146 -0
- package/dist/model/TokenizationMintTokenParamsMintsInner.js +125 -0
- package/dist/model/TokenizationMintTokenRequest.js +202 -0
- package/dist/model/TokenizationMpcOperationSource.js +136 -0
- package/dist/model/TokenizationOperationResponse.js +110 -0
- package/dist/model/TokenizationOperationSourceType.js +61 -0
- package/dist/model/TokenizationOperationType.js +96 -0
- package/dist/model/TokenizationPauseEstimateFeeParams.js +149 -0
- package/dist/model/TokenizationPauseTokenParams.js +113 -0
- package/dist/model/TokenizationPauseTokenRequest.js +164 -0
- package/dist/model/TokenizationStatus.js +71 -0
- package/dist/model/TokenizationToggleAllowlistEstimateFeeParams.js +165 -0
- package/dist/model/TokenizationTokenDetailInfo.js +309 -0
- package/dist/model/TokenizationTokenInfo.js +223 -0
- package/dist/model/TokenizationTokenOperationSource.js +192 -0
- package/dist/model/TokenizationTokenPermission.js +147 -0
- package/dist/model/TokenizationTokenPermissionParams.js +166 -0
- package/dist/model/TokenizationTokenPermissionType.js +86 -0
- package/dist/model/TokenizationTokenPermissionsResponse.js +139 -0
- package/dist/model/TokenizationTokenStandard.js +56 -0
- package/dist/model/TokenizationUnpauseEstimateFeeParams.js +149 -0
- package/dist/model/TokenizationUnpauseTokenParams.js +113 -0
- package/dist/model/TokenizationUnpauseTokenRequest.js +164 -0
- package/dist/model/TokenizationUpdateAddressAction.js +61 -0
- package/dist/model/TokenizationUpdateAllowlistAddressesEstimateFeeParams.js +202 -0
- package/dist/model/TokenizationUpdateAllowlistAddressesParams.js +157 -0
- package/dist/model/TokenizationUpdateAllowlistAddressesParamsAddressesInner.js +123 -0
- package/dist/model/TokenizationUpdateAllowlistAddressesRequest.js +217 -0
- package/dist/model/TokenizationUpdateBlocklistAddressesEstimateFeeParams.js +202 -0
- package/dist/model/TokenizationUpdateBlocklistAddressesParams.js +157 -0
- package/dist/model/TokenizationUpdateBlocklistAddressesParamsAddressesInner.js +123 -0
- package/dist/model/TokenizationUpdateBlocklistAddressesRequest.js +217 -0
- package/dist/model/TokenizationWeb3OperationSource.js +136 -0
- package/dist/model/TokensEventData.js +13 -8
- package/dist/model/TopUpAddress.js +2 -2
- package/dist/model/TransactionEvmEip1559Fee.js +2 -2
- package/dist/model/TransactionEvmLegacyFee.js +2 -2
- package/dist/model/TransactionFILFee.js +11 -11
- package/dist/model/TransactionFee.js +10 -10
- package/dist/model/TransactionFixedFee.js +2 -2
- package/dist/model/TransactionRbfSource.js +1 -1
- package/dist/model/TransactionRequestEvmEip1559Fee.js +2 -2
- package/dist/model/TransactionRequestEvmLegacyFee.js +2 -2
- package/dist/model/TransactionRequestFILFee.js +11 -11
- package/dist/model/TransactionRequestFee.js +6 -6
- package/dist/model/TransactionRequestFixedFee.js +2 -2
- package/dist/model/TransactionRequestSOLFee.js +9 -9
- package/dist/model/TransactionRequestUtxoFee.js +2 -2
- package/dist/model/TransactionSOLFee.js +11 -11
- package/dist/model/TransactionSubStatus.js +5 -0
- package/dist/model/TransactionUtxoFee.js +2 -2
- package/dist/model/TransactionWebhookEventData.js +13 -8
- package/dist/model/UtxoFeeBasePrice.js +0 -1
- package/dist/model/UtxoFeeRate.js +2 -2
- package/dist/model/WalletInfoEventData.js +13 -8
- package/dist/model/WebhookEvent.js +2 -2
- package/dist/model/WebhookEventData.js +49 -9
- package/dist/model/WebhookEventDataType.js +12 -7
- package/dist/model/WebhookEventLog.js +2 -2
- package/dist/model/WebhookEventType.js +20 -0
- package/docs/AddressesEventData.md +5 -3
- package/docs/ApprovalDetail.md +14 -0
- package/docs/ApprovalResult.md +14 -0
- package/docs/ApprovalShowInfo.md +13 -0
- package/docs/ApprovalTemplate.md +11 -0
- package/docs/ApprovalTransactionResult.md +14 -0
- package/docs/ApprovalUserDetail.md +18 -0
- package/docs/AutoFuelType.md +2 -0
- package/docs/BalanceUpdateInfoEventData.md +5 -3
- package/docs/ChainsEventData.md +5 -3
- package/docs/CreatePaymentOrderRequest.md +4 -4
- package/docs/CreateSettlement.md +2 -2
- package/docs/CustodialWeb3TransferSource.md +1 -1
- package/docs/EstimatedEvmEip1559Fee.md +1 -1
- package/docs/EstimatedEvmLegacyFee.md +1 -1
- package/docs/EstimatedFILFee.md +1 -1
- package/docs/EstimatedFILFeeSlow.md +4 -4
- package/docs/EstimatedFee.md +1 -1
- package/docs/EstimatedFixedFee.md +1 -1
- package/docs/EstimatedSOLFee.md +1 -1
- package/docs/EstimatedSOLFeeSlow.md +4 -4
- package/docs/EstimatedUtxoFee.md +1 -1
- package/docs/EvmEip1559FeeRate.md +1 -1
- package/docs/EvmLegacyFeeRate.md +1 -1
- package/docs/FILBase.md +1 -1
- package/docs/FILPrice.md +3 -3
- package/docs/FeeRate.md +1 -1
- package/docs/FixedFeeRate.md +1 -1
- package/docs/GetMaxTransferableValueWithFeeModelRequest.md +12 -0
- package/docs/MPCVaultEventData.md +5 -3
- package/docs/MaxTransferableValue.md +1 -1
- package/docs/MpcTransferSource.md +1 -1
- package/docs/OAuthApi.md +1 -1
- package/docs/PaymentOrderEventData.md +5 -3
- package/docs/PaymentRefundEventData.md +5 -3
- package/docs/PaymentSettlementEvent.md +5 -3
- package/docs/RoleDetail.md +11 -0
- package/docs/SOLBase.md +2 -2
- package/docs/SOLComputeUnit.md +2 -2
- package/docs/SuspendedTokenEventData.md +46 -0
- package/docs/SuspendedTokenOperationType.md +12 -0
- package/docs/SwapActivity.md +2 -0
- package/docs/SwapActivityDetail.md +2 -0
- package/docs/TSSRequestWebhookEventData.md +5 -3
- package/docs/TokenListingEventData.md +5 -3
- package/docs/TokenizationActivityInfo.md +18 -0
- package/docs/TokenizationActivityStatus.md +14 -0
- package/docs/TokenizationAddressPermission.md +11 -0
- package/docs/TokenizationAllowlistActivationParams.md +10 -0
- package/docs/TokenizationAllowlistActivationRequest.md +12 -0
- package/docs/TokenizationAllowlistAddressNote.md +11 -0
- package/docs/TokenizationAppInitiator.md +9 -0
- package/docs/TokenizationBlocklistAddressNote.md +11 -0
- package/docs/TokenizationBurnEstimateFeeParams.md +12 -0
- package/docs/TokenizationBurnTokenParams.md +10 -0
- package/docs/TokenizationBurnTokenParamsBurnsInner.md +10 -0
- package/docs/TokenizationBurnTokenRequest.md +12 -0
- package/docs/TokenizationContractCallEstimateFeeParams.md +12 -0
- package/docs/TokenizationContractCallParams.md +10 -0
- package/docs/TokenizationContractCallParamsData.md +11 -0
- package/docs/TokenizationContractCallRequest.md +12 -0
- package/docs/TokenizationContractCallType.md +10 -0
- package/docs/TokenizationERC20TokenParams.md +14 -0
- package/docs/TokenizationEstimateFeeRequest.md +9 -0
- package/docs/TokenizationEstimateFeeRequestOperationParams.md +19 -0
- package/docs/TokenizationEvmContractCallParams.md +11 -0
- package/docs/TokenizationHoldingInfo.md +13 -0
- package/docs/TokenizationIssueEstimateFeeParams.md +12 -0
- package/docs/TokenizationIssueTokenParams.md +11 -0
- package/docs/TokenizationIssueTokenParamsTokenParams.md +14 -0
- package/docs/TokenizationIssuedTokenRequest.md +13 -0
- package/docs/TokenizationListActivitiesResponse.md +10 -0
- package/docs/TokenizationListEnabledChainsResponse.md +10 -0
- package/docs/TokenizationListHoldingsResponse.md +10 -0
- package/docs/TokenizationListTokenInfoResponse.md +10 -0
- package/docs/TokenizationMintEstimateFeeParams.md +12 -0
- package/docs/TokenizationMintTokenParams.md +10 -0
- package/docs/TokenizationMintTokenParamsMintsInner.md +10 -0
- package/docs/TokenizationMintTokenRequest.md +12 -0
- package/docs/TokenizationMpcOperationSource.md +11 -0
- package/docs/TokenizationOperationResponse.md +9 -0
- package/docs/TokenizationOperationSourceType.md +12 -0
- package/docs/TokenizationOperationType.md +26 -0
- package/docs/TokenizationPauseEstimateFeeParams.md +11 -0
- package/docs/TokenizationPauseTokenParams.md +9 -0
- package/docs/TokenizationPauseTokenRequest.md +11 -0
- package/docs/TokenizationStatus.md +16 -0
- package/docs/TokenizationToggleAllowlistEstimateFeeParams.md +12 -0
- package/docs/TokenizationTokenDetailInfo.md +19 -0
- package/docs/TokenizationTokenInfo.md +18 -0
- package/docs/TokenizationTokenOperationSource.md +11 -0
- package/docs/TokenizationTokenPermission.md +12 -0
- package/docs/TokenizationTokenPermissionParams.md +15 -0
- package/docs/TokenizationTokenPermissionType.md +22 -0
- package/docs/TokenizationTokenPermissionsResponse.md +10 -0
- package/docs/TokenizationTokenStandard.md +10 -0
- package/docs/TokenizationUnpauseEstimateFeeParams.md +11 -0
- package/docs/TokenizationUnpauseTokenParams.md +9 -0
- package/docs/TokenizationUnpauseTokenRequest.md +11 -0
- package/docs/TokenizationUpdateAddressAction.md +12 -0
- package/docs/TokenizationUpdateAllowlistAddressesEstimateFeeParams.md +13 -0
- package/docs/TokenizationUpdateAllowlistAddressesParams.md +11 -0
- package/docs/TokenizationUpdateAllowlistAddressesParamsAddressesInner.md +10 -0
- package/docs/TokenizationUpdateAllowlistAddressesRequest.md +13 -0
- package/docs/TokenizationUpdateBlocklistAddressesEstimateFeeParams.md +13 -0
- package/docs/TokenizationUpdateBlocklistAddressesParams.md +11 -0
- package/docs/TokenizationUpdateBlocklistAddressesParamsAddressesInner.md +10 -0
- package/docs/TokenizationUpdateBlocklistAddressesRequest.md +13 -0
- package/docs/TokenizationWeb3OperationSource.md +11 -0
- package/docs/TokensEventData.md +5 -3
- package/docs/TopUpAddress.md +1 -1
- package/docs/TransactionEvmEip1559Fee.md +2 -2
- package/docs/TransactionEvmLegacyFee.md +2 -2
- package/docs/TransactionFILFee.md +6 -6
- package/docs/TransactionFee.md +10 -10
- package/docs/TransactionFixedFee.md +2 -2
- package/docs/TransactionRbfSource.md +1 -1
- package/docs/TransactionRequestEvmEip1559Fee.md +1 -1
- package/docs/TransactionRequestEvmLegacyFee.md +1 -1
- package/docs/TransactionRequestFILFee.md +4 -4
- package/docs/TransactionRequestFee.md +6 -6
- package/docs/TransactionRequestFixedFee.md +1 -1
- package/docs/TransactionRequestSOLFee.md +3 -3
- package/docs/TransactionRequestUtxoFee.md +1 -1
- package/docs/TransactionSOLFee.md +6 -6
- package/docs/TransactionSubStatus.md +2 -0
- package/docs/TransactionUtxoFee.md +2 -2
- package/docs/TransactionWebhookEventData.md +5 -3
- package/docs/TransactionsApi.md +0 -106
- package/docs/UtxoFeeRate.md +1 -1
- package/docs/WalletInfoEventData.md +5 -3
- package/docs/WalletsApi.md +55 -0
- package/docs/WebhookEvent.md +1 -1
- package/docs/WebhookEventData.md +7 -3
- package/docs/WebhookEventDataType.md +5 -3
- package/docs/WebhookEventLog.md +1 -1
- package/docs/WebhookEventType.md +8 -0
- package/package.json +1 -1
- package/docs/ListTransactionApprovalDetails200Response.md +0 -9
|
@@ -23,6 +23,8 @@ var _SettleRequestStatus = _interopRequireDefault(require("./SettleRequestStatus
|
|
|
23
23
|
var _SettleStatus = _interopRequireDefault(require("./SettleStatus"));
|
|
24
24
|
var _SettlementDetail = _interopRequireDefault(require("./SettlementDetail"));
|
|
25
25
|
var _SourceGroup = _interopRequireDefault(require("./SourceGroup"));
|
|
26
|
+
var _SuspendedTokenEventData = _interopRequireDefault(require("./SuspendedTokenEventData"));
|
|
27
|
+
var _SuspendedTokenOperationType = _interopRequireDefault(require("./SuspendedTokenOperationType"));
|
|
26
28
|
var _TSSRequestWebhookEventData = _interopRequireDefault(require("./TSSRequestWebhookEventData"));
|
|
27
29
|
var _TokenInfo = _interopRequireDefault(require("./TokenInfo"));
|
|
28
30
|
var _TokenListingEventData = _interopRequireDefault(require("./TokenListingEventData"));
|
|
@@ -68,7 +70,7 @@ var WebhookEventData = /*#__PURE__*/function () {
|
|
|
68
70
|
/**
|
|
69
71
|
* Constructs a new <code>WebhookEventData</code>.
|
|
70
72
|
* @alias module:model/WebhookEventData
|
|
71
|
-
* @param {(module:model/AddressesEventData|module:model/BalanceUpdateInfoEventData|module:model/ChainsEventData|module:model/MPCVaultEventData|module:model/PaymentOrderEventData|module:model/PaymentRefundEventData|module:model/PaymentSettlementEvent|module:model/TSSRequestWebhookEventData|module:model/TokenListingEventData|module:model/TokensEventData|module:model/TransactionWebhookEventData|module:model/WalletInfoEventData)} instance The actual instance to initialize WebhookEventData.
|
|
73
|
+
* @param {(module:model/AddressesEventData|module:model/BalanceUpdateInfoEventData|module:model/ChainsEventData|module:model/MPCVaultEventData|module:model/PaymentOrderEventData|module:model/PaymentRefundEventData|module:model/PaymentSettlementEvent|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.
|
|
72
74
|
*/
|
|
73
75
|
function WebhookEventData() {
|
|
74
76
|
var instance = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
@@ -117,6 +119,10 @@ var WebhookEventData = /*#__PURE__*/function () {
|
|
|
117
119
|
this.actualInstance = _PaymentSettlementEvent["default"].constructFromObject(instance);
|
|
118
120
|
match++;
|
|
119
121
|
break;
|
|
122
|
+
case "SuspendedToken":
|
|
123
|
+
this.actualInstance = _SuspendedTokenEventData["default"].constructFromObject(instance);
|
|
124
|
+
match++;
|
|
125
|
+
break;
|
|
120
126
|
case "TSSRequest":
|
|
121
127
|
this.actualInstance = _TSSRequestWebhookEventData["default"].constructFromObject(instance);
|
|
122
128
|
match++;
|
|
@@ -350,6 +356,29 @@ var WebhookEventData = /*#__PURE__*/function () {
|
|
|
350
356
|
// json data failed to deserialize into BalanceUpdateInfoEventData
|
|
351
357
|
errorMessages.push("Failed to construct BalanceUpdateInfoEventData: " + err);
|
|
352
358
|
}
|
|
359
|
+
try {
|
|
360
|
+
if (instance instanceof _SuspendedTokenEventData["default"]) {
|
|
361
|
+
this.actualInstance = instance;
|
|
362
|
+
} else if (!!_SuspendedTokenEventData["default"].validateJSON && _SuspendedTokenEventData["default"].validateJSON(instance)) {
|
|
363
|
+
// plain JS object
|
|
364
|
+
// create SuspendedTokenEventData from JS object
|
|
365
|
+
this.actualInstance = _SuspendedTokenEventData["default"].constructFromObject(instance);
|
|
366
|
+
} else {
|
|
367
|
+
if (_SuspendedTokenEventData["default"].constructFromObject(instance)) {
|
|
368
|
+
if (!!_SuspendedTokenEventData["default"].constructFromObject(instance).toJSON) {
|
|
369
|
+
if (_SuspendedTokenEventData["default"].constructFromObject(instance).toJSON()) {
|
|
370
|
+
this.actualInstance = _SuspendedTokenEventData["default"].constructFromObject(instance);
|
|
371
|
+
}
|
|
372
|
+
} else {
|
|
373
|
+
this.actualInstance = _SuspendedTokenEventData["default"].constructFromObject(instance);
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
match++;
|
|
378
|
+
} catch (err) {
|
|
379
|
+
// json data failed to deserialize into SuspendedTokenEventData
|
|
380
|
+
errorMessages.push("Failed to construct SuspendedTokenEventData: " + err);
|
|
381
|
+
}
|
|
353
382
|
try {
|
|
354
383
|
if (instance instanceof _PaymentOrderEventData["default"]) {
|
|
355
384
|
this.actualInstance = instance;
|
|
@@ -421,11 +450,11 @@ var WebhookEventData = /*#__PURE__*/function () {
|
|
|
421
450
|
}
|
|
422
451
|
|
|
423
452
|
// if (match > 1) {
|
|
424
|
-
// throw new Error("Multiple matches found constructing `WebhookEventData` with oneOf schemas AddressesEventData, BalanceUpdateInfoEventData, ChainsEventData, MPCVaultEventData, PaymentOrderEventData, PaymentRefundEventData, PaymentSettlementEvent, TSSRequestWebhookEventData, TokenListingEventData, TokensEventData, TransactionWebhookEventData, WalletInfoEventData. Input: " + JSON.stringify(instance));
|
|
453
|
+
// throw new Error("Multiple matches found constructing `WebhookEventData` with oneOf schemas AddressesEventData, BalanceUpdateInfoEventData, ChainsEventData, MPCVaultEventData, PaymentOrderEventData, PaymentRefundEventData, PaymentSettlementEvent, SuspendedTokenEventData, TSSRequestWebhookEventData, TokenListingEventData, TokensEventData, TransactionWebhookEventData, WalletInfoEventData. Input: " + JSON.stringify(instance));
|
|
425
454
|
// } else
|
|
426
455
|
if (match === 0) {
|
|
427
456
|
// this.actualInstance = null; // clear the actual instance in case there are multiple matches
|
|
428
|
-
// throw new Error("No match found constructing `WebhookEventData` with oneOf schemas AddressesEventData, BalanceUpdateInfoEventData, ChainsEventData, MPCVaultEventData, PaymentOrderEventData, PaymentRefundEventData, PaymentSettlementEvent, TSSRequestWebhookEventData, TokenListingEventData, TokensEventData, TransactionWebhookEventData, WalletInfoEventData. Details: " +
|
|
457
|
+
// throw new Error("No match found constructing `WebhookEventData` with oneOf schemas AddressesEventData, BalanceUpdateInfoEventData, ChainsEventData, MPCVaultEventData, PaymentOrderEventData, PaymentRefundEventData, PaymentSettlementEvent, SuspendedTokenEventData, TSSRequestWebhookEventData, TokenListingEventData, TokensEventData, TransactionWebhookEventData, WalletInfoEventData. Details: " +
|
|
429
458
|
// errorMessages.join(", "));
|
|
430
459
|
return;
|
|
431
460
|
} else {// only 1 match
|
|
@@ -444,16 +473,16 @@ var WebhookEventData = /*#__PURE__*/function () {
|
|
|
444
473
|
key: "getActualInstance",
|
|
445
474
|
value:
|
|
446
475
|
/**
|
|
447
|
-
* Gets the actual instance, which can be <code>AddressesEventData</code>, <code>BalanceUpdateInfoEventData</code>, <code>ChainsEventData</code>, <code>MPCVaultEventData</code>, <code>PaymentOrderEventData</code>, <code>PaymentRefundEventData</code>, <code>PaymentSettlementEvent</code>, <code>TSSRequestWebhookEventData</code>, <code>TokenListingEventData</code>, <code>TokensEventData</code>, <code>TransactionWebhookEventData</code>, <code>WalletInfoEventData</code>.
|
|
448
|
-
* @return {(module:model/AddressesEventData|module:model/BalanceUpdateInfoEventData|module:model/ChainsEventData|module:model/MPCVaultEventData|module:model/PaymentOrderEventData|module:model/PaymentRefundEventData|module:model/PaymentSettlementEvent|module:model/TSSRequestWebhookEventData|module:model/TokenListingEventData|module:model/TokensEventData|module:model/TransactionWebhookEventData|module:model/WalletInfoEventData)} The actual instance.
|
|
476
|
+
* Gets the actual instance, which can be <code>AddressesEventData</code>, <code>BalanceUpdateInfoEventData</code>, <code>ChainsEventData</code>, <code>MPCVaultEventData</code>, <code>PaymentOrderEventData</code>, <code>PaymentRefundEventData</code>, <code>PaymentSettlementEvent</code>, <code>SuspendedTokenEventData</code>, <code>TSSRequestWebhookEventData</code>, <code>TokenListingEventData</code>, <code>TokensEventData</code>, <code>TransactionWebhookEventData</code>, <code>WalletInfoEventData</code>.
|
|
477
|
+
* @return {(module:model/AddressesEventData|module:model/BalanceUpdateInfoEventData|module:model/ChainsEventData|module:model/MPCVaultEventData|module:model/PaymentOrderEventData|module:model/PaymentRefundEventData|module:model/PaymentSettlementEvent|module:model/SuspendedTokenEventData|module:model/TSSRequestWebhookEventData|module:model/TokenListingEventData|module:model/TokensEventData|module:model/TransactionWebhookEventData|module:model/WalletInfoEventData)} The actual instance.
|
|
449
478
|
*/
|
|
450
479
|
function getActualInstance() {
|
|
451
480
|
return this.actualInstance;
|
|
452
481
|
}
|
|
453
482
|
|
|
454
483
|
/**
|
|
455
|
-
* Sets the actual instance, which can be <code>AddressesEventData</code>, <code>BalanceUpdateInfoEventData</code>, <code>ChainsEventData</code>, <code>MPCVaultEventData</code>, <code>PaymentOrderEventData</code>, <code>PaymentRefundEventData</code>, <code>PaymentSettlementEvent</code>, <code>TSSRequestWebhookEventData</code>, <code>TokenListingEventData</code>, <code>TokensEventData</code>, <code>TransactionWebhookEventData</code>, <code>WalletInfoEventData</code>.
|
|
456
|
-
* @param {(module:model/AddressesEventData|module:model/BalanceUpdateInfoEventData|module:model/ChainsEventData|module:model/MPCVaultEventData|module:model/PaymentOrderEventData|module:model/PaymentRefundEventData|module:model/PaymentSettlementEvent|module:model/TSSRequestWebhookEventData|module:model/TokenListingEventData|module:model/TokensEventData|module:model/TransactionWebhookEventData|module:model/WalletInfoEventData)} obj The actual instance.
|
|
484
|
+
* Sets the actual instance, which can be <code>AddressesEventData</code>, <code>BalanceUpdateInfoEventData</code>, <code>ChainsEventData</code>, <code>MPCVaultEventData</code>, <code>PaymentOrderEventData</code>, <code>PaymentRefundEventData</code>, <code>PaymentSettlementEvent</code>, <code>SuspendedTokenEventData</code>, <code>TSSRequestWebhookEventData</code>, <code>TokenListingEventData</code>, <code>TokensEventData</code>, <code>TransactionWebhookEventData</code>, <code>WalletInfoEventData</code>.
|
|
485
|
+
* @param {(module:model/AddressesEventData|module:model/BalanceUpdateInfoEventData|module:model/ChainsEventData|module:model/MPCVaultEventData|module:model/PaymentOrderEventData|module:model/PaymentRefundEventData|module:model/PaymentSettlementEvent|module:model/SuspendedTokenEventData|module:model/TSSRequestWebhookEventData|module:model/TokenListingEventData|module:model/TokensEventData|module:model/TransactionWebhookEventData|module:model/WalletInfoEventData)} obj The actual instance.
|
|
457
486
|
*/
|
|
458
487
|
}, {
|
|
459
488
|
key: "setActualInstance",
|
|
@@ -468,7 +497,7 @@ var WebhookEventData = /*#__PURE__*/function () {
|
|
|
468
497
|
}]);
|
|
469
498
|
}();
|
|
470
499
|
/**
|
|
471
|
-
* 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. - `
|
|
500
|
+
* 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. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
|
|
472
501
|
* @member {module:model/WebhookEventData.DataTypeEnum} data_type
|
|
473
502
|
*/
|
|
474
503
|
_WebhookEventData = WebhookEventData;
|
|
@@ -768,6 +797,17 @@ WebhookEventData.prototype['wallet_uuid'] = undefined;
|
|
|
768
797
|
*/
|
|
769
798
|
WebhookEventData.prototype['balance'] = undefined;
|
|
770
799
|
|
|
800
|
+
/**
|
|
801
|
+
* A list of token IDs, separated by comma.
|
|
802
|
+
* @member {String} token_ids
|
|
803
|
+
*/
|
|
804
|
+
WebhookEventData.prototype['token_ids'] = undefined;
|
|
805
|
+
|
|
806
|
+
/**
|
|
807
|
+
* @member {module:model/SuspendedTokenOperationType} operation_type
|
|
808
|
+
*/
|
|
809
|
+
WebhookEventData.prototype['operation_type'] = undefined;
|
|
810
|
+
|
|
771
811
|
/**
|
|
772
812
|
* The ID of the pay-in order corresponding to this refund.
|
|
773
813
|
* @member {String} order_id
|
|
@@ -902,5 +942,5 @@ WebhookEventData.prototype['settlement_request_id'] = undefined;
|
|
|
902
942
|
* @member {Array.<module:model/SettlementDetail>} settlements
|
|
903
943
|
*/
|
|
904
944
|
WebhookEventData.prototype['settlements'] = undefined;
|
|
905
|
-
WebhookEventData.OneOf = ["AddressesEventData", "BalanceUpdateInfoEventData", "ChainsEventData", "MPCVaultEventData", "PaymentOrderEventData", "PaymentRefundEventData", "PaymentSettlementEvent", "TSSRequestWebhookEventData", "TokenListingEventData", "TokensEventData", "TransactionWebhookEventData", "WalletInfoEventData"];
|
|
945
|
+
WebhookEventData.OneOf = ["AddressesEventData", "BalanceUpdateInfoEventData", "ChainsEventData", "MPCVaultEventData", "PaymentOrderEventData", "PaymentRefundEventData", "PaymentSettlementEvent", "SuspendedTokenEventData", "TSSRequestWebhookEventData", "TokenListingEventData", "TokensEventData", "TransactionWebhookEventData", "WalletInfoEventData"];
|
|
906
946
|
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. - `
|
|
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. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension 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. - `
|
|
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. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
|
|
108
108
|
* @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
|
|
109
109
|
*/
|
|
110
110
|
WebhookEventDataType.prototype['data_type'] = undefined;
|
|
@@ -155,11 +155,6 @@ WebhookEventDataType['DataTypeEnum'] = {
|
|
|
155
155
|
* @const
|
|
156
156
|
*/
|
|
157
157
|
"TokenListing": "TokenListing",
|
|
158
|
-
/**
|
|
159
|
-
* value: "BalanceUpdateInfo"
|
|
160
|
-
* @const
|
|
161
|
-
*/
|
|
162
|
-
"BalanceUpdateInfo": "BalanceUpdateInfo",
|
|
163
158
|
/**
|
|
164
159
|
* value: "PaymentOrder"
|
|
165
160
|
* @const
|
|
@@ -175,6 +170,16 @@ WebhookEventDataType['DataTypeEnum'] = {
|
|
|
175
170
|
* @const
|
|
176
171
|
*/
|
|
177
172
|
"PaymentSettlement": "PaymentSettlement",
|
|
173
|
+
/**
|
|
174
|
+
* value: "BalanceUpdateInfo"
|
|
175
|
+
* @const
|
|
176
|
+
*/
|
|
177
|
+
"BalanceUpdateInfo": "BalanceUpdateInfo",
|
|
178
|
+
/**
|
|
179
|
+
* value: "SuspendedToken"
|
|
180
|
+
* @const
|
|
181
|
+
*/
|
|
182
|
+
"SuspendedToken": "SuspendedToken",
|
|
178
183
|
/**
|
|
179
184
|
* value: "unknown_default_open_api"
|
|
180
185
|
* @const
|
|
@@ -35,7 +35,7 @@ var WebhookEventLog = /*#__PURE__*/function () {
|
|
|
35
35
|
* The webhook event log.
|
|
36
36
|
* @alias module:model/WebhookEventLog
|
|
37
37
|
* @param id {String} The event log ID.
|
|
38
|
-
* @param created_timestamp {Number} The time when the event
|
|
38
|
+
* @param created_timestamp {Number} The time when the event was triggered, in Unix timestamp format (milliseconds). - The value remains unchanged across retries. - The default webhook timeout is 2 seconds.
|
|
39
39
|
* @param request_headers {Object} The request headers of the webhook event.
|
|
40
40
|
* @param request_body {module:model/WebhookEvent}
|
|
41
41
|
* @param success {Boolean} Whether the webhook event has been successfully delivered.
|
|
@@ -158,7 +158,7 @@ WebhookEventLog.RequiredProperties = ["id", "created_timestamp", "request_header
|
|
|
158
158
|
WebhookEventLog.prototype['id'] = undefined;
|
|
159
159
|
|
|
160
160
|
/**
|
|
161
|
-
* The time when the event
|
|
161
|
+
* The time when the event was triggered, in Unix timestamp format (milliseconds). - The value remains unchanged across retries. - The default webhook timeout is 2 seconds.
|
|
162
162
|
* @member {Number} created_timestamp
|
|
163
163
|
*/
|
|
164
164
|
WebhookEventLog.prototype['created_timestamp'] = undefined;
|
|
@@ -135,6 +135,26 @@ var WebhookEventType = exports["default"] = /*#__PURE__*/function () {
|
|
|
135
135
|
* @const
|
|
136
136
|
*/
|
|
137
137
|
_defineProperty(this, "wallet.web3.balance.updated", "wallet.web3.balance.updated");
|
|
138
|
+
/**
|
|
139
|
+
* value: "wallet.token.disabled"
|
|
140
|
+
* @const
|
|
141
|
+
*/
|
|
142
|
+
_defineProperty(this, "wallet.token.disabled", "wallet.token.disabled");
|
|
143
|
+
/**
|
|
144
|
+
* value: "wallet.chain.disabled"
|
|
145
|
+
* @const
|
|
146
|
+
*/
|
|
147
|
+
_defineProperty(this, "wallet.chain.disabled", "wallet.chain.disabled");
|
|
148
|
+
/**
|
|
149
|
+
* value: "token.suspended.deposit"
|
|
150
|
+
* @const
|
|
151
|
+
*/
|
|
152
|
+
_defineProperty(this, "token.suspended.deposit", "token.suspended.deposit");
|
|
153
|
+
/**
|
|
154
|
+
* value: "token.suspended.withdraw"
|
|
155
|
+
* @const
|
|
156
|
+
*/
|
|
157
|
+
_defineProperty(this, "token.suspended.withdraw", "token.suspended.withdraw");
|
|
138
158
|
/**
|
|
139
159
|
* value: "payment.transaction.created"
|
|
140
160
|
* @const
|
|
@@ -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. - `
|
|
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. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. |
|
|
8
8
|
**addresses** | [**[AddressesEventDataAllOfAddresses]**](AddressesEventDataAllOfAddresses.md) | A list of addresses. | [optional]
|
|
9
9
|
|
|
10
10
|
|
|
@@ -28,14 +28,16 @@ Name | Type | Description | Notes
|
|
|
28
28
|
|
|
29
29
|
* `TokenListing` (value: `"TokenListing"`)
|
|
30
30
|
|
|
31
|
-
* `BalanceUpdateInfo` (value: `"BalanceUpdateInfo"`)
|
|
32
|
-
|
|
33
31
|
* `PaymentOrder` (value: `"PaymentOrder"`)
|
|
34
32
|
|
|
35
33
|
* `PaymentRefund` (value: `"PaymentRefund"`)
|
|
36
34
|
|
|
37
35
|
* `PaymentSettlement` (value: `"PaymentSettlement"`)
|
|
38
36
|
|
|
37
|
+
* `BalanceUpdateInfo` (value: `"BalanceUpdateInfo"`)
|
|
38
|
+
|
|
39
|
+
* `SuspendedToken` (value: `"SuspendedToken"`)
|
|
40
|
+
|
|
39
41
|
* `unknown_default_open_api` (value: `"unknown_default_open_api"`)
|
|
40
42
|
|
|
41
43
|
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# CoboWaas2.ApprovalDetail
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**transaction_id** | **String** | The transaction ID. | [optional]
|
|
8
|
+
**cobo_id** | **String** | The Cobo ID, which can be used to track a transaction. | [optional]
|
|
9
|
+
**request_id** | **String** | 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. | [optional]
|
|
10
|
+
**broker_user** | [**RoleDetail**](RoleDetail.md) | | [optional]
|
|
11
|
+
**spender** | [**RoleDetail**](RoleDetail.md) | | [optional]
|
|
12
|
+
**approver** | [**RoleDetail**](RoleDetail.md) | | [optional]
|
|
13
|
+
|
|
14
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# CoboWaas2.ApprovalShowInfo
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**org_name** | **String** | The name of the organization that the transaction belongs to. | [optional]
|
|
8
|
+
**wallet_name** | **String** | The name of the wallet that the transaction belongs to. | [optional]
|
|
9
|
+
**environment** | **String** | The environment in which the transaction is processed. | [optional]
|
|
10
|
+
**from_address_label** | **String** | The label of the address from which the transaction is initiated. | [optional]
|
|
11
|
+
**to_address_label** | **String** | The label of the address to which the transaction is sent. | [optional]
|
|
12
|
+
|
|
13
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# CoboWaas2.ApprovalTemplate
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**business_key** | **String** | The business key that is used to identify the transaction. | [optional]
|
|
8
|
+
**template_text** | **String** | The template text that is used for the transaction approval. | [optional]
|
|
9
|
+
**template_version** | **String** | The version of the template used for the transaction approval. | [optional]
|
|
10
|
+
|
|
11
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# CoboWaas2.ApprovalUserDetail
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**user_email** | **String** | The email address of the user who approved the transaction. | [optional]
|
|
8
|
+
**pubkey** | **String** | The public key of the user who approved the transaction. | [optional]
|
|
9
|
+
**signature** | **String** | The signature of the transaction approval. | [optional]
|
|
10
|
+
**statement_uuid** | **String** | The UUID of the statement associated with the transaction approval. | [optional]
|
|
11
|
+
**result** | [**ApprovalResult**](ApprovalResult.md) | | [optional]
|
|
12
|
+
**created_time** | **Number** | The timestamp when the approval was created. | [optional]
|
|
13
|
+
**template_version** | **String** | The version of the template used for the transaction approval. | [optional]
|
|
14
|
+
**header_title** | **String** | The title of the header for the transaction approval. | [optional]
|
|
15
|
+
**is_for_sign** | **Boolean** | Indicates whether the approval is for signing. | [optional]
|
|
16
|
+
**show_info** | [**ApprovalShowInfo**](ApprovalShowInfo.md) | | [optional]
|
|
17
|
+
|
|
18
|
+
|
package/docs/AutoFuelType.md
CHANGED
|
@@ -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. - `
|
|
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. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. |
|
|
8
8
|
**token_id** | **String** | The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens). |
|
|
9
9
|
**address** | **String** | The wallet address. |
|
|
10
10
|
**wallet_uuid** | **String** | The wallet ID. |
|
|
@@ -32,14 +32,16 @@ Name | Type | Description | Notes
|
|
|
32
32
|
|
|
33
33
|
* `TokenListing` (value: `"TokenListing"`)
|
|
34
34
|
|
|
35
|
-
* `BalanceUpdateInfo` (value: `"BalanceUpdateInfo"`)
|
|
36
|
-
|
|
37
35
|
* `PaymentOrder` (value: `"PaymentOrder"`)
|
|
38
36
|
|
|
39
37
|
* `PaymentRefund` (value: `"PaymentRefund"`)
|
|
40
38
|
|
|
41
39
|
* `PaymentSettlement` (value: `"PaymentSettlement"`)
|
|
42
40
|
|
|
41
|
+
* `BalanceUpdateInfo` (value: `"BalanceUpdateInfo"`)
|
|
42
|
+
|
|
43
|
+
* `SuspendedToken` (value: `"SuspendedToken"`)
|
|
44
|
+
|
|
43
45
|
* `unknown_default_open_api` (value: `"unknown_default_open_api"`)
|
|
44
46
|
|
|
45
47
|
|
package/docs/ChainsEventData.md
CHANGED
|
@@ -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. - `
|
|
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. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. |
|
|
8
8
|
**chains** | [**[ChainInfo]**](ChainInfo.md) | The enabled chains. |
|
|
9
9
|
**wallet_type** | [**WalletType**](WalletType.md) | | [optional]
|
|
10
10
|
**wallet_subtypes** | [**[WalletSubtype]**](WalletSubtype.md) | | [optional]
|
|
@@ -30,14 +30,16 @@ Name | Type | Description | Notes
|
|
|
30
30
|
|
|
31
31
|
* `TokenListing` (value: `"TokenListing"`)
|
|
32
32
|
|
|
33
|
-
* `BalanceUpdateInfo` (value: `"BalanceUpdateInfo"`)
|
|
34
|
-
|
|
35
33
|
* `PaymentOrder` (value: `"PaymentOrder"`)
|
|
36
34
|
|
|
37
35
|
* `PaymentRefund` (value: `"PaymentRefund"`)
|
|
38
36
|
|
|
39
37
|
* `PaymentSettlement` (value: `"PaymentSettlement"`)
|
|
40
38
|
|
|
39
|
+
* `BalanceUpdateInfo` (value: `"BalanceUpdateInfo"`)
|
|
40
|
+
|
|
41
|
+
* `SuspendedToken` (value: `"SuspendedToken"`)
|
|
42
|
+
|
|
41
43
|
* `unknown_default_open_api` (value: `"unknown_default_open_api"`)
|
|
42
44
|
|
|
43
45
|
|
|
@@ -6,12 +6,12 @@ Name | Type | Description | Notes
|
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**merchant_id** | **String** | The merchant ID. |
|
|
8
8
|
**token_id** | **String** | The ID of the cryptocurrency used for payment. Supported values: - USDC: `ETH_USDC`, `ARBITRUM_USDC`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT` |
|
|
9
|
-
**currency** | **String** | The fiat currency of the order. | [optional] [default to 'USD']
|
|
9
|
+
**currency** | **String** | The fiat currency of the order. Currently, only `USD` is supported. | [optional] [default to 'USD']
|
|
10
10
|
**order_amount** | **String** | The base amount of the order in fiat currency, excluding the developer fee (specified in `fee_amount`). Values must be greater than `0` and contain two decimal places. |
|
|
11
11
|
**fee_amount** | **String** | The developer fee for the order in fiat currency. It is added to the base amount (`order_amount`) to determine the final charge. For example, if order_amount is \"100.00\" and fee_amount is \"2.00\", the customer will be charged \"102.00\" in total, with \"100.00\" being settled to the merchant and \"2.00\" settled to the developer. Values must be greater than 0 and contain two decimal places. |
|
|
12
|
-
**merchant_order_code** | **String** | A unique reference code assigned by the merchant to identify this order in their system. | [optional]
|
|
13
|
-
**psp_order_code** | **String** | A unique reference code assigned by
|
|
14
|
-
**expired_in** | **Number** | The number of seconds
|
|
12
|
+
**merchant_order_code** | **String** | A unique reference code assigned by the merchant to identify this order in their system. The code should have a maximum length of 128 characters. | [optional]
|
|
13
|
+
**psp_order_code** | **String** | A unique reference code assigned by you as a developer to identify this order in your system. This code must be unique across all orders in your system. The code should have a maximum length of 128 characters. |
|
|
14
|
+
**expired_in** | **Number** | The number of seconds until the pay-in order expires, counted from when the request is sent. For example, if set to `1800`, the order will expire in 30 minutes. After expiration: - The order status becomes final and cannot be changed - The `received_token_amount` field will no longer be updated - Funds received after expiration will be categorized as late payments and can only be settled from the developer balance. - A late payment will trigger a `transactionLate` webhook event. | [optional] [default to 1800]
|
|
15
15
|
**use_dedicated_address** | **Boolean** | Whether to allocate a dedicated address for this order. - `true`: A dedicated address will be allocated for this order. - `false`: A shared address from the address pool will be used. | [optional]
|
|
16
16
|
|
|
17
17
|
|
package/docs/CreateSettlement.md
CHANGED
|
@@ -7,9 +7,9 @@ Name | Type | Description | Notes
|
|
|
7
7
|
**merchant_id** | **String** | The merchant ID. Specify this field when `settlement_type` is set to `Merchant`. | [optional]
|
|
8
8
|
**token_id** | **String** | The ID of the cryptocurrency you want to settle. Specify this field when `payout_channel` is set to `Crypto`. Supported values: - USDC: `ETH_USDC`, `ARBITRUM_USDC`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT` | [optional]
|
|
9
9
|
**currency** | **String** | The fiat currency for settling the cryptocurrency. Currently, only `USD` is supported. Specify this field when `payout_channel` is set to `OffRamp`. | [optional]
|
|
10
|
-
**amount** | **String** | The settlement amount. - If `payout_channel` is set to `Crypto`, this represents the settlement amount in the specified cryptocurrency. - If `payout_channel` is set to `OffRamp`, this represents the settlement amount in the specified fiat currency. | [optional]
|
|
10
|
+
**amount** | **String** | The settlement amount. When settling merchant balance from orders (`acquiring_type` is `Order` and `settlement_type` is `Merchant`), do not specify this field as the settlement amount will be automatically calculated based on the order amounts. - If `payout_channel` is set to `Crypto`, this represents the settlement amount in the specified cryptocurrency. - If `payout_channel` is set to `OffRamp`, this represents the settlement amount in the specified fiat currency. | [optional]
|
|
11
11
|
**bank_account_id** | **String** | The ID of the bank account where the settled funds will be deposited. This field is only applicable when `payout_channel` is set to `OffRamp`. Call [List all bank accounts](/v2/api-references/payment/list-all-bank-accounts) to retrieve the IDs of registered bank accounts. | [optional]
|
|
12
12
|
**crypto_address_id** | **String** | The ID of the crypto address used for crypto withdrawal. Specify this field when `payout_channel` is set to `Crypto`. Call [List all crypto addresses](/v2/api-references/payments/list-all-crypto-addresses) to retrieve registered crypto addresses. | [optional]
|
|
13
|
-
**order_ids** | **[String]** |
|
|
13
|
+
**order_ids** | **[String]** | | [optional]
|
|
14
14
|
|
|
15
15
|
|
|
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
|
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**source_type** | [**WalletSubtype**](WalletSubtype.md) | |
|
|
8
8
|
**wallet_id** | **String** | The wallet ID. |
|
|
9
|
-
**address** | **String** |
|
|
9
|
+
**address** | **String** | Indicates the wallet address to be used as the source of funds. - For UTXO-based chains: both `address` and `included_utxos` are optional. If both `address` and `included_utxos` are provided, the UTXOs must belong to the specified address. If neither `address` nor `included_utxos` is provided, the system will select UTXOs from the wallet associated with `wallet_id`. For RBF transactions, please note the following: - If the original transaction did not specify `included_utxos`, the RBF transaction may omit `address`, `included_utxos`, or both. - If the original transaction specified `included_utxos`, the RBF transaction must specify either `address` or `included_utxos`, or both. - The `address` or `included_utxos` in the RBF transaction may differ from those in the original transaction. - For account-based chains: You need to provide `address` otherwise the token transfer will fail. However, when estimating fees for a transfer, `address` is not required. | [optional]
|
|
10
10
|
**included_utxos** | [**[TransactionUtxo]**](TransactionUtxo.md) | | [optional]
|
|
11
11
|
**excluded_utxos** | [**[TransactionUtxo]**](TransactionUtxo.md) | | [optional]
|
|
12
12
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**fee_type** | [**FeeType**](FeeType.md) | |
|
|
8
|
-
**token_id** | **String** | The token
|
|
8
|
+
**token_id** | **String** | The token used to pay the transaction fee. |
|
|
9
9
|
**slow** | [**EstimatedEvmEip1559FeeSlow**](EstimatedEvmEip1559FeeSlow.md) | | [optional]
|
|
10
10
|
**recommended** | [**EstimatedEvmEip1559FeeSlow**](EstimatedEvmEip1559FeeSlow.md) | |
|
|
11
11
|
**fast** | [**EstimatedEvmEip1559FeeSlow**](EstimatedEvmEip1559FeeSlow.md) | | [optional]
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**fee_type** | [**FeeType**](FeeType.md) | |
|
|
8
|
-
**token_id** | **String** | The token
|
|
8
|
+
**token_id** | **String** | The token used to pay the transaction fee. |
|
|
9
9
|
**slow** | [**EstimatedEvmLegacyFeeSlow**](EstimatedEvmLegacyFeeSlow.md) | | [optional]
|
|
10
10
|
**recommended** | [**EstimatedEvmLegacyFeeSlow**](EstimatedEvmLegacyFeeSlow.md) | |
|
|
11
11
|
**fast** | [**EstimatedEvmLegacyFeeSlow**](EstimatedEvmLegacyFeeSlow.md) | | [optional]
|
package/docs/EstimatedFILFee.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**fee_type** | [**FeeType**](FeeType.md) | |
|
|
8
|
-
**token_id** | **String** | The token
|
|
8
|
+
**token_id** | **String** | The token used to pay the transaction fee. |
|
|
9
9
|
**slow** | [**EstimatedFILFeeSlow**](EstimatedFILFeeSlow.md) | | [optional]
|
|
10
10
|
**recommended** | [**EstimatedFILFeeSlow**](EstimatedFILFeeSlow.md) | |
|
|
11
11
|
**fast** | [**EstimatedFILFeeSlow**](EstimatedFILFeeSlow.md) | | [optional]
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**gas_premium** | **String** | An optional
|
|
8
|
-
**gas_fee_cap** | **String** | The
|
|
9
|
-
**gas_limit** | **String** |
|
|
10
|
-
**gas_base** | **String** |
|
|
7
|
+
**gas_premium** | **String** | An optional tip you can include to prioritize your transaction. The gas premium incentivizes miners to include your transaction sooner than those offering only the base fee. |
|
|
8
|
+
**gas_fee_cap** | **String** | The maximum gas price you are willing to pay per unit of gas. |
|
|
9
|
+
**gas_limit** | **String** | The maximum amount of gas your transaction is allowed to consume. |
|
|
10
|
+
**gas_base** | **String** | The minimum fee required for a transaction to be included in a block. The base fee is dynamically adjusted based on network congestion to maintain target block utilization. It is burned rather than paid to miners, reducing the total Filecoin supply over time. |
|
|
11
11
|
|
|
12
12
|
|
package/docs/EstimatedFee.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**fee_type** | [**FeeType**](FeeType.md) | |
|
|
8
|
-
**token_id** | **String** | The token
|
|
8
|
+
**token_id** | **String** | The token used to pay the transaction fee. |
|
|
9
9
|
**is_loop** | **Boolean** | Whether the transaction was executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `true`: The transaction was executed as a Cobo Loop transfer. - `false`: The transaction was not executed as a Cobo Loop transfer. | [optional]
|
|
10
10
|
**fee_amount** | **String** | The transaction fee that you need to pay for the transaction. |
|
|
11
11
|
**slow** | [**EstimatedFILFeeSlow**](EstimatedFILFeeSlow.md) | | [optional]
|
|
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
|
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**fee_amount** | **String** | The transaction fee that you need to pay for the transaction. |
|
|
8
8
|
**fee_type** | [**FeeType**](FeeType.md) | |
|
|
9
|
-
**token_id** | **String** | The token
|
|
9
|
+
**token_id** | **String** | The token used to pay the transaction fee. |
|
|
10
10
|
**is_loop** | **Boolean** | Whether the transaction was executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `true`: The transaction was executed as a Cobo Loop transfer. - `false`: The transaction was not executed as a Cobo Loop transfer. | [optional]
|
|
11
11
|
|
|
12
12
|
|
package/docs/EstimatedSOLFee.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**fee_type** | [**FeeType**](FeeType.md) | |
|
|
8
|
-
**token_id** | **String** | The token
|
|
8
|
+
**token_id** | **String** | The token used to pay the transaction fee. |
|
|
9
9
|
**slow** | [**EstimatedSOLFeeSlow**](EstimatedSOLFeeSlow.md) | | [optional]
|
|
10
10
|
**recommended** | [**EstimatedSOLFeeSlow**](EstimatedSOLFeeSlow.md) | |
|
|
11
11
|
**fast** | [**EstimatedSOLFeeSlow**](EstimatedSOLFeeSlow.md) | | [optional]
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**compute_unit_price** | **String** | The
|
|
8
|
-
**compute_unit_limit** | **String** | The maximum number of compute units
|
|
9
|
-
**base_fee** | **String** |
|
|
10
|
-
**rent_amount** | **String** | The fee charged
|
|
7
|
+
**compute_unit_price** | **String** | The price paid per compute unit. This value determines the priority fee for the transaction, allowing you to increase inclusion probability in congested conditions. |
|
|
8
|
+
**compute_unit_limit** | **String** | The maximum number of compute units your transaction is allowed to consume. It sets an upper bound on computational resource usage to prevent overload. |
|
|
9
|
+
**base_fee** | **String** | A fixed fee charged per signature. The default is 5,000 lamports per signature. |
|
|
10
|
+
**rent_amount** | **String** | The rent fee charged by the network to store non–rent-exempt accounts on-chain. It is deducted periodically until the account maintains the minimum balance required for rent exemption. | [optional]
|
|
11
11
|
|
|
12
12
|
|
package/docs/EstimatedUtxoFee.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**fee_type** | [**FeeType**](FeeType.md) | |
|
|
8
|
-
**token_id** | **String** | The token
|
|
8
|
+
**token_id** | **String** | The token used to pay the transaction fee. |
|
|
9
9
|
**slow** | [**EstimatedUtxoFeeSlow**](EstimatedUtxoFeeSlow.md) | | [optional]
|
|
10
10
|
**recommended** | [**EstimatedUtxoFeeSlow**](EstimatedUtxoFeeSlow.md) | |
|
|
11
11
|
**fast** | [**EstimatedUtxoFeeSlow**](EstimatedUtxoFeeSlow.md) | | [optional]
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**fee_type** | [**FeeType**](FeeType.md) | |
|
|
8
|
-
**token_id** | **String** | The token
|
|
8
|
+
**token_id** | **String** | The token used to pay the transaction fee. |
|
|
9
9
|
**slow** | [**EvmEip1559FeeBasePrice**](EvmEip1559FeeBasePrice.md) | | [optional]
|
|
10
10
|
**recommended** | [**EvmEip1559FeeBasePrice**](EvmEip1559FeeBasePrice.md) | |
|
|
11
11
|
**fast** | [**EvmEip1559FeeBasePrice**](EvmEip1559FeeBasePrice.md) | | [optional]
|
package/docs/EvmLegacyFeeRate.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**fee_type** | [**FeeType**](FeeType.md) | |
|
|
8
|
-
**token_id** | **String** | The token
|
|
8
|
+
**token_id** | **String** | The token used to pay the transaction fee. |
|
|
9
9
|
**slow** | [**EvmLegacyFeeBasePrice**](EvmLegacyFeeBasePrice.md) | | [optional]
|
|
10
10
|
**recommended** | [**EvmLegacyFeeBasePrice**](EvmLegacyFeeBasePrice.md) | |
|
|
11
11
|
**fast** | [**EvmLegacyFeeBasePrice**](EvmLegacyFeeBasePrice.md) | | [optional]
|