moov_ruby 26.4.15 → 26.7.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/module.rb +1 -1
- data/lib/moov/account_terminal_applications.rb +16 -16
- data/lib/moov/accounts.rb +54 -52
- data/lib/moov/adjustments.rb +8 -8
- data/lib/moov/apple_pay.rb +20 -20
- data/lib/moov/authentication.rb +8 -8
- data/lib/moov/avatars.rb +5 -5
- data/lib/moov/bank_accounts.rb +37 -37
- data/lib/moov/branding.rb +12 -12
- data/lib/moov/capabilities.rb +20 -20
- data/lib/moov/card_issuing.rb +26 -26
- data/lib/moov/cards.rb +178 -20
- data/lib/moov/disputes.rb +44 -44
- data/lib/moov/end_to_end_encryption.rb +8 -8
- data/lib/moov/enriched_address.rb +5 -5
- data/lib/moov/enriched_profile.rb +5 -5
- data/lib/moov/fee_plans.rb +40 -40
- data/lib/moov/files.rb +12 -12
- data/lib/moov/google_pay.rb +4 -4
- data/lib/moov/images.rb +29 -29
- data/lib/moov/industries.rb +4 -4
- data/lib/moov/institutions.rb +10 -10
- data/lib/moov/invoices.rb +28 -28
- data/lib/moov/issuing_transactions.rb +20 -20
- 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 +1 -3
- data/lib/moov/models/components/accountverificationstatus.rb +1 -3
- data/lib/moov/models/components/achreturncode.rb +1 -3
- data/lib/moov/models/components/achtransactiondetails.rb +3 -3
- data/lib/moov/models/components/achtransactionstatus.rb +1 -3
- data/lib/moov/models/components/addcapabilities.rb +1 -5
- data/lib/moov/models/components/adjustmentfees.rb +15 -11
- data/lib/moov/models/components/adjustmentfees.rbi +4 -4
- data/lib/moov/models/components/amountdecimalrange.rb +36 -0
- data/lib/moov/models/components/amountdecimalrange.rbi +15 -0
- data/lib/moov/models/components/amountdecimalrangeupdate.rb +36 -0
- data/lib/moov/models/components/amountdecimalrangeupdate.rbi +15 -0
- data/lib/moov/models/components/applepayresponse.rb +2 -2
- data/lib/moov/models/components/applicationscope.rb +2 -4
- data/lib/moov/models/components/authmethod.rb +1 -3
- data/lib/moov/models/components/authorizeduser.rb +36 -0
- data/lib/moov/models/components/authorizeduser.rbi +15 -0
- data/lib/moov/models/components/bankaccount.rb +4 -4
- data/lib/moov/models/components/bankaccountexception.rb +2 -2
- data/lib/moov/models/components/bankaccountholdertype.rb +1 -3
- data/lib/moov/models/components/bankaccountintegration.rb +2 -2
- data/lib/moov/models/components/bankaccountstatus.rb +1 -3
- data/lib/moov/models/components/bankaccountstatusreason.rb +1 -3
- data/lib/moov/models/components/bankaccounttype.rb +1 -3
- 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 +1 -3
- data/lib/moov/models/components/bankaccountverificationstatus.rb +1 -3
- data/lib/moov/models/components/basicpaymentmethod.rb +1 -1
- data/lib/moov/models/components/billablefee.rb +2 -2
- data/lib/moov/models/components/billingsummary.rb +4 -8
- data/lib/moov/models/components/billingsummary.rbi +0 -2
- data/lib/moov/models/components/businesspresence.rb +1 -3
- data/lib/moov/models/components/businessprofile.rb +2 -2
- data/lib/moov/models/components/businesstype.rb +1 -3
- data/lib/moov/models/components/calltoaction.rb +1 -3
- data/lib/moov/models/components/cancellation.rb +2 -2
- data/lib/moov/models/components/cancellationstatus.rb +1 -3
- data/lib/moov/models/components/capability.rb +3 -9
- data/lib/moov/models/components/capabilityid.rb +2 -11
- data/lib/moov/models/components/capabilitystatus.rb +1 -3
- 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 +1 -3
- data/lib/moov/models/components/cardacquiringrefund.rb +1 -1
- data/lib/moov/models/components/cardbrand.rb +1 -3
- data/lib/moov/models/components/cardbrandfees.rb +2 -6
- data/lib/moov/models/components/cardbrandfees.rbi +0 -2
- data/lib/moov/models/components/cardissuingnetwork.rb +1 -3
- data/lib/moov/models/components/cardmetadata.rb +79 -0
- data/lib/moov/models/components/cardmetadata.rbi +35 -0
- data/lib/moov/models/components/cardmetadatarequest.rb +38 -0
- data/lib/moov/models/components/cardmetadatarequest.rbi +15 -0
- data/lib/moov/models/components/cardtransactiondetails.rb +5 -13
- data/lib/moov/models/components/cardtransactiondetails.rbi +0 -4
- data/lib/moov/models/components/cardtransactionfailurecode.rb +1 -3
- data/lib/moov/models/components/cardtransactionstatus.rb +1 -4
- data/lib/moov/models/components/cardtype.rb +1 -3
- data/lib/moov/models/components/cardupdatereason.rb +1 -3
- data/lib/moov/models/components/cardverification.rb +3 -3
- data/lib/moov/models/components/cardverificationresult.rb +1 -3
- data/lib/moov/models/components/collectfundscardpayments.rb +1 -1
- data/lib/moov/models/components/collectionpaymentmethodtype.rb +1 -3
- data/lib/moov/models/components/createaccount.rb +3 -7
- data/lib/moov/models/components/createaccounttype.rb +1 -3
- data/lib/moov/models/components/createauthorizeduser.rb +40 -0
- data/lib/moov/models/components/createauthorizeduser.rbi +17 -0
- data/lib/moov/models/components/createauthorizedusererror.rb +40 -0
- data/lib/moov/models/components/createauthorizedusererror.rbi +17 -0
- data/lib/moov/models/components/createauthorizeduserupdate.rb +40 -0
- data/lib/moov/models/components/createauthorizeduserupdate.rbi +17 -0
- data/lib/moov/models/components/createbusinessprofile.rb +2 -2
- data/lib/moov/models/components/createdtransfer.rb +5 -16
- data/lib/moov/models/components/createdtransfer.rbi +0 -4
- data/lib/moov/models/components/createevidencetext.rb +1 -1
- data/lib/moov/models/components/createfeeplanagreement.rb +3 -13
- data/lib/moov/models/components/createfeeplanagreement.rbi +0 -2
- data/lib/moov/models/components/createpaymentlink.rb +16 -16
- data/lib/moov/models/components/createpaymentlink.rbi +4 -4
- data/lib/moov/models/components/createpaymentlinkamountdetails.rb +32 -0
- data/lib/moov/models/components/createpaymentlinkamountdetails.rbi +13 -0
- data/lib/moov/models/components/{webhookdataeventtest.rb → createpaymentlinkamountdetailsvalidationerror.rb} +7 -7
- data/lib/moov/models/components/createpaymentlinkamountdetailsvalidationerror.rbi +13 -0
- data/lib/moov/models/components/createrefund.rb +2 -2
- data/lib/moov/models/components/createreversal.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/createtippresets.rb +1 -1
- data/lib/moov/models/components/createtransfer.rb +2 -6
- data/lib/moov/models/components/createtransfer.rbi +0 -2
- data/lib/moov/models/components/createtransferamountdetails.rb +6 -2
- data/lib/moov/models/components/createtransferamountdetails.rbi +2 -0
- data/lib/moov/models/components/createtransferamountdetailsvalidationerror.rb +6 -2
- data/lib/moov/models/components/createtransferamountdetailsvalidationerror.rbi +2 -0
- data/lib/moov/models/components/createtransferdestinationcard.rb +2 -6
- data/lib/moov/models/components/createtransferdestinationcard.rbi +0 -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 +1 -3
- data/lib/moov/models/components/disbursementpaymentmethodtype.rb +1 -3
- 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 +1 -3
- data/lib/moov/models/components/disputestatus.rb +1 -3
- data/lib/moov/models/components/document.rb +1 -1
- data/lib/moov/models/components/documenttype.rb +1 -3
- data/lib/moov/models/components/domesticpullfromcard.rb +1 -3
- data/lib/moov/models/components/domesticpushtocard.rb +1 -3
- 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 +1 -3
- data/lib/moov/models/components/evidenceuploadresponse.rb +1 -1
- data/lib/moov/models/components/facilitatorfee.rb +2 -2
- data/lib/moov/models/components/feecategory.rb +1 -3
- data/lib/moov/models/components/feemodel.rb +1 -3
- data/lib/moov/models/components/feeplan.rb +1 -1
- data/lib/moov/models/components/feeplanagreement.rb +4 -12
- data/lib/moov/models/components/feeplanagreement.rbi +0 -4
- data/lib/moov/models/components/feeplanagreementstatus.rb +1 -3
- data/lib/moov/models/components/filedetails.rb +3 -3
- data/lib/moov/models/components/filepurpose.rb +2 -4
- data/lib/moov/models/components/filestatus.rb +1 -3
- 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 +1 -3
- data/lib/moov/models/components/fulfillmenttimeframe.rb +1 -3
- data/lib/moov/models/components/fullissuedcard.rb +16 -27
- data/lib/moov/models/components/fullissuedcard.rbi +4 -10
- data/lib/moov/models/components/geographicreach.rb +1 -3
- data/lib/moov/models/components/googlepayresponse.rb +3 -3
- data/lib/moov/models/components/instantbankfailurecode.rb +1 -3
- data/lib/moov/models/components/instantbanknetwork.rb +1 -3
- data/lib/moov/models/components/instantbanktransactiondetails.rb +3 -3
- data/lib/moov/models/components/instantbanktransactionstatus.rb +1 -3
- data/lib/moov/models/components/invoice.rb +4 -8
- data/lib/moov/models/components/invoice.rbi +0 -2
- data/lib/moov/models/components/invoicepayment.rb +1 -1
- data/lib/moov/models/components/invoicepaymenttype.rb +1 -3
- data/lib/moov/models/components/invoicestatus.rb +1 -3
- data/lib/moov/models/components/issuedcard.rb +15 -26
- data/lib/moov/models/components/issuedcard.rbi +4 -10
- data/lib/moov/models/components/issuedcardauthorization.rb +4 -8
- data/lib/moov/models/components/issuedcardauthorization.rbi +0 -2
- data/lib/moov/models/components/issuedcardauthorizationevent.rb +2 -2
- data/lib/moov/models/components/issuedcardauthorizationeventresult.rb +1 -3
- data/lib/moov/models/components/issuedcardeventtype.rb +1 -3
- data/lib/moov/models/components/issuedcardstate.rb +6 -6
- data/lib/moov/models/components/issuedcardtransaction.rb +2 -6
- data/lib/moov/models/components/issuedcardtransaction.rbi +0 -2
- data/lib/moov/models/components/issuingauthorizationstatus.rb +1 -3
- data/lib/moov/models/components/issuingcontrols.rb +1 -1
- data/lib/moov/models/components/issuingintervallimit.rb +1 -1
- data/lib/moov/models/components/issuingvelocitylimit.rb +1 -1
- 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/manualtermsofservice.rb +1 -1
- data/lib/moov/models/components/manualtermsofserviceupdate.rb +1 -1
- data/lib/moov/models/components/mode.rb +1 -3
- data/lib/moov/models/components/monthlyvolumerange.rb +1 -3
- data/lib/moov/models/components/moovfee.rb +1 -1
- data/lib/moov/models/components/occurrencesresponse.rb +2 -2
- data/lib/moov/models/components/occurrencestatus.rb +1 -3
- data/lib/moov/models/components/onboardinginvite.rb +2 -2
- data/lib/moov/models/components/onboardinginviterequest.rb +1 -1
- data/lib/moov/models/components/onboardingpartneraccount.rb +1 -1
- data/lib/moov/models/components/partnerpricingagreement.rb +7 -15
- data/lib/moov/models/components/partnerpricingagreement.rbi +0 -4
- data/lib/moov/models/components/patchbusiness.rb +2 -2
- data/lib/moov/models/components/patchtransfer.rb +1 -1
- data/lib/moov/models/components/patchwallet.rb +1 -1
- data/lib/moov/models/components/paymentlink.rb +19 -19
- data/lib/moov/models/components/paymentlink.rbi +4 -4
- data/lib/moov/models/components/paymentlinkamountdetails.rb +32 -0
- data/lib/moov/models/components/paymentlinkamountdetails.rbi +13 -0
- data/lib/moov/models/components/paymentlinkdisplayoptions.rb +1 -1
- data/lib/moov/models/components/paymentlinkdisplayoptionsupdate.rb +1 -1
- data/lib/moov/models/components/paymentlinkpaymentdetails.rb +14 -2
- data/lib/moov/models/components/paymentlinkpaymentdetails.rbi +6 -0
- data/lib/moov/models/components/paymentlinkpaymentdetails_amounttype.rb +19 -0
- data/lib/moov/models/components/paymentlinkpaymentdetails_amounttype.rbi +11 -0
- data/lib/moov/models/components/paymentlinkpaymentdetailsupdate.rb +14 -2
- data/lib/moov/models/components/paymentlinkpaymentdetailsupdate.rbi +6 -0
- data/lib/moov/models/components/paymentlinkpaymentdetailsupdate_amounttype.rb +19 -0
- data/lib/moov/models/components/paymentlinkpaymentdetailsupdate_amounttype.rbi +11 -0
- data/lib/moov/models/components/paymentlinkpayoutdetails.rb +3 -7
- data/lib/moov/models/components/paymentlinkpayoutdetails.rbi +0 -2
- data/lib/moov/models/components/paymentlinkpayoutdetailsupdate.rb +3 -7
- data/lib/moov/models/components/paymentlinkpayoutdetailsupdate.rbi +0 -2
- data/lib/moov/models/components/paymentlinkstatus.rb +1 -3
- data/lib/moov/models/components/paymentlinktype.rb +1 -3
- 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 +1 -2
- data/lib/moov/models/components/paymentmethodtype.rb +1 -3
- data/lib/moov/models/components/payoutdetailserror.rb +2 -6
- data/lib/moov/models/components/payoutdetailserror.rbi +0 -2
- data/lib/moov/models/components/pendinglitigation.rb +1 -3
- data/lib/moov/models/components/primaryregulator.rb +1 -3
- data/lib/moov/models/components/puttippresets.rb +1 -1
- data/lib/moov/models/components/refundcarddetails.rb +2 -2
- data/lib/moov/models/components/refundcardstatus.rb +1 -3
- data/lib/moov/models/components/refundpolicy.rb +1 -3
- data/lib/moov/models/components/refundstatus.rb +1 -3
- data/lib/moov/models/components/requestcard.rb +18 -18
- data/lib/moov/models/components/requestcard.rbi +8 -8
- data/lib/moov/models/components/requirementerror.rb +2 -2
- data/lib/moov/models/components/requirementerrorcode.rb +1 -3
- data/lib/moov/models/components/requirementid.rb +1 -10
- data/lib/moov/models/components/resolutionlink.rb +1 -1
- data/lib/moov/models/components/resolutionlinkstatus.rb +1 -3
- data/lib/moov/models/components/returnpolicytype.rb +1 -3
- data/lib/moov/models/components/reversedwithcancellation.rb +1 -1
- data/lib/moov/models/components/rtprejectioncode.rb +1 -3
- data/lib/moov/models/components/schedulelistresponse.rb +1 -1
- data/lib/moov/models/components/scheduleresponse.rb +1 -1
- data/lib/moov/models/components/seccode.rb +1 -3
- data/lib/moov/models/components/statement.rb +2 -6
- data/lib/moov/models/components/statement.rbi +0 -2
- 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 +1 -3
- data/lib/moov/models/components/sweepstatus.rb +1 -3
- 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 +1 -3
- data/lib/moov/models/components/terminalapplicationstatus.rb +1 -3
- data/lib/moov/models/components/terminalcard.rb +2 -2
- data/lib/moov/models/components/termsofservice.rb +1 -1
- data/lib/moov/models/components/ticket.rb +1 -1
- data/lib/moov/models/components/ticketstatus.rb +1 -3
- data/lib/moov/models/components/tipcalculationbasis.rb +1 -3
- data/lib/moov/models/components/tippresets.rb +1 -1
- data/lib/moov/models/components/transactionsource.rb +1 -3
- data/lib/moov/models/components/transfer.rb +5 -16
- data/lib/moov/models/components/transfer.rbi +0 -4
- data/lib/moov/models/components/transferamountdetails.rb +6 -2
- data/lib/moov/models/components/transferamountdetails.rbi +2 -0
- data/lib/moov/models/components/transferconfig.rb +2 -6
- data/lib/moov/models/components/transferconfig.rbi +0 -2
- data/lib/moov/models/components/transferdestination.rb +3 -9
- data/lib/moov/models/components/transferdestination.rbi +0 -2
- data/lib/moov/models/components/transferfailurereason.rb +1 -3
- data/lib/moov/models/components/transferparty.rb +1 -3
- 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 +1 -2
- data/lib/moov/models/components/transferpaymentmethodtype.rb +1 -3
- data/lib/moov/models/components/transfersource.rb +1 -1
- data/lib/moov/models/components/transferstatus.rb +1 -3
- data/lib/moov/models/components/transferterminalcard.rb +2 -2
- data/lib/moov/models/components/underwriting.rb +4 -4
- data/lib/moov/models/components/underwritingstatus.rb +1 -3
- data/lib/moov/models/components/updateevidence.rb +1 -1
- data/lib/moov/models/components/updateinvoice.rb +7 -7
- data/lib/moov/models/components/updateissuedcard.rb +9 -15
- data/lib/moov/models/components/updateissuedcard.rbi +4 -6
- data/lib/moov/models/components/updateissuedcardstate.rb +0 -4
- data/lib/moov/models/components/updatepaymentlink.rb +7 -7
- data/lib/moov/models/components/updatepaymentlink.rbi +2 -2
- data/lib/moov/models/components/updatepaymentlinkamountdetails.rb +32 -0
- data/lib/moov/models/components/updatepaymentlinkamountdetails.rbi +13 -0
- data/lib/moov/models/components/updatepaymentlinkamountdetailsvalidationerror.rb +32 -0
- data/lib/moov/models/components/updatepaymentlinkamountdetailsvalidationerror.rbi +13 -0
- data/lib/moov/models/components/updatewebhook.rb +1 -1
- data/lib/moov/models/components/upsertunderwriting.rb +3 -3
- data/lib/moov/models/components/use.rb +1 -3
- data/lib/moov/models/components/verification.rb +3 -3
- data/lib/moov/models/components/verificationstatus.rb +1 -3
- data/lib/moov/models/components/verificationstatusdetail.rb +1 -3
- data/lib/moov/models/components/wallet.rb +2 -3
- data/lib/moov/models/components/walletstatus.rb +1 -3
- data/lib/moov/models/components/wallettransaction.rb +3 -3
- data/lib/moov/models/components/wallettransactionsourcetype.rb +1 -3
- data/lib/moov/models/components/wallettransactionstatus.rb +1 -3
- data/lib/moov/models/components/wallettransactiontype.rb +1 -3
- data/lib/moov/models/components/wallettype.rb +1 -5
- 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 +2 -6
- data/lib/moov/models/components/webhookdatabankaccountdeleted.rbi +0 -2
- 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 -8
- data/lib/moov/models/components/webhookdatacapabilityupdated.rb +3 -9
- 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/webhookdatasweepcreated.rb +2 -6
- data/lib/moov/models/components/webhookdatasweepcreated.rbi +0 -2
- data/lib/moov/models/components/webhookdatasweepupdated.rb +3 -7
- data/lib/moov/models/components/webhookdatasweepupdated.rbi +0 -2
- 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 +0 -3
- 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 +1 -5
- data/lib/moov/models/components/webhookstatus.rb +1 -3
- data/lib/moov/models/components.rb +16 -15
- data/lib/moov/models/errors/cardacquiringrefund_error.rb +1 -1
- data/lib/moov/models/errors/cardmetadatarequesterror.rb +44 -0
- data/lib/moov/models/errors/cardmetadatarequesterror.rbi +19 -0
- data/lib/moov/models/errors/createpaymentlinkerror.rb +6 -6
- data/lib/moov/models/errors/createpaymentlinkerror.rbi +2 -2
- data/lib/moov/models/errors/requestcarderror.rb +14 -14
- data/lib/moov/models/errors/requestcarderror.rbi +8 -8
- data/lib/moov/models/errors/transfer_error.rb +5 -16
- data/lib/moov/models/errors/transfer_error.rbi +0 -4
- data/lib/moov/models/errors/transfervalidationerror.rb +2 -6
- data/lib/moov/models/errors/transfervalidationerror.rbi +0 -2
- data/lib/moov/models/errors/updateissuedcarderror.rb +8 -12
- data/lib/moov/models/errors/updateissuedcarderror.rbi +4 -6
- data/lib/moov/models/errors/updatepaymentlinkerror.rb +6 -6
- data/lib/moov/models/errors/updatepaymentlinkerror.rbi +2 -2
- data/lib/moov/models/errors.rb +1 -0
- data/lib/moov/models/operations/disablecapability_request.rb +1 -7
- data/lib/moov/models/operations/getcapability_request.rb +1 -7
- data/lib/moov/models/operations/{listcancellations_response.rb → getcardmetadata_response.rb} +6 -6
- data/lib/moov/models/operations/{listcancellations_response.rbi → getcardmetadata_response.rbi} +4 -4
- data/lib/moov/models/operations/linkbankaccount_request.rb +1 -1
- data/lib/moov/models/operations/listaccounts_request.rb +1 -1
- 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 +2 -2
- data/lib/moov/models/operations/listissuedcardtransactions_request.rb +3 -7
- data/lib/moov/models/operations/listissuedcardtransactions_request.rbi +0 -2
- 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/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 +3 -11
- data/lib/moov/models/operations/listtransfers_request.rbi +0 -4
- 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 +1 -2
- data/lib/moov/onboarding.rb +16 -16
- data/lib/moov/payment_links.rb +24 -24
- data/lib/moov/payment_methods.rb +8 -8
- data/lib/moov/ping.rb +4 -4
- data/lib/moov/products.rb +20 -20
- data/lib/moov/receipts.rb +8 -8
- data/lib/moov/representatives.rb +20 -20
- data/lib/moov/resolution_links.rb +16 -16
- data/lib/moov/scheduling.rb +24 -24
- data/lib/moov/sdkconfiguration.rb +4 -4
- data/lib/moov/statements.rb +8 -8
- data/lib/moov/support.rb +20 -20
- data/lib/moov/sweeps.rb +24 -24
- data/lib/moov/terminal_applications.rb +20 -20
- data/lib/moov/transfer_config.rb +12 -12
- data/lib/moov/transfers.rb +51 -180
- data/lib/moov/underwriting.rb +12 -12
- data/lib/moov/utils/retries.rb +1 -43
- data/lib/moov/utils/utils.rb +2 -6
- data/lib/moov/wallet_transactions.rb +8 -8
- data/lib/moov/wallets.rb +16 -16
- data/lib/moov/webhooks.rb +32 -32
- metadata +40 -38
- data/lib/moov/models/components/billingaddress.rb +0 -52
- data/lib/moov/models/components/billingaddress.rbi +0 -23
- data/lib/moov/models/components/billingadjustment.rb +0 -40
- data/lib/moov/models/components/billingadjustment.rbi +0 -17
- data/lib/moov/models/components/billingsummary_adjustmentfees.rb +0 -40
- data/lib/moov/models/components/billingsummary_adjustmentfees.rbi +0 -15
- data/lib/moov/models/components/pushdeliveryspeed.rb +0 -21
- data/lib/moov/models/components/pushdeliveryspeed.rbi +0 -11
- data/lib/moov/models/components/pushoptions.rb +0 -39
- data/lib/moov/models/components/pushoptions.rbi +0 -15
- data/lib/moov/models/components/pushoptionserror.rb +0 -36
- data/lib/moov/models/components/pushoptionserror.rbi +0 -15
- data/lib/moov/models/components/pushoptionsupdate.rb +0 -39
- data/lib/moov/models/components/pushoptionsupdate.rbi +0 -15
- data/lib/moov/models/components/rtpfailurecode.rb +0 -29
- data/lib/moov/models/components/rtpfailurecode.rbi +0 -11
- data/lib/moov/models/components/rtptransactiondetails.rb +0 -58
- data/lib/moov/models/components/rtptransactiondetails.rbi +0 -25
- data/lib/moov/models/components/rtptransactionstatus.rb +0 -23
- data/lib/moov/models/components/rtptransactionstatus.rbi +0 -11
- data/lib/moov/models/components/transfercapture.rb +0 -36
- data/lib/moov/models/components/transfercapture.rbi +0 -15
- data/lib/moov/models/components/transfercontrols.rb +0 -48
- data/lib/moov/models/components/transfercontrols.rbi +0 -21
- data/lib/moov/models/components/webhookdataauthorizationexpiring.rb +0 -44
- data/lib/moov/models/components/webhookdataauthorizationexpiring.rbi +0 -19
- data/lib/moov/models/components/webhookdataeventtest.rbi +0 -13
- data/lib/moov/models/operations/listcancellations_request.rb +0 -36
- data/lib/moov/models/operations/listcancellations_request.rbi +0 -15
data/lib/moov/utils/retries.rb
CHANGED
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
# frozen_string_literal: true
|
|
5
5
|
|
|
6
6
|
require 'faraday/retry'
|
|
7
|
-
require 'time'
|
|
8
7
|
require 'sorbet-runtime'
|
|
9
8
|
|
|
10
9
|
module Moov
|
|
@@ -81,57 +80,16 @@ module Moov
|
|
|
81
80
|
if @strategy == 'backoff' && @backoff
|
|
82
81
|
retry_options[:backoff_factor] = @backoff.exponent unless @backoff.exponent.nil?
|
|
83
82
|
retry_options[:interval] = (@backoff.initial_interval.to_f / 1000) unless @backoff.initial_interval.nil?
|
|
84
|
-
retry_options[:max_interval] =
|
|
83
|
+
retry_options[:max_interval] = @backoff.max_interval unless @backoff.max_interval.nil?
|
|
85
84
|
|
|
86
85
|
unless @backoff.max_elapsed_time.nil?
|
|
87
86
|
stop_time = initial_time + (@backoff.max_elapsed_time.to_f / 1000)
|
|
88
87
|
retry_options[:retry_if] = ->(_env, _exc) { Time.now < stop_time }
|
|
89
88
|
end
|
|
90
|
-
|
|
91
89
|
end
|
|
92
90
|
|
|
93
91
|
retry_options
|
|
94
92
|
end
|
|
95
93
|
end
|
|
96
|
-
|
|
97
|
-
class RetryMiddleware < Faraday::Retry::Middleware
|
|
98
|
-
extend T::Sig
|
|
99
|
-
|
|
100
|
-
sig { params(retries: T.untyped, env: T.untyped).returns(T.untyped) }
|
|
101
|
-
def calculate_sleep_amount(retries, env)
|
|
102
|
-
retry_after = [calculate_retry_after(env), calculate_rate_limit_reset(env)].compact.max
|
|
103
|
-
retry_interval = calculate_retry_interval(retries)
|
|
104
|
-
return retry_interval if retry_after.nil?
|
|
105
|
-
|
|
106
|
-
# unlike the stock middleware, cap server delays at max_interval rather
|
|
107
|
-
# than abandoning the retry
|
|
108
|
-
[[retry_after, @options.max_interval].min, retry_interval].max
|
|
109
|
-
end
|
|
110
|
-
|
|
111
|
-
private
|
|
112
|
-
|
|
113
|
-
sig { params(env: T.untyped).returns(T.untyped) }
|
|
114
|
-
def calculate_retry_after(env)
|
|
115
|
-
response_headers = env[:response_headers]
|
|
116
|
-
return unless response_headers
|
|
117
|
-
|
|
118
|
-
ms_value = response_headers['retry-after-ms']
|
|
119
|
-
return ms_value.to_f / 1000 if ms_value&.match?(/\A\s*\d+\s*\z/)
|
|
120
|
-
|
|
121
|
-
value = response_headers['retry-after']
|
|
122
|
-
return if value.nil? || value.strip.empty?
|
|
123
|
-
return value.to_f if value.match?(/\A\s*\d+\s*\z/)
|
|
124
|
-
|
|
125
|
-
begin
|
|
126
|
-
Time.httpdate(value) - Time.now
|
|
127
|
-
rescue ArgumentError
|
|
128
|
-
begin
|
|
129
|
-
Time.iso8601(value) - Time.now
|
|
130
|
-
rescue ArgumentError
|
|
131
|
-
nil
|
|
132
|
-
end
|
|
133
|
-
end
|
|
134
|
-
end
|
|
135
|
-
end
|
|
136
94
|
end
|
|
137
95
|
end
|
data/lib/moov/utils/utils.rb
CHANGED
|
@@ -81,15 +81,11 @@ module Moov
|
|
|
81
81
|
|
|
82
82
|
sig { params(content_type: String, pattern: String).returns(T::Boolean) }
|
|
83
83
|
def self.match_content_type(content_type, pattern)
|
|
84
|
-
return true if ['*', '*/*'].include?(pattern)
|
|
85
|
-
|
|
86
|
-
# Media types are case-insensitive (RFC 9110 section 8.3.1).
|
|
87
|
-
pattern = pattern.strip.downcase
|
|
88
|
-
return true if content_type.strip.downcase == pattern
|
|
84
|
+
return true if content_type == pattern || ['*', '*/*'].include?(pattern)
|
|
89
85
|
|
|
90
86
|
pieces = content_type.split(';')
|
|
91
87
|
pieces.each do |piece|
|
|
92
|
-
return true if pattern == piece.strip
|
|
88
|
+
return true if pattern == piece.strip
|
|
93
89
|
end
|
|
94
90
|
|
|
95
91
|
false
|
|
@@ -67,7 +67,7 @@ module Moov
|
|
|
67
67
|
|
|
68
68
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
69
69
|
timeout ||= @sdk_configuration.timeout
|
|
70
|
-
|
|
70
|
+
|
|
71
71
|
|
|
72
72
|
connection = @sdk_configuration.client
|
|
73
73
|
|
|
@@ -82,7 +82,7 @@ module Moov
|
|
|
82
82
|
error = T.let(nil, T.nilable(StandardError))
|
|
83
83
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
84
84
|
|
|
85
|
-
|
|
85
|
+
|
|
86
86
|
begin
|
|
87
87
|
http_response = T.must(connection).get(url) do |req|
|
|
88
88
|
req.headers.merge!(headers)
|
|
@@ -119,13 +119,13 @@ module Moov
|
|
|
119
119
|
response: http_response
|
|
120
120
|
)
|
|
121
121
|
end
|
|
122
|
-
|
|
122
|
+
|
|
123
123
|
if http_response.nil?
|
|
124
124
|
raise error if !error.nil?
|
|
125
125
|
raise 'no response'
|
|
126
126
|
end
|
|
127
127
|
end
|
|
128
|
-
|
|
128
|
+
|
|
129
129
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
130
130
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
131
131
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -209,7 +209,7 @@ module Moov
|
|
|
209
209
|
|
|
210
210
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
211
211
|
timeout ||= @sdk_configuration.timeout
|
|
212
|
-
|
|
212
|
+
|
|
213
213
|
|
|
214
214
|
connection = @sdk_configuration.client
|
|
215
215
|
|
|
@@ -224,7 +224,7 @@ module Moov
|
|
|
224
224
|
error = T.let(nil, T.nilable(StandardError))
|
|
225
225
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
226
226
|
|
|
227
|
-
|
|
227
|
+
|
|
228
228
|
begin
|
|
229
229
|
http_response = T.must(connection).get(url) do |req|
|
|
230
230
|
req.headers.merge!(headers)
|
|
@@ -260,13 +260,13 @@ module Moov
|
|
|
260
260
|
response: http_response
|
|
261
261
|
)
|
|
262
262
|
end
|
|
263
|
-
|
|
263
|
+
|
|
264
264
|
if http_response.nil?
|
|
265
265
|
raise error if !error.nil?
|
|
266
266
|
raise 'no response'
|
|
267
267
|
end
|
|
268
268
|
end
|
|
269
|
-
|
|
269
|
+
|
|
270
270
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
271
271
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
272
272
|
if Utils.match_content_type(content_type, 'application/json')
|
data/lib/moov/wallets.rb
CHANGED
|
@@ -81,7 +81,7 @@ module Moov
|
|
|
81
81
|
|
|
82
82
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
83
83
|
timeout ||= @sdk_configuration.timeout
|
|
84
|
-
|
|
84
|
+
|
|
85
85
|
|
|
86
86
|
connection = @sdk_configuration.client
|
|
87
87
|
|
|
@@ -96,7 +96,7 @@ module Moov
|
|
|
96
96
|
error = T.let(nil, T.nilable(StandardError))
|
|
97
97
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
98
98
|
|
|
99
|
-
|
|
99
|
+
|
|
100
100
|
begin
|
|
101
101
|
http_response = T.must(connection).post(url) do |req|
|
|
102
102
|
req.body = body
|
|
@@ -133,13 +133,13 @@ module Moov
|
|
|
133
133
|
response: http_response
|
|
134
134
|
)
|
|
135
135
|
end
|
|
136
|
-
|
|
136
|
+
|
|
137
137
|
if http_response.nil?
|
|
138
138
|
raise error if !error.nil?
|
|
139
139
|
raise 'no response'
|
|
140
140
|
end
|
|
141
141
|
end
|
|
142
|
-
|
|
142
|
+
|
|
143
143
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
144
144
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
145
145
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -234,7 +234,7 @@ module Moov
|
|
|
234
234
|
|
|
235
235
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
236
236
|
timeout ||= @sdk_configuration.timeout
|
|
237
|
-
|
|
237
|
+
|
|
238
238
|
|
|
239
239
|
connection = @sdk_configuration.client
|
|
240
240
|
|
|
@@ -249,7 +249,7 @@ module Moov
|
|
|
249
249
|
error = T.let(nil, T.nilable(StandardError))
|
|
250
250
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
251
251
|
|
|
252
|
-
|
|
252
|
+
|
|
253
253
|
begin
|
|
254
254
|
http_response = T.must(connection).get(url) do |req|
|
|
255
255
|
req.headers.merge!(headers)
|
|
@@ -286,13 +286,13 @@ module Moov
|
|
|
286
286
|
response: http_response
|
|
287
287
|
)
|
|
288
288
|
end
|
|
289
|
-
|
|
289
|
+
|
|
290
290
|
if http_response.nil?
|
|
291
291
|
raise error if !error.nil?
|
|
292
292
|
raise 'no response'
|
|
293
293
|
end
|
|
294
294
|
end
|
|
295
|
-
|
|
295
|
+
|
|
296
296
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
297
297
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
298
298
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -375,7 +375,7 @@ module Moov
|
|
|
375
375
|
|
|
376
376
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
377
377
|
timeout ||= @sdk_configuration.timeout
|
|
378
|
-
|
|
378
|
+
|
|
379
379
|
|
|
380
380
|
connection = @sdk_configuration.client
|
|
381
381
|
|
|
@@ -390,7 +390,7 @@ module Moov
|
|
|
390
390
|
error = T.let(nil, T.nilable(StandardError))
|
|
391
391
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
392
392
|
|
|
393
|
-
|
|
393
|
+
|
|
394
394
|
begin
|
|
395
395
|
http_response = T.must(connection).get(url) do |req|
|
|
396
396
|
req.headers.merge!(headers)
|
|
@@ -426,13 +426,13 @@ module Moov
|
|
|
426
426
|
response: http_response
|
|
427
427
|
)
|
|
428
428
|
end
|
|
429
|
-
|
|
429
|
+
|
|
430
430
|
if http_response.nil?
|
|
431
431
|
raise error if !error.nil?
|
|
432
432
|
raise 'no response'
|
|
433
433
|
end
|
|
434
434
|
end
|
|
435
|
-
|
|
435
|
+
|
|
436
436
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
437
437
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
438
438
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -512,7 +512,7 @@ module Moov
|
|
|
512
512
|
|
|
513
513
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
514
514
|
timeout ||= @sdk_configuration.timeout
|
|
515
|
-
|
|
515
|
+
|
|
516
516
|
|
|
517
517
|
connection = @sdk_configuration.client
|
|
518
518
|
|
|
@@ -527,7 +527,7 @@ module Moov
|
|
|
527
527
|
error = T.let(nil, T.nilable(StandardError))
|
|
528
528
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
529
529
|
|
|
530
|
-
|
|
530
|
+
|
|
531
531
|
begin
|
|
532
532
|
http_response = T.must(connection).patch(url) do |req|
|
|
533
533
|
req.body = body
|
|
@@ -564,13 +564,13 @@ module Moov
|
|
|
564
564
|
response: http_response
|
|
565
565
|
)
|
|
566
566
|
end
|
|
567
|
-
|
|
567
|
+
|
|
568
568
|
if http_response.nil?
|
|
569
569
|
raise error if !error.nil?
|
|
570
570
|
raise 'no response'
|
|
571
571
|
end
|
|
572
572
|
end
|
|
573
|
-
|
|
573
|
+
|
|
574
574
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
575
575
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
576
576
|
if Utils.match_content_type(content_type, 'application/json')
|
data/lib/moov/webhooks.rb
CHANGED
|
@@ -56,7 +56,7 @@ module Moov
|
|
|
56
56
|
|
|
57
57
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
58
58
|
timeout ||= @sdk_configuration.timeout
|
|
59
|
-
|
|
59
|
+
|
|
60
60
|
|
|
61
61
|
connection = @sdk_configuration.client
|
|
62
62
|
|
|
@@ -71,7 +71,7 @@ module Moov
|
|
|
71
71
|
error = T.let(nil, T.nilable(StandardError))
|
|
72
72
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
73
73
|
|
|
74
|
-
|
|
74
|
+
|
|
75
75
|
begin
|
|
76
76
|
http_response = T.must(connection).get(url) do |req|
|
|
77
77
|
req.headers.merge!(headers)
|
|
@@ -107,13 +107,13 @@ module Moov
|
|
|
107
107
|
response: http_response
|
|
108
108
|
)
|
|
109
109
|
end
|
|
110
|
-
|
|
110
|
+
|
|
111
111
|
if http_response.nil?
|
|
112
112
|
raise error if !error.nil?
|
|
113
113
|
raise 'no response'
|
|
114
114
|
end
|
|
115
115
|
end
|
|
116
|
-
|
|
116
|
+
|
|
117
117
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
118
118
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
119
119
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -167,7 +167,7 @@ module Moov
|
|
|
167
167
|
|
|
168
168
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
169
169
|
timeout ||= @sdk_configuration.timeout
|
|
170
|
-
|
|
170
|
+
|
|
171
171
|
|
|
172
172
|
connection = @sdk_configuration.client
|
|
173
173
|
|
|
@@ -182,7 +182,7 @@ module Moov
|
|
|
182
182
|
error = T.let(nil, T.nilable(StandardError))
|
|
183
183
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
184
184
|
|
|
185
|
-
|
|
185
|
+
|
|
186
186
|
begin
|
|
187
187
|
http_response = T.must(connection).get(url) do |req|
|
|
188
188
|
req.headers.merge!(headers)
|
|
@@ -218,13 +218,13 @@ module Moov
|
|
|
218
218
|
response: http_response
|
|
219
219
|
)
|
|
220
220
|
end
|
|
221
|
-
|
|
221
|
+
|
|
222
222
|
if http_response.nil?
|
|
223
223
|
raise error if !error.nil?
|
|
224
224
|
raise 'no response'
|
|
225
225
|
end
|
|
226
226
|
end
|
|
227
|
-
|
|
227
|
+
|
|
228
228
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
229
229
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
230
230
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -289,7 +289,7 @@ module Moov
|
|
|
289
289
|
|
|
290
290
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
291
291
|
timeout ||= @sdk_configuration.timeout
|
|
292
|
-
|
|
292
|
+
|
|
293
293
|
|
|
294
294
|
connection = @sdk_configuration.client
|
|
295
295
|
|
|
@@ -304,7 +304,7 @@ module Moov
|
|
|
304
304
|
error = T.let(nil, T.nilable(StandardError))
|
|
305
305
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
306
306
|
|
|
307
|
-
|
|
307
|
+
|
|
308
308
|
begin
|
|
309
309
|
http_response = T.must(connection).post(url) do |req|
|
|
310
310
|
req.body = body
|
|
@@ -341,13 +341,13 @@ module Moov
|
|
|
341
341
|
response: http_response
|
|
342
342
|
)
|
|
343
343
|
end
|
|
344
|
-
|
|
344
|
+
|
|
345
345
|
if http_response.nil?
|
|
346
346
|
raise error if !error.nil?
|
|
347
347
|
raise 'no response'
|
|
348
348
|
end
|
|
349
349
|
end
|
|
350
|
-
|
|
350
|
+
|
|
351
351
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
352
352
|
if Utils.match_status_code(http_response.status, ['201'])
|
|
353
353
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -439,7 +439,7 @@ module Moov
|
|
|
439
439
|
|
|
440
440
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
441
441
|
timeout ||= @sdk_configuration.timeout
|
|
442
|
-
|
|
442
|
+
|
|
443
443
|
|
|
444
444
|
connection = @sdk_configuration.client
|
|
445
445
|
|
|
@@ -454,7 +454,7 @@ module Moov
|
|
|
454
454
|
error = T.let(nil, T.nilable(StandardError))
|
|
455
455
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
456
456
|
|
|
457
|
-
|
|
457
|
+
|
|
458
458
|
begin
|
|
459
459
|
http_response = T.must(connection).get(url) do |req|
|
|
460
460
|
req.headers.merge!(headers)
|
|
@@ -490,13 +490,13 @@ module Moov
|
|
|
490
490
|
response: http_response
|
|
491
491
|
)
|
|
492
492
|
end
|
|
493
|
-
|
|
493
|
+
|
|
494
494
|
if http_response.nil?
|
|
495
495
|
raise error if !error.nil?
|
|
496
496
|
raise 'no response'
|
|
497
497
|
end
|
|
498
498
|
end
|
|
499
|
-
|
|
499
|
+
|
|
500
500
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
501
501
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
502
502
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -570,7 +570,7 @@ module Moov
|
|
|
570
570
|
|
|
571
571
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
572
572
|
timeout ||= @sdk_configuration.timeout
|
|
573
|
-
|
|
573
|
+
|
|
574
574
|
|
|
575
575
|
connection = @sdk_configuration.client
|
|
576
576
|
|
|
@@ -585,7 +585,7 @@ module Moov
|
|
|
585
585
|
error = T.let(nil, T.nilable(StandardError))
|
|
586
586
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
587
587
|
|
|
588
|
-
|
|
588
|
+
|
|
589
589
|
begin
|
|
590
590
|
http_response = T.must(connection).put(url) do |req|
|
|
591
591
|
req.body = body
|
|
@@ -622,13 +622,13 @@ module Moov
|
|
|
622
622
|
response: http_response
|
|
623
623
|
)
|
|
624
624
|
end
|
|
625
|
-
|
|
625
|
+
|
|
626
626
|
if http_response.nil?
|
|
627
627
|
raise error if !error.nil?
|
|
628
628
|
raise 'no response'
|
|
629
629
|
end
|
|
630
630
|
end
|
|
631
|
-
|
|
631
|
+
|
|
632
632
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
633
633
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
634
634
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -720,7 +720,7 @@ module Moov
|
|
|
720
720
|
|
|
721
721
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
722
722
|
timeout ||= @sdk_configuration.timeout
|
|
723
|
-
|
|
723
|
+
|
|
724
724
|
|
|
725
725
|
connection = @sdk_configuration.client
|
|
726
726
|
|
|
@@ -735,7 +735,7 @@ module Moov
|
|
|
735
735
|
error = T.let(nil, T.nilable(StandardError))
|
|
736
736
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
737
737
|
|
|
738
|
-
|
|
738
|
+
|
|
739
739
|
begin
|
|
740
740
|
http_response = T.must(connection).delete(url) do |req|
|
|
741
741
|
req.headers.merge!(headers)
|
|
@@ -771,13 +771,13 @@ module Moov
|
|
|
771
771
|
response: http_response
|
|
772
772
|
)
|
|
773
773
|
end
|
|
774
|
-
|
|
774
|
+
|
|
775
775
|
if http_response.nil?
|
|
776
776
|
raise error if !error.nil?
|
|
777
777
|
raise 'no response'
|
|
778
778
|
end
|
|
779
779
|
end
|
|
780
|
-
|
|
780
|
+
|
|
781
781
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
782
782
|
if Utils.match_status_code(http_response.status, ['204'])
|
|
783
783
|
http_response = @sdk_configuration.hooks.after_success(
|
|
@@ -845,7 +845,7 @@ module Moov
|
|
|
845
845
|
|
|
846
846
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
847
847
|
timeout ||= @sdk_configuration.timeout
|
|
848
|
-
|
|
848
|
+
|
|
849
849
|
|
|
850
850
|
connection = @sdk_configuration.client
|
|
851
851
|
|
|
@@ -860,7 +860,7 @@ module Moov
|
|
|
860
860
|
error = T.let(nil, T.nilable(StandardError))
|
|
861
861
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
862
862
|
|
|
863
|
-
|
|
863
|
+
|
|
864
864
|
begin
|
|
865
865
|
http_response = T.must(connection).post(url) do |req|
|
|
866
866
|
req.headers.merge!(headers)
|
|
@@ -896,13 +896,13 @@ module Moov
|
|
|
896
896
|
response: http_response
|
|
897
897
|
)
|
|
898
898
|
end
|
|
899
|
-
|
|
899
|
+
|
|
900
900
|
if http_response.nil?
|
|
901
901
|
raise error if !error.nil?
|
|
902
902
|
raise 'no response'
|
|
903
903
|
end
|
|
904
904
|
end
|
|
905
|
-
|
|
905
|
+
|
|
906
906
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
907
907
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
908
908
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -964,7 +964,7 @@ module Moov
|
|
|
964
964
|
|
|
965
965
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
966
966
|
timeout ||= @sdk_configuration.timeout
|
|
967
|
-
|
|
967
|
+
|
|
968
968
|
|
|
969
969
|
connection = @sdk_configuration.client
|
|
970
970
|
|
|
@@ -979,7 +979,7 @@ module Moov
|
|
|
979
979
|
error = T.let(nil, T.nilable(StandardError))
|
|
980
980
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
981
981
|
|
|
982
|
-
|
|
982
|
+
|
|
983
983
|
begin
|
|
984
984
|
http_response = T.must(connection).get(url) do |req|
|
|
985
985
|
req.headers.merge!(headers)
|
|
@@ -1015,13 +1015,13 @@ module Moov
|
|
|
1015
1015
|
response: http_response
|
|
1016
1016
|
)
|
|
1017
1017
|
end
|
|
1018
|
-
|
|
1018
|
+
|
|
1019
1019
|
if http_response.nil?
|
|
1020
1020
|
raise error if !error.nil?
|
|
1021
1021
|
raise 'no response'
|
|
1022
1022
|
end
|
|
1023
1023
|
end
|
|
1024
|
-
|
|
1024
|
+
|
|
1025
1025
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
1026
1026
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
1027
1027
|
if Utils.match_content_type(content_type, 'application/json')
|