@cobo/cobo-waas2 1.22.0 → 1.24.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 +81 -17
- package/dist/ApiClient.js +1 -1
- package/dist/api/AddressBooksApi.js +200 -21
- package/dist/api/AutoSweepApi.js +26 -26
- package/dist/api/ComplianceApi.js +214 -0
- package/dist/api/FeeStationApi.js +47 -4
- package/dist/api/PaymentApi.js +204 -57
- package/dist/api/SwapsApi.js +374 -0
- package/dist/api/TokenizationApi.js +2 -2
- package/dist/api/TransactionsApi.js +18 -18
- package/dist/api/WalletsApi.js +4 -4
- package/dist/api/WalletsMPCWalletsApi.js +2 -2
- package/dist/index.js +329 -21
- package/dist/model/AddressBook.js +12 -12
- package/dist/model/AddressInfo.js +13 -0
- package/dist/model/AddressesEventData.js +8 -3
- package/dist/model/AddressesEventDataAllOfAddresses.js +18 -0
- package/dist/model/ApprovalDetail.js +4 -4
- package/dist/model/ApprovalResult.js +6 -11
- package/dist/model/ApprovalTemplate.js +4 -4
- package/dist/model/ApprovalTransactionResult.js +8 -8
- package/dist/model/ApprovalUserDetail.js +95 -24
- package/dist/model/AutoSweepTask.js +9 -9
- package/dist/model/BalanceUpdateInfoEventData.js +8 -3
- package/dist/model/BridgingFee.js +136 -0
- package/dist/model/ChainInfo.js +14 -1
- package/dist/model/ChainsEventData.js +8 -3
- package/dist/model/CommissionFee.js +110 -0
- package/dist/model/ComplianceDispositionUpdateEventData.js +321 -0
- package/dist/model/ContractCallDestination.js +48 -8
- package/dist/model/ContractCallDestinationType.js +5 -0
- package/dist/model/CreateAddressBookParam.js +165 -0
- package/dist/model/CreateAddressBooks201Response.js +107 -0
- package/dist/model/CreateAddressBooksParam.js +128 -0
- package/dist/model/CreateAutoSweepTask.js +5 -5
- package/dist/model/CreateCustodialWalletParams.js +1 -1
- package/dist/model/CreateExchangeWalletParams.js +2 -2
- package/dist/model/CreateMerchantRequest.js +14 -7
- package/dist/model/CreateMpcWalletParams.js +2 -2
- package/dist/model/CreatePaymentOrderRequest.js +17 -4
- package/dist/model/CreateRefundRequest.js +2 -2
- package/dist/model/CreateSafeWalletParams.js +1 -1
- package/dist/model/CreateSettlement.js +3 -3
- package/dist/model/CreateSettlementRequestRequest.js +39 -0
- package/dist/model/CreateSmartContractWalletParams.js +1 -1
- package/dist/model/CreateSwapActivityRequest.js +193 -0
- package/dist/model/CreateSweepToAddress.js +1 -1
- package/dist/model/CreateWalletParams.js +1 -1
- package/dist/model/CustodialTransferDestination.js +1 -1
- package/dist/model/DeleteAddressBookById201Response.js +106 -0
- package/dist/model/DispositionEventData.js +170 -0
- package/dist/model/DispositionQueryResponse.js +146 -0
- package/dist/model/DispositionResponse.js +122 -0
- package/dist/model/DispositionStatus.js +116 -0
- package/dist/model/DispositionType.js +66 -0
- package/dist/model/EstimateContractCallFeeParams.js +1 -1
- package/dist/model/EstimateFeeParams.js +1 -1
- package/dist/model/EstimateTransferFeeParams.js +1 -1
- package/dist/model/EstimatedEvmEip1559Fee.js +1 -1
- package/dist/model/EstimatedEvmLegacyFee.js +1 -1
- package/dist/model/EstimatedFILFee.js +1 -1
- package/dist/model/EstimatedFixedFee.js +1 -1
- package/dist/model/EstimatedSOLFee.js +1 -1
- package/dist/model/EstimatedUtxoFee.js +1 -1
- package/dist/model/FeeStationCheckFeeStationUsage.js +186 -0
- package/dist/model/FeeStationCheckFeeStationUsageResponse.js +200 -0
- package/dist/model/FeeStationGasStationType.js +61 -0
- package/dist/model/IsolateDisposition.js +167 -0
- package/dist/model/ListSwapActivities200Response.js +123 -0
- package/dist/model/ListSwapEnabledTokens200Response.js +123 -0
- package/dist/model/ListTopUpPayerAccounts200Response.js +123 -0
- package/dist/model/MPCVaultEventData.js +8 -3
- package/dist/model/Merchant.js +10 -1
- package/dist/model/MerchantBalance.js +7 -7
- package/dist/model/MessageSignDestination.js +8 -70
- package/dist/model/OrgInfo.js +9 -0
- package/dist/model/OtcFee.js +123 -0
- package/dist/model/PaymentAddressUpdateEventData.js +8 -3
- package/dist/model/PaymentEstimateFee.js +125 -0
- package/dist/model/PaymentEstimateFee201Response.js +107 -0
- package/dist/model/{RawMessageSignDestination.js → PaymentEstimateFeeRequest.js} +51 -37
- package/dist/model/PaymentEstimatedFee.js +173 -0
- package/dist/model/PaymentFeeType.js +71 -0
- package/dist/model/PaymentOrderEventData.js +8 -3
- package/dist/model/PaymentRefundEventData.js +30 -5
- package/dist/model/PaymentSettlementEvent.js +70 -9
- package/dist/model/PaymentTransactionEventData.js +8 -3
- package/dist/model/PaymentWalletBalance.js +6 -6
- package/dist/model/PspBalance.js +7 -7
- package/dist/model/ReceivedAmountPerAddress.js +5 -5
- package/dist/model/Refund.js +17 -1
- package/dist/model/RefundDisposition.js +167 -0
- package/dist/model/RoleDetail.js +41 -6
- package/dist/model/SettleRequestStatus.js +5 -0
- package/dist/model/Settlement.js +45 -3
- package/dist/model/SettlementDetail.js +33 -1
- package/dist/model/SettlementInfo.js +7 -7
- package/dist/model/SolContractCallAddressLookupTableAccount.js +126 -0
- package/dist/model/SolContractCallDestination.js +30 -0
- package/dist/model/StellarContractCallContractParam.js +164 -0
- package/dist/model/StellarContractCallContractType.js +56 -0
- package/dist/model/StellarContractCallDestination.js +125 -0
- package/dist/model/StellarContractCallTrustLineOperationType.js +56 -0
- package/dist/model/StellarContractCallTrustLineParam.js +133 -0
- package/dist/model/SupportedToken.js +9 -0
- package/dist/model/SuspendedTokenEventData.js +8 -3
- package/dist/model/SwapActivity.js +9 -9
- package/dist/model/SwapActivityApprovers.js +1 -1
- package/dist/model/SwapActivityDetail.js +34 -18
- package/dist/model/SwapActivitySigners.js +2 -2
- package/dist/model/SwapActivityTimeline.js +5 -5
- package/dist/model/SwapEstimateFee.js +147 -0
- package/dist/model/SwapQuote.js +18 -31
- package/dist/model/SwapReceivingTransaction.js +133 -0
- package/dist/model/SwapToken.js +9 -9
- package/dist/model/SweepToAddress.js +1 -1
- package/dist/model/TSSRequestWebhookEventData.js +8 -3
- package/dist/model/TokenListingEventData.js +8 -3
- package/dist/model/TokensEventData.js +8 -3
- package/dist/model/TransactionCoboCategory.js +5 -0
- package/dist/model/TransactionDestination.js +48 -8
- package/dist/model/TransactionDestinationType.js +5 -0
- package/dist/model/TransactionEvmEip1559Fee.js +1 -1
- package/dist/model/TransactionEvmLegacyFee.js +1 -1
- package/dist/model/TransactionFILFee.js +1 -1
- package/dist/model/TransactionFixedFee.js +1 -1
- package/dist/model/TransactionFuelingInfo.js +13 -0
- package/dist/model/TransactionRequestEvmEip1559Fee.js +1 -1
- package/dist/model/TransactionRequestEvmLegacyFee.js +1 -1
- package/dist/model/TransactionRequestFILFee.js +1 -1
- package/dist/model/TransactionRequestSOLFee.js +1 -1
- package/dist/model/TransactionRequestUtxoFee.js +1 -1
- package/dist/model/TransactionSOLFee.js +1 -1
- package/dist/model/TransactionSolContractAddressLookupTableAccount.js +126 -0
- package/dist/model/TransactionSolContractDestination.js +30 -0
- package/dist/model/TransactionStellarContractParam.js +164 -0
- package/dist/model/TransactionStellarContractType.js +56 -0
- package/dist/model/{BTCEIP191MessageSignDestination.js → TransactionStellarDestination.js} +38 -35
- package/dist/model/TransactionStellarTrustLineOperationType.js +56 -0
- package/dist/model/TransactionStellarTrustLineParam.js +133 -0
- package/dist/model/TransactionUtxoFee.js +1 -1
- package/dist/model/TransactionWebhookEventData.js +8 -3
- package/dist/model/UnfreezeDisposition.js +111 -0
- package/dist/model/UpdateAddressBookParam.js +150 -0
- package/dist/model/UpdateBankAccountByIdRequest.js +108 -0
- package/dist/model/UpdateMerchantByIdRequest.js +1 -1
- package/dist/model/UpdateTopUpAddress.js +4 -6
- package/dist/model/WalletInfoEventData.js +8 -3
- package/dist/model/WalletSetup.js +66 -0
- package/dist/model/WebhookEventData.js +81 -11
- package/dist/model/WebhookEventDataType.js +7 -2
- package/dist/model/WebhookEventType.js +5 -0
- package/docs/AddressBook.md +7 -7
- package/docs/AddressBooksApi.md +218 -8
- package/docs/AddressInfo.md +1 -0
- package/docs/AddressesEventData.md +3 -1
- package/docs/AddressesEventDataAllOfAddresses.md +1 -0
- package/docs/ApprovalDetail.md +3 -3
- package/docs/ApprovalResult.md +3 -5
- package/docs/ApprovalTemplate.md +3 -3
- package/docs/ApprovalTransactionResult.md +4 -4
- package/docs/ApprovalUserDetail.md +15 -9
- package/docs/AutoSweepApi.md +18 -18
- package/docs/AutoSweepTask.md +5 -5
- package/docs/BalanceUpdateInfoEventData.md +3 -1
- package/docs/BridgingFee.md +11 -0
- package/docs/ChainInfo.md +2 -1
- package/docs/ChainsEventData.md +3 -1
- package/docs/CommissionFee.md +9 -0
- package/docs/ComplianceApi.md +218 -0
- package/docs/ComplianceDispositionUpdateEventData.md +56 -0
- package/docs/ContractCallDestination.md +2 -0
- package/docs/ContractCallDestinationType.md +2 -0
- package/docs/CreateAddressBookParam.md +13 -0
- package/docs/CreateAddressBooks201Response.md +9 -0
- package/docs/CreateAddressBooksParam.md +9 -0
- package/docs/CreateAutoSweepTask.md +2 -2
- package/docs/CreateCustodialWalletParams.md +1 -1
- package/docs/CreateExchangeWalletParams.md +1 -1
- package/docs/CreateMerchantRequest.md +3 -2
- package/docs/CreateMpcWalletParams.md +1 -1
- package/docs/CreatePaymentOrderRequest.md +4 -3
- package/docs/CreateRefundRequest.md +1 -1
- package/docs/CreateSafeWalletParams.md +1 -1
- package/docs/CreateSettlement.md +3 -3
- package/docs/CreateSettlementRequestRequest.md +3 -0
- package/docs/CreateSmartContractWalletParams.md +1 -1
- package/docs/CreateSwapActivityRequest.md +15 -0
- package/docs/CreateWalletParams.md +1 -1
- package/docs/DeleteAddressBookById201Response.md +9 -0
- package/docs/DispositionEventData.md +14 -0
- package/docs/DispositionQueryResponse.md +12 -0
- package/docs/DispositionResponse.md +10 -0
- package/docs/DispositionStatus.md +34 -0
- package/docs/DispositionType.md +14 -0
- package/docs/EstimateContractCallFeeParams.md +1 -1
- package/docs/EstimateFeeParams.md +1 -1
- package/docs/EstimateTransferFeeParams.md +1 -1
- package/docs/FeeStationApi.md +53 -0
- package/docs/FeeStationCheckFeeStationUsage.md +14 -0
- package/docs/FeeStationCheckFeeStationUsageResponse.md +16 -0
- package/docs/FeeStationGasStationType.md +12 -0
- package/docs/IsolateDisposition.md +13 -0
- package/docs/ListSwapActivities200Response.md +10 -0
- package/docs/ListSwapEnabledTokens200Response.md +10 -0
- package/docs/ListTopUpPayerAccounts200Response.md +10 -0
- package/docs/MPCVaultEventData.md +3 -1
- package/docs/Merchant.md +2 -1
- package/docs/MerchantBalance.md +6 -6
- package/docs/MessageSignDestination.md +0 -1
- package/docs/OrgInfo.md +1 -0
- package/docs/OtcFee.md +10 -0
- package/docs/PaymentAddressUpdateEventData.md +3 -1
- package/docs/PaymentApi.md +203 -28
- package/docs/PaymentEstimateFee.md +10 -0
- package/docs/PaymentEstimateFee201Response.md +9 -0
- package/docs/PaymentEstimateFeeRequest.md +10 -0
- package/docs/PaymentEstimatedFee.md +13 -0
- package/docs/PaymentFeeType.md +16 -0
- package/docs/PaymentOrderEventData.md +3 -1
- package/docs/PaymentRefundEventData.md +5 -2
- package/docs/PaymentSettlementEvent.md +9 -4
- package/docs/PaymentTransactionEventData.md +3 -1
- package/docs/PaymentWalletBalance.md +5 -5
- package/docs/PspBalance.md +6 -6
- package/docs/ReceivedAmountPerAddress.md +2 -2
- package/docs/Refund.md +2 -1
- package/docs/RefundDisposition.md +13 -0
- package/docs/RoleDetail.md +4 -1
- package/docs/SettleRequestStatus.md +2 -0
- package/docs/Settlement.md +6 -3
- package/docs/SettlementDetail.md +3 -1
- package/docs/SettlementInfo.md +6 -6
- package/docs/SolContractCallAddressLookupTableAccount.md +10 -0
- package/docs/SolContractCallDestination.md +1 -0
- package/docs/StellarContractCallContractParam.md +11 -0
- package/docs/StellarContractCallContractType.md +10 -0
- package/docs/StellarContractCallDestination.md +10 -0
- package/docs/StellarContractCallTrustLineOperationType.md +10 -0
- package/docs/StellarContractCallTrustLineParam.md +11 -0
- package/docs/SupportedToken.md +1 -0
- package/docs/SuspendedTokenEventData.md +3 -1
- package/docs/SwapActivity.md +9 -9
- package/docs/SwapActivityDetail.md +10 -9
- package/docs/SwapActivitySigners.md +1 -1
- package/docs/SwapActivityTimeline.md +3 -3
- package/docs/SwapEstimateFee.md +12 -0
- package/docs/SwapQuote.md +10 -11
- package/docs/SwapReceivingTransaction.md +11 -0
- package/docs/SwapToken.md +6 -6
- package/docs/SwapsApi.md +356 -0
- package/docs/TSSRequestWebhookEventData.md +3 -1
- package/docs/TokenListingEventData.md +3 -1
- package/docs/TokenizationApi.md +2 -2
- package/docs/TokensEventData.md +3 -1
- package/docs/TransactionCoboCategory.md +2 -0
- package/docs/TransactionDestination.md +2 -0
- package/docs/TransactionDestinationType.md +2 -0
- package/docs/TransactionFuelingInfo.md +1 -0
- package/docs/TransactionSolContractAddressLookupTableAccount.md +10 -0
- package/docs/TransactionSolContractDestination.md +1 -0
- package/docs/TransactionStellarContractParam.md +11 -0
- package/docs/TransactionStellarContractType.md +10 -0
- package/docs/TransactionStellarDestination.md +10 -0
- package/docs/TransactionStellarTrustLineOperationType.md +10 -0
- package/docs/TransactionStellarTrustLineParam.md +11 -0
- package/docs/TransactionWebhookEventData.md +3 -1
- package/docs/TransactionsApi.md +11 -11
- package/docs/UnfreezeDisposition.md +9 -0
- package/docs/UpdateAddressBookParam.md +12 -0
- package/docs/UpdateBankAccountByIdRequest.md +9 -0
- package/docs/UpdateMerchantByIdRequest.md +1 -1
- package/docs/UpdateTopUpAddress.md +1 -1
- package/docs/WalletInfoEventData.md +3 -1
- package/docs/WalletSetup.md +14 -0
- package/docs/WalletsApi.md +2 -2
- package/docs/WalletsMPCWalletsApi.md +1 -1
- package/docs/WebhookEventData.md +12 -3
- package/docs/WebhookEventDataType.md +3 -1
- package/docs/WebhookEventType.md +2 -0
- package/package.json +1 -1
- package/dist/model/ApprovalShowInfo.js +0 -140
- package/docs/ApprovalShowInfo.md +0 -13
- package/docs/BTCEIP191MessageSignDestination.md +0 -10
- package/docs/RawMessageSignDestination.md +0 -10
|
@@ -0,0 +1,125 @@
|
|
|
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 _ContractCallDestinationType = _interopRequireDefault(require("./ContractCallDestinationType"));
|
|
9
|
+
var _StellarContractCallContractParam = _interopRequireDefault(require("./StellarContractCallContractParam"));
|
|
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 _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
13
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
14
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
15
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
16
|
+
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); } }
|
|
17
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
18
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
19
|
+
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); } /**
|
|
20
|
+
* Cobo Wallet as a Service 2.0
|
|
21
|
+
*
|
|
22
|
+
* Contact: help@cobo.com
|
|
23
|
+
*
|
|
24
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
25
|
+
* https://openapi-generator.tech
|
|
26
|
+
* Do not edit the class manually.
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* The StellarContractCallDestination model module.
|
|
31
|
+
* @module model/StellarContractCallDestination
|
|
32
|
+
*/
|
|
33
|
+
var StellarContractCallDestination = /*#__PURE__*/function () {
|
|
34
|
+
/**
|
|
35
|
+
* Constructs a new <code>StellarContractCallDestination</code>.
|
|
36
|
+
* The information about the transaction destination. 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.
|
|
37
|
+
* @alias module:model/StellarContractCallDestination
|
|
38
|
+
* @param destination_type {module:model/ContractCallDestinationType}
|
|
39
|
+
* @param contract_param {module:model/StellarContractCallContractParam}
|
|
40
|
+
*/
|
|
41
|
+
function StellarContractCallDestination(destination_type, contract_param) {
|
|
42
|
+
_classCallCheck(this, StellarContractCallDestination);
|
|
43
|
+
StellarContractCallDestination.initialize(this, destination_type, contract_param);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Initializes the fields of this object.
|
|
48
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
49
|
+
* Only for internal use.
|
|
50
|
+
*/
|
|
51
|
+
return _createClass(StellarContractCallDestination, null, [{
|
|
52
|
+
key: "initialize",
|
|
53
|
+
value: function initialize(obj, destination_type, contract_param) {
|
|
54
|
+
obj['destination_type'] = destination_type;
|
|
55
|
+
obj['contract_param'] = contract_param;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Constructs a <code>StellarContractCallDestination</code> from a plain JavaScript object, optionally creating a new instance.
|
|
60
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
61
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
62
|
+
* @param {module:model/StellarContractCallDestination} obj Optional instance to populate.
|
|
63
|
+
* @return {module:model/StellarContractCallDestination} The populated <code>StellarContractCallDestination</code> instance.
|
|
64
|
+
*/
|
|
65
|
+
}, {
|
|
66
|
+
key: "constructFromObject",
|
|
67
|
+
value: function constructFromObject(data, obj) {
|
|
68
|
+
if (data) {
|
|
69
|
+
obj = obj || new StellarContractCallDestination();
|
|
70
|
+
if (data.hasOwnProperty('destination_type')) {
|
|
71
|
+
obj['destination_type'] = _ContractCallDestinationType["default"].constructFromObject(data['destination_type']);
|
|
72
|
+
}
|
|
73
|
+
if (data.hasOwnProperty('contract_param')) {
|
|
74
|
+
obj['contract_param'] = _StellarContractCallContractParam["default"].constructFromObject(data['contract_param']);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
return obj;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Validates the JSON data with respect to <code>StellarContractCallDestination</code>.
|
|
82
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
83
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>StellarContractCallDestination</code>.
|
|
84
|
+
*/
|
|
85
|
+
}, {
|
|
86
|
+
key: "validateJSON",
|
|
87
|
+
value: function validateJSON(data) {
|
|
88
|
+
// check to make sure all required properties are present in the JSON string
|
|
89
|
+
var _iterator = _createForOfIteratorHelper(StellarContractCallDestination.RequiredProperties),
|
|
90
|
+
_step;
|
|
91
|
+
try {
|
|
92
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
93
|
+
var property = _step.value;
|
|
94
|
+
if (!data.hasOwnProperty(property)) {
|
|
95
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
// validate the optional field `contract_param`
|
|
99
|
+
} catch (err) {
|
|
100
|
+
_iterator.e(err);
|
|
101
|
+
} finally {
|
|
102
|
+
_iterator.f();
|
|
103
|
+
}
|
|
104
|
+
if (data['contract_param']) {
|
|
105
|
+
// data not null
|
|
106
|
+
if (!!_StellarContractCallContractParam["default"].validateJSON) {
|
|
107
|
+
_StellarContractCallContractParam["default"].validateJSON(data['contract_param']);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
return true;
|
|
111
|
+
}
|
|
112
|
+
}]);
|
|
113
|
+
}();
|
|
114
|
+
StellarContractCallDestination.RequiredProperties = ["destination_type", "contract_param"];
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* @member {module:model/ContractCallDestinationType} destination_type
|
|
118
|
+
*/
|
|
119
|
+
StellarContractCallDestination.prototype['destination_type'] = undefined;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* @member {module:model/StellarContractCallContractParam} contract_param
|
|
123
|
+
*/
|
|
124
|
+
StellarContractCallDestination.prototype['contract_param'] = undefined;
|
|
125
|
+
var _default = exports["default"] = StellarContractCallDestination;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
10
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
11
|
+
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); } }
|
|
12
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
13
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
14
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
15
|
+
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); } /**
|
|
16
|
+
* Cobo Wallet as a Service 2.0
|
|
17
|
+
*
|
|
18
|
+
* Contact: help@cobo.com
|
|
19
|
+
*
|
|
20
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
21
|
+
* https://openapi-generator.tech
|
|
22
|
+
* Do not edit the class manually.
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
/**
|
|
26
|
+
* Enum class StellarContractCallTrustLineOperationType.
|
|
27
|
+
* @enum {}
|
|
28
|
+
* @readonly
|
|
29
|
+
*/
|
|
30
|
+
var StellarContractCallTrustLineOperationType = exports["default"] = /*#__PURE__*/function () {
|
|
31
|
+
function StellarContractCallTrustLineOperationType() {
|
|
32
|
+
_classCallCheck(this, StellarContractCallTrustLineOperationType);
|
|
33
|
+
/**
|
|
34
|
+
* value: "ChangeTrust"
|
|
35
|
+
* @const
|
|
36
|
+
*/
|
|
37
|
+
_defineProperty(this, "ChangeTrust", "ChangeTrust");
|
|
38
|
+
/**
|
|
39
|
+
* value: "unknown_default_open_api"
|
|
40
|
+
* @const
|
|
41
|
+
*/
|
|
42
|
+
_defineProperty(this, "unknown_default_open_api", "unknown_default_open_api");
|
|
43
|
+
}
|
|
44
|
+
return _createClass(StellarContractCallTrustLineOperationType, null, [{
|
|
45
|
+
key: "constructFromObject",
|
|
46
|
+
value:
|
|
47
|
+
/**
|
|
48
|
+
* Returns a <code>StellarContractCallTrustLineOperationType</code> enum value from a Javascript object name.
|
|
49
|
+
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
|
50
|
+
* @return {module:model/StellarContractCallTrustLineOperationType} The enum <code>StellarContractCallTrustLineOperationType</code> value.
|
|
51
|
+
*/
|
|
52
|
+
function constructFromObject(object) {
|
|
53
|
+
return object;
|
|
54
|
+
}
|
|
55
|
+
}]);
|
|
56
|
+
}();
|
|
@@ -0,0 +1,133 @@
|
|
|
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 _StellarContractCallContractType = _interopRequireDefault(require("./StellarContractCallContractType"));
|
|
9
|
+
var _StellarContractCallTrustLineOperationType = _interopRequireDefault(require("./StellarContractCallTrustLineOperationType"));
|
|
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 _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
13
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
14
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
15
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
16
|
+
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); } }
|
|
17
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
18
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
19
|
+
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); } /**
|
|
20
|
+
* Cobo Wallet as a Service 2.0
|
|
21
|
+
*
|
|
22
|
+
* Contact: help@cobo.com
|
|
23
|
+
*
|
|
24
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
25
|
+
* https://openapi-generator.tech
|
|
26
|
+
* Do not edit the class manually.
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* The StellarContractCallTrustLineParam model module.
|
|
31
|
+
* @module model/StellarContractCallTrustLineParam
|
|
32
|
+
*/
|
|
33
|
+
var StellarContractCallTrustLineParam = /*#__PURE__*/function () {
|
|
34
|
+
/**
|
|
35
|
+
* Constructs a new <code>StellarContractCallTrustLineParam</code>.
|
|
36
|
+
* Parameters related to Stellar trustline operations.
|
|
37
|
+
* @alias module:model/StellarContractCallTrustLineParam
|
|
38
|
+
* @param contract_type {module:model/StellarContractCallContractType}
|
|
39
|
+
* @param token_id {String} The token ID, which is the unique identifier of a token.
|
|
40
|
+
* @param operation_type {module:model/StellarContractCallTrustLineOperationType}
|
|
41
|
+
*/
|
|
42
|
+
function StellarContractCallTrustLineParam(contract_type, token_id, operation_type) {
|
|
43
|
+
_classCallCheck(this, StellarContractCallTrustLineParam);
|
|
44
|
+
StellarContractCallTrustLineParam.initialize(this, contract_type, token_id, operation_type);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Initializes the fields of this object.
|
|
49
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
50
|
+
* Only for internal use.
|
|
51
|
+
*/
|
|
52
|
+
return _createClass(StellarContractCallTrustLineParam, null, [{
|
|
53
|
+
key: "initialize",
|
|
54
|
+
value: function initialize(obj, contract_type, token_id, operation_type) {
|
|
55
|
+
obj['contract_type'] = contract_type;
|
|
56
|
+
obj['token_id'] = token_id;
|
|
57
|
+
obj['operation_type'] = operation_type;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Constructs a <code>StellarContractCallTrustLineParam</code> from a plain JavaScript object, optionally creating a new instance.
|
|
62
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
63
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
64
|
+
* @param {module:model/StellarContractCallTrustLineParam} obj Optional instance to populate.
|
|
65
|
+
* @return {module:model/StellarContractCallTrustLineParam} The populated <code>StellarContractCallTrustLineParam</code> instance.
|
|
66
|
+
*/
|
|
67
|
+
}, {
|
|
68
|
+
key: "constructFromObject",
|
|
69
|
+
value: function constructFromObject(data, obj) {
|
|
70
|
+
if (data) {
|
|
71
|
+
obj = obj || new StellarContractCallTrustLineParam();
|
|
72
|
+
if (data.hasOwnProperty('contract_type')) {
|
|
73
|
+
obj['contract_type'] = _StellarContractCallContractType["default"].constructFromObject(data['contract_type']);
|
|
74
|
+
}
|
|
75
|
+
if (data.hasOwnProperty('token_id')) {
|
|
76
|
+
obj['token_id'] = _ApiClient["default"].convertToType(data['token_id'], 'String');
|
|
77
|
+
}
|
|
78
|
+
if (data.hasOwnProperty('operation_type')) {
|
|
79
|
+
obj['operation_type'] = _StellarContractCallTrustLineOperationType["default"].constructFromObject(data['operation_type']);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
return obj;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Validates the JSON data with respect to <code>StellarContractCallTrustLineParam</code>.
|
|
87
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
88
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>StellarContractCallTrustLineParam</code>.
|
|
89
|
+
*/
|
|
90
|
+
}, {
|
|
91
|
+
key: "validateJSON",
|
|
92
|
+
value: function validateJSON(data) {
|
|
93
|
+
// check to make sure all required properties are present in the JSON string
|
|
94
|
+
var _iterator = _createForOfIteratorHelper(StellarContractCallTrustLineParam.RequiredProperties),
|
|
95
|
+
_step;
|
|
96
|
+
try {
|
|
97
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
98
|
+
var property = _step.value;
|
|
99
|
+
if (!data.hasOwnProperty(property)) {
|
|
100
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
// ensure the json data is a string
|
|
104
|
+
} catch (err) {
|
|
105
|
+
_iterator.e(err);
|
|
106
|
+
} finally {
|
|
107
|
+
_iterator.f();
|
|
108
|
+
}
|
|
109
|
+
if (data['token_id'] && !(typeof data['token_id'] === 'string' || data['token_id'] instanceof String)) {
|
|
110
|
+
throw new Error("Expected the field `token_id` to be a primitive type in the JSON string but got " + data['token_id']);
|
|
111
|
+
}
|
|
112
|
+
return true;
|
|
113
|
+
}
|
|
114
|
+
}]);
|
|
115
|
+
}();
|
|
116
|
+
StellarContractCallTrustLineParam.RequiredProperties = ["contract_type", "token_id", "operation_type"];
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* @member {module:model/StellarContractCallContractType} contract_type
|
|
120
|
+
*/
|
|
121
|
+
StellarContractCallTrustLineParam.prototype['contract_type'] = undefined;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* The token ID, which is the unique identifier of a token.
|
|
125
|
+
* @member {String} token_id
|
|
126
|
+
*/
|
|
127
|
+
StellarContractCallTrustLineParam.prototype['token_id'] = undefined;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* @member {module:model/StellarContractCallTrustLineOperationType} operation_type
|
|
131
|
+
*/
|
|
132
|
+
StellarContractCallTrustLineParam.prototype['operation_type'] = undefined;
|
|
133
|
+
var _default = exports["default"] = StellarContractCallTrustLineParam;
|
|
@@ -101,6 +101,9 @@ var SupportedToken = /*#__PURE__*/function () {
|
|
|
101
101
|
if (data.hasOwnProperty('token_icon_url')) {
|
|
102
102
|
obj['token_icon_url'] = _ApiClient["default"].convertToType(data['token_icon_url'], 'String');
|
|
103
103
|
}
|
|
104
|
+
if (data.hasOwnProperty('can_off_ramp')) {
|
|
105
|
+
obj['can_off_ramp'] = _ApiClient["default"].convertToType(data['can_off_ramp'], 'Boolean');
|
|
106
|
+
}
|
|
104
107
|
}
|
|
105
108
|
return obj;
|
|
106
109
|
}
|
|
@@ -219,4 +222,10 @@ SupportedToken.prototype['chain_icon_url'] = undefined;
|
|
|
219
222
|
* @member {String} token_icon_url
|
|
220
223
|
*/
|
|
221
224
|
SupportedToken.prototype['token_icon_url'] = undefined;
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Whether the token can by off ramp settlement
|
|
228
|
+
* @member {Boolean} can_off_ramp
|
|
229
|
+
*/
|
|
230
|
+
SupportedToken.prototype['can_off_ramp'] = undefined;
|
|
222
231
|
var _default = exports["default"] = SupportedToken;
|
|
@@ -35,7 +35,7 @@ var SuspendedTokenEventData = /*#__PURE__*/function () {
|
|
|
35
35
|
* Constructs a new <code>SuspendedTokenEventData</code>.
|
|
36
36
|
* @alias module:model/SuspendedTokenEventData
|
|
37
37
|
* @implements module:model/WebhookEventDataType
|
|
38
|
-
* @param data_type {module:model/SuspendedTokenEventData.DataTypeEnum} The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
|
|
38
|
+
* @param data_type {module:model/SuspendedTokenEventData.DataTypeEnum} The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data.
|
|
39
39
|
* @param token_ids {String} A list of token IDs, separated by comma.
|
|
40
40
|
* @param operation_type {module:model/SuspendedTokenOperationType}
|
|
41
41
|
*/
|
|
@@ -122,7 +122,7 @@ var SuspendedTokenEventData = /*#__PURE__*/function () {
|
|
|
122
122
|
SuspendedTokenEventData.RequiredProperties = ["data_type", "token_ids", "operation_type"];
|
|
123
123
|
|
|
124
124
|
/**
|
|
125
|
-
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
|
|
125
|
+
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data.
|
|
126
126
|
* @member {module:model/SuspendedTokenEventData.DataTypeEnum} data_type
|
|
127
127
|
*/
|
|
128
128
|
SuspendedTokenEventData.prototype['data_type'] = undefined;
|
|
@@ -140,7 +140,7 @@ SuspendedTokenEventData.prototype['operation_type'] = undefined;
|
|
|
140
140
|
|
|
141
141
|
// Implement WebhookEventDataType interface:
|
|
142
142
|
/**
|
|
143
|
-
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
|
|
143
|
+
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data.
|
|
144
144
|
* @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
|
|
145
145
|
*/
|
|
146
146
|
_WebhookEventDataType["default"].prototype['data_type'] = undefined;
|
|
@@ -226,6 +226,11 @@ SuspendedTokenEventData['DataTypeEnum'] = {
|
|
|
226
226
|
* @const
|
|
227
227
|
*/
|
|
228
228
|
"SuspendedToken": "SuspendedToken",
|
|
229
|
+
/**
|
|
230
|
+
* value: "ComplianceDisposition"
|
|
231
|
+
* @const
|
|
232
|
+
*/
|
|
233
|
+
"ComplianceDisposition": "ComplianceDisposition",
|
|
229
234
|
/**
|
|
230
235
|
* value: "unknown_default_open_api"
|
|
231
236
|
* @const
|
|
@@ -202,49 +202,49 @@ SwapActivity.prototype['swap_type'] = undefined;
|
|
|
202
202
|
SwapActivity.prototype['status'] = undefined;
|
|
203
203
|
|
|
204
204
|
/**
|
|
205
|
-
* The request
|
|
205
|
+
* The request ID of the swap transaction.
|
|
206
206
|
* @member {String} request_id
|
|
207
207
|
*/
|
|
208
208
|
SwapActivity.prototype['request_id'] = undefined;
|
|
209
209
|
|
|
210
210
|
/**
|
|
211
|
-
* The
|
|
211
|
+
* The ID of the wallet used to pay.
|
|
212
212
|
* @member {String} wallet_id
|
|
213
213
|
*/
|
|
214
214
|
SwapActivity.prototype['wallet_id'] = undefined;
|
|
215
215
|
|
|
216
216
|
/**
|
|
217
|
-
* The token
|
|
217
|
+
* The ID of the token to pay.
|
|
218
218
|
* @member {String} pay_token_id
|
|
219
219
|
*/
|
|
220
220
|
SwapActivity.prototype['pay_token_id'] = undefined;
|
|
221
221
|
|
|
222
222
|
/**
|
|
223
|
-
* The token
|
|
223
|
+
* The ID of the token to receive.
|
|
224
224
|
* @member {String} receive_token_id
|
|
225
225
|
*/
|
|
226
226
|
SwapActivity.prototype['receive_token_id'] = undefined;
|
|
227
227
|
|
|
228
228
|
/**
|
|
229
|
-
* The amount of
|
|
229
|
+
* The amount of the token to pay.
|
|
230
230
|
* @member {String} pay_amount
|
|
231
231
|
*/
|
|
232
232
|
SwapActivity.prototype['pay_amount'] = undefined;
|
|
233
233
|
|
|
234
234
|
/**
|
|
235
|
-
* The amount of
|
|
235
|
+
* The amount of the token to receive.
|
|
236
236
|
* @member {String} receive_amount
|
|
237
237
|
*/
|
|
238
238
|
SwapActivity.prototype['receive_amount'] = undefined;
|
|
239
239
|
|
|
240
240
|
/**
|
|
241
|
-
* The
|
|
241
|
+
* The ID of the token used for paying the service fee.
|
|
242
242
|
* @member {String} fee_token_id
|
|
243
243
|
*/
|
|
244
244
|
SwapActivity.prototype['fee_token_id'] = undefined;
|
|
245
245
|
|
|
246
246
|
/**
|
|
247
|
-
* The amount of fee.
|
|
247
|
+
* The amount of the service fee.
|
|
248
248
|
* @member {String} fee_amount
|
|
249
249
|
*/
|
|
250
250
|
SwapActivity.prototype['fee_amount'] = undefined;
|
|
@@ -284,7 +284,7 @@ SwapActivity.prototype['updated_timestamp'] = undefined;
|
|
|
284
284
|
SwapActivity.prototype['network_fee'] = undefined;
|
|
285
285
|
|
|
286
286
|
/**
|
|
287
|
-
*
|
|
287
|
+
* The address of an MPC Wallet or Web3 Wallet that receives the swapped or bridged assets.
|
|
288
288
|
* @member {String} destination_address
|
|
289
289
|
*/
|
|
290
290
|
SwapActivity.prototype['destination_address'] = undefined;
|
|
@@ -32,7 +32,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
32
32
|
var SwapActivityApprovers = /*#__PURE__*/function () {
|
|
33
33
|
/**
|
|
34
34
|
* Constructs a new <code>SwapActivityApprovers</code>.
|
|
35
|
-
* The
|
|
35
|
+
* The approver information of the swap activity.
|
|
36
36
|
* @alias module:model/SwapActivityApprovers
|
|
37
37
|
* @param name {String} The approver name of the swap activity.
|
|
38
38
|
* @param status {module:model/SwapApproversStatus}
|
|
@@ -10,6 +10,7 @@ var _SwapActivityApprovers = _interopRequireDefault(require("./SwapActivityAppro
|
|
|
10
10
|
var _SwapActivitySigners = _interopRequireDefault(require("./SwapActivitySigners"));
|
|
11
11
|
var _SwapActivityStatus = _interopRequireDefault(require("./SwapActivityStatus"));
|
|
12
12
|
var _SwapActivityTimeline = _interopRequireDefault(require("./SwapActivityTimeline"));
|
|
13
|
+
var _SwapReceivingTransaction = _interopRequireDefault(require("./SwapReceivingTransaction"));
|
|
13
14
|
var _SwapType = _interopRequireDefault(require("./SwapType"));
|
|
14
15
|
var _TransactionInitiatorType = _interopRequireDefault(require("./TransactionInitiatorType"));
|
|
15
16
|
var _TransactionRequestFee = _interopRequireDefault(require("./TransactionRequestFee"));
|
|
@@ -133,6 +134,9 @@ var SwapActivityDetail = /*#__PURE__*/function () {
|
|
|
133
134
|
if (data.hasOwnProperty('signers')) {
|
|
134
135
|
obj['signers'] = _ApiClient["default"].convertToType(data['signers'], [_SwapActivitySigners["default"]]);
|
|
135
136
|
}
|
|
137
|
+
if (data.hasOwnProperty('receiving_transaction')) {
|
|
138
|
+
obj['receiving_transaction'] = _SwapReceivingTransaction["default"].constructFromObject(data['receiving_transaction']);
|
|
139
|
+
}
|
|
136
140
|
}
|
|
137
141
|
return obj;
|
|
138
142
|
}
|
|
@@ -263,6 +267,13 @@ var SwapActivityDetail = /*#__PURE__*/function () {
|
|
|
263
267
|
}
|
|
264
268
|
;
|
|
265
269
|
}
|
|
270
|
+
// validate the optional field `receiving_transaction`
|
|
271
|
+
if (data['receiving_transaction']) {
|
|
272
|
+
// data not null
|
|
273
|
+
if (!!_SwapReceivingTransaction["default"].validateJSON) {
|
|
274
|
+
_SwapReceivingTransaction["default"].validateJSON(data['receiving_transaction']);
|
|
275
|
+
}
|
|
276
|
+
}
|
|
266
277
|
return true;
|
|
267
278
|
}
|
|
268
279
|
}]);
|
|
@@ -284,49 +295,49 @@ SwapActivityDetail.prototype['swap_type'] = undefined;
|
|
|
284
295
|
SwapActivityDetail.prototype['status'] = undefined;
|
|
285
296
|
|
|
286
297
|
/**
|
|
287
|
-
* The request
|
|
298
|
+
* The request ID of the swap transaction.
|
|
288
299
|
* @member {String} request_id
|
|
289
300
|
*/
|
|
290
301
|
SwapActivityDetail.prototype['request_id'] = undefined;
|
|
291
302
|
|
|
292
303
|
/**
|
|
293
|
-
* The
|
|
304
|
+
* The ID of the wallet used to pay.
|
|
294
305
|
* @member {String} wallet_id
|
|
295
306
|
*/
|
|
296
307
|
SwapActivityDetail.prototype['wallet_id'] = undefined;
|
|
297
308
|
|
|
298
309
|
/**
|
|
299
|
-
* The token
|
|
310
|
+
* The ID of the token to pay.
|
|
300
311
|
* @member {String} pay_token_id
|
|
301
312
|
*/
|
|
302
313
|
SwapActivityDetail.prototype['pay_token_id'] = undefined;
|
|
303
314
|
|
|
304
315
|
/**
|
|
305
|
-
* The token
|
|
316
|
+
* The ID of the token to receive.
|
|
306
317
|
* @member {String} receive_token_id
|
|
307
318
|
*/
|
|
308
319
|
SwapActivityDetail.prototype['receive_token_id'] = undefined;
|
|
309
320
|
|
|
310
321
|
/**
|
|
311
|
-
* The amount of
|
|
322
|
+
* The amount of the token to pay.
|
|
312
323
|
* @member {String} pay_amount
|
|
313
324
|
*/
|
|
314
325
|
SwapActivityDetail.prototype['pay_amount'] = undefined;
|
|
315
326
|
|
|
316
327
|
/**
|
|
317
|
-
* The amount of
|
|
328
|
+
* The amount of the token to receive.
|
|
318
329
|
* @member {String} receive_amount
|
|
319
330
|
*/
|
|
320
331
|
SwapActivityDetail.prototype['receive_amount'] = undefined;
|
|
321
332
|
|
|
322
333
|
/**
|
|
323
|
-
* The
|
|
334
|
+
* The ID of the token used for paying the service fee.
|
|
324
335
|
* @member {String} fee_token_id
|
|
325
336
|
*/
|
|
326
337
|
SwapActivityDetail.prototype['fee_token_id'] = undefined;
|
|
327
338
|
|
|
328
339
|
/**
|
|
329
|
-
* The amount of fee.
|
|
340
|
+
* The amount of the service fee.
|
|
330
341
|
* @member {String} fee_amount
|
|
331
342
|
*/
|
|
332
343
|
SwapActivityDetail.prototype['fee_amount'] = undefined;
|
|
@@ -366,7 +377,7 @@ SwapActivityDetail.prototype['updated_timestamp'] = undefined;
|
|
|
366
377
|
SwapActivityDetail.prototype['network_fee'] = undefined;
|
|
367
378
|
|
|
368
379
|
/**
|
|
369
|
-
*
|
|
380
|
+
* The address of an MPC Wallet or Web3 Wallet that receives the swapped or bridged assets.
|
|
370
381
|
* @member {String} destination_address
|
|
371
382
|
*/
|
|
372
383
|
SwapActivityDetail.prototype['destination_address'] = undefined;
|
|
@@ -386,6 +397,11 @@ SwapActivityDetail.prototype['approvers'] = undefined;
|
|
|
386
397
|
*/
|
|
387
398
|
SwapActivityDetail.prototype['signers'] = undefined;
|
|
388
399
|
|
|
400
|
+
/**
|
|
401
|
+
* @member {module:model/SwapReceivingTransaction} receiving_transaction
|
|
402
|
+
*/
|
|
403
|
+
SwapActivityDetail.prototype['receiving_transaction'] = undefined;
|
|
404
|
+
|
|
389
405
|
// Implement SwapActivity interface:
|
|
390
406
|
/**
|
|
391
407
|
* The unique identifier of the swap activity.
|
|
@@ -401,42 +417,42 @@ _SwapActivity["default"].prototype['swap_type'] = undefined;
|
|
|
401
417
|
*/
|
|
402
418
|
_SwapActivity["default"].prototype['status'] = undefined;
|
|
403
419
|
/**
|
|
404
|
-
* The request
|
|
420
|
+
* The request ID of the swap transaction.
|
|
405
421
|
* @member {String} request_id
|
|
406
422
|
*/
|
|
407
423
|
_SwapActivity["default"].prototype['request_id'] = undefined;
|
|
408
424
|
/**
|
|
409
|
-
* The
|
|
425
|
+
* The ID of the wallet used to pay.
|
|
410
426
|
* @member {String} wallet_id
|
|
411
427
|
*/
|
|
412
428
|
_SwapActivity["default"].prototype['wallet_id'] = undefined;
|
|
413
429
|
/**
|
|
414
|
-
* The token
|
|
430
|
+
* The ID of the token to pay.
|
|
415
431
|
* @member {String} pay_token_id
|
|
416
432
|
*/
|
|
417
433
|
_SwapActivity["default"].prototype['pay_token_id'] = undefined;
|
|
418
434
|
/**
|
|
419
|
-
* The token
|
|
435
|
+
* The ID of the token to receive.
|
|
420
436
|
* @member {String} receive_token_id
|
|
421
437
|
*/
|
|
422
438
|
_SwapActivity["default"].prototype['receive_token_id'] = undefined;
|
|
423
439
|
/**
|
|
424
|
-
* The amount of
|
|
440
|
+
* The amount of the token to pay.
|
|
425
441
|
* @member {String} pay_amount
|
|
426
442
|
*/
|
|
427
443
|
_SwapActivity["default"].prototype['pay_amount'] = undefined;
|
|
428
444
|
/**
|
|
429
|
-
* The amount of
|
|
445
|
+
* The amount of the token to receive.
|
|
430
446
|
* @member {String} receive_amount
|
|
431
447
|
*/
|
|
432
448
|
_SwapActivity["default"].prototype['receive_amount'] = undefined;
|
|
433
449
|
/**
|
|
434
|
-
* The
|
|
450
|
+
* The ID of the token used for paying the service fee.
|
|
435
451
|
* @member {String} fee_token_id
|
|
436
452
|
*/
|
|
437
453
|
_SwapActivity["default"].prototype['fee_token_id'] = undefined;
|
|
438
454
|
/**
|
|
439
|
-
* The amount of fee.
|
|
455
|
+
* The amount of the service fee.
|
|
440
456
|
* @member {String} fee_amount
|
|
441
457
|
*/
|
|
442
458
|
_SwapActivity["default"].prototype['fee_amount'] = undefined;
|
|
@@ -469,7 +485,7 @@ _SwapActivity["default"].prototype['updated_timestamp'] = undefined;
|
|
|
469
485
|
*/
|
|
470
486
|
_SwapActivity["default"].prototype['network_fee'] = undefined;
|
|
471
487
|
/**
|
|
472
|
-
*
|
|
488
|
+
* The address of an MPC Wallet or Web3 Wallet that receives the swapped or bridged assets.
|
|
473
489
|
* @member {String} destination_address
|
|
474
490
|
*/
|
|
475
491
|
_SwapActivity["default"].prototype['destination_address'] = undefined;
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
var SwapActivitySigners = /*#__PURE__*/function () {
|
|
30
30
|
/**
|
|
31
31
|
* Constructs a new <code>SwapActivitySigners</code>.
|
|
32
|
-
* The signer
|
|
32
|
+
* The signer information of the swap activity.
|
|
33
33
|
* @alias module:model/SwapActivitySigners
|
|
34
34
|
*/
|
|
35
35
|
function SwapActivitySigners() {
|
|
@@ -103,7 +103,7 @@ SwapActivitySigners.prototype['signer'] = undefined;
|
|
|
103
103
|
SwapActivitySigners.prototype['status'] = undefined;
|
|
104
104
|
|
|
105
105
|
/**
|
|
106
|
-
*
|
|
106
|
+
* The reason for the signing failure.
|
|
107
107
|
* @member {String} failed_reason
|
|
108
108
|
*/
|
|
109
109
|
SwapActivitySigners.prototype['failed_reason'] = undefined;
|