@cobo/cobo-waas2 1.34.0 → 1.35.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 +4 -4
- package/dist/ApiClient.js +1 -1
- package/dist/api/AddressBooksApi.js +41 -0
- package/dist/api/AppWorkflowsApi.js +42 -0
- package/dist/api/AutoSweepApi.js +41 -0
- package/dist/api/ComplianceApi.js +107 -0
- package/dist/api/DevelopersApi.js +8 -0
- package/dist/api/DevelopersWebhooksApi.js +64 -0
- package/dist/api/FeeStationApi.js +45 -0
- package/dist/api/GraphQLApi.js +22 -0
- package/dist/api/OAuthApi.js +30 -0
- package/dist/api/OrganizationsApi.js +6 -0
- package/dist/api/PaymentApi.js +559 -91
- package/dist/api/PrimeBrokerApi.js +26 -0
- package/dist/api/StakingsApi.js +167 -0
- package/dist/api/SwapsApi.js +26 -0
- package/dist/api/TokenizationApi.js +161 -0
- package/dist/api/TransactionsApi.js +144 -0
- package/dist/api/TravelRuleApi.js +40 -0
- package/dist/api/WalletsApi.js +165 -0
- package/dist/api/WalletsExchangeWalletApi.js +10 -0
- package/dist/api/WalletsMPCWalletsApi.js +130 -0
- package/dist/api/WalletsSmartContractWalletsApi.js +22 -0
- package/dist/index.js +14 -7
- package/dist/model/Account.js +4 -4
- package/dist/model/Activity.js +14 -8
- package/dist/model/ActivityExtra.js +5 -0
- package/dist/model/AddressBalance.js +3 -8
- package/dist/model/AddressBook.js +10 -7
- package/dist/model/AddressInfo.js +8 -5
- package/dist/model/AddressTransferDestinationAccountOutput.js +2 -2
- package/dist/model/AddressTransferDestinationUtxoOutputsInner.js +2 -2
- package/dist/model/AddressesEventData.js +1 -1
- package/dist/model/AddressesEventDataAllOfAddresses.js +9 -6
- package/dist/model/AllocationItem.js +5 -5
- package/dist/model/AllocationParam.js +5 -5
- package/dist/model/AmountDetailsInner.js +1 -1
- package/dist/model/ApiLogDetails.js +8 -8
- package/dist/model/ApiLogSummary.js +2 -2
- package/dist/model/AppWorkflow.js +19 -22
- package/dist/model/AppWorkflowField.js +2 -2
- package/dist/model/AppWorkflowPolicy.js +2 -7
- package/dist/model/ApprovalRequest.js +18 -21
- package/dist/model/ApprovalRequestDetail.js +2 -7
- package/dist/model/ApprovalUser.js +1 -1
- package/dist/model/AssetBalance.js +3 -8
- package/dist/model/AssetInfo.js +1 -1
- package/dist/model/AutoSweepTask.js +15 -9
- package/dist/model/BTCBIP137MessageSignDestination.js +1 -1
- package/dist/model/BTCBIP322MessageSignDestination.js +1 -1
- package/dist/model/BabylonAirdropPop.js +6 -6
- package/dist/model/BabylonCreateStakingExpansion.js +3 -8
- package/dist/model/BabylonStakeExtra.js +7 -4
- package/dist/model/BabylonStakingExtra.js +1 -1
- package/dist/model/BabylonValidator.js +7 -4
- package/dist/model/Balance.js +2 -2
- package/dist/model/BalanceUpdateInfo.js +5 -10
- package/dist/model/BalanceUpdateInfoEventData.js +6 -11
- package/dist/model/BankAccount.js +1 -1
- package/dist/model/BaseContractCallSource.js +2 -2
- package/dist/model/BaseStakeSource.js +2 -2
- package/dist/model/BatchAllocation.js +2 -2
- package/dist/model/BatchAllocationDetail.js +2 -2
- package/dist/model/BatchCheckUtxoRequest.js +17 -20
- package/dist/model/BatchUTXOParam.js +7 -4
- package/dist/model/BridgingFee.js +1 -1
- package/dist/model/BroadcastSignedTransactions201ResponseInner.js +2 -2
- package/dist/model/BroadcastSignedTransactionsRequest.js +6 -3
- package/dist/model/CallbackMessage.js +7 -12
- package/dist/model/ChainInfo.js +14 -1
- package/dist/model/ChainsEventData.js +22 -22
- package/dist/model/ChangeGuardPubkey200Response.js +1 -1
- package/dist/model/CheckAddressChainsValidity200ResponseInner.js +1 -1
- package/dist/model/CheckAddressesValidity200ResponseInner.js +1 -1
- package/dist/model/CoboSafeDelegate.js +5 -0
- package/dist/model/CommissionFee.js +1 -1
- package/dist/model/ComplianceDispositionUpdateEventData.js +2 -2
- package/dist/model/ComplianceKyaScreeningsUpdateEventData.js +4 -4
- package/dist/model/ComplianceKytScreeningsUpdateEventData.js +2 -2
- package/dist/model/ContractCallDestination.js +5 -0
- package/dist/model/ContractCallParams.js +12 -19
- package/dist/model/ContractCallSource.js +5 -0
- package/dist/model/CoreStakeExtra.js +2 -2
- package/dist/model/CoreStakingExtra.js +4 -4
- package/dist/model/CosmosAdr36MessageSignDestination.js +1 -1
- package/dist/model/CosmosContractCallDestination.js +16 -19
- package/dist/model/CosmosContractCallMessage.js +2 -2
- package/dist/model/Counterparty.js +1 -1
- package/dist/model/CounterpartyDetail.js +17 -20
- package/dist/model/CounterpartyWalletAddressDetail.js +5 -5
- package/dist/model/CreateAddressBookParam.js +1 -1
- package/dist/model/CreateAddressBooksParam.js +16 -19
- package/dist/model/CreateAddressRequest.js +7 -4
- package/dist/model/CreateApprovalRequest201Response.js +1 -1
- package/dist/model/CreateAutoSweepTask.js +2 -2
- package/dist/model/CreateBatchAllocationRequest.js +17 -20
- package/dist/model/CreateBulkSendRequest.js +17 -20
- package/dist/model/CreateBulkSendRequestPayoutParamsInner.js +3 -3
- package/dist/model/CreateClaimActivity.js +1 -1
- package/dist/model/CreateClaimActivityRequest.js +1 -1
- package/dist/model/CreateCounterpartyEntry201Response.js +17 -20
- package/dist/model/CreateCounterpartyEntryRequest.js +1 -1
- package/dist/model/CreateCounterpartyRequest.js +17 -20
- package/dist/model/CreateCryptoAddressRequest.js +2 -2
- package/dist/model/CreateCustodialWalletParams.js +1 -1
- package/dist/model/CreateDestinationBankAccount.js +8 -8
- package/dist/model/CreateDestinationEntry201Response.js +1 -1
- package/dist/model/CreateDestinationEntryRequest.js +1 -1
- package/dist/model/CreateDestinationRequest.js +1 -1
- package/dist/model/CreateExchangeWalletParams.js +3 -3
- package/dist/model/CreateKeyShareHolderGroupRequest.js +16 -19
- package/dist/model/CreateKyaScreeningsBody.js +16 -19
- package/dist/model/CreateMerchantRequest.js +1 -1
- package/dist/model/CreateMpcProjectRequest.js +1 -1
- package/dist/model/CreateMpcVaultRequest.js +1 -1
- package/dist/model/CreateMpcWalletParams.js +2 -2
- package/dist/model/CreateOrderLinkRequest.js +2 -7
- package/dist/model/CreatePaymentOrderRequest.js +4 -4
- package/dist/model/CreatePayoutRequest.js +19 -27
- package/dist/model/CreatePrimeBrokerAddress201Response.js +1 -1
- package/dist/model/CreateRefundLinkRequest.js +2 -7
- package/dist/model/CreateRefundRequest.js +3 -3
- package/dist/model/CreateReportRequest.js +6 -3
- package/dist/model/CreateSafeWalletParams.js +8 -5
- package/dist/model/CreateSettlement.js +7 -4
- package/dist/model/CreateSettlementRequestRequest.js +17 -20
- package/dist/model/CreateSmartContractWalletParams.js +5 -0
- package/dist/model/CreateStakeActivity.js +3 -8
- package/dist/model/CreateStakeActivity201Response.js +1 -1
- package/dist/model/CreateStakeActivityExtra.js +5 -0
- package/dist/model/CreateStakeActivityRequest.js +3 -8
- package/dist/model/CreateSwapActivityRequest.js +2 -2
- package/dist/model/CreateSweepToAddress.js +2 -2
- package/dist/model/CreateTokenListingRequest201Response.js +1 -1
- package/dist/model/CreateTokenListingRequestRequest.js +2 -2
- package/dist/model/CreateTopUpAddresses.js +1 -1
- package/dist/model/CreateTransferTransaction201Response.js +2 -2
- package/dist/model/CreateTssRequestRequest.js +1 -1
- package/dist/model/CreateUnstakeActivity.js +1 -1
- package/dist/model/CreateUnstakeActivityExtra.js +5 -0
- package/dist/model/CreateUnstakeActivityRequest.js +1 -1
- package/dist/model/CreateWalletAddress.js +2 -2
- package/dist/model/CreateWalletParams.js +5 -0
- package/dist/model/CreateWebhookEndpointRequest.js +1 -1
- package/dist/model/CreateWithdrawActivity.js +3 -8
- package/dist/model/CreateWithdrawActivityRequest.js +3 -8
- package/dist/model/CreatedWalletInfo.js +5 -0
- package/dist/model/CryptoAddress.js +3 -3
- package/dist/model/CustodialTransferDestination.js +2 -2
- package/dist/model/CustodialTransferSource.js +1 -1
- package/dist/model/CustodialWalletInfo.js +3 -3
- package/dist/model/CustodialWeb3ContractCallSource.js +2 -2
- package/dist/model/CustodialWeb3MessageSignSource.js +2 -2
- package/dist/model/CustodialWeb3TransferSource.js +1 -1
- package/dist/model/DeleteCounterpartyById200Response.js +1 -1
- package/dist/model/DeleteCounterpartyEntry200Response.js +1 -1
- package/dist/model/DeleteCryptoAddress201Response.js +1 -1
- package/dist/model/DeleteDestinationById200Response.js +1 -1
- package/dist/model/DeleteDestinationEntry200Response.js +1 -1
- package/dist/model/DeleteGuardPubkey201Response.js +1 -1
- package/dist/model/Destination.js +1 -1
- package/dist/model/DestinationBankAccount.js +9 -9
- package/dist/model/DestinationBankAccountDetail.js +11 -11
- package/dist/model/DestinationDetail.js +2 -2
- package/dist/model/DestinationWalletAddressDetail.js +5 -5
- package/dist/model/DispositionEventData.js +1 -1
- package/dist/model/DispositionQueryResponse.js +1 -1
- package/dist/model/DispositionResponse.js +1 -1
- package/dist/model/EigenlayerValidator.js +3 -3
- package/dist/model/ErrorResponse.js +2 -2
- package/dist/model/EstimateContractCallFeeParams.js +3 -8
- package/dist/model/EstimateFeeParams.js +5 -0
- package/dist/model/EstimateStakeFee.js +3 -8
- package/dist/model/EstimateTransferFeeParams.js +3 -8
- package/dist/model/EstimateUnstakeFee.js +1 -1
- package/dist/model/EstimateWithdrawFee.js +3 -8
- package/dist/model/EstimatedEvmEip1559Fee.js +3 -8
- package/dist/model/EstimatedEvmEip1559FeeSlow.js +3 -3
- package/dist/model/EstimatedEvmLegacyFee.js +3 -8
- package/dist/model/EstimatedEvmLegacyFeeSlow.js +2 -2
- package/dist/model/EstimatedFILFee.js +3 -8
- package/dist/model/EstimatedFILFeeSlow.js +4 -4
- package/dist/model/EstimatedFee.js +5 -0
- package/dist/model/EstimatedFixedFee.js +2 -2
- package/dist/model/EstimatedSOLFee.js +3 -8
- package/dist/model/EstimatedSOLFeeSlow.js +3 -3
- package/dist/model/EstimatedUtxoFee.js +3 -8
- package/dist/model/EstimatedUtxoFeeSlow.js +2 -2
- package/dist/model/EthStakeEstimatedFee.js +6 -3
- package/dist/model/EthStakeExtra.js +1 -1
- package/dist/model/EthStakingActivityDetailExtra.js +6 -3
- package/dist/model/EthStakingExtra.js +1 -1
- package/dist/model/EvmContractCallDestination.js +2 -2
- package/dist/model/EvmEIP191MessageSignDestination.js +1 -1
- package/dist/model/EvmEip1559FeeRate.js +3 -8
- package/dist/model/EvmLegacyFeeRate.js +3 -8
- package/dist/model/ExchangePermissionTokenRequest.js +1 -1
- package/dist/model/ExchangeRate.js +3 -3
- package/dist/model/ExchangeTransferDestination.js +3 -3
- package/dist/model/ExchangeTransferSource.js +2 -2
- package/dist/model/ExchangeWalletInfo.js +4 -4
- package/dist/model/ExtendedTokenInfo.js +2 -2
- package/dist/model/FeeRate.js +5 -0
- package/dist/model/FeeStationCheckFeeStationUsage.js +4 -4
- package/dist/model/FeeStationCheckFeeStationUsageResponse.js +4 -4
- package/dist/model/FeeStationDestination.js +1 -1
- package/dist/model/FeeStationFiatTransaction.js +10 -7
- package/dist/model/FeeStationSponsorTransactionDescription.js +2 -2
- package/dist/model/FeeStationTransfer.js +1 -1
- package/dist/model/FixedFeeRate.js +1 -1
- package/dist/model/ForcedSweep.js +2 -2
- package/dist/model/ForcedSweepRequest.js +4 -4
- package/dist/model/GetApiKeyInfo200Response.js +9 -6
- package/dist/model/GetExchangeRate200Response.js +3 -3
- package/dist/model/GetMaxTransferableValueWithFeeModelRequest.js +4 -9
- package/dist/model/GetStakingEstimationFee201Response.js +5 -0
- package/dist/model/GetStakingEstimationFeeRequest.js +5 -0
- package/dist/model/GetToken4XXResponse.js +2 -2
- package/dist/model/GetTransactionLimitation200Response.js +6 -3
- package/dist/model/GraphQLError.js +6 -3
- package/dist/model/GraphQLRequest.js +1 -1
- package/dist/model/IntermediaryBankInfo.js +2 -2
- package/dist/model/IsolateDisposition.js +9 -6
- package/dist/model/KyaRiskDetail.js +2 -2
- package/dist/model/KyaScreeningRequest.js +3 -3
- package/dist/model/KyaScreeningResult.js +5 -5
- package/dist/model/KyaScreeningsEventData.js +3 -3
- package/dist/model/KytScreeningsEventData.js +1 -1
- package/dist/model/KytScreeningsTransaction.js +1 -1
- package/dist/model/Link.js +2 -2
- package/dist/model/ListCallbackMessages200Response.js +17 -25
- package/dist/model/ListKyaScreenings200Response.js +17 -25
- package/dist/model/{UpdateBankAccountByIdRequest.js → ListPayerTransactions200Response.js} +55 -40
- package/dist/model/ListSupportedCountries200ResponseInner.js +3 -3
- package/dist/model/ListTokenBalancesForFeeStation200ResponseDataInner.js +3 -8
- package/dist/model/ListTokenizationBlocklistAddresses200Response.js +17 -25
- package/dist/model/ListTopUpPayers200ResponseDataInner.js +17 -4
- package/dist/model/LockUtxosRequest.js +16 -19
- package/dist/model/LockUtxosRequestUtxosInner.js +2 -2
- package/dist/model/MPCDelegate.js +2 -2
- package/dist/model/MPCVaultEventData.js +1 -1
- package/dist/model/MPCWalletInfo.js +4 -4
- package/dist/model/Merchant.js +3 -3
- package/dist/model/MerchantBalance.js +2 -2
- package/dist/model/MessageSignDestination.js +5 -0
- package/dist/model/MessageSignParams.js +12 -19
- package/dist/model/MessageSignSource.js +5 -0
- package/dist/model/MpcContractCallSource.js +2 -2
- package/dist/model/MpcMessageSignSource.js +2 -2
- package/dist/model/MpcSigningGroup.js +7 -4
- package/dist/model/MpcStakeSource.js +2 -2
- package/dist/model/MpcTransferSource.js +1 -1
- package/dist/model/Order.js +8 -8
- package/dist/model/OrderLinkBusinessInfo.js +13 -10
- package/dist/model/OrderLinkBusinessInfoCustomExchangeRatesInner.js +2 -2
- package/dist/model/OrderLinkBusinessInfoPayableAmountsInner.js +2 -2
- package/dist/model/OrgInfo.js +1 -1
- package/dist/model/OriginalMainGroupHandling.js +61 -0
- package/dist/model/OtcFee.js +1 -1
- package/dist/model/Pagination.js +2 -2
- package/dist/model/PayerAccount.js +3 -3
- package/dist/model/PaymentAddressUpdateEventData.js +6 -6
- package/dist/model/PaymentAllocationAmount.js +2 -2
- package/dist/model/PaymentBulkSend.js +2 -2
- package/dist/model/PaymentBulkSendEvent.js +3 -3
- package/dist/model/PaymentBulkSendItem.js +4 -4
- package/dist/model/PaymentEstimateFee.js +2 -2
- package/dist/model/PaymentEstimateFeeRequest.js +16 -19
- package/dist/model/PaymentEstimatedFee.js +2 -2
- package/dist/model/PaymentOrderEventData.js +9 -9
- package/dist/model/PaymentPayout.js +2 -2
- package/dist/model/PaymentPayoutDetail.js +2 -2
- package/dist/model/PaymentPayoutEvent.js +3 -3
- package/dist/model/PaymentPayoutItem.js +2 -2
- package/dist/model/PaymentPayoutParam.js +2 -2
- package/dist/model/PaymentRefundEventData.js +6 -6
- package/dist/model/PaymentSettlementEvent.js +19 -22
- package/dist/model/PaymentTransaction.js +4 -4
- package/dist/model/PaymentTransactionEventData.js +25 -26
- package/dist/model/PaymentWalletBalance.js +2 -2
- package/dist/model/PolicyActionContent.js +13 -7
- package/dist/model/PolicyCondition.js +2 -2
- package/dist/model/PoolDetails.js +21 -24
- package/dist/model/PoolDetailsAllOfValidatorsInfo.js +5 -0
- package/dist/model/PoolSummary.js +5 -5
- package/dist/model/PreCheck.js +6 -3
- package/dist/model/PspBalance.js +1 -1
- package/dist/model/QueryGuardPubkey200ResponseAddressesInner.js +2 -2
- package/dist/model/RefreshPermissionTokenRequest.js +1 -1
- package/dist/model/Refund.js +5 -5
- package/dist/model/RefundDisposition.js +9 -6
- package/dist/model/RefundLinkBusinessInfo.js +1 -1
- package/dist/model/Report.js +2 -2
- package/dist/model/RequestApproval.js +20 -23
- package/dist/model/RevokeApprovalRequest201Response.js +1 -1
- package/dist/model/RevokeApprovalRequestRequest.js +1 -1
- package/dist/model/RoleScopes.js +3 -8
- package/dist/model/SafeContractCallSource.js +4 -9
- package/dist/model/SafeTransferSource.js +4 -9
- package/dist/model/SafeTxExtraData.js +8 -8
- package/dist/model/SafeWallet.js +9 -6
- package/dist/model/SafeWalletDelegates.js +5 -0
- package/dist/model/SafeWalletDelegatesTransfer.js +1 -1
- package/dist/model/Scopes.js +30 -15
- package/dist/model/SelfCustodyWallet.js +3 -3
- package/dist/model/Settlement.js +18 -21
- package/dist/model/SettlementDetail.js +6 -3
- package/dist/model/SettlementInfo.js +1 -1
- package/dist/model/SmartContractInitiator.js +2 -2
- package/dist/model/SmartContractWalletInfo.js +5 -0
- package/dist/model/SolContractCallAccount.js +1 -1
- package/dist/model/SolContractCallAddressLookupTableAccount.js +1 -1
- package/dist/model/SolContractCallDestination.js +18 -21
- package/dist/model/SolContractCallInstruction.js +18 -21
- package/dist/model/SourceGroup.js +7 -4
- package/dist/model/StakingSource.js +5 -0
- package/dist/model/Stakings.js +22 -25
- package/dist/model/StakingsExtra.js +5 -0
- package/dist/model/StellarContractCallContractParam.js +5 -0
- package/dist/model/StellarContractCallDestination.js +2 -7
- package/dist/model/StellarContractCallTrustLineParam.js +1 -1
- package/dist/model/SubWalletAssetBalance.js +3 -8
- package/dist/model/SubmitKytResponse.js +1 -1
- package/dist/model/SubmitKytScreeningsDecisionsBody.js +1 -1
- package/dist/model/SubmitKytScreeningsReviewBody.js +1 -1
- package/dist/model/SupportedToken.js +6 -6
- package/dist/model/SuspendedTokenEventData.js +2 -2
- package/dist/model/SwapActivityApprovers.js +1 -1
- package/dist/model/SwapActivityTimeline.js +2 -2
- package/dist/model/SwapEstimateFee.js +2 -2
- package/dist/model/SwapQuote.js +7 -7
- package/dist/model/SwapReceivingTransaction.js +1 -1
- package/dist/model/SwapToken.js +3 -3
- package/dist/model/SweepToAddress.js +2 -2
- package/dist/model/TSSEventData.js +5 -0
- package/dist/model/TSSKeyGenRequest.js +6 -3
- package/dist/model/TSSKeyReshareRequest.js +12 -6
- package/dist/model/TSSKeySignRequest.js +24 -12
- package/dist/model/TSSRequestWebhookEventData.js +1 -1
- package/dist/model/TokenBalance.js +3 -8
- package/dist/model/TokenInfo.js +2 -2
- package/dist/model/TokenListing.js +3 -3
- package/dist/model/TokenListingEventData.js +4 -4
- package/dist/model/TokenizationActivityInfo.js +5 -10
- package/dist/model/TokenizationAddressPermission.js +1 -1
- package/dist/model/TokenizationAllowlistActivationParams.js +2 -7
- package/dist/model/TokenizationAllowlistActivationRequest.js +4 -14
- package/dist/model/TokenizationAllowlistAddressNote.js +1 -1
- package/dist/model/TokenizationAllowlistAddressesResponse.js +17 -25
- package/dist/model/TokenizationBlocklistAddressNote.js +1 -1
- package/dist/model/TokenizationBurnEstimateFeeParams.js +18 -26
- package/dist/model/TokenizationBurnTokenParams.js +17 -25
- package/dist/model/TokenizationBurnTokenParamsBurnsInner.js +2 -2
- package/dist/model/TokenizationBurnTokenRequest.js +19 -32
- package/dist/model/TokenizationContractCallEstimateFeeParams.js +1 -1
- package/dist/model/TokenizationContractCallParamsData.js +5 -0
- package/dist/model/TokenizationContractCallRequest.js +2 -7
- package/dist/model/TokenizationERC20TokenParams.js +2 -2
- package/dist/model/TokenizationERC20TokenPermissionParams.js +42 -21
- package/dist/model/TokenizationERC20WrappedTokenParams.js +3 -3
- package/dist/model/TokenizationERC20WrappedTokenPermissionParams.js +42 -21
- package/dist/model/TokenizationEstimateFeeRequest.js +2 -7
- package/dist/model/TokenizationEstimateFeeRequestOperationParams.js +5 -0
- package/dist/model/TokenizationEvmContractCallParams.js +1 -1
- package/dist/model/TokenizationHoldingInfo.js +3 -3
- package/dist/model/TokenizationIssueEstimateFeeParams.js +5 -15
- package/dist/model/TokenizationIssueTokenParams.js +5 -15
- package/dist/model/TokenizationIssueTokenParamsTokenParams.js +5 -0
- package/dist/model/TokenizationIssuedTokenRequest.js +7 -22
- package/dist/model/TokenizationListActivitiesResponse.js +17 -25
- package/dist/model/TokenizationListEnabledChainsResponse.js +2 -7
- package/dist/model/TokenizationListHoldingsResponse.js +17 -25
- package/dist/model/TokenizationListPermissionsResponse.js +17 -25
- package/dist/model/TokenizationListPermissionsResponseDataInner.js +1 -1
- package/dist/model/TokenizationListTokenInfoResponse.js +17 -25
- package/dist/model/TokenizationMintEstimateFeeParams.js +18 -26
- package/dist/model/TokenizationMintTokenParams.js +17 -25
- package/dist/model/TokenizationMintTokenParamsMintsInner.js +2 -2
- package/dist/model/TokenizationMintTokenRequest.js +19 -32
- package/dist/model/TokenizationMpcOperationSource.js +2 -2
- package/dist/model/TokenizationOperationResponse.js +1 -1
- package/dist/model/TokenizationPauseEstimateFeeParams.js +3 -8
- package/dist/model/TokenizationPauseTokenParams.js +2 -7
- package/dist/model/TokenizationPauseTokenRequest.js +4 -14
- package/dist/model/TokenizationSOLTokenParams.js +2 -2
- package/dist/model/TokenizationSOLWrappedTokenParams.js +3 -3
- package/dist/model/TokenizationSolContractCallParams.js +16 -19
- package/dist/model/TokenizationSolWrappedTokenPermissionParams.js +6 -3
- package/dist/model/TokenizationToggleAllowlistEstimateFeeParams.js +3 -8
- package/dist/model/TokenizationTokenDetailInfo.js +3 -3
- package/dist/model/TokenizationTokenInfo.js +3 -3
- package/dist/model/TokenizationTokenOperationSource.js +5 -0
- package/dist/model/TokenizationTokenPermission.js +2 -2
- package/dist/model/TokenizationUnpauseEstimateFeeParams.js +3 -8
- package/dist/model/TokenizationUnpauseTokenParams.js +2 -7
- package/dist/model/TokenizationUnpauseTokenRequest.js +4 -14
- package/dist/model/TokenizationUpdateAddressPermissions.js +1 -1
- package/dist/model/TokenizationUpdateAllowlistAddressesEstimateFeeParams.js +18 -26
- package/dist/model/TokenizationUpdateAllowlistAddressesParams.js +17 -25
- package/dist/model/TokenizationUpdateAllowlistAddressesParamsAddressesInner.js +1 -1
- package/dist/model/TokenizationUpdateAllowlistAddressesRequest.js +19 -32
- package/dist/model/TokenizationUpdateBlocklistAddressesEstimateFeeParams.js +18 -26
- package/dist/model/TokenizationUpdateBlocklistAddressesParams.js +17 -25
- package/dist/model/TokenizationUpdateBlocklistAddressesParamsAddressesInner.js +1 -1
- package/dist/model/TokenizationUpdateBlocklistAddressesRequest.js +19 -32
- package/dist/model/TokenizationUpdatePermissionsEstimateFeeParams.js +18 -26
- package/dist/model/TokenizationUpdatePermissionsParams.js +17 -25
- package/dist/model/TokenizationUpdatePermissionsRequest.js +19 -32
- package/dist/model/TokenizationWeb3OperationSource.js +2 -2
- package/dist/model/TokensEventData.js +22 -22
- package/dist/model/TopUpAddress.js +6 -6
- package/dist/model/Transaction.js +24 -25
- package/dist/model/TransactionBIP137Destination.js +1 -1
- package/dist/model/TransactionBIP322Destination.js +1 -1
- package/dist/model/TransactionCoboCategory.js +20 -0
- package/dist/model/TransactionCosmosAdr36Destination.js +1 -1
- package/dist/model/TransactionCosmosContractDestination.js +16 -19
- package/dist/model/TransactionCosmosMessage.js +2 -2
- package/dist/model/TransactionCustodialAssetWalletSource.js +1 -1
- package/dist/model/TransactionCustodialWeb3WalletSource.js +1 -1
- package/dist/model/TransactionDepositFromWalletSource.js +1 -1
- package/dist/model/TransactionDepositToAddressDestination.js +3 -3
- package/dist/model/TransactionDepositToWalletDestination.js +2 -2
- package/dist/model/TransactionDestination.js +5 -0
- package/dist/model/TransactionDetail.js +24 -25
- package/dist/model/TransactionDetails.js +24 -25
- package/dist/model/TransactionEvmContractDestination.js +2 -2
- package/dist/model/TransactionExchangeWalletSource.js +1 -1
- package/dist/model/TransactionExtra.js +5 -0
- package/dist/model/TransactionFee.js +5 -0
- package/dist/model/TransactionFeeStationWalletSource.js +1 -1
- package/dist/model/TransactionMPCWalletSource.js +1 -1
- package/dist/model/TransactionMessageSignEIP191Destination.js +1 -1
- package/dist/model/TransactionRbf.js +9 -11
- package/dist/model/TransactionRbfSource.js +5 -0
- package/dist/model/TransactionRequestEvmEip1559Fee.js +3 -3
- package/dist/model/TransactionRequestEvmLegacyFee.js +2 -2
- package/dist/model/TransactionRequestFILFee.js +3 -3
- package/dist/model/TransactionRequestFee.js +5 -0
- package/dist/model/TransactionRequestFixedFee.js +1 -1
- package/dist/model/TransactionRequestSOLFee.js +3 -3
- package/dist/model/TransactionRequestUtxoFee.js +1 -1
- package/dist/model/TransactionResend.js +1 -1
- package/dist/model/TransactionResult.js +5 -0
- package/dist/model/TransactionSignatureResult.js +1 -1
- package/dist/model/TransactionSmartContractSafeWalletSource.js +2 -2
- package/dist/model/TransactionSolContractAddressLookupTableAccount.js +1 -1
- package/dist/model/TransactionSource.js +5 -0
- package/dist/model/TransactionStellarContractParam.js +5 -0
- package/dist/model/TransactionStellarDestination.js +2 -7
- package/dist/model/TransactionStellarTrustLineParam.js +1 -1
- package/dist/model/TransactionTokeApproval.js +2 -2
- package/dist/model/TransactionTokenAmount.js +2 -2
- package/dist/model/TransactionTransferToWalletDestination.js +2 -2
- package/dist/model/TransactionTronContractDestination.js +2 -2
- package/dist/model/TransactionWebhookEventData.js +25 -26
- package/dist/model/TransferDestination.js +5 -0
- package/dist/model/TransferParams.js +10 -17
- package/dist/model/TransferSource.js +5 -0
- package/dist/model/TravelRuleDepositExchangesOrVASP.js +4 -9
- package/dist/model/TravelRuleDepositExchangesOrVASPEntityInfo.js +5 -0
- package/dist/model/TravelRuleDepositLegalEntity.js +2 -2
- package/dist/model/TravelRuleDepositNaturalEntity.js +3 -3
- package/dist/model/TravelRuleDepositRequest.js +3 -8
- package/dist/model/TravelRuleDepositRequestTravelRuleInfo.js +5 -0
- package/dist/model/TravelRuleWithdrawExchangesOrVASP.js +4 -9
- package/dist/model/TravelRuleWithdrawExchangesOrVASPEntityInfo.js +5 -0
- package/dist/model/TravelRuleWithdrawLegalEntity.js +1 -1
- package/dist/model/TravelRuleWithdrawNaturalEntity.js +2 -2
- package/dist/model/TravelRuleWithdrawRequest.js +3 -8
- package/dist/model/TravelRuleWithdrawRequestTravelRuleInfo.js +5 -0
- package/dist/model/TronContractCallDestination.js +2 -2
- package/dist/model/UnfreezeDisposition.js +1 -1
- package/dist/model/UpdateCounterpartyRequest.js +1 -1
- package/dist/model/UpdateDestinationBankAccount.js +8 -8
- package/dist/model/UpdateDestinationEntryRequest.js +1 -1
- package/dist/model/UpdateDestinationRequest.js +1 -1
- package/dist/model/UpdateExchangeWalletParams.js +1 -1
- package/dist/model/UpdateKeyShareHolderGroupByIdRequest.js +9 -0
- package/dist/model/UpdateMpcProjectByIdRequest.js +1 -1
- package/dist/model/UpdateMpcVaultByIdRequest.js +1 -1
- package/dist/model/UpdateRefundByIdRequest.js +1 -1
- package/dist/model/UpdateSmartContractWalletParams.js +1 -1
- package/dist/model/UpdateTopUpAddress.js +2 -2
- package/dist/model/UpdateWalletParams.js +5 -0
- package/dist/model/UpdateWebhookEndpointByIdRequest.js +6 -3
- package/dist/model/UtxoFeeRate.js +3 -8
- package/dist/model/Vasp.js +3 -3
- package/dist/model/WalletAddress.js +3 -3
- package/dist/model/WalletInfo.js +5 -0
- package/dist/model/WalletInfoEventData.js +1 -1
- package/dist/model/WebhookEndpoint.js +1 -1
- package/dist/model/WebhookEvent.js +3 -8
- package/dist/model/WebhookEventData.js +5 -0
- package/dist/model/WebhookEventDataType.js +1 -1
- package/dist/model/WebhookEventLog.js +3 -8
- package/dist/model/WebhookEventType.js +5 -0
- package/docs/ChainInfo.md +1 -0
- package/docs/ListPayerTransactions200Response.md +10 -0
- package/docs/ListTopUpPayers200ResponseDataInner.md +2 -1
- package/docs/OrderLinkBusinessInfo.md +1 -1
- package/docs/OriginalMainGroupHandling.md +12 -0
- package/docs/PaymentApi.md +69 -104
- package/docs/TransactionCoboCategory.md +8 -0
- package/docs/UpdateKeyShareHolderGroupByIdRequest.md +1 -0
- package/docs/WebhookEventType.md +2 -0
- package/package.json +1 -1
- package/docs/UpdateBankAccountByIdRequest.md +0 -9
package/dist/api/PaymentApi.js
CHANGED
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
8
|
var _AcquiringType = _interopRequireDefault(require("../model/AcquiringType"));
|
|
9
|
-
var _BankAccount = _interopRequireDefault(require("../model/BankAccount"));
|
|
10
9
|
var _BankAccountStatus = _interopRequireDefault(require("../model/BankAccountStatus"));
|
|
11
10
|
var _BatchAllocation = _interopRequireDefault(require("../model/BatchAllocation"));
|
|
12
11
|
var _BatchAllocationDetail = _interopRequireDefault(require("../model/BatchAllocationDetail"));
|
|
@@ -63,6 +62,7 @@ var _ListDestinations200Response = _interopRequireDefault(require("../model/List
|
|
|
63
62
|
var _ListForcedSweepRequests200Response = _interopRequireDefault(require("../model/ListForcedSweepRequests200Response"));
|
|
64
63
|
var _ListMerchantBalances200Response = _interopRequireDefault(require("../model/ListMerchantBalances200Response"));
|
|
65
64
|
var _ListMerchants200Response = _interopRequireDefault(require("../model/ListMerchants200Response"));
|
|
65
|
+
var _ListPayerTransactions200Response = _interopRequireDefault(require("../model/ListPayerTransactions200Response"));
|
|
66
66
|
var _ListPaymentOrders200Response = _interopRequireDefault(require("../model/ListPaymentOrders200Response"));
|
|
67
67
|
var _ListPaymentWalletBalances200Response = _interopRequireDefault(require("../model/ListPaymentWalletBalances200Response"));
|
|
68
68
|
var _ListPayouts200Response = _interopRequireDefault(require("../model/ListPayouts200Response"));
|
|
@@ -88,7 +88,6 @@ var _SupportedToken = _interopRequireDefault(require("../model/SupportedToken"))
|
|
|
88
88
|
var _TopUpAddress = _interopRequireDefault(require("../model/TopUpAddress"));
|
|
89
89
|
var _TriggerTestPaymentWebhookEventResponse = _interopRequireDefault(require("../model/TriggerTestPaymentWebhookEventResponse"));
|
|
90
90
|
var _TriggerTestPaymentsWebhookEventRequest = _interopRequireDefault(require("../model/TriggerTestPaymentsWebhookEventRequest"));
|
|
91
|
-
var _UpdateBankAccountByIdRequest = _interopRequireDefault(require("../model/UpdateBankAccountByIdRequest"));
|
|
92
91
|
var _UpdateCounterpartyRequest = _interopRequireDefault(require("../model/UpdateCounterpartyRequest"));
|
|
93
92
|
var _UpdateDestinationEntry200Response = _interopRequireDefault(require("../model/UpdateDestinationEntry200Response"));
|
|
94
93
|
var _UpdateDestinationEntryRequest = _interopRequireDefault(require("../model/UpdateDestinationEntryRequest"));
|
|
@@ -114,6 +113,102 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
114
113
|
* Do not edit the class manually.
|
|
115
114
|
*
|
|
116
115
|
*/
|
|
116
|
+
// Model class table — access class refs by name to avoid parameter-name shadowing
|
|
117
|
+
var _modelClasses = {
|
|
118
|
+
'AcquiringType': _AcquiringType["default"],
|
|
119
|
+
'BankAccountStatus': _BankAccountStatus["default"],
|
|
120
|
+
'BatchAllocation': _BatchAllocation["default"],
|
|
121
|
+
'BatchAllocationDetail': _BatchAllocationDetail["default"],
|
|
122
|
+
'Counterparty': _Counterparty["default"],
|
|
123
|
+
'CounterpartyDetail': _CounterpartyDetail["default"],
|
|
124
|
+
'CounterpartyType': _CounterpartyType["default"],
|
|
125
|
+
'CreateBatchAllocationRequest': _CreateBatchAllocationRequest["default"],
|
|
126
|
+
'CreateBulkSendRequest': _CreateBulkSendRequest["default"],
|
|
127
|
+
'CreateCounterpartyEntry201Response': _CreateCounterpartyEntry201Response["default"],
|
|
128
|
+
'CreateCounterpartyEntryRequest': _CreateCounterpartyEntryRequest["default"],
|
|
129
|
+
'CreateCounterpartyRequest': _CreateCounterpartyRequest["default"],
|
|
130
|
+
'CreateCryptoAddressRequest': _CreateCryptoAddressRequest["default"],
|
|
131
|
+
'CreateDestinationEntry201Response': _CreateDestinationEntry201Response["default"],
|
|
132
|
+
'CreateDestinationEntryRequest': _CreateDestinationEntryRequest["default"],
|
|
133
|
+
'CreateDestinationRequest': _CreateDestinationRequest["default"],
|
|
134
|
+
'CreateMerchantRequest': _CreateMerchantRequest["default"],
|
|
135
|
+
'CreateOrderLinkRequest': _CreateOrderLinkRequest["default"],
|
|
136
|
+
'CreatePaymentOrderRequest': _CreatePaymentOrderRequest["default"],
|
|
137
|
+
'CreatePayoutRequest': _CreatePayoutRequest["default"],
|
|
138
|
+
'CreateRefundLinkRequest': _CreateRefundLinkRequest["default"],
|
|
139
|
+
'CreateRefundRequest': _CreateRefundRequest["default"],
|
|
140
|
+
'CreateReportRequest': _CreateReportRequest["default"],
|
|
141
|
+
'CreateSettlementRequestRequest': _CreateSettlementRequestRequest["default"],
|
|
142
|
+
'CreateTopUpAddresses': _CreateTopUpAddresses["default"],
|
|
143
|
+
'CreateTopUpAddresses201Response': _CreateTopUpAddresses201Response["default"],
|
|
144
|
+
'CryptoAddress': _CryptoAddress["default"],
|
|
145
|
+
'DeleteCounterpartyById200Response': _DeleteCounterpartyById200Response["default"],
|
|
146
|
+
'DeleteCounterpartyEntry200Response': _DeleteCounterpartyEntry200Response["default"],
|
|
147
|
+
'DeleteCryptoAddress201Response': _DeleteCryptoAddress201Response["default"],
|
|
148
|
+
'DeleteDestinationById200Response': _DeleteDestinationById200Response["default"],
|
|
149
|
+
'DeleteDestinationEntry200Response': _DeleteDestinationEntry200Response["default"],
|
|
150
|
+
'Destination': _Destination["default"],
|
|
151
|
+
'DestinationDetail': _DestinationDetail["default"],
|
|
152
|
+
'DestinationType': _DestinationType["default"],
|
|
153
|
+
'EntryType': _EntryType["default"],
|
|
154
|
+
'ErrorResponse': _ErrorResponse["default"],
|
|
155
|
+
'ExchangeRate': _ExchangeRate["default"],
|
|
156
|
+
'ForcedSweep': _ForcedSweep["default"],
|
|
157
|
+
'ForcedSweepRequest': _ForcedSweepRequest["default"],
|
|
158
|
+
'GetCounterpartyEntry200Response': _GetCounterpartyEntry200Response["default"],
|
|
159
|
+
'GetDestinationEntry200Response': _GetDestinationEntry200Response["default"],
|
|
160
|
+
'GetExchangeRate200Response': _GetExchangeRate200Response["default"],
|
|
161
|
+
'GetRefunds200Response': _GetRefunds200Response["default"],
|
|
162
|
+
'GetReports200Response': _GetReports200Response["default"],
|
|
163
|
+
'GetSettlementInfoByIds200Response': _GetSettlementInfoByIds200Response["default"],
|
|
164
|
+
'Link': _Link["default"],
|
|
165
|
+
'ListAllocationItems200Response': _ListAllocationItems200Response["default"],
|
|
166
|
+
'ListBatchAllocations200Response': _ListBatchAllocations200Response["default"],
|
|
167
|
+
'ListBulkSendItems200Response': _ListBulkSendItems200Response["default"],
|
|
168
|
+
'ListCounterparties200Response': _ListCounterparties200Response["default"],
|
|
169
|
+
'ListCounterpartyEntries200Response': _ListCounterpartyEntries200Response["default"],
|
|
170
|
+
'ListDestinationEntries200Response': _ListDestinationEntries200Response["default"],
|
|
171
|
+
'ListDestinations200Response': _ListDestinations200Response["default"],
|
|
172
|
+
'ListForcedSweepRequests200Response': _ListForcedSweepRequests200Response["default"],
|
|
173
|
+
'ListMerchantBalances200Response': _ListMerchantBalances200Response["default"],
|
|
174
|
+
'ListMerchants200Response': _ListMerchants200Response["default"],
|
|
175
|
+
'ListPayerTransactions200Response': _ListPayerTransactions200Response["default"],
|
|
176
|
+
'ListPaymentOrders200Response': _ListPaymentOrders200Response["default"],
|
|
177
|
+
'ListPaymentWalletBalances200Response': _ListPaymentWalletBalances200Response["default"],
|
|
178
|
+
'ListPayouts200Response': _ListPayouts200Response["default"],
|
|
179
|
+
'ListSettlementDetails200Response': _ListSettlementDetails200Response["default"],
|
|
180
|
+
'ListSettlementRequests200Response': _ListSettlementRequests200Response["default"],
|
|
181
|
+
'ListTopUpPayerAccounts200Response': _ListTopUpPayerAccounts200Response["default"],
|
|
182
|
+
'ListTopUpPayers200Response': _ListTopUpPayers200Response["default"],
|
|
183
|
+
'Merchant': _Merchant["default"],
|
|
184
|
+
'Order': _Order["default"],
|
|
185
|
+
'PaymentAllocationAmount': _PaymentAllocationAmount["default"],
|
|
186
|
+
'PaymentBulkSend': _PaymentBulkSend["default"],
|
|
187
|
+
'PaymentEstimateFee201Response': _PaymentEstimateFee201Response["default"],
|
|
188
|
+
'PaymentEstimateFeeRequest': _PaymentEstimateFeeRequest["default"],
|
|
189
|
+
'PaymentPayout': _PaymentPayout["default"],
|
|
190
|
+
'PaymentPayoutDetail': _PaymentPayoutDetail["default"],
|
|
191
|
+
'PspBalance': _PspBalance["default"],
|
|
192
|
+
'Refund': _Refund["default"],
|
|
193
|
+
'Report': _Report["default"],
|
|
194
|
+
'ReportStatus': _ReportStatus["default"],
|
|
195
|
+
'ReportType': _ReportType["default"],
|
|
196
|
+
'Settlement': _Settlement["default"],
|
|
197
|
+
'SupportedToken': _SupportedToken["default"],
|
|
198
|
+
'TopUpAddress': _TopUpAddress["default"],
|
|
199
|
+
'TriggerTestPaymentWebhookEventResponse': _TriggerTestPaymentWebhookEventResponse["default"],
|
|
200
|
+
'TriggerTestPaymentsWebhookEventRequest': _TriggerTestPaymentsWebhookEventRequest["default"],
|
|
201
|
+
'UpdateCounterpartyRequest': _UpdateCounterpartyRequest["default"],
|
|
202
|
+
'UpdateDestinationEntry200Response': _UpdateDestinationEntry200Response["default"],
|
|
203
|
+
'UpdateDestinationEntryRequest': _UpdateDestinationEntryRequest["default"],
|
|
204
|
+
'UpdateDestinationRequest': _UpdateDestinationRequest["default"],
|
|
205
|
+
'UpdateMerchantByIdRequest': _UpdateMerchantByIdRequest["default"],
|
|
206
|
+
'UpdatePaymentOrderRequest': _UpdatePaymentOrderRequest["default"],
|
|
207
|
+
'UpdateRefundByIdRequest': _UpdateRefundByIdRequest["default"],
|
|
208
|
+
'UpdateTopUpAddress': _UpdateTopUpAddress["default"],
|
|
209
|
+
'WalletSetup': _WalletSetup["default"]
|
|
210
|
+
};
|
|
211
|
+
|
|
117
212
|
/**
|
|
118
213
|
* Payment service.
|
|
119
214
|
* @module api/PaymentApi
|
|
@@ -241,6 +336,21 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
241
336
|
if (postBody && postBody.toJSON) {
|
|
242
337
|
postBody = postBody.toJSON();
|
|
243
338
|
}
|
|
339
|
+
// Validate opts key — must be exactly 'CreateBatchAllocationRequest'
|
|
340
|
+
if (postBody === undefined && opts) {
|
|
341
|
+
var _providedKeys = Object.keys(opts).filter(function (k) {
|
|
342
|
+
return k !== '_base_path_index';
|
|
343
|
+
});
|
|
344
|
+
if (_providedKeys.length > 0) {
|
|
345
|
+
throw new Error('createBatchAllocation(): unrecognized opts key [' + _providedKeys.join(', ') + ']. Expected: "CreateBatchAllocationRequest".');
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
// Validate request body before sending
|
|
349
|
+
if (postBody !== null && postBody !== undefined) {
|
|
350
|
+
if (_modelClasses['CreateBatchAllocationRequest'] && typeof _modelClasses['CreateBatchAllocationRequest'].validateJSON === 'function') {
|
|
351
|
+
_modelClasses['CreateBatchAllocationRequest'].validateJSON(postBody);
|
|
352
|
+
}
|
|
353
|
+
}
|
|
244
354
|
var pathParams = {};
|
|
245
355
|
var queryParams = {};
|
|
246
356
|
var headerParams = {};
|
|
@@ -282,6 +392,21 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
282
392
|
if (postBody && postBody.toJSON) {
|
|
283
393
|
postBody = postBody.toJSON();
|
|
284
394
|
}
|
|
395
|
+
// Validate opts key — must be exactly 'CreateBulkSendRequest'
|
|
396
|
+
if (postBody === undefined && opts) {
|
|
397
|
+
var _providedKeys = Object.keys(opts).filter(function (k) {
|
|
398
|
+
return k !== '_base_path_index';
|
|
399
|
+
});
|
|
400
|
+
if (_providedKeys.length > 0) {
|
|
401
|
+
throw new Error('createBulkSend(): unrecognized opts key [' + _providedKeys.join(', ') + ']. Expected: "CreateBulkSendRequest".');
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
// Validate request body before sending
|
|
405
|
+
if (postBody !== null && postBody !== undefined) {
|
|
406
|
+
if (_modelClasses['CreateBulkSendRequest'] && typeof _modelClasses['CreateBulkSendRequest'].validateJSON === 'function') {
|
|
407
|
+
_modelClasses['CreateBulkSendRequest'].validateJSON(postBody);
|
|
408
|
+
}
|
|
409
|
+
}
|
|
285
410
|
var pathParams = {};
|
|
286
411
|
var queryParams = {};
|
|
287
412
|
var headerParams = {};
|
|
@@ -323,6 +448,21 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
323
448
|
if (postBody && postBody.toJSON) {
|
|
324
449
|
postBody = postBody.toJSON();
|
|
325
450
|
}
|
|
451
|
+
// Validate opts key — must be exactly 'CreateCounterpartyRequest'
|
|
452
|
+
if (postBody === undefined && opts) {
|
|
453
|
+
var _providedKeys = Object.keys(opts).filter(function (k) {
|
|
454
|
+
return k !== '_base_path_index';
|
|
455
|
+
});
|
|
456
|
+
if (_providedKeys.length > 0) {
|
|
457
|
+
throw new Error('createCounterparty(): unrecognized opts key [' + _providedKeys.join(', ') + ']. Expected: "CreateCounterpartyRequest".');
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
// Validate request body before sending
|
|
461
|
+
if (postBody !== null && postBody !== undefined) {
|
|
462
|
+
if (_modelClasses['CreateCounterpartyRequest'] && typeof _modelClasses['CreateCounterpartyRequest'].validateJSON === 'function') {
|
|
463
|
+
_modelClasses['CreateCounterpartyRequest'].validateJSON(postBody);
|
|
464
|
+
}
|
|
465
|
+
}
|
|
326
466
|
var pathParams = {};
|
|
327
467
|
var queryParams = {};
|
|
328
468
|
var headerParams = {};
|
|
@@ -364,6 +504,21 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
364
504
|
if (postBody && postBody.toJSON) {
|
|
365
505
|
postBody = postBody.toJSON();
|
|
366
506
|
}
|
|
507
|
+
// Validate opts key — must be exactly 'CreateCounterpartyEntryRequest'
|
|
508
|
+
if (postBody === undefined && opts) {
|
|
509
|
+
var _providedKeys = Object.keys(opts).filter(function (k) {
|
|
510
|
+
return k !== '_base_path_index';
|
|
511
|
+
});
|
|
512
|
+
if (_providedKeys.length > 0) {
|
|
513
|
+
throw new Error('createCounterpartyEntry(): unrecognized opts key [' + _providedKeys.join(', ') + ']. Expected: "CreateCounterpartyEntryRequest".');
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
// Validate request body before sending
|
|
517
|
+
if (postBody !== null && postBody !== undefined) {
|
|
518
|
+
if (_modelClasses['CreateCounterpartyEntryRequest'] && typeof _modelClasses['CreateCounterpartyEntryRequest'].validateJSON === 'function') {
|
|
519
|
+
_modelClasses['CreateCounterpartyEntryRequest'].validateJSON(postBody);
|
|
520
|
+
}
|
|
521
|
+
}
|
|
367
522
|
var pathParams = {};
|
|
368
523
|
var queryParams = {};
|
|
369
524
|
var headerParams = {};
|
|
@@ -405,6 +560,21 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
405
560
|
if (postBody && postBody.toJSON) {
|
|
406
561
|
postBody = postBody.toJSON();
|
|
407
562
|
}
|
|
563
|
+
// Validate opts key — must be exactly 'CreateCryptoAddressRequest'
|
|
564
|
+
if (postBody === undefined && opts) {
|
|
565
|
+
var _providedKeys = Object.keys(opts).filter(function (k) {
|
|
566
|
+
return k !== '_base_path_index';
|
|
567
|
+
});
|
|
568
|
+
if (_providedKeys.length > 0) {
|
|
569
|
+
throw new Error('createCryptoAddress(): unrecognized opts key [' + _providedKeys.join(', ') + ']. Expected: "CreateCryptoAddressRequest".');
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
// Validate request body before sending
|
|
573
|
+
if (postBody !== null && postBody !== undefined) {
|
|
574
|
+
if (_modelClasses['CreateCryptoAddressRequest'] && typeof _modelClasses['CreateCryptoAddressRequest'].validateJSON === 'function') {
|
|
575
|
+
_modelClasses['CreateCryptoAddressRequest'].validateJSON(postBody);
|
|
576
|
+
}
|
|
577
|
+
}
|
|
408
578
|
var pathParams = {};
|
|
409
579
|
var queryParams = {};
|
|
410
580
|
var headerParams = {};
|
|
@@ -446,6 +616,21 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
446
616
|
if (postBody && postBody.toJSON) {
|
|
447
617
|
postBody = postBody.toJSON();
|
|
448
618
|
}
|
|
619
|
+
// Validate opts key — must be exactly 'CreateDestinationRequest'
|
|
620
|
+
if (postBody === undefined && opts) {
|
|
621
|
+
var _providedKeys = Object.keys(opts).filter(function (k) {
|
|
622
|
+
return k !== '_base_path_index';
|
|
623
|
+
});
|
|
624
|
+
if (_providedKeys.length > 0) {
|
|
625
|
+
throw new Error('createDestination(): unrecognized opts key [' + _providedKeys.join(', ') + ']. Expected: "CreateDestinationRequest".');
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
// Validate request body before sending
|
|
629
|
+
if (postBody !== null && postBody !== undefined) {
|
|
630
|
+
if (_modelClasses['CreateDestinationRequest'] && typeof _modelClasses['CreateDestinationRequest'].validateJSON === 'function') {
|
|
631
|
+
_modelClasses['CreateDestinationRequest'].validateJSON(postBody);
|
|
632
|
+
}
|
|
633
|
+
}
|
|
449
634
|
var pathParams = {};
|
|
450
635
|
var queryParams = {};
|
|
451
636
|
var headerParams = {};
|
|
@@ -487,6 +672,21 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
487
672
|
if (postBody && postBody.toJSON) {
|
|
488
673
|
postBody = postBody.toJSON();
|
|
489
674
|
}
|
|
675
|
+
// Validate opts key — must be exactly 'CreateDestinationEntryRequest'
|
|
676
|
+
if (postBody === undefined && opts) {
|
|
677
|
+
var _providedKeys = Object.keys(opts).filter(function (k) {
|
|
678
|
+
return k !== '_base_path_index';
|
|
679
|
+
});
|
|
680
|
+
if (_providedKeys.length > 0) {
|
|
681
|
+
throw new Error('createDestinationEntry(): unrecognized opts key [' + _providedKeys.join(', ') + ']. Expected: "CreateDestinationEntryRequest".');
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
// Validate request body before sending
|
|
685
|
+
if (postBody !== null && postBody !== undefined) {
|
|
686
|
+
if (_modelClasses['CreateDestinationEntryRequest'] && typeof _modelClasses['CreateDestinationEntryRequest'].validateJSON === 'function') {
|
|
687
|
+
_modelClasses['CreateDestinationEntryRequest'].validateJSON(postBody);
|
|
688
|
+
}
|
|
689
|
+
}
|
|
490
690
|
var pathParams = {};
|
|
491
691
|
var queryParams = {};
|
|
492
692
|
var headerParams = {};
|
|
@@ -528,6 +728,21 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
528
728
|
if (postBody && postBody.toJSON) {
|
|
529
729
|
postBody = postBody.toJSON();
|
|
530
730
|
}
|
|
731
|
+
// Validate opts key — must be exactly 'ForcedSweepRequest'
|
|
732
|
+
if (postBody === undefined && opts) {
|
|
733
|
+
var _providedKeys = Object.keys(opts).filter(function (k) {
|
|
734
|
+
return k !== '_base_path_index';
|
|
735
|
+
});
|
|
736
|
+
if (_providedKeys.length > 0) {
|
|
737
|
+
throw new Error('createForcedSweepRequest(): unrecognized opts key [' + _providedKeys.join(', ') + ']. Expected: "ForcedSweepRequest".');
|
|
738
|
+
}
|
|
739
|
+
}
|
|
740
|
+
// Validate request body before sending
|
|
741
|
+
if (postBody !== null && postBody !== undefined) {
|
|
742
|
+
if (_modelClasses['ForcedSweepRequest'] && typeof _modelClasses['ForcedSweepRequest'].validateJSON === 'function') {
|
|
743
|
+
_modelClasses['ForcedSweepRequest'].validateJSON(postBody);
|
|
744
|
+
}
|
|
745
|
+
}
|
|
531
746
|
var pathParams = {};
|
|
532
747
|
var queryParams = {};
|
|
533
748
|
var headerParams = {};
|
|
@@ -569,6 +784,21 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
569
784
|
if (postBody && postBody.toJSON) {
|
|
570
785
|
postBody = postBody.toJSON();
|
|
571
786
|
}
|
|
787
|
+
// Validate opts key — must be exactly 'CreateMerchantRequest'
|
|
788
|
+
if (postBody === undefined && opts) {
|
|
789
|
+
var _providedKeys = Object.keys(opts).filter(function (k) {
|
|
790
|
+
return k !== '_base_path_index';
|
|
791
|
+
});
|
|
792
|
+
if (_providedKeys.length > 0) {
|
|
793
|
+
throw new Error('createMerchant(): unrecognized opts key [' + _providedKeys.join(', ') + ']. Expected: "CreateMerchantRequest".');
|
|
794
|
+
}
|
|
795
|
+
}
|
|
796
|
+
// Validate request body before sending
|
|
797
|
+
if (postBody !== null && postBody !== undefined) {
|
|
798
|
+
if (_modelClasses['CreateMerchantRequest'] && typeof _modelClasses['CreateMerchantRequest'].validateJSON === 'function') {
|
|
799
|
+
_modelClasses['CreateMerchantRequest'].validateJSON(postBody);
|
|
800
|
+
}
|
|
801
|
+
}
|
|
572
802
|
var pathParams = {};
|
|
573
803
|
var queryParams = {};
|
|
574
804
|
var headerParams = {};
|
|
@@ -610,6 +840,21 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
610
840
|
if (postBody && postBody.toJSON) {
|
|
611
841
|
postBody = postBody.toJSON();
|
|
612
842
|
}
|
|
843
|
+
// Validate opts key — must be exactly 'CreateOrderLinkRequest'
|
|
844
|
+
if (postBody === undefined && opts) {
|
|
845
|
+
var _providedKeys = Object.keys(opts).filter(function (k) {
|
|
846
|
+
return k !== '_base_path_index';
|
|
847
|
+
});
|
|
848
|
+
if (_providedKeys.length > 0) {
|
|
849
|
+
throw new Error('createOrderLink(): unrecognized opts key [' + _providedKeys.join(', ') + ']. Expected: "CreateOrderLinkRequest".');
|
|
850
|
+
}
|
|
851
|
+
}
|
|
852
|
+
// Validate request body before sending
|
|
853
|
+
if (postBody !== null && postBody !== undefined) {
|
|
854
|
+
if (_modelClasses['CreateOrderLinkRequest'] && typeof _modelClasses['CreateOrderLinkRequest'].validateJSON === 'function') {
|
|
855
|
+
_modelClasses['CreateOrderLinkRequest'].validateJSON(postBody);
|
|
856
|
+
}
|
|
857
|
+
}
|
|
613
858
|
var pathParams = {};
|
|
614
859
|
var queryParams = {};
|
|
615
860
|
var headerParams = {};
|
|
@@ -651,6 +896,21 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
651
896
|
if (postBody && postBody.toJSON) {
|
|
652
897
|
postBody = postBody.toJSON();
|
|
653
898
|
}
|
|
899
|
+
// Validate opts key — must be exactly 'CreatePaymentOrderRequest'
|
|
900
|
+
if (postBody === undefined && opts) {
|
|
901
|
+
var _providedKeys = Object.keys(opts).filter(function (k) {
|
|
902
|
+
return k !== '_base_path_index';
|
|
903
|
+
});
|
|
904
|
+
if (_providedKeys.length > 0) {
|
|
905
|
+
throw new Error('createPaymentOrder(): unrecognized opts key [' + _providedKeys.join(', ') + ']. Expected: "CreatePaymentOrderRequest".');
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
// Validate request body before sending
|
|
909
|
+
if (postBody !== null && postBody !== undefined) {
|
|
910
|
+
if (_modelClasses['CreatePaymentOrderRequest'] && typeof _modelClasses['CreatePaymentOrderRequest'].validateJSON === 'function') {
|
|
911
|
+
_modelClasses['CreatePaymentOrderRequest'].validateJSON(postBody);
|
|
912
|
+
}
|
|
913
|
+
}
|
|
654
914
|
var pathParams = {};
|
|
655
915
|
var queryParams = {};
|
|
656
916
|
var headerParams = {};
|
|
@@ -692,6 +952,21 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
692
952
|
if (postBody && postBody.toJSON) {
|
|
693
953
|
postBody = postBody.toJSON();
|
|
694
954
|
}
|
|
955
|
+
// Validate opts key — must be exactly 'CreatePayoutRequest'
|
|
956
|
+
if (postBody === undefined && opts) {
|
|
957
|
+
var _providedKeys = Object.keys(opts).filter(function (k) {
|
|
958
|
+
return k !== '_base_path_index';
|
|
959
|
+
});
|
|
960
|
+
if (_providedKeys.length > 0) {
|
|
961
|
+
throw new Error('createPayout(): unrecognized opts key [' + _providedKeys.join(', ') + ']. Expected: "CreatePayoutRequest".');
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
// Validate request body before sending
|
|
965
|
+
if (postBody !== null && postBody !== undefined) {
|
|
966
|
+
if (_modelClasses['CreatePayoutRequest'] && typeof _modelClasses['CreatePayoutRequest'].validateJSON === 'function') {
|
|
967
|
+
_modelClasses['CreatePayoutRequest'].validateJSON(postBody);
|
|
968
|
+
}
|
|
969
|
+
}
|
|
695
970
|
var pathParams = {};
|
|
696
971
|
var queryParams = {};
|
|
697
972
|
var headerParams = {};
|
|
@@ -733,6 +1008,21 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
733
1008
|
if (postBody && postBody.toJSON) {
|
|
734
1009
|
postBody = postBody.toJSON();
|
|
735
1010
|
}
|
|
1011
|
+
// Validate opts key — must be exactly 'CreateRefundRequest'
|
|
1012
|
+
if (postBody === undefined && opts) {
|
|
1013
|
+
var _providedKeys = Object.keys(opts).filter(function (k) {
|
|
1014
|
+
return k !== '_base_path_index';
|
|
1015
|
+
});
|
|
1016
|
+
if (_providedKeys.length > 0) {
|
|
1017
|
+
throw new Error('createRefund(): unrecognized opts key [' + _providedKeys.join(', ') + ']. Expected: "CreateRefundRequest".');
|
|
1018
|
+
}
|
|
1019
|
+
}
|
|
1020
|
+
// Validate request body before sending
|
|
1021
|
+
if (postBody !== null && postBody !== undefined) {
|
|
1022
|
+
if (_modelClasses['CreateRefundRequest'] && typeof _modelClasses['CreateRefundRequest'].validateJSON === 'function') {
|
|
1023
|
+
_modelClasses['CreateRefundRequest'].validateJSON(postBody);
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
736
1026
|
var pathParams = {};
|
|
737
1027
|
var queryParams = {};
|
|
738
1028
|
var headerParams = {};
|
|
@@ -774,6 +1064,21 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
774
1064
|
if (postBody && postBody.toJSON) {
|
|
775
1065
|
postBody = postBody.toJSON();
|
|
776
1066
|
}
|
|
1067
|
+
// Validate opts key — must be exactly 'CreateRefundLinkRequest'
|
|
1068
|
+
if (postBody === undefined && opts) {
|
|
1069
|
+
var _providedKeys = Object.keys(opts).filter(function (k) {
|
|
1070
|
+
return k !== '_base_path_index';
|
|
1071
|
+
});
|
|
1072
|
+
if (_providedKeys.length > 0) {
|
|
1073
|
+
throw new Error('createRefundLink(): unrecognized opts key [' + _providedKeys.join(', ') + ']. Expected: "CreateRefundLinkRequest".');
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1076
|
+
// Validate request body before sending
|
|
1077
|
+
if (postBody !== null && postBody !== undefined) {
|
|
1078
|
+
if (_modelClasses['CreateRefundLinkRequest'] && typeof _modelClasses['CreateRefundLinkRequest'].validateJSON === 'function') {
|
|
1079
|
+
_modelClasses['CreateRefundLinkRequest'].validateJSON(postBody);
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
777
1082
|
var pathParams = {};
|
|
778
1083
|
var queryParams = {};
|
|
779
1084
|
var headerParams = {};
|
|
@@ -815,6 +1120,21 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
815
1120
|
if (postBody && postBody.toJSON) {
|
|
816
1121
|
postBody = postBody.toJSON();
|
|
817
1122
|
}
|
|
1123
|
+
// Validate opts key — must be exactly 'CreateReportRequest'
|
|
1124
|
+
if (postBody === undefined && opts) {
|
|
1125
|
+
var _providedKeys = Object.keys(opts).filter(function (k) {
|
|
1126
|
+
return k !== '_base_path_index';
|
|
1127
|
+
});
|
|
1128
|
+
if (_providedKeys.length > 0) {
|
|
1129
|
+
throw new Error('createReport(): unrecognized opts key [' + _providedKeys.join(', ') + ']. Expected: "CreateReportRequest".');
|
|
1130
|
+
}
|
|
1131
|
+
}
|
|
1132
|
+
// Validate request body before sending
|
|
1133
|
+
if (postBody !== null && postBody !== undefined) {
|
|
1134
|
+
if (_modelClasses['CreateReportRequest'] && typeof _modelClasses['CreateReportRequest'].validateJSON === 'function') {
|
|
1135
|
+
_modelClasses['CreateReportRequest'].validateJSON(postBody);
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
818
1138
|
var pathParams = {};
|
|
819
1139
|
var queryParams = {};
|
|
820
1140
|
var headerParams = {};
|
|
@@ -892,6 +1212,21 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
892
1212
|
if (postBody && postBody.toJSON) {
|
|
893
1213
|
postBody = postBody.toJSON();
|
|
894
1214
|
}
|
|
1215
|
+
// Validate opts key — must be exactly 'CreateSettlementRequestRequest'
|
|
1216
|
+
if (postBody === undefined && opts) {
|
|
1217
|
+
var _providedKeys = Object.keys(opts).filter(function (k) {
|
|
1218
|
+
return k !== '_base_path_index';
|
|
1219
|
+
});
|
|
1220
|
+
if (_providedKeys.length > 0) {
|
|
1221
|
+
throw new Error('createSettlementRequest(): unrecognized opts key [' + _providedKeys.join(', ') + ']. Expected: "CreateSettlementRequestRequest".');
|
|
1222
|
+
}
|
|
1223
|
+
}
|
|
1224
|
+
// Validate request body before sending
|
|
1225
|
+
if (postBody !== null && postBody !== undefined) {
|
|
1226
|
+
if (_modelClasses['CreateSettlementRequestRequest'] && typeof _modelClasses['CreateSettlementRequestRequest'].validateJSON === 'function') {
|
|
1227
|
+
_modelClasses['CreateSettlementRequestRequest'].validateJSON(postBody);
|
|
1228
|
+
}
|
|
1229
|
+
}
|
|
895
1230
|
var pathParams = {};
|
|
896
1231
|
var queryParams = {};
|
|
897
1232
|
var headerParams = {};
|
|
@@ -933,6 +1268,21 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
933
1268
|
if (postBody && postBody.toJSON) {
|
|
934
1269
|
postBody = postBody.toJSON();
|
|
935
1270
|
}
|
|
1271
|
+
// Validate opts key — must be exactly 'CreateTopUpAddresses'
|
|
1272
|
+
if (postBody === undefined && opts) {
|
|
1273
|
+
var _providedKeys = Object.keys(opts).filter(function (k) {
|
|
1274
|
+
return k !== '_base_path_index';
|
|
1275
|
+
});
|
|
1276
|
+
if (_providedKeys.length > 0) {
|
|
1277
|
+
throw new Error('createTopUpAddresses(): unrecognized opts key [' + _providedKeys.join(', ') + ']. Expected: "CreateTopUpAddresses".');
|
|
1278
|
+
}
|
|
1279
|
+
}
|
|
1280
|
+
// Validate request body before sending
|
|
1281
|
+
if (postBody !== null && postBody !== undefined) {
|
|
1282
|
+
if (_modelClasses['CreateTopUpAddresses'] && typeof _modelClasses['CreateTopUpAddresses'].validateJSON === 'function') {
|
|
1283
|
+
_modelClasses['CreateTopUpAddresses'].validateJSON(postBody);
|
|
1284
|
+
}
|
|
1285
|
+
}
|
|
936
1286
|
var pathParams = {};
|
|
937
1287
|
var queryParams = {};
|
|
938
1288
|
var headerParams = {};
|
|
@@ -1982,7 +2332,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1982
2332
|
* Create/Get top-up address
|
|
1983
2333
|
* This operation creates or retrieves a unique top-up address for a payer. In the request, you need to provide the `custom_payer_id` parameter to identify the payer in your system and link them to the top-up address. - If no address exists for the payer on the specified chain, a new address will be created and returned. - If an address already exists for the payer on the specified chain, the existing address details will be returned. You can also provide the `merchant_id` parameter to specify the merchant to which the payer belongs. If not provided, the default merchant will be used.
|
|
1984
2334
|
* @param {String} token_id The token ID, which is a unique identifier that specifies both the blockchain network and cryptocurrency token in the format `{CHAIN}_{TOKEN}`. Supported values include: - USDC: `ETH_USDC`, `ARBITRUM_USDCOIN`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC2`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
|
|
1985
|
-
* @param {String} custom_payer_id
|
|
2335
|
+
* @param {String} custom_payer_id Unique customer identifier on the merchant side, used to allocate a dedicated top-up address
|
|
1986
2336
|
* @param {Object} opts Optional parameters
|
|
1987
2337
|
* @param {String} [merchant_id] The merchant ID.
|
|
1988
2338
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TopUpAddress} and HTTP response
|
|
@@ -2022,7 +2372,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2022
2372
|
* Create/Get top-up address
|
|
2023
2373
|
* This operation creates or retrieves a unique top-up address for a payer. In the request, you need to provide the `custom_payer_id` parameter to identify the payer in your system and link them to the top-up address. - If no address exists for the payer on the specified chain, a new address will be created and returned. - If an address already exists for the payer on the specified chain, the existing address details will be returned. You can also provide the `merchant_id` parameter to specify the merchant to which the payer belongs. If not provided, the default merchant will be used.
|
|
2024
2374
|
* @param {String} token_id The token ID, which is a unique identifier that specifies both the blockchain network and cryptocurrency token in the format `{CHAIN}_{TOKEN}`. Supported values include: - USDC: `ETH_USDC`, `ARBITRUM_USDCOIN`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC2`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
|
|
2025
|
-
* @param {String} custom_payer_id
|
|
2375
|
+
* @param {String} custom_payer_id Unique customer identifier on the merchant side, used to allocate a dedicated top-up address
|
|
2026
2376
|
* @param {Object} opts Optional parameters
|
|
2027
2377
|
* @param {String} opts.merchant_id The merchant ID.
|
|
2028
2378
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TopUpAddress}
|
|
@@ -2096,42 +2446,6 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2096
2446
|
});
|
|
2097
2447
|
}
|
|
2098
2448
|
|
|
2099
|
-
/**
|
|
2100
|
-
* List all bank accounts
|
|
2101
|
-
* <Note>This operation has been deprecated. Please use [List counterparty entries](https://www.cobo.com/payments/en/api-references/payment/list-counterparty-entries) instead.</Note> This operation retrieves the information of all bank accounts registered.
|
|
2102
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/BankAccount>} and HTTP response
|
|
2103
|
-
*/
|
|
2104
|
-
}, {
|
|
2105
|
-
key: "listBankAccountsWithHttpInfo",
|
|
2106
|
-
value: function listBankAccountsWithHttpInfo() {
|
|
2107
|
-
var postBody = null;
|
|
2108
|
-
if (postBody && postBody.toJSON) {
|
|
2109
|
-
postBody = postBody.toJSON();
|
|
2110
|
-
}
|
|
2111
|
-
var pathParams = {};
|
|
2112
|
-
var queryParams = {};
|
|
2113
|
-
var headerParams = {};
|
|
2114
|
-
var formParams = {};
|
|
2115
|
-
var authNames = ['OAuth2', 'CoboAuth'];
|
|
2116
|
-
var contentTypes = [];
|
|
2117
|
-
var accepts = ['application/json'];
|
|
2118
|
-
var returnType = [_BankAccount["default"]];
|
|
2119
|
-
return this.apiClient.callApi('/payments/bank_accounts', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
2120
|
-
}
|
|
2121
|
-
|
|
2122
|
-
/**
|
|
2123
|
-
* List all bank accounts
|
|
2124
|
-
* <Note>This operation has been deprecated. Please use [List counterparty entries](https://www.cobo.com/payments/en/api-references/payment/list-counterparty-entries) instead.</Note> This operation retrieves the information of all bank accounts registered.
|
|
2125
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/BankAccount>}
|
|
2126
|
-
*/
|
|
2127
|
-
}, {
|
|
2128
|
-
key: "listBankAccounts",
|
|
2129
|
-
value: function listBankAccounts() {
|
|
2130
|
-
return this.listBankAccountsWithHttpInfo().then(function (response_and_data) {
|
|
2131
|
-
return response_and_data.data;
|
|
2132
|
-
});
|
|
2133
|
-
}
|
|
2134
|
-
|
|
2135
2449
|
/**
|
|
2136
2450
|
* List all batch allocations
|
|
2137
2451
|
* This operation retrieves the information of all batch allocations.
|
|
@@ -2694,6 +3008,74 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2694
3008
|
});
|
|
2695
3009
|
}
|
|
2696
3010
|
|
|
3011
|
+
/**
|
|
3012
|
+
* List payer transactions
|
|
3013
|
+
* This operation retrieves on-chain transactions related to a specific top-up payer. You need to specify `custom_payer_id`, which is the merchant-defined customer identifier used when creating top-up addresses. <Note>This operation is applicable to the top-up scenario only.</Note> For more information, see [Cobo Payments Guide](https://www.cobo.com/payments/en/guides/overview).
|
|
3014
|
+
* @param {String} custom_payer_id Unique customer identifier on the merchant side, used to allocate a dedicated top-up address
|
|
3015
|
+
* @param {Object} opts Optional parameters
|
|
3016
|
+
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
3017
|
+
* @param {String} [before] A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response.
|
|
3018
|
+
* @param {String} [after] A cursor indicating the position after the current page. This value is generated by Cobo and returned in the response. You do not need to provide it on the first request. When paginating forward (to the next page), you should pass the after value returned from the last response.
|
|
3019
|
+
* @param {String} [merchant_id] The merchant ID.
|
|
3020
|
+
* @param {String} [token_id] The token ID, which is a unique identifier that specifies both the blockchain network and cryptocurrency token in the format `{CHAIN}_{TOKEN}`. Supported values include: - USDC: `ETH_USDC`, `ARBITRUM_USDCOIN`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC2`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
|
|
3021
|
+
* @param {String} [transaction_hashes] A list of transaction hashes, separated by comma.
|
|
3022
|
+
* @param {String} [transaction_ids] A list of transaction IDs, separated by comma.
|
|
3023
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListPayerTransactions200Response} and HTTP response
|
|
3024
|
+
*/
|
|
3025
|
+
}, {
|
|
3026
|
+
key: "listPayerTransactionsWithHttpInfo",
|
|
3027
|
+
value: function listPayerTransactionsWithHttpInfo(custom_payer_id, opts) {
|
|
3028
|
+
opts = opts || {};
|
|
3029
|
+
var postBody = null;
|
|
3030
|
+
if (postBody && postBody.toJSON) {
|
|
3031
|
+
postBody = postBody.toJSON();
|
|
3032
|
+
}
|
|
3033
|
+
// verify the required parameter 'custom_payer_id' is set
|
|
3034
|
+
if (custom_payer_id === undefined || custom_payer_id === null) {
|
|
3035
|
+
throw new Error("Missing the required parameter 'custom_payer_id' when calling listPayerTransactions");
|
|
3036
|
+
}
|
|
3037
|
+
var pathParams = {};
|
|
3038
|
+
var queryParams = {
|
|
3039
|
+
'limit': opts['limit'],
|
|
3040
|
+
'before': opts['before'],
|
|
3041
|
+
'after': opts['after'],
|
|
3042
|
+
'merchant_id': opts['merchant_id'],
|
|
3043
|
+
'custom_payer_id': custom_payer_id,
|
|
3044
|
+
'token_id': opts['token_id'],
|
|
3045
|
+
'transaction_hashes': opts['transaction_hashes'],
|
|
3046
|
+
'transaction_ids': opts['transaction_ids']
|
|
3047
|
+
};
|
|
3048
|
+
var headerParams = {};
|
|
3049
|
+
var formParams = {};
|
|
3050
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
3051
|
+
var contentTypes = [];
|
|
3052
|
+
var accepts = ['application/json'];
|
|
3053
|
+
var returnType = _ListPayerTransactions200Response["default"];
|
|
3054
|
+
return this.apiClient.callApi('/payments/topup/payers/transactions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
3055
|
+
}
|
|
3056
|
+
|
|
3057
|
+
/**
|
|
3058
|
+
* List payer transactions
|
|
3059
|
+
* This operation retrieves on-chain transactions related to a specific top-up payer. You need to specify `custom_payer_id`, which is the merchant-defined customer identifier used when creating top-up addresses. <Note>This operation is applicable to the top-up scenario only.</Note> For more information, see [Cobo Payments Guide](https://www.cobo.com/payments/en/guides/overview).
|
|
3060
|
+
* @param {String} custom_payer_id Unique customer identifier on the merchant side, used to allocate a dedicated top-up address
|
|
3061
|
+
* @param {Object} opts Optional parameters
|
|
3062
|
+
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
3063
|
+
* @param {String} opts.before A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response.
|
|
3064
|
+
* @param {String} opts.after A cursor indicating the position after the current page. This value is generated by Cobo and returned in the response. You do not need to provide it on the first request. When paginating forward (to the next page), you should pass the after value returned from the last response.
|
|
3065
|
+
* @param {String} opts.merchant_id The merchant ID.
|
|
3066
|
+
* @param {String} opts.token_id The token ID, which is a unique identifier that specifies both the blockchain network and cryptocurrency token in the format `{CHAIN}_{TOKEN}`. Supported values include: - USDC: `ETH_USDC`, `ARBITRUM_USDCOIN`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC2`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
|
|
3067
|
+
* @param {String} opts.transaction_hashes A list of transaction hashes, separated by comma.
|
|
3068
|
+
* @param {String} opts.transaction_ids A list of transaction IDs, separated by comma.
|
|
3069
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListPayerTransactions200Response}
|
|
3070
|
+
*/
|
|
3071
|
+
}, {
|
|
3072
|
+
key: "listPayerTransactions",
|
|
3073
|
+
value: function listPayerTransactions(custom_payer_id, opts) {
|
|
3074
|
+
return this.listPayerTransactionsWithHttpInfo(custom_payer_id, opts).then(function (response_and_data) {
|
|
3075
|
+
return response_and_data.data;
|
|
3076
|
+
});
|
|
3077
|
+
}
|
|
3078
|
+
|
|
2697
3079
|
/**
|
|
2698
3080
|
* List all pay-in orders
|
|
2699
3081
|
* This operation retrieves the information of all pay-in orders. You can filter the result by merchant ID.
|
|
@@ -3054,7 +3436,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
3054
3436
|
|
|
3055
3437
|
/**
|
|
3056
3438
|
* List payers
|
|
3057
|
-
* This operation retrieves the information of all payers
|
|
3439
|
+
* This operation retrieves the information of all payers. You can filter the result by merchant ID and payer_id. <Note>The `transactions` field in the response returns up to the latest 200 transactions only. This field will be removed in a future version. To paginate through payer transactions, use [List payer transactions](https://www.cobo.com/payments/en/guides/overview).</Note>
|
|
3058
3440
|
* @param {Object} opts Optional parameters
|
|
3059
3441
|
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
3060
3442
|
* @param {String} [before] A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response.
|
|
@@ -3090,7 +3472,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
3090
3472
|
|
|
3091
3473
|
/**
|
|
3092
3474
|
* List payers
|
|
3093
|
-
* This operation retrieves the information of all payers
|
|
3475
|
+
* This operation retrieves the information of all payers. You can filter the result by merchant ID and payer_id. <Note>The `transactions` field in the response returns up to the latest 200 transactions only. This field will be removed in a future version. To paginate through payer transactions, use [List payer transactions](https://www.cobo.com/payments/en/guides/overview).</Note>
|
|
3094
3476
|
* @param {Object} opts Optional parameters
|
|
3095
3477
|
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
3096
3478
|
* @param {String} opts.before A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response.
|
|
@@ -3122,6 +3504,21 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
3122
3504
|
if (postBody && postBody.toJSON) {
|
|
3123
3505
|
postBody = postBody.toJSON();
|
|
3124
3506
|
}
|
|
3507
|
+
// Validate opts key — must be exactly 'PaymentEstimateFeeRequest'
|
|
3508
|
+
if (postBody === undefined && opts) {
|
|
3509
|
+
var _providedKeys = Object.keys(opts).filter(function (k) {
|
|
3510
|
+
return k !== '_base_path_index';
|
|
3511
|
+
});
|
|
3512
|
+
if (_providedKeys.length > 0) {
|
|
3513
|
+
throw new Error('paymentEstimateFee(): unrecognized opts key [' + _providedKeys.join(', ') + ']. Expected: "PaymentEstimateFeeRequest".');
|
|
3514
|
+
}
|
|
3515
|
+
}
|
|
3516
|
+
// Validate request body before sending
|
|
3517
|
+
if (postBody !== null && postBody !== undefined) {
|
|
3518
|
+
if (_modelClasses['PaymentEstimateFeeRequest'] && typeof _modelClasses['PaymentEstimateFeeRequest'].validateJSON === 'function') {
|
|
3519
|
+
_modelClasses['PaymentEstimateFeeRequest'].validateJSON(postBody);
|
|
3520
|
+
}
|
|
3521
|
+
}
|
|
3125
3522
|
var pathParams = {};
|
|
3126
3523
|
var queryParams = {};
|
|
3127
3524
|
var headerParams = {};
|
|
@@ -3163,6 +3560,21 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
3163
3560
|
if (postBody && postBody.toJSON) {
|
|
3164
3561
|
postBody = postBody.toJSON();
|
|
3165
3562
|
}
|
|
3563
|
+
// Validate opts key — must be exactly 'TriggerTestPaymentsWebhookEventRequest'
|
|
3564
|
+
if (postBody === undefined && opts) {
|
|
3565
|
+
var _providedKeys = Object.keys(opts).filter(function (k) {
|
|
3566
|
+
return k !== '_base_path_index';
|
|
3567
|
+
});
|
|
3568
|
+
if (_providedKeys.length > 0) {
|
|
3569
|
+
throw new Error('triggerTestPaymentsWebhookEvent(): unrecognized opts key [' + _providedKeys.join(', ') + ']. Expected: "TriggerTestPaymentsWebhookEventRequest".');
|
|
3570
|
+
}
|
|
3571
|
+
}
|
|
3572
|
+
// Validate request body before sending
|
|
3573
|
+
if (postBody !== null && postBody !== undefined) {
|
|
3574
|
+
if (_modelClasses['TriggerTestPaymentsWebhookEventRequest'] && typeof _modelClasses['TriggerTestPaymentsWebhookEventRequest'].validateJSON === 'function') {
|
|
3575
|
+
_modelClasses['TriggerTestPaymentsWebhookEventRequest'].validateJSON(postBody);
|
|
3576
|
+
}
|
|
3577
|
+
}
|
|
3166
3578
|
var pathParams = {};
|
|
3167
3579
|
var queryParams = {};
|
|
3168
3580
|
var headerParams = {};
|
|
@@ -3189,55 +3601,6 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
3189
3601
|
});
|
|
3190
3602
|
}
|
|
3191
3603
|
|
|
3192
|
-
/**
|
|
3193
|
-
* Update bank account
|
|
3194
|
-
* <Note>This operation has been deprecated.</Note> This operation updates the information of an existing bank account.
|
|
3195
|
-
* @param {String} bank_account_id The bank account ID.
|
|
3196
|
-
* @param {Object} opts Optional parameters
|
|
3197
|
-
* @param {module:model/UpdateBankAccountByIdRequest} [UpdateBankAccountByIdRequest] The request body for updating an existing bank account.
|
|
3198
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/BankAccount} and HTTP response
|
|
3199
|
-
*/
|
|
3200
|
-
}, {
|
|
3201
|
-
key: "updateBankAccountByIdWithHttpInfo",
|
|
3202
|
-
value: function updateBankAccountByIdWithHttpInfo(bank_account_id, opts) {
|
|
3203
|
-
opts = opts || {};
|
|
3204
|
-
var postBody = opts['UpdateBankAccountByIdRequest'];
|
|
3205
|
-
if (postBody && postBody.toJSON) {
|
|
3206
|
-
postBody = postBody.toJSON();
|
|
3207
|
-
}
|
|
3208
|
-
// verify the required parameter 'bank_account_id' is set
|
|
3209
|
-
if (bank_account_id === undefined || bank_account_id === null) {
|
|
3210
|
-
throw new Error("Missing the required parameter 'bank_account_id' when calling updateBankAccountById");
|
|
3211
|
-
}
|
|
3212
|
-
var pathParams = {
|
|
3213
|
-
'bank_account_id': bank_account_id
|
|
3214
|
-
};
|
|
3215
|
-
var queryParams = {};
|
|
3216
|
-
var headerParams = {};
|
|
3217
|
-
var formParams = {};
|
|
3218
|
-
var authNames = ['OAuth2', 'CoboAuth'];
|
|
3219
|
-
var contentTypes = ['application/json'];
|
|
3220
|
-
var accepts = ['application/json'];
|
|
3221
|
-
var returnType = _BankAccount["default"];
|
|
3222
|
-
return this.apiClient.callApi('/payments/bank_accounts/{bank_account_id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
3223
|
-
}
|
|
3224
|
-
|
|
3225
|
-
/**
|
|
3226
|
-
* Update bank account
|
|
3227
|
-
* <Note>This operation has been deprecated.</Note> This operation updates the information of an existing bank account.
|
|
3228
|
-
* @param {String} bank_account_id The bank account ID.
|
|
3229
|
-
* @param {Object} opts Optional parameters
|
|
3230
|
-
* @param {module:model/UpdateBankAccountByIdRequest} opts.UpdateBankAccountByIdRequest The request body for updating an existing bank account.
|
|
3231
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/BankAccount}
|
|
3232
|
-
*/
|
|
3233
|
-
}, {
|
|
3234
|
-
key: "updateBankAccountById",
|
|
3235
|
-
value: function updateBankAccountById(bank_account_id, opts) {
|
|
3236
|
-
return this.updateBankAccountByIdWithHttpInfo(bank_account_id, opts).then(function (response_and_data) {
|
|
3237
|
-
return response_and_data.data;
|
|
3238
|
-
});
|
|
3239
|
-
}
|
|
3240
|
-
|
|
3241
3604
|
/**
|
|
3242
3605
|
* Update counterparty
|
|
3243
3606
|
* This operation updates the information of a specified counterparty.
|
|
@@ -3258,6 +3621,21 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
3258
3621
|
if (counterparty_id === undefined || counterparty_id === null) {
|
|
3259
3622
|
throw new Error("Missing the required parameter 'counterparty_id' when calling updateCounterparty");
|
|
3260
3623
|
}
|
|
3624
|
+
// Validate opts key — must be exactly 'UpdateCounterpartyRequest'
|
|
3625
|
+
if (postBody === undefined && opts) {
|
|
3626
|
+
var _providedKeys = Object.keys(opts).filter(function (k) {
|
|
3627
|
+
return k !== '_base_path_index';
|
|
3628
|
+
});
|
|
3629
|
+
if (_providedKeys.length > 0) {
|
|
3630
|
+
throw new Error('updateCounterparty(): unrecognized opts key [' + _providedKeys.join(', ') + ']. Expected: "UpdateCounterpartyRequest".');
|
|
3631
|
+
}
|
|
3632
|
+
}
|
|
3633
|
+
// Validate request body before sending
|
|
3634
|
+
if (postBody !== null && postBody !== undefined) {
|
|
3635
|
+
if (_modelClasses['UpdateCounterpartyRequest'] && typeof _modelClasses['UpdateCounterpartyRequest'].validateJSON === 'function') {
|
|
3636
|
+
_modelClasses['UpdateCounterpartyRequest'].validateJSON(postBody);
|
|
3637
|
+
}
|
|
3638
|
+
}
|
|
3261
3639
|
var pathParams = {
|
|
3262
3640
|
'counterparty_id': counterparty_id
|
|
3263
3641
|
};
|
|
@@ -3307,6 +3685,21 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
3307
3685
|
if (destination_id === undefined || destination_id === null) {
|
|
3308
3686
|
throw new Error("Missing the required parameter 'destination_id' when calling updateDestination");
|
|
3309
3687
|
}
|
|
3688
|
+
// Validate opts key — must be exactly 'UpdateDestinationRequest'
|
|
3689
|
+
if (postBody === undefined && opts) {
|
|
3690
|
+
var _providedKeys = Object.keys(opts).filter(function (k) {
|
|
3691
|
+
return k !== '_base_path_index';
|
|
3692
|
+
});
|
|
3693
|
+
if (_providedKeys.length > 0) {
|
|
3694
|
+
throw new Error('updateDestination(): unrecognized opts key [' + _providedKeys.join(', ') + ']. Expected: "UpdateDestinationRequest".');
|
|
3695
|
+
}
|
|
3696
|
+
}
|
|
3697
|
+
// Validate request body before sending
|
|
3698
|
+
if (postBody !== null && postBody !== undefined) {
|
|
3699
|
+
if (_modelClasses['UpdateDestinationRequest'] && typeof _modelClasses['UpdateDestinationRequest'].validateJSON === 'function') {
|
|
3700
|
+
_modelClasses['UpdateDestinationRequest'].validateJSON(postBody);
|
|
3701
|
+
}
|
|
3702
|
+
}
|
|
3310
3703
|
var pathParams = {
|
|
3311
3704
|
'destination_id': destination_id
|
|
3312
3705
|
};
|
|
@@ -3356,6 +3749,21 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
3356
3749
|
if (destination_entry_id === undefined || destination_entry_id === null) {
|
|
3357
3750
|
throw new Error("Missing the required parameter 'destination_entry_id' when calling updateDestinationEntry");
|
|
3358
3751
|
}
|
|
3752
|
+
// Validate opts key — must be exactly 'UpdateDestinationEntryRequest'
|
|
3753
|
+
if (postBody === undefined && opts) {
|
|
3754
|
+
var _providedKeys = Object.keys(opts).filter(function (k) {
|
|
3755
|
+
return k !== '_base_path_index';
|
|
3756
|
+
});
|
|
3757
|
+
if (_providedKeys.length > 0) {
|
|
3758
|
+
throw new Error('updateDestinationEntry(): unrecognized opts key [' + _providedKeys.join(', ') + ']. Expected: "UpdateDestinationEntryRequest".');
|
|
3759
|
+
}
|
|
3760
|
+
}
|
|
3761
|
+
// Validate request body before sending
|
|
3762
|
+
if (postBody !== null && postBody !== undefined) {
|
|
3763
|
+
if (_modelClasses['UpdateDestinationEntryRequest'] && typeof _modelClasses['UpdateDestinationEntryRequest'].validateJSON === 'function') {
|
|
3764
|
+
_modelClasses['UpdateDestinationEntryRequest'].validateJSON(postBody);
|
|
3765
|
+
}
|
|
3766
|
+
}
|
|
3359
3767
|
var pathParams = {
|
|
3360
3768
|
'destination_entry_id': destination_entry_id
|
|
3361
3769
|
};
|
|
@@ -3405,6 +3813,21 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
3405
3813
|
if (merchant_id === undefined || merchant_id === null) {
|
|
3406
3814
|
throw new Error("Missing the required parameter 'merchant_id' when calling updateMerchantById");
|
|
3407
3815
|
}
|
|
3816
|
+
// Validate opts key — must be exactly 'UpdateMerchantByIdRequest'
|
|
3817
|
+
if (postBody === undefined && opts) {
|
|
3818
|
+
var _providedKeys = Object.keys(opts).filter(function (k) {
|
|
3819
|
+
return k !== '_base_path_index';
|
|
3820
|
+
});
|
|
3821
|
+
if (_providedKeys.length > 0) {
|
|
3822
|
+
throw new Error('updateMerchantById(): unrecognized opts key [' + _providedKeys.join(', ') + ']. Expected: "UpdateMerchantByIdRequest".');
|
|
3823
|
+
}
|
|
3824
|
+
}
|
|
3825
|
+
// Validate request body before sending
|
|
3826
|
+
if (postBody !== null && postBody !== undefined) {
|
|
3827
|
+
if (_modelClasses['UpdateMerchantByIdRequest'] && typeof _modelClasses['UpdateMerchantByIdRequest'].validateJSON === 'function') {
|
|
3828
|
+
_modelClasses['UpdateMerchantByIdRequest'].validateJSON(postBody);
|
|
3829
|
+
}
|
|
3830
|
+
}
|
|
3408
3831
|
var pathParams = {
|
|
3409
3832
|
'merchant_id': merchant_id
|
|
3410
3833
|
};
|
|
@@ -3454,6 +3877,21 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
3454
3877
|
if (order_id === undefined || order_id === null) {
|
|
3455
3878
|
throw new Error("Missing the required parameter 'order_id' when calling updatePaymentOrder");
|
|
3456
3879
|
}
|
|
3880
|
+
// Validate opts key — must be exactly 'UpdatePaymentOrderRequest'
|
|
3881
|
+
if (postBody === undefined && opts) {
|
|
3882
|
+
var _providedKeys = Object.keys(opts).filter(function (k) {
|
|
3883
|
+
return k !== '_base_path_index';
|
|
3884
|
+
});
|
|
3885
|
+
if (_providedKeys.length > 0) {
|
|
3886
|
+
throw new Error('updatePaymentOrder(): unrecognized opts key [' + _providedKeys.join(', ') + ']. Expected: "UpdatePaymentOrderRequest".');
|
|
3887
|
+
}
|
|
3888
|
+
}
|
|
3889
|
+
// Validate request body before sending
|
|
3890
|
+
if (postBody !== null && postBody !== undefined) {
|
|
3891
|
+
if (_modelClasses['UpdatePaymentOrderRequest'] && typeof _modelClasses['UpdatePaymentOrderRequest'].validateJSON === 'function') {
|
|
3892
|
+
_modelClasses['UpdatePaymentOrderRequest'].validateJSON(postBody);
|
|
3893
|
+
}
|
|
3894
|
+
}
|
|
3457
3895
|
var pathParams = {
|
|
3458
3896
|
'order_id': order_id
|
|
3459
3897
|
};
|
|
@@ -3503,6 +3941,21 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
3503
3941
|
if (refund_id === undefined || refund_id === null) {
|
|
3504
3942
|
throw new Error("Missing the required parameter 'refund_id' when calling updateRefundById");
|
|
3505
3943
|
}
|
|
3944
|
+
// Validate opts key — must be exactly 'UpdateRefundByIdRequest'
|
|
3945
|
+
if (postBody === undefined && opts) {
|
|
3946
|
+
var _providedKeys = Object.keys(opts).filter(function (k) {
|
|
3947
|
+
return k !== '_base_path_index';
|
|
3948
|
+
});
|
|
3949
|
+
if (_providedKeys.length > 0) {
|
|
3950
|
+
throw new Error('updateRefundById(): unrecognized opts key [' + _providedKeys.join(', ') + ']. Expected: "UpdateRefundByIdRequest".');
|
|
3951
|
+
}
|
|
3952
|
+
}
|
|
3953
|
+
// Validate request body before sending
|
|
3954
|
+
if (postBody !== null && postBody !== undefined) {
|
|
3955
|
+
if (_modelClasses['UpdateRefundByIdRequest'] && typeof _modelClasses['UpdateRefundByIdRequest'].validateJSON === 'function') {
|
|
3956
|
+
_modelClasses['UpdateRefundByIdRequest'].validateJSON(postBody);
|
|
3957
|
+
}
|
|
3958
|
+
}
|
|
3506
3959
|
var pathParams = {
|
|
3507
3960
|
'refund_id': refund_id
|
|
3508
3961
|
};
|
|
@@ -3547,6 +4000,21 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
3547
4000
|
if (postBody && postBody.toJSON) {
|
|
3548
4001
|
postBody = postBody.toJSON();
|
|
3549
4002
|
}
|
|
4003
|
+
// Validate opts key — must be exactly 'UpdateTopUpAddress'
|
|
4004
|
+
if (postBody === undefined && opts) {
|
|
4005
|
+
var _providedKeys = Object.keys(opts).filter(function (k) {
|
|
4006
|
+
return k !== '_base_path_index';
|
|
4007
|
+
});
|
|
4008
|
+
if (_providedKeys.length > 0) {
|
|
4009
|
+
throw new Error('updateTopUpAddress(): unrecognized opts key [' + _providedKeys.join(', ') + ']. Expected: "UpdateTopUpAddress".');
|
|
4010
|
+
}
|
|
4011
|
+
}
|
|
4012
|
+
// Validate request body before sending
|
|
4013
|
+
if (postBody !== null && postBody !== undefined) {
|
|
4014
|
+
if (_modelClasses['UpdateTopUpAddress'] && typeof _modelClasses['UpdateTopUpAddress'].validateJSON === 'function') {
|
|
4015
|
+
_modelClasses['UpdateTopUpAddress'].validateJSON(postBody);
|
|
4016
|
+
}
|
|
4017
|
+
}
|
|
3550
4018
|
var pathParams = {};
|
|
3551
4019
|
var queryParams = {};
|
|
3552
4020
|
var headerParams = {};
|