moov_ruby 26.1.10 → 26.4.0.pre.dev.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.
- checksums.yaml +4 -4
- data/lib/crystalline/metadata_fields.rb +22 -85
- data/lib/crystalline/module.rb +13 -99
- data/lib/crystalline/types.rb +3 -90
- data/lib/moov/account_terminal_applications.rb +14 -28
- data/lib/moov/accounts.rb +45 -80
- data/lib/moov/adjustments.rb +7 -15
- data/lib/moov/apple_pay.rb +25 -42
- data/lib/moov/authentication.rb +8 -16
- data/lib/moov/avatars.rb +5 -10
- data/lib/moov/bank_accounts.rb +45 -74
- data/lib/moov/branding.rb +12 -23
- data/lib/moov/capabilities.rb +15 -29
- data/lib/moov/card_issuing.rb +19 -36
- data/lib/moov/cards.rb +28 -60
- data/lib/moov/client.rb +1 -2
- data/lib/moov/disputes.rb +53 -88
- data/lib/moov/end_to_end_encryption.rb +7 -15
- data/lib/moov/enriched_address.rb +3 -8
- data/lib/moov/enriched_profile.rb +4 -9
- data/lib/moov/fee_plans.rb +33 -65
- data/lib/moov/files.rb +12 -23
- data/lib/moov/images.rb +27 -47
- data/lib/moov/industries.rb +4 -9
- data/lib/moov/institutions.rb +12 -20
- data/lib/moov/issuing_transactions.rb +16 -33
- data/lib/moov/models/components/account.rb +5 -5
- data/lib/moov/models/components/accountfees.rb +2 -6
- data/lib/moov/models/components/accountfees.rbi +0 -2
- data/lib/moov/models/components/accountnameverification.rb +4 -4
- data/lib/moov/models/components/accounttype.rb +2 -0
- data/lib/moov/models/components/accountverificationstatus.rb +4 -2
- data/lib/moov/models/components/achcreditsamedaypaymentmethod.rb +1 -1
- data/lib/moov/models/components/achcreditsamedaypaymentmethod_paymentmethodtype.rb +2 -0
- data/lib/moov/models/components/achcreditstandardpaymentmethod.rb +1 -1
- data/lib/moov/models/components/achcreditstandardpaymentmethod_paymentmethodtype.rb +2 -0
- data/lib/moov/models/components/achdebitcollectpaymentmethod.rb +1 -1
- data/lib/moov/models/components/achdebitcollectpaymentmethod_paymentmethodtype.rb +2 -0
- data/lib/moov/models/components/achdebitfundpaymentmethod.rb +1 -1
- data/lib/moov/models/components/achdebitfundpaymentmethod_paymentmethodtype.rb +2 -0
- data/lib/moov/models/components/achreturncode.rb +3 -1
- data/lib/moov/models/components/achtransactiondetails.rb +10 -10
- data/lib/moov/models/components/achtransactionstatus.rb +2 -0
- data/lib/moov/models/components/adjustment.rb +1 -1
- data/lib/moov/models/components/adjustmentfees.rb +3 -3
- data/lib/moov/models/components/amount.rb +1 -1
- data/lib/moov/models/components/amountdecimal.rb +1 -1
- data/lib/moov/models/components/amountupdate.rb +1 -1
- data/lib/moov/models/components/applepayheader.rb +1 -1
- data/lib/moov/models/components/applepaymerchantdomains.rb +2 -2
- data/lib/moov/models/components/applepaypaymentmethod.rb +1 -1
- data/lib/moov/models/components/applepaypaymentmethod_paymentmethodtype.rb +2 -0
- data/lib/moov/models/components/applepayresponse.rb +2 -2
- data/lib/moov/models/components/applicationscope.rb +2 -0
- data/lib/moov/models/components/asynccreatedrefund.rb +1 -1
- data/lib/moov/models/components/asynctransfer.rb +1 -1
- data/lib/moov/models/components/authtoken.rb +1 -1
- data/lib/moov/models/components/authtokenrequest.rb +2 -2
- data/lib/moov/models/components/bankaccount.rb +7 -7
- data/lib/moov/models/components/bankaccountexception.rb +5 -5
- data/lib/moov/models/components/bankaccountholdertype.rb +2 -0
- data/lib/moov/models/components/bankaccountintegration.rb +2 -2
- data/lib/moov/models/components/bankaccountstatus.rb +2 -0
- data/lib/moov/models/components/bankaccountstatusreason.rb +2 -0
- data/lib/moov/models/components/bankaccounttype.rb +2 -0
- data/lib/moov/models/components/bankaccountverification.rb +2 -2
- data/lib/moov/models/components/bankaccountverificationcreated.rb +2 -2
- data/lib/moov/models/components/bankaccountverificationmethod.rb +2 -0
- data/lib/moov/models/components/bankaccountverificationstatus.rb +2 -0
- data/lib/moov/models/components/bankaccountwaitfor.rb +2 -0
- data/lib/moov/models/components/basicpaymentmethod.rb +1 -1
- data/lib/moov/models/components/billablefee.rb +3 -3
- data/lib/moov/models/components/billingsummary.rb +6 -6
- data/lib/moov/models/components/billingsummary_platformfees.rb +3 -3
- data/lib/moov/models/components/billingsummary_volumeamount.rb +3 -3
- data/lib/moov/models/components/billingsummarydetails.rb +4 -4
- data/lib/moov/models/components/billingsummarydetails_volumeamount.rb +3 -3
- data/lib/moov/models/components/businesspresence.rb +2 -0
- data/lib/moov/models/components/businessprofile.rb +2 -2
- data/lib/moov/models/components/businesstype.rb +2 -0
- data/lib/moov/models/components/calltoaction.rb +3 -1
- data/lib/moov/models/components/cancellation.rb +2 -2
- data/lib/moov/models/components/cancellationstatus.rb +2 -0
- data/lib/moov/models/components/capability.rb +6 -6
- data/lib/moov/models/components/capabilityid.rb +3 -1
- data/lib/moov/models/components/capabilitystatus.rb +2 -0
- data/lib/moov/models/components/card.rb +5 -5
- data/lib/moov/models/components/cardaccountupdater.rb +2 -2
- data/lib/moov/models/components/cardacquiring.rb +4 -4
- data/lib/moov/models/components/cardacquiringdispute.rb +1 -1
- data/lib/moov/models/components/cardacquiringmodel.rb +2 -0
- data/lib/moov/models/components/cardacquiringrefund.rb +3 -3
- data/lib/moov/models/components/cardbrand.rb +2 -0
- data/lib/moov/models/components/cardissuingnetwork.rb +2 -0
- data/lib/moov/models/components/cardpaymentpaymentmethod.rb +1 -1
- data/lib/moov/models/components/cardpaymentpaymentmethod_paymentmethodtype.rb +2 -0
- data/lib/moov/models/components/cardpresentpaymentpaymentmethod.rb +1 -1
- data/lib/moov/models/components/cardpresentpaymentpaymentmethod_paymentmethodtype.rb +2 -0
- data/lib/moov/models/components/cardtransactiondetails.rb +12 -12
- data/lib/moov/models/components/cardtransactionfailurecode.rb +2 -0
- data/lib/moov/models/components/cardtransactionstatus.rb +2 -0
- data/lib/moov/models/components/cardtype.rb +2 -0
- data/lib/moov/models/components/cardupdatereason.rb +2 -0
- data/lib/moov/models/components/cardverification.rb +3 -3
- data/lib/moov/models/components/cardverificationresult.rb +2 -0
- data/lib/moov/models/components/collectfundscardpayments.rb +1 -1
- data/lib/moov/models/components/collectionpaymentmethodtype.rb +2 -0
- data/lib/moov/models/components/completedmicrodeposits.rb +1 -1
- data/lib/moov/models/components/createaccount.rb +2 -2
- data/lib/moov/models/components/createaccounttype.rb +2 -0
- data/lib/moov/models/components/createbusinessprofile.rb +2 -2
- data/lib/moov/models/components/createdtransfer.rb +4 -4
- data/lib/moov/models/components/createevidencefilemultipart.rb +1 -1
- data/lib/moov/models/components/createevidencetext.rb +1 -1
- data/lib/moov/models/components/createfeeplanagreement.rb +1 -1
- data/lib/moov/models/components/createpaymentlink.rb +4 -4
- data/lib/moov/models/components/createpaymentlinklineitem.rb +2 -7
- data/lib/moov/models/components/createpaymentlinklineitemoption.rb +1 -4
- data/lib/moov/models/components/createproductoption.rb +1 -1
- data/lib/moov/models/components/createproductoptiongroup.rb +2 -2
- data/lib/moov/models/components/createrefund.rb +1 -1
- data/lib/moov/models/components/createscheduledtransferlineitem.rb +2 -6
- data/lib/moov/models/components/createscheduledtransferlineitemoption.rb +1 -4
- data/lib/moov/models/components/createsweepconfig.rb +1 -1
- data/lib/moov/models/components/createterminalapplication.rb +1 -1
- data/lib/moov/models/components/createtransferlineitem.rb +2 -6
- data/lib/moov/models/components/createtransferlineitemoption.rb +1 -4
- data/lib/moov/models/components/createtransfersourceach.rb +2 -2
- data/lib/moov/models/components/createtransfersourcecard.rb +2 -2
- data/lib/moov/models/components/createwebhook.rb +1 -1
- data/lib/moov/models/components/debitholdperiod.rb +2 -0
- data/lib/moov/models/components/disbursementpaymentmethodtype.rb +2 -0
- data/lib/moov/models/components/dispute.rb +7 -7
- data/lib/moov/models/components/disputeevidenceresponse.rb +4 -4
- data/lib/moov/models/components/disputephase.rb +2 -0
- data/lib/moov/models/components/disputestatus.rb +3 -1
- data/lib/moov/models/components/document.rb +2 -2
- data/lib/moov/models/components/documenttype.rb +2 -0
- data/lib/moov/models/components/domesticpullfromcard.rb +2 -0
- data/lib/moov/models/components/domesticpushtocard.rb +2 -0
- data/lib/moov/models/components/entrymode.rb +2 -0
- data/lib/moov/models/components/estimatedactivity.rb +1 -1
- data/lib/moov/models/components/evidencetextresponse.rb +2 -2
- data/lib/moov/models/components/evidencetype.rb +2 -0
- data/lib/moov/models/components/evidenceuploadresponse.rb +2 -2
- data/lib/moov/models/components/facilitatorfee.rb +1 -1
- data/lib/moov/models/components/feecategory.rb +2 -0
- data/lib/moov/models/components/feemodel.rb +2 -0
- data/lib/moov/models/components/feeplan.rb +3 -3
- data/lib/moov/models/components/feeplanagreement.rb +6 -6
- data/lib/moov/models/components/feeplanagreementstatus.rb +2 -0
- data/lib/moov/models/components/feeproperties.rb +1 -1
- data/lib/moov/models/components/filedetails.rb +4 -4
- data/lib/moov/models/components/filepurpose.rb +2 -0
- data/lib/moov/models/components/filestatus.rb +2 -0
- data/lib/moov/models/components/fileuploadrequestmultipart.rb +1 -1
- data/lib/moov/models/components/fulfillment.rb +2 -2
- data/lib/moov/models/components/fulfillmentdetails.rb +1 -1
- data/lib/moov/models/components/fulfillmentmethod.rb +2 -0
- data/lib/moov/models/components/fulfillmenttimeframe.rb +2 -0
- data/lib/moov/models/components/fullissuedcard.rb +5 -5
- data/lib/moov/models/components/generatedby.rb +7 -11
- data/lib/moov/models/components/generatedby.rbi +0 -2
- data/lib/moov/models/components/geographicreach.rb +2 -0
- data/lib/moov/models/components/granttype.rb +3 -1
- data/lib/moov/models/components/imagemetadata.rb +4 -4
- data/lib/moov/models/components/incurredfee.rb +2 -2
- data/lib/moov/models/components/instantbankcreditpaymentmethod.rb +1 -1
- data/lib/moov/models/components/instantbankcreditpaymentmethod_paymentmethodtype.rb +2 -0
- data/lib/moov/models/components/invoicestatus.rb +2 -0
- data/lib/moov/models/components/issuedcard.rb +5 -5
- data/lib/moov/models/components/issuedcardauthorization.rb +3 -3
- data/lib/moov/models/components/issuedcardauthorizationevent.rb +3 -3
- data/lib/moov/models/components/issuedcardauthorizationeventresult.rb +2 -0
- data/lib/moov/models/components/issuedcardeventtype.rb +2 -0
- data/lib/moov/models/components/issuedcardformfactor.rb +2 -0
- data/lib/moov/models/components/issuedcardstate.rb +3 -1
- data/lib/moov/models/components/issuedcardtransaction.rb +2 -2
- data/lib/moov/models/components/issuingauthorizationstatus.rb +2 -0
- data/lib/moov/models/components/issuingintervallimit.rb +2 -0
- data/lib/moov/models/components/issuingvelocitylimit.rb +1 -1
- data/lib/moov/models/components/jsonwebkey.rb +6 -6
- data/lib/moov/models/components/kind.rb +2 -0
- data/lib/moov/models/components/linkapplepay.rb +2 -2
- data/lib/moov/models/components/linkapplepaymentdata.rb +2 -2
- data/lib/moov/models/components/linkapplepaymentmethod.rb +1 -1
- data/lib/moov/models/components/linkapplepaytoken.rb +3 -3
- data/lib/moov/models/components/linkcardwaitfor.rb +2 -0
- data/lib/moov/models/components/linkedapplepaypaymentmethod.rb +1 -1
- data/lib/moov/models/components/manualtermsofservice.rb +1 -1
- data/lib/moov/models/components/manualtermsofserviceupdate.rb +1 -1
- data/lib/moov/models/components/microdepositstatus.rb +2 -0
- data/lib/moov/models/components/minimumcommitment.rb +1 -1
- data/lib/moov/models/components/mode.rb +2 -0
- data/lib/moov/models/components/monthlyplatformfee.rb +1 -1
- data/lib/moov/models/components/monthlyvolumerange.rb +2 -0
- data/lib/moov/models/components/moovfee.rb +1 -1
- data/lib/moov/models/components/moovwalletpaymentmethod.rb +1 -1
- data/lib/moov/models/components/moovwalletpaymentmethod_paymentmethodtype.rb +2 -0
- data/lib/moov/models/components/mxauthorizationcode.rb +1 -1
- data/lib/moov/models/components/mxpayload.rb +3 -3
- data/lib/moov/models/components/occurrence.rb +1 -1
- data/lib/moov/models/components/occurrencesresponse.rb +5 -5
- data/lib/moov/models/components/occurrencestatus.rb +2 -0
- data/lib/moov/models/components/onboardinginvite.rb +3 -3
- data/lib/moov/models/components/onboardingpartneraccount.rb +1 -1
- data/lib/moov/models/components/otherfees.rb +3 -3
- data/lib/moov/models/components/partnerpricingagreement.rb +6 -6
- data/lib/moov/models/components/patchbusiness.rb +2 -2
- data/lib/moov/models/components/patchsweepconfig.rb +1 -1
- data/lib/moov/models/components/patchwallet.rb +1 -1
- data/lib/moov/models/components/paymentlink.rb +9 -9
- data/lib/moov/models/components/paymentlinkdisplayoptions.rb +2 -2
- data/lib/moov/models/components/paymentlinkdisplayoptionsupdate.rb +2 -2
- data/lib/moov/models/components/paymentlinkpayoutdetails.rb +1 -1
- data/lib/moov/models/components/paymentlinkpayoutdetailsupdate.rb +1 -1
- data/lib/moov/models/components/paymentlinkstatus.rb +2 -0
- data/lib/moov/models/components/paymentlinktype.rb +2 -1
- data/lib/moov/models/components/paymentmethodsbankaccount.rb +5 -5
- data/lib/moov/models/components/paymentmethodscard.rb +4 -4
- data/lib/moov/models/components/paymentmethodswallet.rb +1 -1
- data/lib/moov/models/components/paymentmethodtype.rb +2 -0
- data/lib/moov/models/components/payoutrecipient.rb +1 -1
- data/lib/moov/models/components/pendinglitigation.rb +2 -0
- data/lib/moov/models/components/plaidintegration.rb +2 -2
- data/lib/moov/models/components/plaidlinkintegration.rb +2 -2
- data/lib/moov/models/components/plaidlinkpayload.rb +3 -3
- data/lib/moov/models/components/plaidpayload.rb +2 -2
- data/lib/moov/models/components/platformfees.rb +2 -2
- data/lib/moov/models/components/primaryregulator.rb +2 -0
- data/lib/moov/models/components/product.rb +4 -4
- data/lib/moov/models/components/productoption.rb +1 -1
- data/lib/moov/models/components/productoptiongroup.rb +2 -2
- data/lib/moov/models/components/productrequest.rb +1 -1
- data/lib/moov/models/components/pullfromcardpaymentmethod.rb +1 -1
- data/lib/moov/models/components/pullfromcardpaymentmethod_paymentmethodtype.rb +2 -0
- data/lib/moov/models/components/pushtocardpaymentmethod.rb +1 -1
- data/lib/moov/models/components/pushtocardpaymentmethod_paymentmethodtype.rb +2 -0
- data/lib/moov/models/components/receiptkind.rb +2 -0
- data/lib/moov/models/components/receiptrequest.rb +1 -1
- data/lib/moov/models/components/receiptresponse.rb +2 -2
- data/lib/moov/models/components/recur.rb +1 -1
- data/lib/moov/models/components/recurresponse.rb +1 -1
- data/lib/moov/models/components/refundcarddetails.rb +7 -7
- data/lib/moov/models/components/refundcardstatus.rb +2 -0
- data/lib/moov/models/components/refundpolicy.rb +2 -0
- data/lib/moov/models/components/refundstatus.rb +2 -0
- data/lib/moov/models/components/representative.rb +3 -3
- data/lib/moov/models/components/requestcard.rb +1 -1
- data/lib/moov/models/components/requirementerror.rb +2 -2
- data/lib/moov/models/components/requirementerrorcode.rb +2 -0
- data/lib/moov/models/components/requirementid.rb +2 -0
- data/lib/moov/models/components/residual.rb +4 -4
- data/lib/moov/models/components/returnpolicytype.rb +2 -0
- data/lib/moov/models/components/revoketokenrequest.rb +1 -1
- data/lib/moov/models/components/rtpcreditpaymentmethod.rb +1 -1
- data/lib/moov/models/components/rtpcreditpaymentmethod_paymentmethodtype.rb +2 -0
- data/lib/moov/models/components/rtpfailurecode.rb +2 -0
- data/lib/moov/models/components/rtprejectioncode.rb +3 -1
- data/lib/moov/models/components/{rtpdetails.rb → rtptransactiondetails.rb} +8 -10
- data/lib/moov/models/components/{rtpdetails.rbi → rtptransactiondetails.rbi} +2 -2
- data/lib/moov/models/components/rtptransactionstatus.rb +2 -0
- data/lib/moov/models/components/schedulelistresponse.rb +4 -4
- data/lib/moov/models/components/scheduleresponse.rb +4 -4
- data/lib/moov/models/components/seccode.rb +2 -0
- data/lib/moov/models/components/sentreceipt.rb +1 -1
- data/lib/moov/models/components/statement.rb +6 -6
- data/lib/moov/models/components/status.rb +2 -0
- data/lib/moov/models/components/submissionintent.rb +2 -0
- data/lib/moov/models/components/sweep.rb +3 -3
- data/lib/moov/models/components/sweepconfig.rb +3 -3
- data/lib/moov/models/components/sweepconfigpaymentmethod.rb +1 -1
- data/lib/moov/models/components/sweepconfigstatus.rb +2 -0
- data/lib/moov/models/components/sweepstatus.rb +2 -0
- data/lib/moov/models/components/sweepsubtotal.rb +1 -1
- data/lib/moov/models/components/terminalapplication.rb +2 -2
- data/lib/moov/models/components/terminalapplicationplatform.rb +2 -0
- data/lib/moov/models/components/terminalapplicationstatus.rb +2 -0
- data/lib/moov/models/components/terminalcard.rb +3 -3
- data/lib/moov/models/components/termsofservice.rb +1 -1
- data/lib/moov/models/components/ticket.rb +5 -5
- data/lib/moov/models/components/ticketmessage.rb +1 -1
- data/lib/moov/models/components/ticketstatus.rb +2 -0
- data/lib/moov/models/components/token_type_hint.rb +2 -0
- data/lib/moov/models/components/tokentype.rb +2 -0
- data/lib/moov/models/components/transactionsource.rb +3 -1
- data/lib/moov/models/components/transfer.rb +4 -4
- data/lib/moov/models/components/transferdestination.rb +7 -7
- data/lib/moov/models/components/transferfailurereason.rb +2 -0
- data/lib/moov/models/components/transferoptions.rb +3 -3
- data/lib/moov/models/components/transferparty.rb +2 -0
- data/lib/moov/models/components/transfersource.rb +7 -7
- data/lib/moov/models/components/transferstatus.rb +2 -0
- data/lib/moov/models/components/transferwaitfor.rb +2 -0
- data/lib/moov/models/components/underwriting.rb +5 -5
- data/lib/moov/models/components/underwritingstatus.rb +4 -2
- data/lib/moov/models/components/updateevidence.rb +1 -1
- data/lib/moov/models/components/updateissuedcard.rb +1 -1
- data/lib/moov/models/components/updateissuedcardstate.rb +2 -0
- data/lib/moov/models/components/updatepaymentlink.rb +1 -1
- data/lib/moov/models/components/updateticket.rb +1 -1
- data/lib/moov/models/components/updateticketstatus.rb +2 -0
- data/lib/moov/models/components/updatewebhook.rb +1 -1
- data/lib/moov/models/components/upsertunderwriting.rb +4 -4
- data/lib/moov/models/components/use.rb +2 -0
- data/lib/moov/models/components/verification.rb +9 -9
- data/lib/moov/models/components/verificationstatus.rb +4 -2
- data/lib/moov/models/components/verificationstatusdetail.rb +4 -2
- data/lib/moov/models/components/wallet.rb +4 -4
- data/lib/moov/models/components/walletavailablebalance.rb +1 -1
- data/lib/moov/models/components/walletstatus.rb +2 -0
- data/lib/moov/models/components/wallettransaction.rb +5 -5
- data/lib/moov/models/components/wallettransactionsourcetype.rb +2 -0
- data/lib/moov/models/components/wallettransactionstatus.rb +2 -0
- data/lib/moov/models/components/wallettransactiontype.rb +2 -0
- data/lib/moov/models/components/wallettype.rb +2 -0
- data/lib/moov/models/components/webhook.rb +4 -4
- data/lib/moov/models/components/webhookdatabankaccountupdated.rb +2 -2
- data/lib/moov/models/components/webhookdatacancellationcreated.rb +1 -1
- data/lib/moov/models/components/webhookdatacancellationupdated.rb +1 -1
- data/lib/moov/models/components/webhookdatacapabilityrequested.rb +2 -2
- data/lib/moov/models/components/webhookdatacapabilityupdated.rb +3 -3
- data/lib/moov/models/components/webhookdatacardautoupdated.rb +1 -1
- data/lib/moov/models/components/webhookdatadisputecreated.rb +3 -3
- data/lib/moov/models/components/webhookdatadisputeupdated.rb +3 -3
- data/lib/moov/models/components/webhookdatainvoiceupdated.rb +1 -1
- data/lib/moov/models/components/webhookdatanetworkidupdated.rb +1 -1
- data/lib/moov/models/components/webhookdatarefundupdated.rb +1 -1
- data/lib/moov/models/components/webhookdatasweepupdated.rb +1 -1
- data/lib/moov/models/components/webhookdataterminalapplicationcreated.rb +1 -1
- data/lib/moov/models/components/webhookdataterminalapplicationupdated.rb +1 -1
- data/lib/moov/models/components/webhookdataticketupdated.rb +1 -1
- data/lib/moov/models/components/webhookdatatransfercreated.rb +1 -1
- data/lib/moov/models/components/webhookdatatransferstatus.rb +2 -0
- data/lib/moov/models/components/webhookdatatransferupdated.rb +1 -1
- data/lib/moov/models/components/webhookdatawallettransactionupdated.rb +1 -1
- data/lib/moov/models/components/webhookdatawalletupdated.rb +1 -1
- data/lib/moov/models/components/webhookevent.rb +2 -2
- data/lib/moov/models/components/webhookeventtype.rb +2 -0
- data/lib/moov/models/components/webhookstatus.rb +2 -0
- data/lib/moov/models/components.rb +1 -32
- data/lib/moov/models/errors/cardacquiringrefund_error.rb +3 -3
- data/lib/moov/models/errors/feeplanagreementerror.rb +1 -1
- data/lib/moov/models/errors/transfer_error.rb +4 -4
- data/lib/moov/models/errors.rb +0 -1
- data/lib/moov/models/operations/acceptdispute_request.rb +3 -3
- data/lib/moov/models/operations/assignaccountcountries_request.rb +3 -3
- data/lib/moov/models/operations/cancelschedule_request.rb +3 -3
- data/lib/moov/models/operations/completebankaccountverification_request.rb +3 -3
- data/lib/moov/models/operations/completemicrodeposits_request.rb +3 -3
- data/lib/moov/models/operations/connectaccount_request.rb +3 -3
- data/lib/moov/models/operations/createaccesstoken_request.rb +3 -3
- data/lib/moov/models/operations/createaccount_request.rb +3 -3
- data/lib/moov/models/operations/createapplepaysession_request.rb +3 -3
- data/lib/moov/models/operations/createbrand_request.rb +3 -3
- data/lib/moov/models/operations/createcancellation_request.rb +3 -3
- data/lib/moov/models/operations/createfeeplanagreements_request.rb +3 -3
- data/lib/moov/models/operations/createonboardinginvite_request.rb +3 -3
- data/lib/moov/models/operations/createpaymentlink_request.rb +3 -3
- data/lib/moov/models/operations/createproduct_request.rb +3 -3
- data/lib/moov/models/operations/createreceipts_request.rb +3 -3
- data/lib/moov/models/operations/createrepresentative_request.rb +3 -3
- data/lib/moov/models/operations/createreversal_request.rb +3 -3
- data/lib/moov/models/operations/createschedule_request.rb +3 -3
- data/lib/moov/models/operations/createsweepconfig_request.rb +3 -3
- data/lib/moov/models/operations/createterminalapplication_request.rb +3 -3
- data/lib/moov/models/operations/createterminalapplicationversion_request.rb +3 -3
- data/lib/moov/models/operations/createticket_request.rb +3 -3
- data/lib/moov/models/operations/createtransfer_request.rb +5 -5
- data/lib/moov/models/operations/createtransferoptions_request.rb +3 -3
- data/lib/moov/models/operations/createwallet_request.rb +3 -3
- data/lib/moov/models/operations/createwebhook_request.rb +3 -3
- data/lib/moov/models/operations/deletedisputeevidencefile_request.rb +3 -3
- data/lib/moov/models/operations/deleteimage_request.rb +3 -3
- data/lib/moov/models/operations/deleterepresentative_request.rb +3 -3
- data/lib/moov/models/operations/deleteterminalapplication_request.rb +3 -3
- data/lib/moov/models/operations/disablebankaccount_request.rb +3 -3
- data/lib/moov/models/operations/disablecapability_request.rb +4 -4
- data/lib/moov/models/operations/disablecard_request.rb +3 -3
- data/lib/moov/models/operations/disablepaymentlink_request.rb +3 -3
- data/lib/moov/models/operations/disableproduct_request.rb +3 -3
- data/lib/moov/models/operations/disablewebhook_request.rb +3 -3
- data/lib/moov/models/operations/disconnectaccount_request.rb +3 -3
- data/lib/moov/models/operations/generateendtoendkey_request.rb +3 -3
- data/lib/moov/models/operations/getaccount_request.rb +3 -3
- data/lib/moov/models/operations/getaccountcountries_request.rb +3 -3
- data/lib/moov/models/operations/getaccountterminalapplication_request.rb +3 -3
- data/lib/moov/models/operations/getadjustment_request.rb +3 -3
- data/lib/moov/models/operations/getapplepaymerchantdomains_request.rb +3 -3
- data/lib/moov/models/operations/getavatar_request.rb +3 -3
- data/lib/moov/models/operations/getbankaccount_request.rb +3 -3
- data/lib/moov/models/operations/getbankaccountverification_request.rb +3 -3
- data/lib/moov/models/operations/getbrand_request.rb +3 -3
- data/lib/moov/models/operations/getcancellation_request.rb +3 -3
- data/lib/moov/models/operations/getcapability_request.rb +4 -4
- data/lib/moov/models/operations/getcard_request.rb +3 -3
- data/lib/moov/models/operations/getdispute_request.rb +3 -3
- data/lib/moov/models/operations/getdisputeevidence_request.rb +3 -3
- data/lib/moov/models/operations/getdisputeevidencedata_request.rb +3 -3
- data/lib/moov/models/operations/getenrichmentaddress_request.rb +3 -3
- data/lib/moov/models/operations/getenrichmentprofile_request.rb +3 -3
- data/lib/moov/models/operations/getfiledetails_request.rb +3 -3
- data/lib/moov/models/operations/getfullissuedcard_request.rb +3 -3
- data/lib/moov/models/operations/getimagemetadata_request.rb +3 -3
- data/lib/moov/models/operations/getissuedcard_request.rb +3 -3
- data/lib/moov/models/operations/getissuedcardauthorization_request.rb +3 -3
- data/lib/moov/models/operations/getissuedcardtransaction_request.rb +3 -3
- data/lib/moov/models/operations/getmerchantprocessingagreement_request.rb +3 -3
- data/lib/moov/models/operations/getonboardinginvite_request.rb +3 -3
- data/lib/moov/models/operations/getpaymentlink_request.rb +3 -3
- data/lib/moov/models/operations/getpaymentlinkqrcode_request.rb +3 -3
- data/lib/moov/models/operations/getpaymentmethod_request.rb +3 -3
- data/lib/moov/models/operations/getproduct_request.rb +3 -3
- data/lib/moov/models/operations/getpublicimage_request.rb +1 -1
- data/lib/moov/models/operations/getrefund_request.rb +3 -3
- data/lib/moov/models/operations/getrepresentative_request.rb +3 -3
- data/lib/moov/models/operations/getresidual_request.rb +3 -3
- data/lib/moov/models/operations/getscheduledoccurrence_request.rb +8 -8
- data/lib/moov/models/operations/getschedules_request.rb +3 -3
- data/lib/moov/models/operations/getstatement_request.rb +3 -3
- data/lib/moov/models/operations/getsweep_request.rb +3 -3
- data/lib/moov/models/operations/getsweepconfig_request.rb +3 -3
- data/lib/moov/models/operations/getterminalapplication_request.rb +3 -3
- data/lib/moov/models/operations/getterminalconfiguration_request.rb +3 -3
- data/lib/moov/models/operations/gettermsofservicetoken_request.rb +3 -3
- data/lib/moov/models/operations/getticket_request.rb +3 -3
- data/lib/moov/models/operations/gettransfer_request.rb +3 -3
- data/lib/moov/models/operations/getunderwriting_request.rb +3 -3
- data/lib/moov/models/operations/getwallet_request.rb +3 -3
- data/lib/moov/models/operations/getwallettransaction_request.rb +3 -3
- data/lib/moov/models/operations/getwebhook_request.rb +3 -3
- data/lib/moov/models/operations/getwebhooksecret_request.rb +3 -3
- data/lib/moov/models/operations/hydrate.rb +2 -0
- data/lib/moov/models/operations/initiatebankaccountverification_request.rb +4 -4
- data/lib/moov/models/operations/initiatemicrodeposits_request.rb +3 -3
- data/lib/moov/models/operations/initiaterefund_request.rb +3 -3
- data/lib/moov/models/operations/linkaccountterminalapplication_request.rb +3 -3
- data/lib/moov/models/operations/linkapplepaytoken_request.rb +3 -3
- data/lib/moov/models/operations/linkbankaccount_request.rb +4 -4
- data/lib/moov/models/operations/linkcard_request.rb +4 -4
- data/lib/moov/models/operations/listaccounts_request.rb +9 -9
- data/lib/moov/models/operations/listaccountterminalapplications_request.rb +3 -3
- data/lib/moov/models/operations/listadjustments_request.rb +3 -3
- data/lib/moov/models/operations/listbankaccounts_request.rb +3 -3
- data/lib/moov/models/operations/listcapabilities_request.rb +3 -3
- data/lib/moov/models/operations/listcards_request.rb +3 -3
- data/lib/moov/models/operations/listconnectedaccountsforaccount_request.rb +9 -9
- data/lib/moov/models/operations/listdisputeevidence_request.rb +3 -3
- data/lib/moov/models/operations/listdisputes_request.rb +3 -3
- data/lib/moov/models/operations/listeventtypes_request.rb +3 -3
- data/lib/moov/models/operations/listfeeplanagreements_request.rb +3 -3
- data/lib/moov/models/operations/listfeeplans_request.rb +3 -3
- data/lib/moov/models/operations/listfeerevenue_request.rb +3 -3
- data/lib/moov/models/operations/listfeesfetch_request.rb +3 -3
- data/lib/moov/models/operations/listfiles_request.rb +3 -3
- data/lib/moov/models/operations/listimagemetadata_request.rb +3 -3
- data/lib/moov/models/operations/listindustries_request.rb +3 -3
- data/lib/moov/models/operations/listinstitutions_request.rb +3 -3
- data/lib/moov/models/operations/listissuedcardauthorizationevents_request.rb +3 -3
- data/lib/moov/models/operations/listissuedcardauthorizations_request.rb +3 -3
- data/lib/moov/models/operations/listissuedcards_request.rb +3 -3
- data/lib/moov/models/operations/listissuedcardtransactions_request.rb +3 -3
- data/lib/moov/models/operations/listonboardinginvites_request.rb +3 -3
- data/lib/moov/models/operations/listpartnerpricingagreements_request.rb +3 -3
- data/lib/moov/models/operations/listpaymentlinks_request.rb +13 -9
- data/lib/moov/models/operations/listpaymentlinks_request.rbi +4 -2
- data/lib/moov/models/operations/listpaymentmethods_request.rb +4 -4
- data/lib/moov/models/operations/listproducts_request.rb +3 -3
- data/lib/moov/models/operations/listreceipts_request.rb +3 -3
- data/lib/moov/models/operations/listrefunds_request.rb +3 -3
- data/lib/moov/models/operations/listrepresentatives_request.rb +3 -3
- data/lib/moov/models/operations/listresidualfees_request.rb +3 -3
- data/lib/moov/models/operations/listresiduals_request.rb +3 -3
- data/lib/moov/models/operations/listschedules_request.rb +3 -3
- data/lib/moov/models/operations/liststatements_request.rb +3 -3
- data/lib/moov/models/operations/listsweepconfigs_request.rb +3 -3
- data/lib/moov/models/operations/listsweeps_request.rb +3 -3
- data/lib/moov/models/operations/listterminalapplications_request.rb +3 -3
- data/lib/moov/models/operations/listticketmessages_request.rb +3 -3
- data/lib/moov/models/operations/listtickets_request.rb +3 -3
- data/lib/moov/models/operations/listtransfers_request.rb +3 -3
- data/lib/moov/models/operations/listwallets_request.rb +3 -3
- data/lib/moov/models/operations/listwallettransactions_request.rb +3 -3
- data/lib/moov/models/operations/listwebhooks_request.rb +3 -3
- data/lib/moov/models/operations/ping_request.rb +3 -3
- data/lib/moov/models/operations/pingwebhook_request.rb +3 -3
- data/lib/moov/models/operations/registerapplepaymerchantdomains_request.rb +3 -3
- data/lib/moov/models/operations/requestcapabilities_request.rb +3 -3
- data/lib/moov/models/operations/requestcard_request.rb +3 -3
- data/lib/moov/models/operations/retrievefees_request.rb +3 -3
- data/lib/moov/models/operations/revokeaccesstoken_request.rb +3 -3
- data/lib/moov/models/operations/revokeonboardinginvite_request.rb +3 -3
- data/lib/moov/models/operations/saveunderwriting_request.rb +3 -3
- data/lib/moov/models/operations/searchinstitutions_request.rb +3 -3
- data/lib/moov/models/operations/submitdisputeevidence_request.rb +3 -3
- data/lib/moov/models/operations/testendtoendtoken_request.rb +3 -3
- data/lib/moov/models/operations/updateaccount_request.rb +3 -3
- data/lib/moov/models/operations/updateapplepaymerchantdomains_request.rb +3 -3
- data/lib/moov/models/operations/updatecard_request.rb +3 -3
- data/lib/moov/models/operations/updatedisputeevidence_request.rb +3 -3
- data/lib/moov/models/operations/updateimage_request.rb +3 -3
- data/lib/moov/models/operations/updateimagemetadata_request.rb +3 -3
- data/lib/moov/models/operations/updateissuedcard_request.rb +3 -3
- data/lib/moov/models/operations/updatepaymentlink_request.rb +3 -3
- data/lib/moov/models/operations/updateproduct_request.rb +3 -3
- data/lib/moov/models/operations/updaterepresentative_request.rb +3 -3
- data/lib/moov/models/operations/updateschedule_request.rb +3 -3
- data/lib/moov/models/operations/updatesweepconfig_request.rb +3 -3
- data/lib/moov/models/operations/updateticket_request.rb +3 -3
- data/lib/moov/models/operations/updatetransfer_request.rb +3 -3
- data/lib/moov/models/operations/updatewallet_request.rb +3 -3
- data/lib/moov/models/operations/updatewebhook_request.rb +3 -3
- data/lib/moov/models/operations/uploaddisputeevidencefile_request.rb +3 -3
- data/lib/moov/models/operations/uploaddisputeevidencetext_request.rb +3 -3
- data/lib/moov/models/operations/uploadfile_request.rb +3 -3
- data/lib/moov/models/operations/uploadimage_request.rb +3 -3
- data/lib/moov/models/operations/upsertbrand_request.rb +3 -3
- data/lib/moov/models/operations/upsertunderwriting_request.rb +3 -3
- data/lib/moov/onboarding.rb +14 -28
- data/lib/moov/payment_links.rb +24 -44
- data/lib/moov/payment_methods.rb +7 -15
- data/lib/moov/ping.rb +4 -9
- data/lib/moov/products.rb +14 -31
- data/lib/moov/receipts.rb +8 -16
- data/lib/moov/representatives.rb +23 -40
- data/lib/moov/scheduling.rb +21 -41
- data/lib/moov/sdkconfiguration.rb +4 -4
- data/lib/moov/statements.rb +10 -18
- data/lib/moov/support.rb +23 -40
- data/lib/moov/sweeps.rb +21 -41
- data/lib/moov/terminal_applications.rb +18 -35
- data/lib/moov/transfers.rb +45 -80
- data/lib/moov/underwriting.rb +15 -26
- data/lib/moov/utils/request_bodies.rb +3 -8
- data/lib/moov/utils/security.rb +0 -10
- data/lib/moov/utils/url.rb +5 -11
- data/lib/moov/utils/utils.rb +3 -45
- data/lib/moov/wallet_transactions.rb +9 -17
- data/lib/moov/wallets.rb +19 -33
- data/lib/moov/webhooks.rb +19 -45
- metadata +8 -87
- data/lib/crystalline/enum.rbi +0 -17
- data/lib/moov/models/components/achcreditsamedaytransferpaymentmethod.rb +0 -40
- data/lib/moov/models/components/achcreditsamedaytransferpaymentmethod.rbi +0 -17
- data/lib/moov/models/components/achcreditsamedaytransferpaymentmethod_paymentmethodtype.rb +0 -18
- data/lib/moov/models/components/achcreditsamedaytransferpaymentmethod_paymentmethodtype.rbi +0 -11
- data/lib/moov/models/components/achcreditstandardtransferpaymentmethod.rb +0 -40
- data/lib/moov/models/components/achcreditstandardtransferpaymentmethod.rbi +0 -17
- data/lib/moov/models/components/achcreditstandardtransferpaymentmethod_paymentmethodtype.rb +0 -18
- data/lib/moov/models/components/achcreditstandardtransferpaymentmethod_paymentmethodtype.rbi +0 -11
- data/lib/moov/models/components/achdebitcollecttransferpaymentmethod.rb +0 -40
- data/lib/moov/models/components/achdebitcollecttransferpaymentmethod.rbi +0 -17
- data/lib/moov/models/components/achdebitcollecttransferpaymentmethod_paymentmethodtype.rb +0 -18
- data/lib/moov/models/components/achdebitcollecttransferpaymentmethod_paymentmethodtype.rbi +0 -11
- data/lib/moov/models/components/achdebitfundtransferpaymentmethod.rb +0 -40
- data/lib/moov/models/components/achdebitfundtransferpaymentmethod.rbi +0 -17
- data/lib/moov/models/components/achdebitfundtransferpaymentmethod_paymentmethodtype.rb +0 -18
- data/lib/moov/models/components/achdebitfundtransferpaymentmethod_paymentmethodtype.rbi +0 -11
- data/lib/moov/models/components/applepaytransferpaymentmethod.rb +0 -40
- data/lib/moov/models/components/applepaytransferpaymentmethod.rbi +0 -17
- data/lib/moov/models/components/applepaytransferpaymentmethod_paymentmethodtype.rb +0 -18
- data/lib/moov/models/components/applepaytransferpaymentmethod_paymentmethodtype.rbi +0 -11
- data/lib/moov/models/components/cardpaymenttransferpaymentmethod.rb +0 -40
- data/lib/moov/models/components/cardpaymenttransferpaymentmethod.rbi +0 -17
- data/lib/moov/models/components/cardpaymenttransferpaymentmethod_paymentmethodtype.rb +0 -18
- data/lib/moov/models/components/cardpaymenttransferpaymentmethod_paymentmethodtype.rbi +0 -11
- data/lib/moov/models/components/cardpresentpaymenttransferpaymentmethod.rb +0 -40
- data/lib/moov/models/components/cardpresentpaymenttransferpaymentmethod.rbi +0 -17
- data/lib/moov/models/components/cardpresentpaymenttransferpaymentmethod_paymentmethodtype.rb +0 -18
- data/lib/moov/models/components/cardpresentpaymenttransferpaymentmethod_paymentmethodtype.rbi +0 -11
- data/lib/moov/models/components/instantbankcredittransferpaymentmethod.rb +0 -40
- data/lib/moov/models/components/instantbankcredittransferpaymentmethod.rbi +0 -17
- data/lib/moov/models/components/instantbankcredittransferpaymentmethod_paymentmethodtype.rb +0 -18
- data/lib/moov/models/components/instantbankcredittransferpaymentmethod_paymentmethodtype.rbi +0 -11
- data/lib/moov/models/components/moovwallettransferpaymentmethod.rb +0 -40
- data/lib/moov/models/components/moovwallettransferpaymentmethod.rbi +0 -17
- data/lib/moov/models/components/moovwallettransferpaymentmethod_paymentmethodtype.rb +0 -18
- data/lib/moov/models/components/moovwallettransferpaymentmethod_paymentmethodtype.rbi +0 -11
- data/lib/moov/models/components/pullfromcardtransferpaymentmethod.rb +0 -40
- data/lib/moov/models/components/pullfromcardtransferpaymentmethod.rbi +0 -17
- data/lib/moov/models/components/pullfromcardtransferpaymentmethod_paymentmethodtype.rb +0 -18
- data/lib/moov/models/components/pullfromcardtransferpaymentmethod_paymentmethodtype.rbi +0 -11
- data/lib/moov/models/components/pushtocardtransferpaymentmethod.rb +0 -40
- data/lib/moov/models/components/pushtocardtransferpaymentmethod.rbi +0 -17
- data/lib/moov/models/components/pushtocardtransferpaymentmethod_paymentmethodtype.rb +0 -18
- data/lib/moov/models/components/pushtocardtransferpaymentmethod_paymentmethodtype.rbi +0 -11
- data/lib/moov/models/components/rtpcredittransferpaymentmethod.rb +0 -40
- data/lib/moov/models/components/rtpcredittransferpaymentmethod.rbi +0 -17
- data/lib/moov/models/components/rtpcredittransferpaymentmethod_paymentmethodtype.rb +0 -18
- data/lib/moov/models/components/rtpcredittransferpaymentmethod_paymentmethodtype.rbi +0 -11
- data/lib/moov/models/components/transferentrymode.rb +0 -18
- data/lib/moov/models/components/transferentrymode.rbi +0 -11
- data/lib/moov/models/components/transferpaymentmethod.rb +0 -27
- data/lib/moov/models/components/transferpaymentmethod.rbi +0 -11
- data/lib/moov/models/components/transferpaymentmethodsbankaccount.rb +0 -70
- data/lib/moov/models/components/transferpaymentmethodsbankaccount.rbi +0 -31
- data/lib/moov/models/components/transferpaymentmethodscard.rb +0 -98
- data/lib/moov/models/components/transferpaymentmethodscard.rbi +0 -45
- data/lib/moov/models/components/transferpaymentmethodswallet.rb +0 -42
- data/lib/moov/models/components/transferpaymentmethodswallet.rbi +0 -17
- data/lib/moov/models/components/transferpaymentmethodtype.rb +0 -29
- data/lib/moov/models/components/transferpaymentmethodtype.rbi +0 -11
- data/lib/moov/models/components/transferterminalcard.rb +0 -78
- data/lib/moov/models/components/transferterminalcard.rbi +0 -35
- data/lib/moov/models/errors/duplicatecarderror.rb +0 -41
- data/lib/moov/models/errors/duplicatecarderror.rbi +0 -17
data/lib/moov/accounts.rb
CHANGED
|
@@ -39,23 +39,21 @@ module Moov
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
sig { params(create_account: Models::Components::CreateAccount, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::CreateAccountResponse) }
|
|
45
|
-
def create(create_account:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
42
|
+
sig { params(create_account: Models::Components::CreateAccount, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::CreateAccountResponse) }
|
|
43
|
+
def create(create_account:, x_moov_version: nil, timeout_ms: nil)
|
|
46
44
|
# create - You can create **business** or **individual** accounts for your users (i.e., customers, merchants) by passing the required
|
|
47
45
|
# information to Moov. Requirements differ per account type and requested [capabilities](https://docs.moov.io/guides/accounts/capabilities/requirements/).
|
|
48
|
-
#
|
|
46
|
+
#
|
|
49
47
|
# If you're requesting the `wallet`, `send-funds`, `collect-funds`, or `card-issuing` capabilities, you'll need to:
|
|
50
48
|
# + Send Moov the user [platform terms of service agreement](https://docs.moov.io/guides/accounts/requirements/platform-agreement/) acceptance.
|
|
51
49
|
# This can be done upon account creation, or by [patching](https://docs.moov.io/api/moov-accounts/accounts/patch/) the account using the `termsOfService` field.
|
|
52
50
|
# If you're creating a business account with the business type `llc`, `partnership`, or `privateCorporation`, you'll need to:
|
|
53
51
|
# + Provide [business representatives](https://docs.moov.io/api/moov-accounts/representatives/) after creating the account.
|
|
54
52
|
# + [Patch](https://docs.moov.io/api/moov-accounts/accounts/patch/) the account to indicate that business representative ownership information is complete.
|
|
55
|
-
#
|
|
53
|
+
#
|
|
56
54
|
# Visit our documentation to read more about [creating accounts](https://docs.moov.io/guides/accounts/create-accounts/) and [verification requirements](https://docs.moov.io/guides/accounts/requirements/identity-verification/).
|
|
57
55
|
# Note that the `mode` field (for production or sandbox) is only required when creating a _facilitator_ account. All non-facilitator account requests will ignore the mode field and be set to the calling facilitator's mode.
|
|
58
|
-
#
|
|
56
|
+
#
|
|
59
57
|
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
60
58
|
# to specify the `/accounts.write` scope.
|
|
61
59
|
request = Models::Operations::CreateAccountRequest.new(
|
|
@@ -71,7 +69,7 @@ module Moov
|
|
|
71
69
|
headers['content-type'] = req_content_type
|
|
72
70
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
73
71
|
|
|
74
|
-
if form
|
|
72
|
+
if form
|
|
75
73
|
body = Utils.encode_form(form)
|
|
76
74
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
77
75
|
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
@@ -107,9 +105,6 @@ module Moov
|
|
|
107
105
|
req.headers.merge!(headers)
|
|
108
106
|
req.options.timeout = timeout unless timeout.nil?
|
|
109
107
|
Utils.configure_request_security(req, security)
|
|
110
|
-
http_headers&.each do |key, value|
|
|
111
|
-
req.headers[key.to_s] = value
|
|
112
|
-
end
|
|
113
108
|
|
|
114
109
|
@sdk_configuration.hooks.before_request(
|
|
115
110
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -212,14 +207,14 @@ module Moov
|
|
|
212
207
|
end
|
|
213
208
|
|
|
214
209
|
|
|
215
|
-
sig { params(request: Models::Operations::ListAccountsRequest, timeout_ms: T.nilable(Integer)
|
|
216
|
-
def list(request:, timeout_ms: nil
|
|
210
|
+
sig { params(request: Models::Operations::ListAccountsRequest, timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListAccountsResponse) }
|
|
211
|
+
def list(request:, timeout_ms: nil)
|
|
217
212
|
# list - List or search accounts to which the caller is connected.
|
|
218
|
-
#
|
|
213
|
+
#
|
|
219
214
|
# All supported query parameters are optional. If none are provided the response will include all connected accounts.
|
|
220
215
|
# Pagination is supported via the `skip` and `count` query parameters. Searching by name and email will overlap and
|
|
221
216
|
# return results based on relevance. Accounts with AccountType `guest` will not be included in the response.
|
|
222
|
-
#
|
|
217
|
+
#
|
|
223
218
|
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
224
219
|
# to specify the `/accounts.read` scope.
|
|
225
220
|
url, params = @sdk_configuration.get_server_details
|
|
@@ -257,9 +252,6 @@ module Moov
|
|
|
257
252
|
req.options.timeout = timeout unless timeout.nil?
|
|
258
253
|
req.params = query_params
|
|
259
254
|
Utils.configure_request_security(req, security)
|
|
260
|
-
http_headers&.each do |key, value|
|
|
261
|
-
req.headers[key.to_s] = value
|
|
262
|
-
end
|
|
263
255
|
|
|
264
256
|
@sdk_configuration.hooks.before_request(
|
|
265
257
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -332,10 +324,10 @@ module Moov
|
|
|
332
324
|
end
|
|
333
325
|
|
|
334
326
|
|
|
335
|
-
sig { params(account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)
|
|
336
|
-
def get(account_id:, x_moov_version: nil, timeout_ms: nil
|
|
327
|
+
sig { params(account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetAccountResponse) }
|
|
328
|
+
def get(account_id:, x_moov_version: nil, timeout_ms: nil)
|
|
337
329
|
# get - Retrieves details for the account with the specified ID.
|
|
338
|
-
#
|
|
330
|
+
#
|
|
339
331
|
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
340
332
|
# to specify the `/accounts/{accountID}/profile.read` scope.
|
|
341
333
|
request = Models::Operations::GetAccountRequest.new(
|
|
@@ -381,9 +373,6 @@ module Moov
|
|
|
381
373
|
req.headers.merge!(headers)
|
|
382
374
|
req.options.timeout = timeout unless timeout.nil?
|
|
383
375
|
Utils.configure_request_security(req, security)
|
|
384
|
-
http_headers&.each do |key, value|
|
|
385
|
-
req.headers[key.to_s] = value
|
|
386
|
-
end
|
|
387
376
|
|
|
388
377
|
@sdk_configuration.hooks.before_request(
|
|
389
378
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -456,18 +445,18 @@ module Moov
|
|
|
456
445
|
end
|
|
457
446
|
|
|
458
447
|
|
|
459
|
-
sig { params(patch_account: Models::Components::PatchAccount, account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)
|
|
460
|
-
def update(patch_account:, account_id:, x_moov_version: nil, timeout_ms: nil
|
|
448
|
+
sig { params(patch_account: Models::Components::PatchAccount, account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::UpdateAccountResponse) }
|
|
449
|
+
def update(patch_account:, account_id:, x_moov_version: nil, timeout_ms: nil)
|
|
461
450
|
# update - When **can** profile data be updated:
|
|
462
451
|
# + For unverified accounts, all profile data can be edited.
|
|
463
452
|
# + During the verification process, missing or incomplete profile data can be edited.
|
|
464
453
|
# + Verified accounts can only add missing profile data.
|
|
465
|
-
#
|
|
454
|
+
#
|
|
466
455
|
# When **can't** profile data be updated:
|
|
467
456
|
# + Verified accounts cannot change any existing profile data.
|
|
468
|
-
#
|
|
457
|
+
#
|
|
469
458
|
# If you need to update information in a locked state, please contact Moov support.
|
|
470
|
-
#
|
|
459
|
+
#
|
|
471
460
|
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
472
461
|
# to specify the `/accounts/{accountID}/profile.write` scope.
|
|
473
462
|
request = Models::Operations::UpdateAccountRequest.new(
|
|
@@ -490,7 +479,7 @@ module Moov
|
|
|
490
479
|
headers['content-type'] = req_content_type
|
|
491
480
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
492
481
|
|
|
493
|
-
if form
|
|
482
|
+
if form
|
|
494
483
|
body = Utils.encode_form(form)
|
|
495
484
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
496
485
|
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
@@ -526,9 +515,6 @@ module Moov
|
|
|
526
515
|
req.headers.merge!(headers)
|
|
527
516
|
req.options.timeout = timeout unless timeout.nil?
|
|
528
517
|
Utils.configure_request_security(req, security)
|
|
529
|
-
http_headers&.each do |key, value|
|
|
530
|
-
req.headers[key.to_s] = value
|
|
531
|
-
end
|
|
532
518
|
|
|
533
519
|
@sdk_configuration.hooks.before_request(
|
|
534
520
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -631,12 +617,12 @@ module Moov
|
|
|
631
617
|
end
|
|
632
618
|
|
|
633
619
|
|
|
634
|
-
sig { params(account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)
|
|
635
|
-
def disconnect(account_id:, x_moov_version: nil, timeout_ms: nil
|
|
620
|
+
sig { params(account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::DisconnectAccountResponse) }
|
|
621
|
+
def disconnect(account_id:, x_moov_version: nil, timeout_ms: nil)
|
|
636
622
|
# disconnect - This will sever the connection between you and the account specified and it will no longer be listed as
|
|
637
623
|
# active in the list of accounts. This also means you'll only have read-only access to the account going
|
|
638
624
|
# forward for reporting purposes.
|
|
639
|
-
#
|
|
625
|
+
#
|
|
640
626
|
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
641
627
|
# you'll need to specify the `/accounts/{accountID}/profile.disconnect` scope.
|
|
642
628
|
request = Models::Operations::DisconnectAccountRequest.new(
|
|
@@ -682,9 +668,6 @@ module Moov
|
|
|
682
668
|
req.headers.merge!(headers)
|
|
683
669
|
req.options.timeout = timeout unless timeout.nil?
|
|
684
670
|
Utils.configure_request_security(req, security)
|
|
685
|
-
http_headers&.each do |key, value|
|
|
686
|
-
req.headers[key.to_s] = value
|
|
687
|
-
end
|
|
688
671
|
|
|
689
672
|
@sdk_configuration.hooks.before_request(
|
|
690
673
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -763,14 +746,14 @@ module Moov
|
|
|
763
746
|
end
|
|
764
747
|
|
|
765
748
|
|
|
766
|
-
sig { params(request: Models::Operations::ListConnectedAccountsForAccountRequest, timeout_ms: T.nilable(Integer)
|
|
767
|
-
def list_connected(request:, timeout_ms: nil
|
|
749
|
+
sig { params(request: Models::Operations::ListConnectedAccountsForAccountRequest, timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListConnectedAccountsForAccountResponse) }
|
|
750
|
+
def list_connected(request:, timeout_ms: nil)
|
|
768
751
|
# list_connected - List or search accounts to which the caller is connected.
|
|
769
|
-
#
|
|
752
|
+
#
|
|
770
753
|
# All supported query parameters are optional. If none are provided the response will include all connected accounts.
|
|
771
754
|
# Pagination is supported via the `skip` and `count` query parameters. Searching by name and email will overlap and
|
|
772
755
|
# return results based on relevance. Accounts with AccountType `guest` will not be included in the response.
|
|
773
|
-
#
|
|
756
|
+
#
|
|
774
757
|
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
775
758
|
# to specify the `/accounts.read` scope.
|
|
776
759
|
url, params = @sdk_configuration.get_server_details
|
|
@@ -814,9 +797,6 @@ module Moov
|
|
|
814
797
|
req.options.timeout = timeout unless timeout.nil?
|
|
815
798
|
req.params = query_params
|
|
816
799
|
Utils.configure_request_security(req, security)
|
|
817
|
-
http_headers&.each do |key, value|
|
|
818
|
-
req.headers[key.to_s] = value
|
|
819
|
-
end
|
|
820
800
|
|
|
821
801
|
@sdk_configuration.hooks.before_request(
|
|
822
802
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -889,8 +869,8 @@ module Moov
|
|
|
889
869
|
end
|
|
890
870
|
|
|
891
871
|
|
|
892
|
-
sig { params(share_scopes: Models::Components::ShareScopes, account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)
|
|
893
|
-
def connect(share_scopes:, account_id:, x_moov_version: nil, timeout_ms: nil
|
|
872
|
+
sig { params(share_scopes: Models::Components::ShareScopes, account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::ConnectAccountResponse) }
|
|
873
|
+
def connect(share_scopes:, account_id:, x_moov_version: nil, timeout_ms: nil)
|
|
894
874
|
# connect - Shares access scopes from the account specified to the caller, establishing a connection
|
|
895
875
|
# between the two accounts with the specified permissions.
|
|
896
876
|
request = Models::Operations::ConnectAccountRequest.new(
|
|
@@ -913,7 +893,7 @@ module Moov
|
|
|
913
893
|
headers['content-type'] = req_content_type
|
|
914
894
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
915
895
|
|
|
916
|
-
if form
|
|
896
|
+
if form
|
|
917
897
|
body = Utils.encode_form(form)
|
|
918
898
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
919
899
|
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
@@ -949,9 +929,6 @@ module Moov
|
|
|
949
929
|
req.headers.merge!(headers)
|
|
950
930
|
req.options.timeout = timeout unless timeout.nil?
|
|
951
931
|
Utils.configure_request_security(req, security)
|
|
952
|
-
http_headers&.each do |key, value|
|
|
953
|
-
req.headers[key.to_s] = value
|
|
954
|
-
end
|
|
955
932
|
|
|
956
933
|
@sdk_configuration.hooks.before_request(
|
|
957
934
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -1045,10 +1022,10 @@ module Moov
|
|
|
1045
1022
|
end
|
|
1046
1023
|
|
|
1047
1024
|
|
|
1048
|
-
sig { params(account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)
|
|
1049
|
-
def get_countries(account_id:, x_moov_version: nil, timeout_ms: nil
|
|
1025
|
+
sig { params(account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetAccountCountriesResponse) }
|
|
1026
|
+
def get_countries(account_id:, x_moov_version: nil, timeout_ms: nil)
|
|
1050
1027
|
# get_countries - Retrieve the specified countries of operation for an account.
|
|
1051
|
-
#
|
|
1028
|
+
#
|
|
1052
1029
|
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
1053
1030
|
# you'll need to specify the `/accounts/{accountID}/profile.read` scope.
|
|
1054
1031
|
request = Models::Operations::GetAccountCountriesRequest.new(
|
|
@@ -1094,9 +1071,6 @@ module Moov
|
|
|
1094
1071
|
req.headers.merge!(headers)
|
|
1095
1072
|
req.options.timeout = timeout unless timeout.nil?
|
|
1096
1073
|
Utils.configure_request_security(req, security)
|
|
1097
|
-
http_headers&.each do |key, value|
|
|
1098
|
-
req.headers[key.to_s] = value
|
|
1099
|
-
end
|
|
1100
1074
|
|
|
1101
1075
|
@sdk_configuration.hooks.before_request(
|
|
1102
1076
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -1169,12 +1143,12 @@ module Moov
|
|
|
1169
1143
|
end
|
|
1170
1144
|
|
|
1171
1145
|
|
|
1172
|
-
sig { params(account_countries: Models::Components::AccountCountries, account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)
|
|
1173
|
-
def assign_countries(account_countries:, account_id:, x_moov_version: nil, timeout_ms: nil
|
|
1146
|
+
sig { params(account_countries: Models::Components::AccountCountries, account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AssignAccountCountriesResponse) }
|
|
1147
|
+
def assign_countries(account_countries:, account_id:, x_moov_version: nil, timeout_ms: nil)
|
|
1174
1148
|
# assign_countries - Assign the countries of operation for an account.
|
|
1175
|
-
#
|
|
1149
|
+
#
|
|
1176
1150
|
# This endpoint will always overwrite the previously assigned values.
|
|
1177
|
-
#
|
|
1151
|
+
#
|
|
1178
1152
|
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
1179
1153
|
# you'll need to specify the `/accounts/{accountID}/profile.write` scope.
|
|
1180
1154
|
request = Models::Operations::AssignAccountCountriesRequest.new(
|
|
@@ -1197,7 +1171,7 @@ module Moov
|
|
|
1197
1171
|
headers['content-type'] = req_content_type
|
|
1198
1172
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
1199
1173
|
|
|
1200
|
-
if form
|
|
1174
|
+
if form
|
|
1201
1175
|
body = Utils.encode_form(form)
|
|
1202
1176
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
1203
1177
|
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
@@ -1233,9 +1207,6 @@ module Moov
|
|
|
1233
1207
|
req.headers.merge!(headers)
|
|
1234
1208
|
req.options.timeout = timeout unless timeout.nil?
|
|
1235
1209
|
Utils.configure_request_security(req, security)
|
|
1236
|
-
http_headers&.each do |key, value|
|
|
1237
|
-
req.headers[key.to_s] = value
|
|
1238
|
-
end
|
|
1239
1210
|
|
|
1240
1211
|
@sdk_configuration.hooks.before_request(
|
|
1241
1212
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -1338,10 +1309,10 @@ module Moov
|
|
|
1338
1309
|
end
|
|
1339
1310
|
|
|
1340
1311
|
|
|
1341
|
-
sig { params(account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)
|
|
1342
|
-
def get_merchant_processing_agreement(account_id:, x_moov_version: nil, timeout_ms: nil
|
|
1312
|
+
sig { params(account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetMerchantProcessingAgreementResponse) }
|
|
1313
|
+
def get_merchant_processing_agreement(account_id:, x_moov_version: nil, timeout_ms: nil)
|
|
1343
1314
|
# get_merchant_processing_agreement - Retrieve a merchant account's processing agreement.
|
|
1344
|
-
#
|
|
1315
|
+
#
|
|
1345
1316
|
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
1346
1317
|
# you'll need to specify the `/accounts/{accountID}/profile.read` scope.
|
|
1347
1318
|
request = Models::Operations::GetMerchantProcessingAgreementRequest.new(
|
|
@@ -1387,9 +1358,6 @@ module Moov
|
|
|
1387
1358
|
req.headers.merge!(headers)
|
|
1388
1359
|
req.options.timeout = timeout unless timeout.nil?
|
|
1389
1360
|
Utils.configure_request_security(req, security)
|
|
1390
|
-
http_headers&.each do |key, value|
|
|
1391
|
-
req.headers[key.to_s] = value
|
|
1392
|
-
end
|
|
1393
1361
|
|
|
1394
1362
|
@sdk_configuration.hooks.before_request(
|
|
1395
1363
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -1433,7 +1401,7 @@ module Moov
|
|
|
1433
1401
|
),
|
|
1434
1402
|
response: http_response
|
|
1435
1403
|
)
|
|
1436
|
-
obj = http_response.env.body
|
|
1404
|
+
obj = http_response.env.body
|
|
1437
1405
|
|
|
1438
1406
|
return Models::Operations::GetMerchantProcessingAgreementResponse.new(
|
|
1439
1407
|
status_code: http_response.status,
|
|
@@ -1460,10 +1428,10 @@ module Moov
|
|
|
1460
1428
|
end
|
|
1461
1429
|
|
|
1462
1430
|
|
|
1463
|
-
sig { params(x_moov_version: T.nilable(::String), origin: T.nilable(::String), referer: T.nilable(::String), timeout_ms: T.nilable(Integer)
|
|
1464
|
-
def get_terms_of_service_token(x_moov_version: nil, origin: nil, referer: nil, timeout_ms: nil
|
|
1431
|
+
sig { params(x_moov_version: T.nilable(::String), origin: T.nilable(::String), referer: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetTermsOfServiceTokenResponse) }
|
|
1432
|
+
def get_terms_of_service_token(x_moov_version: nil, origin: nil, referer: nil, timeout_ms: nil)
|
|
1465
1433
|
# get_terms_of_service_token - Generates a non-expiring token that can then be used to accept Moov's terms of service.
|
|
1466
|
-
#
|
|
1434
|
+
#
|
|
1467
1435
|
# This token can only be generated via API. Any Moov account requesting the collect funds, send funds, wallet,
|
|
1468
1436
|
# or card issuing capabilities must accept Moov's terms of service, then have the generated terms of service
|
|
1469
1437
|
# token patched to the account. Read more in our [documentation](https://docs.moov.io/guides/accounts/requirements/platform-agreement/).
|
|
@@ -1505,9 +1473,6 @@ module Moov
|
|
|
1505
1473
|
req.headers.merge!(headers)
|
|
1506
1474
|
req.options.timeout = timeout unless timeout.nil?
|
|
1507
1475
|
Utils.configure_request_security(req, security)
|
|
1508
|
-
http_headers&.each do |key, value|
|
|
1509
|
-
req.headers[key.to_s] = value
|
|
1510
|
-
end
|
|
1511
1476
|
|
|
1512
1477
|
@sdk_configuration.hooks.before_request(
|
|
1513
1478
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -1578,5 +1543,5 @@ module Moov
|
|
|
1578
1543
|
|
|
1579
1544
|
end
|
|
1580
1545
|
end
|
|
1581
|
-
end
|
|
1546
|
+
end
|
|
1582
1547
|
end
|
data/lib/moov/adjustments.rb
CHANGED
|
@@ -39,12 +39,10 @@ module Moov
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
sig { params(account_id: ::String, x_moov_version: T.nilable(::String), wallet_id: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ListAdjustmentsResponse) }
|
|
45
|
-
def list(account_id:, x_moov_version: nil, wallet_id: nil, timeout_ms: nil, http_headers: nil)
|
|
42
|
+
sig { params(account_id: ::String, x_moov_version: T.nilable(::String), wallet_id: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListAdjustmentsResponse) }
|
|
43
|
+
def list(account_id:, x_moov_version: nil, wallet_id: nil, timeout_ms: nil)
|
|
46
44
|
# list - List adjustments associated with a Moov account.
|
|
47
|
-
#
|
|
45
|
+
#
|
|
48
46
|
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
49
47
|
# you'll need to specify the `/accounts/{accountID}/wallets.read` scope.
|
|
50
48
|
request = Models::Operations::ListAdjustmentsRequest.new(
|
|
@@ -93,9 +91,6 @@ module Moov
|
|
|
93
91
|
req.options.timeout = timeout unless timeout.nil?
|
|
94
92
|
req.params = query_params
|
|
95
93
|
Utils.configure_request_security(req, security)
|
|
96
|
-
http_headers&.each do |key, value|
|
|
97
|
-
req.headers[key.to_s] = value
|
|
98
|
-
end
|
|
99
94
|
|
|
100
95
|
@sdk_configuration.hooks.before_request(
|
|
101
96
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -168,10 +163,10 @@ module Moov
|
|
|
168
163
|
end
|
|
169
164
|
|
|
170
165
|
|
|
171
|
-
sig { params(account_id: ::String, adjustment_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)
|
|
172
|
-
def get(account_id:, adjustment_id:, x_moov_version: nil, timeout_ms: nil
|
|
166
|
+
sig { params(account_id: ::String, adjustment_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetAdjustmentResponse) }
|
|
167
|
+
def get(account_id:, adjustment_id:, x_moov_version: nil, timeout_ms: nil)
|
|
173
168
|
# get - Retrieve a specific adjustment associated with a Moov account.
|
|
174
|
-
#
|
|
169
|
+
#
|
|
175
170
|
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
176
171
|
# you'll need to specify the `/accounts/{accountID}/wallets.read` scope.
|
|
177
172
|
request = Models::Operations::GetAdjustmentRequest.new(
|
|
@@ -218,9 +213,6 @@ module Moov
|
|
|
218
213
|
req.headers.merge!(headers)
|
|
219
214
|
req.options.timeout = timeout unless timeout.nil?
|
|
220
215
|
Utils.configure_request_security(req, security)
|
|
221
|
-
http_headers&.each do |key, value|
|
|
222
|
-
req.headers[key.to_s] = value
|
|
223
|
-
end
|
|
224
216
|
|
|
225
217
|
@sdk_configuration.hooks.before_request(
|
|
226
218
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -291,5 +283,5 @@ module Moov
|
|
|
291
283
|
|
|
292
284
|
end
|
|
293
285
|
end
|
|
294
|
-
end
|
|
286
|
+
end
|
|
295
287
|
end
|
data/lib/moov/apple_pay.rb
CHANGED
|
@@ -39,15 +39,13 @@ module Moov
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
sig { params(register_apple_pay_merchant_domains: Models::Components::RegisterApplePayMerchantDomains, account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::RegisterApplePayMerchantDomainsResponse) }
|
|
45
|
-
def register_merchant_domains(register_apple_pay_merchant_domains:, account_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
42
|
+
sig { params(register_apple_pay_merchant_domains: Models::Components::RegisterApplePayMerchantDomains, account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::RegisterApplePayMerchantDomainsResponse) }
|
|
43
|
+
def register_merchant_domains(register_apple_pay_merchant_domains:, account_id:, x_moov_version: nil, timeout_ms: nil)
|
|
46
44
|
# register_merchant_domains - Add domains to be registered with Apple Pay.
|
|
47
|
-
#
|
|
45
|
+
#
|
|
48
46
|
# Any domains that will be used to accept payments must first be [verified](https://docs.moov.io/guides/sources/cards/apple-pay/#register-your-domains)
|
|
49
47
|
# with Apple.
|
|
50
|
-
#
|
|
48
|
+
#
|
|
51
49
|
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
52
50
|
# you'll need to specify the `/accounts/{accountID}/apple-pay.write` scope.
|
|
53
51
|
request = Models::Operations::RegisterApplePayMerchantDomainsRequest.new(
|
|
@@ -70,7 +68,7 @@ module Moov
|
|
|
70
68
|
headers['content-type'] = req_content_type
|
|
71
69
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
72
70
|
|
|
73
|
-
if form
|
|
71
|
+
if form
|
|
74
72
|
body = Utils.encode_form(form)
|
|
75
73
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
76
74
|
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
@@ -106,9 +104,6 @@ module Moov
|
|
|
106
104
|
req.headers.merge!(headers)
|
|
107
105
|
req.options.timeout = timeout unless timeout.nil?
|
|
108
106
|
Utils.configure_request_security(req, security)
|
|
109
|
-
http_headers&.each do |key, value|
|
|
110
|
-
req.headers[key.to_s] = value
|
|
111
|
-
end
|
|
112
107
|
|
|
113
108
|
@sdk_configuration.hooks.before_request(
|
|
114
109
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -196,13 +191,13 @@ module Moov
|
|
|
196
191
|
end
|
|
197
192
|
|
|
198
193
|
|
|
199
|
-
sig { params(update_apple_pay_merchant_domains: Models::Components::UpdateApplePayMerchantDomains, account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)
|
|
200
|
-
def update_merchant_domains(update_apple_pay_merchant_domains:, account_id:, x_moov_version: nil, timeout_ms: nil
|
|
194
|
+
sig { params(update_apple_pay_merchant_domains: Models::Components::UpdateApplePayMerchantDomains, account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::UpdateApplePayMerchantDomainsResponse) }
|
|
195
|
+
def update_merchant_domains(update_apple_pay_merchant_domains:, account_id:, x_moov_version: nil, timeout_ms: nil)
|
|
201
196
|
# update_merchant_domains - Add or remove domains to be registered with Apple Pay.
|
|
202
|
-
#
|
|
197
|
+
#
|
|
203
198
|
# Any domains that will be used to accept payments must first be [verified](https://docs.moov.io/guides/sources/cards/apple-pay/#register-your-domains)
|
|
204
199
|
# with Apple.
|
|
205
|
-
#
|
|
200
|
+
#
|
|
206
201
|
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
207
202
|
# you'll need to specify the `/accounts/{accountID}/apple-pay.write` scope.
|
|
208
203
|
request = Models::Operations::UpdateApplePayMerchantDomainsRequest.new(
|
|
@@ -225,7 +220,7 @@ module Moov
|
|
|
225
220
|
headers['content-type'] = req_content_type
|
|
226
221
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
227
222
|
|
|
228
|
-
if form
|
|
223
|
+
if form
|
|
229
224
|
body = Utils.encode_form(form)
|
|
230
225
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
231
226
|
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
@@ -261,9 +256,6 @@ module Moov
|
|
|
261
256
|
req.headers.merge!(headers)
|
|
262
257
|
req.options.timeout = timeout unless timeout.nil?
|
|
263
258
|
Utils.configure_request_security(req, security)
|
|
264
|
-
http_headers&.each do |key, value|
|
|
265
|
-
req.headers[key.to_s] = value
|
|
266
|
-
end
|
|
267
259
|
|
|
268
260
|
@sdk_configuration.hooks.before_request(
|
|
269
261
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -342,12 +334,12 @@ module Moov
|
|
|
342
334
|
end
|
|
343
335
|
|
|
344
336
|
|
|
345
|
-
sig { params(account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)
|
|
346
|
-
def get_merchant_domains(account_id:, x_moov_version: nil, timeout_ms: nil
|
|
337
|
+
sig { params(account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetApplePayMerchantDomainsResponse) }
|
|
338
|
+
def get_merchant_domains(account_id:, x_moov_version: nil, timeout_ms: nil)
|
|
347
339
|
# get_merchant_domains - Get domains registered with Apple Pay.
|
|
348
|
-
#
|
|
340
|
+
#
|
|
349
341
|
# Read our [Apple Pay tutorial](https://docs.moov.io/guides/sources/cards/apple-pay/#register-your-domains) to learn more.
|
|
350
|
-
#
|
|
342
|
+
#
|
|
351
343
|
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
352
344
|
# you'll need to specify the `/accounts/{accountID}/apple-pay.read` scope.
|
|
353
345
|
request = Models::Operations::GetApplePayMerchantDomainsRequest.new(
|
|
@@ -393,9 +385,6 @@ module Moov
|
|
|
393
385
|
req.headers.merge!(headers)
|
|
394
386
|
req.options.timeout = timeout unless timeout.nil?
|
|
395
387
|
Utils.configure_request_security(req, security)
|
|
396
|
-
http_headers&.each do |key, value|
|
|
397
|
-
req.headers[key.to_s] = value
|
|
398
|
-
end
|
|
399
388
|
|
|
400
389
|
@sdk_configuration.hooks.before_request(
|
|
401
390
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -468,13 +457,13 @@ module Moov
|
|
|
468
457
|
end
|
|
469
458
|
|
|
470
459
|
|
|
471
|
-
sig { params(create_apple_pay_session: Models::Components::CreateApplePaySession, account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)
|
|
472
|
-
def create_session(create_apple_pay_session:, account_id:, x_moov_version: nil, timeout_ms: nil
|
|
460
|
+
sig { params(create_apple_pay_session: Models::Components::CreateApplePaySession, account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::CreateApplePaySessionResponse) }
|
|
461
|
+
def create_session(create_apple_pay_session:, account_id:, x_moov_version: nil, timeout_ms: nil)
|
|
473
462
|
# create_session - Create a session with Apple Pay to facilitate a payment.
|
|
474
|
-
#
|
|
463
|
+
#
|
|
475
464
|
# Read our [Apple Pay tutorial](https://docs.moov.io/guides/sources/cards/apple-pay/#register-your-domains) to learn more.
|
|
476
465
|
# A successful response from this endpoint should be passed through to Apple Pay unchanged.
|
|
477
|
-
#
|
|
466
|
+
#
|
|
478
467
|
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
479
468
|
# you'll need to specify the `/accounts/{accountID}/apple-pay.write` scope.
|
|
480
469
|
request = Models::Operations::CreateApplePaySessionRequest.new(
|
|
@@ -497,7 +486,7 @@ module Moov
|
|
|
497
486
|
headers['content-type'] = req_content_type
|
|
498
487
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
499
488
|
|
|
500
|
-
if form
|
|
489
|
+
if form
|
|
501
490
|
body = Utils.encode_form(form)
|
|
502
491
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
503
492
|
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
@@ -533,9 +522,6 @@ module Moov
|
|
|
533
522
|
req.headers.merge!(headers)
|
|
534
523
|
req.options.timeout = timeout unless timeout.nil?
|
|
535
524
|
Utils.configure_request_security(req, security)
|
|
536
|
-
http_headers&.each do |key, value|
|
|
537
|
-
req.headers[key.to_s] = value
|
|
538
|
-
end
|
|
539
525
|
|
|
540
526
|
@sdk_configuration.hooks.before_request(
|
|
541
527
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -623,13 +609,13 @@ module Moov
|
|
|
623
609
|
end
|
|
624
610
|
|
|
625
611
|
|
|
626
|
-
sig { params(link_apple_pay: Models::Components::LinkApplePay, account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)
|
|
627
|
-
def link_token(link_apple_pay:, account_id:, x_moov_version: nil, timeout_ms: nil
|
|
612
|
+
sig { params(link_apple_pay: Models::Components::LinkApplePay, account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::LinkApplePayTokenResponse) }
|
|
613
|
+
def link_token(link_apple_pay:, account_id:, x_moov_version: nil, timeout_ms: nil)
|
|
628
614
|
# link_token - Connect an Apple Pay token to the specified account.
|
|
629
|
-
#
|
|
615
|
+
#
|
|
630
616
|
# Read our [Apple Pay tutorial](https://docs.moov.io/guides/sources/cards/apple-pay/#register-your-domains) to learn more.
|
|
631
617
|
# The `token` data is defined by Apple Pay and should be passed through from Apple Pay's response unmodified.
|
|
632
|
-
#
|
|
618
|
+
#
|
|
633
619
|
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
634
620
|
# you'll need to specify the `/accounts/{accountID}/cards.write` scope.
|
|
635
621
|
request = Models::Operations::LinkApplePayTokenRequest.new(
|
|
@@ -652,7 +638,7 @@ module Moov
|
|
|
652
638
|
headers['content-type'] = req_content_type
|
|
653
639
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
654
640
|
|
|
655
|
-
if form
|
|
641
|
+
if form
|
|
656
642
|
body = Utils.encode_form(form)
|
|
657
643
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
658
644
|
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
@@ -688,9 +674,6 @@ module Moov
|
|
|
688
674
|
req.headers.merge!(headers)
|
|
689
675
|
req.options.timeout = timeout unless timeout.nil?
|
|
690
676
|
Utils.configure_request_security(req, security)
|
|
691
|
-
http_headers&.each do |key, value|
|
|
692
|
-
req.headers[key.to_s] = value
|
|
693
|
-
end
|
|
694
677
|
|
|
695
678
|
@sdk_configuration.hooks.before_request(
|
|
696
679
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -791,5 +774,5 @@ module Moov
|
|
|
791
774
|
|
|
792
775
|
end
|
|
793
776
|
end
|
|
794
|
-
end
|
|
777
|
+
end
|
|
795
778
|
end
|
data/lib/moov/authentication.rb
CHANGED
|
@@ -39,12 +39,10 @@ module Moov
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
sig { params(revoke_token_request: Models::Components::RevokeTokenRequest, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::RevokeAccessTokenResponse) }
|
|
45
|
-
def revoke_access_token(revoke_token_request:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
42
|
+
sig { params(revoke_token_request: Models::Components::RevokeTokenRequest, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::RevokeAccessTokenResponse) }
|
|
43
|
+
def revoke_access_token(revoke_token_request:, x_moov_version: nil, timeout_ms: nil)
|
|
46
44
|
# revoke_access_token - Revoke an auth token.
|
|
47
|
-
#
|
|
45
|
+
#
|
|
48
46
|
# Allows clients to notify the authorization server that a previously obtained refresh or access token is no longer needed.
|
|
49
47
|
request = Models::Operations::RevokeAccessTokenRequest.new(
|
|
50
48
|
revoke_token_request: revoke_token_request,
|
|
@@ -59,7 +57,7 @@ module Moov
|
|
|
59
57
|
headers['content-type'] = req_content_type
|
|
60
58
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
61
59
|
|
|
62
|
-
if form
|
|
60
|
+
if form
|
|
63
61
|
body = Utils.encode_form(form)
|
|
64
62
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
65
63
|
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
@@ -95,9 +93,6 @@ module Moov
|
|
|
95
93
|
req.headers.merge!(headers)
|
|
96
94
|
req.options.timeout = timeout unless timeout.nil?
|
|
97
95
|
Utils.configure_request_security(req, security)
|
|
98
|
-
http_headers&.each do |key, value|
|
|
99
|
-
req.headers[key.to_s] = value
|
|
100
|
-
end
|
|
101
96
|
|
|
102
97
|
@sdk_configuration.hooks.before_request(
|
|
103
98
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -191,8 +186,8 @@ module Moov
|
|
|
191
186
|
end
|
|
192
187
|
|
|
193
188
|
|
|
194
|
-
sig { params(auth_token_request: Models::Components::AuthTokenRequest, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)
|
|
195
|
-
def create_access_token(auth_token_request:, x_moov_version: nil, timeout_ms: nil
|
|
189
|
+
sig { params(auth_token_request: Models::Components::AuthTokenRequest, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::CreateAccessTokenResponse) }
|
|
190
|
+
def create_access_token(auth_token_request:, x_moov_version: nil, timeout_ms: nil)
|
|
196
191
|
# create_access_token - Create or refresh an access token.
|
|
197
192
|
request = Models::Operations::CreateAccessTokenRequest.new(
|
|
198
193
|
auth_token_request: auth_token_request,
|
|
@@ -207,7 +202,7 @@ module Moov
|
|
|
207
202
|
headers['content-type'] = req_content_type
|
|
208
203
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
209
204
|
|
|
210
|
-
if form
|
|
205
|
+
if form
|
|
211
206
|
body = Utils.encode_form(form)
|
|
212
207
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
213
208
|
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
@@ -243,9 +238,6 @@ module Moov
|
|
|
243
238
|
req.headers.merge!(headers)
|
|
244
239
|
req.options.timeout = timeout unless timeout.nil?
|
|
245
240
|
Utils.configure_request_security(req, security)
|
|
246
|
-
http_headers&.each do |key, value|
|
|
247
|
-
req.headers[key.to_s] = value
|
|
248
|
-
end
|
|
249
241
|
|
|
250
242
|
@sdk_configuration.hooks.before_request(
|
|
251
243
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -346,5 +338,5 @@ module Moov
|
|
|
346
338
|
|
|
347
339
|
end
|
|
348
340
|
end
|
|
349
|
-
end
|
|
341
|
+
end
|
|
350
342
|
end
|