moov_ruby 26.4.20 → 26.7.0.pre.dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/crystalline/module.rb +1 -1
- data/lib/moov/account_terminal_applications.rb +16 -16
- data/lib/moov/accounts.rb +54 -52
- data/lib/moov/adjustments.rb +8 -8
- data/lib/moov/apple_pay.rb +20 -20
- data/lib/moov/authentication.rb +8 -8
- data/lib/moov/avatars.rb +5 -5
- data/lib/moov/bank_accounts.rb +37 -37
- data/lib/moov/branding.rb +12 -12
- data/lib/moov/capabilities.rb +20 -20
- data/lib/moov/card_issuing.rb +26 -26
- data/lib/moov/cards.rb +178 -20
- data/lib/moov/disputes.rb +44 -44
- data/lib/moov/end_to_end_encryption.rb +8 -8
- data/lib/moov/enriched_address.rb +5 -5
- data/lib/moov/enriched_profile.rb +5 -5
- data/lib/moov/fee_plans.rb +40 -40
- data/lib/moov/files.rb +12 -12
- data/lib/moov/google_pay.rb +4 -4
- data/lib/moov/images.rb +29 -29
- data/lib/moov/industries.rb +4 -4
- data/lib/moov/institutions.rb +10 -10
- data/lib/moov/invoices.rb +28 -208
- data/lib/moov/issuing_transactions.rb +20 -20
- data/lib/moov/models/components/account.rb +2 -2
- data/lib/moov/models/components/accountnameverification.rb +4 -4
- data/lib/moov/models/components/accounttype.rb +1 -3
- data/lib/moov/models/components/accountverificationstatus.rb +1 -3
- data/lib/moov/models/components/achreturncode.rb +1 -3
- data/lib/moov/models/components/achtransactiondetails.rb +3 -3
- data/lib/moov/models/components/achtransactionstatus.rb +1 -3
- data/lib/moov/models/components/addcapabilities.rb +1 -5
- data/lib/moov/models/components/adjustmentfees.rb +15 -11
- data/lib/moov/models/components/adjustmentfees.rbi +4 -4
- data/lib/moov/models/components/amountdecimalrange.rb +36 -0
- data/lib/moov/models/components/amountdecimalrange.rbi +15 -0
- data/lib/moov/models/components/amountdecimalrangeupdate.rb +36 -0
- data/lib/moov/models/components/amountdecimalrangeupdate.rbi +15 -0
- data/lib/moov/models/components/applepayresponse.rb +2 -2
- data/lib/moov/models/components/applicationscope.rb +2 -4
- data/lib/moov/models/components/authmethod.rb +1 -3
- data/lib/moov/models/components/authorizeduser.rb +36 -0
- data/lib/moov/models/components/authorizeduser.rbi +15 -0
- data/lib/moov/models/components/authtokenrequest.rb +2 -6
- data/lib/moov/models/components/authtokenrequest.rbi +0 -2
- data/lib/moov/models/components/bankaccount.rb +4 -4
- data/lib/moov/models/components/bankaccountexception.rb +2 -2
- data/lib/moov/models/components/bankaccountholdertype.rb +1 -3
- data/lib/moov/models/components/bankaccountintegration.rb +2 -2
- data/lib/moov/models/components/bankaccountstatus.rb +1 -3
- data/lib/moov/models/components/bankaccountstatusreason.rb +1 -3
- data/lib/moov/models/components/bankaccounttype.rb +1 -3
- data/lib/moov/models/components/bankaccountverification.rb +2 -2
- data/lib/moov/models/components/bankaccountverificationcreated.rb +2 -2
- data/lib/moov/models/components/bankaccountverificationmethod.rb +1 -3
- data/lib/moov/models/components/bankaccountverificationstatus.rb +1 -3
- data/lib/moov/models/components/basicpaymentmethod.rb +1 -1
- data/lib/moov/models/components/billablefee.rb +2 -2
- data/lib/moov/models/components/billingsummary.rb +4 -8
- data/lib/moov/models/components/billingsummary.rbi +0 -2
- data/lib/moov/models/components/businesspresence.rb +1 -3
- data/lib/moov/models/components/businessprofile.rb +2 -2
- data/lib/moov/models/components/businesstype.rb +1 -3
- data/lib/moov/models/components/calltoaction.rb +1 -3
- data/lib/moov/models/components/cancellation.rb +2 -2
- data/lib/moov/models/components/cancellationstatus.rb +1 -3
- data/lib/moov/models/components/capability.rb +3 -9
- data/lib/moov/models/components/capabilityid.rb +2 -11
- data/lib/moov/models/components/capabilitystatus.rb +1 -3
- data/lib/moov/models/components/card.rb +4 -4
- data/lib/moov/models/components/cardaccountupdater.rb +1 -1
- data/lib/moov/models/components/cardacquiringmodel.rb +1 -3
- data/lib/moov/models/components/cardacquiringrefund.rb +1 -1
- data/lib/moov/models/components/cardbrand.rb +1 -3
- data/lib/moov/models/components/cardbrandfees.rb +2 -6
- data/lib/moov/models/components/cardbrandfees.rbi +0 -2
- data/lib/moov/models/components/cardissuingnetwork.rb +1 -3
- data/lib/moov/models/components/cardmetadata.rb +79 -0
- data/lib/moov/models/components/cardmetadata.rbi +35 -0
- data/lib/moov/models/components/cardmetadatarequest.rb +38 -0
- data/lib/moov/models/components/cardmetadatarequest.rbi +15 -0
- data/lib/moov/models/components/cardtransactiondetails.rb +5 -13
- data/lib/moov/models/components/cardtransactiondetails.rbi +0 -4
- data/lib/moov/models/components/cardtransactionfailurecode.rb +1 -3
- data/lib/moov/models/components/cardtransactionstatus.rb +1 -5
- data/lib/moov/models/components/cardtype.rb +1 -3
- data/lib/moov/models/components/cardupdatereason.rb +1 -3
- data/lib/moov/models/components/cardverification.rb +3 -3
- data/lib/moov/models/components/cardverificationresult.rb +1 -3
- data/lib/moov/models/components/collectfundscardpayments.rb +1 -1
- data/lib/moov/models/components/collectionpaymentmethodtype.rb +1 -3
- data/lib/moov/models/components/createaccount.rb +3 -7
- data/lib/moov/models/components/createaccounttype.rb +1 -3
- data/lib/moov/models/components/createauthorizeduser.rb +40 -0
- data/lib/moov/models/components/createauthorizeduser.rbi +17 -0
- data/lib/moov/models/components/createauthorizedusererror.rb +40 -0
- data/lib/moov/models/components/createauthorizedusererror.rbi +17 -0
- data/lib/moov/models/components/createauthorizeduserupdate.rb +40 -0
- data/lib/moov/models/components/createauthorizeduserupdate.rbi +17 -0
- data/lib/moov/models/components/createbusinessprofile.rb +2 -2
- data/lib/moov/models/components/createdtransfer.rb +6 -18
- data/lib/moov/models/components/createdtransfer.rbi +0 -4
- data/lib/moov/models/components/createevidencetext.rb +1 -1
- data/lib/moov/models/components/createfeeplanagreement.rb +3 -13
- data/lib/moov/models/components/createfeeplanagreement.rbi +0 -2
- data/lib/moov/models/components/createinvoice.rb +2 -14
- data/lib/moov/models/components/createinvoice.rbi +0 -6
- data/lib/moov/models/components/createpaymentlink.rb +16 -16
- data/lib/moov/models/components/createpaymentlink.rbi +4 -4
- data/lib/moov/models/components/createpaymentlinkamountdetails.rb +32 -0
- data/lib/moov/models/components/createpaymentlinkamountdetails.rbi +13 -0
- data/lib/moov/models/components/{webhookdataeventtest.rb → createpaymentlinkamountdetailsvalidationerror.rb} +7 -7
- data/lib/moov/models/components/{invoicenotificationlimitedchannel.rbi → createpaymentlinkamountdetailsvalidationerror.rbi} +4 -6
- data/lib/moov/models/components/createrefund.rb +2 -2
- data/lib/moov/models/components/createreversal.rb +1 -4
- data/lib/moov/models/components/createsweepconfig.rb +1 -1
- data/lib/moov/models/components/createterminalapplication.rb +1 -1
- data/lib/moov/models/components/createtippresets.rb +1 -1
- data/lib/moov/models/components/createtransfer.rb +2 -6
- data/lib/moov/models/components/createtransfer.rbi +0 -2
- data/lib/moov/models/components/createtransferamountdetails.rb +6 -2
- data/lib/moov/models/components/createtransferamountdetails.rbi +2 -0
- data/lib/moov/models/components/createtransferamountdetailsvalidationerror.rb +6 -2
- data/lib/moov/models/components/createtransferamountdetailsvalidationerror.rbi +2 -0
- data/lib/moov/models/components/createtransferdestinationcard.rb +2 -6
- data/lib/moov/models/components/createtransferdestinationcard.rbi +0 -2
- data/lib/moov/models/components/createtransfersourceach.rb +2 -2
- data/lib/moov/models/components/createtransfersourcecard.rb +1 -1
- data/lib/moov/models/components/createwebhook.rb +1 -1
- data/lib/moov/models/components/debitholdperiod.rb +1 -3
- data/lib/moov/models/components/disbursementpaymentmethodtype.rb +1 -3
- data/lib/moov/models/components/dispute.rb +2 -2
- data/lib/moov/models/components/disputeevidenceresponse.rb +1 -1
- data/lib/moov/models/components/disputephase.rb +1 -3
- data/lib/moov/models/components/disputestatus.rb +1 -3
- data/lib/moov/models/components/document.rb +1 -1
- data/lib/moov/models/components/documenttype.rb +1 -3
- data/lib/moov/models/components/domesticpullfromcard.rb +1 -3
- data/lib/moov/models/components/domesticpushtocard.rb +1 -3
- data/lib/moov/models/components/estimatedactivity.rb +1 -1
- data/lib/moov/models/components/evidencetextresponse.rb +1 -1
- data/lib/moov/models/components/evidencetype.rb +1 -3
- data/lib/moov/models/components/evidenceuploadresponse.rb +1 -1
- data/lib/moov/models/components/facilitatorfee.rb +2 -2
- data/lib/moov/models/components/feecategory.rb +1 -3
- data/lib/moov/models/components/feemodel.rb +1 -3
- data/lib/moov/models/components/feeplan.rb +1 -1
- data/lib/moov/models/components/feeplanagreement.rb +4 -12
- data/lib/moov/models/components/feeplanagreement.rbi +0 -4
- data/lib/moov/models/components/feeplanagreementstatus.rb +1 -3
- data/lib/moov/models/components/filedetails.rb +3 -3
- data/lib/moov/models/components/filepurpose.rb +2 -4
- data/lib/moov/models/components/filestatus.rb +1 -3
- data/lib/moov/models/components/fulfillment.rb +2 -2
- data/lib/moov/models/components/fulfillmentdetails.rb +1 -1
- data/lib/moov/models/components/fulfillmentmethod.rb +1 -3
- data/lib/moov/models/components/fulfillmenttimeframe.rb +1 -3
- data/lib/moov/models/components/fullissuedcard.rb +16 -27
- data/lib/moov/models/components/fullissuedcard.rbi +4 -10
- data/lib/moov/models/components/geographicreach.rb +1 -3
- data/lib/moov/models/components/googlepayresponse.rb +3 -3
- data/lib/moov/models/components/instantbankfailurecode.rb +1 -3
- data/lib/moov/models/components/instantbanknetwork.rb +1 -3
- data/lib/moov/models/components/instantbanktransactiondetails.rb +3 -3
- data/lib/moov/models/components/instantbanktransactionstatus.rb +1 -3
- data/lib/moov/models/components/invoice.rb +4 -12
- data/lib/moov/models/components/invoice.rbi +0 -4
- data/lib/moov/models/components/invoicepayment.rb +1 -1
- data/lib/moov/models/components/invoicepaymenttype.rb +1 -3
- data/lib/moov/models/components/invoicestatus.rb +1 -3
- data/lib/moov/models/components/issuedcard.rb +15 -26
- data/lib/moov/models/components/issuedcard.rbi +4 -10
- data/lib/moov/models/components/issuedcardauthorization.rb +4 -13
- data/lib/moov/models/components/issuedcardauthorization.rbi +0 -4
- data/lib/moov/models/components/issuedcardauthorizationevent.rb +4 -9
- data/lib/moov/models/components/issuedcardauthorizationevent.rbi +0 -2
- data/lib/moov/models/components/issuedcardauthorizationeventresult.rb +1 -3
- data/lib/moov/models/components/issuedcardeventtype.rb +1 -3
- data/lib/moov/models/components/issuedcardstate.rb +6 -6
- data/lib/moov/models/components/issuedcardtransaction.rb +2 -6
- data/lib/moov/models/components/issuedcardtransaction.rbi +0 -2
- data/lib/moov/models/components/issuingauthorizationstatus.rb +1 -3
- data/lib/moov/models/components/issuingcontrols.rb +1 -1
- data/lib/moov/models/components/issuingintervallimit.rb +1 -1
- data/lib/moov/models/components/issuingvelocitylimit.rb +1 -1
- data/lib/moov/models/components/jsonwebkey.rb +1 -1
- data/lib/moov/models/components/linkedapplepaypaymentmethod.rb +1 -1
- data/lib/moov/models/components/linkedgooglepaypaymentmethod.rb +1 -1
- data/lib/moov/models/components/manualtermsofservice.rb +1 -1
- data/lib/moov/models/components/manualtermsofserviceupdate.rb +1 -1
- data/lib/moov/models/components/mode.rb +1 -3
- data/lib/moov/models/components/monthlyvolumerange.rb +1 -3
- data/lib/moov/models/components/moovfee.rb +1 -1
- data/lib/moov/models/components/occurrencesresponse.rb +2 -2
- data/lib/moov/models/components/occurrencestatus.rb +1 -3
- data/lib/moov/models/components/onboardinginvite.rb +2 -2
- data/lib/moov/models/components/onboardinginviterequest.rb +1 -1
- data/lib/moov/models/components/onboardingpartneraccount.rb +1 -1
- data/lib/moov/models/components/partnerpricingagreement.rb +7 -15
- data/lib/moov/models/components/partnerpricingagreement.rbi +0 -4
- data/lib/moov/models/components/patchbusiness.rb +2 -2
- data/lib/moov/models/components/patchtransfer.rb +1 -1
- data/lib/moov/models/components/patchwallet.rb +1 -1
- data/lib/moov/models/components/paymentlink.rb +19 -19
- data/lib/moov/models/components/paymentlink.rbi +4 -4
- data/lib/moov/models/components/paymentlinkamountdetails.rb +32 -0
- data/lib/moov/models/components/paymentlinkamountdetails.rbi +13 -0
- data/lib/moov/models/components/paymentlinkdisplayoptions.rb +1 -1
- data/lib/moov/models/components/paymentlinkdisplayoptionsupdate.rb +1 -1
- data/lib/moov/models/components/paymentlinkpaymentdetails.rb +14 -2
- data/lib/moov/models/components/paymentlinkpaymentdetails.rbi +6 -0
- data/lib/moov/models/components/paymentlinkpaymentdetails_amounttype.rb +19 -0
- data/lib/moov/models/components/paymentlinkpaymentdetails_amounttype.rbi +11 -0
- data/lib/moov/models/components/paymentlinkpaymentdetailsupdate.rb +14 -2
- data/lib/moov/models/components/paymentlinkpaymentdetailsupdate.rbi +6 -0
- data/lib/moov/models/components/paymentlinkpaymentdetailsupdate_amounttype.rb +19 -0
- data/lib/moov/models/components/paymentlinkpaymentdetailsupdate_amounttype.rbi +11 -0
- data/lib/moov/models/components/paymentlinkpayoutdetails.rb +3 -7
- data/lib/moov/models/components/paymentlinkpayoutdetails.rbi +0 -2
- data/lib/moov/models/components/paymentlinkpayoutdetailsupdate.rb +3 -7
- data/lib/moov/models/components/paymentlinkpayoutdetailsupdate.rbi +0 -2
- data/lib/moov/models/components/paymentlinkstatus.rb +1 -3
- data/lib/moov/models/components/paymentlinktype.rb +1 -3
- data/lib/moov/models/components/paymentmethodsbankaccount.rb +3 -3
- data/lib/moov/models/components/paymentmethodscard.rb +4 -4
- data/lib/moov/models/components/paymentmethodswallet.rb +1 -2
- data/lib/moov/models/components/paymentmethodtype.rb +1 -3
- data/lib/moov/models/components/payoutdetailserror.rb +2 -6
- data/lib/moov/models/components/payoutdetailserror.rbi +0 -2
- data/lib/moov/models/components/pendinglitigation.rb +1 -3
- data/lib/moov/models/components/primaryregulator.rb +1 -3
- data/lib/moov/models/components/puttippresets.rb +1 -1
- data/lib/moov/models/components/refundcarddetails.rb +2 -2
- data/lib/moov/models/components/refundcardstatus.rb +1 -4
- data/lib/moov/models/components/refundpolicy.rb +1 -3
- data/lib/moov/models/components/refundstatus.rb +1 -3
- data/lib/moov/models/components/requestcard.rb +18 -18
- data/lib/moov/models/components/requestcard.rbi +8 -8
- data/lib/moov/models/components/requirementerror.rb +2 -2
- data/lib/moov/models/components/requirementerrorcode.rb +1 -3
- data/lib/moov/models/components/requirementid.rb +1 -10
- data/lib/moov/models/components/resolutionlink.rb +1 -1
- data/lib/moov/models/components/resolutionlinkstatus.rb +1 -3
- data/lib/moov/models/components/returnpolicytype.rb +1 -3
- data/lib/moov/models/components/reversedwithcancellation.rb +1 -1
- data/lib/moov/models/components/rtprejectioncode.rb +1 -3
- data/lib/moov/models/components/schedulelistresponse.rb +1 -1
- data/lib/moov/models/components/scheduleresponse.rb +1 -1
- data/lib/moov/models/components/seccode.rb +1 -3
- data/lib/moov/models/components/statement.rb +2 -6
- data/lib/moov/models/components/statement.rbi +0 -2
- data/lib/moov/models/components/sweep.rb +1 -1
- data/lib/moov/models/components/sweepconfig.rb +3 -3
- data/lib/moov/models/components/sweepconfigpaymentmethod.rb +1 -1
- data/lib/moov/models/components/sweepconfigstatus.rb +1 -3
- data/lib/moov/models/components/sweepstatus.rb +1 -3
- data/lib/moov/models/components/sweepsubtotal.rb +1 -1
- data/lib/moov/models/components/terminalapplication.rb +2 -2
- data/lib/moov/models/components/terminalapplicationplatform.rb +1 -3
- data/lib/moov/models/components/terminalapplicationstatus.rb +1 -3
- data/lib/moov/models/components/terminalcard.rb +2 -2
- data/lib/moov/models/components/termsofservice.rb +1 -1
- data/lib/moov/models/components/ticket.rb +1 -1
- data/lib/moov/models/components/ticketstatus.rb +1 -3
- data/lib/moov/models/components/tipcalculationbasis.rb +1 -3
- data/lib/moov/models/components/tippresets.rb +1 -1
- data/lib/moov/models/components/transactionsource.rb +1 -3
- data/lib/moov/models/components/transfer.rb +6 -18
- data/lib/moov/models/components/transfer.rbi +0 -4
- data/lib/moov/models/components/transferamountdetails.rb +6 -2
- data/lib/moov/models/components/transferamountdetails.rbi +2 -0
- data/lib/moov/models/components/transferconfig.rb +2 -6
- data/lib/moov/models/components/transferconfig.rbi +0 -2
- data/lib/moov/models/components/transferdestination.rb +3 -9
- data/lib/moov/models/components/transferdestination.rbi +0 -2
- data/lib/moov/models/components/transferfailurereason.rb +1 -3
- data/lib/moov/models/components/transferparty.rb +1 -3
- data/lib/moov/models/components/transferpaymentmethodsbankaccount.rb +3 -3
- data/lib/moov/models/components/transferpaymentmethodscard.rb +4 -4
- data/lib/moov/models/components/transferpaymentmethodswallet.rb +1 -2
- data/lib/moov/models/components/transferpaymentmethodtype.rb +1 -3
- data/lib/moov/models/components/transfersource.rb +1 -1
- data/lib/moov/models/components/transferstatus.rb +1 -3
- data/lib/moov/models/components/transferterminalcard.rb +2 -2
- data/lib/moov/models/components/underwriting.rb +4 -4
- data/lib/moov/models/components/underwritingstatus.rb +1 -3
- data/lib/moov/models/components/updateevidence.rb +1 -1
- data/lib/moov/models/components/updateinvoice.rb +9 -13
- data/lib/moov/models/components/updateinvoice.rbi +0 -2
- data/lib/moov/models/components/updateissuedcard.rb +9 -15
- data/lib/moov/models/components/updateissuedcard.rbi +4 -6
- data/lib/moov/models/components/updateissuedcardstate.rb +0 -4
- data/lib/moov/models/components/updatepaymentlink.rb +7 -7
- data/lib/moov/models/components/updatepaymentlink.rbi +2 -2
- data/lib/moov/models/components/updatepaymentlinkamountdetails.rb +32 -0
- data/lib/moov/models/components/updatepaymentlinkamountdetails.rbi +13 -0
- data/lib/moov/models/components/updatepaymentlinkamountdetailsvalidationerror.rb +32 -0
- data/lib/moov/models/components/updatepaymentlinkamountdetailsvalidationerror.rbi +13 -0
- data/lib/moov/models/components/updatewebhook.rb +1 -1
- data/lib/moov/models/components/upsertunderwriting.rb +3 -3
- data/lib/moov/models/components/use.rb +1 -3
- data/lib/moov/models/components/verification.rb +3 -3
- data/lib/moov/models/components/verificationstatus.rb +1 -3
- data/lib/moov/models/components/verificationstatusdetail.rb +1 -3
- data/lib/moov/models/components/wallet.rb +2 -3
- data/lib/moov/models/components/walletstatus.rb +1 -3
- data/lib/moov/models/components/wallettransaction.rb +3 -3
- data/lib/moov/models/components/wallettransactionsourcetype.rb +1 -3
- data/lib/moov/models/components/wallettransactionstatus.rb +1 -3
- data/lib/moov/models/components/wallettransactiontype.rb +1 -3
- data/lib/moov/models/components/wallettype.rb +1 -5
- data/lib/moov/models/components/webhook.rb +1 -1
- data/lib/moov/models/components/webhookdatabankaccountcreated.rb +1 -1
- data/lib/moov/models/components/webhookdatabankaccountdeleted.rb +2 -6
- data/lib/moov/models/components/webhookdatabankaccountdeleted.rbi +0 -2
- data/lib/moov/models/components/webhookdatabankaccountupdated.rb +2 -2
- data/lib/moov/models/components/webhookdatacancellationcreated.rb +1 -1
- data/lib/moov/models/components/webhookdatacancellationupdated.rb +1 -1
- data/lib/moov/models/components/webhookdatacapabilityrequested.rb +2 -8
- data/lib/moov/models/components/webhookdatacapabilityupdated.rb +3 -9
- data/lib/moov/models/components/webhookdatacardautoupdated.rb +1 -1
- data/lib/moov/models/components/webhookdatadisputecreated.rb +2 -2
- data/lib/moov/models/components/webhookdatadisputeupdated.rb +2 -2
- data/lib/moov/models/components/webhookdatainvoiceupdated.rb +1 -1
- data/lib/moov/models/components/webhookdatarefundupdated.rb +1 -1
- data/lib/moov/models/components/webhookdatasweepcreated.rb +2 -6
- data/lib/moov/models/components/webhookdatasweepcreated.rbi +0 -2
- data/lib/moov/models/components/webhookdatasweepupdated.rb +3 -7
- data/lib/moov/models/components/webhookdatasweepupdated.rbi +0 -2
- data/lib/moov/models/components/webhookdataterminalapplicationcreated.rb +1 -1
- data/lib/moov/models/components/webhookdataterminalapplicationupdated.rb +1 -1
- data/lib/moov/models/components/webhookdataticketupdated.rb +1 -1
- data/lib/moov/models/components/webhookdatatransferstatus.rb +0 -4
- data/lib/moov/models/components/webhookdatawallettransactionupdated.rb +1 -1
- data/lib/moov/models/components/webhookdatawalletupdated.rb +1 -1
- data/lib/moov/models/components/webhookevent.rb +3 -3
- data/lib/moov/models/components/webhookeventtype.rb +1 -5
- data/lib/moov/models/components/webhookstatus.rb +1 -3
- data/lib/moov/models/components.rb +16 -23
- data/lib/moov/models/errors/cardacquiringrefund_error.rb +1 -1
- data/lib/moov/models/errors/cardmetadatarequesterror.rb +44 -0
- data/lib/moov/models/errors/cardmetadatarequesterror.rbi +19 -0
- data/lib/moov/models/errors/createinvoiceerror.rb +2 -14
- data/lib/moov/models/errors/createinvoiceerror.rbi +0 -6
- data/lib/moov/models/errors/createpaymentlinkerror.rb +6 -6
- data/lib/moov/models/errors/createpaymentlinkerror.rbi +2 -2
- data/lib/moov/models/errors/requestcarderror.rb +14 -14
- data/lib/moov/models/errors/requestcarderror.rbi +8 -8
- data/lib/moov/models/errors/transfer_error.rb +6 -18
- data/lib/moov/models/errors/transfer_error.rbi +0 -4
- data/lib/moov/models/errors/transfervalidationerror.rb +2 -6
- data/lib/moov/models/errors/transfervalidationerror.rbi +0 -2
- data/lib/moov/models/errors/updateinvoiceerror.rb +2 -6
- data/lib/moov/models/errors/updateinvoiceerror.rbi +0 -2
- data/lib/moov/models/errors/updateissuedcarderror.rb +8 -12
- data/lib/moov/models/errors/updateissuedcarderror.rbi +4 -6
- data/lib/moov/models/errors/updatepaymentlinkerror.rb +6 -6
- data/lib/moov/models/errors/updatepaymentlinkerror.rbi +2 -2
- data/lib/moov/models/errors.rb +1 -2
- data/lib/moov/models/operations/createcancellation_request.rb +2 -7
- data/lib/moov/models/operations/createcancellation_request.rbi +0 -2
- data/lib/moov/models/operations/disablecapability_request.rb +1 -7
- data/lib/moov/models/operations/getcapability_request.rb +1 -7
- data/lib/moov/models/operations/{listcancellations_response.rb → getcardmetadata_response.rb} +6 -6
- data/lib/moov/models/operations/{createinvoicenotification_response.rbi → getcardmetadata_response.rbi} +4 -2
- data/lib/moov/models/operations/initiaterefund_request.rb +1 -1
- data/lib/moov/models/operations/linkbankaccount_request.rb +1 -1
- data/lib/moov/models/operations/listaccounts_request.rb +1 -1
- data/lib/moov/models/operations/listconnectedaccountsforaccount_request.rb +1 -1
- data/lib/moov/models/operations/listdisputes_request.rb +1 -1
- data/lib/moov/models/operations/listfeeplanagreements_request.rb +1 -1
- data/lib/moov/models/operations/listfeerevenue_request.rb +1 -1
- data/lib/moov/models/operations/listinvoices_request.rb +1 -1
- data/lib/moov/models/operations/listissuedcardauthorizationevents_request.rb +1 -1
- data/lib/moov/models/operations/listissuedcardauthorizations_request.rb +1 -1
- data/lib/moov/models/operations/listissuedcards_request.rb +2 -2
- data/lib/moov/models/operations/listissuedcardtransactions_request.rb +3 -7
- data/lib/moov/models/operations/listissuedcardtransactions_request.rbi +0 -2
- data/lib/moov/models/operations/listpartnerpricingagreements_request.rb +1 -1
- data/lib/moov/models/operations/listpaymentlinks_request.rb +1 -1
- data/lib/moov/models/operations/listproducts_request.rb +1 -1
- data/lib/moov/models/operations/listresidualfees_request.rb +1 -1
- data/lib/moov/models/operations/listresiduals_request.rb +1 -1
- data/lib/moov/models/operations/listschedules_request.rb +1 -1
- data/lib/moov/models/operations/liststatements_request.rb +1 -1
- data/lib/moov/models/operations/listsweeps_request.rb +1 -1
- data/lib/moov/models/operations/listtickets_request.rb +1 -1
- data/lib/moov/models/operations/listtransfers_request.rb +3 -15
- data/lib/moov/models/operations/listtransfers_request.rbi +0 -6
- data/lib/moov/models/operations/listwallets_request.rb +1 -1
- data/lib/moov/models/operations/listwallettransactions_request.rb +1 -1
- data/lib/moov/models/operations/retrievefees_request.rb +1 -1
- data/lib/moov/models/operations.rb +1 -4
- data/lib/moov/onboarding.rb +16 -16
- data/lib/moov/payment_links.rb +24 -24
- data/lib/moov/payment_methods.rb +8 -8
- data/lib/moov/ping.rb +4 -4
- data/lib/moov/products.rb +20 -20
- data/lib/moov/receipts.rb +8 -8
- data/lib/moov/representatives.rb +20 -20
- data/lib/moov/resolution_links.rb +16 -16
- data/lib/moov/scheduling.rb +24 -24
- data/lib/moov/sdkconfiguration.rb +4 -4
- data/lib/moov/statements.rb +8 -8
- data/lib/moov/support.rb +20 -20
- data/lib/moov/sweeps.rb +24 -24
- data/lib/moov/terminal_applications.rb +20 -20
- data/lib/moov/transfer_config.rb +12 -12
- data/lib/moov/transfers.rb +55 -186
- data/lib/moov/underwriting.rb +12 -12
- data/lib/moov/utils/retries.rb +1 -43
- data/lib/moov/utils/utils.rb +2 -6
- data/lib/moov/wallet_transactions.rb +8 -8
- data/lib/moov/wallets.rb +16 -16
- data/lib/moov/webhooks.rb +32 -32
- metadata +40 -62
- data/lib/moov/models/components/billingaddress.rb +0 -52
- data/lib/moov/models/components/billingaddress.rbi +0 -23
- data/lib/moov/models/components/billingadjustment.rb +0 -40
- data/lib/moov/models/components/billingadjustment.rbi +0 -17
- data/lib/moov/models/components/billingsummary_adjustmentfees.rb +0 -40
- data/lib/moov/models/components/billingsummary_adjustmentfees.rbi +0 -15
- data/lib/moov/models/components/createinvoicenotification.rb +0 -32
- data/lib/moov/models/components/createinvoicenotification.rbi +0 -13
- data/lib/moov/models/components/invoicenotificationlimitedchannel.rb +0 -36
- data/lib/moov/models/components/invoicepaymentoptions.rb +0 -40
- data/lib/moov/models/components/invoicepaymentoptions.rbi +0 -17
- data/lib/moov/models/components/invoicepaymentoptionserror.rb +0 -40
- data/lib/moov/models/components/invoicepaymentoptionserror.rbi +0 -17
- data/lib/moov/models/components/invoicepaymentoptionsupdate.rb +0 -40
- data/lib/moov/models/components/invoicepaymentoptionsupdate.rbi +0 -17
- data/lib/moov/models/components/issuingdeclinereason.rb +0 -35
- data/lib/moov/models/components/issuingdeclinereason.rbi +0 -11
- data/lib/moov/models/components/notificationchannel.rb +0 -18
- data/lib/moov/models/components/notificationchannel.rbi +0 -11
- data/lib/moov/models/components/oauth2clienttype.rb +0 -23
- data/lib/moov/models/components/oauth2clienttype.rbi +0 -11
- data/lib/moov/models/components/pushdeliveryspeed.rb +0 -21
- data/lib/moov/models/components/pushdeliveryspeed.rbi +0 -11
- data/lib/moov/models/components/pushoptions.rb +0 -39
- data/lib/moov/models/components/pushoptions.rbi +0 -15
- data/lib/moov/models/components/pushoptionserror.rb +0 -36
- data/lib/moov/models/components/pushoptionserror.rbi +0 -15
- data/lib/moov/models/components/pushoptionsupdate.rb +0 -39
- data/lib/moov/models/components/pushoptionsupdate.rbi +0 -15
- data/lib/moov/models/components/rtpfailurecode.rb +0 -29
- data/lib/moov/models/components/rtpfailurecode.rbi +0 -11
- data/lib/moov/models/components/rtptransactiondetails.rb +0 -58
- data/lib/moov/models/components/rtptransactiondetails.rbi +0 -25
- data/lib/moov/models/components/rtptransactionstatus.rb +0 -23
- data/lib/moov/models/components/rtptransactionstatus.rbi +0 -11
- data/lib/moov/models/components/transfercapture.rb +0 -36
- data/lib/moov/models/components/transfercapture.rbi +0 -15
- data/lib/moov/models/components/transfercontrols.rb +0 -48
- data/lib/moov/models/components/transfercontrols.rbi +0 -21
- data/lib/moov/models/components/webhookdataauthorizationexpiring.rb +0 -44
- data/lib/moov/models/components/webhookdataauthorizationexpiring.rbi +0 -19
- data/lib/moov/models/components/webhookdataeventtest.rbi +0 -13
- data/lib/moov/models/errors/invoicenotificationerror.rb +0 -36
- data/lib/moov/models/errors/invoicenotificationerror.rbi +0 -15
- data/lib/moov/models/errors/invoicenotificationratelimitederror.rb +0 -44
- data/lib/moov/models/errors/invoicenotificationratelimitederror.rbi +0 -19
- data/lib/moov/models/operations/createinvoicenotification_request.rb +0 -40
- data/lib/moov/models/operations/createinvoicenotification_request.rbi +0 -17
- data/lib/moov/models/operations/createinvoicenotification_response.rb +0 -44
- data/lib/moov/models/operations/listcancellations_request.rb +0 -36
- data/lib/moov/models/operations/listcancellations_request.rbi +0 -15
- data/lib/moov/models/operations/listcancellations_response.rbi +0 -21
|
@@ -24,10 +24,10 @@ module Moov
|
|
|
24
24
|
field :platform_fees, Crystalline::Nilable.new(Models::Components::BillingSummaryPlatformFees), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('platformFees') } }
|
|
25
25
|
# A summary of account fees.
|
|
26
26
|
field :account_fees, Crystalline::Nilable.new(Models::Components::BillingSummaryDetails), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('accountFees') } }
|
|
27
|
-
# The total amount of adjustment fees. This field is deprecated and will be removed in a future release.
|
|
27
|
+
# The total amount of adjustment fees. This field is deprecated and will be removed in a future release.
|
|
28
28
|
#
|
|
29
29
|
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
30
|
-
field :adjustment_fees, Crystalline::Nilable.new(Models::Components::
|
|
30
|
+
field :adjustment_fees, Crystalline::Nilable.new(Models::Components::AdjustmentFees), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('adjustmentFees') } }
|
|
31
31
|
# The total amount of other card fees. This field is deprecated and will be removed in a future release. Use summary.otherCardFees.
|
|
32
32
|
#
|
|
33
33
|
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
@@ -46,11 +46,9 @@ module Moov
|
|
|
46
46
|
field :monthly_partner_costs, Crystalline::Nilable.new(Models::Components::PartnerFees), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('monthlyPartnerCosts') } }
|
|
47
47
|
# Final partner payment after deducting monthlyPartnerCosts.
|
|
48
48
|
field :net_partner_payment, Crystalline::Nilable.new(Models::Components::AmountDecimal), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('netPartnerPayment') } }
|
|
49
|
-
# Final partner payment after deducting monthlyPartnerCosts and any adjustments.
|
|
50
|
-
field :total_net_partner_payment, Crystalline::Nilable.new(Models::Components::AmountDecimal), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('totalNetPartnerPayment') } }
|
|
51
49
|
|
|
52
|
-
sig { params(card_acquiring: T.nilable(Models::Components::CardAcquiring), ach: T.nilable(Models::Components::BillingSummaryDetails), instant_payments: T.nilable(Models::Components::BillingSummaryDetails), platform_fees: T.nilable(Models::Components::BillingSummaryPlatformFees), account_fees: T.nilable(Models::Components::BillingSummaryDetails), adjustment_fees: T.nilable(Models::Components::
|
|
53
|
-
def initialize(card_acquiring: nil, ach: nil, instant_payments: nil, platform_fees: nil, account_fees: nil, adjustment_fees: nil, other_fees: nil, other_card_fees: nil, total: nil, net_income_subtotal: nil, revenue_share: nil, residual_subtotal: nil, monthly_partner_costs: nil, net_partner_payment: nil
|
|
50
|
+
sig { params(card_acquiring: T.nilable(Models::Components::CardAcquiring), ach: T.nilable(Models::Components::BillingSummaryDetails), instant_payments: T.nilable(Models::Components::BillingSummaryDetails), platform_fees: T.nilable(Models::Components::BillingSummaryPlatformFees), account_fees: T.nilable(Models::Components::BillingSummaryDetails), adjustment_fees: T.nilable(Models::Components::AdjustmentFees), other_fees: T.nilable(Models::Components::OtherFees), other_card_fees: T.nilable(Models::Components::BillingSummaryDetails), total: T.nilable(Models::Components::AmountDecimal), net_income_subtotal: T.nilable(Models::Components::BillingSummaryDetails), revenue_share: T.nilable(::String), residual_subtotal: T.nilable(Models::Components::AmountDecimal), monthly_partner_costs: T.nilable(Models::Components::PartnerFees), net_partner_payment: T.nilable(Models::Components::AmountDecimal)).void }
|
|
51
|
+
def initialize(card_acquiring: nil, ach: nil, instant_payments: nil, platform_fees: nil, account_fees: nil, adjustment_fees: nil, other_fees: nil, other_card_fees: nil, total: nil, net_income_subtotal: nil, revenue_share: nil, residual_subtotal: nil, monthly_partner_costs: nil, net_partner_payment: nil)
|
|
54
52
|
@card_acquiring = card_acquiring
|
|
55
53
|
@ach = ach
|
|
56
54
|
@instant_payments = instant_payments
|
|
@@ -65,7 +63,6 @@ module Moov
|
|
|
65
63
|
@residual_subtotal = residual_subtotal
|
|
66
64
|
@monthly_partner_costs = monthly_partner_costs
|
|
67
65
|
@net_partner_payment = net_partner_payment
|
|
68
|
-
@total_net_partner_payment = total_net_partner_payment
|
|
69
66
|
end
|
|
70
67
|
|
|
71
68
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
@@ -85,7 +82,6 @@ module Moov
|
|
|
85
82
|
return false unless @residual_subtotal == other.residual_subtotal
|
|
86
83
|
return false unless @monthly_partner_costs == other.monthly_partner_costs
|
|
87
84
|
return false unless @net_partner_payment == other.net_partner_payment
|
|
88
|
-
return false unless @total_net_partner_payment == other.total_net_partner_payment
|
|
89
85
|
true
|
|
90
86
|
end
|
|
91
87
|
end
|
|
@@ -8,8 +8,7 @@ module Moov
|
|
|
8
8
|
module Models
|
|
9
9
|
module Components
|
|
10
10
|
|
|
11
|
-
class BusinessPresence
|
|
12
|
-
include ::Crystalline::Enum
|
|
11
|
+
class BusinessPresence < T::Enum
|
|
13
12
|
enums do
|
|
14
13
|
COMMERCIAL_OFFICE = new('commercial-office')
|
|
15
14
|
HOME_BASED = new('home-based')
|
|
@@ -18,7 +17,6 @@ module Moov
|
|
|
18
17
|
ONLINE_ONLY = new('online-only')
|
|
19
18
|
RETAIL_STOREFRONT = new('retail-storefront')
|
|
20
19
|
end
|
|
21
|
-
open!
|
|
22
20
|
end
|
|
23
21
|
end
|
|
24
22
|
end
|
|
@@ -19,7 +19,7 @@ module Moov
|
|
|
19
19
|
# A registered trade name under which the business operates, if different from its legal name.
|
|
20
20
|
field :doing_business_as, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('doingBusinessAs') } }
|
|
21
21
|
# The type of entity represented by this business.
|
|
22
|
-
field :business_type, Crystalline::Nilable.new(Models::Components::BusinessType), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('businessType'), 'decoder': ::Moov::Utils.
|
|
22
|
+
field :business_type, Crystalline::Nilable.new(Models::Components::BusinessType), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('businessType'), 'decoder': ::Moov::Utils.enum_from_string(Models::Components::BusinessType, true) } }
|
|
23
23
|
|
|
24
24
|
field :address, Crystalline::Nilable.new(Models::Components::Address), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('address') } }
|
|
25
25
|
|
|
@@ -39,7 +39,7 @@ module Moov
|
|
|
39
39
|
# Classification identifier for the industry. Use the [GET industries](https://docs.moov.io/api/enrichment/form-shortening/industries/get/) endpoint to retrieve an array of valid industry details for a merchant, inducing all industry field values.
|
|
40
40
|
field :industry, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('industry') } }
|
|
41
41
|
# If the business is a financial institution, this field describes its primary regulator.
|
|
42
|
-
field :primary_regulator, Crystalline::Nilable.new(Models::Components::PrimaryRegulator), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('primaryRegulator'), 'decoder': ::Moov::Utils.
|
|
42
|
+
field :primary_regulator, Crystalline::Nilable.new(Models::Components::PrimaryRegulator), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('primaryRegulator'), 'decoder': ::Moov::Utils.enum_from_string(Models::Components::PrimaryRegulator, true) } }
|
|
43
43
|
|
|
44
44
|
sig { params(legal_business_name: ::String, owners_provided: T::Boolean, doing_business_as: T.nilable(::String), business_type: T.nilable(Models::Components::BusinessType), address: T.nilable(Models::Components::Address), phone: T.nilable(Models::Components::PhoneNumber), email: T.nilable(::String), website: T.nilable(::String), description: T.nilable(::String), tax_id_provided: T.nilable(T::Boolean), representatives: T.nilable(T::Array[Models::Components::Representative]), industry_codes: T.nilable(Models::Components::IndustryCodes), industry: T.nilable(::String), primary_regulator: T.nilable(Models::Components::PrimaryRegulator)).void }
|
|
45
45
|
def initialize(legal_business_name:, owners_provided:, doing_business_as: nil, business_type: nil, address: nil, phone: nil, email: nil, website: nil, description: nil, tax_id_provided: nil, representatives: nil, industry_codes: nil, industry: nil, primary_regulator: nil)
|
|
@@ -8,8 +8,7 @@ module Moov
|
|
|
8
8
|
module Models
|
|
9
9
|
module Components
|
|
10
10
|
# BusinessType - The type of entity represented by this business.
|
|
11
|
-
class BusinessType
|
|
12
|
-
include ::Crystalline::Enum
|
|
11
|
+
class BusinessType < T::Enum
|
|
13
12
|
enums do
|
|
14
13
|
SOLE_PROPRIETORSHIP = new('soleProprietorship')
|
|
15
14
|
UNINCORPORATED_ASSOCIATION = new('unincorporatedAssociation')
|
|
@@ -22,7 +21,6 @@ module Moov
|
|
|
22
21
|
INCORPORATED_NON_PROFIT = new('incorporatedNonProfit')
|
|
23
22
|
GOVERNMENT_ENTITY = new('governmentEntity')
|
|
24
23
|
end
|
|
25
|
-
open!
|
|
26
24
|
end
|
|
27
25
|
end
|
|
28
26
|
end
|
|
@@ -11,8 +11,7 @@ module Moov
|
|
|
11
11
|
#
|
|
12
12
|
# If set to "auto" the UI will automatically select between
|
|
13
13
|
# "pay" and "confirm" for payments and payouts respectively.
|
|
14
|
-
class CallToAction
|
|
15
|
-
include ::Crystalline::Enum
|
|
14
|
+
class CallToAction < T::Enum
|
|
16
15
|
enums do
|
|
17
16
|
PAY = new('pay')
|
|
18
17
|
BOOK = new('book')
|
|
@@ -21,7 +20,6 @@ module Moov
|
|
|
21
20
|
CONFIRM = new('confirm')
|
|
22
21
|
AUTO = new('auto')
|
|
23
22
|
end
|
|
24
|
-
open!
|
|
25
23
|
end
|
|
26
24
|
end
|
|
27
25
|
end
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
module Moov
|
|
8
8
|
module Models
|
|
9
9
|
module Components
|
|
10
|
-
|
|
10
|
+
|
|
11
11
|
class Cancellation
|
|
12
12
|
extend T::Sig
|
|
13
13
|
include Crystalline::MetadataFields
|
|
@@ -15,7 +15,7 @@ module Moov
|
|
|
15
15
|
|
|
16
16
|
field :cancellation_id, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('cancellationID'), required: true } }
|
|
17
17
|
|
|
18
|
-
field :status, Models::Components::CancellationStatus, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('status'), required: true, 'decoder': ::Moov::Utils.
|
|
18
|
+
field :status, Models::Components::CancellationStatus, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('status'), required: true, 'decoder': ::Moov::Utils.enum_from_string(Models::Components::CancellationStatus, false) } }
|
|
19
19
|
|
|
20
20
|
field :created_on, ::DateTime, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('createdOn'), required: true, 'decoder': ::Moov::Utils.datetime_from_iso_format(false) } }
|
|
21
21
|
|
|
@@ -8,14 +8,12 @@ module Moov
|
|
|
8
8
|
module Models
|
|
9
9
|
module Components
|
|
10
10
|
|
|
11
|
-
class CancellationStatus
|
|
12
|
-
include ::Crystalline::Enum
|
|
11
|
+
class CancellationStatus < T::Enum
|
|
13
12
|
enums do
|
|
14
13
|
PENDING = new('pending')
|
|
15
14
|
COMPLETED = new('completed')
|
|
16
15
|
FAILED = new('failed')
|
|
17
16
|
end
|
|
18
|
-
open!
|
|
19
17
|
end
|
|
20
18
|
end
|
|
21
19
|
end
|
|
@@ -14,18 +14,12 @@ module Moov
|
|
|
14
14
|
|
|
15
15
|
# Moov account capabilities.
|
|
16
16
|
#
|
|
17
|
-
#
|
|
18
|
-
|
|
19
|
-
# The `send-funds`, `collect-funds`, and `wallet` capability IDs are deprecated. Request granular capabilities instead (for example, `send-funds.ach`, `collect-funds.card-payments`, or `wallet.balance`). Deprecated values will be removed in a future API version.
|
|
20
|
-
#
|
|
21
|
-
# Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to choose the right capabilities for your integration.
|
|
22
|
-
#
|
|
23
|
-
# The `production-app`, `platform.production-app`, and / or `platform.wallet-transfers` capabilities might appear in the list for your Partner account. These are read-only capabilities that Moov requests. These capabilities remain active with your account and require no additional action.
|
|
24
|
-
field :capability, Models::Components::CapabilityID, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('capability'), required: true, 'decoder': ::Moov::Utils.open_enum_from_string(Models::Components::CapabilityID, false) } }
|
|
17
|
+
# The `production-app`, `platform.production-app`, and / or `platform.wallet-transfers` capabilities might appear in your list. These are read-only capabilities that Moov requests and uses for account verification purposes. These capabilities remains active with your account and require no additional action.
|
|
18
|
+
field :capability, Models::Components::CapabilityID, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('capability'), required: true, 'decoder': ::Moov::Utils.enum_from_string(Models::Components::CapabilityID, false) } }
|
|
25
19
|
|
|
26
20
|
field :account_id, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('accountID'), required: true } }
|
|
27
21
|
# The status of the capability requested for an account.
|
|
28
|
-
field :status, Models::Components::CapabilityStatus, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('status'), required: true, 'decoder': ::Moov::Utils.
|
|
22
|
+
field :status, Models::Components::CapabilityStatus, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('status'), required: true, 'decoder': ::Moov::Utils.enum_from_string(Models::Components::CapabilityStatus, false) } }
|
|
29
23
|
|
|
30
24
|
field :created_on, ::DateTime, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('createdOn'), required: true, 'decoder': ::Moov::Utils.datetime_from_iso_format(false) } }
|
|
31
25
|
|
|
@@ -9,15 +9,8 @@ module Moov
|
|
|
9
9
|
module Components
|
|
10
10
|
# CapabilityID - Moov account capabilities.
|
|
11
11
|
#
|
|
12
|
-
#
|
|
13
|
-
|
|
14
|
-
# The `send-funds`, `collect-funds`, and `wallet` capability IDs are deprecated. Request granular capabilities instead (for example, `send-funds.ach`, `collect-funds.card-payments`, or `wallet.balance`). Deprecated values will be removed in a future API version.
|
|
15
|
-
#
|
|
16
|
-
# Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to choose the right capabilities for your integration.
|
|
17
|
-
#
|
|
18
|
-
# The `production-app`, `platform.production-app`, and / or `platform.wallet-transfers` capabilities might appear in the list for your Partner account. These are read-only capabilities that Moov requests. These capabilities remain active with your account and require no additional action.
|
|
19
|
-
class CapabilityID
|
|
20
|
-
include ::Crystalline::Enum
|
|
12
|
+
# The `production-app`, `platform.production-app`, and / or `platform.wallet-transfers` capabilities might appear in your list. These are read-only capabilities that Moov requests and uses for account verification purposes. These capabilities remains active with your account and require no additional action.
|
|
13
|
+
class CapabilityID < T::Enum
|
|
21
14
|
enums do
|
|
22
15
|
TRANSFERS = new('transfers')
|
|
23
16
|
SEND_FUNDS = new('send-funds')
|
|
@@ -33,12 +26,10 @@ module Moov
|
|
|
33
26
|
WALLET = new('wallet')
|
|
34
27
|
WALLET_BALANCE = new('wallet.balance')
|
|
35
28
|
CARD_ISSUING = new('card-issuing')
|
|
36
|
-
ISSUING_CARDHOLDER = new('issuing.cardholder')
|
|
37
29
|
PRODUCTION_APP = new('production-app')
|
|
38
30
|
PLATFORM_PRODUCTION_APP = new('platform.production-app')
|
|
39
31
|
PLATFORM_WALLET_TRANSFERS = new('platform.wallet-transfers')
|
|
40
32
|
end
|
|
41
|
-
open!
|
|
42
33
|
end
|
|
43
34
|
end
|
|
44
35
|
end
|
|
@@ -8,15 +8,13 @@ module Moov
|
|
|
8
8
|
module Models
|
|
9
9
|
module Components
|
|
10
10
|
# CapabilityStatus - The status of the capability requested for an account.
|
|
11
|
-
class CapabilityStatus
|
|
12
|
-
include ::Crystalline::Enum
|
|
11
|
+
class CapabilityStatus < T::Enum
|
|
13
12
|
enums do
|
|
14
13
|
ENABLED = new('enabled')
|
|
15
14
|
DISABLED = new('disabled')
|
|
16
15
|
PENDING = new('pending')
|
|
17
16
|
IN_REVIEW = new('in-review')
|
|
18
17
|
end
|
|
19
|
-
open!
|
|
20
18
|
end
|
|
21
19
|
end
|
|
22
20
|
end
|
|
@@ -19,9 +19,9 @@ module Moov
|
|
|
19
19
|
# This field can be used to identify specific payment methods across multiple accounts on your platform.
|
|
20
20
|
field :fingerprint, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('fingerprint'), required: true } }
|
|
21
21
|
# The card brand.
|
|
22
|
-
field :brand, Models::Components::CardBrand, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('brand'), required: true, 'decoder': ::Moov::Utils.
|
|
22
|
+
field :brand, Models::Components::CardBrand, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('brand'), required: true, 'decoder': ::Moov::Utils.enum_from_string(Models::Components::CardBrand, false) } }
|
|
23
23
|
# The type of the card.
|
|
24
|
-
field :card_type, Models::Components::CardType, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('cardType'), required: true, 'decoder': ::Moov::Utils.
|
|
24
|
+
field :card_type, Models::Components::CardType, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('cardType'), required: true, 'decoder': ::Moov::Utils.enum_from_string(Models::Components::CardType, false) } }
|
|
25
25
|
# Last four digits of the card number
|
|
26
26
|
field :last_four_card_number, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('lastFourCardNumber'), required: true } }
|
|
27
27
|
# The first six to eight digits of the card number, which identifies the financial institution that issued the card.
|
|
@@ -59,9 +59,9 @@ module Moov
|
|
|
59
59
|
# The results of the most recent card update request.
|
|
60
60
|
field :card_account_updater, Crystalline::Nilable.new(Models::Components::CardAccountUpdater), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('cardAccountUpdater') } }
|
|
61
61
|
# Indicates which level of domestic push-to-card transfer is supported by the card, if any.
|
|
62
|
-
field :domestic_push_to_card, Crystalline::Nilable.new(Models::Components::DomesticPushToCard), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('domesticPushToCard'), 'decoder': ::Moov::Utils.
|
|
62
|
+
field :domestic_push_to_card, Crystalline::Nilable.new(Models::Components::DomesticPushToCard), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('domesticPushToCard'), 'decoder': ::Moov::Utils.enum_from_string(Models::Components::DomesticPushToCard, true) } }
|
|
63
63
|
# Indicates if the card supports domestic pull-from-card transfer.
|
|
64
|
-
field :domestic_pull_from_card, Crystalline::Nilable.new(Models::Components::DomesticPullFromCard), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('domesticPullFromCard'), 'decoder': ::Moov::Utils.
|
|
64
|
+
field :domestic_pull_from_card, Crystalline::Nilable.new(Models::Components::DomesticPullFromCard), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('domesticPullFromCard'), 'decoder': ::Moov::Utils.enum_from_string(Models::Components::DomesticPullFromCard, true) } }
|
|
65
65
|
# Includes any payment methods created as a result of linking a card with the `x-wait-for` header set to `payment-method`.
|
|
66
66
|
#
|
|
67
67
|
# Only returned by the link card endpoint; not included when getting or listing cards.
|
|
@@ -15,7 +15,7 @@ module Moov
|
|
|
15
15
|
# Timestamp from the card network indicating when the card update was processed.
|
|
16
16
|
field :updated_on, Crystalline::Nilable.new(::DateTime), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('updatedOn'), 'decoder': ::Moov::Utils.datetime_from_iso_format(true) } }
|
|
17
17
|
# The results of the card update request.
|
|
18
|
-
field :update_type, Crystalline::Nilable.new(Models::Components::CardUpdateReason), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('updateType'), 'decoder': ::Moov::Utils.
|
|
18
|
+
field :update_type, Crystalline::Nilable.new(Models::Components::CardUpdateReason), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('updateType'), 'decoder': ::Moov::Utils.enum_from_string(Models::Components::CardUpdateReason, true) } }
|
|
19
19
|
|
|
20
20
|
sig { params(updated_on: T.nilable(::DateTime), update_type: T.nilable(Models::Components::CardUpdateReason)).void }
|
|
21
21
|
def initialize(updated_on: nil, update_type: nil)
|
|
@@ -8,13 +8,11 @@ module Moov
|
|
|
8
8
|
module Models
|
|
9
9
|
module Components
|
|
10
10
|
# CardAcquiringModel - Specifies the card processing pricing model
|
|
11
|
-
class CardAcquiringModel
|
|
12
|
-
include ::Crystalline::Enum
|
|
11
|
+
class CardAcquiringModel < T::Enum
|
|
13
12
|
enums do
|
|
14
13
|
COST_PLUS = new('cost-plus')
|
|
15
14
|
FLAT_RATE = new('flat-rate')
|
|
16
15
|
end
|
|
17
|
-
open!
|
|
18
16
|
end
|
|
19
17
|
end
|
|
20
18
|
end
|
|
@@ -19,7 +19,7 @@ module Moov
|
|
|
19
19
|
|
|
20
20
|
field :updated_on, ::DateTime, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('updatedOn'), required: true, 'decoder': ::Moov::Utils.datetime_from_iso_format(false) } }
|
|
21
21
|
|
|
22
|
-
field :status, Models::Components::RefundStatus, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('status'), required: true, 'decoder': ::Moov::Utils.
|
|
22
|
+
field :status, Models::Components::RefundStatus, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('status'), required: true, 'decoder': ::Moov::Utils.enum_from_string(Models::Components::RefundStatus, false) } }
|
|
23
23
|
|
|
24
24
|
field :amount, Models::Components::Amount, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('amount'), required: true } }
|
|
25
25
|
|
|
@@ -8,8 +8,7 @@ module Moov
|
|
|
8
8
|
module Models
|
|
9
9
|
module Components
|
|
10
10
|
# CardBrand - The card brand.
|
|
11
|
-
class CardBrand
|
|
12
|
-
include ::Crystalline::Enum
|
|
11
|
+
class CardBrand < T::Enum
|
|
13
12
|
enums do
|
|
14
13
|
AMERICAN_EXPRESS = new('American Express')
|
|
15
14
|
DISCOVER = new('Discover')
|
|
@@ -17,7 +16,6 @@ module Moov
|
|
|
17
16
|
VISA = new('Visa')
|
|
18
17
|
UNKNOWN = new('Unknown')
|
|
19
18
|
end
|
|
20
|
-
open!
|
|
21
19
|
end
|
|
22
20
|
end
|
|
23
21
|
end
|
|
@@ -32,11 +32,9 @@ module Moov
|
|
|
32
32
|
field :declines, Crystalline::Nilable.new(Models::Components::BillingCountAndAmount), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('declines') } }
|
|
33
33
|
# Details of refunded transactions.
|
|
34
34
|
field :refunds, Crystalline::Nilable.new(Models::Components::BillingCountAndAmount), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('refunds') } }
|
|
35
|
-
# Details of card cancellations.
|
|
36
|
-
field :card_cancellations, Crystalline::Nilable.new(Models::Components::BillingCountAndAmount), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('cardCancellations') } }
|
|
37
35
|
|
|
38
|
-
sig { params(total: Models::Components::BillingCountAndAmount, interchange: T.nilable(Models::Components::BillingCountAndAmount), interchange_programs: T.nilable(T::Array[Models::Components::BillingInterchangeProgramFee]), network_passthrough: T.nilable(Models::Components::BillingCountAndAmount), completed_domestic_online: T.nilable(Models::Components::BillingCountAndAmount), completed_domestic_in_person: T.nilable(Models::Components::BillingCountAndAmount), completed_international_online: T.nilable(Models::Components::BillingCountAndAmount), completed_international_in_person: T.nilable(Models::Components::BillingCountAndAmount), declines: T.nilable(Models::Components::BillingCountAndAmount), refunds: T.nilable(Models::Components::BillingCountAndAmount)
|
|
39
|
-
def initialize(total:, interchange: nil, interchange_programs: nil, network_passthrough: nil, completed_domestic_online: nil, completed_domestic_in_person: nil, completed_international_online: nil, completed_international_in_person: nil, declines: nil, refunds: nil
|
|
36
|
+
sig { params(total: Models::Components::BillingCountAndAmount, interchange: T.nilable(Models::Components::BillingCountAndAmount), interchange_programs: T.nilable(T::Array[Models::Components::BillingInterchangeProgramFee]), network_passthrough: T.nilable(Models::Components::BillingCountAndAmount), completed_domestic_online: T.nilable(Models::Components::BillingCountAndAmount), completed_domestic_in_person: T.nilable(Models::Components::BillingCountAndAmount), completed_international_online: T.nilable(Models::Components::BillingCountAndAmount), completed_international_in_person: T.nilable(Models::Components::BillingCountAndAmount), declines: T.nilable(Models::Components::BillingCountAndAmount), refunds: T.nilable(Models::Components::BillingCountAndAmount)).void }
|
|
37
|
+
def initialize(total:, interchange: nil, interchange_programs: nil, network_passthrough: nil, completed_domestic_online: nil, completed_domestic_in_person: nil, completed_international_online: nil, completed_international_in_person: nil, declines: nil, refunds: nil)
|
|
40
38
|
@total = total
|
|
41
39
|
@interchange = interchange
|
|
42
40
|
@interchange_programs = interchange_programs
|
|
@@ -47,7 +45,6 @@ module Moov
|
|
|
47
45
|
@completed_international_in_person = completed_international_in_person
|
|
48
46
|
@declines = declines
|
|
49
47
|
@refunds = refunds
|
|
50
|
-
@card_cancellations = card_cancellations
|
|
51
48
|
end
|
|
52
49
|
|
|
53
50
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
@@ -63,7 +60,6 @@ module Moov
|
|
|
63
60
|
return false unless @completed_international_in_person == other.completed_international_in_person
|
|
64
61
|
return false unless @declines == other.declines
|
|
65
62
|
return false unless @refunds == other.refunds
|
|
66
|
-
return false unless @card_cancellations == other.card_cancellations
|
|
67
63
|
true
|
|
68
64
|
end
|
|
69
65
|
end
|
|
@@ -8,14 +8,12 @@ module Moov
|
|
|
8
8
|
module Models
|
|
9
9
|
module Components
|
|
10
10
|
# CardIssuingNetwork - The name of the network a card transaction is routed through.
|
|
11
|
-
class CardIssuingNetwork
|
|
12
|
-
include ::Crystalline::Enum
|
|
11
|
+
class CardIssuingNetwork < T::Enum
|
|
13
12
|
enums do
|
|
14
13
|
DISCOVER = new('discover')
|
|
15
14
|
SHAZAM = new('shazam')
|
|
16
15
|
VISA = new('visa')
|
|
17
16
|
end
|
|
18
|
-
open!
|
|
19
17
|
end
|
|
20
18
|
end
|
|
21
19
|
end
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module Moov
|
|
8
|
+
module Models
|
|
9
|
+
module Components
|
|
10
|
+
# Metadata describing a card.
|
|
11
|
+
class CardMetadata
|
|
12
|
+
extend T::Sig
|
|
13
|
+
include Crystalline::MetadataFields
|
|
14
|
+
|
|
15
|
+
# The first six to eight digits of the card number, which identifies the financial institution that issued the card.
|
|
16
|
+
field :bin, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('bin'), required: true } }
|
|
17
|
+
# The card brand.
|
|
18
|
+
field :brand, Models::Components::CardBrand, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('brand'), required: true, 'decoder': ::Moov::Utils.enum_from_string(Models::Components::CardBrand, false) } }
|
|
19
|
+
# The type of the card.
|
|
20
|
+
field :card_type, Models::Components::CardType, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('cardType'), required: true, 'decoder': ::Moov::Utils.enum_from_string(Models::Components::CardType, false) } }
|
|
21
|
+
# The category or level of the card defined by the issuer.
|
|
22
|
+
# Examples include, but not limited to, "REWARDS", "TRADITIONAL REWARDS", "CLASSIC", and "CORPORATE PURCHASING".
|
|
23
|
+
field :card_category, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('cardCategory') } }
|
|
24
|
+
# If true, the card is for commercial use, or associated with a business.
|
|
25
|
+
# If false, the card is associated with a general consumer.
|
|
26
|
+
field :commercial, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('commercial') } }
|
|
27
|
+
# If true, the card issuing bank is regulated, and the scheme fees for debit transactions will be limited based on the Durbin Amendment.
|
|
28
|
+
# If false, the card issuing bank is not regulated, and the scheme fees will not be limited.
|
|
29
|
+
field :regulated, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('regulated') } }
|
|
30
|
+
# Financial institution that issued the card.
|
|
31
|
+
field :issuer, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('issuer') } }
|
|
32
|
+
# Country where the card was issued.
|
|
33
|
+
field :issuer_country, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('issuerCountry') } }
|
|
34
|
+
# Phone number of the issuer.
|
|
35
|
+
field :issuer_phone, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('issuerPhone') } }
|
|
36
|
+
# URL of the issuer.
|
|
37
|
+
field :issuer_url, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('issuerURL') } }
|
|
38
|
+
# Indicates if the card supports domestic pull-from-card transfer.
|
|
39
|
+
field :domestic_pull_from_card, Crystalline::Nilable.new(Models::Components::DomesticPullFromCard), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('domesticPullFromCard'), 'decoder': ::Moov::Utils.enum_from_string(Models::Components::DomesticPullFromCard, true) } }
|
|
40
|
+
# Indicates which level of domestic push-to-card transfer is supported by the card, if any.
|
|
41
|
+
field :domestic_push_to_card, Crystalline::Nilable.new(Models::Components::DomesticPushToCard), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('domesticPushToCard'), 'decoder': ::Moov::Utils.enum_from_string(Models::Components::DomesticPushToCard, true) } }
|
|
42
|
+
|
|
43
|
+
sig { params(bin: ::String, brand: Models::Components::CardBrand, card_type: Models::Components::CardType, card_category: T.nilable(::String), commercial: T.nilable(T::Boolean), regulated: T.nilable(T::Boolean), issuer: T.nilable(::String), issuer_country: T.nilable(::String), issuer_phone: T.nilable(::String), issuer_url: T.nilable(::String), domestic_pull_from_card: T.nilable(Models::Components::DomesticPullFromCard), domestic_push_to_card: T.nilable(Models::Components::DomesticPushToCard)).void }
|
|
44
|
+
def initialize(bin:, brand:, card_type:, card_category: nil, commercial: nil, regulated: nil, issuer: nil, issuer_country: nil, issuer_phone: nil, issuer_url: nil, domestic_pull_from_card: nil, domestic_push_to_card: nil)
|
|
45
|
+
@bin = bin
|
|
46
|
+
@brand = brand
|
|
47
|
+
@card_type = card_type
|
|
48
|
+
@card_category = card_category
|
|
49
|
+
@commercial = commercial
|
|
50
|
+
@regulated = regulated
|
|
51
|
+
@issuer = issuer
|
|
52
|
+
@issuer_country = issuer_country
|
|
53
|
+
@issuer_phone = issuer_phone
|
|
54
|
+
@issuer_url = issuer_url
|
|
55
|
+
@domestic_pull_from_card = domestic_pull_from_card
|
|
56
|
+
@domestic_push_to_card = domestic_push_to_card
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
60
|
+
def ==(other)
|
|
61
|
+
return false unless other.is_a? self.class
|
|
62
|
+
return false unless @bin == other.bin
|
|
63
|
+
return false unless @brand == other.brand
|
|
64
|
+
return false unless @card_type == other.card_type
|
|
65
|
+
return false unless @card_category == other.card_category
|
|
66
|
+
return false unless @commercial == other.commercial
|
|
67
|
+
return false unless @regulated == other.regulated
|
|
68
|
+
return false unless @issuer == other.issuer
|
|
69
|
+
return false unless @issuer_country == other.issuer_country
|
|
70
|
+
return false unless @issuer_phone == other.issuer_phone
|
|
71
|
+
return false unless @issuer_url == other.issuer_url
|
|
72
|
+
return false unless @domestic_pull_from_card == other.domestic_pull_from_card
|
|
73
|
+
return false unless @domestic_push_to_card == other.domestic_push_to_card
|
|
74
|
+
true
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
end
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Moov::Models::Components::CardMetadata
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Components::CardMetadata
|
|
11
|
+
def bin(); end
|
|
12
|
+
def bin=(str_); end
|
|
13
|
+
def brand(); end
|
|
14
|
+
def brand=(str_); end
|
|
15
|
+
def card_type(); end
|
|
16
|
+
def card_type=(str_); end
|
|
17
|
+
def card_category(); end
|
|
18
|
+
def card_category=(str_); end
|
|
19
|
+
def commercial(); end
|
|
20
|
+
def commercial=(str_); end
|
|
21
|
+
def regulated(); end
|
|
22
|
+
def regulated=(str_); end
|
|
23
|
+
def issuer(); end
|
|
24
|
+
def issuer=(str_); end
|
|
25
|
+
def issuer_country(); end
|
|
26
|
+
def issuer_country=(str_); end
|
|
27
|
+
def issuer_phone(); end
|
|
28
|
+
def issuer_phone=(str_); end
|
|
29
|
+
def issuer_url(); end
|
|
30
|
+
def issuer_url=(str_); end
|
|
31
|
+
def domestic_pull_from_card(); end
|
|
32
|
+
def domestic_pull_from_card=(str_); end
|
|
33
|
+
def domestic_push_to_card(); end
|
|
34
|
+
def domestic_push_to_card=(str_); end
|
|
35
|
+
end
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module Moov
|
|
8
|
+
module Models
|
|
9
|
+
module Components
|
|
10
|
+
|
|
11
|
+
class CardMetadataRequest
|
|
12
|
+
extend T::Sig
|
|
13
|
+
include Crystalline::MetadataFields
|
|
14
|
+
|
|
15
|
+
# Wraps a compact-serialized JSON Web Encryption (JWE) token used for secure transmission of sensitive data (e.g., PCI information) through intermediaries.
|
|
16
|
+
# This token is encrypted using the public key from /end-to-end-keys and wraps an AES key. For details and examples, refer to our
|
|
17
|
+
# [GitHub repository](https://github.com/moovfinancial/moov-go/blob/main/examples/e2ee/e2ee_test.go).
|
|
18
|
+
field :e2ee, Crystalline::Nilable.new(Models::Components::E2EEToken), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('e2ee') } }
|
|
19
|
+
# The full card number (PAN).
|
|
20
|
+
field :card_number, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('cardNumber') } }
|
|
21
|
+
|
|
22
|
+
sig { params(e2ee: T.nilable(Models::Components::E2EEToken), card_number: T.nilable(::String)).void }
|
|
23
|
+
def initialize(e2ee: nil, card_number: nil)
|
|
24
|
+
@e2ee = e2ee
|
|
25
|
+
@card_number = card_number
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
29
|
+
def ==(other)
|
|
30
|
+
return false unless other.is_a? self.class
|
|
31
|
+
return false unless @e2ee == other.e2ee
|
|
32
|
+
return false unless @card_number == other.card_number
|
|
33
|
+
true
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Moov::Models::Components::CardMetadataRequest
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Components::CardMetadataRequest
|
|
11
|
+
def e2ee(); end
|
|
12
|
+
def e2ee=(str_); end
|
|
13
|
+
def card_number(); end
|
|
14
|
+
def card_number=(str_); end
|
|
15
|
+
end
|
|
@@ -13,18 +13,16 @@ module Moov
|
|
|
13
13
|
include Crystalline::MetadataFields
|
|
14
14
|
|
|
15
15
|
# Status of a transaction within the card payment lifecycle.
|
|
16
|
-
field :status, Crystalline::Nilable.new(Models::Components::CardTransactionStatus), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('status'), 'decoder': ::Moov::Utils.
|
|
16
|
+
field :status, Crystalline::Nilable.new(Models::Components::CardTransactionStatus), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('status'), 'decoder': ::Moov::Utils.enum_from_string(Models::Components::CardTransactionStatus, true) } }
|
|
17
17
|
|
|
18
|
-
field :failure_code, Crystalline::Nilable.new(Models::Components::CardTransactionFailureCode), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('failureCode'), 'decoder': ::Moov::Utils.
|
|
18
|
+
field :failure_code, Crystalline::Nilable.new(Models::Components::CardTransactionFailureCode), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('failureCode'), 'decoder': ::Moov::Utils.enum_from_string(Models::Components::CardTransactionFailureCode, true) } }
|
|
19
19
|
# An optional override of the default card statement descriptor for a transfer. Accounts must be enabled by Moov to set this field.
|
|
20
20
|
field :dynamic_descriptor, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('dynamicDescriptor') } }
|
|
21
|
-
# The scheduled date and time for the transfer to be delivered. This field is only valid for push-to-card transfers. Must be between 24 and 48 hours in the future in production. In sandbox mode, any future time up to 48 hours is accepted so integrations can test deferred delivery using the sandbox test cards with relaxed wait times.
|
|
22
|
-
field :scheduled_delivery_on, Crystalline::Nilable.new(::DateTime), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('scheduledDeliveryOn'), 'decoder': ::Moov::Utils.datetime_from_iso_format(true) } }
|
|
23
21
|
# Specifies the nature and initiator of a transaction.
|
|
24
22
|
#
|
|
25
23
|
# Crucial for recurring and merchant-initiated transactions as per card scheme rules.
|
|
26
24
|
# Omit for customer-initiated e-commerce transactions.
|
|
27
|
-
field :transaction_source, Crystalline::Nilable.new(Models::Components::TransactionSource), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('transactionSource'), 'decoder': ::Moov::Utils.
|
|
25
|
+
field :transaction_source, Crystalline::Nilable.new(Models::Components::TransactionSource), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('transactionSource'), 'decoder': ::Moov::Utils.enum_from_string(Models::Components::TransactionSource, true) } }
|
|
28
26
|
|
|
29
27
|
field :initiated_on, Crystalline::Nilable.new(::DateTime), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('initiatedOn'), 'decoder': ::Moov::Utils.datetime_from_iso_format(true) } }
|
|
30
28
|
|
|
@@ -37,8 +35,6 @@ module Moov
|
|
|
37
35
|
field :canceled_on, Crystalline::Nilable.new(::DateTime), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('canceledOn'), 'decoder': ::Moov::Utils.datetime_from_iso_format(true) } }
|
|
38
36
|
|
|
39
37
|
field :completed_on, Crystalline::Nilable.new(::DateTime), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('completedOn'), 'decoder': ::Moov::Utils.datetime_from_iso_format(true) } }
|
|
40
|
-
|
|
41
|
-
field :deferred_on, Crystalline::Nilable.new(::DateTime), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('deferredOn'), 'decoder': ::Moov::Utils.datetime_from_iso_format(true) } }
|
|
42
38
|
# The program assigned by the card network that determines the interchange rate for the transfer.
|
|
43
39
|
#
|
|
44
40
|
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
@@ -48,12 +44,11 @@ module Moov
|
|
|
48
44
|
# An alphanumeric code generated by the card network to demonstrate approval for the transaction.
|
|
49
45
|
field :authorization_code, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('authorizationCode') } }
|
|
50
46
|
|
|
51
|
-
sig { params(status: T.nilable(Models::Components::CardTransactionStatus), failure_code: T.nilable(Models::Components::CardTransactionFailureCode), dynamic_descriptor: T.nilable(::String),
|
|
52
|
-
def initialize(status: nil, failure_code: nil, dynamic_descriptor: nil,
|
|
47
|
+
sig { params(status: T.nilable(Models::Components::CardTransactionStatus), failure_code: T.nilable(Models::Components::CardTransactionFailureCode), dynamic_descriptor: T.nilable(::String), transaction_source: T.nilable(Models::Components::TransactionSource), initiated_on: T.nilable(::DateTime), confirmed_on: T.nilable(::DateTime), settled_on: T.nilable(::DateTime), failed_on: T.nilable(::DateTime), canceled_on: T.nilable(::DateTime), completed_on: T.nilable(::DateTime), interchange_qualification: T.nilable(::String), fee_program: T.nilable(::String), authorization_code: T.nilable(::String)).void }
|
|
48
|
+
def initialize(status: nil, failure_code: nil, dynamic_descriptor: nil, transaction_source: nil, initiated_on: nil, confirmed_on: nil, settled_on: nil, failed_on: nil, canceled_on: nil, completed_on: nil, interchange_qualification: nil, fee_program: nil, authorization_code: nil)
|
|
53
49
|
@status = status
|
|
54
50
|
@failure_code = failure_code
|
|
55
51
|
@dynamic_descriptor = dynamic_descriptor
|
|
56
|
-
@scheduled_delivery_on = scheduled_delivery_on
|
|
57
52
|
@transaction_source = transaction_source
|
|
58
53
|
@initiated_on = initiated_on
|
|
59
54
|
@confirmed_on = confirmed_on
|
|
@@ -61,7 +56,6 @@ module Moov
|
|
|
61
56
|
@failed_on = failed_on
|
|
62
57
|
@canceled_on = canceled_on
|
|
63
58
|
@completed_on = completed_on
|
|
64
|
-
@deferred_on = deferred_on
|
|
65
59
|
@interchange_qualification = interchange_qualification
|
|
66
60
|
@fee_program = fee_program
|
|
67
61
|
@authorization_code = authorization_code
|
|
@@ -73,7 +67,6 @@ module Moov
|
|
|
73
67
|
return false unless @status == other.status
|
|
74
68
|
return false unless @failure_code == other.failure_code
|
|
75
69
|
return false unless @dynamic_descriptor == other.dynamic_descriptor
|
|
76
|
-
return false unless @scheduled_delivery_on == other.scheduled_delivery_on
|
|
77
70
|
return false unless @transaction_source == other.transaction_source
|
|
78
71
|
return false unless @initiated_on == other.initiated_on
|
|
79
72
|
return false unless @confirmed_on == other.confirmed_on
|
|
@@ -81,7 +74,6 @@ module Moov
|
|
|
81
74
|
return false unless @failed_on == other.failed_on
|
|
82
75
|
return false unless @canceled_on == other.canceled_on
|
|
83
76
|
return false unless @completed_on == other.completed_on
|
|
84
|
-
return false unless @deferred_on == other.deferred_on
|
|
85
77
|
return false unless @interchange_qualification == other.interchange_qualification
|
|
86
78
|
return false unless @fee_program == other.fee_program
|
|
87
79
|
return false unless @authorization_code == other.authorization_code
|