moov_ruby 26.10.0.pre.dev.9 → 26.10.0.pre.dev.11
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 +78 -78
- data/lib/moov/branding.rb +24 -24
- data/lib/moov/capabilities.rb +25 -25
- data/lib/moov/card_issuing.rb +67 -73
- 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 +24 -24
- data/lib/moov/google_pay.rb +10 -10
- data/lib/moov/images.rb +48 -48
- 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 +36 -36
- 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/capability.rb +2 -0
- data/lib/moov/models/components/capabilityid.rb +3 -0
- data/lib/moov/models/components/capture.rb +3 -7
- data/lib/moov/models/components/capture.rbi +0 -2
- data/lib/moov/models/components/capturemethod.rb +21 -0
- data/lib/moov/models/components/capturemethod.rbi +11 -0
- data/lib/moov/models/components/cardpaymentoptions.rb +14 -2
- data/lib/moov/models/components/cardpaymentoptions.rbi +6 -0
- data/lib/moov/models/components/createaccount.rb +2 -2
- data/lib/moov/models/components/createcapture.rb +3 -7
- data/lib/moov/models/components/createcapture.rbi +0 -2
- data/lib/moov/models/components/createcardpaymentoptions.rb +55 -0
- data/lib/moov/models/components/createcardpaymentoptions.rbi +21 -0
- data/lib/moov/models/components/createcardpaymentoptions_capturemethod.rb +20 -0
- data/lib/moov/models/components/createcardpaymentoptions_capturemethod.rbi +11 -0
- 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 +4 -4
- data/lib/moov/models/components/createsweepconfig.rb +6 -2
- data/lib/moov/models/components/createsweepconfig.rbi +2 -0
- 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/createtransferrailoptions.rb +3 -3
- 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 +8 -6
- 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 +8 -6
- data/lib/moov/models/components/issuedcardauthorization.rb +6 -2
- data/lib/moov/models/components/issuedcardauthorization.rbi +2 -0
- data/lib/moov/models/components/issuedcardstate.rb +6 -4
- data/lib/moov/models/components/issuedcardtransaction.rb +6 -2
- data/lib/moov/models/components/issuedcardtransaction.rbi +2 -0
- data/lib/moov/models/components/issuedcontrols_allowedschedule.rb +1 -1
- data/lib/moov/models/components/issuingcontrols_allowedschedule.rb +1 -1
- 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/patchsweepconfig.rb +6 -2
- data/lib/moov/models/components/patchsweepconfig.rbi +2 -0
- 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/schedule.rb +40 -0
- data/lib/moov/models/components/schedule.rbi +17 -0
- data/lib/moov/models/components/schedulewindow.rb +1 -1
- data/lib/moov/models/components/sweepconfig.rb +6 -2
- data/lib/moov/models/components/sweepconfig.rbi +2 -0
- data/lib/moov/models/components/sweepconfigschedule.rb +40 -0
- data/lib/moov/models/components/sweepconfigschedule.rbi +17 -0
- data/lib/moov/models/components/sweepconfigscheduleerror.rb +40 -0
- data/lib/moov/models/components/sweepconfigscheduleerror.rbi +17 -0
- data/lib/moov/models/components/sweepschedulefrequency.rb +18 -0
- data/lib/moov/models/components/sweepschedulefrequency.rbi +11 -0
- data/lib/moov/models/components/transfer.rb +2 -2
- data/lib/moov/models/components/transferauthorization.rb +6 -2
- data/lib/moov/models/components/transferauthorization.rbi +2 -0
- data/lib/moov/models/components/transferevent.rb +48 -0
- data/lib/moov/models/components/transferevent.rbi +21 -0
- data/lib/moov/models/components/transfereventachdetails.rb +40 -0
- data/lib/moov/models/components/transfereventachdetails.rbi +17 -0
- data/lib/moov/models/components/transfereventauthorizationdetails.rb +40 -0
- data/lib/moov/models/components/transfereventauthorizationdetails.rbi +17 -0
- data/lib/moov/models/components/transfereventauthorizationstatus.rb +22 -0
- data/lib/moov/models/components/transfereventauthorizationstatus.rbi +11 -0
- data/lib/moov/models/components/transfereventcancellationdetails.rb +36 -0
- data/lib/moov/models/components/transfereventcancellationdetails.rbi +15 -0
- data/lib/moov/models/components/transfereventcapturedetails.rb +40 -0
- data/lib/moov/models/components/transfereventcapturedetails.rbi +17 -0
- data/lib/moov/models/components/transfereventcardpaymentdetails.rb +36 -0
- data/lib/moov/models/components/transfereventcardpaymentdetails.rbi +15 -0
- data/lib/moov/models/components/transfereventdetails.rb +84 -0
- data/lib/moov/models/components/transfereventdetails.rbi +39 -0
- data/lib/moov/models/components/transfereventdisputedetails.rb +46 -0
- data/lib/moov/models/components/transfereventdisputedetails.rbi +19 -0
- data/lib/moov/models/components/transfereventinstantbankcreditdetails.rb +36 -0
- data/lib/moov/models/components/transfereventinstantbankcreditdetails.rbi +15 -0
- data/lib/moov/models/components/transfereventpullfromcarddetails.rb +36 -0
- data/lib/moov/models/components/transfereventpullfromcarddetails.rbi +15 -0
- data/lib/moov/models/components/transfereventpushtocarddetails.rb +36 -0
- data/lib/moov/models/components/transfereventpushtocarddetails.rbi +15 -0
- data/lib/moov/models/components/transfereventrefunddetails.rb +44 -0
- data/lib/moov/models/components/transfereventrefunddetails.rbi +19 -0
- data/lib/moov/models/components/transfereventtransferdetails.rb +32 -0
- data/lib/moov/models/components/transfereventtransferdetails.rbi +13 -0
- data/lib/moov/models/components/transfereventtype.rb +33 -0
- data/lib/moov/models/components/transfereventtype.rbi +11 -0
- data/lib/moov/models/components/transfereventwallettransactiondetails.rb +48 -0
- data/lib/moov/models/components/transfereventwallettransactiondetails.rbi +21 -0
- data/lib/moov/models/components/updateinvoice.rb +2 -2
- data/lib/moov/models/components/updateinvoicestatus.rb +19 -0
- data/lib/moov/models/components/updateinvoicestatus.rbi +11 -0
- data/lib/moov/models/components/updateissuedcard.rb +5 -5
- data/lib/moov/models/components/updateissuedcardstate.rb +3 -3
- data/lib/moov/models/components/updateissuingcontrols_allowedschedule.rb +1 -1
- data/lib/moov/models/components/updateissuingcontrolserror.rb +2 -2
- data/lib/moov/models/components/upsertunderwriting.rb +1 -1
- data/lib/moov/models/components/wallet.rb +2 -2
- data/lib/moov/models/components/webhookdatacapabilityrequested.rb +2 -0
- data/lib/moov/models/components/webhookdatacapabilityupdated.rb +2 -0
- data/lib/moov/models/components.rb +24 -0
- 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/authorizationsimulationvalidationerror.rb +1 -1
- data/lib/moov/models/errors/authtokenrequesterror.rb +1 -1
- data/lib/moov/models/errors/bankaccountattestationvalidationerror.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/capturevalidationerror.rb +3 -7
- data/lib/moov/models/errors/capturevalidationerror.rbi +0 -2
- data/lib/moov/models/errors/cardacquiringrefund_error.rb +1 -1
- data/lib/moov/models/errors/cardmetadatarequesterror.rb +1 -1
- data/lib/moov/models/errors/clearingsimulationvalidationerror.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 +7 -3
- data/lib/moov/models/errors/createsweepconfigerror.rbi +2 -0
- 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/imagemetadata_error.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 +7 -3
- data/lib/moov/models/errors/listtransfersvalidationerror.rbi +2 -0
- 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 +7 -3
- data/lib/moov/models/errors/patchsweepconfigerror.rbi +2 -0
- 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/createauthorizationsimulation_response.rb +2 -2
- data/lib/moov/models/operations/createbankaccountattestation_response.rb +2 -2
- data/lib/moov/models/operations/createbrand_response.rb +2 -2
- data/lib/moov/models/operations/createcapture_response.rb +2 -2
- data/lib/moov/models/operations/createclearingsimulation_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/createreversalsimulation_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_request.rb +2 -0
- 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/downloadfile_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/getbankaccountattestationeligibility_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_request.rb +2 -0
- data/lib/moov/models/operations/getcapability_response.rb +2 -2
- data/lib/moov/models/operations/getcapture_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/getissuedcardactivity_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/gettransferriskoutcomes_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/listbankaccountattestations_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/listcaptures_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/listissuedcardactivity_response.rb +2 -2
- data/lib/moov/models/operations/listissuedcardauthorizationevents_response.rb +2 -2
- data/lib/moov/models/operations/listissuedcardauthorizations_request.rb +6 -2
- data/lib/moov/models/operations/listissuedcardauthorizations_request.rbi +2 -0
- data/lib/moov/models/operations/listissuedcardauthorizations_response.rb +2 -2
- data/lib/moov/models/operations/listissuedcards_request.rb +6 -2
- data/lib/moov/models/operations/listissuedcards_request.rbi +2 -0
- data/lib/moov/models/operations/listissuedcards_response.rb +2 -2
- data/lib/moov/models/operations/listissuedcardtransactions_request.rb +6 -2
- data/lib/moov/models/operations/listissuedcardtransactions_request.rbi +2 -0
- 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/listtransferevents_request.rb +36 -0
- data/lib/moov/models/operations/listtransferevents_request.rbi +15 -0
- data/lib/moov/models/operations/listtransferevents_response.rb +48 -0
- data/lib/moov/models/operations/listtransferevents_response.rbi +21 -0
- data/lib/moov/models/operations/listtransfers_request.rb +7 -2
- data/lib/moov/models/operations/listtransfers_request.rbi +2 -0
- data/lib/moov/models/operations/listtransfers_response.rb +3 -3
- 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/models/operations.rb +2 -0
- 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 +243 -113
- 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 +54 -2
data/lib/moov/accounts.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(request: Models::Components::CreateAccount, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::CreateAccountResponse) }
|
|
44
|
+
sig { params(request: Models::Components::CreateAccount, timeout_ms: T.nilable(::Integer), http_headers: T.nilable(T::Hash[T.any(::String, ::Symbol), ::String])).returns(Models::Operations::CreateAccountResponse) }
|
|
45
45
|
def create(request:, timeout_ms: nil, http_headers: nil)
|
|
46
46
|
# create - You can create business or individual accounts for your users (i.e., customers, merchants) by passing the required information to Moov. Requirements differ per account type and requested [capabilities](https://docs.moov.io/guides/accounts/capabilities/reference/).
|
|
47
47
|
#
|
|
@@ -60,15 +60,15 @@ module Moov
|
|
|
60
60
|
base_url = Utils.template_url(url, params)
|
|
61
61
|
url = "#{base_url}/accounts"
|
|
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, :request, :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::Account)
|
|
151
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Components::Account)
|
|
152
152
|
response = Models::Operations::CreateAccountResponse.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::CreateAccountError)
|
|
188
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::CreateAccountError)
|
|
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::ListAccountsRequest, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ListAccountsResponse) }
|
|
209
|
+
sig { params(request: Models::Operations::ListAccountsRequest, timeout_ms: T.nilable(::Integer), http_headers: T.nilable(T::Hash[T.any(::String, ::Symbol), ::String])).returns(Models::Operations::ListAccountsResponse) }
|
|
210
210
|
def list(request:, timeout_ms: nil, http_headers: nil)
|
|
211
211
|
# list - List or search accounts to which the caller is connected.
|
|
212
212
|
#
|
|
@@ -220,7 +220,7 @@ module Moov
|
|
|
220
220
|
base_url = Utils.template_url(url, params)
|
|
221
221
|
url = "#{base_url}/accounts"
|
|
222
222
|
headers = {}
|
|
223
|
-
headers = T.cast(headers, T::Hash[String, String])
|
|
223
|
+
headers = T.cast(headers, T::Hash[::String, ::String])
|
|
224
224
|
query_params = Utils.get_query_params(Models::Operations::ListAccountsRequest, request, nil)
|
|
225
225
|
headers['Accept'] = 'application/json'
|
|
226
226
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
@@ -241,7 +241,7 @@ module Moov
|
|
|
241
241
|
security_source: @sdk_configuration.security_source
|
|
242
242
|
)
|
|
243
243
|
|
|
244
|
-
error = T.let(nil, T.nilable(StandardError))
|
|
244
|
+
error = T.let(nil, T.nilable(::StandardError))
|
|
245
245
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
246
246
|
|
|
247
247
|
|
|
@@ -262,7 +262,7 @@ module Moov
|
|
|
262
262
|
request: req
|
|
263
263
|
)
|
|
264
264
|
end
|
|
265
|
-
rescue StandardError => e
|
|
265
|
+
rescue ::StandardError => e
|
|
266
266
|
error = e
|
|
267
267
|
ensure
|
|
268
268
|
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
@@ -298,7 +298,7 @@ module Moov
|
|
|
298
298
|
response: http_response
|
|
299
299
|
)
|
|
300
300
|
response_data = http_response.env.response_body
|
|
301
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Crystalline::Array.new(Models::Components::Account))
|
|
301
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Crystalline::Array.new(Models::Components::Account))
|
|
302
302
|
response = Models::Operations::ListAccountsResponse.new(
|
|
303
303
|
status_code: http_response.status,
|
|
304
304
|
content_type: content_type,
|
|
@@ -326,7 +326,7 @@ module Moov
|
|
|
326
326
|
end
|
|
327
327
|
|
|
328
328
|
|
|
329
|
-
sig { params(account_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::GetAccountResponse) }
|
|
329
|
+
sig { params(account_id: ::String, timeout_ms: T.nilable(::Integer), http_headers: T.nilable(T::Hash[T.any(::String, ::Symbol), ::String])).returns(Models::Operations::GetAccountResponse) }
|
|
330
330
|
def get(account_id:, timeout_ms: nil, http_headers: nil)
|
|
331
331
|
# get - Retrieves details for the account with the specified ID.
|
|
332
332
|
#
|
|
@@ -344,7 +344,7 @@ module Moov
|
|
|
344
344
|
request
|
|
345
345
|
)
|
|
346
346
|
headers = {}
|
|
347
|
-
headers = T.cast(headers, T::Hash[String, String])
|
|
347
|
+
headers = T.cast(headers, T::Hash[::String, ::String])
|
|
348
348
|
headers['Accept'] = 'application/json'
|
|
349
349
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
350
350
|
|
|
@@ -364,7 +364,7 @@ module Moov
|
|
|
364
364
|
security_source: @sdk_configuration.security_source
|
|
365
365
|
)
|
|
366
366
|
|
|
367
|
-
error = T.let(nil, T.nilable(StandardError))
|
|
367
|
+
error = T.let(nil, T.nilable(::StandardError))
|
|
368
368
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
369
369
|
|
|
370
370
|
|
|
@@ -384,7 +384,7 @@ module Moov
|
|
|
384
384
|
request: req
|
|
385
385
|
)
|
|
386
386
|
end
|
|
387
|
-
rescue StandardError => e
|
|
387
|
+
rescue ::StandardError => e
|
|
388
388
|
error = e
|
|
389
389
|
ensure
|
|
390
390
|
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
@@ -420,7 +420,7 @@ module Moov
|
|
|
420
420
|
response: http_response
|
|
421
421
|
)
|
|
422
422
|
response_data = http_response.env.response_body
|
|
423
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::Account)
|
|
423
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Components::Account)
|
|
424
424
|
response = Models::Operations::GetAccountResponse.new(
|
|
425
425
|
status_code: http_response.status,
|
|
426
426
|
content_type: content_type,
|
|
@@ -448,7 +448,7 @@ module Moov
|
|
|
448
448
|
end
|
|
449
449
|
|
|
450
450
|
|
|
451
|
-
sig { params(patch_account: Models::Components::PatchAccount, account_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::UpdateAccountResponse) }
|
|
451
|
+
sig { params(patch_account: Models::Components::PatchAccount, account_id: ::String, timeout_ms: T.nilable(::Integer), http_headers: T.nilable(T::Hash[T.any(::String, ::Symbol), ::String])).returns(Models::Operations::UpdateAccountResponse) }
|
|
452
452
|
def update(patch_account:, account_id:, timeout_ms: nil, http_headers: nil)
|
|
453
453
|
# update - When **can** profile data be updated:
|
|
454
454
|
# + For unverified accounts, all profile data can be edited.
|
|
@@ -475,15 +475,15 @@ module Moov
|
|
|
475
475
|
request
|
|
476
476
|
)
|
|
477
477
|
headers = {}
|
|
478
|
-
headers = T.cast(headers, T::Hash[String, String])
|
|
478
|
+
headers = T.cast(headers, T::Hash[::String, ::String])
|
|
479
479
|
req_content_type, data, form = Utils.serialize_request_body(request, false, false, :patch_account, :json)
|
|
480
480
|
headers['content-type'] = req_content_type
|
|
481
|
-
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
481
|
+
raise ::StandardError, 'request body is required' if data.nil? && form.nil?
|
|
482
482
|
|
|
483
483
|
if form && !form.empty?
|
|
484
484
|
body = Utils.encode_form(form)
|
|
485
485
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
486
|
-
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
486
|
+
body = ::URI.encode_www_form(T.cast(data, T::Hash[::Symbol, ::Object]))
|
|
487
487
|
else
|
|
488
488
|
body = data
|
|
489
489
|
end
|
|
@@ -506,7 +506,7 @@ module Moov
|
|
|
506
506
|
security_source: @sdk_configuration.security_source
|
|
507
507
|
)
|
|
508
508
|
|
|
509
|
-
error = T.let(nil, T.nilable(StandardError))
|
|
509
|
+
error = T.let(nil, T.nilable(::StandardError))
|
|
510
510
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
511
511
|
|
|
512
512
|
|
|
@@ -527,7 +527,7 @@ module Moov
|
|
|
527
527
|
request: req
|
|
528
528
|
)
|
|
529
529
|
end
|
|
530
|
-
rescue StandardError => e
|
|
530
|
+
rescue ::StandardError => e
|
|
531
531
|
error = e
|
|
532
532
|
ensure
|
|
533
533
|
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
@@ -563,7 +563,7 @@ module Moov
|
|
|
563
563
|
response: http_response
|
|
564
564
|
)
|
|
565
565
|
response_data = http_response.env.response_body
|
|
566
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::Account)
|
|
566
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Components::Account)
|
|
567
567
|
response = Models::Operations::UpdateAccountResponse.new(
|
|
568
568
|
status_code: http_response.status,
|
|
569
569
|
content_type: content_type,
|
|
@@ -585,7 +585,7 @@ module Moov
|
|
|
585
585
|
response: http_response
|
|
586
586
|
)
|
|
587
587
|
response_data = http_response.env.response_body
|
|
588
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::GenericError)
|
|
588
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::GenericError)
|
|
589
589
|
obj.raw_response = http_response
|
|
590
590
|
raise obj
|
|
591
591
|
else
|
|
@@ -600,7 +600,7 @@ module Moov
|
|
|
600
600
|
response: http_response
|
|
601
601
|
)
|
|
602
602
|
response_data = http_response.env.response_body
|
|
603
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::PatchAccountError)
|
|
603
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::PatchAccountError)
|
|
604
604
|
obj.raw_response = http_response
|
|
605
605
|
raise obj
|
|
606
606
|
else
|
|
@@ -621,7 +621,7 @@ module Moov
|
|
|
621
621
|
end
|
|
622
622
|
|
|
623
623
|
|
|
624
|
-
sig { params(account_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::DisconnectAccountResponse) }
|
|
624
|
+
sig { params(account_id: ::String, timeout_ms: T.nilable(::Integer), http_headers: T.nilable(T::Hash[T.any(::String, ::Symbol), ::String])).returns(Models::Operations::DisconnectAccountResponse) }
|
|
625
625
|
def disconnect(account_id:, timeout_ms: nil, http_headers: nil)
|
|
626
626
|
# disconnect - This will sever the connection between you and the account specified and it will no longer be listed as
|
|
627
627
|
# active in the list of accounts. This also means you'll only have read-only access to the account going
|
|
@@ -641,7 +641,7 @@ module Moov
|
|
|
641
641
|
request
|
|
642
642
|
)
|
|
643
643
|
headers = {}
|
|
644
|
-
headers = T.cast(headers, T::Hash[String, String])
|
|
644
|
+
headers = T.cast(headers, T::Hash[::String, ::String])
|
|
645
645
|
headers['Accept'] = 'application/json'
|
|
646
646
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
647
647
|
|
|
@@ -661,7 +661,7 @@ module Moov
|
|
|
661
661
|
security_source: @sdk_configuration.security_source
|
|
662
662
|
)
|
|
663
663
|
|
|
664
|
-
error = T.let(nil, T.nilable(StandardError))
|
|
664
|
+
error = T.let(nil, T.nilable(::StandardError))
|
|
665
665
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
666
666
|
|
|
667
667
|
|
|
@@ -681,7 +681,7 @@ module Moov
|
|
|
681
681
|
request: req
|
|
682
682
|
)
|
|
683
683
|
end
|
|
684
|
-
rescue StandardError => e
|
|
684
|
+
rescue ::StandardError => e
|
|
685
685
|
error = e
|
|
686
686
|
ensure
|
|
687
687
|
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
@@ -730,7 +730,7 @@ module Moov
|
|
|
730
730
|
response: http_response
|
|
731
731
|
)
|
|
732
732
|
response_data = http_response.env.response_body
|
|
733
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::GenericError)
|
|
733
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::GenericError)
|
|
734
734
|
obj.raw_response = http_response
|
|
735
735
|
raise obj
|
|
736
736
|
else
|
|
@@ -751,7 +751,7 @@ module Moov
|
|
|
751
751
|
end
|
|
752
752
|
|
|
753
753
|
|
|
754
|
-
sig { params(request: Models::Operations::ListConnectedAccountsForAccountRequest, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ListConnectedAccountsForAccountResponse) }
|
|
754
|
+
sig { params(request: Models::Operations::ListConnectedAccountsForAccountRequest, timeout_ms: T.nilable(::Integer), http_headers: T.nilable(T::Hash[T.any(::String, ::Symbol), ::String])).returns(Models::Operations::ListConnectedAccountsForAccountResponse) }
|
|
755
755
|
def list_connected(request:, timeout_ms: nil, http_headers: nil)
|
|
756
756
|
# list_connected - List or search accounts to which the caller is connected.
|
|
757
757
|
#
|
|
@@ -770,7 +770,7 @@ module Moov
|
|
|
770
770
|
request
|
|
771
771
|
)
|
|
772
772
|
headers = {}
|
|
773
|
-
headers = T.cast(headers, T::Hash[String, String])
|
|
773
|
+
headers = T.cast(headers, T::Hash[::String, ::String])
|
|
774
774
|
query_params = Utils.get_query_params(Models::Operations::ListConnectedAccountsForAccountRequest, request, nil)
|
|
775
775
|
headers['Accept'] = 'application/json'
|
|
776
776
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
@@ -791,7 +791,7 @@ module Moov
|
|
|
791
791
|
security_source: @sdk_configuration.security_source
|
|
792
792
|
)
|
|
793
793
|
|
|
794
|
-
error = T.let(nil, T.nilable(StandardError))
|
|
794
|
+
error = T.let(nil, T.nilable(::StandardError))
|
|
795
795
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
796
796
|
|
|
797
797
|
|
|
@@ -812,7 +812,7 @@ module Moov
|
|
|
812
812
|
request: req
|
|
813
813
|
)
|
|
814
814
|
end
|
|
815
|
-
rescue StandardError => e
|
|
815
|
+
rescue ::StandardError => e
|
|
816
816
|
error = e
|
|
817
817
|
ensure
|
|
818
818
|
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
@@ -848,7 +848,7 @@ module Moov
|
|
|
848
848
|
response: http_response
|
|
849
849
|
)
|
|
850
850
|
response_data = http_response.env.response_body
|
|
851
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Crystalline::Array.new(Models::Components::Account))
|
|
851
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Crystalline::Array.new(Models::Components::Account))
|
|
852
852
|
response = Models::Operations::ListConnectedAccountsForAccountResponse.new(
|
|
853
853
|
status_code: http_response.status,
|
|
854
854
|
content_type: content_type,
|
|
@@ -876,7 +876,7 @@ module Moov
|
|
|
876
876
|
end
|
|
877
877
|
|
|
878
878
|
|
|
879
|
-
sig { params(share_scopes: Models::Components::ShareScopes, account_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ConnectAccountResponse) }
|
|
879
|
+
sig { params(share_scopes: Models::Components::ShareScopes, account_id: ::String, timeout_ms: T.nilable(::Integer), http_headers: T.nilable(T::Hash[T.any(::String, ::Symbol), ::String])).returns(Models::Operations::ConnectAccountResponse) }
|
|
880
880
|
def connect(share_scopes:, account_id:, timeout_ms: nil, http_headers: nil)
|
|
881
881
|
# connect - Shares access scopes from the account specified to the caller, establishing a connection
|
|
882
882
|
# between the two accounts with the specified permissions.
|
|
@@ -893,15 +893,15 @@ module Moov
|
|
|
893
893
|
request
|
|
894
894
|
)
|
|
895
895
|
headers = {}
|
|
896
|
-
headers = T.cast(headers, T::Hash[String, String])
|
|
896
|
+
headers = T.cast(headers, T::Hash[::String, ::String])
|
|
897
897
|
req_content_type, data, form = Utils.serialize_request_body(request, false, false, :share_scopes, :json)
|
|
898
898
|
headers['content-type'] = req_content_type
|
|
899
|
-
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
899
|
+
raise ::StandardError, 'request body is required' if data.nil? && form.nil?
|
|
900
900
|
|
|
901
901
|
if form && !form.empty?
|
|
902
902
|
body = Utils.encode_form(form)
|
|
903
903
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
904
|
-
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
904
|
+
body = ::URI.encode_www_form(T.cast(data, T::Hash[::Symbol, ::Object]))
|
|
905
905
|
else
|
|
906
906
|
body = data
|
|
907
907
|
end
|
|
@@ -924,7 +924,7 @@ module Moov
|
|
|
924
924
|
security_source: @sdk_configuration.security_source
|
|
925
925
|
)
|
|
926
926
|
|
|
927
|
-
error = T.let(nil, T.nilable(StandardError))
|
|
927
|
+
error = T.let(nil, T.nilable(::StandardError))
|
|
928
928
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
929
929
|
|
|
930
930
|
|
|
@@ -945,7 +945,7 @@ module Moov
|
|
|
945
945
|
request: req
|
|
946
946
|
)
|
|
947
947
|
end
|
|
948
|
-
rescue StandardError => e
|
|
948
|
+
rescue ::StandardError => e
|
|
949
949
|
error = e
|
|
950
950
|
ensure
|
|
951
951
|
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
@@ -994,7 +994,7 @@ module Moov
|
|
|
994
994
|
response: http_response
|
|
995
995
|
)
|
|
996
996
|
response_data = http_response.env.response_body
|
|
997
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::GenericError)
|
|
997
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::GenericError)
|
|
998
998
|
obj.raw_response = http_response
|
|
999
999
|
raise obj
|
|
1000
1000
|
else
|
|
@@ -1009,7 +1009,7 @@ module Moov
|
|
|
1009
1009
|
response: http_response
|
|
1010
1010
|
)
|
|
1011
1011
|
response_data = http_response.env.response_body
|
|
1012
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ConnectAccountRequestValidationError)
|
|
1012
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::ConnectAccountRequestValidationError)
|
|
1013
1013
|
obj.raw_response = http_response
|
|
1014
1014
|
raise obj
|
|
1015
1015
|
else
|
|
@@ -1030,7 +1030,7 @@ module Moov
|
|
|
1030
1030
|
end
|
|
1031
1031
|
|
|
1032
1032
|
|
|
1033
|
-
sig { params(account_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::GetAccountCountriesResponse) }
|
|
1033
|
+
sig { params(account_id: ::String, timeout_ms: T.nilable(::Integer), http_headers: T.nilable(T::Hash[T.any(::String, ::Symbol), ::String])).returns(Models::Operations::GetAccountCountriesResponse) }
|
|
1034
1034
|
def get_countries(account_id:, timeout_ms: nil, http_headers: nil)
|
|
1035
1035
|
# get_countries - Retrieve the specified countries of operation for an account.
|
|
1036
1036
|
#
|
|
@@ -1048,7 +1048,7 @@ module Moov
|
|
|
1048
1048
|
request
|
|
1049
1049
|
)
|
|
1050
1050
|
headers = {}
|
|
1051
|
-
headers = T.cast(headers, T::Hash[String, String])
|
|
1051
|
+
headers = T.cast(headers, T::Hash[::String, ::String])
|
|
1052
1052
|
headers['Accept'] = 'application/json'
|
|
1053
1053
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
1054
1054
|
|
|
@@ -1068,7 +1068,7 @@ module Moov
|
|
|
1068
1068
|
security_source: @sdk_configuration.security_source
|
|
1069
1069
|
)
|
|
1070
1070
|
|
|
1071
|
-
error = T.let(nil, T.nilable(StandardError))
|
|
1071
|
+
error = T.let(nil, T.nilable(::StandardError))
|
|
1072
1072
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
1073
1073
|
|
|
1074
1074
|
|
|
@@ -1088,7 +1088,7 @@ module Moov
|
|
|
1088
1088
|
request: req
|
|
1089
1089
|
)
|
|
1090
1090
|
end
|
|
1091
|
-
rescue StandardError => e
|
|
1091
|
+
rescue ::StandardError => e
|
|
1092
1092
|
error = e
|
|
1093
1093
|
ensure
|
|
1094
1094
|
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
@@ -1124,7 +1124,7 @@ module Moov
|
|
|
1124
1124
|
response: http_response
|
|
1125
1125
|
)
|
|
1126
1126
|
response_data = http_response.env.response_body
|
|
1127
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::AccountCountries)
|
|
1127
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Components::AccountCountries)
|
|
1128
1128
|
response = Models::Operations::GetAccountCountriesResponse.new(
|
|
1129
1129
|
status_code: http_response.status,
|
|
1130
1130
|
content_type: content_type,
|
|
@@ -1152,7 +1152,7 @@ module Moov
|
|
|
1152
1152
|
end
|
|
1153
1153
|
|
|
1154
1154
|
|
|
1155
|
-
sig { params(account_countries: Models::Components::AccountCountries, account_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::AssignAccountCountriesResponse) }
|
|
1155
|
+
sig { params(account_countries: Models::Components::AccountCountries, account_id: ::String, timeout_ms: T.nilable(::Integer), http_headers: T.nilable(T::Hash[T.any(::String, ::Symbol), ::String])).returns(Models::Operations::AssignAccountCountriesResponse) }
|
|
1156
1156
|
def assign_countries(account_countries:, account_id:, timeout_ms: nil, http_headers: nil)
|
|
1157
1157
|
# assign_countries - Assign the countries of operation for an account.
|
|
1158
1158
|
#
|
|
@@ -1173,15 +1173,15 @@ module Moov
|
|
|
1173
1173
|
request
|
|
1174
1174
|
)
|
|
1175
1175
|
headers = {}
|
|
1176
|
-
headers = T.cast(headers, T::Hash[String, String])
|
|
1176
|
+
headers = T.cast(headers, T::Hash[::String, ::String])
|
|
1177
1177
|
req_content_type, data, form = Utils.serialize_request_body(request, false, false, :account_countries, :json)
|
|
1178
1178
|
headers['content-type'] = req_content_type
|
|
1179
|
-
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
1179
|
+
raise ::StandardError, 'request body is required' if data.nil? && form.nil?
|
|
1180
1180
|
|
|
1181
1181
|
if form && !form.empty?
|
|
1182
1182
|
body = Utils.encode_form(form)
|
|
1183
1183
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
1184
|
-
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
1184
|
+
body = ::URI.encode_www_form(T.cast(data, T::Hash[::Symbol, ::Object]))
|
|
1185
1185
|
else
|
|
1186
1186
|
body = data
|
|
1187
1187
|
end
|
|
@@ -1204,7 +1204,7 @@ module Moov
|
|
|
1204
1204
|
security_source: @sdk_configuration.security_source
|
|
1205
1205
|
)
|
|
1206
1206
|
|
|
1207
|
-
error = T.let(nil, T.nilable(StandardError))
|
|
1207
|
+
error = T.let(nil, T.nilable(::StandardError))
|
|
1208
1208
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
1209
1209
|
|
|
1210
1210
|
|
|
@@ -1225,7 +1225,7 @@ module Moov
|
|
|
1225
1225
|
request: req
|
|
1226
1226
|
)
|
|
1227
1227
|
end
|
|
1228
|
-
rescue StandardError => e
|
|
1228
|
+
rescue ::StandardError => e
|
|
1229
1229
|
error = e
|
|
1230
1230
|
ensure
|
|
1231
1231
|
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
@@ -1261,7 +1261,7 @@ module Moov
|
|
|
1261
1261
|
response: http_response
|
|
1262
1262
|
)
|
|
1263
1263
|
response_data = http_response.env.response_body
|
|
1264
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::AccountCountries)
|
|
1264
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Components::AccountCountries)
|
|
1265
1265
|
response = Models::Operations::AssignAccountCountriesResponse.new(
|
|
1266
1266
|
status_code: http_response.status,
|
|
1267
1267
|
content_type: content_type,
|
|
@@ -1283,7 +1283,7 @@ module Moov
|
|
|
1283
1283
|
response: http_response
|
|
1284
1284
|
)
|
|
1285
1285
|
response_data = http_response.env.response_body
|
|
1286
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::GenericError)
|
|
1286
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::GenericError)
|
|
1287
1287
|
obj.raw_response = http_response
|
|
1288
1288
|
raise obj
|
|
1289
1289
|
else
|
|
@@ -1298,7 +1298,7 @@ module Moov
|
|
|
1298
1298
|
response: http_response
|
|
1299
1299
|
)
|
|
1300
1300
|
response_data = http_response.env.response_body
|
|
1301
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::AssignCountriesError)
|
|
1301
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::AssignCountriesError)
|
|
1302
1302
|
obj.raw_response = http_response
|
|
1303
1303
|
raise obj
|
|
1304
1304
|
else
|
|
@@ -1319,7 +1319,7 @@ module Moov
|
|
|
1319
1319
|
end
|
|
1320
1320
|
|
|
1321
1321
|
|
|
1322
|
-
sig { params(account_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::GetMerchantProcessingAgreementResponse) }
|
|
1322
|
+
sig { params(account_id: ::String, timeout_ms: T.nilable(::Integer), http_headers: T.nilable(T::Hash[T.any(::String, ::Symbol), ::String])).returns(Models::Operations::GetMerchantProcessingAgreementResponse) }
|
|
1323
1323
|
def get_merchant_processing_agreement(account_id:, timeout_ms: nil, http_headers: nil)
|
|
1324
1324
|
# get_merchant_processing_agreement - Retrieve a merchant account's processing agreement.
|
|
1325
1325
|
#
|
|
@@ -1337,7 +1337,7 @@ module Moov
|
|
|
1337
1337
|
request
|
|
1338
1338
|
)
|
|
1339
1339
|
headers = {}
|
|
1340
|
-
headers = T.cast(headers, T::Hash[String, String])
|
|
1340
|
+
headers = T.cast(headers, T::Hash[::String, ::String])
|
|
1341
1341
|
headers['Accept'] = 'application/pdf'
|
|
1342
1342
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
1343
1343
|
|
|
@@ -1357,7 +1357,7 @@ module Moov
|
|
|
1357
1357
|
security_source: @sdk_configuration.security_source
|
|
1358
1358
|
)
|
|
1359
1359
|
|
|
1360
|
-
error = T.let(nil, T.nilable(StandardError))
|
|
1360
|
+
error = T.let(nil, T.nilable(::StandardError))
|
|
1361
1361
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
1362
1362
|
|
|
1363
1363
|
|
|
@@ -1377,7 +1377,7 @@ module Moov
|
|
|
1377
1377
|
request: req
|
|
1378
1378
|
)
|
|
1379
1379
|
end
|
|
1380
|
-
rescue StandardError => e
|
|
1380
|
+
rescue ::StandardError => e
|
|
1381
1381
|
error = e
|
|
1382
1382
|
ensure
|
|
1383
1383
|
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
@@ -1439,7 +1439,7 @@ module Moov
|
|
|
1439
1439
|
end
|
|
1440
1440
|
|
|
1441
1441
|
|
|
1442
|
-
sig { params(origin: T.nilable(::String), referer: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::GetTermsOfServiceTokenResponse) }
|
|
1442
|
+
sig { params(origin: T.nilable(::String), referer: T.nilable(::String), timeout_ms: T.nilable(::Integer), http_headers: T.nilable(T::Hash[T.any(::String, ::Symbol), ::String])).returns(Models::Operations::GetTermsOfServiceTokenResponse) }
|
|
1443
1443
|
def get_terms_of_service_token(origin: nil, referer: nil, timeout_ms: nil, http_headers: nil)
|
|
1444
1444
|
# get_terms_of_service_token - Generates a non-expiring token that can then be used to accept Moov's terms of service.
|
|
1445
1445
|
#
|
|
@@ -1454,7 +1454,7 @@ module Moov
|
|
|
1454
1454
|
base_url = Utils.template_url(url, params)
|
|
1455
1455
|
url = "#{base_url}/tos-token"
|
|
1456
1456
|
headers = Utils.get_headers(request)
|
|
1457
|
-
headers = T.cast(headers, T::Hash[String, String])
|
|
1457
|
+
headers = T.cast(headers, T::Hash[::String, ::String])
|
|
1458
1458
|
headers['Accept'] = 'application/json'
|
|
1459
1459
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
1460
1460
|
|
|
@@ -1474,7 +1474,7 @@ module Moov
|
|
|
1474
1474
|
security_source: @sdk_configuration.security_source
|
|
1475
1475
|
)
|
|
1476
1476
|
|
|
1477
|
-
error = T.let(nil, T.nilable(StandardError))
|
|
1477
|
+
error = T.let(nil, T.nilable(::StandardError))
|
|
1478
1478
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
1479
1479
|
|
|
1480
1480
|
|
|
@@ -1494,7 +1494,7 @@ module Moov
|
|
|
1494
1494
|
request: req
|
|
1495
1495
|
)
|
|
1496
1496
|
end
|
|
1497
|
-
rescue StandardError => e
|
|
1497
|
+
rescue ::StandardError => e
|
|
1498
1498
|
error = e
|
|
1499
1499
|
ensure
|
|
1500
1500
|
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
@@ -1530,7 +1530,7 @@ module Moov
|
|
|
1530
1530
|
response: http_response
|
|
1531
1531
|
)
|
|
1532
1532
|
response_data = http_response.env.response_body
|
|
1533
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::TermsOfServiceToken)
|
|
1533
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Components::TermsOfServiceToken)
|
|
1534
1534
|
response = Models::Operations::GetTermsOfServiceTokenResponse.new(
|
|
1535
1535
|
status_code: http_response.status,
|
|
1536
1536
|
content_type: content_type,
|
data/lib/moov/adjustments.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(account_id: ::String, wallet_id: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ListAdjustmentsResponse) }
|
|
44
|
+
sig { params(account_id: ::String, wallet_id: T.nilable(::String), timeout_ms: T.nilable(::Integer), http_headers: T.nilable(T::Hash[T.any(::String, ::Symbol), ::String])).returns(Models::Operations::ListAdjustmentsResponse) }
|
|
45
45
|
def list(account_id:, wallet_id: nil, timeout_ms: nil, http_headers: nil)
|
|
46
46
|
# list - List adjustments associated with a Moov account.
|
|
47
47
|
#
|
|
@@ -60,7 +60,7 @@ 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
|
query_params = Utils.get_query_params(Models::Operations::ListAdjustmentsRequest, 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), Crystalline::Array.new(Models::Components::Adjustment))
|
|
141
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Crystalline::Array.new(Models::Components::Adjustment))
|
|
142
142
|
response = Models::Operations::ListAdjustmentsResponse.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(account_id: ::String, adjustment_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::GetAdjustmentResponse) }
|
|
169
|
+
sig { params(account_id: ::String, adjustment_id: ::String, timeout_ms: T.nilable(::Integer), http_headers: T.nilable(T::Hash[T.any(::String, ::Symbol), ::String])).returns(Models::Operations::GetAdjustmentResponse) }
|
|
170
170
|
def get(account_id:, adjustment_id:, timeout_ms: nil, http_headers: nil)
|
|
171
171
|
# get - Retrieve a specific adjustment associated with a Moov account.
|
|
172
172
|
#
|
|
@@ -185,7 +185,7 @@ module Moov
|
|
|
185
185
|
request
|
|
186
186
|
)
|
|
187
187
|
headers = {}
|
|
188
|
-
headers = T.cast(headers, T::Hash[String, String])
|
|
188
|
+
headers = T.cast(headers, T::Hash[::String, ::String])
|
|
189
189
|
headers['Accept'] = 'application/json'
|
|
190
190
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
191
191
|
|
|
@@ -205,7 +205,7 @@ module Moov
|
|
|
205
205
|
security_source: @sdk_configuration.security_source
|
|
206
206
|
)
|
|
207
207
|
|
|
208
|
-
error = T.let(nil, T.nilable(StandardError))
|
|
208
|
+
error = T.let(nil, T.nilable(::StandardError))
|
|
209
209
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
210
210
|
|
|
211
211
|
|
|
@@ -225,7 +225,7 @@ module Moov
|
|
|
225
225
|
request: req
|
|
226
226
|
)
|
|
227
227
|
end
|
|
228
|
-
rescue StandardError => e
|
|
228
|
+
rescue ::StandardError => e
|
|
229
229
|
error = e
|
|
230
230
|
ensure
|
|
231
231
|
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
@@ -261,7 +261,7 @@ module Moov
|
|
|
261
261
|
response: http_response
|
|
262
262
|
)
|
|
263
263
|
response_data = http_response.env.response_body
|
|
264
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::Adjustment)
|
|
264
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Components::Adjustment)
|
|
265
265
|
response = Models::Operations::GetAdjustmentResponse.new(
|
|
266
266
|
status_code: http_response.status,
|
|
267
267
|
content_type: content_type,
|