@moovio/sdk 0.0.0-dev.15 → 0.0.0-dev.16
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 +73 -59
- package/bin/mcp-server.js +2976 -1864
- package/bin/mcp-server.js.map +93 -61
- package/funcs/googlePayLinkToken.d.ts +3 -1
- package/funcs/googlePayLinkToken.d.ts.map +1 -1
- package/funcs/googlePayLinkToken.js +3 -1
- package/funcs/googlePayLinkToken.js.map +1 -1
- package/funcs/transferConfigCreate.d.ts +15 -0
- package/funcs/transferConfigCreate.d.ts.map +1 -0
- package/funcs/transferConfigCreate.js +128 -0
- package/funcs/transferConfigCreate.js.map +1 -0
- package/funcs/transferConfigGet.d.ts +14 -0
- package/funcs/transferConfigGet.d.ts.map +1 -0
- package/funcs/transferConfigGet.js +122 -0
- package/funcs/transferConfigGet.js.map +1 -0
- package/funcs/transferConfigUpdate.d.ts +15 -0
- package/funcs/transferConfigUpdate.d.ts.map +1 -0
- package/funcs/transferConfigUpdate.js +126 -0
- package/funcs/transferConfigUpdate.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +7 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/accountTerminalApplicationsGet.d.ts +1 -1
- package/mcp-server/tools/accountTerminalApplicationsGetConfiguration.d.ts +1 -1
- package/mcp-server/tools/accountTerminalApplicationsLink.d.ts +1 -1
- package/mcp-server/tools/accountTerminalApplicationsList.d.ts +1 -1
- package/mcp-server/tools/accountsAssignCountries.d.ts +1 -1
- package/mcp-server/tools/accountsConnect.d.ts +1 -1
- package/mcp-server/tools/accountsCreate.d.ts +1 -1
- package/mcp-server/tools/accountsDisconnect.d.ts +1 -1
- package/mcp-server/tools/accountsGet.d.ts +1 -1
- package/mcp-server/tools/accountsGetCountries.d.ts +1 -1
- package/mcp-server/tools/accountsGetMerchantProcessingAgreement.d.ts +1 -1
- package/mcp-server/tools/accountsGetTermsOfServiceToken.d.ts +1 -1
- package/mcp-server/tools/accountsList.d.ts +1 -1
- package/mcp-server/tools/accountsListConnected.d.ts +1 -1
- package/mcp-server/tools/accountsUpdate.d.ts +1 -1
- package/mcp-server/tools/adjustmentsGet.d.ts +1 -1
- package/mcp-server/tools/adjustmentsList.d.ts +1 -1
- package/mcp-server/tools/applePayCreateSession.d.ts +1 -1
- package/mcp-server/tools/applePayGetMerchantDomains.d.ts +1 -1
- package/mcp-server/tools/applePayLinkToken.d.ts +1 -1
- package/mcp-server/tools/applePayRegisterMerchantDomains.d.ts +1 -1
- package/mcp-server/tools/applePayUpdateMerchantDomains.d.ts +1 -1
- package/mcp-server/tools/authenticationCreateAccessToken.d.ts +1 -1
- package/mcp-server/tools/authenticationRevokeAccessToken.d.ts +1 -1
- package/mcp-server/tools/avatarsGet.d.ts +1 -1
- package/mcp-server/tools/bankAccountsCompleteMicroDeposits.d.ts +1 -1
- package/mcp-server/tools/bankAccountsCompleteVerification.d.ts +1 -1
- package/mcp-server/tools/bankAccountsDisable.d.ts +1 -1
- package/mcp-server/tools/bankAccountsGet.d.ts +1 -1
- package/mcp-server/tools/bankAccountsGetVerification.d.ts +1 -1
- package/mcp-server/tools/bankAccountsInitiateMicroDeposits.d.ts +1 -1
- package/mcp-server/tools/bankAccountsInitiateVerification.d.ts +1 -1
- package/mcp-server/tools/bankAccountsLink.d.ts +1 -1
- package/mcp-server/tools/bankAccountsList.d.ts +1 -1
- package/mcp-server/tools/brandingCreate.d.ts +1 -1
- package/mcp-server/tools/brandingGet.d.ts +1 -1
- package/mcp-server/tools/brandingUpsert.d.ts +1 -1
- package/mcp-server/tools/capabilitiesDisable.d.ts +1 -1
- package/mcp-server/tools/capabilitiesGet.d.ts +1 -1
- package/mcp-server/tools/capabilitiesList.d.ts +1 -1
- package/mcp-server/tools/capabilitiesRequest.d.ts +1 -1
- package/mcp-server/tools/cardIssuingGet.d.ts +1 -1
- package/mcp-server/tools/cardIssuingGetFull.d.ts +1 -1
- package/mcp-server/tools/cardIssuingList.d.ts +1 -1
- package/mcp-server/tools/cardIssuingRequest.d.ts +1 -1
- package/mcp-server/tools/cardIssuingUpdate.d.ts +1 -1
- package/mcp-server/tools/cardsDisable.d.ts +1 -1
- package/mcp-server/tools/cardsGet.d.ts +1 -1
- package/mcp-server/tools/cardsLink.d.ts +1 -1
- package/mcp-server/tools/cardsList.d.ts +1 -1
- package/mcp-server/tools/cardsUpdate.d.ts +1 -1
- package/mcp-server/tools/disputesAccept.d.ts +1 -1
- package/mcp-server/tools/disputesDeleteEvidence.d.ts +1 -1
- package/mcp-server/tools/disputesGet.d.ts +1 -1
- package/mcp-server/tools/disputesGetEvidence.d.ts +1 -1
- package/mcp-server/tools/disputesGetEvidenceData.d.ts +1 -1
- package/mcp-server/tools/disputesList.d.ts +1 -1
- package/mcp-server/tools/disputesListEvidence.d.ts +1 -1
- package/mcp-server/tools/disputesSubmitEvidence.d.ts +1 -1
- package/mcp-server/tools/disputesUpdateEvidence.d.ts +1 -1
- package/mcp-server/tools/disputesUploadEvidenceFile.d.ts +1 -1
- package/mcp-server/tools/disputesUploadEvidenceText.d.ts +1 -1
- package/mcp-server/tools/endToEndEncryptionTestEncryptedToken.d.ts +1 -1
- package/mcp-server/tools/enrichedAddressGet.d.ts +1 -1
- package/mcp-server/tools/enrichedProfileGet.d.ts +1 -1
- package/mcp-server/tools/feePlansCreateFeePlanAgreements.d.ts +1 -1
- package/mcp-server/tools/feePlansGetResidual.d.ts +1 -1
- package/mcp-server/tools/feePlansListFeePlanAgreements.d.ts +1 -1
- package/mcp-server/tools/feePlansListFeePlans.d.ts +1 -1
- package/mcp-server/tools/feePlansListFeeRevenue.d.ts +1 -1
- package/mcp-server/tools/feePlansListFeesFetch.d.ts +1 -1
- package/mcp-server/tools/feePlansListPartnerPricingAgreements.d.ts +1 -1
- package/mcp-server/tools/feePlansListResidualFees.d.ts +1 -1
- package/mcp-server/tools/feePlansListResiduals.d.ts +1 -1
- package/mcp-server/tools/feePlansRetrieveFees.d.ts +1 -1
- package/mcp-server/tools/filesGet.d.ts +1 -1
- package/mcp-server/tools/filesList.d.ts +1 -1
- package/mcp-server/tools/filesUpload.d.ts +1 -1
- package/mcp-server/tools/googlePayLinkToken.d.ts +1 -1
- package/mcp-server/tools/googlePayLinkToken.d.ts.map +1 -1
- package/mcp-server/tools/googlePayLinkToken.js +3 -1
- package/mcp-server/tools/googlePayLinkToken.js.map +1 -1
- package/mcp-server/tools/imagesDelete.d.ts +1 -1
- package/mcp-server/tools/imagesGetMetadata.d.ts +1 -1
- package/mcp-server/tools/imagesGetPublic.d.ts +1 -1
- package/mcp-server/tools/imagesList.d.ts +1 -1
- package/mcp-server/tools/imagesUpdate.d.ts +1 -1
- package/mcp-server/tools/imagesUpdateMetadata.d.ts +1 -1
- package/mcp-server/tools/imagesUpload.d.ts +1 -1
- package/mcp-server/tools/institutionsSearch.d.ts +1 -1
- package/mcp-server/tools/institutionsSearchInstitutions.d.ts +1 -1
- package/mcp-server/tools/invoicesCreateInvoice.d.ts +1 -1
- package/mcp-server/tools/invoicesCreateInvoicePayment.d.ts +1 -1
- package/mcp-server/tools/invoicesDelete.d.ts +1 -1
- package/mcp-server/tools/invoicesGetInvoice.d.ts +1 -1
- package/mcp-server/tools/invoicesListInvoicePayments.d.ts +1 -1
- package/mcp-server/tools/invoicesListInvoices.d.ts +1 -1
- package/mcp-server/tools/invoicesUpdateInvoice.d.ts +1 -1
- package/mcp-server/tools/issuingTransactionsGet.d.ts +1 -1
- package/mcp-server/tools/issuingTransactionsGetAuthorization.d.ts +1 -1
- package/mcp-server/tools/issuingTransactionsList.d.ts +1 -1
- package/mcp-server/tools/issuingTransactionsListAuthorizationEvents.d.ts +1 -1
- package/mcp-server/tools/issuingTransactionsListAuthorizations.d.ts +1 -1
- package/mcp-server/tools/onboardingCreateInvite.d.ts +1 -1
- package/mcp-server/tools/onboardingGetInvite.d.ts +1 -1
- package/mcp-server/tools/onboardingRevokeInvite.d.ts +1 -1
- package/mcp-server/tools/paymentLinksCreate.d.ts +1 -1
- package/mcp-server/tools/paymentLinksDisable.d.ts +1 -1
- package/mcp-server/tools/paymentLinksGet.d.ts +1 -1
- package/mcp-server/tools/paymentLinksGetQRCode.d.ts +1 -1
- package/mcp-server/tools/paymentLinksList.d.ts +1 -1
- package/mcp-server/tools/paymentLinksUpdate.d.ts +1 -1
- package/mcp-server/tools/paymentMethodsGet.d.ts +1 -1
- package/mcp-server/tools/paymentMethodsList.d.ts +1 -1
- package/mcp-server/tools/productsCreate.d.ts +1 -1
- package/mcp-server/tools/productsDisable.d.ts +1 -1
- package/mcp-server/tools/productsGet.d.ts +1 -1
- package/mcp-server/tools/productsList.d.ts +1 -1
- package/mcp-server/tools/productsUpdate.d.ts +1 -1
- package/mcp-server/tools/receiptsList.d.ts +1 -1
- package/mcp-server/tools/representativesCreate.d.ts +1 -1
- package/mcp-server/tools/representativesDelete.d.ts +1 -1
- package/mcp-server/tools/representativesGet.d.ts +1 -1
- package/mcp-server/tools/representativesList.d.ts +1 -1
- package/mcp-server/tools/representativesUpdate.d.ts +1 -1
- package/mcp-server/tools/resolutionLinksCreate.d.ts +1 -1
- package/mcp-server/tools/resolutionLinksDisable.d.ts +1 -1
- package/mcp-server/tools/resolutionLinksGet.d.ts +1 -1
- package/mcp-server/tools/resolutionLinksList.d.ts +1 -1
- package/mcp-server/tools/schedulingCancel.d.ts +1 -1
- package/mcp-server/tools/schedulingCreate.d.ts +1 -1
- package/mcp-server/tools/schedulingGet.d.ts +1 -1
- package/mcp-server/tools/schedulingGetOccurrance.d.ts +1 -1
- package/mcp-server/tools/schedulingList.d.ts +1 -1
- package/mcp-server/tools/schedulingUpdate.d.ts +1 -1
- package/mcp-server/tools/statementsGet.d.ts +1 -1
- package/mcp-server/tools/statementsList.d.ts +1 -1
- package/mcp-server/tools/supportCreateTicket.d.ts +1 -1
- package/mcp-server/tools/supportGetTicket.d.ts +1 -1
- package/mcp-server/tools/supportListTicketMessages.d.ts +1 -1
- package/mcp-server/tools/supportListTickets.d.ts +1 -1
- package/mcp-server/tools/supportUpdateTicket.d.ts +1 -1
- package/mcp-server/tools/sweepsCreateConfig.d.ts +1 -1
- package/mcp-server/tools/sweepsGet.d.ts +1 -1
- package/mcp-server/tools/sweepsGetConfig.d.ts +1 -1
- package/mcp-server/tools/sweepsList.d.ts +1 -1
- package/mcp-server/tools/sweepsListConfigs.d.ts +1 -1
- package/mcp-server/tools/sweepsUpdateConfig.d.ts +1 -1
- package/mcp-server/tools/terminalApplicationsCreate.d.ts +1 -1
- package/mcp-server/tools/terminalApplicationsCreateVersion.d.ts +1 -1
- package/mcp-server/tools/terminalApplicationsDelete.d.ts +1 -1
- package/mcp-server/tools/terminalApplicationsGet.d.ts +1 -1
- package/mcp-server/tools/transferConfigCreate.d.ts +8 -0
- package/mcp-server/tools/transferConfigCreate.d.ts.map +1 -0
- package/mcp-server/tools/transferConfigCreate.js +62 -0
- package/mcp-server/tools/transferConfigCreate.js.map +1 -0
- package/mcp-server/tools/transferConfigGet.d.ts +8 -0
- package/mcp-server/tools/transferConfigGet.d.ts.map +1 -0
- package/mcp-server/tools/transferConfigGet.js +62 -0
- package/mcp-server/tools/transferConfigGet.js.map +1 -0
- package/mcp-server/tools/transferConfigUpdate.d.ts +8 -0
- package/mcp-server/tools/transferConfigUpdate.d.ts.map +1 -0
- package/mcp-server/tools/transferConfigUpdate.js +62 -0
- package/mcp-server/tools/transferConfigUpdate.js.map +1 -0
- package/mcp-server/tools/transfersBatchGetTransfers.d.ts +1 -1
- package/mcp-server/tools/transfersCreate.d.ts +1 -1
- package/mcp-server/tools/transfersCreateCancellation.d.ts +1 -1
- package/mcp-server/tools/transfersCreateReversal.d.ts +1 -1
- package/mcp-server/tools/transfersGenerateOptions.d.ts +1 -1
- package/mcp-server/tools/transfersGet.d.ts +1 -1
- package/mcp-server/tools/transfersGetCancellation.d.ts +1 -1
- package/mcp-server/tools/transfersGetRefund.d.ts +1 -1
- package/mcp-server/tools/transfersInitiateRefund.d.ts +1 -1
- package/mcp-server/tools/transfersList.d.ts +1 -1
- package/mcp-server/tools/transfersListRefunds.d.ts +1 -1
- package/mcp-server/tools/transfersUpdate.d.ts +1 -1
- package/mcp-server/tools/underwritingGet.d.ts +1 -1
- package/mcp-server/tools/underwritingSave.d.ts +1 -1
- package/mcp-server/tools/underwritingUpsert.d.ts +1 -1
- package/mcp-server/tools/walletTransactionsGet.d.ts +1 -1
- package/mcp-server/tools/walletTransactionsList.d.ts +1 -1
- package/mcp-server/tools/walletsCreate.d.ts +1 -1
- package/mcp-server/tools/walletsGet.d.ts +1 -1
- package/mcp-server/tools/walletsList.d.ts +1 -1
- package/mcp-server/tools/walletsUpdate.d.ts +1 -1
- package/mcp-server/tools/webhooksCreate.d.ts +1 -1
- package/mcp-server/tools/webhooksDisable.d.ts +1 -1
- package/mcp-server/tools/webhooksGet.d.ts +1 -1
- package/mcp-server/tools/webhooksGetSecret.d.ts +1 -1
- package/mcp-server/tools/webhooksPing.d.ts +1 -1
- package/mcp-server/tools/webhooksUpdate.d.ts +1 -1
- package/models/components/amountdecimalrange.d.ts +26 -0
- package/models/components/amountdecimalrange.d.ts.map +1 -0
- package/models/components/amountdecimalrange.js +61 -0
- package/models/components/amountdecimalrange.js.map +1 -0
- package/models/components/amountdecimalrangeupdate.d.ts +26 -0
- package/models/components/amountdecimalrangeupdate.d.ts.map +1 -0
- package/models/components/amountdecimalrangeupdate.js +62 -0
- package/models/components/amountdecimalrangeupdate.js.map +1 -0
- package/models/components/asynccreatedrefund.d.ts +3 -0
- package/models/components/asynccreatedrefund.d.ts.map +1 -1
- package/models/components/asynccreatedrefund.js +3 -0
- package/models/components/asynccreatedrefund.js.map +1 -1
- package/models/components/cardacquiringrefund.d.ts +3 -0
- package/models/components/cardacquiringrefund.d.ts.map +1 -1
- package/models/components/cardacquiringrefund.js +3 -0
- package/models/components/cardacquiringrefund.js.map +1 -1
- package/models/components/createdtransfer.d.ts +4 -1
- package/models/components/createdtransfer.d.ts.map +1 -1
- package/models/components/createdtransfer.js +3 -0
- package/models/components/createdtransfer.js.map +1 -1
- package/models/components/createpaymentlink.d.ts +18 -2
- package/models/components/createpaymentlink.d.ts.map +1 -1
- package/models/components/createpaymentlink.js +5 -2
- package/models/components/createpaymentlink.js.map +1 -1
- package/models/components/createpaymentlinkamountdetails.d.ts +21 -0
- package/models/components/createpaymentlinkamountdetails.d.ts.map +1 -0
- package/models/components/createpaymentlinkamountdetails.js +60 -0
- package/models/components/createpaymentlinkamountdetails.js.map +1 -0
- package/models/components/createpaymentlinkamountdetailsvalidationerror.d.ts +17 -0
- package/models/components/createpaymentlinkamountdetailsvalidationerror.d.ts.map +1 -0
- package/models/components/createpaymentlinkamountdetailsvalidationerror.js +59 -0
- package/models/components/createpaymentlinkamountdetailsvalidationerror.js.map +1 -0
- package/models/components/createrefund.d.ts +6 -0
- package/models/components/createrefund.d.ts.map +1 -1
- package/models/components/createrefund.js +3 -0
- package/models/components/createrefund.js.map +1 -1
- package/models/components/createtippresets.d.ts +36 -0
- package/models/components/createtippresets.d.ts.map +1 -0
- package/models/components/createtippresets.js +65 -0
- package/models/components/createtippresets.js.map +1 -0
- package/models/components/createtransfer.d.ts +3 -3
- package/models/components/createtransfer.d.ts.map +1 -1
- package/models/components/createtransfer.js +3 -0
- package/models/components/createtransfer.js.map +1 -1
- package/models/components/createtransferamountdetails.d.ts +26 -0
- package/models/components/createtransferamountdetails.d.ts.map +1 -0
- package/models/components/createtransferamountdetails.js +62 -0
- package/models/components/createtransferamountdetails.js.map +1 -0
- package/models/components/createtransferamountdetailsvalidationerror.d.ts +19 -0
- package/models/components/createtransferamountdetailsvalidationerror.d.ts.map +1 -0
- package/models/components/createtransferamountdetailsvalidationerror.js +61 -0
- package/models/components/createtransferamountdetailsvalidationerror.js.map +1 -0
- package/models/components/createtransferconfig.d.ts +18 -0
- package/models/components/createtransferconfig.d.ts.map +1 -0
- package/models/components/{googlepayintermediatesigningkey.js → createtransferconfig.js} +13 -14
- package/models/components/createtransferconfig.js.map +1 -0
- package/models/components/googlepayassurancedetails.d.ts +28 -0
- package/models/components/googlepayassurancedetails.d.ts.map +1 -0
- package/models/components/googlepayassurancedetails.js +61 -0
- package/models/components/googlepayassurancedetails.js.map +1 -0
- package/models/components/googlepaybillingaddress.d.ts +73 -0
- package/models/components/googlepaybillingaddress.d.ts.map +1 -0
- package/models/components/googlepaybillingaddress.js +77 -0
- package/models/components/googlepaybillingaddress.js.map +1 -0
- package/models/components/googlepaycardinfo.d.ts +91 -0
- package/models/components/googlepaycardinfo.d.ts.map +1 -0
- package/models/components/googlepaycardinfo.js +99 -0
- package/models/components/googlepaycardinfo.js.map +1 -0
- package/models/components/googlepaypaymentmethoddata.d.ts +65 -0
- package/models/components/googlepaypaymentmethoddata.d.ts.map +1 -0
- package/models/components/googlepaypaymentmethoddata.js +77 -0
- package/models/components/googlepaypaymentmethoddata.js.map +1 -0
- package/models/components/googlepaytokenizationdata.d.ts +47 -0
- package/models/components/googlepaytokenizationdata.d.ts.map +1 -0
- package/models/components/googlepaytokenizationdata.js +71 -0
- package/models/components/googlepaytokenizationdata.js.map +1 -0
- package/models/components/index.d.ts +24 -2
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +24 -2
- package/models/components/index.js.map +1 -1
- package/models/components/linkedgooglepaypaymentmethod.d.ts +5 -10
- package/models/components/linkedgooglepaypaymentmethod.d.ts.map +1 -1
- package/models/components/linkedgooglepaypaymentmethod.js +4 -11
- package/models/components/linkedgooglepaypaymentmethod.js.map +1 -1
- package/models/components/linkgooglepay.d.ts +17 -9
- package/models/components/linkgooglepay.d.ts.map +1 -1
- package/models/components/linkgooglepay.js +6 -3
- package/models/components/linkgooglepay.js.map +1 -1
- package/models/components/paymentlink.d.ts +15 -2
- package/models/components/paymentlink.d.ts.map +1 -1
- package/models/components/paymentlink.js +5 -2
- package/models/components/paymentlink.js.map +1 -1
- package/models/components/paymentlinkamountdetails.d.ts +21 -0
- package/models/components/paymentlinkamountdetails.d.ts.map +1 -0
- package/models/components/paymentlinkamountdetails.js +60 -0
- package/models/components/paymentlinkamountdetails.js.map +1 -0
- package/models/components/paymentlinkcustomeroptions.d.ts +5 -0
- package/models/components/paymentlinkcustomeroptions.d.ts.map +1 -1
- package/models/components/paymentlinkcustomeroptions.js +2 -0
- package/models/components/paymentlinkcustomeroptions.js.map +1 -1
- package/models/components/paymentlinkpaymentdetails.d.ts +33 -0
- package/models/components/paymentlinkpaymentdetails.d.ts.map +1 -1
- package/models/components/paymentlinkpaymentdetails.js +21 -1
- package/models/components/paymentlinkpaymentdetails.js.map +1 -1
- package/models/components/paymentlinkpaymentdetailsupdate.d.ts +33 -0
- package/models/components/paymentlinkpaymentdetailsupdate.d.ts.map +1 -1
- package/models/components/paymentlinkpaymentdetailsupdate.js +21 -1
- package/models/components/paymentlinkpaymentdetailsupdate.js.map +1 -1
- package/models/components/puttippresets.d.ts +36 -0
- package/models/components/puttippresets.d.ts.map +1 -0
- package/models/components/puttippresets.js +65 -0
- package/models/components/puttippresets.js.map +1 -0
- package/models/components/puttransferconfig.d.ts +18 -0
- package/models/components/puttransferconfig.d.ts.map +1 -0
- package/models/components/puttransferconfig.js +59 -0
- package/models/components/puttransferconfig.js.map +1 -0
- package/models/components/refundamountdetails.d.ts +21 -0
- package/models/components/refundamountdetails.d.ts.map +1 -0
- package/models/components/refundamountdetails.js +60 -0
- package/models/components/refundamountdetails.js.map +1 -0
- package/models/components/refundamountdetailsvalidationerror.d.ts +17 -0
- package/models/components/refundamountdetailsvalidationerror.d.ts.map +1 -0
- package/models/components/refundamountdetailsvalidationerror.js +59 -0
- package/models/components/refundamountdetailsvalidationerror.js.map +1 -0
- package/models/components/tipcalculationbasis.d.ts +26 -0
- package/models/components/tipcalculationbasis.d.ts.map +1 -0
- package/models/components/tipcalculationbasis.js +56 -0
- package/models/components/tipcalculationbasis.js.map +1 -0
- package/models/components/tippresets.d.ts +39 -0
- package/models/components/tippresets.d.ts.map +1 -0
- package/models/components/tippresets.js +65 -0
- package/models/components/tippresets.js.map +1 -0
- package/models/components/transfer.d.ts +3 -3
- package/models/components/transfer.d.ts.map +1 -1
- package/models/components/transfer.js +3 -0
- package/models/components/transfer.js.map +1 -1
- package/models/components/transferamountdetails.d.ts +26 -0
- package/models/components/transferamountdetails.d.ts.map +1 -0
- package/models/components/transferamountdetails.js +62 -0
- package/models/components/transferamountdetails.js.map +1 -0
- package/models/components/transferconfig.d.ts +24 -0
- package/models/components/transferconfig.d.ts.map +1 -0
- package/models/components/{googlepaytoken.js → transferconfig.js} +13 -19
- package/models/components/transferconfig.js.map +1 -0
- package/models/components/transferdestination.d.ts +6 -0
- package/models/components/transferdestination.d.ts.map +1 -1
- package/models/components/transferdestination.js +3 -0
- package/models/components/transferdestination.js.map +1 -1
- package/models/components/transfersource.d.ts +6 -0
- package/models/components/transfersource.d.ts.map +1 -1
- package/models/components/transfersource.js +3 -0
- package/models/components/transfersource.js.map +1 -1
- package/models/components/updatepaymentlink.d.ts +3 -0
- package/models/components/updatepaymentlink.d.ts.map +1 -1
- package/models/components/updatepaymentlink.js +3 -0
- package/models/components/updatepaymentlink.js.map +1 -1
- package/models/components/updatepaymentlinkamountdetails.d.ts +21 -0
- package/models/components/updatepaymentlinkamountdetails.d.ts.map +1 -0
- package/models/components/updatepaymentlinkamountdetails.js +60 -0
- package/models/components/updatepaymentlinkamountdetails.js.map +1 -0
- package/models/components/updatepaymentlinkamountdetailsvalidationerror.d.ts +17 -0
- package/models/components/updatepaymentlinkamountdetailsvalidationerror.d.ts.map +1 -0
- package/models/components/updatepaymentlinkamountdetailsvalidationerror.js +59 -0
- package/models/components/updatepaymentlinkamountdetailsvalidationerror.js.map +1 -0
- package/models/errors/cardacquiringrefund.d.ts +3 -0
- package/models/errors/cardacquiringrefund.d.ts.map +1 -1
- package/models/errors/cardacquiringrefund.js +4 -0
- package/models/errors/cardacquiringrefund.js.map +1 -1
- package/models/errors/createpaymentlinkerror.d.ts +3 -0
- package/models/errors/createpaymentlinkerror.d.ts.map +1 -1
- package/models/errors/createpaymentlinkerror.js +5 -0
- package/models/errors/createpaymentlinkerror.js.map +1 -1
- package/models/errors/index.d.ts +1 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +1 -0
- package/models/errors/index.js.map +1 -1
- package/models/errors/linkgooglepayerror.d.ts +14 -5
- package/models/errors/linkgooglepayerror.d.ts.map +1 -1
- package/models/errors/linkgooglepayerror.js +10 -4
- package/models/errors/linkgooglepayerror.js.map +1 -1
- package/models/errors/refundvalidationerror.d.ts +4 -0
- package/models/errors/refundvalidationerror.d.ts.map +1 -1
- package/models/errors/refundvalidationerror.js +6 -0
- package/models/errors/refundvalidationerror.js.map +1 -1
- package/models/errors/transfer.d.ts +3 -6
- package/models/errors/transfer.d.ts.map +1 -1
- package/models/errors/transfer.js +4 -0
- package/models/errors/transfer.js.map +1 -1
- package/models/errors/transferconfigvalidationerror.d.ts +43 -0
- package/models/errors/transferconfigvalidationerror.d.ts.map +1 -0
- package/models/errors/transferconfigvalidationerror.js +100 -0
- package/models/errors/transferconfigvalidationerror.js.map +1 -0
- package/models/errors/transfervalidationerror.d.ts +3 -0
- package/models/errors/transfervalidationerror.d.ts.map +1 -1
- package/models/errors/transfervalidationerror.js +5 -0
- package/models/errors/transfervalidationerror.js.map +1 -1
- package/models/errors/updatepaymentlinkerror.d.ts +3 -0
- package/models/errors/updatepaymentlinkerror.d.ts.map +1 -1
- package/models/errors/updatepaymentlinkerror.js +5 -0
- package/models/errors/updatepaymentlinkerror.js.map +1 -1
- package/models/operations/createtransferconfig.d.ts +42 -0
- package/models/operations/createtransferconfig.d.ts.map +1 -0
- package/models/operations/createtransferconfig.js +99 -0
- package/models/operations/createtransferconfig.js.map +1 -0
- package/models/operations/gettransferconfig.d.ts +37 -0
- package/models/operations/gettransferconfig.d.ts.map +1 -0
- package/models/operations/gettransferconfig.js +89 -0
- package/models/operations/gettransferconfig.js.map +1 -0
- package/models/operations/index.d.ts +3 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +3 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/updatetransferconfig.d.ts +39 -0
- package/models/operations/updatetransferconfig.d.ts.map +1 -0
- package/models/operations/updatetransferconfig.js +99 -0
- package/models/operations/updatetransferconfig.js.map +1 -0
- package/package.json +1 -1
- package/sdk/googlepay.d.ts +3 -1
- package/sdk/googlepay.d.ts.map +1 -1
- package/sdk/googlepay.js +3 -1
- package/sdk/googlepay.js.map +1 -1
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/sdk/transferconfig.d.ts +17 -0
- package/sdk/transferconfig.d.ts.map +1 -0
- package/sdk/transferconfig.js +33 -0
- package/sdk/transferconfig.js.map +1 -0
- package/src/funcs/googlePayLinkToken.ts +3 -1
- package/src/funcs/transferConfigCreate.ts +187 -0
- package/src/funcs/transferConfigGet.ts +172 -0
- package/src/funcs/transferConfigUpdate.ts +185 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +7 -1
- package/src/mcp-server/tools/googlePayLinkToken.ts +3 -1
- package/src/mcp-server/tools/transferConfigCreate.ts +35 -0
- package/src/mcp-server/tools/transferConfigGet.ts +35 -0
- package/src/mcp-server/tools/transferConfigUpdate.ts +35 -0
- package/src/models/components/amountdecimalrange.ts +67 -0
- package/src/models/components/amountdecimalrangeupdate.ts +68 -0
- package/src/models/components/asynccreatedrefund.ts +10 -0
- package/src/models/components/cardacquiringrefund.ts +10 -0
- package/src/models/components/createdtransfer.ts +11 -1
- package/src/models/components/createpaymentlink.ts +27 -4
- package/src/models/components/createpaymentlinkamountdetails.ts +63 -0
- package/src/models/components/createpaymentlinkamountdetailsvalidationerror.ts +63 -0
- package/src/models/components/createrefund.ts +13 -0
- package/src/models/components/createtippresets.ts +84 -0
- package/src/models/components/createtransfer.ts +10 -3
- package/src/models/components/createtransferamountdetails.ts +70 -0
- package/src/models/components/createtransferamountdetailsvalidationerror.ts +64 -0
- package/src/models/components/createtransferconfig.ts +58 -0
- package/src/models/components/googlepayassurancedetails.ts +65 -0
- package/src/models/components/googlepaybillingaddress.ts +126 -0
- package/src/models/components/googlepaycardinfo.ts +154 -0
- package/src/models/components/googlepaypaymentmethoddata.ts +121 -0
- package/src/models/components/googlepaytokenizationdata.ts +92 -0
- package/src/models/components/index.ts +24 -2
- package/src/models/components/linkedgooglepaypaymentmethod.ts +11 -22
- package/src/models/components/linkgooglepay.ts +26 -15
- package/src/models/components/paymentlink.ts +24 -4
- package/src/models/components/paymentlinkamountdetails.ts +61 -0
- package/src/models/components/paymentlinkcustomeroptions.ts +7 -0
- package/src/models/components/paymentlinkpaymentdetails.ts +60 -0
- package/src/models/components/paymentlinkpaymentdetailsupdate.ts +61 -0
- package/src/models/components/puttippresets.ts +80 -0
- package/src/models/components/puttransferconfig.ts +57 -0
- package/src/models/components/refundamountdetails.ts +61 -0
- package/src/models/components/refundamountdetailsvalidationerror.ts +55 -0
- package/src/models/components/tipcalculationbasis.ts +40 -0
- package/src/models/components/tippresets.ts +83 -0
- package/src/models/components/transfer.ts +10 -3
- package/src/models/components/transferamountdetails.ts +68 -0
- package/src/models/components/transferconfig.ts +60 -0
- package/src/models/components/transferdestination.ts +13 -0
- package/src/models/components/transfersource.ts +13 -0
- package/src/models/components/updatepaymentlink.ts +10 -0
- package/src/models/components/updatepaymentlinkamountdetails.ts +63 -0
- package/src/models/components/updatepaymentlinkamountdetailsvalidationerror.ts +63 -0
- package/src/models/errors/cardacquiringrefund.ts +6 -0
- package/src/models/errors/createpaymentlinkerror.ts +15 -0
- package/src/models/errors/index.ts +1 -0
- package/src/models/errors/linkgooglepayerror.ts +24 -8
- package/src/models/errors/refundvalidationerror.ts +12 -0
- package/src/models/errors/transfer.ts +6 -6
- package/src/models/errors/transferconfigvalidationerror.ts +111 -0
- package/src/models/errors/transfervalidationerror.ts +15 -0
- package/src/models/errors/updatepaymentlinkerror.ts +15 -0
- package/src/models/operations/createtransferconfig.ts +130 -0
- package/src/models/operations/gettransferconfig.ts +111 -0
- package/src/models/operations/index.ts +3 -0
- package/src/models/operations/updatetransferconfig.ts +127 -0
- package/src/sdk/googlepay.ts +3 -1
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/transferconfig.ts +54 -0
- package/models/components/googlepayintermediatesigningkey.d.ts +0 -28
- package/models/components/googlepayintermediatesigningkey.d.ts.map +0 -1
- package/models/components/googlepayintermediatesigningkey.js.map +0 -1
- package/models/components/googlepaytoken.d.ts +0 -44
- package/models/components/googlepaytoken.d.ts.map +0 -1
- package/models/components/googlepaytoken.js.map +0 -1
- package/src/models/components/googlepayintermediatesigningkey.ts +0 -67
- package/src/models/components/googlepaytoken.ts +0 -86
|
@@ -5,32 +5,40 @@
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import * as types from "../../types/primitives.js";
|
|
8
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
10
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
11
|
+
GooglePayPaymentMethodData,
|
|
12
|
+
GooglePayPaymentMethodData$inboundSchema,
|
|
13
|
+
GooglePayPaymentMethodData$Outbound,
|
|
14
|
+
GooglePayPaymentMethodData$outboundSchema,
|
|
15
|
+
} from "./googlepaypaymentmethoddata.js";
|
|
15
16
|
|
|
16
17
|
/**
|
|
17
|
-
*
|
|
18
|
+
* Links a Google Pay token to a Moov account.
|
|
18
19
|
*
|
|
19
20
|
* @remarks
|
|
20
21
|
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
22
|
+
* The `paymentMethodData` field should contain the `paymentMethodData` property from the
|
|
23
|
+
* [PaymentData](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) response
|
|
24
|
+
* returned by Google Pay's client SDK. Pass it through unmodified.
|
|
23
25
|
*/
|
|
24
26
|
export type LinkGooglePay = {
|
|
25
27
|
/**
|
|
26
|
-
*
|
|
28
|
+
* The merchant accountID this token was minted for. Must match the `gatewayMerchantId`
|
|
27
29
|
*
|
|
28
30
|
* @remarks
|
|
31
|
+
* value passed to Google Pay when constructing the PaymentDataRequest. card-gateway validates
|
|
32
|
+
* that the decrypted `gatewayMerchantId` matches this value.
|
|
33
|
+
*/
|
|
34
|
+
merchantAccountID: string;
|
|
35
|
+
/**
|
|
36
|
+
* The `paymentMethodData` object from Google Pay's
|
|
29
37
|
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
38
|
+
* @remarks
|
|
39
|
+
* [PaymentData](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) response.
|
|
32
40
|
*/
|
|
33
|
-
|
|
41
|
+
paymentMethodData: GooglePayPaymentMethodData;
|
|
34
42
|
};
|
|
35
43
|
|
|
36
44
|
/** @internal */
|
|
@@ -39,11 +47,13 @@ export const LinkGooglePay$inboundSchema: z.ZodType<
|
|
|
39
47
|
z.ZodTypeDef,
|
|
40
48
|
unknown
|
|
41
49
|
> = z.object({
|
|
42
|
-
|
|
50
|
+
merchantAccountID: types.string(),
|
|
51
|
+
paymentMethodData: GooglePayPaymentMethodData$inboundSchema,
|
|
43
52
|
});
|
|
44
53
|
/** @internal */
|
|
45
54
|
export type LinkGooglePay$Outbound = {
|
|
46
|
-
|
|
55
|
+
merchantAccountID: string;
|
|
56
|
+
paymentMethodData: GooglePayPaymentMethodData$Outbound;
|
|
47
57
|
};
|
|
48
58
|
|
|
49
59
|
/** @internal */
|
|
@@ -52,7 +62,8 @@ export const LinkGooglePay$outboundSchema: z.ZodType<
|
|
|
52
62
|
z.ZodTypeDef,
|
|
53
63
|
LinkGooglePay
|
|
54
64
|
> = z.object({
|
|
55
|
-
|
|
65
|
+
merchantAccountID: z.string(),
|
|
66
|
+
paymentMethodData: GooglePayPaymentMethodData$outboundSchema,
|
|
56
67
|
});
|
|
57
68
|
|
|
58
69
|
export function linkGooglePayToJSON(linkGooglePay: LinkGooglePay): string {
|
|
@@ -14,6 +14,12 @@ import {
|
|
|
14
14
|
Amount$outboundSchema,
|
|
15
15
|
} from "./amount.js";
|
|
16
16
|
import { Mode, Mode$inboundSchema, Mode$outboundSchema } from "./mode.js";
|
|
17
|
+
import {
|
|
18
|
+
PaymentLinkAmountDetails,
|
|
19
|
+
PaymentLinkAmountDetails$inboundSchema,
|
|
20
|
+
PaymentLinkAmountDetails$Outbound,
|
|
21
|
+
PaymentLinkAmountDetails$outboundSchema,
|
|
22
|
+
} from "./paymentlinkamountdetails.js";
|
|
17
23
|
import {
|
|
18
24
|
PaymentLinkCustomerOptions,
|
|
19
25
|
PaymentLinkCustomerOptions$inboundSchema,
|
|
@@ -86,7 +92,17 @@ export type PaymentLink = {
|
|
|
86
92
|
* Link to the payment landing page for this payment link.
|
|
87
93
|
*/
|
|
88
94
|
link: string;
|
|
89
|
-
|
|
95
|
+
/**
|
|
96
|
+
* The fixed amount of the payment link.
|
|
97
|
+
*
|
|
98
|
+
* @remarks
|
|
99
|
+
*
|
|
100
|
+
* In API versions before `2026.07.00`, this was a required field.
|
|
101
|
+
*
|
|
102
|
+
* In API version `2026.07.00` and beyond, this field is required for `fixed` payment amount types and omitted
|
|
103
|
+
* for `open` payment amount types.
|
|
104
|
+
*/
|
|
105
|
+
amount?: Amount | undefined;
|
|
90
106
|
/**
|
|
91
107
|
* Optional sales tax amount.
|
|
92
108
|
*/
|
|
@@ -131,6 +147,7 @@ export type PaymentLink = {
|
|
|
131
147
|
createdOn: Date;
|
|
132
148
|
updatedOn: Date;
|
|
133
149
|
disabledOn?: Date | undefined;
|
|
150
|
+
amountDetails?: PaymentLinkAmountDetails | undefined;
|
|
134
151
|
};
|
|
135
152
|
|
|
136
153
|
/** @internal */
|
|
@@ -148,7 +165,7 @@ export const PaymentLink$inboundSchema: z.ZodType<
|
|
|
148
165
|
ownerAccountID: types.string(),
|
|
149
166
|
merchantPaymentMethodID: types.string(),
|
|
150
167
|
link: types.string(),
|
|
151
|
-
amount: Amount$inboundSchema,
|
|
168
|
+
amount: types.optional(Amount$inboundSchema),
|
|
152
169
|
salesTaxAmount: types.optional(Amount$inboundSchema),
|
|
153
170
|
uses: types.number(),
|
|
154
171
|
maxUses: types.optional(types.number()),
|
|
@@ -162,6 +179,7 @@ export const PaymentLink$inboundSchema: z.ZodType<
|
|
|
162
179
|
createdOn: types.date(),
|
|
163
180
|
updatedOn: types.date(),
|
|
164
181
|
disabledOn: types.optional(types.date()),
|
|
182
|
+
amountDetails: types.optional(PaymentLinkAmountDetails$inboundSchema),
|
|
165
183
|
});
|
|
166
184
|
/** @internal */
|
|
167
185
|
export type PaymentLink$Outbound = {
|
|
@@ -174,7 +192,7 @@ export type PaymentLink$Outbound = {
|
|
|
174
192
|
ownerAccountID: string;
|
|
175
193
|
merchantPaymentMethodID: string;
|
|
176
194
|
link: string;
|
|
177
|
-
amount
|
|
195
|
+
amount?: Amount$Outbound | undefined;
|
|
178
196
|
salesTaxAmount?: Amount$Outbound | undefined;
|
|
179
197
|
uses: number;
|
|
180
198
|
maxUses?: number | undefined;
|
|
@@ -188,6 +206,7 @@ export type PaymentLink$Outbound = {
|
|
|
188
206
|
createdOn: string;
|
|
189
207
|
updatedOn: string;
|
|
190
208
|
disabledOn?: string | undefined;
|
|
209
|
+
amountDetails?: PaymentLinkAmountDetails$Outbound | undefined;
|
|
191
210
|
};
|
|
192
211
|
|
|
193
212
|
/** @internal */
|
|
@@ -205,7 +224,7 @@ export const PaymentLink$outboundSchema: z.ZodType<
|
|
|
205
224
|
ownerAccountID: z.string(),
|
|
206
225
|
merchantPaymentMethodID: z.string(),
|
|
207
226
|
link: z.string(),
|
|
208
|
-
amount: Amount$outboundSchema,
|
|
227
|
+
amount: Amount$outboundSchema.optional(),
|
|
209
228
|
salesTaxAmount: Amount$outboundSchema.optional(),
|
|
210
229
|
uses: z.number().int(),
|
|
211
230
|
maxUses: z.number().int().optional(),
|
|
@@ -219,6 +238,7 @@ export const PaymentLink$outboundSchema: z.ZodType<
|
|
|
219
238
|
createdOn: z.date().transform(v => v.toISOString()),
|
|
220
239
|
updatedOn: z.date().transform(v => v.toISOString()),
|
|
221
240
|
disabledOn: z.date().transform(v => v.toISOString()).optional(),
|
|
241
|
+
amountDetails: PaymentLinkAmountDetails$outboundSchema.optional(),
|
|
222
242
|
});
|
|
223
243
|
|
|
224
244
|
export function paymentLinkToJSON(paymentLink: PaymentLink): string {
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import * as types from "../../types/primitives.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
AmountDecimal,
|
|
12
|
+
AmountDecimal$inboundSchema,
|
|
13
|
+
AmountDecimal$Outbound,
|
|
14
|
+
AmountDecimal$outboundSchema,
|
|
15
|
+
} from "./amountdecimal.js";
|
|
16
|
+
|
|
17
|
+
export type PaymentLinkAmountDetails = {
|
|
18
|
+
/**
|
|
19
|
+
* The amount of surcharge applied to the payment link.
|
|
20
|
+
*/
|
|
21
|
+
surcharge?: AmountDecimal | undefined;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const PaymentLinkAmountDetails$inboundSchema: z.ZodType<
|
|
26
|
+
PaymentLinkAmountDetails,
|
|
27
|
+
z.ZodTypeDef,
|
|
28
|
+
unknown
|
|
29
|
+
> = z.object({
|
|
30
|
+
surcharge: types.optional(AmountDecimal$inboundSchema),
|
|
31
|
+
});
|
|
32
|
+
/** @internal */
|
|
33
|
+
export type PaymentLinkAmountDetails$Outbound = {
|
|
34
|
+
surcharge?: AmountDecimal$Outbound | undefined;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const PaymentLinkAmountDetails$outboundSchema: z.ZodType<
|
|
39
|
+
PaymentLinkAmountDetails$Outbound,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
PaymentLinkAmountDetails
|
|
42
|
+
> = z.object({
|
|
43
|
+
surcharge: AmountDecimal$outboundSchema.optional(),
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
export function paymentLinkAmountDetailsToJSON(
|
|
47
|
+
paymentLinkAmountDetails: PaymentLinkAmountDetails,
|
|
48
|
+
): string {
|
|
49
|
+
return JSON.stringify(
|
|
50
|
+
PaymentLinkAmountDetails$outboundSchema.parse(paymentLinkAmountDetails),
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
export function paymentLinkAmountDetailsFromJSON(
|
|
54
|
+
jsonString: string,
|
|
55
|
+
): SafeParseResult<PaymentLinkAmountDetails, SDKValidationError> {
|
|
56
|
+
return safeParse(
|
|
57
|
+
jsonString,
|
|
58
|
+
(x) => PaymentLinkAmountDetails$inboundSchema.parse(JSON.parse(x)),
|
|
59
|
+
`Failed to parse 'PaymentLinkAmountDetails' from JSON`,
|
|
60
|
+
);
|
|
61
|
+
}
|
|
@@ -17,6 +17,10 @@ export type PaymentLinkCustomerOptions = {
|
|
|
17
17
|
* If true, a phone number is required when completing the payment form.
|
|
18
18
|
*/
|
|
19
19
|
requirePhone?: boolean | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* If true, tipping is enabled on the payment form. Defaults to false.
|
|
22
|
+
*/
|
|
23
|
+
tippingEnabled?: boolean | undefined;
|
|
20
24
|
/**
|
|
21
25
|
* Optional free-form metadata for the Moov account that will represent this customer.
|
|
22
26
|
*/
|
|
@@ -31,12 +35,14 @@ export const PaymentLinkCustomerOptions$inboundSchema: z.ZodType<
|
|
|
31
35
|
> = z.object({
|
|
32
36
|
requireAddress: types.optional(types.boolean()),
|
|
33
37
|
requirePhone: types.optional(types.boolean()),
|
|
38
|
+
tippingEnabled: types.optional(types.boolean()),
|
|
34
39
|
metadata: types.optional(z.record(types.string())),
|
|
35
40
|
});
|
|
36
41
|
/** @internal */
|
|
37
42
|
export type PaymentLinkCustomerOptions$Outbound = {
|
|
38
43
|
requireAddress?: boolean | undefined;
|
|
39
44
|
requirePhone?: boolean | undefined;
|
|
45
|
+
tippingEnabled?: boolean | undefined;
|
|
40
46
|
metadata?: { [k: string]: string } | undefined;
|
|
41
47
|
};
|
|
42
48
|
|
|
@@ -48,6 +54,7 @@ export const PaymentLinkCustomerOptions$outboundSchema: z.ZodType<
|
|
|
48
54
|
> = z.object({
|
|
49
55
|
requireAddress: z.boolean().optional(),
|
|
50
56
|
requirePhone: z.boolean().optional(),
|
|
57
|
+
tippingEnabled: z.boolean().optional(),
|
|
51
58
|
metadata: z.record(z.string()).optional(),
|
|
52
59
|
});
|
|
53
60
|
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import * as openEnums from "../../types/enums.js";
|
|
8
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
7
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
10
|
import * as types from "../../types/primitives.js";
|
|
9
11
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
@@ -13,6 +15,18 @@ import {
|
|
|
13
15
|
ACHPaymentDetails$Outbound,
|
|
14
16
|
ACHPaymentDetails$outboundSchema,
|
|
15
17
|
} from "./achpaymentdetails.js";
|
|
18
|
+
import {
|
|
19
|
+
AmountDecimal,
|
|
20
|
+
AmountDecimal$inboundSchema,
|
|
21
|
+
AmountDecimal$Outbound,
|
|
22
|
+
AmountDecimal$outboundSchema,
|
|
23
|
+
} from "./amountdecimal.js";
|
|
24
|
+
import {
|
|
25
|
+
AmountDecimalRange,
|
|
26
|
+
AmountDecimalRange$inboundSchema,
|
|
27
|
+
AmountDecimalRange$Outbound,
|
|
28
|
+
AmountDecimalRange$outboundSchema,
|
|
29
|
+
} from "./amountdecimalrange.js";
|
|
16
30
|
import {
|
|
17
31
|
CardPaymentDetails,
|
|
18
32
|
CardPaymentDetails$inboundSchema,
|
|
@@ -25,6 +39,18 @@ import {
|
|
|
25
39
|
CollectionPaymentMethodType$outboundSchema,
|
|
26
40
|
} from "./collectionpaymentmethodtype.js";
|
|
27
41
|
|
|
42
|
+
/**
|
|
43
|
+
* Indicates whether the payment amount is fixed by the merchant or open for the buyer to choose.
|
|
44
|
+
*/
|
|
45
|
+
export const AmountType = {
|
|
46
|
+
Fixed: "fixed",
|
|
47
|
+
Open: "open",
|
|
48
|
+
} as const;
|
|
49
|
+
/**
|
|
50
|
+
* Indicates whether the payment amount is fixed by the merchant or open for the buyer to choose.
|
|
51
|
+
*/
|
|
52
|
+
export type AmountType = OpenEnum<typeof AmountType>;
|
|
53
|
+
|
|
28
54
|
/**
|
|
29
55
|
* Options for payment links used to collect payment.
|
|
30
56
|
*/
|
|
@@ -33,6 +59,18 @@ export type PaymentLinkPaymentDetails = {
|
|
|
33
59
|
* A list of payment methods that should be supported for this payment link.
|
|
34
60
|
*/
|
|
35
61
|
allowedMethods: Array<CollectionPaymentMethodType>;
|
|
62
|
+
/**
|
|
63
|
+
* Indicates whether the payment amount is fixed by the merchant or open for the buyer to choose.
|
|
64
|
+
*/
|
|
65
|
+
amountType?: AmountType | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* The minimum and maximum amounts the buyer can specify when `amountType` is `open`.
|
|
68
|
+
*/
|
|
69
|
+
amountRange?: AmountDecimalRange | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* Optional preset amounts displayed to the buyer when `amountType` is `open`.
|
|
72
|
+
*/
|
|
73
|
+
suggestedAmounts?: Array<AmountDecimal> | undefined;
|
|
36
74
|
/**
|
|
37
75
|
* Options for payment links used to collect a card payment.
|
|
38
76
|
*/
|
|
@@ -47,6 +85,19 @@ export type PaymentLinkPaymentDetails = {
|
|
|
47
85
|
metadata?: { [k: string]: string } | undefined;
|
|
48
86
|
};
|
|
49
87
|
|
|
88
|
+
/** @internal */
|
|
89
|
+
export const AmountType$inboundSchema: z.ZodType<
|
|
90
|
+
AmountType,
|
|
91
|
+
z.ZodTypeDef,
|
|
92
|
+
unknown
|
|
93
|
+
> = openEnums.inboundSchema(AmountType);
|
|
94
|
+
/** @internal */
|
|
95
|
+
export const AmountType$outboundSchema: z.ZodType<
|
|
96
|
+
string,
|
|
97
|
+
z.ZodTypeDef,
|
|
98
|
+
AmountType
|
|
99
|
+
> = openEnums.outboundSchema(AmountType);
|
|
100
|
+
|
|
50
101
|
/** @internal */
|
|
51
102
|
export const PaymentLinkPaymentDetails$inboundSchema: z.ZodType<
|
|
52
103
|
PaymentLinkPaymentDetails,
|
|
@@ -54,6 +105,9 @@ export const PaymentLinkPaymentDetails$inboundSchema: z.ZodType<
|
|
|
54
105
|
unknown
|
|
55
106
|
> = z.object({
|
|
56
107
|
allowedMethods: z.array(CollectionPaymentMethodType$inboundSchema),
|
|
108
|
+
amountType: AmountType$inboundSchema.default("fixed"),
|
|
109
|
+
amountRange: types.optional(AmountDecimalRange$inboundSchema),
|
|
110
|
+
suggestedAmounts: types.optional(z.array(AmountDecimal$inboundSchema)),
|
|
57
111
|
cardDetails: types.optional(CardPaymentDetails$inboundSchema),
|
|
58
112
|
achDetails: types.optional(ACHPaymentDetails$inboundSchema),
|
|
59
113
|
metadata: types.optional(z.record(types.string())),
|
|
@@ -61,6 +115,9 @@ export const PaymentLinkPaymentDetails$inboundSchema: z.ZodType<
|
|
|
61
115
|
/** @internal */
|
|
62
116
|
export type PaymentLinkPaymentDetails$Outbound = {
|
|
63
117
|
allowedMethods: Array<string>;
|
|
118
|
+
amountType: string;
|
|
119
|
+
amountRange?: AmountDecimalRange$Outbound | undefined;
|
|
120
|
+
suggestedAmounts?: Array<AmountDecimal$Outbound> | undefined;
|
|
64
121
|
cardDetails?: CardPaymentDetails$Outbound | undefined;
|
|
65
122
|
achDetails?: ACHPaymentDetails$Outbound | undefined;
|
|
66
123
|
metadata?: { [k: string]: string } | undefined;
|
|
@@ -73,6 +130,9 @@ export const PaymentLinkPaymentDetails$outboundSchema: z.ZodType<
|
|
|
73
130
|
PaymentLinkPaymentDetails
|
|
74
131
|
> = z.object({
|
|
75
132
|
allowedMethods: z.array(CollectionPaymentMethodType$outboundSchema),
|
|
133
|
+
amountType: AmountType$outboundSchema.default("fixed"),
|
|
134
|
+
amountRange: AmountDecimalRange$outboundSchema.optional(),
|
|
135
|
+
suggestedAmounts: z.array(AmountDecimal$outboundSchema).optional(),
|
|
76
136
|
cardDetails: CardPaymentDetails$outboundSchema.optional(),
|
|
77
137
|
achDetails: ACHPaymentDetails$outboundSchema.optional(),
|
|
78
138
|
metadata: z.record(z.string()).optional(),
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
9
|
import * as types from "../../types/primitives.js";
|
|
9
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
@@ -13,6 +14,18 @@ import {
|
|
|
13
14
|
ACHPaymentDetails$Outbound,
|
|
14
15
|
ACHPaymentDetails$outboundSchema,
|
|
15
16
|
} from "./achpaymentdetails.js";
|
|
17
|
+
import {
|
|
18
|
+
AmountDecimal,
|
|
19
|
+
AmountDecimal$inboundSchema,
|
|
20
|
+
AmountDecimal$Outbound,
|
|
21
|
+
AmountDecimal$outboundSchema,
|
|
22
|
+
} from "./amountdecimal.js";
|
|
23
|
+
import {
|
|
24
|
+
AmountDecimalRangeUpdate,
|
|
25
|
+
AmountDecimalRangeUpdate$inboundSchema,
|
|
26
|
+
AmountDecimalRangeUpdate$Outbound,
|
|
27
|
+
AmountDecimalRangeUpdate$outboundSchema,
|
|
28
|
+
} from "./amountdecimalrangeupdate.js";
|
|
16
29
|
import {
|
|
17
30
|
CardPaymentDetails,
|
|
18
31
|
CardPaymentDetails$inboundSchema,
|
|
@@ -25,6 +38,20 @@ import {
|
|
|
25
38
|
CollectionPaymentMethodType$outboundSchema,
|
|
26
39
|
} from "./collectionpaymentmethodtype.js";
|
|
27
40
|
|
|
41
|
+
/**
|
|
42
|
+
* Indicates whether the payment amount is fixed by the merchant or open for the buyer to choose.
|
|
43
|
+
*/
|
|
44
|
+
export const PaymentLinkPaymentDetailsUpdateAmountType = {
|
|
45
|
+
Fixed: "fixed",
|
|
46
|
+
Open: "open",
|
|
47
|
+
} as const;
|
|
48
|
+
/**
|
|
49
|
+
* Indicates whether the payment amount is fixed by the merchant or open for the buyer to choose.
|
|
50
|
+
*/
|
|
51
|
+
export type PaymentLinkPaymentDetailsUpdateAmountType = ClosedEnum<
|
|
52
|
+
typeof PaymentLinkPaymentDetailsUpdateAmountType
|
|
53
|
+
>;
|
|
54
|
+
|
|
28
55
|
/**
|
|
29
56
|
* Options for payment links used to collect payment.
|
|
30
57
|
*/
|
|
@@ -33,6 +60,18 @@ export type PaymentLinkPaymentDetailsUpdate = {
|
|
|
33
60
|
* A list of payment methods that should be supported for this payment link.
|
|
34
61
|
*/
|
|
35
62
|
allowedMethods?: Array<CollectionPaymentMethodType> | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* Indicates whether the payment amount is fixed by the merchant or open for the buyer to choose.
|
|
65
|
+
*/
|
|
66
|
+
amountType?: PaymentLinkPaymentDetailsUpdateAmountType | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* The minimum and maximum amounts the buyer can specify when `amountType` is `open`.
|
|
69
|
+
*/
|
|
70
|
+
amountRange?: AmountDecimalRangeUpdate | undefined;
|
|
71
|
+
/**
|
|
72
|
+
* Optional preset amounts displayed to the buyer when `amountType` is `open`.
|
|
73
|
+
*/
|
|
74
|
+
suggestedAmounts?: Array<AmountDecimal> | undefined;
|
|
36
75
|
/**
|
|
37
76
|
* Options for payment links used to collect a card payment.
|
|
38
77
|
*/
|
|
@@ -47,6 +86,15 @@ export type PaymentLinkPaymentDetailsUpdate = {
|
|
|
47
86
|
metadata?: { [k: string]: string } | undefined;
|
|
48
87
|
};
|
|
49
88
|
|
|
89
|
+
/** @internal */
|
|
90
|
+
export const PaymentLinkPaymentDetailsUpdateAmountType$inboundSchema:
|
|
91
|
+
z.ZodNativeEnum<typeof PaymentLinkPaymentDetailsUpdateAmountType> = z
|
|
92
|
+
.nativeEnum(PaymentLinkPaymentDetailsUpdateAmountType);
|
|
93
|
+
/** @internal */
|
|
94
|
+
export const PaymentLinkPaymentDetailsUpdateAmountType$outboundSchema:
|
|
95
|
+
z.ZodNativeEnum<typeof PaymentLinkPaymentDetailsUpdateAmountType> =
|
|
96
|
+
PaymentLinkPaymentDetailsUpdateAmountType$inboundSchema;
|
|
97
|
+
|
|
50
98
|
/** @internal */
|
|
51
99
|
export const PaymentLinkPaymentDetailsUpdate$inboundSchema: z.ZodType<
|
|
52
100
|
PaymentLinkPaymentDetailsUpdate,
|
|
@@ -56,6 +104,11 @@ export const PaymentLinkPaymentDetailsUpdate$inboundSchema: z.ZodType<
|
|
|
56
104
|
allowedMethods: types.optional(
|
|
57
105
|
z.array(CollectionPaymentMethodType$inboundSchema),
|
|
58
106
|
),
|
|
107
|
+
amountType: PaymentLinkPaymentDetailsUpdateAmountType$inboundSchema.default(
|
|
108
|
+
"fixed",
|
|
109
|
+
),
|
|
110
|
+
amountRange: types.optional(AmountDecimalRangeUpdate$inboundSchema),
|
|
111
|
+
suggestedAmounts: types.optional(z.array(AmountDecimal$inboundSchema)),
|
|
59
112
|
cardDetails: types.optional(CardPaymentDetails$inboundSchema),
|
|
60
113
|
achDetails: types.optional(ACHPaymentDetails$inboundSchema),
|
|
61
114
|
metadata: types.optional(z.record(types.string())),
|
|
@@ -63,6 +116,9 @@ export const PaymentLinkPaymentDetailsUpdate$inboundSchema: z.ZodType<
|
|
|
63
116
|
/** @internal */
|
|
64
117
|
export type PaymentLinkPaymentDetailsUpdate$Outbound = {
|
|
65
118
|
allowedMethods?: Array<string> | undefined;
|
|
119
|
+
amountType: string;
|
|
120
|
+
amountRange?: AmountDecimalRangeUpdate$Outbound | undefined;
|
|
121
|
+
suggestedAmounts?: Array<AmountDecimal$Outbound> | undefined;
|
|
66
122
|
cardDetails?: CardPaymentDetails$Outbound | undefined;
|
|
67
123
|
achDetails?: ACHPaymentDetails$Outbound | undefined;
|
|
68
124
|
metadata?: { [k: string]: string } | undefined;
|
|
@@ -76,6 +132,11 @@ export const PaymentLinkPaymentDetailsUpdate$outboundSchema: z.ZodType<
|
|
|
76
132
|
> = z.object({
|
|
77
133
|
allowedMethods: z.array(CollectionPaymentMethodType$outboundSchema)
|
|
78
134
|
.optional(),
|
|
135
|
+
amountType: PaymentLinkPaymentDetailsUpdateAmountType$outboundSchema.default(
|
|
136
|
+
"fixed",
|
|
137
|
+
),
|
|
138
|
+
amountRange: AmountDecimalRangeUpdate$outboundSchema.optional(),
|
|
139
|
+
suggestedAmounts: z.array(AmountDecimal$outboundSchema).optional(),
|
|
79
140
|
cardDetails: CardPaymentDetails$outboundSchema.optional(),
|
|
80
141
|
achDetails: ACHPaymentDetails$outboundSchema.optional(),
|
|
81
142
|
metadata: z.record(z.string()).optional(),
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import * as types from "../../types/primitives.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
AmountDecimal,
|
|
12
|
+
AmountDecimal$inboundSchema,
|
|
13
|
+
AmountDecimal$Outbound,
|
|
14
|
+
AmountDecimal$outboundSchema,
|
|
15
|
+
} from "./amountdecimal.js";
|
|
16
|
+
import {
|
|
17
|
+
TipCalculationBasis,
|
|
18
|
+
TipCalculationBasis$inboundSchema,
|
|
19
|
+
TipCalculationBasis$outboundSchema,
|
|
20
|
+
} from "./tipcalculationbasis.js";
|
|
21
|
+
|
|
22
|
+
export type PutTipPresets = {
|
|
23
|
+
/**
|
|
24
|
+
* Defines which amount should be used when calculating the final payment total. This calculation applies for percentage tip values.
|
|
25
|
+
*
|
|
26
|
+
* @remarks
|
|
27
|
+
* - `pre-tax`: Tip amounts are calculated using the subtotal amount before taxes
|
|
28
|
+
* - `post-tax`: Tip amounts are calculated using the subtotal amount + taxes
|
|
29
|
+
*/
|
|
30
|
+
calculationBasis?: TipCalculationBasis | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Defines the set of suggested tip preset values presented to customers. Percentages must be between 0 and 100 (exclusive) and must be unique. A maximum of 3 values are allowed.
|
|
33
|
+
*/
|
|
34
|
+
percentageOptions?: Array<number> | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Defines the set of suggested tip preset values presented to customers. Fixed amounts must be positive and unique. A maximum of 3 values are allowed.
|
|
37
|
+
*/
|
|
38
|
+
fixedAmountOptions?: Array<AmountDecimal> | undefined;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export const PutTipPresets$inboundSchema: z.ZodType<
|
|
43
|
+
PutTipPresets,
|
|
44
|
+
z.ZodTypeDef,
|
|
45
|
+
unknown
|
|
46
|
+
> = z.object({
|
|
47
|
+
calculationBasis: types.optional(TipCalculationBasis$inboundSchema),
|
|
48
|
+
percentageOptions: types.optional(z.array(types.number())),
|
|
49
|
+
fixedAmountOptions: types.optional(z.array(AmountDecimal$inboundSchema)),
|
|
50
|
+
});
|
|
51
|
+
/** @internal */
|
|
52
|
+
export type PutTipPresets$Outbound = {
|
|
53
|
+
calculationBasis?: string | undefined;
|
|
54
|
+
percentageOptions?: Array<number> | undefined;
|
|
55
|
+
fixedAmountOptions?: Array<AmountDecimal$Outbound> | undefined;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
/** @internal */
|
|
59
|
+
export const PutTipPresets$outboundSchema: z.ZodType<
|
|
60
|
+
PutTipPresets$Outbound,
|
|
61
|
+
z.ZodTypeDef,
|
|
62
|
+
PutTipPresets
|
|
63
|
+
> = z.object({
|
|
64
|
+
calculationBasis: TipCalculationBasis$outboundSchema.optional(),
|
|
65
|
+
percentageOptions: z.array(z.number().int()).optional(),
|
|
66
|
+
fixedAmountOptions: z.array(AmountDecimal$outboundSchema).optional(),
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
export function putTipPresetsToJSON(putTipPresets: PutTipPresets): string {
|
|
70
|
+
return JSON.stringify(PutTipPresets$outboundSchema.parse(putTipPresets));
|
|
71
|
+
}
|
|
72
|
+
export function putTipPresetsFromJSON(
|
|
73
|
+
jsonString: string,
|
|
74
|
+
): SafeParseResult<PutTipPresets, SDKValidationError> {
|
|
75
|
+
return safeParse(
|
|
76
|
+
jsonString,
|
|
77
|
+
(x) => PutTipPresets$inboundSchema.parse(JSON.parse(x)),
|
|
78
|
+
`Failed to parse 'PutTipPresets' from JSON`,
|
|
79
|
+
);
|
|
80
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
PutTipPresets,
|
|
11
|
+
PutTipPresets$inboundSchema,
|
|
12
|
+
PutTipPresets$Outbound,
|
|
13
|
+
PutTipPresets$outboundSchema,
|
|
14
|
+
} from "./puttippresets.js";
|
|
15
|
+
|
|
16
|
+
export type PutTransferConfig = {
|
|
17
|
+
tipPresets: PutTipPresets;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const PutTransferConfig$inboundSchema: z.ZodType<
|
|
22
|
+
PutTransferConfig,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
tipPresets: PutTipPresets$inboundSchema,
|
|
27
|
+
});
|
|
28
|
+
/** @internal */
|
|
29
|
+
export type PutTransferConfig$Outbound = {
|
|
30
|
+
tipPresets: PutTipPresets$Outbound;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const PutTransferConfig$outboundSchema: z.ZodType<
|
|
35
|
+
PutTransferConfig$Outbound,
|
|
36
|
+
z.ZodTypeDef,
|
|
37
|
+
PutTransferConfig
|
|
38
|
+
> = z.object({
|
|
39
|
+
tipPresets: PutTipPresets$outboundSchema,
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
export function putTransferConfigToJSON(
|
|
43
|
+
putTransferConfig: PutTransferConfig,
|
|
44
|
+
): string {
|
|
45
|
+
return JSON.stringify(
|
|
46
|
+
PutTransferConfig$outboundSchema.parse(putTransferConfig),
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
export function putTransferConfigFromJSON(
|
|
50
|
+
jsonString: string,
|
|
51
|
+
): SafeParseResult<PutTransferConfig, SDKValidationError> {
|
|
52
|
+
return safeParse(
|
|
53
|
+
jsonString,
|
|
54
|
+
(x) => PutTransferConfig$inboundSchema.parse(JSON.parse(x)),
|
|
55
|
+
`Failed to parse 'PutTransferConfig' from JSON`,
|
|
56
|
+
);
|
|
57
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import * as types from "../../types/primitives.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
AmountDecimal,
|
|
12
|
+
AmountDecimal$inboundSchema,
|
|
13
|
+
AmountDecimal$Outbound,
|
|
14
|
+
AmountDecimal$outboundSchema,
|
|
15
|
+
} from "./amountdecimal.js";
|
|
16
|
+
|
|
17
|
+
export type RefundAmountDetails = {
|
|
18
|
+
/**
|
|
19
|
+
* The amount of surcharge to refund. Should be proportionate to the surcharge on the original transfer
|
|
20
|
+
*/
|
|
21
|
+
surcharge?: AmountDecimal | undefined;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const RefundAmountDetails$inboundSchema: z.ZodType<
|
|
26
|
+
RefundAmountDetails,
|
|
27
|
+
z.ZodTypeDef,
|
|
28
|
+
unknown
|
|
29
|
+
> = z.object({
|
|
30
|
+
surcharge: types.optional(AmountDecimal$inboundSchema),
|
|
31
|
+
});
|
|
32
|
+
/** @internal */
|
|
33
|
+
export type RefundAmountDetails$Outbound = {
|
|
34
|
+
surcharge?: AmountDecimal$Outbound | undefined;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const RefundAmountDetails$outboundSchema: z.ZodType<
|
|
39
|
+
RefundAmountDetails$Outbound,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
RefundAmountDetails
|
|
42
|
+
> = z.object({
|
|
43
|
+
surcharge: AmountDecimal$outboundSchema.optional(),
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
export function refundAmountDetailsToJSON(
|
|
47
|
+
refundAmountDetails: RefundAmountDetails,
|
|
48
|
+
): string {
|
|
49
|
+
return JSON.stringify(
|
|
50
|
+
RefundAmountDetails$outboundSchema.parse(refundAmountDetails),
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
export function refundAmountDetailsFromJSON(
|
|
54
|
+
jsonString: string,
|
|
55
|
+
): SafeParseResult<RefundAmountDetails, SDKValidationError> {
|
|
56
|
+
return safeParse(
|
|
57
|
+
jsonString,
|
|
58
|
+
(x) => RefundAmountDetails$inboundSchema.parse(JSON.parse(x)),
|
|
59
|
+
`Failed to parse 'RefundAmountDetails' from JSON`,
|
|
60
|
+
);
|
|
61
|
+
}
|