moov_ruby 26.10.0.pre.dev.1 → 26.10.0.pre.dev.3
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/module.rb +1 -1
- data/lib/moov/avatars.rb +4 -4
- data/lib/moov/bank_accounts.rb +439 -0
- data/lib/moov/card_issuing.rb +117 -1
- data/lib/moov/client.rb +2 -2
- data/lib/moov/enriched_address.rb +1 -1
- data/lib/moov/enriched_profile.rb +1 -1
- data/lib/moov/images.rb +17 -2
- data/lib/moov/institutions.rb +2 -2
- data/lib/moov/models/components/account.rb +2 -2
- data/lib/moov/models/components/accountnameverification.rb +4 -4
- data/lib/moov/models/components/accounttype.rb +3 -1
- data/lib/moov/models/components/accountverificationstatus.rb +3 -1
- data/lib/moov/models/components/achcreditoptions.rb +40 -0
- data/lib/moov/models/components/achcreditoptions.rbi +17 -0
- data/lib/moov/models/components/achcredittransferprocessingdetails.rb +44 -0
- data/lib/moov/models/components/achcredittransferprocessingdetails.rbi +19 -0
- data/lib/moov/models/components/achdebitoptions.rb +48 -0
- data/lib/moov/models/components/achdebitoptions.rbi +21 -0
- data/lib/moov/models/components/achdebittransferprocessingdetails.rb +44 -0
- data/lib/moov/models/components/achdebittransferprocessingdetails.rbi +19 -0
- data/lib/moov/models/components/achreturncode.rb +3 -1
- data/lib/moov/models/components/achtransactionstatus.rb +3 -1
- data/lib/moov/models/components/adjustmentfees.rb +11 -15
- data/lib/moov/models/components/adjustmentfees.rbi +4 -4
- data/lib/moov/models/components/allowedscheduleerror.rb +36 -0
- data/lib/moov/models/components/allowedscheduleerror.rbi +15 -0
- data/lib/moov/models/components/amountdecimalrange.rb +0 -2
- data/lib/moov/models/components/amountdecimalrangeupdate.rb +0 -2
- data/lib/moov/models/components/applepayresponse.rb +2 -2
- data/lib/moov/models/components/applicationscope.rb +4 -2
- data/lib/moov/models/components/asynccreatedrefund.rb +7 -3
- data/lib/moov/models/components/asynccreatedrefund.rbi +2 -0
- data/lib/moov/models/components/authmethod.rb +3 -1
- data/lib/moov/models/components/bankaccount.rb +4 -4
- data/lib/moov/models/components/bankaccountattestation.rb +52 -0
- data/lib/moov/models/components/bankaccountattestation.rbi +23 -0
- data/lib/moov/models/components/bankaccountattestationeligibility.rb +36 -0
- data/lib/moov/models/components/bankaccountattestationeligibility.rbi +15 -0
- data/lib/moov/models/components/bankaccountattestationsummary.rb +44 -0
- data/lib/moov/models/components/bankaccountattestationsummary.rbi +19 -0
- data/lib/moov/models/components/bankaccountexception.rb +2 -2
- data/lib/moov/models/components/bankaccountholdertype.rb +3 -1
- data/lib/moov/models/components/bankaccountintegration.rb +2 -2
- data/lib/moov/models/components/bankaccountstatus.rb +3 -1
- data/lib/moov/models/components/bankaccountstatusreason.rb +3 -1
- data/lib/moov/models/components/bankaccounttype.rb +3 -1
- 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 +3 -1
- data/lib/moov/models/components/bankaccountverificationstatus.rb +3 -1
- data/lib/moov/models/components/basicpaymentmethod.rb +1 -1
- data/lib/moov/models/components/billablefee.rb +2 -2
- data/lib/moov/models/components/billingadjustment.rb +40 -0
- data/lib/moov/models/components/billingadjustment.rbi +17 -0
- data/lib/moov/models/components/billingsummary.rb +8 -4
- data/lib/moov/models/components/billingsummary.rbi +2 -0
- data/lib/moov/models/components/billingsummary_adjustmentfees.rb +40 -0
- data/lib/moov/models/components/billingsummary_adjustmentfees.rbi +15 -0
- data/lib/moov/models/components/businesspresence.rb +3 -1
- data/lib/moov/models/components/businessprofile.rb +2 -2
- data/lib/moov/models/components/businesstype.rb +3 -1
- 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 +3 -1
- data/lib/moov/models/components/capability.rb +2 -2
- data/lib/moov/models/components/capabilityid.rb +3 -1
- data/lib/moov/models/components/capabilitystatus.rb +3 -1
- data/lib/moov/models/components/capture.rb +82 -0
- data/lib/moov/models/components/capture.rbi +37 -0
- data/lib/moov/models/components/{refundcardstatus.rb → capturestatus.rb} +6 -5
- data/lib/moov/models/components/{refundcardstatus.rbi → capturestatus.rbi} +2 -2
- data/lib/moov/models/components/card.rb +4 -4
- data/lib/moov/models/components/cardaccountupdater.rb +1 -1
- data/lib/moov/models/components/cardacquiringmodel.rb +3 -1
- data/lib/moov/models/components/cardacquiringrefund.rb +12 -8
- data/lib/moov/models/components/cardacquiringrefund.rbi +4 -2
- data/lib/moov/models/components/cardbrand.rb +3 -1
- data/lib/moov/models/components/cardissuing.rb +34 -0
- data/lib/moov/models/components/cardissuing.rbi +13 -0
- data/lib/moov/models/components/cardissuingerror.rb +32 -0
- data/lib/moov/models/components/cardissuingerror.rbi +13 -0
- data/lib/moov/models/components/cardissuingnetwork.rb +3 -1
- data/lib/moov/models/components/cardmetadata.rb +4 -4
- data/lib/moov/models/components/cardpaymentoptions.rb +39 -0
- data/lib/moov/models/components/cardpaymentoptions.rbi +15 -0
- data/lib/moov/models/components/cardpaymentrefundprocessingdetails.rb +32 -0
- data/lib/moov/models/components/cardpaymentrefundprocessingdetails.rbi +13 -0
- data/lib/moov/models/components/{cardtransactionstatus.rb → cardpaymenttransactionstatus.rb} +4 -3
- data/lib/moov/models/components/cardpaymenttransactionstatus.rbi +11 -0
- data/lib/moov/models/components/cardpaymenttransferprocessingdetails.rb +48 -0
- data/lib/moov/models/components/cardpaymenttransferprocessingdetails.rbi +21 -0
- data/lib/moov/models/components/cardtransactionfailurecode.rb +19 -1
- data/lib/moov/models/components/cardtype.rb +3 -1
- data/lib/moov/models/components/cardupdatereason.rb +3 -1
- data/lib/moov/models/components/cardverification.rb +3 -3
- data/lib/moov/models/components/cardverificationresult.rb +3 -1
- data/lib/moov/models/components/collectfundscardpayments.rb +1 -1
- data/lib/moov/models/components/collectionpaymentmethodtype.rb +3 -1
- data/lib/moov/models/components/createaccount.rb +2 -2
- data/lib/moov/models/components/createaccounttype.rb +3 -1
- data/lib/moov/models/components/createbankaccountattestation.rb +36 -0
- data/lib/moov/models/components/createbankaccountattestation.rbi +15 -0
- data/lib/moov/models/components/createbusinessprofile.rb +2 -2
- data/lib/moov/models/components/createcancellation.rb +34 -0
- data/lib/moov/models/components/createcancellation.rbi +13 -0
- data/lib/moov/models/components/createcapture.rb +68 -0
- data/lib/moov/models/components/createcapture.rbi +29 -0
- data/lib/moov/models/components/createdtransfer.rb +29 -25
- data/lib/moov/models/components/createdtransfer.rbi +8 -8
- data/lib/moov/models/components/createevidencetext.rb +1 -1
- data/lib/moov/models/components/createfeeplanagreement.rb +13 -3
- data/lib/moov/models/components/createfeeplanagreement.rbi +2 -0
- data/lib/moov/models/components/createpaymentlink.rb +1 -1
- data/lib/moov/models/components/createrefund.rb +9 -5
- data/lib/moov/models/components/createrefund.rbi +2 -0
- data/lib/moov/models/components/createreversal.rb +6 -3
- data/lib/moov/models/components/createsweepconfig.rb +1 -1
- data/lib/moov/models/components/createterminalapplication.rb +1 -1
- data/lib/moov/models/components/createtippresets.rb +1 -1
- data/lib/moov/models/components/createtransfer.rb +5 -5
- data/lib/moov/models/components/createtransferdestination.rb +6 -2
- data/lib/moov/models/components/createtransferdestination.rbi +2 -0
- data/lib/moov/models/components/createtransferdestinationwire.rb +32 -0
- data/lib/moov/models/components/createtransferdestinationwire.rbi +13 -0
- data/lib/moov/models/components/createtransferfacilitatorfee.rb +36 -0
- data/lib/moov/models/components/createtransferfacilitatorfee.rbi +15 -0
- data/lib/moov/models/components/createtransferoptions.rb +2 -2
- data/lib/moov/models/components/createtransfersourceach.rb +2 -2
- data/lib/moov/models/components/createtransfersourcecard.rb +1 -1
- data/lib/moov/models/components/createwebhook.rb +1 -1
- data/lib/moov/models/components/debitholdperiod.rb +3 -1
- data/lib/moov/models/components/depositaccountingestedresponse.rb +1 -1
- data/lib/moov/models/components/disbursementpaymentmethodtype.rb +3 -1
- data/lib/moov/models/components/dispute.rb +2 -2
- data/lib/moov/models/components/disputeevidenceresponse.rb +1 -1
- data/lib/moov/models/components/disputephase.rb +3 -1
- data/lib/moov/models/components/disputestatus.rb +3 -1
- data/lib/moov/models/components/document.rb +1 -1
- data/lib/moov/models/components/documenttype.rb +3 -1
- data/lib/moov/models/components/domesticpullfromcard.rb +3 -1
- data/lib/moov/models/components/domesticpushtocard.rb +3 -1
- data/lib/moov/models/components/estimatedactivity.rb +1 -1
- data/lib/moov/models/components/evidencetextresponse.rb +1 -1
- data/lib/moov/models/components/evidencetype.rb +3 -1
- data/lib/moov/models/components/evidenceuploadresponse.rb +1 -1
- data/lib/moov/models/components/facilitatorfee.rb +6 -17
- data/lib/moov/models/components/facilitatorfee.rbi +0 -4
- data/lib/moov/models/components/feecategory.rb +3 -1
- data/lib/moov/models/components/feemodel.rb +3 -1
- data/lib/moov/models/components/feepaidby.rb +4 -2
- data/lib/moov/models/components/feeplan.rb +1 -1
- data/lib/moov/models/components/feeplanagreement.rb +12 -4
- data/lib/moov/models/components/feeplanagreement.rbi +4 -0
- data/lib/moov/models/components/feeplanagreementstatus.rb +3 -1
- data/lib/moov/models/components/filedetails.rb +2 -2
- data/lib/moov/models/components/filepurpose.rb +3 -1
- data/lib/moov/models/components/filestatus.rb +3 -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 +3 -1
- data/lib/moov/models/components/fulfillmenttimeframe.rb +3 -1
- data/lib/moov/models/components/fullissuedcard.rb +6 -5
- data/lib/moov/models/components/geographicreach.rb +3 -1
- data/lib/moov/models/components/googlepayresponse.rb +3 -3
- data/lib/moov/models/components/incurredfee.rb +1 -1
- data/lib/moov/models/components/instantbankcredittransferprocessingdetails.rb +48 -0
- data/lib/moov/models/components/{instantbanktransactiondetails.rbi → instantbankcredittransferprocessingdetails.rbi} +4 -12
- data/lib/moov/models/components/instantbankfailurecode.rb +3 -1
- data/lib/moov/models/components/instantbanknetwork.rb +3 -1
- data/lib/moov/models/components/instantbanktransactionstatus.rb +3 -1
- data/lib/moov/models/components/invoice.rb +1 -1
- data/lib/moov/models/components/invoicepayment.rb +1 -1
- data/lib/moov/models/components/invoicepaymenttype.rb +3 -1
- data/lib/moov/models/components/invoicestatus.rb +3 -1
- data/lib/moov/models/components/issuedcard.rb +6 -5
- data/lib/moov/models/components/issuedcardauthorization.rb +2 -2
- data/lib/moov/models/components/issuedcardauthorizationevent.rb +2 -2
- data/lib/moov/models/components/issuedcardauthorizationeventresult.rb +3 -1
- data/lib/moov/models/components/issuedcardeventtype.rb +3 -1
- data/lib/moov/models/components/issuedcardstate.rb +5 -1
- data/lib/moov/models/components/issuedcontrols.rb +52 -0
- data/lib/moov/models/components/issuedcontrols.rbi +23 -0
- data/lib/moov/models/components/issuedcontrols_allowedschedule.rb +36 -0
- data/lib/moov/models/components/issuedcontrols_allowedschedule.rbi +15 -0
- data/lib/moov/models/components/issuedvelocitylimit.rb +60 -0
- data/lib/moov/models/components/issuedvelocitylimit.rbi +27 -0
- data/lib/moov/models/components/issuingauthorizationstatus.rb +3 -1
- data/lib/moov/models/components/issuingcontrols.rb +19 -3
- data/lib/moov/models/components/issuingcontrols.rbi +8 -0
- data/lib/moov/models/components/issuingcontrols_allowedschedule.rb +36 -0
- data/lib/moov/models/components/issuingcontrols_allowedschedule.rbi +15 -0
- data/lib/moov/models/components/issuingcontrolserror.rb +18 -2
- data/lib/moov/models/components/issuingcontrolserror.rbi +8 -0
- data/lib/moov/models/components/issuingcontrolsrestrictionmode.rb +21 -0
- data/lib/moov/models/components/issuingcontrolsrestrictionmode.rbi +11 -0
- data/lib/moov/models/components/issuingintervallimit.rb +6 -1
- data/lib/moov/models/components/issuingmerchantcategory.rb +45 -0
- data/lib/moov/models/components/issuingmerchantcategory.rbi +11 -0
- data/lib/moov/models/components/issuingscheduleday.rb +24 -0
- data/lib/moov/models/components/{cardtransactionstatus.rbi → issuingscheduleday.rbi} +2 -2
- data/lib/moov/models/components/issuingvelocitylimit.rb +11 -7
- data/lib/moov/models/components/issuingvelocitylimit.rbi +4 -2
- data/lib/moov/models/components/issuingvelocitylimiterror.rb +6 -2
- data/lib/moov/models/components/issuingvelocitylimiterror.rbi +2 -0
- data/lib/moov/models/components/jsonwebkey.rb +1 -1
- data/lib/moov/models/components/linkedapplepaypaymentmethod.rb +1 -1
- data/lib/moov/models/components/linkedgooglepaypaymentmethod.rb +1 -1
- data/lib/moov/models/components/merchantcategories.rb +32 -0
- data/lib/moov/models/components/merchantcategories.rbi +13 -0
- data/lib/moov/models/components/merchantcategory.rb +37 -0
- data/lib/moov/models/components/merchantcategory.rbi +15 -0
- data/lib/moov/models/components/merchantcategoryrestrictions.rb +44 -0
- data/lib/moov/models/components/merchantcategoryrestrictions.rbi +19 -0
- data/lib/moov/models/components/merchantcategoryrestrictionserror.rb +44 -0
- data/lib/moov/models/components/merchantcategoryrestrictionserror.rbi +19 -0
- data/lib/moov/models/components/merchantentry.rb +40 -0
- data/lib/moov/models/components/merchantentry.rbi +17 -0
- data/lib/moov/models/components/merchantentryerror.rb +36 -0
- data/lib/moov/models/components/merchantentryerror.rbi +15 -0
- data/lib/moov/models/components/merchantrestrictions.rb +36 -0
- data/lib/moov/models/components/merchantrestrictions.rbi +15 -0
- data/lib/moov/models/components/merchantrestrictionserror.rb +36 -0
- data/lib/moov/models/components/merchantrestrictionserror.rbi +15 -0
- data/lib/moov/models/components/mode.rb +3 -1
- data/lib/moov/models/components/monthlyvolumerange.rb +3 -1
- data/lib/moov/models/components/moovfee.rb +1 -1
- data/lib/moov/models/components/moovfeedetails.rb +5 -5
- data/lib/moov/models/components/occurrencesresponse.rb +2 -2
- data/lib/moov/models/components/occurrencestatus.rb +3 -1
- data/lib/moov/models/components/onboardingpartneraccount.rb +1 -1
- data/lib/moov/models/components/partnerpricingagreement.rb +15 -7
- data/lib/moov/models/components/partnerpricingagreement.rbi +4 -0
- data/lib/moov/models/components/patchbusiness.rb +2 -2
- data/lib/moov/models/components/patchwallet.rb +1 -1
- data/lib/moov/models/components/paymentlink.rb +4 -6
- data/lib/moov/models/components/paymentlinkcustomamountpaymentdetails.rb +0 -2
- data/lib/moov/models/components/paymentlinkcustomamountpaymentdetailsupdate.rb +0 -2
- data/lib/moov/models/components/paymentlinkdisplayoptions.rb +1 -1
- data/lib/moov/models/components/paymentlinkdisplayoptionsupdate.rb +1 -1
- data/lib/moov/models/components/paymentlinkpayoutdetails.rb +5 -7
- data/lib/moov/models/components/paymentlinkpayoutdetailsupdate.rb +5 -7
- data/lib/moov/models/components/paymentlinkstatus.rb +3 -1
- data/lib/moov/models/components/paymentlinktype.rb +3 -1
- data/lib/moov/models/components/paymentmethodsbankaccount.rb +3 -3
- data/lib/moov/models/components/paymentmethodscard.rb +4 -4
- data/lib/moov/models/components/paymentmethodswallet.rb +2 -1
- data/lib/moov/models/components/paymentmethodtype.rb +4 -1
- data/lib/moov/models/components/pendinglitigation.rb +3 -1
- data/lib/moov/models/components/primaryregulator.rb +3 -1
- data/lib/moov/models/components/pullfromcardoptions.rb +39 -0
- data/lib/moov/models/components/pullfromcardoptions.rbi +15 -0
- data/lib/moov/models/components/pullfromcardtransactionstatus.rb +22 -0
- data/lib/moov/models/components/pullfromcardtransactionstatus.rbi +11 -0
- data/lib/moov/models/components/pullfromcardtransferprocessingdetails.rb +48 -0
- data/lib/moov/models/components/pullfromcardtransferprocessingdetails.rbi +21 -0
- data/lib/moov/models/components/pushdeliveryspeed.rb +3 -1
- data/lib/moov/models/components/pushoptions.rb +5 -4
- data/lib/moov/models/components/pushoptionsupdate.rb +5 -4
- data/lib/moov/models/components/pushtocardoptions.rb +32 -0
- data/lib/moov/models/components/pushtocardoptions.rbi +13 -0
- data/lib/moov/models/components/pushtocardtransactionstatus.rb +24 -0
- data/lib/moov/models/components/pushtocardtransactionstatus.rbi +11 -0
- data/lib/moov/models/components/pushtocardtransferprocessingdetails.rb +48 -0
- data/lib/moov/models/components/pushtocardtransferprocessingdetails.rbi +21 -0
- data/lib/moov/models/components/puttippresets.rb +1 -1
- data/lib/moov/models/components/refundpolicy.rb +3 -1
- data/lib/moov/models/components/refundprocessingdetails.rb +32 -0
- data/lib/moov/models/components/refundprocessingdetails.rbi +13 -0
- data/lib/moov/models/components/refundstatus.rb +3 -1
- 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 +3 -1
- data/lib/moov/models/components/requirementid.rb +18 -1
- data/lib/moov/models/components/resolutionlink.rb +1 -1
- data/lib/moov/models/components/resolutionlinkstatus.rb +3 -1
- data/lib/moov/models/components/returnpolicytype.rb +3 -1
- data/lib/moov/models/components/reversalamountdetails.rb +3 -1
- data/lib/moov/models/components/reversedwithcancellation.rb +1 -1
- data/lib/moov/models/components/rtprejectioncode.rb +3 -1
- data/lib/moov/models/components/schedulelistresponse.rb +1 -1
- data/lib/moov/models/components/scheduleresponse.rb +1 -1
- data/lib/moov/models/components/schedulewindow.rb +40 -0
- data/lib/moov/models/components/schedulewindow.rbi +17 -0
- data/lib/moov/models/components/schedulewindowerror.rb +40 -0
- data/lib/moov/models/components/schedulewindowerror.rbi +17 -0
- data/lib/moov/models/components/seccode.rb +3 -1
- data/lib/moov/models/components/sendfunds.rb +6 -2
- data/lib/moov/models/components/sendfunds.rbi +2 -0
- data/lib/moov/models/components/sendfundserror.rb +6 -2
- data/lib/moov/models/components/sendfundserror.rbi +2 -0
- data/lib/moov/models/components/sendfundswire.rb +32 -0
- data/lib/moov/models/components/sendfundswire.rbi +13 -0
- data/lib/moov/models/components/sendfundswireerror.rb +32 -0
- data/lib/moov/models/components/sendfundswireerror.rbi +13 -0
- data/lib/moov/models/components/sourcesystem.rb +3 -1
- data/lib/moov/models/components/statement.rb +6 -2
- data/lib/moov/models/components/statement.rbi +2 -0
- data/lib/moov/models/components/sweep.rb +1 -1
- 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 +3 -1
- data/lib/moov/models/components/sweepstatus.rb +3 -1
- 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 +3 -1
- data/lib/moov/models/components/terminalapplicationstatus.rb +3 -1
- data/lib/moov/models/components/terminalcard.rb +2 -2
- data/lib/moov/models/components/ticket.rb +1 -1
- data/lib/moov/models/components/ticketstatus.rb +3 -1
- data/lib/moov/models/components/tipcalculationbasis.rb +3 -1
- data/lib/moov/models/components/tippresets.rb +1 -1
- data/lib/moov/models/components/transactionsource.rb +3 -1
- data/lib/moov/models/components/transfer.rb +28 -24
- data/lib/moov/models/components/transfer.rbi +8 -8
- data/lib/moov/models/components/transferauthorization.rb +52 -0
- data/lib/moov/models/components/transferauthorization.rbi +23 -0
- data/lib/moov/models/components/transferdestination.rb +5 -17
- data/lib/moov/models/components/transferdestination.rbi +0 -6
- data/lib/moov/models/components/transferfailurereason.rb +3 -1
- data/lib/moov/models/components/transferfeepaidby.rb +2 -2
- data/lib/moov/models/components/transferoptions.rb +3 -3
- data/lib/moov/models/components/transferparty.rb +3 -1
- data/lib/moov/models/components/transferpaymentmethodsbankaccount.rb +3 -3
- data/lib/moov/models/components/transferpaymentmethodscard.rb +4 -4
- data/lib/moov/models/components/transferpaymentmethodswallet.rb +2 -1
- data/lib/moov/models/components/transferpaymentmethodtype.rb +4 -1
- data/lib/moov/models/components/transferprocessingdetails.rb +56 -0
- data/lib/moov/models/components/transferprocessingdetails.rbi +25 -0
- data/lib/moov/models/components/transferrailoptions.rb +52 -0
- data/lib/moov/models/components/transferrailoptions.rbi +23 -0
- data/lib/moov/models/components/transfersource.rb +9 -17
- data/lib/moov/models/components/transfersource.rbi +2 -6
- data/lib/moov/models/components/transferstatus.rb +4 -1
- data/lib/moov/models/components/transferterminalcard.rb +2 -2
- data/lib/moov/models/components/transfertype.rb +28 -0
- data/lib/moov/models/components/transfertype.rbi +11 -0
- data/lib/moov/models/components/underwriting.rb +12 -6
- data/lib/moov/models/components/underwriting.rbi +2 -0
- data/lib/moov/models/components/underwritingstatus.rb +3 -1
- data/lib/moov/models/components/updateevidence.rb +1 -1
- data/lib/moov/models/components/updateinvoice.rb +1 -1
- data/lib/moov/models/components/updateissuedcard.rb +8 -2
- data/lib/moov/models/components/updateissuedcard.rbi +2 -0
- data/lib/moov/models/components/updateissuedcardstate.rb +4 -0
- data/lib/moov/models/components/updateissuingcontrols.rb +48 -0
- data/lib/moov/models/components/updateissuingcontrols.rbi +21 -0
- data/lib/moov/models/components/updateissuingcontrols_allowedschedule.rb +36 -0
- data/lib/moov/models/components/updateissuingcontrols_allowedschedule.rbi +15 -0
- data/lib/moov/models/components/updateissuingcontrols_merchantcategoryrestrictions.rb +44 -0
- data/lib/moov/models/components/updateissuingcontrols_merchantcategoryrestrictions.rbi +19 -0
- data/lib/moov/models/components/updateissuingcontrols_merchantrestrictions.rb +36 -0
- data/lib/moov/models/components/updateissuingcontrols_merchantrestrictions.rbi +15 -0
- data/lib/moov/models/components/updateissuingcontrolserror.rb +48 -0
- data/lib/moov/models/components/updateissuingcontrolserror.rbi +21 -0
- data/lib/moov/models/components/updatepaymentlink.rb +1 -1
- data/lib/moov/models/components/updatewebhook.rb +1 -1
- data/lib/moov/models/components/upsertunderwriting.rb +11 -5
- data/lib/moov/models/components/upsertunderwriting.rbi +2 -0
- data/lib/moov/models/components/use.rb +3 -1
- data/lib/moov/models/components/verification.rb +3 -3
- data/lib/moov/models/components/verificationstatus.rb +3 -1
- data/lib/moov/models/components/verificationstatusdetail.rb +3 -1
- data/lib/moov/models/components/wallet.rb +3 -2
- data/lib/moov/models/components/walletstatus.rb +3 -1
- data/lib/moov/models/components/wallettransaction.rb +3 -3
- data/lib/moov/models/components/wallettransactionsourcetype.rb +3 -1
- data/lib/moov/models/components/wallettransactionstatus.rb +3 -1
- data/lib/moov/models/components/wallettransactiontype.rb +4 -1
- data/lib/moov/models/components/wallettype.rb +5 -1
- data/lib/moov/models/components/webhook.rb +1 -1
- data/lib/moov/models/components/webhookdatabankaccountcreated.rb +1 -1
- data/lib/moov/models/components/webhookdatabankaccountdeleted.rb +1 -1
- 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 +1 -1
- data/lib/moov/models/components/webhookdatacapabilityupdated.rb +2 -2
- data/lib/moov/models/components/webhookdatacaptureupdated.rb +44 -0
- data/lib/moov/models/components/webhookdatacaptureupdated.rbi +19 -0
- data/lib/moov/models/components/webhookdatacardautoupdated.rb +1 -1
- data/lib/moov/models/components/webhookdatadisputecreated.rb +2 -2
- data/lib/moov/models/components/webhookdatadisputeupdated.rb +2 -2
- data/lib/moov/models/components/webhookdatainvoiceupdated.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/webhookdatatransferstatus.rb +4 -0
- 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 +3 -3
- data/lib/moov/models/components/webhookeventtype.rb +4 -1
- data/lib/moov/models/components/webhookstatus.rb +3 -1
- data/lib/moov/models/components/wirecreditpaymentmethod.rb +40 -0
- data/lib/moov/models/components/wirecreditpaymentmethod.rbi +17 -0
- data/lib/moov/models/components/wirecreditpaymentmethod_paymentmethodtype.rb +18 -0
- data/lib/moov/models/components/wirecreditpaymentmethod_paymentmethodtype.rbi +11 -0
- data/lib/moov/models/components/wirecredittransferpaymentmethod.rb +40 -0
- data/lib/moov/models/components/wirecredittransferpaymentmethod.rbi +17 -0
- data/lib/moov/models/components/wirecredittransferpaymentmethod_paymentmethodtype.rb +18 -0
- data/lib/moov/models/components/wirecredittransferpaymentmethod_paymentmethodtype.rbi +11 -0
- data/lib/moov/models/components/wirefailurecode.rb +28 -0
- data/lib/moov/models/components/wirefailurecode.rbi +11 -0
- data/lib/moov/models/components/wireoptions.rb +32 -0
- data/lib/moov/models/components/wireoptions.rbi +13 -0
- data/lib/moov/models/components/wiretransactionstatus.rb +23 -0
- data/lib/moov/models/components/wiretransactionstatus.rbi +11 -0
- data/lib/moov/models/components/wiretransferprocessingdetails.rb +40 -0
- data/lib/moov/models/components/wiretransferprocessingdetails.rbi +17 -0
- data/lib/moov/models/components.rb +69 -8
- data/lib/moov/models/errors/bankaccountattestationvalidationerror.rb +40 -0
- data/lib/moov/models/errors/bankaccountattestationvalidationerror.rbi +17 -0
- data/lib/moov/models/errors/capturevalidationerror.rb +68 -0
- data/lib/moov/models/errors/capturevalidationerror.rbi +31 -0
- data/lib/moov/models/errors/cardacquiringrefund_error.rb +12 -8
- data/lib/moov/models/errors/cardacquiringrefund_error.rbi +4 -2
- data/lib/moov/models/errors/imagemetadata_error.rb +61 -0
- data/lib/moov/models/errors/imagemetadata_error.rbi +27 -0
- data/lib/moov/models/errors/transfer_error.rb +28 -24
- data/lib/moov/models/errors/transfer_error.rbi +8 -8
- data/lib/moov/models/errors/updateissuedcarderror.rb +6 -2
- data/lib/moov/models/errors/updateissuedcarderror.rbi +2 -0
- data/lib/moov/models/errors/upsertunderwritingerror.rb +6 -2
- data/lib/moov/models/errors/upsertunderwritingerror.rbi +2 -0
- data/lib/moov/models/errors.rb +3 -0
- data/lib/moov/models/operations/createbankaccountattestation_request.rb +40 -0
- data/lib/moov/models/operations/createbankaccountattestation_request.rbi +17 -0
- data/lib/moov/models/operations/createbankaccountattestation_response.rb +48 -0
- data/lib/moov/models/operations/createbankaccountattestation_response.rbi +21 -0
- data/lib/moov/models/operations/createcancellation_request.rb +6 -2
- data/lib/moov/models/operations/createcancellation_request.rbi +2 -0
- data/lib/moov/models/operations/createcapture_request.rb +44 -0
- data/lib/moov/models/operations/createcapture_request.rbi +19 -0
- data/lib/moov/models/operations/createcapture_response.rb +48 -0
- data/lib/moov/models/operations/createcapture_response.rbi +21 -0
- data/lib/moov/models/operations/createreversal_request.rb +3 -3
- data/lib/moov/models/operations/getbankaccountattestationeligibility_request.rb +41 -0
- data/lib/moov/models/operations/getbankaccountattestationeligibility_request.rbi +17 -0
- data/lib/moov/models/operations/getbankaccountattestationeligibility_response.rb +48 -0
- data/lib/moov/models/operations/getbankaccountattestationeligibility_response.rbi +21 -0
- data/lib/moov/models/operations/getcapture_request.rb +40 -0
- data/lib/moov/models/operations/getcapture_request.rbi +17 -0
- data/lib/moov/models/operations/getcapture_response.rb +48 -0
- data/lib/moov/models/operations/getcapture_response.rbi +21 -0
- data/lib/moov/models/operations/getpaymentmethod_response.rb +2 -2
- data/lib/moov/models/operations/initiaterefund_request.rb +6 -6
- data/lib/moov/models/operations/initiaterefund_request.rbi +2 -2
- data/lib/moov/models/operations/listaccounts_request.rb +1 -1
- data/lib/moov/models/operations/listbankaccountattestations_request.rb +36 -0
- data/lib/moov/models/operations/listbankaccountattestations_request.rbi +15 -0
- data/lib/moov/models/operations/listbankaccountattestations_response.rb +48 -0
- data/lib/moov/models/operations/listbankaccountattestations_response.rbi +21 -0
- data/lib/moov/models/operations/listcaptures_request.rb +36 -0
- data/lib/moov/models/operations/listcaptures_request.rbi +15 -0
- data/lib/moov/models/operations/listcaptures_response.rb +48 -0
- data/lib/moov/models/operations/listcaptures_response.rbi +21 -0
- data/lib/moov/models/operations/listconnectedaccountsforaccount_request.rb +1 -1
- data/lib/moov/models/operations/listdisputes_request.rb +1 -1
- data/lib/moov/models/operations/listfeeplanagreements_request.rb +1 -1
- data/lib/moov/models/operations/listfeerevenue_request.rb +1 -1
- data/lib/moov/models/operations/listinvoices_request.rb +1 -1
- data/lib/moov/models/operations/listissuedcardauthorizationevents_request.rb +1 -1
- data/lib/moov/models/operations/listissuedcardauthorizations_request.rb +1 -1
- data/lib/moov/models/operations/listissuedcards_request.rb +1 -1
- data/lib/moov/models/operations/listissuedcardtransactions_request.rb +7 -3
- data/lib/moov/models/operations/listissuedcardtransactions_request.rbi +2 -0
- data/lib/moov/models/operations/listissuingmerchantcategories_response.rb +48 -0
- data/lib/moov/models/operations/listissuingmerchantcategories_response.rbi +21 -0
- data/lib/moov/models/operations/listpartnerpricingagreements_request.rb +1 -1
- data/lib/moov/models/operations/listpaymentlinks_request.rb +1 -1
- data/lib/moov/models/operations/listpaymentmethods_response.rb +2 -2
- data/lib/moov/models/operations/listproducts_request.rb +1 -1
- data/lib/moov/models/operations/listresidualfees_request.rb +1 -1
- data/lib/moov/models/operations/listresiduals_request.rb +1 -1
- data/lib/moov/models/operations/listschedules_request.rb +1 -1
- data/lib/moov/models/operations/liststatements_request.rb +1 -1
- data/lib/moov/models/operations/listsweeps_request.rb +1 -1
- data/lib/moov/models/operations/listtickets_request.rb +1 -1
- data/lib/moov/models/operations/listtransfers_request.rb +11 -3
- data/lib/moov/models/operations/listtransfers_request.rbi +4 -0
- data/lib/moov/models/operations/listwallets_request.rb +1 -1
- data/lib/moov/models/operations/listwallettransactions_request.rb +1 -1
- data/lib/moov/models/operations/retrievefees_request.rb +1 -1
- data/lib/moov/models/operations.rb +13 -0
- data/lib/moov/payment_methods.rb +2 -2
- data/lib/moov/sdkconfiguration.rb +3 -3
- data/lib/moov/transfers.rb +446 -10
- data/lib/moov/utils/retries.rb +41 -2
- data/lib/moov/utils/utils.rb +6 -2
- data/lib/moov_ruby.rb +1 -1
- metadata +170 -16
- data/lib/moov/models/components/achtransactiondetails.rb +0 -92
- data/lib/moov/models/components/achtransactiondetails.rbi +0 -43
- data/lib/moov/models/components/cardacquiringdispute.rb +0 -40
- data/lib/moov/models/components/cardacquiringdispute.rbi +0 -17
- data/lib/moov/models/components/cardtransactiondetails.rb +0 -93
- data/lib/moov/models/components/cardtransactiondetails.rbi +0 -41
- data/lib/moov/models/components/instantbanktransactiondetails.rb +0 -64
- data/lib/moov/models/components/refundcarddetails.rb +0 -56
- data/lib/moov/models/components/refundcarddetails.rbi +0 -25
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7169f4edf56d294239aa603754fc8254ca57c24e14ced2aba905e2edd417b2b5
|
|
4
|
+
data.tar.gz: 4339c9ab9a0a9fd41510fc17e3db0e5303429f885516eea1760f82befd4af1e0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 98a2685dfe4ad6c1e7ccec33e61c30020674bd758f8ee0261129060332ad4df7b6336d48a10a29fd1be4833d81c2123b2b2e27262896cdbfa05b98a3c5862f24
|
|
7
|
+
data.tar.gz: 88a7387b7da6e4e518cc1596be39fd443a33e651639c9c0f646222988802b7f468d968fa70c222329b30d53e4a01ba41474e1ed0c3ed6ab7f0e3fa5709427004
|
data/lib/crystalline/module.rb
CHANGED
data/lib/moov/avatars.rb
CHANGED
|
@@ -45,7 +45,7 @@ module Moov
|
|
|
45
45
|
def get(unique_id:, timeout_ms: nil, http_headers: nil)
|
|
46
46
|
# get - Get avatar image for an account using a unique ID.
|
|
47
47
|
#
|
|
48
|
-
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
48
|
+
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
49
49
|
# you'll need to specify the `/profile-enrichment.read` scope.
|
|
50
50
|
request = Models::Operations::GetAvatarRequest.new(
|
|
51
51
|
unique_id: unique_id
|
|
@@ -165,12 +165,12 @@ module Moov
|
|
|
165
165
|
def upload(security:, avatar_upload_request:, unique_id:, timeout_ms: nil, http_headers: nil)
|
|
166
166
|
# upload - Upload a user avatar image for an account.
|
|
167
167
|
#
|
|
168
|
-
# The image will be normalized to 512x512 PNG format and stored separately from
|
|
168
|
+
# The image will be normalized to 512x512 PNG format and stored separately from
|
|
169
169
|
# automatically discovered logos. User-uploaded avatars take precedence over enriched avatars at read time.
|
|
170
170
|
#
|
|
171
171
|
# This endpoint only accepts accountID values for the uniqueID parameter.
|
|
172
172
|
#
|
|
173
|
-
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
173
|
+
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
174
174
|
# you'll need to specify the `/accounts.write` scope.
|
|
175
175
|
request = Models::Operations::UploadAvatarRequest.new(
|
|
176
176
|
unique_id: unique_id,
|
|
@@ -314,7 +314,7 @@ module Moov
|
|
|
314
314
|
#
|
|
315
315
|
# This endpoint only accepts accountID values for the uniqueID parameter.
|
|
316
316
|
#
|
|
317
|
-
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
317
|
+
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
318
318
|
# you'll need to specify the `/accounts.write` scope.
|
|
319
319
|
request = Models::Operations::DeleteAvatarRequest.new(
|
|
320
320
|
unique_id: unique_id
|
data/lib/moov/bank_accounts.rb
CHANGED
|
@@ -590,6 +590,445 @@ module Moov
|
|
|
590
590
|
end
|
|
591
591
|
|
|
592
592
|
|
|
593
|
+
sig { params(create_bank_account_attestation: Models::Components::CreateBankAccountAttestation, account_id: ::String, bank_account_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::CreateBankAccountAttestationResponse) }
|
|
594
|
+
def create_attestation(create_bank_account_attestation:, account_id:, bank_account_id:, timeout_ms: nil, http_headers: nil)
|
|
595
|
+
# create_attestation - Submit a new authorization attestation for a bank account in an `errored` status due to an R29 ACH return (`Corporate Customer Advises Not Authorized`).
|
|
596
|
+
#
|
|
597
|
+
# After obtaining new authorization from the receiver, submit an attestation with the date the authorization was obtained and a brief description of how the authorization was obtained. If the attestation is accepted, the bank account transitions from `errored` to `verified`.
|
|
598
|
+
#
|
|
599
|
+
# Constraints
|
|
600
|
+
#
|
|
601
|
+
# - The bank account's current errored status must be the result of an R29 return.
|
|
602
|
+
# - `attestedAt` must be on or after the date of the bank account's most recent R29 return and cannot be a future date.
|
|
603
|
+
# - Only one attestation may be submitted for a bank account. Use the [Get attestation eligibility](https://docs.moov.io/api/sources/bank-accounts/attestation-eligibility/) endpoint to confirm eligibility before submitting an attestation.
|
|
604
|
+
#
|
|
605
|
+
# This endpoint is available only to allowlisted partners. Contact Moov Support for more information.
|
|
606
|
+
request = Models::Operations::CreateBankAccountAttestationRequest.new(
|
|
607
|
+
account_id: account_id,
|
|
608
|
+
bank_account_id: bank_account_id,
|
|
609
|
+
create_bank_account_attestation: create_bank_account_attestation
|
|
610
|
+
)
|
|
611
|
+
url, params = @sdk_configuration.get_server_details
|
|
612
|
+
base_url = Utils.template_url(url, params)
|
|
613
|
+
url = Utils.generate_url(
|
|
614
|
+
Models::Operations::CreateBankAccountAttestationRequest,
|
|
615
|
+
base_url,
|
|
616
|
+
'/accounts/{accountID}/bank-accounts/{bankAccountID}/attestations',
|
|
617
|
+
request
|
|
618
|
+
)
|
|
619
|
+
headers = {}
|
|
620
|
+
headers = T.cast(headers, T::Hash[String, String])
|
|
621
|
+
req_content_type, data, form = Utils.serialize_request_body(request, false, false, :create_bank_account_attestation, :json)
|
|
622
|
+
headers['content-type'] = req_content_type
|
|
623
|
+
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
624
|
+
|
|
625
|
+
if form && !form.empty?
|
|
626
|
+
body = Utils.encode_form(form)
|
|
627
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
628
|
+
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
629
|
+
else
|
|
630
|
+
body = data
|
|
631
|
+
end
|
|
632
|
+
headers['Accept'] = 'application/json'
|
|
633
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
|
634
|
+
|
|
635
|
+
security = @sdk_configuration.security_source&.call
|
|
636
|
+
|
|
637
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
638
|
+
timeout ||= @sdk_configuration.timeout
|
|
639
|
+
|
|
640
|
+
|
|
641
|
+
connection = @sdk_configuration.client
|
|
642
|
+
|
|
643
|
+
hook_ctx = SDKHooks::HookContext.new(
|
|
644
|
+
config: @sdk_configuration,
|
|
645
|
+
base_url: base_url,
|
|
646
|
+
oauth2_scopes: nil,
|
|
647
|
+
operation_id: 'createBankAccountAttestation',
|
|
648
|
+
security_source: @sdk_configuration.security_source
|
|
649
|
+
)
|
|
650
|
+
|
|
651
|
+
error = T.let(nil, T.nilable(StandardError))
|
|
652
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
653
|
+
|
|
654
|
+
|
|
655
|
+
begin
|
|
656
|
+
http_response = T.must(connection).post(url) do |req|
|
|
657
|
+
req.body = body
|
|
658
|
+
req.headers.merge!(headers)
|
|
659
|
+
req.options.timeout = timeout unless timeout.nil?
|
|
660
|
+
Utils.configure_request_security(req, security)
|
|
661
|
+
http_headers&.each do |key, value|
|
|
662
|
+
req.headers[key.to_s] = value
|
|
663
|
+
end
|
|
664
|
+
|
|
665
|
+
@sdk_configuration.hooks.before_request(
|
|
666
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
667
|
+
hook_ctx: hook_ctx
|
|
668
|
+
),
|
|
669
|
+
request: req
|
|
670
|
+
)
|
|
671
|
+
end
|
|
672
|
+
rescue StandardError => e
|
|
673
|
+
error = e
|
|
674
|
+
ensure
|
|
675
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
676
|
+
http_response = @sdk_configuration.hooks.after_error(
|
|
677
|
+
error: error,
|
|
678
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
|
679
|
+
hook_ctx: hook_ctx
|
|
680
|
+
),
|
|
681
|
+
response: http_response
|
|
682
|
+
)
|
|
683
|
+
else
|
|
684
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
685
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
686
|
+
hook_ctx: hook_ctx
|
|
687
|
+
),
|
|
688
|
+
response: http_response
|
|
689
|
+
)
|
|
690
|
+
end
|
|
691
|
+
|
|
692
|
+
if http_response.nil?
|
|
693
|
+
raise error if !error.nil?
|
|
694
|
+
raise 'no response'
|
|
695
|
+
end
|
|
696
|
+
end
|
|
697
|
+
|
|
698
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
699
|
+
if Utils.match_status_code(http_response.status, ['200'])
|
|
700
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
701
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
702
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
703
|
+
hook_ctx: hook_ctx
|
|
704
|
+
),
|
|
705
|
+
response: http_response
|
|
706
|
+
)
|
|
707
|
+
response_data = http_response.env.response_body
|
|
708
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::BankAccountAttestation)
|
|
709
|
+
response = Models::Operations::CreateBankAccountAttestationResponse.new(
|
|
710
|
+
status_code: http_response.status,
|
|
711
|
+
content_type: content_type,
|
|
712
|
+
raw_response: http_response,
|
|
713
|
+
headers: http_response.headers,
|
|
714
|
+
bank_account_attestation: T.unsafe(obj)
|
|
715
|
+
)
|
|
716
|
+
|
|
717
|
+
return response
|
|
718
|
+
else
|
|
719
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
|
720
|
+
end
|
|
721
|
+
elsif Utils.match_status_code(http_response.status, ['400', '409'])
|
|
722
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
723
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
724
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
725
|
+
hook_ctx: hook_ctx
|
|
726
|
+
),
|
|
727
|
+
response: http_response
|
|
728
|
+
)
|
|
729
|
+
response_data = http_response.env.response_body
|
|
730
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::GenericError)
|
|
731
|
+
obj.raw_response = http_response
|
|
732
|
+
raise obj
|
|
733
|
+
else
|
|
734
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
|
735
|
+
end
|
|
736
|
+
elsif Utils.match_status_code(http_response.status, ['422'])
|
|
737
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
738
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
739
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
740
|
+
hook_ctx: hook_ctx
|
|
741
|
+
),
|
|
742
|
+
response: http_response
|
|
743
|
+
)
|
|
744
|
+
response_data = http_response.env.response_body
|
|
745
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::BankAccountAttestationValidationError)
|
|
746
|
+
obj.raw_response = http_response
|
|
747
|
+
raise obj
|
|
748
|
+
else
|
|
749
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
|
750
|
+
end
|
|
751
|
+
elsif Utils.match_status_code(http_response.status, ['401', '403', '404', '429'])
|
|
752
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
753
|
+
elsif Utils.match_status_code(http_response.status, ['500', '504'])
|
|
754
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
755
|
+
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
|
756
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
757
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
|
758
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
759
|
+
else
|
|
760
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received'
|
|
761
|
+
|
|
762
|
+
end
|
|
763
|
+
end
|
|
764
|
+
|
|
765
|
+
|
|
766
|
+
sig { params(account_id: ::String, bank_account_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ListBankAccountAttestationsResponse) }
|
|
767
|
+
def list_attestations(account_id:, bank_account_id:, timeout_ms: nil, http_headers: nil)
|
|
768
|
+
# list_attestations - List the attestations submitted for a bank account.
|
|
769
|
+
request = Models::Operations::ListBankAccountAttestationsRequest.new(
|
|
770
|
+
account_id: account_id,
|
|
771
|
+
bank_account_id: bank_account_id
|
|
772
|
+
)
|
|
773
|
+
url, params = @sdk_configuration.get_server_details
|
|
774
|
+
base_url = Utils.template_url(url, params)
|
|
775
|
+
url = Utils.generate_url(
|
|
776
|
+
Models::Operations::ListBankAccountAttestationsRequest,
|
|
777
|
+
base_url,
|
|
778
|
+
'/accounts/{accountID}/bank-accounts/{bankAccountID}/attestations',
|
|
779
|
+
request
|
|
780
|
+
)
|
|
781
|
+
headers = {}
|
|
782
|
+
headers = T.cast(headers, T::Hash[String, String])
|
|
783
|
+
headers['Accept'] = 'application/json'
|
|
784
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
|
785
|
+
|
|
786
|
+
security = @sdk_configuration.security_source&.call
|
|
787
|
+
|
|
788
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
789
|
+
timeout ||= @sdk_configuration.timeout
|
|
790
|
+
|
|
791
|
+
|
|
792
|
+
connection = @sdk_configuration.client
|
|
793
|
+
|
|
794
|
+
hook_ctx = SDKHooks::HookContext.new(
|
|
795
|
+
config: @sdk_configuration,
|
|
796
|
+
base_url: base_url,
|
|
797
|
+
oauth2_scopes: nil,
|
|
798
|
+
operation_id: 'listBankAccountAttestations',
|
|
799
|
+
security_source: @sdk_configuration.security_source
|
|
800
|
+
)
|
|
801
|
+
|
|
802
|
+
error = T.let(nil, T.nilable(StandardError))
|
|
803
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
804
|
+
|
|
805
|
+
|
|
806
|
+
begin
|
|
807
|
+
http_response = T.must(connection).get(url) do |req|
|
|
808
|
+
req.headers.merge!(headers)
|
|
809
|
+
req.options.timeout = timeout unless timeout.nil?
|
|
810
|
+
Utils.configure_request_security(req, security)
|
|
811
|
+
http_headers&.each do |key, value|
|
|
812
|
+
req.headers[key.to_s] = value
|
|
813
|
+
end
|
|
814
|
+
|
|
815
|
+
@sdk_configuration.hooks.before_request(
|
|
816
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
817
|
+
hook_ctx: hook_ctx
|
|
818
|
+
),
|
|
819
|
+
request: req
|
|
820
|
+
)
|
|
821
|
+
end
|
|
822
|
+
rescue StandardError => e
|
|
823
|
+
error = e
|
|
824
|
+
ensure
|
|
825
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
826
|
+
http_response = @sdk_configuration.hooks.after_error(
|
|
827
|
+
error: error,
|
|
828
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
|
829
|
+
hook_ctx: hook_ctx
|
|
830
|
+
),
|
|
831
|
+
response: http_response
|
|
832
|
+
)
|
|
833
|
+
else
|
|
834
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
835
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
836
|
+
hook_ctx: hook_ctx
|
|
837
|
+
),
|
|
838
|
+
response: http_response
|
|
839
|
+
)
|
|
840
|
+
end
|
|
841
|
+
|
|
842
|
+
if http_response.nil?
|
|
843
|
+
raise error if !error.nil?
|
|
844
|
+
raise 'no response'
|
|
845
|
+
end
|
|
846
|
+
end
|
|
847
|
+
|
|
848
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
849
|
+
if Utils.match_status_code(http_response.status, ['200'])
|
|
850
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
851
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
852
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
853
|
+
hook_ctx: hook_ctx
|
|
854
|
+
),
|
|
855
|
+
response: http_response
|
|
856
|
+
)
|
|
857
|
+
response_data = http_response.env.response_body
|
|
858
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Crystalline::Array.new(Models::Components::BankAccountAttestationSummary))
|
|
859
|
+
response = Models::Operations::ListBankAccountAttestationsResponse.new(
|
|
860
|
+
status_code: http_response.status,
|
|
861
|
+
content_type: content_type,
|
|
862
|
+
raw_response: http_response,
|
|
863
|
+
headers: http_response.headers,
|
|
864
|
+
bank_account_attestation_summaries: T.unsafe(obj)
|
|
865
|
+
)
|
|
866
|
+
|
|
867
|
+
return response
|
|
868
|
+
else
|
|
869
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
|
870
|
+
end
|
|
871
|
+
elsif Utils.match_status_code(http_response.status, ['401', '403', '404', '429'])
|
|
872
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
873
|
+
elsif Utils.match_status_code(http_response.status, ['500', '504'])
|
|
874
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
875
|
+
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
|
876
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
877
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
|
878
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
879
|
+
else
|
|
880
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received'
|
|
881
|
+
|
|
882
|
+
end
|
|
883
|
+
end
|
|
884
|
+
|
|
885
|
+
|
|
886
|
+
sig { params(account_id: ::String, bank_account_id: ::String, attested_at: T.nilable(::Date), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::GetBankAccountAttestationEligibilityResponse) }
|
|
887
|
+
def get_attestation_eligibility(account_id:, bank_account_id:, attested_at: nil, timeout_ms: nil, http_headers: nil)
|
|
888
|
+
# get_attestation_eligibility - Check whether a bank account is currently eligible for a new authorization attestation without submitting one.
|
|
889
|
+
#
|
|
890
|
+
# - `enabled` indicates whether the calling account has access to the attestations feature. If `enabled` is `false`, `eligible` is always `false`.
|
|
891
|
+
# - When `enabled` is `true`, `eligible` indicates whether the bank account currently meets the eligibility requirements for a new attestation: the bank account must be `errored` due to an R29 return, with no prior attestations.
|
|
892
|
+
#
|
|
893
|
+
# This endpoint always returns `200`, including when the bank account is not eligible. Check the `eligible` field to determine eligibility.
|
|
894
|
+
#
|
|
895
|
+
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
896
|
+
# you'll need to specify the `/accounts/{accountID}/bank-accounts.read` scope.
|
|
897
|
+
request = Models::Operations::GetBankAccountAttestationEligibilityRequest.new(
|
|
898
|
+
account_id: account_id,
|
|
899
|
+
bank_account_id: bank_account_id,
|
|
900
|
+
attested_at: attested_at
|
|
901
|
+
)
|
|
902
|
+
url, params = @sdk_configuration.get_server_details
|
|
903
|
+
base_url = Utils.template_url(url, params)
|
|
904
|
+
url = Utils.generate_url(
|
|
905
|
+
Models::Operations::GetBankAccountAttestationEligibilityRequest,
|
|
906
|
+
base_url,
|
|
907
|
+
'/accounts/{accountID}/bank-accounts/{bankAccountID}/attestations-eligibility',
|
|
908
|
+
request
|
|
909
|
+
)
|
|
910
|
+
headers = {}
|
|
911
|
+
headers = T.cast(headers, T::Hash[String, String])
|
|
912
|
+
query_params = Utils.get_query_params(Models::Operations::GetBankAccountAttestationEligibilityRequest, request, nil)
|
|
913
|
+
headers['Accept'] = 'application/json'
|
|
914
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
|
915
|
+
|
|
916
|
+
security = @sdk_configuration.security_source&.call
|
|
917
|
+
|
|
918
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
919
|
+
timeout ||= @sdk_configuration.timeout
|
|
920
|
+
|
|
921
|
+
|
|
922
|
+
connection = @sdk_configuration.client
|
|
923
|
+
|
|
924
|
+
hook_ctx = SDKHooks::HookContext.new(
|
|
925
|
+
config: @sdk_configuration,
|
|
926
|
+
base_url: base_url,
|
|
927
|
+
oauth2_scopes: nil,
|
|
928
|
+
operation_id: 'getBankAccountAttestationEligibility',
|
|
929
|
+
security_source: @sdk_configuration.security_source
|
|
930
|
+
)
|
|
931
|
+
|
|
932
|
+
error = T.let(nil, T.nilable(StandardError))
|
|
933
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
934
|
+
|
|
935
|
+
|
|
936
|
+
begin
|
|
937
|
+
http_response = T.must(connection).get(url) do |req|
|
|
938
|
+
req.headers.merge!(headers)
|
|
939
|
+
req.options.timeout = timeout unless timeout.nil?
|
|
940
|
+
req.params = query_params
|
|
941
|
+
Utils.configure_request_security(req, security)
|
|
942
|
+
http_headers&.each do |key, value|
|
|
943
|
+
req.headers[key.to_s] = value
|
|
944
|
+
end
|
|
945
|
+
|
|
946
|
+
@sdk_configuration.hooks.before_request(
|
|
947
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
948
|
+
hook_ctx: hook_ctx
|
|
949
|
+
),
|
|
950
|
+
request: req
|
|
951
|
+
)
|
|
952
|
+
end
|
|
953
|
+
rescue StandardError => e
|
|
954
|
+
error = e
|
|
955
|
+
ensure
|
|
956
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
957
|
+
http_response = @sdk_configuration.hooks.after_error(
|
|
958
|
+
error: error,
|
|
959
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
|
960
|
+
hook_ctx: hook_ctx
|
|
961
|
+
),
|
|
962
|
+
response: http_response
|
|
963
|
+
)
|
|
964
|
+
else
|
|
965
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
966
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
967
|
+
hook_ctx: hook_ctx
|
|
968
|
+
),
|
|
969
|
+
response: http_response
|
|
970
|
+
)
|
|
971
|
+
end
|
|
972
|
+
|
|
973
|
+
if http_response.nil?
|
|
974
|
+
raise error if !error.nil?
|
|
975
|
+
raise 'no response'
|
|
976
|
+
end
|
|
977
|
+
end
|
|
978
|
+
|
|
979
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
980
|
+
if Utils.match_status_code(http_response.status, ['200'])
|
|
981
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
982
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
983
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
984
|
+
hook_ctx: hook_ctx
|
|
985
|
+
),
|
|
986
|
+
response: http_response
|
|
987
|
+
)
|
|
988
|
+
response_data = http_response.env.response_body
|
|
989
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::BankAccountAttestationEligibility)
|
|
990
|
+
response = Models::Operations::GetBankAccountAttestationEligibilityResponse.new(
|
|
991
|
+
status_code: http_response.status,
|
|
992
|
+
content_type: content_type,
|
|
993
|
+
raw_response: http_response,
|
|
994
|
+
headers: http_response.headers,
|
|
995
|
+
bank_account_attestation_eligibility: T.unsafe(obj)
|
|
996
|
+
)
|
|
997
|
+
|
|
998
|
+
return response
|
|
999
|
+
else
|
|
1000
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
|
1001
|
+
end
|
|
1002
|
+
elsif Utils.match_status_code(http_response.status, ['400'])
|
|
1003
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
1004
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
1005
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
1006
|
+
hook_ctx: hook_ctx
|
|
1007
|
+
),
|
|
1008
|
+
response: http_response
|
|
1009
|
+
)
|
|
1010
|
+
response_data = http_response.env.response_body
|
|
1011
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::GenericError)
|
|
1012
|
+
obj.raw_response = http_response
|
|
1013
|
+
raise obj
|
|
1014
|
+
else
|
|
1015
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
|
1016
|
+
end
|
|
1017
|
+
elsif Utils.match_status_code(http_response.status, ['401', '403', '404'])
|
|
1018
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
1019
|
+
elsif Utils.match_status_code(http_response.status, ['500', '504'])
|
|
1020
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
1021
|
+
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
|
1022
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
1023
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
|
1024
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
1025
|
+
else
|
|
1026
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received'
|
|
1027
|
+
|
|
1028
|
+
end
|
|
1029
|
+
end
|
|
1030
|
+
|
|
1031
|
+
|
|
593
1032
|
sig { params(account_id: ::String, bank_account_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::InitiateMicroDepositsResponse) }
|
|
594
1033
|
def initiate_micro_deposits(account_id:, bank_account_id:, timeout_ms: nil, http_headers: nil)
|
|
595
1034
|
# initiate_micro_deposits - Micro-deposits help confirm bank account ownership, helping reduce fraud and the risk of unauthorized activity.
|
data/lib/moov/card_issuing.rb
CHANGED
|
@@ -41,6 +41,122 @@ module Moov
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
|
|
44
|
+
sig { params(timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ListIssuingMerchantCategoriesResponse) }
|
|
45
|
+
def list_merchant_categories(timeout_ms: nil, http_headers: nil)
|
|
46
|
+
# list_merchant_categories - List the predefined merchant category groups available for issued card spend controls, along with
|
|
47
|
+
# the merchant category codes (MCCs) each group covers. Use these category names in an issued card's
|
|
48
|
+
# `merchantCategoryRestrictions`.
|
|
49
|
+
#
|
|
50
|
+
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/),
|
|
51
|
+
# you'll need to specify the `/issued-cards.read` scope.
|
|
52
|
+
url, params = @sdk_configuration.get_server_details
|
|
53
|
+
base_url = Utils.template_url(url, params)
|
|
54
|
+
url = "#{base_url}/issuing/merchant-categories"
|
|
55
|
+
headers = {}
|
|
56
|
+
headers = T.cast(headers, T::Hash[String, String])
|
|
57
|
+
headers['Accept'] = 'application/json'
|
|
58
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
|
59
|
+
|
|
60
|
+
security = @sdk_configuration.security_source&.call
|
|
61
|
+
|
|
62
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
63
|
+
timeout ||= @sdk_configuration.timeout
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
connection = @sdk_configuration.client
|
|
67
|
+
|
|
68
|
+
hook_ctx = SDKHooks::HookContext.new(
|
|
69
|
+
config: @sdk_configuration,
|
|
70
|
+
base_url: base_url,
|
|
71
|
+
oauth2_scopes: nil,
|
|
72
|
+
operation_id: 'listIssuingMerchantCategories',
|
|
73
|
+
security_source: @sdk_configuration.security_source
|
|
74
|
+
)
|
|
75
|
+
|
|
76
|
+
error = T.let(nil, T.nilable(StandardError))
|
|
77
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
begin
|
|
81
|
+
http_response = T.must(connection).get(url) do |req|
|
|
82
|
+
req.headers.merge!(headers)
|
|
83
|
+
req.options.timeout = timeout unless timeout.nil?
|
|
84
|
+
Utils.configure_request_security(req, security)
|
|
85
|
+
http_headers&.each do |key, value|
|
|
86
|
+
req.headers[key.to_s] = value
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
@sdk_configuration.hooks.before_request(
|
|
90
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
91
|
+
hook_ctx: hook_ctx
|
|
92
|
+
),
|
|
93
|
+
request: req
|
|
94
|
+
)
|
|
95
|
+
end
|
|
96
|
+
rescue StandardError => e
|
|
97
|
+
error = e
|
|
98
|
+
ensure
|
|
99
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
100
|
+
http_response = @sdk_configuration.hooks.after_error(
|
|
101
|
+
error: error,
|
|
102
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
|
103
|
+
hook_ctx: hook_ctx
|
|
104
|
+
),
|
|
105
|
+
response: http_response
|
|
106
|
+
)
|
|
107
|
+
else
|
|
108
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
109
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
110
|
+
hook_ctx: hook_ctx
|
|
111
|
+
),
|
|
112
|
+
response: http_response
|
|
113
|
+
)
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
if http_response.nil?
|
|
117
|
+
raise error if !error.nil?
|
|
118
|
+
raise 'no response'
|
|
119
|
+
end
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
123
|
+
if Utils.match_status_code(http_response.status, ['200'])
|
|
124
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
125
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
126
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
127
|
+
hook_ctx: hook_ctx
|
|
128
|
+
),
|
|
129
|
+
response: http_response
|
|
130
|
+
)
|
|
131
|
+
response_data = http_response.env.response_body
|
|
132
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::MerchantCategories)
|
|
133
|
+
response = Models::Operations::ListIssuingMerchantCategoriesResponse.new(
|
|
134
|
+
status_code: http_response.status,
|
|
135
|
+
content_type: content_type,
|
|
136
|
+
raw_response: http_response,
|
|
137
|
+
headers: http_response.headers,
|
|
138
|
+
merchant_categories: T.unsafe(obj)
|
|
139
|
+
)
|
|
140
|
+
|
|
141
|
+
return response
|
|
142
|
+
else
|
|
143
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
|
144
|
+
end
|
|
145
|
+
elsif Utils.match_status_code(http_response.status, ['401', '403', '429'])
|
|
146
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
147
|
+
elsif Utils.match_status_code(http_response.status, ['500', '504'])
|
|
148
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
149
|
+
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
|
150
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
151
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
|
152
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
153
|
+
else
|
|
154
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received'
|
|
155
|
+
|
|
156
|
+
end
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
|
|
44
160
|
sig { params(request_card: Models::Components::RequestCard, account_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::RequestCardResponse) }
|
|
45
161
|
def request(request_card:, account_id:, timeout_ms: nil, http_headers: nil)
|
|
46
162
|
# request - Request a virtual card be issued.
|
|
@@ -629,7 +745,7 @@ module Moov
|
|
|
629
745
|
# Only use this endpoint if you have provided Moov with a copy of your PCI attestation of compliance.
|
|
630
746
|
#
|
|
631
747
|
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
632
|
-
# you'll need to specify the `/accounts/{accountID}/issued-cards.read-
|
|
748
|
+
# you'll need to specify the `/accounts/{accountID}/issued-cards.read-private` scope.
|
|
633
749
|
request = Models::Operations::GetFullIssuedCardRequest.new(
|
|
634
750
|
account_id: account_id,
|
|
635
751
|
issued_card_id: issued_card_id
|
data/lib/moov/client.rb
CHANGED
|
@@ -16,7 +16,7 @@ module Moov
|
|
|
16
16
|
class Client
|
|
17
17
|
extend T::Sig
|
|
18
18
|
|
|
19
|
-
attr_accessor :accounts, :adjustments, :apple_pay, :bank_accounts, :branding, :capabilities, :cards, :disputes, :fee_plans, :files, :google_pay, :images, :invoices, :payment_links, :payment_methods, :products, :representatives, :resolution_links, :scheduling, :statements, :sweeps, :account_terminal_applications, :support, :transfer_config, :transfers, :underwriting, :wallets, :wallet_transactions, :avatars, :end_to_end_encryption, :enriched_address, :enriched_profile, :webhooks, :industries, :institutions, :
|
|
19
|
+
attr_accessor :accounts, :adjustments, :apple_pay, :bank_accounts, :branding, :capabilities, :cards, :disputes, :fee_plans, :files, :google_pay, :images, :invoices, :payment_links, :payment_methods, :products, :representatives, :resolution_links, :scheduling, :statements, :sweeps, :account_terminal_applications, :support, :transfer_config, :transfers, :underwriting, :wallets, :wallet_transactions, :avatars, :end_to_end_encryption, :enriched_address, :enriched_profile, :webhooks, :industries, :institutions, :card_issuing, :issuing_transactions, :authentication, :onboarding, :ping, :receipts, :terminal_applications, :deposit_view
|
|
20
20
|
|
|
21
21
|
# Instantiates the SDK, configuring it with the provided parameters.
|
|
22
22
|
#
|
|
@@ -113,8 +113,8 @@ module Moov
|
|
|
113
113
|
@webhooks = Webhooks.new(@sdk_configuration)
|
|
114
114
|
@industries = Industries.new(@sdk_configuration)
|
|
115
115
|
@institutions = Institutions.new(@sdk_configuration)
|
|
116
|
-
@issuing_transactions = IssuingTransactions.new(@sdk_configuration)
|
|
117
116
|
@card_issuing = CardIssuing.new(@sdk_configuration)
|
|
117
|
+
@issuing_transactions = IssuingTransactions.new(@sdk_configuration)
|
|
118
118
|
@authentication = Authentication.new(@sdk_configuration)
|
|
119
119
|
@onboarding = Onboarding.new(@sdk_configuration)
|
|
120
120
|
@ping = Ping.new(@sdk_configuration)
|
|
@@ -45,7 +45,7 @@ module Moov
|
|
|
45
45
|
def get(request:, timeout_ms: nil, http_headers: nil)
|
|
46
46
|
# get - Fetch enriched address suggestions. Requires a partial address.
|
|
47
47
|
#
|
|
48
|
-
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
48
|
+
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
49
49
|
# you'll need to specify the `/profile-enrichment.read` scope.
|
|
50
50
|
url, params = @sdk_configuration.get_server_details
|
|
51
51
|
base_url = Utils.template_url(url, params)
|