@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
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _ApprovalResult = _interopRequireDefault(require("./ApprovalResult"));
|
|
9
|
+
var _ApprovalShowInfo = _interopRequireDefault(require("./ApprovalShowInfo"));
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
12
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
13
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
14
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
15
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
16
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
17
|
+
* Cobo Wallet as a Service 2.0
|
|
18
|
+
*
|
|
19
|
+
* Contact: help@cobo.com
|
|
20
|
+
*
|
|
21
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
22
|
+
* https://openapi-generator.tech
|
|
23
|
+
* Do not edit the class manually.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
/**
|
|
27
|
+
* The ApprovalUserDetail model module.
|
|
28
|
+
* @module model/ApprovalUserDetail
|
|
29
|
+
*/
|
|
30
|
+
var ApprovalUserDetail = /*#__PURE__*/function () {
|
|
31
|
+
/**
|
|
32
|
+
* Constructs a new <code>ApprovalUserDetail</code>.
|
|
33
|
+
* The user detail for a transaction approval. This includes the user's email, public key, signature, statement UUID, result of the approval, creation time, template version, header title, whether it is for signing, and additional information to show.
|
|
34
|
+
* @alias module:model/ApprovalUserDetail
|
|
35
|
+
*/
|
|
36
|
+
function ApprovalUserDetail() {
|
|
37
|
+
_classCallCheck(this, ApprovalUserDetail);
|
|
38
|
+
ApprovalUserDetail.initialize(this);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Initializes the fields of this object.
|
|
43
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
44
|
+
* Only for internal use.
|
|
45
|
+
*/
|
|
46
|
+
return _createClass(ApprovalUserDetail, null, [{
|
|
47
|
+
key: "initialize",
|
|
48
|
+
value: function initialize(obj) {}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Constructs a <code>ApprovalUserDetail</code> from a plain JavaScript object, optionally creating a new instance.
|
|
52
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
53
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
54
|
+
* @param {module:model/ApprovalUserDetail} obj Optional instance to populate.
|
|
55
|
+
* @return {module:model/ApprovalUserDetail} The populated <code>ApprovalUserDetail</code> instance.
|
|
56
|
+
*/
|
|
57
|
+
}, {
|
|
58
|
+
key: "constructFromObject",
|
|
59
|
+
value: function constructFromObject(data, obj) {
|
|
60
|
+
if (data) {
|
|
61
|
+
obj = obj || new ApprovalUserDetail();
|
|
62
|
+
if (data.hasOwnProperty('user_email')) {
|
|
63
|
+
obj['user_email'] = _ApiClient["default"].convertToType(data['user_email'], 'String');
|
|
64
|
+
}
|
|
65
|
+
if (data.hasOwnProperty('pubkey')) {
|
|
66
|
+
obj['pubkey'] = _ApiClient["default"].convertToType(data['pubkey'], 'String');
|
|
67
|
+
}
|
|
68
|
+
if (data.hasOwnProperty('signature')) {
|
|
69
|
+
obj['signature'] = _ApiClient["default"].convertToType(data['signature'], 'String');
|
|
70
|
+
}
|
|
71
|
+
if (data.hasOwnProperty('statement_uuid')) {
|
|
72
|
+
obj['statement_uuid'] = _ApiClient["default"].convertToType(data['statement_uuid'], 'String');
|
|
73
|
+
}
|
|
74
|
+
if (data.hasOwnProperty('result')) {
|
|
75
|
+
obj['result'] = _ApprovalResult["default"].constructFromObject(data['result']);
|
|
76
|
+
}
|
|
77
|
+
if (data.hasOwnProperty('created_time')) {
|
|
78
|
+
obj['created_time'] = _ApiClient["default"].convertToType(data['created_time'], 'Number');
|
|
79
|
+
}
|
|
80
|
+
if (data.hasOwnProperty('template_version')) {
|
|
81
|
+
obj['template_version'] = _ApiClient["default"].convertToType(data['template_version'], 'String');
|
|
82
|
+
}
|
|
83
|
+
if (data.hasOwnProperty('header_title')) {
|
|
84
|
+
obj['header_title'] = _ApiClient["default"].convertToType(data['header_title'], 'String');
|
|
85
|
+
}
|
|
86
|
+
if (data.hasOwnProperty('is_for_sign')) {
|
|
87
|
+
obj['is_for_sign'] = _ApiClient["default"].convertToType(data['is_for_sign'], 'Boolean');
|
|
88
|
+
}
|
|
89
|
+
if (data.hasOwnProperty('show_info')) {
|
|
90
|
+
obj['show_info'] = _ApprovalShowInfo["default"].constructFromObject(data['show_info']);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
return obj;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Validates the JSON data with respect to <code>ApprovalUserDetail</code>.
|
|
98
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
99
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>ApprovalUserDetail</code>.
|
|
100
|
+
*/
|
|
101
|
+
}, {
|
|
102
|
+
key: "validateJSON",
|
|
103
|
+
value: function validateJSON(data) {
|
|
104
|
+
// ensure the json data is a string
|
|
105
|
+
if (data['user_email'] && !(typeof data['user_email'] === 'string' || data['user_email'] instanceof String)) {
|
|
106
|
+
throw new Error("Expected the field `user_email` to be a primitive type in the JSON string but got " + data['user_email']);
|
|
107
|
+
}
|
|
108
|
+
// ensure the json data is a string
|
|
109
|
+
if (data['pubkey'] && !(typeof data['pubkey'] === 'string' || data['pubkey'] instanceof String)) {
|
|
110
|
+
throw new Error("Expected the field `pubkey` to be a primitive type in the JSON string but got " + data['pubkey']);
|
|
111
|
+
}
|
|
112
|
+
// ensure the json data is a string
|
|
113
|
+
if (data['signature'] && !(typeof data['signature'] === 'string' || data['signature'] instanceof String)) {
|
|
114
|
+
throw new Error("Expected the field `signature` to be a primitive type in the JSON string but got " + data['signature']);
|
|
115
|
+
}
|
|
116
|
+
// ensure the json data is a string
|
|
117
|
+
if (data['statement_uuid'] && !(typeof data['statement_uuid'] === 'string' || data['statement_uuid'] instanceof String)) {
|
|
118
|
+
throw new Error("Expected the field `statement_uuid` to be a primitive type in the JSON string but got " + data['statement_uuid']);
|
|
119
|
+
}
|
|
120
|
+
// ensure the json data is a string
|
|
121
|
+
if (data['template_version'] && !(typeof data['template_version'] === 'string' || data['template_version'] instanceof String)) {
|
|
122
|
+
throw new Error("Expected the field `template_version` to be a primitive type in the JSON string but got " + data['template_version']);
|
|
123
|
+
}
|
|
124
|
+
// ensure the json data is a string
|
|
125
|
+
if (data['header_title'] && !(typeof data['header_title'] === 'string' || data['header_title'] instanceof String)) {
|
|
126
|
+
throw new Error("Expected the field `header_title` to be a primitive type in the JSON string but got " + data['header_title']);
|
|
127
|
+
}
|
|
128
|
+
// validate the optional field `show_info`
|
|
129
|
+
if (data['show_info']) {
|
|
130
|
+
// data not null
|
|
131
|
+
if (!!_ApprovalShowInfo["default"].validateJSON) {
|
|
132
|
+
_ApprovalShowInfo["default"].validateJSON(data['show_info']);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
return true;
|
|
136
|
+
}
|
|
137
|
+
}]);
|
|
138
|
+
}();
|
|
139
|
+
/**
|
|
140
|
+
* The email address of the user who approved the transaction.
|
|
141
|
+
* @member {String} user_email
|
|
142
|
+
*/
|
|
143
|
+
ApprovalUserDetail.prototype['user_email'] = undefined;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* The public key of the user who approved the transaction.
|
|
147
|
+
* @member {String} pubkey
|
|
148
|
+
*/
|
|
149
|
+
ApprovalUserDetail.prototype['pubkey'] = undefined;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* The signature of the transaction approval.
|
|
153
|
+
* @member {String} signature
|
|
154
|
+
*/
|
|
155
|
+
ApprovalUserDetail.prototype['signature'] = undefined;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* The UUID of the statement associated with the transaction approval.
|
|
159
|
+
* @member {String} statement_uuid
|
|
160
|
+
*/
|
|
161
|
+
ApprovalUserDetail.prototype['statement_uuid'] = undefined;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* @member {module:model/ApprovalResult} result
|
|
165
|
+
*/
|
|
166
|
+
ApprovalUserDetail.prototype['result'] = undefined;
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* The timestamp when the approval was created.
|
|
170
|
+
* @member {Number} created_time
|
|
171
|
+
*/
|
|
172
|
+
ApprovalUserDetail.prototype['created_time'] = undefined;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* The version of the template used for the transaction approval.
|
|
176
|
+
* @member {String} template_version
|
|
177
|
+
*/
|
|
178
|
+
ApprovalUserDetail.prototype['template_version'] = undefined;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* The title of the header for the transaction approval.
|
|
182
|
+
* @member {String} header_title
|
|
183
|
+
*/
|
|
184
|
+
ApprovalUserDetail.prototype['header_title'] = undefined;
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Indicates whether the approval is for signing.
|
|
188
|
+
* @member {Boolean} is_for_sign
|
|
189
|
+
*/
|
|
190
|
+
ApprovalUserDetail.prototype['is_for_sign'] = undefined;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* @member {module:model/ApprovalShowInfo} show_info
|
|
194
|
+
*/
|
|
195
|
+
ApprovalUserDetail.prototype['show_info'] = undefined;
|
|
196
|
+
var _default = exports["default"] = ApprovalUserDetail;
|
|
@@ -40,6 +40,11 @@ var AutoFuelType = exports["default"] = /*#__PURE__*/function () {
|
|
|
40
40
|
* @const
|
|
41
41
|
*/
|
|
42
42
|
_defineProperty(this, "ProActiveAutoFuel", "ProActiveAutoFuel");
|
|
43
|
+
/**
|
|
44
|
+
* value: "UsePortalPreference"
|
|
45
|
+
* @const
|
|
46
|
+
*/
|
|
47
|
+
_defineProperty(this, "UsePortalPreference", "UsePortalPreference");
|
|
43
48
|
/**
|
|
44
49
|
* value: "unknown_default_open_api"
|
|
45
50
|
* @const
|
|
@@ -37,7 +37,7 @@ var BalanceUpdateInfoEventData = /*#__PURE__*/function () {
|
|
|
37
37
|
* @alias module:model/BalanceUpdateInfoEventData
|
|
38
38
|
* @implements module:model/WebhookEventDataType
|
|
39
39
|
* @implements module:model/BalanceUpdateInfo
|
|
40
|
-
* @param data_type {module:model/BalanceUpdateInfoEventData.DataTypeEnum} The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `
|
|
40
|
+
* @param data_type {module:model/BalanceUpdateInfoEventData.DataTypeEnum} The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
|
|
41
41
|
* @param token_id {String} The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens).
|
|
42
42
|
* @param address {String} The wallet address.
|
|
43
43
|
* @param wallet_uuid {String} The wallet ID.
|
|
@@ -156,7 +156,7 @@ var BalanceUpdateInfoEventData = /*#__PURE__*/function () {
|
|
|
156
156
|
BalanceUpdateInfoEventData.RequiredProperties = ["data_type", "token_id", "address", "wallet_uuid", "updated_timestamp", "balance"];
|
|
157
157
|
|
|
158
158
|
/**
|
|
159
|
-
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `
|
|
159
|
+
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
|
|
160
160
|
* @member {module:model/BalanceUpdateInfoEventData.DataTypeEnum} data_type
|
|
161
161
|
*/
|
|
162
162
|
BalanceUpdateInfoEventData.prototype['data_type'] = undefined;
|
|
@@ -192,7 +192,7 @@ BalanceUpdateInfoEventData.prototype['balance'] = undefined;
|
|
|
192
192
|
|
|
193
193
|
// Implement WebhookEventDataType interface:
|
|
194
194
|
/**
|
|
195
|
-
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `
|
|
195
|
+
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
|
|
196
196
|
* @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
|
|
197
197
|
*/
|
|
198
198
|
_WebhookEventDataType["default"].prototype['data_type'] = undefined;
|
|
@@ -268,11 +268,6 @@ BalanceUpdateInfoEventData['DataTypeEnum'] = {
|
|
|
268
268
|
* @const
|
|
269
269
|
*/
|
|
270
270
|
"TokenListing": "TokenListing",
|
|
271
|
-
/**
|
|
272
|
-
* value: "BalanceUpdateInfo"
|
|
273
|
-
* @const
|
|
274
|
-
*/
|
|
275
|
-
"BalanceUpdateInfo": "BalanceUpdateInfo",
|
|
276
271
|
/**
|
|
277
272
|
* value: "PaymentOrder"
|
|
278
273
|
* @const
|
|
@@ -288,6 +283,16 @@ BalanceUpdateInfoEventData['DataTypeEnum'] = {
|
|
|
288
283
|
* @const
|
|
289
284
|
*/
|
|
290
285
|
"PaymentSettlement": "PaymentSettlement",
|
|
286
|
+
/**
|
|
287
|
+
* value: "BalanceUpdateInfo"
|
|
288
|
+
* @const
|
|
289
|
+
*/
|
|
290
|
+
"BalanceUpdateInfo": "BalanceUpdateInfo",
|
|
291
|
+
/**
|
|
292
|
+
* value: "SuspendedToken"
|
|
293
|
+
* @const
|
|
294
|
+
*/
|
|
295
|
+
"SuspendedToken": "SuspendedToken",
|
|
291
296
|
/**
|
|
292
297
|
* value: "unknown_default_open_api"
|
|
293
298
|
* @const
|
|
@@ -37,7 +37,7 @@ var ChainsEventData = /*#__PURE__*/function () {
|
|
|
37
37
|
* Constructs a new <code>ChainsEventData</code>.
|
|
38
38
|
* @alias module:model/ChainsEventData
|
|
39
39
|
* @implements module:model/WebhookEventDataType
|
|
40
|
-
* @param data_type {module:model/ChainsEventData.DataTypeEnum} The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `
|
|
40
|
+
* @param data_type {module:model/ChainsEventData.DataTypeEnum} The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
|
|
41
41
|
* @param chains {Array.<module:model/ChainInfo>} The enabled chains.
|
|
42
42
|
*/
|
|
43
43
|
function ChainsEventData(data_type, chains) {
|
|
@@ -146,7 +146,7 @@ var ChainsEventData = /*#__PURE__*/function () {
|
|
|
146
146
|
ChainsEventData.RequiredProperties = ["data_type", "chains"];
|
|
147
147
|
|
|
148
148
|
/**
|
|
149
|
-
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `
|
|
149
|
+
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
|
|
150
150
|
* @member {module:model/ChainsEventData.DataTypeEnum} data_type
|
|
151
151
|
*/
|
|
152
152
|
ChainsEventData.prototype['data_type'] = undefined;
|
|
@@ -169,7 +169,7 @@ ChainsEventData.prototype['wallet_subtypes'] = undefined;
|
|
|
169
169
|
|
|
170
170
|
// Implement WebhookEventDataType interface:
|
|
171
171
|
/**
|
|
172
|
-
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `
|
|
172
|
+
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
|
|
173
173
|
* @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
|
|
174
174
|
*/
|
|
175
175
|
_WebhookEventDataType["default"].prototype['data_type'] = undefined;
|
|
@@ -220,11 +220,6 @@ ChainsEventData['DataTypeEnum'] = {
|
|
|
220
220
|
* @const
|
|
221
221
|
*/
|
|
222
222
|
"TokenListing": "TokenListing",
|
|
223
|
-
/**
|
|
224
|
-
* value: "BalanceUpdateInfo"
|
|
225
|
-
* @const
|
|
226
|
-
*/
|
|
227
|
-
"BalanceUpdateInfo": "BalanceUpdateInfo",
|
|
228
223
|
/**
|
|
229
224
|
* value: "PaymentOrder"
|
|
230
225
|
* @const
|
|
@@ -240,6 +235,16 @@ ChainsEventData['DataTypeEnum'] = {
|
|
|
240
235
|
* @const
|
|
241
236
|
*/
|
|
242
237
|
"PaymentSettlement": "PaymentSettlement",
|
|
238
|
+
/**
|
|
239
|
+
* value: "BalanceUpdateInfo"
|
|
240
|
+
* @const
|
|
241
|
+
*/
|
|
242
|
+
"BalanceUpdateInfo": "BalanceUpdateInfo",
|
|
243
|
+
/**
|
|
244
|
+
* value: "SuspendedToken"
|
|
245
|
+
* @const
|
|
246
|
+
*/
|
|
247
|
+
"SuspendedToken": "SuspendedToken",
|
|
243
248
|
/**
|
|
244
249
|
* value: "unknown_default_open_api"
|
|
245
250
|
* @const
|
|
@@ -36,7 +36,7 @@ var CreatePaymentOrderRequest = /*#__PURE__*/function () {
|
|
|
36
36
|
* @param 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`
|
|
37
37
|
* @param 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.
|
|
38
38
|
* @param 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.
|
|
39
|
-
* @param psp_order_code {String} A unique reference code assigned by
|
|
39
|
+
* @param 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.
|
|
40
40
|
*/
|
|
41
41
|
function CreatePaymentOrderRequest(merchant_id, token_id, order_amount, fee_amount, psp_order_code) {
|
|
42
42
|
_classCallCheck(this, CreatePaymentOrderRequest);
|
|
@@ -171,7 +171,7 @@ CreatePaymentOrderRequest.prototype['merchant_id'] = undefined;
|
|
|
171
171
|
CreatePaymentOrderRequest.prototype['token_id'] = undefined;
|
|
172
172
|
|
|
173
173
|
/**
|
|
174
|
-
* The fiat currency of the order.
|
|
174
|
+
* The fiat currency of the order. Currently, only `USD` is supported.
|
|
175
175
|
* @member {String} currency
|
|
176
176
|
* @default 'USD'
|
|
177
177
|
*/
|
|
@@ -190,22 +190,23 @@ CreatePaymentOrderRequest.prototype['order_amount'] = undefined;
|
|
|
190
190
|
CreatePaymentOrderRequest.prototype['fee_amount'] = undefined;
|
|
191
191
|
|
|
192
192
|
/**
|
|
193
|
-
* A unique reference code assigned by the merchant to identify this order in their system.
|
|
193
|
+
* 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.
|
|
194
194
|
* @member {String} merchant_order_code
|
|
195
195
|
*/
|
|
196
196
|
CreatePaymentOrderRequest.prototype['merchant_order_code'] = undefined;
|
|
197
197
|
|
|
198
198
|
/**
|
|
199
|
-
* A unique reference code assigned by
|
|
199
|
+
* 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.
|
|
200
200
|
* @member {String} psp_order_code
|
|
201
201
|
*/
|
|
202
202
|
CreatePaymentOrderRequest.prototype['psp_order_code'] = undefined;
|
|
203
203
|
|
|
204
204
|
/**
|
|
205
|
-
* The number of seconds
|
|
205
|
+
* 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.
|
|
206
206
|
* @member {Number} expired_in
|
|
207
|
+
* @default 1800
|
|
207
208
|
*/
|
|
208
|
-
CreatePaymentOrderRequest.prototype['expired_in'] =
|
|
209
|
+
CreatePaymentOrderRequest.prototype['expired_in'] = 1800;
|
|
209
210
|
|
|
210
211
|
/**
|
|
211
212
|
* 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.
|
|
@@ -140,7 +140,7 @@ CreateSettlement.prototype['token_id'] = undefined;
|
|
|
140
140
|
CreateSettlement.prototype['currency'] = undefined;
|
|
141
141
|
|
|
142
142
|
/**
|
|
143
|
-
* 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.
|
|
143
|
+
* 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.
|
|
144
144
|
* @member {String} amount
|
|
145
145
|
*/
|
|
146
146
|
CreateSettlement.prototype['amount'] = undefined;
|
|
@@ -158,7 +158,6 @@ CreateSettlement.prototype['bank_account_id'] = undefined;
|
|
|
158
158
|
CreateSettlement.prototype['crypto_address_id'] = undefined;
|
|
159
159
|
|
|
160
160
|
/**
|
|
161
|
-
* A list of order IDs to be included in this settlement. If provided, the settlement request will settle the merchant funds received from the specified orders, and the `amount` field will be ignored. This field is only applicable when `settlement_type` is set to `Merchant`.
|
|
162
161
|
* @member {Array.<String>} order_ids
|
|
163
162
|
*/
|
|
164
163
|
CreateSettlement.prototype['order_ids'] = undefined;
|
|
@@ -33,7 +33,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
33
33
|
var CustodialWeb3TransferSource = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
35
35
|
* Constructs a new <code>CustodialWeb3TransferSource</code>.
|
|
36
|
-
* The information about the transaction source types `Web3`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
|
|
36
|
+
* The information about the transaction source types `Web3`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. - 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 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. Switch between the tabs to display the properties for different transaction sources.
|
|
37
37
|
* @alias module:model/CustodialWeb3TransferSource
|
|
38
38
|
* @param source_type {module:model/WalletSubtype}
|
|
39
39
|
* @param wallet_id {String} The wallet ID.
|
|
@@ -177,7 +177,7 @@ CustodialWeb3TransferSource.prototype['source_type'] = undefined;
|
|
|
177
177
|
CustodialWeb3TransferSource.prototype['wallet_id'] = undefined;
|
|
178
178
|
|
|
179
179
|
/**
|
|
180
|
-
*
|
|
180
|
+
* 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.
|
|
181
181
|
* @member {String} address
|
|
182
182
|
*/
|
|
183
183
|
CustodialWeb3TransferSource.prototype['address'] = undefined;
|
|
@@ -36,7 +36,7 @@ var EstimatedEvmEip1559Fee = /*#__PURE__*/function () {
|
|
|
36
36
|
* The estimated transaction fee based on the EIP-1559 fee model.
|
|
37
37
|
* @alias module:model/EstimatedEvmEip1559Fee
|
|
38
38
|
* @param fee_type {module:model/FeeType}
|
|
39
|
-
* @param token_id {String} The token
|
|
39
|
+
* @param token_id {String} The token used to pay the transaction fee.
|
|
40
40
|
* @param recommended {module:model/EstimatedEvmEip1559FeeSlow}
|
|
41
41
|
*/
|
|
42
42
|
function EstimatedEvmEip1559Fee(fee_type, token_id, recommended) {
|
|
@@ -148,7 +148,7 @@ EstimatedEvmEip1559Fee.RequiredProperties = ["fee_type", "token_id", "recommende
|
|
|
148
148
|
EstimatedEvmEip1559Fee.prototype['fee_type'] = undefined;
|
|
149
149
|
|
|
150
150
|
/**
|
|
151
|
-
* The token
|
|
151
|
+
* The token used to pay the transaction fee.
|
|
152
152
|
* @member {String} token_id
|
|
153
153
|
*/
|
|
154
154
|
EstimatedEvmEip1559Fee.prototype['token_id'] = undefined;
|
|
@@ -36,7 +36,7 @@ var EstimatedEvmLegacyFee = /*#__PURE__*/function () {
|
|
|
36
36
|
* The estimated transaction fee based on the legacy fee model.
|
|
37
37
|
* @alias module:model/EstimatedEvmLegacyFee
|
|
38
38
|
* @param fee_type {module:model/FeeType}
|
|
39
|
-
* @param token_id {String} The token
|
|
39
|
+
* @param token_id {String} The token used to pay the transaction fee.
|
|
40
40
|
* @param recommended {module:model/EstimatedEvmLegacyFeeSlow}
|
|
41
41
|
*/
|
|
42
42
|
function EstimatedEvmLegacyFee(fee_type, token_id, recommended) {
|
|
@@ -148,7 +148,7 @@ EstimatedEvmLegacyFee.RequiredProperties = ["fee_type", "token_id", "recommended
|
|
|
148
148
|
EstimatedEvmLegacyFee.prototype['fee_type'] = undefined;
|
|
149
149
|
|
|
150
150
|
/**
|
|
151
|
-
* The token
|
|
151
|
+
* The token used to pay the transaction fee.
|
|
152
152
|
* @member {String} token_id
|
|
153
153
|
*/
|
|
154
154
|
EstimatedEvmLegacyFee.prototype['token_id'] = undefined;
|
|
@@ -36,7 +36,7 @@ var EstimatedFILFee = /*#__PURE__*/function () {
|
|
|
36
36
|
* The estimated transaction fee based on the fil fee model.
|
|
37
37
|
* @alias module:model/EstimatedFILFee
|
|
38
38
|
* @param fee_type {module:model/FeeType}
|
|
39
|
-
* @param token_id {String} The token
|
|
39
|
+
* @param token_id {String} The token used to pay the transaction fee.
|
|
40
40
|
* @param recommended {module:model/EstimatedFILFeeSlow}
|
|
41
41
|
*/
|
|
42
42
|
function EstimatedFILFee(fee_type, token_id, recommended) {
|
|
@@ -148,7 +148,7 @@ EstimatedFILFee.RequiredProperties = ["fee_type", "token_id", "recommended"];
|
|
|
148
148
|
EstimatedFILFee.prototype['fee_type'] = undefined;
|
|
149
149
|
|
|
150
150
|
/**
|
|
151
|
-
* The token
|
|
151
|
+
* The token used to pay the transaction fee.
|
|
152
152
|
* @member {String} token_id
|
|
153
153
|
*/
|
|
154
154
|
EstimatedFILFee.prototype['token_id'] = undefined;
|
|
@@ -36,10 +36,10 @@ var EstimatedFILFeeSlow = /*#__PURE__*/function () {
|
|
|
36
36
|
* @alias module:model/EstimatedFILFeeSlow
|
|
37
37
|
* @implements module:model/FILPrice
|
|
38
38
|
* @implements module:model/FILBase
|
|
39
|
-
* @param gas_premium {String} An optional
|
|
40
|
-
* @param gas_fee_cap {String} The
|
|
41
|
-
* @param gas_limit {String}
|
|
42
|
-
* @param gas_base {String}
|
|
39
|
+
* @param 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.
|
|
40
|
+
* @param gas_fee_cap {String} The maximum gas price you are willing to pay per unit of gas.
|
|
41
|
+
* @param gas_limit {String} The maximum amount of gas your transaction is allowed to consume.
|
|
42
|
+
* @param 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.
|
|
43
43
|
*/
|
|
44
44
|
function EstimatedFILFeeSlow(gas_premium, gas_fee_cap, gas_limit, gas_base) {
|
|
45
45
|
_classCallCheck(this, EstimatedFILFeeSlow);
|
|
@@ -138,48 +138,48 @@ var EstimatedFILFeeSlow = /*#__PURE__*/function () {
|
|
|
138
138
|
EstimatedFILFeeSlow.RequiredProperties = ["gas_premium", "gas_fee_cap", "gas_limit", "gas_base"];
|
|
139
139
|
|
|
140
140
|
/**
|
|
141
|
-
* An optional
|
|
141
|
+
* 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.
|
|
142
142
|
* @member {String} gas_premium
|
|
143
143
|
*/
|
|
144
144
|
EstimatedFILFeeSlow.prototype['gas_premium'] = undefined;
|
|
145
145
|
|
|
146
146
|
/**
|
|
147
|
-
* The
|
|
147
|
+
* The maximum gas price you are willing to pay per unit of gas.
|
|
148
148
|
* @member {String} gas_fee_cap
|
|
149
149
|
*/
|
|
150
150
|
EstimatedFILFeeSlow.prototype['gas_fee_cap'] = undefined;
|
|
151
151
|
|
|
152
152
|
/**
|
|
153
|
-
*
|
|
153
|
+
* The maximum amount of gas your transaction is allowed to consume.
|
|
154
154
|
* @member {String} gas_limit
|
|
155
155
|
*/
|
|
156
156
|
EstimatedFILFeeSlow.prototype['gas_limit'] = undefined;
|
|
157
157
|
|
|
158
158
|
/**
|
|
159
|
-
*
|
|
159
|
+
* 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.
|
|
160
160
|
* @member {String} gas_base
|
|
161
161
|
*/
|
|
162
162
|
EstimatedFILFeeSlow.prototype['gas_base'] = undefined;
|
|
163
163
|
|
|
164
164
|
// Implement FILPrice interface:
|
|
165
165
|
/**
|
|
166
|
-
* An optional
|
|
166
|
+
* 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.
|
|
167
167
|
* @member {String} gas_premium
|
|
168
168
|
*/
|
|
169
169
|
_FILPrice["default"].prototype['gas_premium'] = undefined;
|
|
170
170
|
/**
|
|
171
|
-
* The
|
|
171
|
+
* The maximum gas price you are willing to pay per unit of gas.
|
|
172
172
|
* @member {String} gas_fee_cap
|
|
173
173
|
*/
|
|
174
174
|
_FILPrice["default"].prototype['gas_fee_cap'] = undefined;
|
|
175
175
|
/**
|
|
176
|
-
*
|
|
176
|
+
* The maximum amount of gas your transaction is allowed to consume.
|
|
177
177
|
* @member {String} gas_limit
|
|
178
178
|
*/
|
|
179
179
|
_FILPrice["default"].prototype['gas_limit'] = undefined;
|
|
180
180
|
// Implement FILBase interface:
|
|
181
181
|
/**
|
|
182
|
-
*
|
|
182
|
+
* 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.
|
|
183
183
|
* @member {String} gas_base
|
|
184
184
|
*/
|
|
185
185
|
_FILBase["default"].prototype['gas_base'] = undefined;
|
|
@@ -291,7 +291,7 @@ _defineProperty(EstimatedFee, "fromJSON", function (json_string) {
|
|
|
291
291
|
EstimatedFee.prototype['fee_type'] = undefined;
|
|
292
292
|
|
|
293
293
|
/**
|
|
294
|
-
* The token
|
|
294
|
+
* The token used to pay the transaction fee.
|
|
295
295
|
* @member {String} token_id
|
|
296
296
|
*/
|
|
297
297
|
EstimatedFee.prototype['token_id'] = undefined;
|
|
@@ -38,7 +38,7 @@ var EstimatedFixedFee = /*#__PURE__*/function () {
|
|
|
38
38
|
* @implements module:model/FeeAmount
|
|
39
39
|
* @param fee_amount {String} The transaction fee that you need to pay for the transaction.
|
|
40
40
|
* @param fee_type {module:model/FeeType}
|
|
41
|
-
* @param token_id {String} The token
|
|
41
|
+
* @param token_id {String} The token used to pay the transaction fee.
|
|
42
42
|
*/
|
|
43
43
|
function EstimatedFixedFee(fee_amount, fee_type, token_id) {
|
|
44
44
|
_classCallCheck(this, EstimatedFixedFee);
|
|
@@ -137,7 +137,7 @@ EstimatedFixedFee.prototype['fee_amount'] = undefined;
|
|
|
137
137
|
EstimatedFixedFee.prototype['fee_type'] = undefined;
|
|
138
138
|
|
|
139
139
|
/**
|
|
140
|
-
* The token
|
|
140
|
+
* The token used to pay the transaction fee.
|
|
141
141
|
* @member {String} token_id
|
|
142
142
|
*/
|
|
143
143
|
EstimatedFixedFee.prototype['token_id'] = undefined;
|
|
@@ -36,7 +36,7 @@ var EstimatedSOLFee = /*#__PURE__*/function () {
|
|
|
36
36
|
* The estimated transaction fee based on the sol fee model.
|
|
37
37
|
* @alias module:model/EstimatedSOLFee
|
|
38
38
|
* @param fee_type {module:model/FeeType}
|
|
39
|
-
* @param token_id {String} The token
|
|
39
|
+
* @param token_id {String} The token used to pay the transaction fee.
|
|
40
40
|
* @param recommended {module:model/EstimatedSOLFeeSlow}
|
|
41
41
|
*/
|
|
42
42
|
function EstimatedSOLFee(fee_type, token_id, recommended) {
|
|
@@ -148,7 +148,7 @@ EstimatedSOLFee.RequiredProperties = ["fee_type", "token_id", "recommended"];
|
|
|
148
148
|
EstimatedSOLFee.prototype['fee_type'] = undefined;
|
|
149
149
|
|
|
150
150
|
/**
|
|
151
|
-
* The token
|
|
151
|
+
* The token used to pay the transaction fee.
|
|
152
152
|
* @member {String} token_id
|
|
153
153
|
*/
|
|
154
154
|
EstimatedSOLFee.prototype['token_id'] = undefined;
|