@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
package/dist/model/Refund.js
CHANGED
|
@@ -117,6 +117,15 @@ var Refund = /*#__PURE__*/function () {
|
|
|
117
117
|
if (data.hasOwnProperty('transactions')) {
|
|
118
118
|
obj['transactions'] = _ApiClient["default"].convertToType(data['transactions'], [_PaymentTransaction["default"]]);
|
|
119
119
|
}
|
|
120
|
+
if (data.hasOwnProperty('charge_merchant_fee')) {
|
|
121
|
+
obj['charge_merchant_fee'] = _ApiClient["default"].convertToType(data['charge_merchant_fee'], 'Boolean');
|
|
122
|
+
}
|
|
123
|
+
if (data.hasOwnProperty('merchant_fee_amount')) {
|
|
124
|
+
obj['merchant_fee_amount'] = _ApiClient["default"].convertToType(data['merchant_fee_amount'], 'String');
|
|
125
|
+
}
|
|
126
|
+
if (data.hasOwnProperty('merchant_fee_token_id')) {
|
|
127
|
+
obj['merchant_fee_token_id'] = _ApiClient["default"].convertToType(data['merchant_fee_token_id'], 'String');
|
|
128
|
+
}
|
|
120
129
|
}
|
|
121
130
|
return obj;
|
|
122
131
|
}
|
|
@@ -201,6 +210,14 @@ var Refund = /*#__PURE__*/function () {
|
|
|
201
210
|
}
|
|
202
211
|
;
|
|
203
212
|
}
|
|
213
|
+
// ensure the json data is a string
|
|
214
|
+
if (data['merchant_fee_amount'] && !(typeof data['merchant_fee_amount'] === 'string' || data['merchant_fee_amount'] instanceof String)) {
|
|
215
|
+
throw new Error("Expected the field `merchant_fee_amount` to be a primitive type in the JSON string but got " + data['merchant_fee_amount']);
|
|
216
|
+
}
|
|
217
|
+
// ensure the json data is a string
|
|
218
|
+
if (data['merchant_fee_token_id'] && !(typeof data['merchant_fee_token_id'] === 'string' || data['merchant_fee_token_id'] instanceof String)) {
|
|
219
|
+
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']);
|
|
220
|
+
}
|
|
204
221
|
return true;
|
|
205
222
|
}
|
|
206
223
|
}]);
|
|
@@ -220,7 +237,7 @@ Refund.prototype['request_id'] = undefined;
|
|
|
220
237
|
Refund.prototype['refund_id'] = undefined;
|
|
221
238
|
|
|
222
239
|
/**
|
|
223
|
-
* The order
|
|
240
|
+
* The ID of the pay-in order corresponding to this refund.
|
|
224
241
|
* @member {String} order_id
|
|
225
242
|
*/
|
|
226
243
|
Refund.prototype['order_id'] = undefined;
|
|
@@ -266,19 +283,19 @@ Refund.prototype['status'] = undefined;
|
|
|
266
283
|
Refund.prototype['refund_type'] = undefined;
|
|
267
284
|
|
|
268
285
|
/**
|
|
269
|
-
* The
|
|
286
|
+
* The creation time of the refund order, represented as a UNIX timestamp in seconds.
|
|
270
287
|
* @member {Number} created_timestamp
|
|
271
288
|
*/
|
|
272
289
|
Refund.prototype['created_timestamp'] = undefined;
|
|
273
290
|
|
|
274
291
|
/**
|
|
275
|
-
* The
|
|
292
|
+
* The last update time of the refund order, represented as a UNIX timestamp in seconds.
|
|
276
293
|
* @member {Number} updated_timestamp
|
|
277
294
|
*/
|
|
278
295
|
Refund.prototype['updated_timestamp'] = undefined;
|
|
279
296
|
|
|
280
297
|
/**
|
|
281
|
-
*
|
|
298
|
+
* 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.
|
|
282
299
|
* @member {String} initiator
|
|
283
300
|
*/
|
|
284
301
|
Refund.prototype['initiator'] = undefined;
|
|
@@ -288,4 +305,22 @@ Refund.prototype['initiator'] = undefined;
|
|
|
288
305
|
* @member {Array.<module:model/PaymentTransaction>} transactions
|
|
289
306
|
*/
|
|
290
307
|
Refund.prototype['transactions'] = undefined;
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* 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.
|
|
311
|
+
* @member {Boolean} charge_merchant_fee
|
|
312
|
+
*/
|
|
313
|
+
Refund.prototype['charge_merchant_fee'] = undefined;
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* 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`.
|
|
317
|
+
* @member {String} merchant_fee_amount
|
|
318
|
+
*/
|
|
319
|
+
Refund.prototype['merchant_fee_amount'] = undefined;
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* The ID of the cryptocurrency used for the developer fee. This is only applicable if `charge_merchant_fee` is set to true.
|
|
323
|
+
* @member {String} merchant_fee_token_id
|
|
324
|
+
*/
|
|
325
|
+
Refund.prototype['merchant_fee_token_id'] = undefined;
|
|
291
326
|
var _default = exports["default"] = Refund;
|
|
@@ -55,6 +55,11 @@ var RefundStatus = exports["default"] = /*#__PURE__*/function () {
|
|
|
55
55
|
* @const
|
|
56
56
|
*/
|
|
57
57
|
_defineProperty(this, "Failed", "Failed");
|
|
58
|
+
/**
|
|
59
|
+
* value: "PendingConfirmation"
|
|
60
|
+
* @const
|
|
61
|
+
*/
|
|
62
|
+
_defineProperty(this, "PendingConfirmation", "PendingConfirmation");
|
|
58
63
|
/**
|
|
59
64
|
* value: "unknown_default_open_api"
|
|
60
65
|
* @const
|
|
@@ -0,0 +1,126 @@
|
|
|
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 _ApprovalTransactionResult = _interopRequireDefault(require("./ApprovalTransactionResult"));
|
|
9
|
+
var _ApprovalUserDetail = _interopRequireDefault(require("./ApprovalUserDetail"));
|
|
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 RoleDetail model module.
|
|
31
|
+
* @module model/RoleDetail
|
|
32
|
+
*/
|
|
33
|
+
var RoleDetail = /*#__PURE__*/function () {
|
|
34
|
+
/**
|
|
35
|
+
* Constructs a new <code>RoleDetail</code>.
|
|
36
|
+
* Transaction approval details response schema.
|
|
37
|
+
* @alias module:model/RoleDetail
|
|
38
|
+
*/
|
|
39
|
+
function RoleDetail() {
|
|
40
|
+
_classCallCheck(this, RoleDetail);
|
|
41
|
+
RoleDetail.initialize(this);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Initializes the fields of this object.
|
|
46
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
47
|
+
* Only for internal use.
|
|
48
|
+
*/
|
|
49
|
+
return _createClass(RoleDetail, null, [{
|
|
50
|
+
key: "initialize",
|
|
51
|
+
value: function initialize(obj) {}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Constructs a <code>RoleDetail</code> from a plain JavaScript object, optionally creating a new instance.
|
|
55
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
56
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
57
|
+
* @param {module:model/RoleDetail} obj Optional instance to populate.
|
|
58
|
+
* @return {module:model/RoleDetail} The populated <code>RoleDetail</code> instance.
|
|
59
|
+
*/
|
|
60
|
+
}, {
|
|
61
|
+
key: "constructFromObject",
|
|
62
|
+
value: function constructFromObject(data, obj) {
|
|
63
|
+
if (data) {
|
|
64
|
+
obj = obj || new RoleDetail();
|
|
65
|
+
if (data.hasOwnProperty('result')) {
|
|
66
|
+
obj['result'] = _ApprovalTransactionResult["default"].constructFromObject(data['result']);
|
|
67
|
+
}
|
|
68
|
+
if (data.hasOwnProperty('threshold')) {
|
|
69
|
+
obj['threshold'] = _ApiClient["default"].convertToType(data['threshold'], 'Number');
|
|
70
|
+
}
|
|
71
|
+
if (data.hasOwnProperty('user_details')) {
|
|
72
|
+
obj['user_details'] = _ApiClient["default"].convertToType(data['user_details'], [_ApprovalUserDetail["default"]]);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return obj;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Validates the JSON data with respect to <code>RoleDetail</code>.
|
|
80
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
81
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>RoleDetail</code>.
|
|
82
|
+
*/
|
|
83
|
+
}, {
|
|
84
|
+
key: "validateJSON",
|
|
85
|
+
value: function validateJSON(data) {
|
|
86
|
+
if (data['user_details']) {
|
|
87
|
+
// data not null
|
|
88
|
+
// ensure the json data is an array
|
|
89
|
+
if (!Array.isArray(data['user_details'])) {
|
|
90
|
+
throw new Error("Expected the field `user_details` to be an array in the JSON data but got " + data['user_details']);
|
|
91
|
+
}
|
|
92
|
+
// validate the optional field `user_details` (array)
|
|
93
|
+
var _iterator = _createForOfIteratorHelper(data['user_details']),
|
|
94
|
+
_step;
|
|
95
|
+
try {
|
|
96
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
97
|
+
var item = _step.value;
|
|
98
|
+
_ApprovalUserDetail["default"].validateJSON(item);
|
|
99
|
+
}
|
|
100
|
+
} catch (err) {
|
|
101
|
+
_iterator.e(err);
|
|
102
|
+
} finally {
|
|
103
|
+
_iterator.f();
|
|
104
|
+
}
|
|
105
|
+
;
|
|
106
|
+
}
|
|
107
|
+
return true;
|
|
108
|
+
}
|
|
109
|
+
}]);
|
|
110
|
+
}();
|
|
111
|
+
/**
|
|
112
|
+
* @member {module:model/ApprovalTransactionResult} result
|
|
113
|
+
*/
|
|
114
|
+
RoleDetail.prototype['result'] = undefined;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* The threshold for the transaction approval.
|
|
118
|
+
* @member {Number} threshold
|
|
119
|
+
*/
|
|
120
|
+
RoleDetail.prototype['threshold'] = undefined;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* @member {Array.<module:model/ApprovalUserDetail>} user_details
|
|
124
|
+
*/
|
|
125
|
+
RoleDetail.prototype['user_details'] = undefined;
|
|
126
|
+
var _default = exports["default"] = RoleDetail;
|
|
@@ -0,0 +1,101 @@
|
|
|
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 _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
|
+
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); } /**
|
|
15
|
+
* Cobo Wallet as a Service 2.0
|
|
16
|
+
*
|
|
17
|
+
* Contact: help@cobo.com
|
|
18
|
+
*
|
|
19
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
20
|
+
* https://openapi-generator.tech
|
|
21
|
+
* Do not edit the class manually.
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
/**
|
|
25
|
+
* The SOLBase model module.
|
|
26
|
+
* @module model/SOLBase
|
|
27
|
+
*/
|
|
28
|
+
var SOLBase = /*#__PURE__*/function () {
|
|
29
|
+
/**
|
|
30
|
+
* Constructs a new <code>SOLBase</code>.
|
|
31
|
+
* The transaction base fee based on the SOL fee model.
|
|
32
|
+
* @alias module:model/SOLBase
|
|
33
|
+
*/
|
|
34
|
+
function SOLBase() {
|
|
35
|
+
_classCallCheck(this, SOLBase);
|
|
36
|
+
SOLBase.initialize(this);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Initializes the fields of this object.
|
|
41
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
42
|
+
* Only for internal use.
|
|
43
|
+
*/
|
|
44
|
+
return _createClass(SOLBase, null, [{
|
|
45
|
+
key: "initialize",
|
|
46
|
+
value: function initialize(obj) {}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Constructs a <code>SOLBase</code> from a plain JavaScript object, optionally creating a new instance.
|
|
50
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
51
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
52
|
+
* @param {module:model/SOLBase} obj Optional instance to populate.
|
|
53
|
+
* @return {module:model/SOLBase} The populated <code>SOLBase</code> instance.
|
|
54
|
+
*/
|
|
55
|
+
}, {
|
|
56
|
+
key: "constructFromObject",
|
|
57
|
+
value: function constructFromObject(data, obj) {
|
|
58
|
+
if (data) {
|
|
59
|
+
obj = obj || new SOLBase();
|
|
60
|
+
if (data.hasOwnProperty('base_fee')) {
|
|
61
|
+
obj['base_fee'] = _ApiClient["default"].convertToType(data['base_fee'], 'String');
|
|
62
|
+
}
|
|
63
|
+
if (data.hasOwnProperty('rent_amount')) {
|
|
64
|
+
obj['rent_amount'] = _ApiClient["default"].convertToType(data['rent_amount'], 'String');
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
return obj;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Validates the JSON data with respect to <code>SOLBase</code>.
|
|
72
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
73
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>SOLBase</code>.
|
|
74
|
+
*/
|
|
75
|
+
}, {
|
|
76
|
+
key: "validateJSON",
|
|
77
|
+
value: function validateJSON(data) {
|
|
78
|
+
// ensure the json data is a string
|
|
79
|
+
if (data['base_fee'] && !(typeof data['base_fee'] === 'string' || data['base_fee'] instanceof String)) {
|
|
80
|
+
throw new Error("Expected the field `base_fee` to be a primitive type in the JSON string but got " + data['base_fee']);
|
|
81
|
+
}
|
|
82
|
+
// ensure the json data is a string
|
|
83
|
+
if (data['rent_amount'] && !(typeof data['rent_amount'] === 'string' || data['rent_amount'] instanceof String)) {
|
|
84
|
+
throw new Error("Expected the field `rent_amount` to be a primitive type in the JSON string but got " + data['rent_amount']);
|
|
85
|
+
}
|
|
86
|
+
return true;
|
|
87
|
+
}
|
|
88
|
+
}]);
|
|
89
|
+
}();
|
|
90
|
+
/**
|
|
91
|
+
* A fixed fee charged per signature. The default is 5,000 lamports per signature.
|
|
92
|
+
* @member {String} base_fee
|
|
93
|
+
*/
|
|
94
|
+
SOLBase.prototype['base_fee'] = undefined;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* The rent fee charged by the network to store non–rent-exempt accounts on-chain. It is deducted periodically until the account maintains the minimum balance required for rent exemption.
|
|
98
|
+
* @member {String} rent_amount
|
|
99
|
+
*/
|
|
100
|
+
SOLBase.prototype['rent_amount'] = undefined;
|
|
101
|
+
var _default = exports["default"] = SOLBase;
|
|
@@ -0,0 +1,100 @@
|
|
|
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 _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
|
+
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); } /**
|
|
15
|
+
* Cobo Wallet as a Service 2.0
|
|
16
|
+
*
|
|
17
|
+
* Contact: help@cobo.com
|
|
18
|
+
*
|
|
19
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
20
|
+
* https://openapi-generator.tech
|
|
21
|
+
* Do not edit the class manually.
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
/**
|
|
25
|
+
* The SOLComputeUnit model module.
|
|
26
|
+
* @module model/SOLComputeUnit
|
|
27
|
+
*/
|
|
28
|
+
var SOLComputeUnit = /*#__PURE__*/function () {
|
|
29
|
+
/**
|
|
30
|
+
* Constructs a new <code>SOLComputeUnit</code>.
|
|
31
|
+
* @alias module:model/SOLComputeUnit
|
|
32
|
+
*/
|
|
33
|
+
function SOLComputeUnit() {
|
|
34
|
+
_classCallCheck(this, SOLComputeUnit);
|
|
35
|
+
SOLComputeUnit.initialize(this);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Initializes the fields of this object.
|
|
40
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
41
|
+
* Only for internal use.
|
|
42
|
+
*/
|
|
43
|
+
return _createClass(SOLComputeUnit, null, [{
|
|
44
|
+
key: "initialize",
|
|
45
|
+
value: function initialize(obj) {}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Constructs a <code>SOLComputeUnit</code> from a plain JavaScript object, optionally creating a new instance.
|
|
49
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
50
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
51
|
+
* @param {module:model/SOLComputeUnit} obj Optional instance to populate.
|
|
52
|
+
* @return {module:model/SOLComputeUnit} The populated <code>SOLComputeUnit</code> instance.
|
|
53
|
+
*/
|
|
54
|
+
}, {
|
|
55
|
+
key: "constructFromObject",
|
|
56
|
+
value: function constructFromObject(data, obj) {
|
|
57
|
+
if (data) {
|
|
58
|
+
obj = obj || new SOLComputeUnit();
|
|
59
|
+
if (data.hasOwnProperty('compute_unit_price')) {
|
|
60
|
+
obj['compute_unit_price'] = _ApiClient["default"].convertToType(data['compute_unit_price'], 'String');
|
|
61
|
+
}
|
|
62
|
+
if (data.hasOwnProperty('compute_unit_limit')) {
|
|
63
|
+
obj['compute_unit_limit'] = _ApiClient["default"].convertToType(data['compute_unit_limit'], 'String');
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return obj;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Validates the JSON data with respect to <code>SOLComputeUnit</code>.
|
|
71
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
72
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>SOLComputeUnit</code>.
|
|
73
|
+
*/
|
|
74
|
+
}, {
|
|
75
|
+
key: "validateJSON",
|
|
76
|
+
value: function validateJSON(data) {
|
|
77
|
+
// ensure the json data is a string
|
|
78
|
+
if (data['compute_unit_price'] && !(typeof data['compute_unit_price'] === 'string' || data['compute_unit_price'] instanceof String)) {
|
|
79
|
+
throw new Error("Expected the field `compute_unit_price` to be a primitive type in the JSON string but got " + data['compute_unit_price']);
|
|
80
|
+
}
|
|
81
|
+
// ensure the json data is a string
|
|
82
|
+
if (data['compute_unit_limit'] && !(typeof data['compute_unit_limit'] === 'string' || data['compute_unit_limit'] instanceof String)) {
|
|
83
|
+
throw new Error("Expected the field `compute_unit_limit` to be a primitive type in the JSON string but got " + data['compute_unit_limit']);
|
|
84
|
+
}
|
|
85
|
+
return true;
|
|
86
|
+
}
|
|
87
|
+
}]);
|
|
88
|
+
}();
|
|
89
|
+
/**
|
|
90
|
+
* The price paid per compute unit. This value determines the priority fee for the transaction, allowing you to increase inclusion probability in congested conditions.
|
|
91
|
+
* @member {String} compute_unit_price
|
|
92
|
+
*/
|
|
93
|
+
SOLComputeUnit.prototype['compute_unit_price'] = undefined;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* The maximum number of compute units your transaction is allowed to consume. It sets an upper bound on computational resource usage to prevent overload.
|
|
97
|
+
* @member {String} compute_unit_limit
|
|
98
|
+
*/
|
|
99
|
+
SOLComputeUnit.prototype['compute_unit_limit'] = undefined;
|
|
100
|
+
var _default = exports["default"] = SOLComputeUnit;
|
package/dist/model/Settlement.js
CHANGED
|
@@ -180,19 +180,19 @@ Settlement.prototype['status'] = undefined;
|
|
|
180
180
|
Settlement.prototype['settlements'] = undefined;
|
|
181
181
|
|
|
182
182
|
/**
|
|
183
|
-
* The
|
|
183
|
+
* The creation time of the settlement request, represented as a UNIX timestamp in seconds.
|
|
184
184
|
* @member {Number} created_timestamp
|
|
185
185
|
*/
|
|
186
186
|
Settlement.prototype['created_timestamp'] = undefined;
|
|
187
187
|
|
|
188
188
|
/**
|
|
189
|
-
* The
|
|
189
|
+
* The last update time of the settlement request, represented as a UNIX timestamp in seconds.
|
|
190
190
|
* @member {Number} updated_timestamp
|
|
191
191
|
*/
|
|
192
192
|
Settlement.prototype['updated_timestamp'] = undefined;
|
|
193
193
|
|
|
194
194
|
/**
|
|
195
|
-
*
|
|
195
|
+
* 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.
|
|
196
196
|
* @member {String} initiator
|
|
197
197
|
*/
|
|
198
198
|
Settlement.prototype['initiator'] = undefined;
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _AcquiringType = _interopRequireDefault(require("./AcquiringType"));
|
|
8
9
|
var _BankAccount = _interopRequireDefault(require("./BankAccount"));
|
|
9
10
|
var _PaymentTransaction = _interopRequireDefault(require("./PaymentTransaction"));
|
|
10
11
|
var _PayoutChannel = _interopRequireDefault(require("./PayoutChannel"));
|
|
@@ -102,6 +103,9 @@ var SettlementDetail = /*#__PURE__*/function () {
|
|
|
102
103
|
if (data.hasOwnProperty('payout_channel')) {
|
|
103
104
|
obj['payout_channel'] = _PayoutChannel["default"].constructFromObject(data['payout_channel']);
|
|
104
105
|
}
|
|
106
|
+
if (data.hasOwnProperty('acquiring_type')) {
|
|
107
|
+
obj['acquiring_type'] = _AcquiringType["default"].constructFromObject(data['acquiring_type']);
|
|
108
|
+
}
|
|
105
109
|
}
|
|
106
110
|
return obj;
|
|
107
111
|
}
|
|
@@ -193,19 +197,19 @@ SettlementDetail.prototype['token_id'] = undefined;
|
|
|
193
197
|
SettlementDetail.prototype['chain_id'] = undefined;
|
|
194
198
|
|
|
195
199
|
/**
|
|
196
|
-
* The
|
|
200
|
+
* The ID of the merchant associated with this settlement.
|
|
197
201
|
* @member {String} merchant_id
|
|
198
202
|
*/
|
|
199
203
|
SettlementDetail.prototype['merchant_id'] = undefined;
|
|
200
204
|
|
|
201
205
|
/**
|
|
202
|
-
* The settlement amount.
|
|
206
|
+
* The settlement amount. - If `payout_channel` is set to `Crypto`, this represents the settlement amount in the specified cryptocurrency. - If `payout_channel` is set to `OffRamp`, this represents the settlement amount in the specified fiat currency.
|
|
203
207
|
* @member {String} amount
|
|
204
208
|
*/
|
|
205
209
|
SettlementDetail.prototype['amount'] = undefined;
|
|
206
210
|
|
|
207
211
|
/**
|
|
208
|
-
* The settled amount of this settlement detail. - If `
|
|
212
|
+
* The settled amount of this settlement detail. - If `payout_channel` is set to `Crypto`, this represents the actual settled amount in the specified cryptocurrency. - If `payout_channel` is set to `OffRamp`, this represents the actual settled amount in the specified fiat currency.
|
|
209
213
|
* @member {String} settled_amount
|
|
210
214
|
*/
|
|
211
215
|
SettlementDetail.prototype['settled_amount'] = undefined;
|
|
@@ -227,19 +231,19 @@ SettlementDetail.prototype['bank_account'] = undefined;
|
|
|
227
231
|
SettlementDetail.prototype['transactions'] = undefined;
|
|
228
232
|
|
|
229
233
|
/**
|
|
230
|
-
* The
|
|
234
|
+
* The creation time of the settlement, represented as a UNIX timestamp in seconds.
|
|
231
235
|
* @member {Number} created_timestamp
|
|
232
236
|
*/
|
|
233
237
|
SettlementDetail.prototype['created_timestamp'] = undefined;
|
|
234
238
|
|
|
235
239
|
/**
|
|
236
|
-
* The
|
|
240
|
+
* The last update time of the settlement, represented as a UNIX timestamp in seconds.
|
|
237
241
|
* @member {Number} updated_timestamp
|
|
238
242
|
*/
|
|
239
243
|
SettlementDetail.prototype['updated_timestamp'] = undefined;
|
|
240
244
|
|
|
241
245
|
/**
|
|
242
|
-
*
|
|
246
|
+
* The ID of the crypto address used for crypto withdrawal.
|
|
243
247
|
* @member {String} crypto_address_id
|
|
244
248
|
*/
|
|
245
249
|
SettlementDetail.prototype['crypto_address_id'] = undefined;
|
|
@@ -248,4 +252,9 @@ SettlementDetail.prototype['crypto_address_id'] = undefined;
|
|
|
248
252
|
* @member {module:model/PayoutChannel} payout_channel
|
|
249
253
|
*/
|
|
250
254
|
SettlementDetail.prototype['payout_channel'] = undefined;
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* @member {module:model/AcquiringType} acquiring_type
|
|
258
|
+
*/
|
|
259
|
+
SettlementDetail.prototype['acquiring_type'] = undefined;
|
|
251
260
|
var _default = exports["default"] = SettlementDetail;
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _AcquiringType = _interopRequireDefault(require("./AcquiringType"));
|
|
8
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
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); }
|
|
10
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; } } }; }
|
|
@@ -83,6 +84,9 @@ var SettlementInfo = /*#__PURE__*/function () {
|
|
|
83
84
|
if (data.hasOwnProperty('settled_amount')) {
|
|
84
85
|
obj['settled_amount'] = _ApiClient["default"].convertToType(data['settled_amount'], 'String');
|
|
85
86
|
}
|
|
87
|
+
if (data.hasOwnProperty('acquiring_type')) {
|
|
88
|
+
obj['acquiring_type'] = _AcquiringType["default"].constructFromObject(data['acquiring_type']);
|
|
89
|
+
}
|
|
86
90
|
if (data.hasOwnProperty('created_timestamp')) {
|
|
87
91
|
obj['created_timestamp'] = _ApiClient["default"].convertToType(data['created_timestamp'], 'Number');
|
|
88
92
|
}
|
|
@@ -193,13 +197,18 @@ SettlementInfo.prototype['pending_currency_balance'] = undefined;
|
|
|
193
197
|
SettlementInfo.prototype['settled_amount'] = undefined;
|
|
194
198
|
|
|
195
199
|
/**
|
|
196
|
-
*
|
|
200
|
+
* @member {module:model/AcquiringType} acquiring_type
|
|
201
|
+
*/
|
|
202
|
+
SettlementInfo.prototype['acquiring_type'] = undefined;
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* The creation time of the settlement, represented as a UNIX timestamp in seconds.
|
|
197
206
|
* @member {Number} created_timestamp
|
|
198
207
|
*/
|
|
199
208
|
SettlementInfo.prototype['created_timestamp'] = undefined;
|
|
200
209
|
|
|
201
210
|
/**
|
|
202
|
-
* The
|
|
211
|
+
* The last update time of the settlement, represented as a UNIX timestamp in seconds.
|
|
203
212
|
* @member {Number} updated_timestamp
|
|
204
213
|
*/
|
|
205
214
|
SettlementInfo.prototype['updated_timestamp'] = undefined;
|