@cobo/cobo-waas2 1.17.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 +113 -7
- package/dist/ApiClient.js +1 -1
- package/dist/api/FeeStationApi.js +2 -2
- package/dist/api/OAuthApi.js +12 -12
- package/dist/api/OrganizationsApi.js +79 -0
- package/dist/api/PaymentApi.js +233 -16
- package/dist/api/TransactionsApi.js +2 -94
- package/dist/api/WalletsApi.js +55 -2
- package/dist/index.js +717 -10
- package/dist/model/Account.js +174 -0
- package/dist/model/AcquiringType.js +61 -0
- package/dist/model/AddressTransferDestination.js +2 -2
- package/dist/model/AddressesEventData.js +13 -3
- 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/BalanceUpdateInfo.js +170 -0
- package/dist/model/BalanceUpdateInfoEventData.js +302 -0
- package/dist/model/BankAccount.js +2 -2
- package/dist/model/ChainsEventData.js +13 -3
- package/dist/model/CreateMerchantRequest.js +13 -0
- package/dist/model/CreatePaymentOrderRequest.js +16 -6
- package/dist/model/CreateRefundRequest.js +9 -11
- package/dist/model/CreateSettlement.js +7 -27
- package/dist/model/CreateSettlementRequestRequest.js +27 -0
- package/dist/model/CryptoAddress.js +7 -7
- package/dist/model/CustodialTransferDestination.js +1 -1
- package/dist/model/CustodialWeb3TransferSource.js +2 -2
- package/dist/model/EstimateContractCallFeeParams.js +2 -2
- package/dist/model/EstimateFeeParams.js +1 -1
- package/dist/model/EstimatedEvmEip1559Fee.js +2 -2
- package/dist/model/EstimatedEvmLegacyFee.js +2 -2
- package/dist/model/EstimatedFILFee.js +170 -0
- package/dist/model/EstimatedFILFeeSlow.js +186 -0
- package/dist/model/EstimatedFee.js +69 -13
- package/dist/model/EstimatedFixedFee.js +2 -2
- package/dist/model/EstimatedSOLFee.js +170 -0
- package/dist/model/EstimatedSOLFeeSlow.js +184 -0
- 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/ExchangePermissionToken201Response.js +4 -4
- package/dist/model/ExchangePermissionTokenRequest.js +2 -2
- package/dist/model/FILBase.js +88 -0
- package/dist/model/FILPrice.js +113 -0
- package/dist/model/FeeRate.js +1 -1
- package/dist/model/FeeType.js +10 -0
- package/dist/model/FixedFeeRate.js +2 -2
- package/dist/model/GetExchangeRate200Response.js +2 -2
- package/dist/model/GetMaxTransferableValueWithFeeModelRequest.js +156 -0
- package/dist/model/GraphQLError.js +135 -0
- package/dist/model/GraphQLErrorLocationsInner.js +92 -0
- package/dist/model/GraphQLRequest.js +135 -0
- package/dist/model/GraphQLResponse.js +119 -0
- package/dist/model/{ListTransactionApprovalDetails200Response.js → ListTopUpPayers200Response.js} +37 -21
- package/dist/model/ListTopUpPayers200ResponseDataInner.js +189 -0
- package/dist/model/MPCVaultEventData.js +13 -3
- package/dist/model/MaxFeeAmount.js +0 -1
- package/dist/model/MaxTransferableValue.js +2 -2
- package/dist/model/Merchant.js +15 -2
- package/dist/model/MpcTransferSource.js +2 -2
- package/dist/model/Order.js +12 -3
- package/dist/model/PayerAccount.js +189 -0
- package/dist/model/PaymentOrderEventData.js +32 -9
- package/dist/model/PaymentRefundEventData.js +71 -11
- package/dist/model/PaymentSettlementEvent.js +19 -9
- package/dist/model/RefreshPermissionTokenRequest.js +2 -2
- package/dist/model/Refund.js +39 -4
- package/dist/model/RefundStatus.js +5 -0
- package/dist/model/RoleDetail.js +126 -0
- package/dist/model/SOLBase.js +101 -0
- package/dist/model/SOLComputeUnit.js +100 -0
- package/dist/model/Settlement.js +3 -3
- package/dist/model/SettlementDetail.js +15 -6
- package/dist/model/SettlementInfo.js +11 -2
- 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 +68 -0
- package/dist/model/SwapActivitySigners.js +110 -0
- package/dist/model/SwapQuote.js +17 -4
- package/dist/model/SwapSingingStatus.js +71 -0
- package/dist/model/TSSRequestWebhookEventData.js +13 -3
- package/dist/model/TokenListingEventData.js +13 -3
- 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/{TransactionMessageSignBTCEIP191Destination.js → TokenizationAllowlistAddressNote.js} +46 -36
- 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 -3
- package/dist/model/TopUpAddress.js +230 -0
- package/dist/model/TransactionCoboCategory.js +20 -0
- package/dist/model/TransactionDestination.js +10 -38
- package/dist/model/TransactionEvmCalldataInfo.js +1 -1
- package/dist/model/TransactionEvmEip1559Fee.js +2 -2
- package/dist/model/TransactionEvmLegacyFee.js +2 -2
- package/dist/model/TransactionFILFee.js +229 -0
- package/dist/model/TransactionFee.js +109 -11
- 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 +186 -0
- package/dist/model/TransactionRequestFee.js +90 -10
- package/dist/model/TransactionRequestFixedFee.js +2 -2
- package/dist/model/TransactionRequestSOLFee.js +168 -0
- package/dist/model/TransactionRequestUtxoFee.js +2 -2
- package/dist/model/TransactionSOLFee.js +229 -0
- package/dist/model/TransactionSubStatus.js +5 -0
- package/dist/model/TransactionTransferToAddressDestination.js +2 -2
- package/dist/model/TransactionTransferToWalletDestination.js +1 -1
- package/dist/model/TransactionUtxoFee.js +2 -2
- package/dist/model/TransactionWebhookEventData.js +13 -3
- package/dist/model/TransferDestination.js +2 -2
- package/dist/model/UpdateMerchantByIdRequest.js +13 -0
- package/dist/model/UpdateRefundByIdRequest.js +110 -0
- package/dist/model/UpdateTopUpAddress.js +141 -0
- package/dist/model/UtxoFeeBasePrice.js +0 -1
- package/dist/model/UtxoFeeRate.js +2 -2
- package/dist/model/WalletInfoEventData.js +13 -3
- package/dist/model/WebhookEvent.js +2 -2
- package/dist/model/WebhookEventData.js +123 -13
- package/dist/model/WebhookEventDataType.js +12 -2
- package/dist/model/WebhookEventLog.js +2 -2
- package/dist/model/WebhookEventType.js +35 -0
- package/docs/Account.md +14 -0
- package/docs/AcquiringType.md +12 -0
- package/docs/AddressTransferDestination.md +2 -2
- package/docs/AddressesEventData.md +5 -1
- 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/BalanceUpdateInfo.md +13 -0
- package/docs/BalanceUpdateInfoEventData.md +49 -0
- package/docs/BankAccount.md +2 -2
- package/docs/ChainsEventData.md +5 -1
- package/docs/CreateMerchantRequest.md +1 -0
- package/docs/CreatePaymentOrderRequest.md +5 -4
- package/docs/CreateRefundRequest.md +5 -5
- package/docs/CreateSettlement.md +7 -9
- package/docs/CreateSettlementRequestRequest.md +3 -0
- package/docs/CryptoAddress.md +5 -5
- package/docs/CustodialWeb3TransferSource.md +1 -1
- package/docs/EstimateContractCallFeeParams.md +1 -1
- package/docs/EstimateFeeParams.md +1 -1
- package/docs/EstimatedEvmEip1559Fee.md +1 -1
- package/docs/EstimatedEvmLegacyFee.md +1 -1
- package/docs/EstimatedFILFee.md +13 -0
- package/docs/EstimatedFILFeeSlow.md +12 -0
- package/docs/EstimatedFee.md +4 -4
- package/docs/EstimatedFixedFee.md +1 -1
- package/docs/EstimatedSOLFee.md +13 -0
- package/docs/EstimatedSOLFeeSlow.md +12 -0
- package/docs/EstimatedUtxoFee.md +1 -1
- package/docs/EvmEip1559FeeRate.md +1 -1
- package/docs/EvmLegacyFeeRate.md +1 -1
- package/docs/ExchangePermissionToken201Response.md +4 -4
- package/docs/ExchangePermissionTokenRequest.md +1 -1
- package/docs/FILBase.md +9 -0
- package/docs/FILPrice.md +11 -0
- package/docs/FeeRate.md +1 -1
- package/docs/FeeStationApi.md +1 -1
- package/docs/FeeType.md +4 -0
- package/docs/FixedFeeRate.md +1 -1
- package/docs/GetExchangeRate200Response.md +1 -1
- package/docs/GetMaxTransferableValueWithFeeModelRequest.md +12 -0
- package/docs/GraphQLError.md +11 -0
- package/docs/GraphQLErrorLocationsInner.md +10 -0
- package/docs/GraphQLRequest.md +11 -0
- package/docs/GraphQLResponse.md +10 -0
- package/docs/ListTopUpPayers200Response.md +10 -0
- package/docs/ListTopUpPayers200ResponseDataInner.md +14 -0
- package/docs/MPCVaultEventData.md +5 -1
- package/docs/MaxTransferableValue.md +1 -1
- package/docs/Merchant.md +3 -2
- package/docs/MpcTransferSource.md +1 -1
- package/docs/OAuthApi.md +8 -8
- package/docs/Order.md +4 -3
- package/docs/OrganizationsApi.md +55 -0
- package/docs/PayerAccount.md +14 -0
- package/docs/PaymentApi.md +230 -6
- package/docs/PaymentOrderEventData.md +9 -4
- package/docs/PaymentRefundEventData.md +12 -5
- package/docs/PaymentSettlementEvent.md +8 -4
- package/docs/RefreshPermissionTokenRequest.md +1 -1
- package/docs/Refund.md +7 -4
- package/docs/RefundStatus.md +2 -0
- package/docs/RoleDetail.md +11 -0
- package/docs/SOLBase.md +10 -0
- package/docs/SOLComputeUnit.md +10 -0
- package/docs/Settlement.md +3 -3
- package/docs/SettlementDetail.md +7 -6
- package/docs/SettlementInfo.md +3 -2
- package/docs/SuspendedTokenEventData.md +46 -0
- package/docs/SuspendedTokenOperationType.md +12 -0
- package/docs/SwapActivity.md +2 -0
- package/docs/SwapActivityDetail.md +3 -0
- package/docs/SwapActivitySigners.md +11 -0
- package/docs/SwapQuote.md +3 -2
- package/docs/SwapSingingStatus.md +16 -0
- package/docs/TSSRequestWebhookEventData.md +5 -1
- package/docs/TokenListingEventData.md +5 -1
- 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 -1
- package/docs/TopUpAddress.md +18 -0
- package/docs/TransactionCoboCategory.md +8 -0
- package/docs/TransactionDestination.md +2 -2
- package/docs/TransactionEvmCalldataInfo.md +1 -1
- package/docs/TransactionEvmEip1559Fee.md +2 -2
- package/docs/TransactionEvmLegacyFee.md +2 -2
- package/docs/TransactionFILFee.md +16 -0
- package/docs/TransactionFee.md +10 -3
- 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 +13 -0
- package/docs/TransactionRequestFee.md +6 -2
- package/docs/TransactionRequestFixedFee.md +1 -1
- package/docs/TransactionRequestSOLFee.md +12 -0
- package/docs/TransactionRequestUtxoFee.md +1 -1
- package/docs/TransactionSOLFee.md +16 -0
- package/docs/TransactionSubStatus.md +2 -0
- package/docs/TransactionTransferToAddressDestination.md +2 -2
- package/docs/TransactionTransferToWalletDestination.md +1 -1
- package/docs/TransactionUtxoFee.md +2 -2
- package/docs/TransactionWebhookEventData.md +5 -1
- package/docs/TransactionsApi.md +1 -107
- package/docs/TransferDestination.md +2 -2
- package/docs/UpdateMerchantByIdRequest.md +1 -0
- package/docs/UpdateRefundByIdRequest.md +9 -0
- package/docs/UpdateTopUpAddress.md +11 -0
- package/docs/UtxoFeeRate.md +1 -1
- package/docs/WalletInfoEventData.md +5 -1
- package/docs/WalletsApi.md +58 -1
- package/docs/WebhookEvent.md +1 -1
- package/docs/WebhookEventData.md +18 -5
- package/docs/WebhookEventDataType.md +5 -1
- package/docs/WebhookEventLog.md +1 -1
- package/docs/WebhookEventType.md +14 -0
- package/package.json +1 -1
- package/docs/ListTransactionApprovalDetails200Response.md +0 -9
- package/docs/TransactionMessageSignBTCEIP191Destination.md +0 -10
|
@@ -0,0 +1,189 @@
|
|
|
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 _Account = _interopRequireDefault(require("./Account"));
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
|
+
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); }
|
|
11
|
+
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; } } }; }
|
|
12
|
+
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; } }
|
|
13
|
+
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; }
|
|
14
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
15
|
+
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); } }
|
|
16
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
17
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
|
+
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); } /**
|
|
19
|
+
* Cobo Wallet as a Service 2.0
|
|
20
|
+
*
|
|
21
|
+
* Contact: help@cobo.com
|
|
22
|
+
*
|
|
23
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
24
|
+
* https://openapi-generator.tech
|
|
25
|
+
* Do not edit the class manually.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* The PayerAccount model module.
|
|
30
|
+
* @module model/PayerAccount
|
|
31
|
+
*/
|
|
32
|
+
var PayerAccount = /*#__PURE__*/function () {
|
|
33
|
+
/**
|
|
34
|
+
* Constructs a new <code>PayerAccount</code>.
|
|
35
|
+
* @alias module:model/PayerAccount
|
|
36
|
+
* @param merchant_id {String} The merchant ID.
|
|
37
|
+
* @param payer_id {String} A unique identifier assigned by Cobo to track and identify individual payers.
|
|
38
|
+
* @param developer_fee_rate {String} The developer fee rate applied to the top-up transactions made by the payer. Expressed as a decimal string where \"0.1\" represents 10%.
|
|
39
|
+
*/
|
|
40
|
+
function PayerAccount(merchant_id, payer_id, developer_fee_rate) {
|
|
41
|
+
_classCallCheck(this, PayerAccount);
|
|
42
|
+
PayerAccount.initialize(this, merchant_id, payer_id, developer_fee_rate);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Initializes the fields of this object.
|
|
47
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
48
|
+
* Only for internal use.
|
|
49
|
+
*/
|
|
50
|
+
return _createClass(PayerAccount, null, [{
|
|
51
|
+
key: "initialize",
|
|
52
|
+
value: function initialize(obj, merchant_id, payer_id, developer_fee_rate) {
|
|
53
|
+
obj['merchant_id'] = merchant_id;
|
|
54
|
+
obj['payer_id'] = payer_id;
|
|
55
|
+
obj['developer_fee_rate'] = developer_fee_rate;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Constructs a <code>PayerAccount</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/PayerAccount} obj Optional instance to populate.
|
|
63
|
+
* @return {module:model/PayerAccount} The populated <code>PayerAccount</code> instance.
|
|
64
|
+
*/
|
|
65
|
+
}, {
|
|
66
|
+
key: "constructFromObject",
|
|
67
|
+
value: function constructFromObject(data, obj) {
|
|
68
|
+
if (data) {
|
|
69
|
+
obj = obj || new PayerAccount();
|
|
70
|
+
if (data.hasOwnProperty('merchant_id')) {
|
|
71
|
+
obj['merchant_id'] = _ApiClient["default"].convertToType(data['merchant_id'], 'String');
|
|
72
|
+
}
|
|
73
|
+
if (data.hasOwnProperty('payer_id')) {
|
|
74
|
+
obj['payer_id'] = _ApiClient["default"].convertToType(data['payer_id'], 'String');
|
|
75
|
+
}
|
|
76
|
+
if (data.hasOwnProperty('developer_fee_rate')) {
|
|
77
|
+
obj['developer_fee_rate'] = _ApiClient["default"].convertToType(data['developer_fee_rate'], 'String');
|
|
78
|
+
}
|
|
79
|
+
if (data.hasOwnProperty('created_timestamp')) {
|
|
80
|
+
obj['created_timestamp'] = _ApiClient["default"].convertToType(data['created_timestamp'], 'Number');
|
|
81
|
+
}
|
|
82
|
+
if (data.hasOwnProperty('updated_timestamp')) {
|
|
83
|
+
obj['updated_timestamp'] = _ApiClient["default"].convertToType(data['updated_timestamp'], 'Number');
|
|
84
|
+
}
|
|
85
|
+
if (data.hasOwnProperty('accounts')) {
|
|
86
|
+
obj['accounts'] = _ApiClient["default"].convertToType(data['accounts'], [_Account["default"]]);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
return obj;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Validates the JSON data with respect to <code>PayerAccount</code>.
|
|
94
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
95
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>PayerAccount</code>.
|
|
96
|
+
*/
|
|
97
|
+
}, {
|
|
98
|
+
key: "validateJSON",
|
|
99
|
+
value: function validateJSON(data) {
|
|
100
|
+
// check to make sure all required properties are present in the JSON string
|
|
101
|
+
var _iterator = _createForOfIteratorHelper(PayerAccount.RequiredProperties),
|
|
102
|
+
_step;
|
|
103
|
+
try {
|
|
104
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
105
|
+
var property = _step.value;
|
|
106
|
+
if (!data.hasOwnProperty(property)) {
|
|
107
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
// ensure the json data is a string
|
|
111
|
+
} catch (err) {
|
|
112
|
+
_iterator.e(err);
|
|
113
|
+
} finally {
|
|
114
|
+
_iterator.f();
|
|
115
|
+
}
|
|
116
|
+
if (data['merchant_id'] && !(typeof data['merchant_id'] === 'string' || data['merchant_id'] instanceof String)) {
|
|
117
|
+
throw new Error("Expected the field `merchant_id` to be a primitive type in the JSON string but got " + data['merchant_id']);
|
|
118
|
+
}
|
|
119
|
+
// ensure the json data is a string
|
|
120
|
+
if (data['payer_id'] && !(typeof data['payer_id'] === 'string' || data['payer_id'] instanceof String)) {
|
|
121
|
+
throw new Error("Expected the field `payer_id` to be a primitive type in the JSON string but got " + data['payer_id']);
|
|
122
|
+
}
|
|
123
|
+
// ensure the json data is a string
|
|
124
|
+
if (data['developer_fee_rate'] && !(typeof data['developer_fee_rate'] === 'string' || data['developer_fee_rate'] instanceof String)) {
|
|
125
|
+
throw new Error("Expected the field `developer_fee_rate` to be a primitive type in the JSON string but got " + data['developer_fee_rate']);
|
|
126
|
+
}
|
|
127
|
+
if (data['accounts']) {
|
|
128
|
+
// data not null
|
|
129
|
+
// ensure the json data is an array
|
|
130
|
+
if (!Array.isArray(data['accounts'])) {
|
|
131
|
+
throw new Error("Expected the field `accounts` to be an array in the JSON data but got " + data['accounts']);
|
|
132
|
+
}
|
|
133
|
+
// validate the optional field `accounts` (array)
|
|
134
|
+
var _iterator2 = _createForOfIteratorHelper(data['accounts']),
|
|
135
|
+
_step2;
|
|
136
|
+
try {
|
|
137
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
138
|
+
var item = _step2.value;
|
|
139
|
+
_Account["default"].validateJSON(item);
|
|
140
|
+
}
|
|
141
|
+
} catch (err) {
|
|
142
|
+
_iterator2.e(err);
|
|
143
|
+
} finally {
|
|
144
|
+
_iterator2.f();
|
|
145
|
+
}
|
|
146
|
+
;
|
|
147
|
+
}
|
|
148
|
+
return true;
|
|
149
|
+
}
|
|
150
|
+
}]);
|
|
151
|
+
}();
|
|
152
|
+
PayerAccount.RequiredProperties = ["merchant_id", "payer_id", "developer_fee_rate"];
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* The merchant ID.
|
|
156
|
+
* @member {String} merchant_id
|
|
157
|
+
*/
|
|
158
|
+
PayerAccount.prototype['merchant_id'] = undefined;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* A unique identifier assigned by Cobo to track and identify individual payers.
|
|
162
|
+
* @member {String} payer_id
|
|
163
|
+
*/
|
|
164
|
+
PayerAccount.prototype['payer_id'] = undefined;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* The developer fee rate applied to the top-up transactions made by the payer. Expressed as a decimal string where \"0.1\" represents 10%.
|
|
168
|
+
* @member {String} developer_fee_rate
|
|
169
|
+
*/
|
|
170
|
+
PayerAccount.prototype['developer_fee_rate'] = undefined;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* The creation time of the payer, represented as a UNIX timestamp in seconds.
|
|
174
|
+
* @member {Number} created_timestamp
|
|
175
|
+
*/
|
|
176
|
+
PayerAccount.prototype['created_timestamp'] = undefined;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* The last update time of the payer, represented as a UNIX timestamp in seconds.
|
|
180
|
+
* @member {Number} updated_timestamp
|
|
181
|
+
*/
|
|
182
|
+
PayerAccount.prototype['updated_timestamp'] = undefined;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* An array of accounts associated with this payer.
|
|
186
|
+
* @member {Array.<module:model/Account>} accounts
|
|
187
|
+
*/
|
|
188
|
+
PayerAccount.prototype['accounts'] = undefined;
|
|
189
|
+
var _default = exports["default"] = PayerAccount;
|
|
@@ -8,6 +8,7 @@ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
|
8
8
|
var _Order = _interopRequireDefault(require("./Order"));
|
|
9
9
|
var _OrderStatus = _interopRequireDefault(require("./OrderStatus"));
|
|
10
10
|
var _PaymentTransaction = _interopRequireDefault(require("./PaymentTransaction"));
|
|
11
|
+
var _SettleStatus = _interopRequireDefault(require("./SettleStatus"));
|
|
11
12
|
var _WebhookEventDataType = _interopRequireDefault(require("./WebhookEventDataType"));
|
|
12
13
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
13
14
|
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); }
|
|
@@ -38,7 +39,7 @@ var PaymentOrderEventData = /*#__PURE__*/function () {
|
|
|
38
39
|
* @alias module:model/PaymentOrderEventData
|
|
39
40
|
* @implements module:model/WebhookEventDataType
|
|
40
41
|
* @implements module:model/Order
|
|
41
|
-
* @param data_type {module:model/PaymentOrderEventData.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.
|
|
42
|
+
* @param data_type {module:model/PaymentOrderEventData.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.
|
|
42
43
|
* @param order_id {String} The order ID.
|
|
43
44
|
* @param token_id {String} The ID of the cryptocurrency used for payment. Supported tokens: - 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`
|
|
44
45
|
* @param chain_id {String} The ID of the blockchain network where the payment transaction should be made. Supported chains: - USDC: `ETH`, `ARBITRUM`, `SOL`, `BASE`, `MATIC`, `BSC` - USDT: `TRON`, `ETH`, `ARBITRUM`, `SOL`, `BASE`, `MATIC`, `BSC`
|
|
@@ -153,6 +154,9 @@ var PaymentOrderEventData = /*#__PURE__*/function () {
|
|
|
153
154
|
if (data.hasOwnProperty('transactions')) {
|
|
154
155
|
obj['transactions'] = _ApiClient["default"].convertToType(data['transactions'], [_PaymentTransaction["default"]]);
|
|
155
156
|
}
|
|
157
|
+
if (data.hasOwnProperty('settlement_status')) {
|
|
158
|
+
obj['settlement_status'] = _SettleStatus["default"].constructFromObject(data['settlement_status']);
|
|
159
|
+
}
|
|
156
160
|
}
|
|
157
161
|
return obj;
|
|
158
162
|
}
|
|
@@ -264,7 +268,7 @@ var PaymentOrderEventData = /*#__PURE__*/function () {
|
|
|
264
268
|
PaymentOrderEventData.RequiredProperties = ["data_type", "order_id", "token_id", "chain_id", "payable_amount", "receive_address", "currency", "order_amount", "fee_amount", "exchange_rate", "psp_order_code", "status", "received_token_amount"];
|
|
265
269
|
|
|
266
270
|
/**
|
|
267
|
-
* 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.
|
|
271
|
+
* 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.
|
|
268
272
|
* @member {module:model/PaymentOrderEventData.DataTypeEnum} data_type
|
|
269
273
|
*/
|
|
270
274
|
PaymentOrderEventData.prototype['data_type'] = undefined;
|
|
@@ -359,26 +363,31 @@ PaymentOrderEventData.prototype['status'] = undefined;
|
|
|
359
363
|
PaymentOrderEventData.prototype['received_token_amount'] = undefined;
|
|
360
364
|
|
|
361
365
|
/**
|
|
362
|
-
* The
|
|
366
|
+
* The creation time of the order, represented as a UNIX timestamp in seconds.
|
|
363
367
|
* @member {Number} created_timestamp
|
|
364
368
|
*/
|
|
365
369
|
PaymentOrderEventData.prototype['created_timestamp'] = undefined;
|
|
366
370
|
|
|
367
371
|
/**
|
|
368
|
-
* The
|
|
372
|
+
* The last update time of the order, represented as a UNIX timestamp in seconds.
|
|
369
373
|
* @member {Number} updated_timestamp
|
|
370
374
|
*/
|
|
371
375
|
PaymentOrderEventData.prototype['updated_timestamp'] = undefined;
|
|
372
376
|
|
|
373
377
|
/**
|
|
374
|
-
* An array of transactions associated with this pay-in order. Each transaction represents a separate blockchain operation related to the
|
|
378
|
+
* An array of transactions associated with this pay-in order. Each transaction represents a separate blockchain operation related to the pay-in process.
|
|
375
379
|
* @member {Array.<module:model/PaymentTransaction>} transactions
|
|
376
380
|
*/
|
|
377
381
|
PaymentOrderEventData.prototype['transactions'] = undefined;
|
|
378
382
|
|
|
383
|
+
/**
|
|
384
|
+
* @member {module:model/SettleStatus} settlement_status
|
|
385
|
+
*/
|
|
386
|
+
PaymentOrderEventData.prototype['settlement_status'] = undefined;
|
|
387
|
+
|
|
379
388
|
// Implement WebhookEventDataType interface:
|
|
380
389
|
/**
|
|
381
|
-
* 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.
|
|
390
|
+
* 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.
|
|
382
391
|
* @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
|
|
383
392
|
*/
|
|
384
393
|
_WebhookEventDataType["default"].prototype['data_type'] = undefined;
|
|
@@ -458,20 +467,24 @@ _Order["default"].prototype['status'] = undefined;
|
|
|
458
467
|
*/
|
|
459
468
|
_Order["default"].prototype['received_token_amount'] = undefined;
|
|
460
469
|
/**
|
|
461
|
-
* The
|
|
470
|
+
* The creation time of the order, represented as a UNIX timestamp in seconds.
|
|
462
471
|
* @member {Number} created_timestamp
|
|
463
472
|
*/
|
|
464
473
|
_Order["default"].prototype['created_timestamp'] = undefined;
|
|
465
474
|
/**
|
|
466
|
-
* The
|
|
475
|
+
* The last update time of the order, represented as a UNIX timestamp in seconds.
|
|
467
476
|
* @member {Number} updated_timestamp
|
|
468
477
|
*/
|
|
469
478
|
_Order["default"].prototype['updated_timestamp'] = undefined;
|
|
470
479
|
/**
|
|
471
|
-
* An array of transactions associated with this pay-in order. Each transaction represents a separate blockchain operation related to the
|
|
480
|
+
* An array of transactions associated with this pay-in order. Each transaction represents a separate blockchain operation related to the pay-in process.
|
|
472
481
|
* @member {Array.<module:model/PaymentTransaction>} transactions
|
|
473
482
|
*/
|
|
474
483
|
_Order["default"].prototype['transactions'] = undefined;
|
|
484
|
+
/**
|
|
485
|
+
* @member {module:model/SettleStatus} settlement_status
|
|
486
|
+
*/
|
|
487
|
+
_Order["default"].prototype['settlement_status'] = undefined;
|
|
475
488
|
|
|
476
489
|
/**
|
|
477
490
|
* Allowed values for the <code>data_type</code> property.
|
|
@@ -534,6 +547,16 @@ PaymentOrderEventData['DataTypeEnum'] = {
|
|
|
534
547
|
* @const
|
|
535
548
|
*/
|
|
536
549
|
"PaymentSettlement": "PaymentSettlement",
|
|
550
|
+
/**
|
|
551
|
+
* value: "BalanceUpdateInfo"
|
|
552
|
+
* @const
|
|
553
|
+
*/
|
|
554
|
+
"BalanceUpdateInfo": "BalanceUpdateInfo",
|
|
555
|
+
/**
|
|
556
|
+
* value: "SuspendedToken"
|
|
557
|
+
* @const
|
|
558
|
+
*/
|
|
559
|
+
"SuspendedToken": "SuspendedToken",
|
|
537
560
|
/**
|
|
538
561
|
* value: "unknown_default_open_api"
|
|
539
562
|
* @const
|
|
@@ -39,7 +39,7 @@ var PaymentRefundEventData = /*#__PURE__*/function () {
|
|
|
39
39
|
* @alias module:model/PaymentRefundEventData
|
|
40
40
|
* @implements module:model/WebhookEventDataType
|
|
41
41
|
* @implements module:model/Refund
|
|
42
|
-
* @param data_type {module:model/PaymentRefundEventData.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.
|
|
42
|
+
* @param data_type {module:model/PaymentRefundEventData.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.
|
|
43
43
|
* @param refund_id {String} The refund order ID.
|
|
44
44
|
* @param token_id {String} The ID of the cryptocurrency used for refund.
|
|
45
45
|
* @param chain_id {String} The ID of the blockchain network on which the refund transaction occurs.
|
|
@@ -130,6 +130,15 @@ var PaymentRefundEventData = /*#__PURE__*/function () {
|
|
|
130
130
|
if (data.hasOwnProperty('transactions')) {
|
|
131
131
|
obj['transactions'] = _ApiClient["default"].convertToType(data['transactions'], [_PaymentTransaction["default"]]);
|
|
132
132
|
}
|
|
133
|
+
if (data.hasOwnProperty('charge_merchant_fee')) {
|
|
134
|
+
obj['charge_merchant_fee'] = _ApiClient["default"].convertToType(data['charge_merchant_fee'], 'Boolean');
|
|
135
|
+
}
|
|
136
|
+
if (data.hasOwnProperty('merchant_fee_amount')) {
|
|
137
|
+
obj['merchant_fee_amount'] = _ApiClient["default"].convertToType(data['merchant_fee_amount'], 'String');
|
|
138
|
+
}
|
|
139
|
+
if (data.hasOwnProperty('merchant_fee_token_id')) {
|
|
140
|
+
obj['merchant_fee_token_id'] = _ApiClient["default"].convertToType(data['merchant_fee_token_id'], 'String');
|
|
141
|
+
}
|
|
133
142
|
}
|
|
134
143
|
return obj;
|
|
135
144
|
}
|
|
@@ -218,6 +227,14 @@ var PaymentRefundEventData = /*#__PURE__*/function () {
|
|
|
218
227
|
}
|
|
219
228
|
;
|
|
220
229
|
}
|
|
230
|
+
// ensure the json data is a string
|
|
231
|
+
if (data['merchant_fee_amount'] && !(typeof data['merchant_fee_amount'] === 'string' || data['merchant_fee_amount'] instanceof String)) {
|
|
232
|
+
throw new Error("Expected the field `merchant_fee_amount` to be a primitive type in the JSON string but got " + data['merchant_fee_amount']);
|
|
233
|
+
}
|
|
234
|
+
// ensure the json data is a string
|
|
235
|
+
if (data['merchant_fee_token_id'] && !(typeof data['merchant_fee_token_id'] === 'string' || data['merchant_fee_token_id'] instanceof String)) {
|
|
236
|
+
throw new Error("Expected the field `merchant_fee_token_id` to be a primitive type in the JSON string but got " + data['merchant_fee_token_id']);
|
|
237
|
+
}
|
|
221
238
|
return true;
|
|
222
239
|
}
|
|
223
240
|
}]);
|
|
@@ -225,7 +242,7 @@ var PaymentRefundEventData = /*#__PURE__*/function () {
|
|
|
225
242
|
PaymentRefundEventData.RequiredProperties = ["data_type", "refund_id", "token_id", "chain_id", "amount", "to_address", "status"];
|
|
226
243
|
|
|
227
244
|
/**
|
|
228
|
-
* 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.
|
|
245
|
+
* 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.
|
|
229
246
|
* @member {module:model/PaymentRefundEventData.DataTypeEnum} data_type
|
|
230
247
|
*/
|
|
231
248
|
PaymentRefundEventData.prototype['data_type'] = undefined;
|
|
@@ -243,7 +260,7 @@ PaymentRefundEventData.prototype['request_id'] = undefined;
|
|
|
243
260
|
PaymentRefundEventData.prototype['refund_id'] = undefined;
|
|
244
261
|
|
|
245
262
|
/**
|
|
246
|
-
* The order
|
|
263
|
+
* The ID of the pay-in order corresponding to this refund.
|
|
247
264
|
* @member {String} order_id
|
|
248
265
|
*/
|
|
249
266
|
PaymentRefundEventData.prototype['order_id'] = undefined;
|
|
@@ -289,19 +306,19 @@ PaymentRefundEventData.prototype['status'] = undefined;
|
|
|
289
306
|
PaymentRefundEventData.prototype['refund_type'] = undefined;
|
|
290
307
|
|
|
291
308
|
/**
|
|
292
|
-
* The
|
|
309
|
+
* The creation time of the refund order, represented as a UNIX timestamp in seconds.
|
|
293
310
|
* @member {Number} created_timestamp
|
|
294
311
|
*/
|
|
295
312
|
PaymentRefundEventData.prototype['created_timestamp'] = undefined;
|
|
296
313
|
|
|
297
314
|
/**
|
|
298
|
-
* The
|
|
315
|
+
* The last update time of the refund order, represented as a UNIX timestamp in seconds.
|
|
299
316
|
* @member {Number} updated_timestamp
|
|
300
317
|
*/
|
|
301
318
|
PaymentRefundEventData.prototype['updated_timestamp'] = undefined;
|
|
302
319
|
|
|
303
320
|
/**
|
|
304
|
-
*
|
|
321
|
+
* The initiator of this settlement request. Can return either an API key or the Payment Management App's ID. - Format `api_key_<API_KEY>`: Indicates the settlement request was initiated via the Payment API using the API key. - Format `app_<APP_ID>`: Indicates the settlement request was initiated through the Payment Management App using the App ID.
|
|
305
322
|
* @member {String} initiator
|
|
306
323
|
*/
|
|
307
324
|
PaymentRefundEventData.prototype['initiator'] = undefined;
|
|
@@ -312,9 +329,27 @@ PaymentRefundEventData.prototype['initiator'] = undefined;
|
|
|
312
329
|
*/
|
|
313
330
|
PaymentRefundEventData.prototype['transactions'] = undefined;
|
|
314
331
|
|
|
332
|
+
/**
|
|
333
|
+
* Whether to charge developer fee to the merchant for the refund. - `true`: The fee amount (specified in `merchant_fee_amount`) will be deducted from the merchant's balance and added to the developer's balance - `false`: The merchant is not charged any developer fee.
|
|
334
|
+
* @member {Boolean} charge_merchant_fee
|
|
335
|
+
*/
|
|
336
|
+
PaymentRefundEventData.prototype['charge_merchant_fee'] = undefined;
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* The developer fee amount to charge the merchant, denominated in the cryptocurrency specified by `merchant_fee_token_id`. This is only applicable if `charge_merchant_fee` is set to `true`.
|
|
340
|
+
* @member {String} merchant_fee_amount
|
|
341
|
+
*/
|
|
342
|
+
PaymentRefundEventData.prototype['merchant_fee_amount'] = undefined;
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* The ID of the cryptocurrency used for the developer fee. This is only applicable if `charge_merchant_fee` is set to true.
|
|
346
|
+
* @member {String} merchant_fee_token_id
|
|
347
|
+
*/
|
|
348
|
+
PaymentRefundEventData.prototype['merchant_fee_token_id'] = undefined;
|
|
349
|
+
|
|
315
350
|
// Implement WebhookEventDataType interface:
|
|
316
351
|
/**
|
|
317
|
-
* 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.
|
|
352
|
+
* 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.
|
|
318
353
|
* @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
|
|
319
354
|
*/
|
|
320
355
|
_WebhookEventDataType["default"].prototype['data_type'] = undefined;
|
|
@@ -330,7 +365,7 @@ _Refund["default"].prototype['request_id'] = undefined;
|
|
|
330
365
|
*/
|
|
331
366
|
_Refund["default"].prototype['refund_id'] = undefined;
|
|
332
367
|
/**
|
|
333
|
-
* The order
|
|
368
|
+
* The ID of the pay-in order corresponding to this refund.
|
|
334
369
|
* @member {String} order_id
|
|
335
370
|
*/
|
|
336
371
|
_Refund["default"].prototype['order_id'] = undefined;
|
|
@@ -368,17 +403,17 @@ _Refund["default"].prototype['status'] = undefined;
|
|
|
368
403
|
*/
|
|
369
404
|
_Refund["default"].prototype['refund_type'] = undefined;
|
|
370
405
|
/**
|
|
371
|
-
* The
|
|
406
|
+
* The creation time of the refund order, represented as a UNIX timestamp in seconds.
|
|
372
407
|
* @member {Number} created_timestamp
|
|
373
408
|
*/
|
|
374
409
|
_Refund["default"].prototype['created_timestamp'] = undefined;
|
|
375
410
|
/**
|
|
376
|
-
* The
|
|
411
|
+
* The last update time of the refund order, represented as a UNIX timestamp in seconds.
|
|
377
412
|
* @member {Number} updated_timestamp
|
|
378
413
|
*/
|
|
379
414
|
_Refund["default"].prototype['updated_timestamp'] = undefined;
|
|
380
415
|
/**
|
|
381
|
-
*
|
|
416
|
+
* The initiator of this settlement request. Can return either an API key or the Payment Management App's ID. - Format `api_key_<API_KEY>`: Indicates the settlement request was initiated via the Payment API using the API key. - Format `app_<APP_ID>`: Indicates the settlement request was initiated through the Payment Management App using the App ID.
|
|
382
417
|
* @member {String} initiator
|
|
383
418
|
*/
|
|
384
419
|
_Refund["default"].prototype['initiator'] = undefined;
|
|
@@ -387,6 +422,21 @@ _Refund["default"].prototype['initiator'] = undefined;
|
|
|
387
422
|
* @member {Array.<module:model/PaymentTransaction>} transactions
|
|
388
423
|
*/
|
|
389
424
|
_Refund["default"].prototype['transactions'] = undefined;
|
|
425
|
+
/**
|
|
426
|
+
* Whether to charge developer fee to the merchant for the refund. - `true`: The fee amount (specified in `merchant_fee_amount`) will be deducted from the merchant's balance and added to the developer's balance - `false`: The merchant is not charged any developer fee.
|
|
427
|
+
* @member {Boolean} charge_merchant_fee
|
|
428
|
+
*/
|
|
429
|
+
_Refund["default"].prototype['charge_merchant_fee'] = undefined;
|
|
430
|
+
/**
|
|
431
|
+
* The developer fee amount to charge the merchant, denominated in the cryptocurrency specified by `merchant_fee_token_id`. This is only applicable if `charge_merchant_fee` is set to `true`.
|
|
432
|
+
* @member {String} merchant_fee_amount
|
|
433
|
+
*/
|
|
434
|
+
_Refund["default"].prototype['merchant_fee_amount'] = undefined;
|
|
435
|
+
/**
|
|
436
|
+
* The ID of the cryptocurrency used for the developer fee. This is only applicable if `charge_merchant_fee` is set to true.
|
|
437
|
+
* @member {String} merchant_fee_token_id
|
|
438
|
+
*/
|
|
439
|
+
_Refund["default"].prototype['merchant_fee_token_id'] = undefined;
|
|
390
440
|
|
|
391
441
|
/**
|
|
392
442
|
* Allowed values for the <code>data_type</code> property.
|
|
@@ -449,6 +499,16 @@ PaymentRefundEventData['DataTypeEnum'] = {
|
|
|
449
499
|
* @const
|
|
450
500
|
*/
|
|
451
501
|
"PaymentSettlement": "PaymentSettlement",
|
|
502
|
+
/**
|
|
503
|
+
* value: "BalanceUpdateInfo"
|
|
504
|
+
* @const
|
|
505
|
+
*/
|
|
506
|
+
"BalanceUpdateInfo": "BalanceUpdateInfo",
|
|
507
|
+
/**
|
|
508
|
+
* value: "SuspendedToken"
|
|
509
|
+
* @const
|
|
510
|
+
*/
|
|
511
|
+
"SuspendedToken": "SuspendedToken",
|
|
452
512
|
/**
|
|
453
513
|
* value: "unknown_default_open_api"
|
|
454
514
|
* @const
|
|
@@ -38,7 +38,7 @@ var PaymentSettlementEvent = /*#__PURE__*/function () {
|
|
|
38
38
|
* @alias module:model/PaymentSettlementEvent
|
|
39
39
|
* @implements module:model/WebhookEventDataType
|
|
40
40
|
* @implements module:model/Settlement
|
|
41
|
-
* @param data_type {module:model/PaymentSettlementEvent.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.
|
|
41
|
+
* @param data_type {module:model/PaymentSettlementEvent.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.
|
|
42
42
|
* @param settlement_request_id {String} The settlement request ID generated by Cobo.
|
|
43
43
|
* @param request_id {String} The request ID provided by you when creating the settlement request.
|
|
44
44
|
* @param status {module:model/SettleRequestStatus}
|
|
@@ -175,7 +175,7 @@ var PaymentSettlementEvent = /*#__PURE__*/function () {
|
|
|
175
175
|
PaymentSettlementEvent.RequiredProperties = ["data_type", "settlement_request_id", "request_id", "status", "settlements"];
|
|
176
176
|
|
|
177
177
|
/**
|
|
178
|
-
* 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.
|
|
178
|
+
* 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.
|
|
179
179
|
* @member {module:model/PaymentSettlementEvent.DataTypeEnum} data_type
|
|
180
180
|
*/
|
|
181
181
|
PaymentSettlementEvent.prototype['data_type'] = undefined;
|
|
@@ -203,26 +203,26 @@ PaymentSettlementEvent.prototype['status'] = undefined;
|
|
|
203
203
|
PaymentSettlementEvent.prototype['settlements'] = undefined;
|
|
204
204
|
|
|
205
205
|
/**
|
|
206
|
-
* The
|
|
206
|
+
* The creation time of the settlement request, represented as a UNIX timestamp in seconds.
|
|
207
207
|
* @member {Number} created_timestamp
|
|
208
208
|
*/
|
|
209
209
|
PaymentSettlementEvent.prototype['created_timestamp'] = undefined;
|
|
210
210
|
|
|
211
211
|
/**
|
|
212
|
-
* The
|
|
212
|
+
* The last update time of the settlement request, represented as a UNIX timestamp in seconds.
|
|
213
213
|
* @member {Number} updated_timestamp
|
|
214
214
|
*/
|
|
215
215
|
PaymentSettlementEvent.prototype['updated_timestamp'] = undefined;
|
|
216
216
|
|
|
217
217
|
/**
|
|
218
|
-
*
|
|
218
|
+
* The initiator of this settlement request. Can return either an API key or the Payment Management App's ID. - Format `api_key_<API_KEY>`: Indicates the settlement request was initiated via the Payment API using the API key. - Format `app_<APP_ID>`: Indicates the settlement request was initiated through the Payment Management App using the App ID.
|
|
219
219
|
* @member {String} initiator
|
|
220
220
|
*/
|
|
221
221
|
PaymentSettlementEvent.prototype['initiator'] = undefined;
|
|
222
222
|
|
|
223
223
|
// Implement WebhookEventDataType interface:
|
|
224
224
|
/**
|
|
225
|
-
* 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.
|
|
225
|
+
* 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.
|
|
226
226
|
* @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
|
|
227
227
|
*/
|
|
228
228
|
_WebhookEventDataType["default"].prototype['data_type'] = undefined;
|
|
@@ -246,17 +246,17 @@ _Settlement["default"].prototype['status'] = undefined;
|
|
|
246
246
|
*/
|
|
247
247
|
_Settlement["default"].prototype['settlements'] = undefined;
|
|
248
248
|
/**
|
|
249
|
-
* The
|
|
249
|
+
* The creation time of the settlement request, represented as a UNIX timestamp in seconds.
|
|
250
250
|
* @member {Number} created_timestamp
|
|
251
251
|
*/
|
|
252
252
|
_Settlement["default"].prototype['created_timestamp'] = undefined;
|
|
253
253
|
/**
|
|
254
|
-
* The
|
|
254
|
+
* The last update time of the settlement request, represented as a UNIX timestamp in seconds.
|
|
255
255
|
* @member {Number} updated_timestamp
|
|
256
256
|
*/
|
|
257
257
|
_Settlement["default"].prototype['updated_timestamp'] = undefined;
|
|
258
258
|
/**
|
|
259
|
-
*
|
|
259
|
+
* The initiator of this settlement request. Can return either an API key or the Payment Management App's ID. - Format `api_key_<API_KEY>`: Indicates the settlement request was initiated via the Payment API using the API key. - Format `app_<APP_ID>`: Indicates the settlement request was initiated through the Payment Management App using the App ID.
|
|
260
260
|
* @member {String} initiator
|
|
261
261
|
*/
|
|
262
262
|
_Settlement["default"].prototype['initiator'] = undefined;
|
|
@@ -322,6 +322,16 @@ PaymentSettlementEvent['DataTypeEnum'] = {
|
|
|
322
322
|
* @const
|
|
323
323
|
*/
|
|
324
324
|
"PaymentSettlement": "PaymentSettlement",
|
|
325
|
+
/**
|
|
326
|
+
* value: "BalanceUpdateInfo"
|
|
327
|
+
* @const
|
|
328
|
+
*/
|
|
329
|
+
"BalanceUpdateInfo": "BalanceUpdateInfo",
|
|
330
|
+
/**
|
|
331
|
+
* value: "SuspendedToken"
|
|
332
|
+
* @const
|
|
333
|
+
*/
|
|
334
|
+
"SuspendedToken": "SuspendedToken",
|
|
325
335
|
/**
|
|
326
336
|
* value: "unknown_default_open_api"
|
|
327
337
|
* @const
|
|
@@ -32,7 +32,7 @@ var RefreshPermissionTokenRequest = /*#__PURE__*/function () {
|
|
|
32
32
|
/**
|
|
33
33
|
* Constructs a new <code>RefreshPermissionTokenRequest</code>.
|
|
34
34
|
* @alias module:model/RefreshPermissionTokenRequest
|
|
35
|
-
* @param refresh_token {String} The Refresh Token of the current
|
|
35
|
+
* @param refresh_token {String} The Refresh Token of the current Access Token.
|
|
36
36
|
*/
|
|
37
37
|
function RefreshPermissionTokenRequest(refresh_token) {
|
|
38
38
|
_classCallCheck(this, RefreshPermissionTokenRequest);
|
|
@@ -103,7 +103,7 @@ var RefreshPermissionTokenRequest = /*#__PURE__*/function () {
|
|
|
103
103
|
RefreshPermissionTokenRequest.RequiredProperties = ["refresh_token"];
|
|
104
104
|
|
|
105
105
|
/**
|
|
106
|
-
* The Refresh Token of the current
|
|
106
|
+
* The Refresh Token of the current Access Token.
|
|
107
107
|
* @member {String} refresh_token
|
|
108
108
|
*/
|
|
109
109
|
RefreshPermissionTokenRequest.prototype['refresh_token'] = undefined;
|