moov_ruby 26.7.9 → 26.7.10
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/moov/account_terminal_applications.rb +25 -25
- data/lib/moov/accounts.rb +70 -70
- data/lib/moov/adjustments.rb +11 -11
- data/lib/moov/apple_pay.rb +38 -38
- data/lib/moov/authentication.rb +18 -18
- data/lib/moov/avatars.rb +17 -17
- data/lib/moov/bank_accounts.rb +58 -58
- data/lib/moov/branding.rb +24 -24
- data/lib/moov/capabilities.rb +25 -25
- data/lib/moov/card_issuing.rb +39 -39
- data/lib/moov/cards.rb +44 -44
- data/lib/moov/client.rb +5 -5
- data/lib/moov/deposit_view.rb +10 -10
- data/lib/moov/disputes.rb +68 -68
- data/lib/moov/end_to_end_encryption.rb +13 -13
- data/lib/moov/enriched_address.rb +6 -6
- data/lib/moov/enriched_profile.rb +6 -6
- data/lib/moov/fee_plans.rb +56 -56
- data/lib/moov/files.rb +20 -20
- data/lib/moov/google_pay.rb +10 -10
- data/lib/moov/images.rb +47 -47
- data/lib/moov/industries.rb +6 -6
- data/lib/moov/institutions.rb +12 -12
- data/lib/moov/invoices.rb +78 -60
- data/lib/moov/issuing_transactions.rb +26 -26
- data/lib/moov/models/components/account.rb +2 -2
- data/lib/moov/models/components/achfees.rb +6 -2
- data/lib/moov/models/components/achfees.rbi +2 -0
- data/lib/moov/models/components/allowedscheduleerror.rb +2 -2
- data/lib/moov/models/components/billablefee.rb +2 -2
- data/lib/moov/models/components/createaccount.rb +2 -2
- data/lib/moov/models/components/createdtransfer.rb +2 -2
- data/lib/moov/models/components/createinvoicelineitemsvalidationerror.rb +2 -2
- data/lib/moov/models/components/createinvoicelineitemvalidationerror.rb +2 -2
- data/lib/moov/models/components/createpaymentlinklineitemsvalidationerror.rb +2 -2
- data/lib/moov/models/components/createpaymentlinklineitemvalidationerror.rb +2 -2
- data/lib/moov/models/components/createreversal.rb +1 -1
- data/lib/moov/models/components/createtransfer.rb +3 -3
- data/lib/moov/models/components/createtransferachaddendarecord.rb +1 -1
- data/lib/moov/models/components/createtransferlineitemsvalidationerror.rb +2 -2
- data/lib/moov/models/components/createtransferlineitemvalidationerror.rb +2 -2
- data/lib/moov/models/components/createtransfersource.rb +1 -1
- data/lib/moov/models/components/createwallet.rb +2 -2
- data/lib/moov/models/components/fullissuedcard.rb +2 -2
- data/lib/moov/models/components/invoicelineitemsvalidationerror.rb +2 -2
- data/lib/moov/models/components/invoicelineitemvalidationerror.rb +2 -2
- data/lib/moov/models/components/issuedcard.rb +2 -2
- data/lib/moov/models/components/issuingcontrolserror.rb +2 -2
- data/lib/moov/models/components/merchantcategoryrestrictionserror.rb +4 -4
- data/lib/moov/models/components/merchantrestrictionserror.rb +2 -2
- data/lib/moov/models/components/patchaccount.rb +2 -2
- data/lib/moov/models/components/patchtransfer.rb +2 -2
- data/lib/moov/models/components/patchwallet.rb +2 -2
- data/lib/moov/models/components/paymentlinkcustomamountpaymentdetails.rb +2 -2
- data/lib/moov/models/components/paymentlinkcustomamountpaymentdetailsupdate.rb +2 -2
- data/lib/moov/models/components/paymentlinkcustomeroptions.rb +2 -2
- data/lib/moov/models/components/paymentlinkpaymentdetails.rb +2 -2
- data/lib/moov/models/components/paymentlinkpaymentdetailsupdate.rb +2 -2
- data/lib/moov/models/components/paymentlinkpayoutdetails.rb +3 -3
- data/lib/moov/models/components/paymentlinkpayoutdetailsupdate.rb +3 -3
- data/lib/moov/models/components/pingresponse.rb +2 -2
- data/lib/moov/models/components/productoptiongroupvalidationerror.rb +2 -2
- data/lib/moov/models/components/productoptionvalidationerror.rb +2 -2
- data/lib/moov/models/components/requestcard.rb +2 -2
- data/lib/moov/models/components/transfer.rb +2 -2
- data/lib/moov/models/components/updateissuedcard.rb +2 -2
- data/lib/moov/models/components/updateissuingcontrolserror.rb +2 -2
- data/lib/moov/models/components/wallet.rb +2 -2
- data/lib/moov/models/errors/accountterminalapplicationerror.rb +1 -1
- data/lib/moov/models/errors/addcapabilitieserror.rb +3 -3
- data/lib/moov/models/errors/apierror.rb +1 -1
- data/lib/moov/models/errors/assigncountrieserror.rb +3 -3
- data/lib/moov/models/errors/authtokenrequesterror.rb +1 -1
- data/lib/moov/models/errors/bankaccountvalidationerror.rb +1 -1
- data/lib/moov/models/errors/brandvalidationerror.rb +1 -1
- data/lib/moov/models/errors/cardacquiringrefund_error.rb +1 -1
- data/lib/moov/models/errors/cardmetadatarequesterror.rb +1 -1
- data/lib/moov/models/errors/connectaccountrequestvalidationerror.rb +3 -3
- data/lib/moov/models/errors/createaccounterror.rb +3 -3
- data/lib/moov/models/errors/createinvoiceerror.rb +1 -1
- data/lib/moov/models/errors/createinvoicepaymenterror.rb +1 -1
- data/lib/moov/models/errors/createpaymentlinkerror.rb +1 -1
- data/lib/moov/models/errors/createresolutionlinkerror.rb +1 -1
- data/lib/moov/models/errors/createsweepconfigerror.rb +1 -1
- data/lib/moov/models/errors/createticketerror.rb +1 -1
- data/lib/moov/models/errors/createwalletvalidationerror.rb +1 -1
- data/lib/moov/models/errors/createwebhookvalidationerror.rb +1 -1
- data/lib/moov/models/errors/depositaccountvalidationerror.rb +1 -1
- data/lib/moov/models/errors/duplicatecarderror.rb +1 -1
- data/lib/moov/models/errors/feeplanagreementerror.rb +1 -1
- data/lib/moov/models/errors/fileuploadvalidationerror.rb +1 -1
- data/lib/moov/models/errors/filevalidationerror.rb +1 -1
- data/lib/moov/models/errors/genericerror.rb +1 -1
- data/lib/moov/models/errors/imagemetadatavalidationerror.rb +1 -1
- data/lib/moov/models/errors/imagerequestvalidationerror.rb +1 -1
- data/lib/moov/models/errors/invoicenotificationerror.rb +1 -1
- data/lib/moov/models/errors/invoicenotificationratelimitederror.rb +1 -1
- data/lib/moov/models/errors/linkapplepayerror.rb +1 -1
- data/lib/moov/models/errors/linkcarderror.rb +1 -1
- data/lib/moov/models/errors/linkgooglepayerror.rb +1 -1
- data/lib/moov/models/errors/listinvoicesvalidationerror.rb +1 -1
- data/lib/moov/models/errors/listtransfersvalidationerror.rb +1 -1
- data/lib/moov/models/errors/listwalletsvalidationerror.rb +1 -1
- data/lib/moov/models/errors/listwallettransactionsvalidationerror.rb +1 -1
- data/lib/moov/models/errors/microdepositvalidationerror.rb +1 -1
- data/lib/moov/models/errors/onboardinginviteerror.rb +5 -5
- data/lib/moov/models/errors/patchaccounterror.rb +1 -1
- data/lib/moov/models/errors/patchsweepconfigerror.rb +1 -1
- data/lib/moov/models/errors/patchtransfervalidationerror.rb +1 -1
- data/lib/moov/models/errors/patchwalletvalidationerror.rb +1 -1
- data/lib/moov/models/errors/productrequestvalidationerror.rb +4 -4
- data/lib/moov/models/errors/refundvalidationerror.rb +1 -1
- data/lib/moov/models/errors/representativevalidationerror.rb +1 -1
- data/lib/moov/models/errors/requestcarderror.rb +1 -1
- data/lib/moov/models/errors/reversalvalidationerror.rb +1 -1
- data/lib/moov/models/errors/revoketokenrequesterror.rb +1 -1
- data/lib/moov/models/errors/schedulevalidationerror.rb +3 -3
- data/lib/moov/models/errors/terminalapplicationerror.rb +1 -1
- data/lib/moov/models/errors/transfer_error.rb +3 -3
- data/lib/moov/models/errors/transferconfigvalidationerror.rb +4 -4
- data/lib/moov/models/errors/transferoptionsvalidationerror.rb +1 -1
- data/lib/moov/models/errors/transfervalidationerror.rb +1 -1
- data/lib/moov/models/errors/updatecarderror.rb +1 -1
- data/lib/moov/models/errors/updateinvoiceerror.rb +1 -1
- data/lib/moov/models/errors/updateissuedcarderror.rb +1 -1
- data/lib/moov/models/errors/updatepaymentlinkerror.rb +1 -1
- data/lib/moov/models/errors/updateticketerror.rb +1 -1
- data/lib/moov/models/errors/updateunderwritingerror.rb +1 -1
- data/lib/moov/models/errors/updatewebhookvalidationerror.rb +1 -1
- data/lib/moov/models/errors/upsertunderwritingerror.rb +1 -1
- data/lib/moov/models/operations/acceptdispute_response.rb +2 -2
- data/lib/moov/models/operations/assignaccountcountries_response.rb +2 -2
- data/lib/moov/models/operations/batchgettransfers_response.rb +3 -3
- data/lib/moov/models/operations/cancelschedule_response.rb +2 -2
- data/lib/moov/models/operations/completebankaccountverification_response.rb +2 -2
- data/lib/moov/models/operations/completemicrodeposits_response.rb +2 -2
- data/lib/moov/models/operations/connectaccount_response.rb +2 -2
- data/lib/moov/models/operations/createaccesstoken_response.rb +2 -2
- data/lib/moov/models/operations/createaccount_response.rb +2 -2
- data/lib/moov/models/operations/createapplepaysession_response.rb +2 -2
- data/lib/moov/models/operations/createbrand_response.rb +2 -2
- data/lib/moov/models/operations/createcancellation_response.rb +2 -2
- data/lib/moov/models/operations/createdepositaccount_response.rb +2 -2
- data/lib/moov/models/operations/createfeeplanagreements_response.rb +2 -2
- data/lib/moov/models/operations/createinvoice_response.rb +2 -2
- data/lib/moov/models/operations/createinvoicenotification_response.rb +2 -2
- data/lib/moov/models/operations/createinvoicepayment_response.rb +2 -2
- data/lib/moov/models/operations/createonboardinginvite_response.rb +2 -2
- data/lib/moov/models/operations/createpaymentlink_response.rb +2 -2
- data/lib/moov/models/operations/createproduct_response.rb +2 -2
- data/lib/moov/models/operations/createreceipts_response.rb +2 -2
- data/lib/moov/models/operations/createrepresentative_response.rb +2 -2
- data/lib/moov/models/operations/createresolutionlink_response.rb +2 -2
- data/lib/moov/models/operations/createreversal_response.rb +2 -2
- data/lib/moov/models/operations/createschedule_response.rb +2 -2
- data/lib/moov/models/operations/createsweepconfig_response.rb +2 -2
- data/lib/moov/models/operations/createterminalapplication_response.rb +2 -2
- data/lib/moov/models/operations/createterminalapplicationversion_response.rb +2 -2
- data/lib/moov/models/operations/createticket_response.rb +2 -2
- data/lib/moov/models/operations/createtransfer_response.rb +2 -2
- data/lib/moov/models/operations/createtransferconfig_response.rb +2 -2
- data/lib/moov/models/operations/createtransferoptions_response.rb +2 -2
- data/lib/moov/models/operations/createwallet_response.rb +2 -2
- data/lib/moov/models/operations/createwebhook_response.rb +2 -2
- data/lib/moov/models/operations/deleteavatar_response.rb +2 -2
- data/lib/moov/models/operations/deletedisputeevidencefile_response.rb +2 -2
- data/lib/moov/models/operations/deleteimage_response.rb +2 -2
- data/lib/moov/models/operations/deleteinvoice_response.rb +2 -2
- data/lib/moov/models/operations/deleterepresentative_response.rb +2 -2
- data/lib/moov/models/operations/deleteterminalapplication_response.rb +2 -2
- data/lib/moov/models/operations/disablebankaccount_response.rb +2 -2
- data/lib/moov/models/operations/disablecapability_response.rb +2 -2
- data/lib/moov/models/operations/disablecard_response.rb +2 -2
- data/lib/moov/models/operations/disablepaymentlink_response.rb +2 -2
- data/lib/moov/models/operations/disableproduct_response.rb +2 -2
- data/lib/moov/models/operations/disableresolutionlink_response.rb +2 -2
- data/lib/moov/models/operations/disablewebhook_response.rb +2 -2
- data/lib/moov/models/operations/disconnectaccount_response.rb +2 -2
- data/lib/moov/models/operations/generateendtoendkey_response.rb +2 -2
- data/lib/moov/models/operations/getaccount_response.rb +2 -2
- data/lib/moov/models/operations/getaccountcountries_response.rb +2 -2
- data/lib/moov/models/operations/getaccountterminalapplication_response.rb +2 -2
- data/lib/moov/models/operations/getadjustment_response.rb +2 -2
- data/lib/moov/models/operations/getapplepaymerchantdomains_response.rb +2 -2
- data/lib/moov/models/operations/getavatar_response.rb +2 -2
- data/lib/moov/models/operations/getbankaccount_response.rb +2 -2
- data/lib/moov/models/operations/getbankaccountverification_response.rb +2 -2
- data/lib/moov/models/operations/getbrand_response.rb +2 -2
- data/lib/moov/models/operations/getcancellation_response.rb +2 -2
- data/lib/moov/models/operations/getcapability_response.rb +2 -2
- data/lib/moov/models/operations/getcard_response.rb +2 -2
- data/lib/moov/models/operations/getcardmetadata_response.rb +2 -2
- data/lib/moov/models/operations/getdispute_response.rb +2 -2
- data/lib/moov/models/operations/getdisputeevidence_response.rb +2 -2
- data/lib/moov/models/operations/getdisputeevidencedata_response.rb +2 -2
- data/lib/moov/models/operations/getenrichmentaddress_response.rb +2 -2
- data/lib/moov/models/operations/getenrichmentprofile_response.rb +2 -2
- data/lib/moov/models/operations/getfiledetails_response.rb +2 -2
- data/lib/moov/models/operations/getfullissuedcard_response.rb +2 -2
- data/lib/moov/models/operations/getimagemetadata_response.rb +2 -2
- data/lib/moov/models/operations/getinvoice_response.rb +8 -4
- data/lib/moov/models/operations/getinvoice_response.rbi +2 -0
- data/lib/moov/models/operations/getissuedcard_response.rb +2 -2
- data/lib/moov/models/operations/getissuedcardauthorization_response.rb +2 -2
- data/lib/moov/models/operations/getissuedcardtransaction_response.rb +2 -2
- data/lib/moov/models/operations/getmerchantprocessingagreement_response.rb +2 -2
- data/lib/moov/models/operations/getonboardinginvite_response.rb +2 -2
- data/lib/moov/models/operations/getpaymentlink_response.rb +2 -2
- data/lib/moov/models/operations/getpaymentlinkqrcode_response.rb +2 -2
- data/lib/moov/models/operations/getpaymentmethod_response.rb +2 -2
- data/lib/moov/models/operations/getproduct_response.rb +2 -2
- data/lib/moov/models/operations/getpublicimage_response.rb +2 -2
- data/lib/moov/models/operations/getrefund_response.rb +2 -2
- data/lib/moov/models/operations/getrepresentative_response.rb +2 -2
- data/lib/moov/models/operations/getresidual_response.rb +2 -2
- data/lib/moov/models/operations/getresolutionlink_response.rb +2 -2
- data/lib/moov/models/operations/getscheduledoccurrence_response.rb +2 -2
- data/lib/moov/models/operations/getschedules_response.rb +2 -2
- data/lib/moov/models/operations/getstatement_response.rb +2 -2
- data/lib/moov/models/operations/getsweep_response.rb +2 -2
- data/lib/moov/models/operations/getsweepconfig_response.rb +2 -2
- data/lib/moov/models/operations/getterminalapplication_response.rb +2 -2
- data/lib/moov/models/operations/getterminalconfiguration_response.rb +2 -2
- data/lib/moov/models/operations/gettermsofservicetoken_response.rb +2 -2
- data/lib/moov/models/operations/getticket_response.rb +2 -2
- data/lib/moov/models/operations/gettransfer_response.rb +2 -2
- data/lib/moov/models/operations/gettransferconfig_response.rb +2 -2
- data/lib/moov/models/operations/getunderwriting_response.rb +2 -2
- data/lib/moov/models/operations/getwallet_response.rb +2 -2
- data/lib/moov/models/operations/getwallettransaction_response.rb +2 -2
- data/lib/moov/models/operations/getwebhook_response.rb +2 -2
- data/lib/moov/models/operations/getwebhooksecret_response.rb +2 -2
- data/lib/moov/models/operations/initiatebankaccountverification_response.rb +2 -2
- data/lib/moov/models/operations/initiatemicrodeposits_response.rb +2 -2
- data/lib/moov/models/operations/initiaterefund_response.rb +2 -2
- data/lib/moov/models/operations/linkaccountterminalapplication_response.rb +2 -2
- data/lib/moov/models/operations/linkapplepaytoken_response.rb +2 -2
- data/lib/moov/models/operations/linkbankaccount_response.rb +2 -2
- data/lib/moov/models/operations/linkcard_response.rb +2 -2
- data/lib/moov/models/operations/linkgooglepaytoken_response.rb +2 -2
- data/lib/moov/models/operations/listaccounts_response.rb +2 -2
- data/lib/moov/models/operations/listaccountterminalapplications_response.rb +2 -2
- data/lib/moov/models/operations/listadjustments_response.rb +2 -2
- data/lib/moov/models/operations/listbankaccounts_response.rb +2 -2
- data/lib/moov/models/operations/listcancellations_response.rb +2 -2
- data/lib/moov/models/operations/listcapabilities_response.rb +2 -2
- data/lib/moov/models/operations/listcards_response.rb +2 -2
- data/lib/moov/models/operations/listconnectedaccountsforaccount_response.rb +2 -2
- data/lib/moov/models/operations/listdisputeevidence_response.rb +2 -2
- data/lib/moov/models/operations/listdisputes_response.rb +2 -2
- data/lib/moov/models/operations/listeventtypes_response.rb +2 -2
- data/lib/moov/models/operations/listfeeplanagreements_response.rb +2 -2
- data/lib/moov/models/operations/listfeeplans_response.rb +2 -2
- data/lib/moov/models/operations/listfeerevenue_response.rb +2 -2
- data/lib/moov/models/operations/listfeesfetch_response.rb +2 -2
- data/lib/moov/models/operations/listfiles_response.rb +2 -2
- data/lib/moov/models/operations/listimagemetadata_response.rb +2 -2
- data/lib/moov/models/operations/listindustries_response.rb +2 -2
- data/lib/moov/models/operations/listinstitutions_response.rb +2 -2
- data/lib/moov/models/operations/listinvoicepayments_response.rb +2 -2
- data/lib/moov/models/operations/listinvoices_response.rb +2 -2
- data/lib/moov/models/operations/listissuedcardauthorizationevents_response.rb +2 -2
- data/lib/moov/models/operations/listissuedcardauthorizations_response.rb +2 -2
- data/lib/moov/models/operations/listissuedcards_response.rb +2 -2
- data/lib/moov/models/operations/listissuedcardtransactions_response.rb +2 -2
- data/lib/moov/models/operations/listissuingmerchantcategories_response.rb +2 -2
- data/lib/moov/models/operations/listonboardinginvites_response.rb +2 -2
- data/lib/moov/models/operations/listpartnerpricingagreements_response.rb +2 -2
- data/lib/moov/models/operations/listpaymentlinks_response.rb +2 -2
- data/lib/moov/models/operations/listpaymentmethods_response.rb +2 -2
- data/lib/moov/models/operations/listproductcategories_response.rb +2 -2
- data/lib/moov/models/operations/listproducts_response.rb +2 -2
- data/lib/moov/models/operations/listreceipts_response.rb +2 -2
- data/lib/moov/models/operations/listrefunds_response.rb +2 -2
- data/lib/moov/models/operations/listrepresentatives_response.rb +2 -2
- data/lib/moov/models/operations/listresidualfees_response.rb +2 -2
- data/lib/moov/models/operations/listresiduals_response.rb +2 -2
- data/lib/moov/models/operations/listresolutionlinks_response.rb +2 -2
- data/lib/moov/models/operations/listschedules_response.rb +2 -2
- data/lib/moov/models/operations/liststatements_response.rb +2 -2
- data/lib/moov/models/operations/listsweepconfigs_response.rb +2 -2
- data/lib/moov/models/operations/listsweeps_response.rb +2 -2
- data/lib/moov/models/operations/listterminalapplications_response.rb +2 -2
- data/lib/moov/models/operations/listticketmessages_response.rb +2 -2
- data/lib/moov/models/operations/listtickets_response.rb +2 -2
- data/lib/moov/models/operations/listtransfers_response.rb +2 -2
- data/lib/moov/models/operations/listwallets_response.rb +2 -2
- data/lib/moov/models/operations/listwallettransactions_response.rb +2 -2
- data/lib/moov/models/operations/listwebhooks_response.rb +2 -2
- data/lib/moov/models/operations/ping_response.rb +2 -2
- data/lib/moov/models/operations/pingwebhook_response.rb +2 -2
- data/lib/moov/models/operations/registerapplepaymerchantdomains_response.rb +2 -2
- data/lib/moov/models/operations/requestcapabilities_response.rb +2 -2
- data/lib/moov/models/operations/requestcard_response.rb +2 -2
- data/lib/moov/models/operations/retrievefees_response.rb +2 -2
- data/lib/moov/models/operations/revokeaccesstoken_response.rb +2 -2
- data/lib/moov/models/operations/revokeonboardinginvite_response.rb +2 -2
- data/lib/moov/models/operations/saveunderwriting_response.rb +2 -2
- data/lib/moov/models/operations/searchinstitutions_response.rb +2 -2
- data/lib/moov/models/operations/submitdisputeevidence_response.rb +2 -2
- data/lib/moov/models/operations/testendtoendtoken_response.rb +2 -2
- data/lib/moov/models/operations/updateaccount_response.rb +2 -2
- data/lib/moov/models/operations/updateapplepaymerchantdomains_response.rb +2 -2
- data/lib/moov/models/operations/updatecard_response.rb +2 -2
- data/lib/moov/models/operations/updatedisputeevidence_response.rb +2 -2
- data/lib/moov/models/operations/updateimage_response.rb +2 -2
- data/lib/moov/models/operations/updateimagemetadata_response.rb +2 -2
- data/lib/moov/models/operations/updateinvoice_response.rb +2 -2
- data/lib/moov/models/operations/updateissuedcard_response.rb +2 -2
- data/lib/moov/models/operations/updatepaymentlink_response.rb +2 -2
- data/lib/moov/models/operations/updateproduct_response.rb +2 -2
- data/lib/moov/models/operations/updaterepresentative_response.rb +2 -2
- data/lib/moov/models/operations/updateschedule_response.rb +2 -2
- data/lib/moov/models/operations/updatesweepconfig_response.rb +2 -2
- data/lib/moov/models/operations/updateticket_response.rb +2 -2
- data/lib/moov/models/operations/updatetransfer_response.rb +2 -2
- data/lib/moov/models/operations/updatetransferconfig_response.rb +2 -2
- data/lib/moov/models/operations/updatewallet_response.rb +2 -2
- data/lib/moov/models/operations/updatewebhook_response.rb +2 -2
- data/lib/moov/models/operations/uploadavatar_response.rb +2 -2
- data/lib/moov/models/operations/uploaddisputeevidencefile_response.rb +2 -2
- data/lib/moov/models/operations/uploaddisputeevidencetext_response.rb +2 -2
- data/lib/moov/models/operations/uploadfile_response.rb +2 -2
- data/lib/moov/models/operations/uploadimage_response.rb +2 -2
- data/lib/moov/models/operations/upsertbrand_response.rb +2 -2
- data/lib/moov/models/operations/upsertunderwriting_response.rb +2 -2
- data/lib/moov/onboarding.rb +24 -24
- data/lib/moov/payment_links.rb +38 -38
- data/lib/moov/payment_methods.rb +11 -11
- data/lib/moov/ping.rb +5 -5
- data/lib/moov/products.rb +39 -39
- data/lib/moov/receipts.rb +14 -14
- data/lib/moov/representatives.rb +33 -33
- data/lib/moov/resolution_links.rb +25 -25
- data/lib/moov/scheduling.rb +39 -39
- data/lib/moov/sdk_hooks/clientcredentials.rb +37 -37
- data/lib/moov/sdk_hooks/hooks.rb +1 -1
- data/lib/moov/sdk_hooks/types.rb +14 -14
- data/lib/moov/sdkconfiguration.rb +17 -17
- data/lib/moov/statements.rb +12 -12
- data/lib/moov/support.rb +34 -34
- data/lib/moov/sweeps.rb +39 -39
- data/lib/moov/terminal_applications.rb +34 -34
- data/lib/moov/transfer_config.rb +24 -24
- data/lib/moov/transfers.rb +92 -92
- data/lib/moov/underwriting.rb +24 -24
- data/lib/moov/utils/forms.rb +23 -23
- data/lib/moov/utils/headers.rb +4 -4
- data/lib/moov/utils/query_params.rb +14 -14
- data/lib/moov/utils/request_bodies.rb +7 -7
- data/lib/moov/utils/retries.rb +5 -5
- data/lib/moov/utils/security.rb +16 -16
- data/lib/moov/utils/url.rb +6 -6
- data/lib/moov/utils/utils.rb +31 -31
- data/lib/moov/wallet_transactions.rb +12 -12
- data/lib/moov/wallets.rb +30 -30
- data/lib/moov/webhooks.rb +49 -49
- metadata +2 -2
data/lib/moov/industries.rb
CHANGED
|
@@ -23,7 +23,7 @@ module Moov
|
|
|
23
23
|
|
|
24
24
|
end
|
|
25
25
|
|
|
26
|
-
sig { params(base_url: String, url_variables: T.nilable(T::Hash[Symbol, T.any(String, T::Enum)])).returns(String) }
|
|
26
|
+
sig { params(base_url: ::String, url_variables: T.nilable(T::Hash[::Symbol, T.any(::String, T::Enum)])).returns(::String) }
|
|
27
27
|
def get_url(base_url:, url_variables: nil)
|
|
28
28
|
sd_base_url, sd_options = @sdk_configuration.get_server_details
|
|
29
29
|
|
|
@@ -41,7 +41,7 @@ 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::ListIndustriesResponse) }
|
|
44
|
+
sig { params(timeout_ms: T.nilable(::Integer), http_headers: T.nilable(T::Hash[T.any(::String, ::Symbol), ::String])).returns(Models::Operations::ListIndustriesResponse) }
|
|
45
45
|
def list(timeout_ms: nil, http_headers: nil)
|
|
46
46
|
# list - Returns a list of industries relevant to merchant profile enrichment. Results are ordered by industry name.
|
|
47
47
|
#
|
|
@@ -51,7 +51,7 @@ module Moov
|
|
|
51
51
|
base_url = Utils.template_url(url, params)
|
|
52
52
|
url = "#{base_url}/industries"
|
|
53
53
|
headers = {}
|
|
54
|
-
headers = T.cast(headers, T::Hash[String, String])
|
|
54
|
+
headers = T.cast(headers, T::Hash[::String, ::String])
|
|
55
55
|
headers['Accept'] = 'application/json'
|
|
56
56
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
57
57
|
|
|
@@ -71,7 +71,7 @@ module Moov
|
|
|
71
71
|
security_source: @sdk_configuration.security_source
|
|
72
72
|
)
|
|
73
73
|
|
|
74
|
-
error = T.let(nil, T.nilable(StandardError))
|
|
74
|
+
error = T.let(nil, T.nilable(::StandardError))
|
|
75
75
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
76
76
|
|
|
77
77
|
|
|
@@ -91,7 +91,7 @@ module Moov
|
|
|
91
91
|
request: req
|
|
92
92
|
)
|
|
93
93
|
end
|
|
94
|
-
rescue StandardError => e
|
|
94
|
+
rescue ::StandardError => e
|
|
95
95
|
error = e
|
|
96
96
|
ensure
|
|
97
97
|
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
@@ -127,7 +127,7 @@ module Moov
|
|
|
127
127
|
response: http_response
|
|
128
128
|
)
|
|
129
129
|
response_data = http_response.env.response_body
|
|
130
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::EnrichedIndustries)
|
|
130
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Components::EnrichedIndustries)
|
|
131
131
|
response = Models::Operations::ListIndustriesResponse.new(
|
|
132
132
|
status_code: http_response.status,
|
|
133
133
|
content_type: content_type,
|
data/lib/moov/institutions.rb
CHANGED
|
@@ -23,7 +23,7 @@ module Moov
|
|
|
23
23
|
|
|
24
24
|
end
|
|
25
25
|
|
|
26
|
-
sig { params(base_url: String, url_variables: T.nilable(T::Hash[Symbol, T.any(String, T::Enum)])).returns(String) }
|
|
26
|
+
sig { params(base_url: ::String, url_variables: T.nilable(T::Hash[::Symbol, T.any(::String, T::Enum)])).returns(::String) }
|
|
27
27
|
def get_url(base_url:, url_variables: nil)
|
|
28
28
|
sd_base_url, sd_options = @sdk_configuration.get_server_details
|
|
29
29
|
|
|
@@ -41,7 +41,7 @@ module Moov
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
sig { params(name: T.nilable(::String), routing_number: T.nilable(::String), limit: T.nilable(::Integer), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::SearchInstitutionsResponse) }
|
|
44
|
+
sig { params(name: T.nilable(::String), routing_number: T.nilable(::String), limit: T.nilable(::Integer), timeout_ms: T.nilable(::Integer), http_headers: T.nilable(T::Hash[T.any(::String, ::Symbol), ::String])).returns(Models::Operations::SearchInstitutionsResponse) }
|
|
45
45
|
def search_institutions(name: nil, routing_number: nil, limit: nil, timeout_ms: nil, http_headers: nil)
|
|
46
46
|
# search_institutions - Search for financial institutions by name or routing number.
|
|
47
47
|
#
|
|
@@ -60,7 +60,7 @@ module Moov
|
|
|
60
60
|
base_url = Utils.template_url(url, params)
|
|
61
61
|
url = "#{base_url}/institutions"
|
|
62
62
|
headers = {}
|
|
63
|
-
headers = T.cast(headers, T::Hash[String, String])
|
|
63
|
+
headers = T.cast(headers, T::Hash[::String, ::String])
|
|
64
64
|
query_params = Utils.get_query_params(Models::Operations::SearchInstitutionsRequest, request, nil)
|
|
65
65
|
headers['Accept'] = 'application/json'
|
|
66
66
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
@@ -81,7 +81,7 @@ module Moov
|
|
|
81
81
|
security_source: @sdk_configuration.security_source
|
|
82
82
|
)
|
|
83
83
|
|
|
84
|
-
error = T.let(nil, T.nilable(StandardError))
|
|
84
|
+
error = T.let(nil, T.nilable(::StandardError))
|
|
85
85
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
86
86
|
|
|
87
87
|
|
|
@@ -102,7 +102,7 @@ module Moov
|
|
|
102
102
|
request: req
|
|
103
103
|
)
|
|
104
104
|
end
|
|
105
|
-
rescue StandardError => e
|
|
105
|
+
rescue ::StandardError => e
|
|
106
106
|
error = e
|
|
107
107
|
ensure
|
|
108
108
|
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
@@ -138,7 +138,7 @@ module Moov
|
|
|
138
138
|
response: http_response
|
|
139
139
|
)
|
|
140
140
|
response_data = http_response.env.response_body
|
|
141
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::InstitutionsSearchResponse)
|
|
141
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Components::InstitutionsSearchResponse)
|
|
142
142
|
response = Models::Operations::SearchInstitutionsResponse.new(
|
|
143
143
|
status_code: http_response.status,
|
|
144
144
|
content_type: content_type,
|
|
@@ -166,7 +166,7 @@ module Moov
|
|
|
166
166
|
end
|
|
167
167
|
|
|
168
168
|
|
|
169
|
-
sig { params(name: T.nilable(::String), routing_number: T.nilable(::String), state: T.nilable(::String), limit: T.nilable(::Integer), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ListInstitutionsResponse) }
|
|
169
|
+
sig { params(name: T.nilable(::String), routing_number: T.nilable(::String), state: T.nilable(::String), limit: T.nilable(::Integer), timeout_ms: T.nilable(::Integer), http_headers: T.nilable(T::Hash[T.any(::String, ::Symbol), ::String])).returns(Models::Operations::ListInstitutionsResponse) }
|
|
170
170
|
def search(name: nil, routing_number: nil, state: nil, limit: nil, timeout_ms: nil, http_headers: nil)
|
|
171
171
|
# search - This endpoint has been deprecated and will be removed in a future release. Use [/institutions](https://docs.moov.io/api/enrichment/institutions/get/).
|
|
172
172
|
#
|
|
@@ -186,7 +186,7 @@ module Moov
|
|
|
186
186
|
base_url = Utils.template_url(url, params)
|
|
187
187
|
url = "#{base_url}/institutions/ach/search"
|
|
188
188
|
headers = {}
|
|
189
|
-
headers = T.cast(headers, T::Hash[String, String])
|
|
189
|
+
headers = T.cast(headers, T::Hash[::String, ::String])
|
|
190
190
|
query_params = Utils.get_query_params(Models::Operations::ListInstitutionsRequest, request, nil)
|
|
191
191
|
headers['Accept'] = 'application/json'
|
|
192
192
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
@@ -207,7 +207,7 @@ module Moov
|
|
|
207
207
|
security_source: @sdk_configuration.security_source
|
|
208
208
|
)
|
|
209
209
|
|
|
210
|
-
error = T.let(nil, T.nilable(StandardError))
|
|
210
|
+
error = T.let(nil, T.nilable(::StandardError))
|
|
211
211
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
212
212
|
|
|
213
213
|
|
|
@@ -228,7 +228,7 @@ module Moov
|
|
|
228
228
|
request: req
|
|
229
229
|
)
|
|
230
230
|
end
|
|
231
|
-
rescue StandardError => e
|
|
231
|
+
rescue ::StandardError => e
|
|
232
232
|
error = e
|
|
233
233
|
ensure
|
|
234
234
|
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
@@ -264,7 +264,7 @@ module Moov
|
|
|
264
264
|
response: http_response
|
|
265
265
|
)
|
|
266
266
|
response_data = http_response.env.response_body
|
|
267
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::FinancialInstitutions)
|
|
267
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Components::FinancialInstitutions)
|
|
268
268
|
response = Models::Operations::ListInstitutionsResponse.new(
|
|
269
269
|
status_code: http_response.status,
|
|
270
270
|
content_type: content_type,
|
|
@@ -286,7 +286,7 @@ module Moov
|
|
|
286
286
|
response: http_response
|
|
287
287
|
)
|
|
288
288
|
response_data = http_response.env.response_body
|
|
289
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::GenericError)
|
|
289
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::GenericError)
|
|
290
290
|
obj.raw_response = http_response
|
|
291
291
|
raise obj
|
|
292
292
|
else
|
data/lib/moov/invoices.rb
CHANGED
|
@@ -23,7 +23,7 @@ module Moov
|
|
|
23
23
|
|
|
24
24
|
end
|
|
25
25
|
|
|
26
|
-
sig { params(base_url: String, url_variables: T.nilable(T::Hash[Symbol, T.any(String, T::Enum)])).returns(String) }
|
|
26
|
+
sig { params(base_url: ::String, url_variables: T.nilable(T::Hash[::Symbol, T.any(::String, T::Enum)])).returns(::String) }
|
|
27
27
|
def get_url(base_url:, url_variables: nil)
|
|
28
28
|
sd_base_url, sd_options = @sdk_configuration.get_server_details
|
|
29
29
|
|
|
@@ -41,7 +41,7 @@ module Moov
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
sig { params(create_invoice: Models::Components::CreateInvoice, account_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::CreateInvoiceResponse) }
|
|
44
|
+
sig { params(create_invoice: Models::Components::CreateInvoice, account_id: ::String, timeout_ms: T.nilable(::Integer), http_headers: T.nilable(T::Hash[T.any(::String, ::Symbol), ::String])).returns(Models::Operations::CreateInvoiceResponse) }
|
|
45
45
|
def create_invoice(create_invoice:, account_id:, timeout_ms: nil, http_headers: nil)
|
|
46
46
|
# create_invoice - Create an invoice for a Moov account.
|
|
47
47
|
#
|
|
@@ -60,15 +60,15 @@ module Moov
|
|
|
60
60
|
request
|
|
61
61
|
)
|
|
62
62
|
headers = {}
|
|
63
|
-
headers = T.cast(headers, T::Hash[String, String])
|
|
63
|
+
headers = T.cast(headers, T::Hash[::String, ::String])
|
|
64
64
|
req_content_type, data, form = Utils.serialize_request_body(request, false, false, :create_invoice, :json)
|
|
65
65
|
headers['content-type'] = req_content_type
|
|
66
|
-
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
66
|
+
raise ::StandardError, 'request body is required' if data.nil? && form.nil?
|
|
67
67
|
|
|
68
68
|
if form && !form.empty?
|
|
69
69
|
body = Utils.encode_form(form)
|
|
70
70
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
71
|
-
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
71
|
+
body = ::URI.encode_www_form(T.cast(data, T::Hash[::Symbol, ::Object]))
|
|
72
72
|
else
|
|
73
73
|
body = data
|
|
74
74
|
end
|
|
@@ -91,7 +91,7 @@ module Moov
|
|
|
91
91
|
security_source: @sdk_configuration.security_source
|
|
92
92
|
)
|
|
93
93
|
|
|
94
|
-
error = T.let(nil, T.nilable(StandardError))
|
|
94
|
+
error = T.let(nil, T.nilable(::StandardError))
|
|
95
95
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
96
96
|
|
|
97
97
|
|
|
@@ -112,7 +112,7 @@ module Moov
|
|
|
112
112
|
request: req
|
|
113
113
|
)
|
|
114
114
|
end
|
|
115
|
-
rescue StandardError => e
|
|
115
|
+
rescue ::StandardError => e
|
|
116
116
|
error = e
|
|
117
117
|
ensure
|
|
118
118
|
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
@@ -148,7 +148,7 @@ module Moov
|
|
|
148
148
|
response: http_response
|
|
149
149
|
)
|
|
150
150
|
response_data = http_response.env.response_body
|
|
151
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::Invoice)
|
|
151
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Components::Invoice)
|
|
152
152
|
response = Models::Operations::CreateInvoiceResponse.new(
|
|
153
153
|
status_code: http_response.status,
|
|
154
154
|
content_type: content_type,
|
|
@@ -170,7 +170,7 @@ module Moov
|
|
|
170
170
|
response: http_response
|
|
171
171
|
)
|
|
172
172
|
response_data = http_response.env.response_body
|
|
173
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::GenericError)
|
|
173
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::GenericError)
|
|
174
174
|
obj.raw_response = http_response
|
|
175
175
|
raise obj
|
|
176
176
|
else
|
|
@@ -185,7 +185,7 @@ module Moov
|
|
|
185
185
|
response: http_response
|
|
186
186
|
)
|
|
187
187
|
response_data = http_response.env.response_body
|
|
188
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::CreateInvoiceError)
|
|
188
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::CreateInvoiceError)
|
|
189
189
|
obj.raw_response = http_response
|
|
190
190
|
raise obj
|
|
191
191
|
else
|
|
@@ -206,7 +206,7 @@ module Moov
|
|
|
206
206
|
end
|
|
207
207
|
|
|
208
208
|
|
|
209
|
-
sig { params(request: Models::Operations::ListInvoicesRequest, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ListInvoicesResponse) }
|
|
209
|
+
sig { params(request: Models::Operations::ListInvoicesRequest, timeout_ms: T.nilable(::Integer), http_headers: T.nilable(T::Hash[T.any(::String, ::Symbol), ::String])).returns(Models::Operations::ListInvoicesResponse) }
|
|
210
210
|
def list_invoices(request:, timeout_ms: nil, http_headers: nil)
|
|
211
211
|
# list_invoices - List all the invoices created under a Moov account.
|
|
212
212
|
#
|
|
@@ -221,7 +221,7 @@ module Moov
|
|
|
221
221
|
request
|
|
222
222
|
)
|
|
223
223
|
headers = {}
|
|
224
|
-
headers = T.cast(headers, T::Hash[String, String])
|
|
224
|
+
headers = T.cast(headers, T::Hash[::String, ::String])
|
|
225
225
|
query_params = Utils.get_query_params(Models::Operations::ListInvoicesRequest, request, nil)
|
|
226
226
|
headers['Accept'] = 'application/json'
|
|
227
227
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
@@ -242,7 +242,7 @@ module Moov
|
|
|
242
242
|
security_source: @sdk_configuration.security_source
|
|
243
243
|
)
|
|
244
244
|
|
|
245
|
-
error = T.let(nil, T.nilable(StandardError))
|
|
245
|
+
error = T.let(nil, T.nilable(::StandardError))
|
|
246
246
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
247
247
|
|
|
248
248
|
|
|
@@ -263,7 +263,7 @@ module Moov
|
|
|
263
263
|
request: req
|
|
264
264
|
)
|
|
265
265
|
end
|
|
266
|
-
rescue StandardError => e
|
|
266
|
+
rescue ::StandardError => e
|
|
267
267
|
error = e
|
|
268
268
|
ensure
|
|
269
269
|
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
@@ -299,7 +299,7 @@ module Moov
|
|
|
299
299
|
response: http_response
|
|
300
300
|
)
|
|
301
301
|
response_data = http_response.env.response_body
|
|
302
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Crystalline::Array.new(Models::Components::Invoice))
|
|
302
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Crystalline::Array.new(Models::Components::Invoice))
|
|
303
303
|
response = Models::Operations::ListInvoicesResponse.new(
|
|
304
304
|
status_code: http_response.status,
|
|
305
305
|
content_type: content_type,
|
|
@@ -321,7 +321,7 @@ module Moov
|
|
|
321
321
|
response: http_response
|
|
322
322
|
)
|
|
323
323
|
response_data = http_response.env.response_body
|
|
324
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ListInvoicesValidationError)
|
|
324
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::ListInvoicesValidationError)
|
|
325
325
|
obj.raw_response = http_response
|
|
326
326
|
raise obj
|
|
327
327
|
else
|
|
@@ -342,10 +342,12 @@ module Moov
|
|
|
342
342
|
end
|
|
343
343
|
|
|
344
344
|
|
|
345
|
-
sig { params(account_id: ::String, invoice_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::GetInvoiceResponse) }
|
|
346
|
-
def get_invoice(account_id:, invoice_id:, timeout_ms: nil, http_headers: nil)
|
|
345
|
+
sig { params(account_id: ::String, invoice_id: ::String, timeout_ms: T.nilable(::Integer), accept_header_override: T.nilable(::String), http_headers: T.nilable(T::Hash[T.any(::String, ::Symbol), ::String])).returns(Models::Operations::GetInvoiceResponse) }
|
|
346
|
+
def get_invoice(account_id:, invoice_id:, timeout_ms: nil, accept_header_override: nil, http_headers: nil)
|
|
347
347
|
# get_invoice - Retrieve an invoice by ID.
|
|
348
348
|
#
|
|
349
|
+
# Use the `Accept` header to specify the format of the response. Supported formats are `application/json` and `application/pdf`. The PDF does not include the payment link or QR code.
|
|
350
|
+
#
|
|
349
351
|
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
350
352
|
# you'll need to specify the `/accounts/{accountID}/invoices.read` scope.
|
|
351
353
|
request = Models::Operations::GetInvoiceRequest.new(
|
|
@@ -361,8 +363,8 @@ module Moov
|
|
|
361
363
|
request
|
|
362
364
|
)
|
|
363
365
|
headers = {}
|
|
364
|
-
headers = T.cast(headers, T::Hash[String, String])
|
|
365
|
-
headers['Accept'] = 'application/json'
|
|
366
|
+
headers = T.cast(headers, T::Hash[::String, ::String])
|
|
367
|
+
headers['Accept'] = accept_header_override || 'application/json;q=1, application/pdf;q=0'
|
|
366
368
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
367
369
|
|
|
368
370
|
security = @sdk_configuration.security_source&.call
|
|
@@ -381,7 +383,7 @@ module Moov
|
|
|
381
383
|
security_source: @sdk_configuration.security_source
|
|
382
384
|
)
|
|
383
385
|
|
|
384
|
-
error = T.let(nil, T.nilable(StandardError))
|
|
386
|
+
error = T.let(nil, T.nilable(::StandardError))
|
|
385
387
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
386
388
|
|
|
387
389
|
|
|
@@ -401,7 +403,7 @@ module Moov
|
|
|
401
403
|
request: req
|
|
402
404
|
)
|
|
403
405
|
end
|
|
404
|
-
rescue StandardError => e
|
|
406
|
+
rescue ::StandardError => e
|
|
405
407
|
error = e
|
|
406
408
|
ensure
|
|
407
409
|
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
@@ -437,7 +439,7 @@ module Moov
|
|
|
437
439
|
response: http_response
|
|
438
440
|
)
|
|
439
441
|
response_data = http_response.env.response_body
|
|
440
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::Invoice)
|
|
442
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Components::Invoice)
|
|
441
443
|
response = Models::Operations::GetInvoiceResponse.new(
|
|
442
444
|
status_code: http_response.status,
|
|
443
445
|
content_type: content_type,
|
|
@@ -447,6 +449,22 @@ module Moov
|
|
|
447
449
|
)
|
|
448
450
|
|
|
449
451
|
return response
|
|
452
|
+
elsif Utils.match_content_type(content_type, 'application/pdf')
|
|
453
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
454
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
455
|
+
hook_ctx: hook_ctx
|
|
456
|
+
),
|
|
457
|
+
response: http_response
|
|
458
|
+
)
|
|
459
|
+
obj = http_response.env.body.force_encoding('UTF-8')
|
|
460
|
+
|
|
461
|
+
return Models::Operations::GetInvoiceResponse.new(
|
|
462
|
+
status_code: http_response.status,
|
|
463
|
+
content_type: content_type,
|
|
464
|
+
raw_response: http_response,
|
|
465
|
+
headers: http_response.headers,
|
|
466
|
+
bytes: T.unsafe(obj)
|
|
467
|
+
)
|
|
450
468
|
else
|
|
451
469
|
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'
|
|
452
470
|
end
|
|
@@ -465,7 +483,7 @@ module Moov
|
|
|
465
483
|
end
|
|
466
484
|
|
|
467
485
|
|
|
468
|
-
sig { params(update_invoice: Models::Components::UpdateInvoice, account_id: ::String, invoice_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::UpdateInvoiceResponse) }
|
|
486
|
+
sig { params(update_invoice: Models::Components::UpdateInvoice, account_id: ::String, invoice_id: ::String, timeout_ms: T.nilable(::Integer), http_headers: T.nilable(T::Hash[T.any(::String, ::Symbol), ::String])).returns(Models::Operations::UpdateInvoiceResponse) }
|
|
469
487
|
def update_invoice(update_invoice:, account_id:, invoice_id:, timeout_ms: nil, http_headers: nil)
|
|
470
488
|
# update_invoice - Updates an invoice.
|
|
471
489
|
#
|
|
@@ -485,15 +503,15 @@ module Moov
|
|
|
485
503
|
request
|
|
486
504
|
)
|
|
487
505
|
headers = {}
|
|
488
|
-
headers = T.cast(headers, T::Hash[String, String])
|
|
506
|
+
headers = T.cast(headers, T::Hash[::String, ::String])
|
|
489
507
|
req_content_type, data, form = Utils.serialize_request_body(request, false, false, :update_invoice, :json)
|
|
490
508
|
headers['content-type'] = req_content_type
|
|
491
|
-
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
509
|
+
raise ::StandardError, 'request body is required' if data.nil? && form.nil?
|
|
492
510
|
|
|
493
511
|
if form && !form.empty?
|
|
494
512
|
body = Utils.encode_form(form)
|
|
495
513
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
496
|
-
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
514
|
+
body = ::URI.encode_www_form(T.cast(data, T::Hash[::Symbol, ::Object]))
|
|
497
515
|
else
|
|
498
516
|
body = data
|
|
499
517
|
end
|
|
@@ -516,7 +534,7 @@ module Moov
|
|
|
516
534
|
security_source: @sdk_configuration.security_source
|
|
517
535
|
)
|
|
518
536
|
|
|
519
|
-
error = T.let(nil, T.nilable(StandardError))
|
|
537
|
+
error = T.let(nil, T.nilable(::StandardError))
|
|
520
538
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
521
539
|
|
|
522
540
|
|
|
@@ -537,7 +555,7 @@ module Moov
|
|
|
537
555
|
request: req
|
|
538
556
|
)
|
|
539
557
|
end
|
|
540
|
-
rescue StandardError => e
|
|
558
|
+
rescue ::StandardError => e
|
|
541
559
|
error = e
|
|
542
560
|
ensure
|
|
543
561
|
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
@@ -573,7 +591,7 @@ module Moov
|
|
|
573
591
|
response: http_response
|
|
574
592
|
)
|
|
575
593
|
response_data = http_response.env.response_body
|
|
576
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::Invoice)
|
|
594
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Components::Invoice)
|
|
577
595
|
response = Models::Operations::UpdateInvoiceResponse.new(
|
|
578
596
|
status_code: http_response.status,
|
|
579
597
|
content_type: content_type,
|
|
@@ -595,7 +613,7 @@ module Moov
|
|
|
595
613
|
response: http_response
|
|
596
614
|
)
|
|
597
615
|
response_data = http_response.env.response_body
|
|
598
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::GenericError)
|
|
616
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::GenericError)
|
|
599
617
|
obj.raw_response = http_response
|
|
600
618
|
raise obj
|
|
601
619
|
else
|
|
@@ -610,7 +628,7 @@ module Moov
|
|
|
610
628
|
response: http_response
|
|
611
629
|
)
|
|
612
630
|
response_data = http_response.env.response_body
|
|
613
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::UpdateInvoiceError)
|
|
631
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::UpdateInvoiceError)
|
|
614
632
|
obj.raw_response = http_response
|
|
615
633
|
raise obj
|
|
616
634
|
else
|
|
@@ -631,7 +649,7 @@ module Moov
|
|
|
631
649
|
end
|
|
632
650
|
|
|
633
651
|
|
|
634
|
-
sig { params(account_id: ::String, invoice_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::DeleteInvoiceResponse) }
|
|
652
|
+
sig { params(account_id: ::String, invoice_id: ::String, timeout_ms: T.nilable(::Integer), http_headers: T.nilable(T::Hash[T.any(::String, ::Symbol), ::String])).returns(Models::Operations::DeleteInvoiceResponse) }
|
|
635
653
|
def delete(account_id:, invoice_id:, timeout_ms: nil, http_headers: nil)
|
|
636
654
|
# delete - Delete an invoice. Only invoices in `draft` status can be deleted.
|
|
637
655
|
#
|
|
@@ -656,7 +674,7 @@ module Moov
|
|
|
656
674
|
request
|
|
657
675
|
)
|
|
658
676
|
headers = {}
|
|
659
|
-
headers = T.cast(headers, T::Hash[String, String])
|
|
677
|
+
headers = T.cast(headers, T::Hash[::String, ::String])
|
|
660
678
|
headers['Accept'] = 'application/json'
|
|
661
679
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
662
680
|
|
|
@@ -676,7 +694,7 @@ module Moov
|
|
|
676
694
|
security_source: @sdk_configuration.security_source
|
|
677
695
|
)
|
|
678
696
|
|
|
679
|
-
error = T.let(nil, T.nilable(StandardError))
|
|
697
|
+
error = T.let(nil, T.nilable(::StandardError))
|
|
680
698
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
681
699
|
|
|
682
700
|
|
|
@@ -696,7 +714,7 @@ module Moov
|
|
|
696
714
|
request: req
|
|
697
715
|
)
|
|
698
716
|
end
|
|
699
|
-
rescue StandardError => e
|
|
717
|
+
rescue ::StandardError => e
|
|
700
718
|
error = e
|
|
701
719
|
ensure
|
|
702
720
|
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
@@ -745,7 +763,7 @@ module Moov
|
|
|
745
763
|
response: http_response
|
|
746
764
|
)
|
|
747
765
|
response_data = http_response.env.response_body
|
|
748
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::GenericError)
|
|
766
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::GenericError)
|
|
749
767
|
obj.raw_response = http_response
|
|
750
768
|
raise obj
|
|
751
769
|
else
|
|
@@ -766,7 +784,7 @@ module Moov
|
|
|
766
784
|
end
|
|
767
785
|
|
|
768
786
|
|
|
769
|
-
sig { params(create_invoice_notification: Models::Components::CreateInvoiceNotification, account_id: ::String, invoice_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::CreateInvoiceNotificationResponse) }
|
|
787
|
+
sig { params(create_invoice_notification: Models::Components::CreateInvoiceNotification, account_id: ::String, invoice_id: ::String, timeout_ms: T.nilable(::Integer), http_headers: T.nilable(T::Hash[T.any(::String, ::Symbol), ::String])).returns(Models::Operations::CreateInvoiceNotificationResponse) }
|
|
770
788
|
def create_invoice_notification(create_invoice_notification:, account_id:, invoice_id:, timeout_ms: nil, http_headers: nil)
|
|
771
789
|
# create_invoice_notification - Create a notification for an invoice, which resends the invoice email to the customer. The required
|
|
772
790
|
# `channels` body lists the channels to notify on; today only `email` is supported. Returns a 409
|
|
@@ -794,15 +812,15 @@ module Moov
|
|
|
794
812
|
request
|
|
795
813
|
)
|
|
796
814
|
headers = {}
|
|
797
|
-
headers = T.cast(headers, T::Hash[String, String])
|
|
815
|
+
headers = T.cast(headers, T::Hash[::String, ::String])
|
|
798
816
|
req_content_type, data, form = Utils.serialize_request_body(request, false, false, :create_invoice_notification, :json)
|
|
799
817
|
headers['content-type'] = req_content_type
|
|
800
|
-
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
818
|
+
raise ::StandardError, 'request body is required' if data.nil? && form.nil?
|
|
801
819
|
|
|
802
820
|
if form && !form.empty?
|
|
803
821
|
body = Utils.encode_form(form)
|
|
804
822
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
805
|
-
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
823
|
+
body = ::URI.encode_www_form(T.cast(data, T::Hash[::Symbol, ::Object]))
|
|
806
824
|
else
|
|
807
825
|
body = data
|
|
808
826
|
end
|
|
@@ -825,7 +843,7 @@ module Moov
|
|
|
825
843
|
security_source: @sdk_configuration.security_source
|
|
826
844
|
)
|
|
827
845
|
|
|
828
|
-
error = T.let(nil, T.nilable(StandardError))
|
|
846
|
+
error = T.let(nil, T.nilable(::StandardError))
|
|
829
847
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
830
848
|
|
|
831
849
|
|
|
@@ -846,7 +864,7 @@ module Moov
|
|
|
846
864
|
request: req
|
|
847
865
|
)
|
|
848
866
|
end
|
|
849
|
-
rescue StandardError => e
|
|
867
|
+
rescue ::StandardError => e
|
|
850
868
|
error = e
|
|
851
869
|
ensure
|
|
852
870
|
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
@@ -897,7 +915,7 @@ module Moov
|
|
|
897
915
|
response: http_response
|
|
898
916
|
)
|
|
899
917
|
response_data = http_response.env.response_body
|
|
900
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::GenericError)
|
|
918
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::GenericError)
|
|
901
919
|
obj.raw_response = http_response
|
|
902
920
|
raise obj
|
|
903
921
|
else
|
|
@@ -912,7 +930,7 @@ module Moov
|
|
|
912
930
|
response: http_response
|
|
913
931
|
)
|
|
914
932
|
response_data = http_response.env.response_body
|
|
915
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::InvoiceNotificationError)
|
|
933
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::InvoiceNotificationError)
|
|
916
934
|
obj.raw_response = http_response
|
|
917
935
|
raise obj
|
|
918
936
|
else
|
|
@@ -927,7 +945,7 @@ module Moov
|
|
|
927
945
|
response: http_response
|
|
928
946
|
)
|
|
929
947
|
response_data = http_response.env.response_body
|
|
930
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::InvoiceNotificationRateLimitedError)
|
|
948
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::InvoiceNotificationRateLimitedError)
|
|
931
949
|
obj.raw_response = http_response
|
|
932
950
|
raise obj
|
|
933
951
|
else
|
|
@@ -946,7 +964,7 @@ module Moov
|
|
|
946
964
|
end
|
|
947
965
|
|
|
948
966
|
|
|
949
|
-
sig { params(create_invoice_payment: Models::Components::CreateInvoicePayment, account_id: ::String, invoice_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::CreateInvoicePaymentResponse) }
|
|
967
|
+
sig { params(create_invoice_payment: Models::Components::CreateInvoicePayment, account_id: ::String, invoice_id: ::String, timeout_ms: T.nilable(::Integer), http_headers: T.nilable(T::Hash[T.any(::String, ::Symbol), ::String])).returns(Models::Operations::CreateInvoicePaymentResponse) }
|
|
950
968
|
def create_invoice_payment(create_invoice_payment:, account_id:, invoice_id:, timeout_ms: nil, http_headers: nil)
|
|
951
969
|
# create_invoice_payment - Creates a payment resource to represent that an invoice was paid outside of the Moov platform.
|
|
952
970
|
# If a payment link was created for the invoice, the corresponding payment link is canceled, but a receipt is still sent.
|
|
@@ -967,15 +985,15 @@ module Moov
|
|
|
967
985
|
request
|
|
968
986
|
)
|
|
969
987
|
headers = {}
|
|
970
|
-
headers = T.cast(headers, T::Hash[String, String])
|
|
988
|
+
headers = T.cast(headers, T::Hash[::String, ::String])
|
|
971
989
|
req_content_type, data, form = Utils.serialize_request_body(request, false, false, :create_invoice_payment, :json)
|
|
972
990
|
headers['content-type'] = req_content_type
|
|
973
|
-
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
991
|
+
raise ::StandardError, 'request body is required' if data.nil? && form.nil?
|
|
974
992
|
|
|
975
993
|
if form && !form.empty?
|
|
976
994
|
body = Utils.encode_form(form)
|
|
977
995
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
978
|
-
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
996
|
+
body = ::URI.encode_www_form(T.cast(data, T::Hash[::Symbol, ::Object]))
|
|
979
997
|
else
|
|
980
998
|
body = data
|
|
981
999
|
end
|
|
@@ -998,7 +1016,7 @@ module Moov
|
|
|
998
1016
|
security_source: @sdk_configuration.security_source
|
|
999
1017
|
)
|
|
1000
1018
|
|
|
1001
|
-
error = T.let(nil, T.nilable(StandardError))
|
|
1019
|
+
error = T.let(nil, T.nilable(::StandardError))
|
|
1002
1020
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
1003
1021
|
|
|
1004
1022
|
|
|
@@ -1019,7 +1037,7 @@ module Moov
|
|
|
1019
1037
|
request: req
|
|
1020
1038
|
)
|
|
1021
1039
|
end
|
|
1022
|
-
rescue StandardError => e
|
|
1040
|
+
rescue ::StandardError => e
|
|
1023
1041
|
error = e
|
|
1024
1042
|
ensure
|
|
1025
1043
|
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
@@ -1055,7 +1073,7 @@ module Moov
|
|
|
1055
1073
|
response: http_response
|
|
1056
1074
|
)
|
|
1057
1075
|
response_data = http_response.env.response_body
|
|
1058
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::InvoicePayment)
|
|
1076
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Components::InvoicePayment)
|
|
1059
1077
|
response = Models::Operations::CreateInvoicePaymentResponse.new(
|
|
1060
1078
|
status_code: http_response.status,
|
|
1061
1079
|
content_type: content_type,
|
|
@@ -1077,7 +1095,7 @@ module Moov
|
|
|
1077
1095
|
response: http_response
|
|
1078
1096
|
)
|
|
1079
1097
|
response_data = http_response.env.response_body
|
|
1080
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::GenericError)
|
|
1098
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::GenericError)
|
|
1081
1099
|
obj.raw_response = http_response
|
|
1082
1100
|
raise obj
|
|
1083
1101
|
else
|
|
@@ -1092,7 +1110,7 @@ module Moov
|
|
|
1092
1110
|
response: http_response
|
|
1093
1111
|
)
|
|
1094
1112
|
response_data = http_response.env.response_body
|
|
1095
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::CreateInvoicePaymentError)
|
|
1113
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::CreateInvoicePaymentError)
|
|
1096
1114
|
obj.raw_response = http_response
|
|
1097
1115
|
raise obj
|
|
1098
1116
|
else
|
|
@@ -1113,7 +1131,7 @@ module Moov
|
|
|
1113
1131
|
end
|
|
1114
1132
|
|
|
1115
1133
|
|
|
1116
|
-
sig { params(account_id: ::String, invoice_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ListInvoicePaymentsResponse) }
|
|
1134
|
+
sig { params(account_id: ::String, invoice_id: ::String, timeout_ms: T.nilable(::Integer), http_headers: T.nilable(T::Hash[T.any(::String, ::Symbol), ::String])).returns(Models::Operations::ListInvoicePaymentsResponse) }
|
|
1117
1135
|
def list_invoice_payments(account_id:, invoice_id:, timeout_ms: nil, http_headers: nil)
|
|
1118
1136
|
# list_invoice_payments - List all the payments made towards an invoice.
|
|
1119
1137
|
#
|
|
@@ -1132,7 +1150,7 @@ module Moov
|
|
|
1132
1150
|
request
|
|
1133
1151
|
)
|
|
1134
1152
|
headers = {}
|
|
1135
|
-
headers = T.cast(headers, T::Hash[String, String])
|
|
1153
|
+
headers = T.cast(headers, T::Hash[::String, ::String])
|
|
1136
1154
|
headers['Accept'] = 'application/json'
|
|
1137
1155
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
1138
1156
|
|
|
@@ -1152,7 +1170,7 @@ module Moov
|
|
|
1152
1170
|
security_source: @sdk_configuration.security_source
|
|
1153
1171
|
)
|
|
1154
1172
|
|
|
1155
|
-
error = T.let(nil, T.nilable(StandardError))
|
|
1173
|
+
error = T.let(nil, T.nilable(::StandardError))
|
|
1156
1174
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
1157
1175
|
|
|
1158
1176
|
|
|
@@ -1172,7 +1190,7 @@ module Moov
|
|
|
1172
1190
|
request: req
|
|
1173
1191
|
)
|
|
1174
1192
|
end
|
|
1175
|
-
rescue StandardError => e
|
|
1193
|
+
rescue ::StandardError => e
|
|
1176
1194
|
error = e
|
|
1177
1195
|
ensure
|
|
1178
1196
|
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
@@ -1208,7 +1226,7 @@ module Moov
|
|
|
1208
1226
|
response: http_response
|
|
1209
1227
|
)
|
|
1210
1228
|
response_data = http_response.env.response_body
|
|
1211
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Crystalline::Array.new(Models::Components::InvoicePayment))
|
|
1229
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Crystalline::Array.new(Models::Components::InvoicePayment))
|
|
1212
1230
|
response = Models::Operations::ListInvoicePaymentsResponse.new(
|
|
1213
1231
|
status_code: http_response.status,
|
|
1214
1232
|
content_type: content_type,
|