moov_ruby 0.3.31 → 24.1.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/moov/client.rb +1 -3
- data/lib/moov/fee_plans.rb +0 -124
- data/lib/moov/models/components/accounttype.rb +0 -1
- data/lib/moov/models/components/bankaccountholdertype.rb +0 -1
- data/lib/moov/models/components/capabilityid.rb +0 -11
- data/lib/moov/models/components/createaccount.rb +3 -3
- data/lib/moov/models/components/enrichedindustries.rb +2 -2
- data/lib/moov/models/components/enrichedindustry.rb +44 -0
- data/lib/moov/models/components/enrichedindustry.rbi +19 -0
- data/lib/moov/models/components/incurredfee.rb +8 -8
- data/lib/moov/models/components/paymentmethodtype.rb +0 -2
- data/lib/moov/models/components/profile.rb +2 -6
- data/lib/moov/models/components/profile.rbi +0 -2
- data/lib/moov/models/components/requirementid.rb +0 -54
- data/lib/moov/models/components/residual.rb +13 -19
- data/lib/moov/models/components/residual.rbi +0 -2
- data/lib/moov/models/components/transfer.rb +2 -6
- data/lib/moov/models/components/transfer.rbi +0 -2
- data/lib/moov/models/components/transferoptions.rb +3 -3
- data/lib/moov/models/components/transfersource.rb +2 -6
- data/lib/moov/models/components/transfersource.rbi +0 -2
- data/lib/moov/models/components/underwriting.rb +9 -37
- data/lib/moov/models/components/underwriting.rbi +0 -14
- data/lib/moov/models/components.rb +1 -80
- data/lib/moov/models/errors/transfer_error.rb +2 -6
- data/lib/moov/models/errors/transfer_error.rbi +0 -2
- data/lib/moov/models/errors.rb +0 -7
- data/lib/moov/models/operations/getpaymentmethod_response.rb +2 -2
- data/lib/moov/models/operations/getresidual_request.rb +1 -1
- data/lib/moov/models/operations/listaccounts_request.rb +2 -2
- data/lib/moov/models/operations/listconnectedaccountsforaccount_request.rb +2 -2
- data/lib/moov/models/operations/listpaymentmethods_response.rb +2 -2
- data/lib/moov/models/operations/listresidualfees_request.rb +1 -1
- data/lib/moov/models/operations.rb +0 -27
- data/lib/moov/payment_methods.rb +2 -2
- data/lib/moov/sdkconfiguration.rb +4 -4
- data/lib/moov/underwriting.rb +0 -166
- data/lib/moov_ruby.rb +0 -2
- metadata +4 -232
- data/lib/moov/invoices.rb +0 -914
- data/lib/moov/models/components/amountdecimalupdate.rb +0 -38
- data/lib/moov/models/components/amountdecimalupdate.rbi +0 -15
- data/lib/moov/models/components/businesspresence.rb +0 -25
- data/lib/moov/models/components/businesspresence.rbi +0 -11
- data/lib/moov/models/components/cardacceptancemethods.rb +0 -40
- data/lib/moov/models/components/cardacceptancemethods.rbi +0 -17
- data/lib/moov/models/components/cardacceptancemethodserror.rb +0 -40
- data/lib/moov/models/components/cardacceptancemethodserror.rbi +0 -17
- data/lib/moov/models/components/cardpresentpaymentpaymentmethod.rb +0 -40
- data/lib/moov/models/components/cardpresentpaymentpaymentmethod.rbi +0 -17
- data/lib/moov/models/components/cardpresentpaymentpaymentmethod_paymentmethodtype.rb +0 -20
- data/lib/moov/models/components/cardpresentpaymentpaymentmethod_paymentmethodtype.rbi +0 -11
- data/lib/moov/models/components/collectfunds.rb +0 -36
- data/lib/moov/models/components/collectfunds.rbi +0 -15
- data/lib/moov/models/components/collectfundsach.rb +0 -32
- data/lib/moov/models/components/collectfundsach.rbi +0 -13
- data/lib/moov/models/components/collectfundsacherror.rb +0 -32
- data/lib/moov/models/components/collectfundsacherror.rbi +0 -13
- data/lib/moov/models/components/collectfundscardpayments.rb +0 -48
- data/lib/moov/models/components/collectfundscardpayments.rbi +0 -21
- data/lib/moov/models/components/collectfundscardpaymentserror.rb +0 -48
- data/lib/moov/models/components/collectfundscardpaymentserror.rbi +0 -21
- data/lib/moov/models/components/collectfundserror.rb +0 -36
- data/lib/moov/models/components/collectfundserror.rbi +0 -15
- data/lib/moov/models/components/createaccounttype.rb +0 -21
- data/lib/moov/models/components/createaccounttype.rbi +0 -11
- data/lib/moov/models/components/createinvoice.rb +0 -52
- data/lib/moov/models/components/createinvoice.rbi +0 -23
- data/lib/moov/models/components/createinvoicelineitem.rb +0 -52
- data/lib/moov/models/components/createinvoicelineitem.rbi +0 -23
- data/lib/moov/models/components/createinvoicelineitemoption.rb +0 -48
- data/lib/moov/models/components/createinvoicelineitemoption.rbi +0 -21
- data/lib/moov/models/components/createinvoicelineitemoptionvalidationerror.rb +0 -44
- data/lib/moov/models/components/createinvoicelineitemoptionvalidationerror.rbi +0 -19
- data/lib/moov/models/components/createinvoicelineitems.rb +0 -32
- data/lib/moov/models/components/createinvoicelineitems.rbi +0 -13
- data/lib/moov/models/components/createinvoicelineitemsupdate.rb +0 -32
- data/lib/moov/models/components/createinvoicelineitemsupdate.rbi +0 -13
- data/lib/moov/models/components/createinvoicelineitemsvalidationerror.rb +0 -32
- data/lib/moov/models/components/createinvoicelineitemsvalidationerror.rbi +0 -13
- data/lib/moov/models/components/createinvoicelineitemvalidationerror.rb +0 -48
- data/lib/moov/models/components/createinvoicelineitemvalidationerror.rbi +0 -21
- data/lib/moov/models/components/createinvoicepayment.rb +0 -44
- data/lib/moov/models/components/createinvoicepayment.rbi +0 -19
- data/lib/moov/models/components/createticket.rb +0 -48
- data/lib/moov/models/components/createticket.rbi +0 -21
- data/lib/moov/models/components/createticketcontacterror.rb +0 -36
- data/lib/moov/models/components/createticketcontacterror.rbi +0 -15
- data/lib/moov/models/components/entrymode.rb +0 -20
- data/lib/moov/models/components/entrymode.rbi +0 -11
- data/lib/moov/models/components/estimatedactivity.rb +0 -40
- data/lib/moov/models/components/estimatedactivity.rbi +0 -17
- data/lib/moov/models/components/estimatedactivityerror.rb +0 -40
- data/lib/moov/models/components/estimatedactivityerror.rbi +0 -17
- data/lib/moov/models/components/fulfillment.rb +0 -36
- data/lib/moov/models/components/fulfillment.rbi +0 -15
- data/lib/moov/models/components/fulfillmenterror.rb +0 -36
- data/lib/moov/models/components/fulfillmenterror.rbi +0 -15
- data/lib/moov/models/components/fulfillmentmethod.rb +0 -28
- data/lib/moov/models/components/fulfillmentmethod.rbi +0 -11
- data/lib/moov/models/components/fulfillmenttimeframe.rb +0 -27
- data/lib/moov/models/components/fulfillmenttimeframe.rbi +0 -11
- data/lib/moov/models/components/geographicreach.rb +0 -22
- data/lib/moov/models/components/geographicreach.rbi +0 -11
- data/lib/moov/models/components/guestprofile.rb +0 -41
- data/lib/moov/models/components/guestprofile.rbi +0 -17
- data/lib/moov/models/components/industrytaxonomy.rb +0 -48
- data/lib/moov/models/components/industrytaxonomy.rbi +0 -21
- data/lib/moov/models/components/instantbankcreditpaymentmethod.rb +0 -40
- data/lib/moov/models/components/instantbankcreditpaymentmethod.rbi +0 -17
- data/lib/moov/models/components/instantbankcreditpaymentmethod_paymentmethodtype.rb +0 -20
- data/lib/moov/models/components/instantbankcreditpaymentmethod_paymentmethodtype.rbi +0 -11
- data/lib/moov/models/components/invoice.rb +0 -116
- data/lib/moov/models/components/invoice.rbi +0 -55
- data/lib/moov/models/components/invoiceexternalpayment.rb +0 -40
- data/lib/moov/models/components/invoiceexternalpayment.rbi +0 -17
- data/lib/moov/models/components/invoicelineitem.rb +0 -52
- data/lib/moov/models/components/invoicelineitem.rbi +0 -23
- data/lib/moov/models/components/invoicelineitemimagemetadata.rb +0 -44
- data/lib/moov/models/components/invoicelineitemimagemetadata.rbi +0 -19
- data/lib/moov/models/components/invoicelineitemoption.rb +0 -48
- data/lib/moov/models/components/invoicelineitemoption.rbi +0 -21
- data/lib/moov/models/components/invoicelineitemoptionvalidationerror.rb +0 -44
- data/lib/moov/models/components/invoicelineitemoptionvalidationerror.rbi +0 -19
- data/lib/moov/models/components/invoicelineitems.rb +0 -32
- data/lib/moov/models/components/invoicelineitems.rbi +0 -13
- data/lib/moov/models/components/invoicelineitemsvalidationerror.rb +0 -32
- data/lib/moov/models/components/invoicelineitemsvalidationerror.rbi +0 -13
- data/lib/moov/models/components/invoicelineitemvalidationerror.rb +0 -48
- data/lib/moov/models/components/invoicelineitemvalidationerror.rbi +0 -21
- data/lib/moov/models/components/invoicepayment.rb +0 -48
- data/lib/moov/models/components/invoicepayment.rbi +0 -21
- data/lib/moov/models/components/invoicepaymenttype.rb +0 -21
- data/lib/moov/models/components/invoicepaymenttype.rbi +0 -11
- data/lib/moov/models/components/invoicetransferpayment.rb +0 -32
- data/lib/moov/models/components/invoicetransferpayment.rbi +0 -13
- data/lib/moov/models/components/itemlistnextpage.rb +0 -32
- data/lib/moov/models/components/itemlistnextpage.rbi +0 -13
- data/lib/moov/models/components/moneytransfer.rb +0 -36
- data/lib/moov/models/components/moneytransfer.rbi +0 -15
- data/lib/moov/models/components/moneytransfererror.rb +0 -36
- data/lib/moov/models/components/moneytransfererror.rbi +0 -15
- data/lib/moov/models/components/moneytransferpullfromcard.rb +0 -32
- data/lib/moov/models/components/moneytransferpullfromcard.rbi +0 -13
- data/lib/moov/models/components/moneytransferpullfromcarderror.rb +0 -32
- data/lib/moov/models/components/moneytransferpullfromcarderror.rbi +0 -13
- data/lib/moov/models/components/moneytransferpushtocard.rb +0 -32
- data/lib/moov/models/components/moneytransferpushtocard.rbi +0 -13
- data/lib/moov/models/components/moneytransferpushtocarderror.rb +0 -32
- data/lib/moov/models/components/moneytransferpushtocarderror.rbi +0 -13
- data/lib/moov/models/components/monthlyvolumerange.rb +0 -27
- data/lib/moov/models/components/monthlyvolumerange.rbi +0 -11
- data/lib/moov/models/components/partnerpricing.rb +0 -66
- data/lib/moov/models/components/partnerpricing.rbi +0 -29
- data/lib/moov/models/components/pendinglitigation.rb +0 -29
- data/lib/moov/models/components/pendinglitigation.rbi +0 -11
- data/lib/moov/models/components/refundpolicy.rb +0 -28
- data/lib/moov/models/components/refundpolicy.rbi +0 -11
- data/lib/moov/models/components/sendfunds.rb +0 -44
- data/lib/moov/models/components/sendfunds.rbi +0 -19
- data/lib/moov/models/components/sendfundsach.rb +0 -32
- data/lib/moov/models/components/sendfundsach.rbi +0 -13
- data/lib/moov/models/components/sendfundsacherror.rb +0 -32
- data/lib/moov/models/components/sendfundsacherror.rbi +0 -13
- data/lib/moov/models/components/sendfundserror.rb +0 -44
- data/lib/moov/models/components/sendfundserror.rbi +0 -19
- data/lib/moov/models/components/sendfundsinstantbank.rb +0 -32
- data/lib/moov/models/components/sendfundsinstantbank.rbi +0 -13
- data/lib/moov/models/components/sendfundsinstantbankerror.rb +0 -32
- data/lib/moov/models/components/sendfundsinstantbankerror.rbi +0 -13
- data/lib/moov/models/components/sendfundspushtocard.rb +0 -32
- data/lib/moov/models/components/sendfundspushtocard.rbi +0 -13
- data/lib/moov/models/components/sendfundspushtocarderror.rb +0 -32
- data/lib/moov/models/components/sendfundspushtocarderror.rbi +0 -13
- data/lib/moov/models/components/sendfundsrtp.rb +0 -32
- data/lib/moov/models/components/sendfundsrtp.rbi +0 -13
- data/lib/moov/models/components/sendfundsrtperror.rb +0 -32
- data/lib/moov/models/components/sendfundsrtperror.rbi +0 -13
- data/lib/moov/models/components/submissionintent.rb +0 -21
- data/lib/moov/models/components/submissionintent.rbi +0 -11
- data/lib/moov/models/components/terminalcard.rb +0 -78
- data/lib/moov/models/components/terminalcard.rbi +0 -35
- data/lib/moov/models/components/ticket.rb +0 -68
- data/lib/moov/models/components/ticket.rbi +0 -31
- data/lib/moov/models/components/ticketcontact.rb +0 -36
- data/lib/moov/models/components/ticketcontact.rbi +0 -15
- data/lib/moov/models/components/ticketmessage.rb +0 -40
- data/lib/moov/models/components/ticketmessage.rbi +0 -17
- data/lib/moov/models/components/updateinvoice.rb +0 -54
- data/lib/moov/models/components/updateinvoice.rbi +0 -23
- data/lib/moov/models/components/updateticket.rb +0 -32
- data/lib/moov/models/components/updateticket.rbi +0 -13
- data/lib/moov/models/components/updateticketstatus.rb +0 -20
- data/lib/moov/models/components/updateticketstatus.rbi +0 -11
- data/lib/moov/models/components/upsertunderwriting.rb +0 -60
- data/lib/moov/models/components/upsertunderwriting.rbi +0 -27
- data/lib/moov/models/components/volumesharebycustomertype.rb +0 -40
- data/lib/moov/models/components/volumesharebycustomertype.rbi +0 -17
- data/lib/moov/models/components/volumesharebycustomertypeerror.rb +0 -40
- data/lib/moov/models/components/volumesharebycustomertypeerror.rbi +0 -17
- data/lib/moov/models/errors/createinvoiceerror.rb +0 -56
- data/lib/moov/models/errors/createinvoiceerror.rbi +0 -25
- data/lib/moov/models/errors/createinvoicepaymenterror.rb +0 -48
- data/lib/moov/models/errors/createinvoicepaymenterror.rbi +0 -21
- data/lib/moov/models/errors/createticketerror.rb +0 -52
- data/lib/moov/models/errors/createticketerror.rbi +0 -23
- data/lib/moov/models/errors/listinvoicesvalidationerror.rb +0 -64
- data/lib/moov/models/errors/listinvoicesvalidationerror.rbi +0 -29
- data/lib/moov/models/errors/updateinvoiceerror.rb +0 -56
- data/lib/moov/models/errors/updateinvoiceerror.rbi +0 -25
- data/lib/moov/models/errors/updateticketerror.rb +0 -36
- data/lib/moov/models/errors/updateticketerror.rbi +0 -15
- data/lib/moov/models/errors/upsertunderwritingerror.rb +0 -88
- data/lib/moov/models/errors/upsertunderwritingerror.rbi +0 -41
- data/lib/moov/models/operations/createinvoice_request.rb +0 -49
- data/lib/moov/models/operations/createinvoice_request.rbi +0 -17
- data/lib/moov/models/operations/createinvoice_response.rb +0 -48
- data/lib/moov/models/operations/createinvoice_response.rbi +0 -21
- data/lib/moov/models/operations/createinvoicepayment_request.rb +0 -53
- data/lib/moov/models/operations/createinvoicepayment_request.rbi +0 -19
- data/lib/moov/models/operations/createinvoicepayment_response.rb +0 -48
- data/lib/moov/models/operations/createinvoicepayment_response.rbi +0 -21
- data/lib/moov/models/operations/createticket_request.rb +0 -49
- data/lib/moov/models/operations/createticket_request.rbi +0 -17
- data/lib/moov/models/operations/createticket_response.rb +0 -48
- data/lib/moov/models/operations/createticket_response.rbi +0 -21
- data/lib/moov/models/operations/getinvoice_request.rb +0 -49
- data/lib/moov/models/operations/getinvoice_request.rbi +0 -17
- data/lib/moov/models/operations/getinvoice_response.rb +0 -48
- data/lib/moov/models/operations/getinvoice_response.rbi +0 -21
- data/lib/moov/models/operations/getticket_request.rb +0 -49
- data/lib/moov/models/operations/getticket_request.rbi +0 -17
- data/lib/moov/models/operations/getticket_response.rb +0 -48
- data/lib/moov/models/operations/getticket_response.rbi +0 -21
- data/lib/moov/models/operations/listinvoicepayments_request.rb +0 -49
- data/lib/moov/models/operations/listinvoicepayments_request.rbi +0 -17
- data/lib/moov/models/operations/listinvoicepayments_response.rb +0 -48
- data/lib/moov/models/operations/listinvoicepayments_response.rbi +0 -21
- data/lib/moov/models/operations/listinvoices_request.rb +0 -77
- data/lib/moov/models/operations/listinvoices_request.rbi +0 -31
- data/lib/moov/models/operations/listinvoices_response.rb +0 -48
- data/lib/moov/models/operations/listinvoices_response.rbi +0 -21
- data/lib/moov/models/operations/listpartnerpricing_request.rb +0 -49
- data/lib/moov/models/operations/listpartnerpricing_request.rbi +0 -17
- data/lib/moov/models/operations/listpartnerpricing_response.rb +0 -48
- data/lib/moov/models/operations/listpartnerpricing_response.rbi +0 -21
- data/lib/moov/models/operations/listticketmessages_request.rb +0 -49
- data/lib/moov/models/operations/listticketmessages_request.rbi +0 -17
- data/lib/moov/models/operations/listticketmessages_response.rb +0 -48
- data/lib/moov/models/operations/listticketmessages_response.rbi +0 -21
- data/lib/moov/models/operations/listtickets_request.rb +0 -61
- data/lib/moov/models/operations/listtickets_request.rbi +0 -23
- data/lib/moov/models/operations/listtickets_response.rb +0 -48
- data/lib/moov/models/operations/listtickets_response.rbi +0 -21
- data/lib/moov/models/operations/listtickets_responsebody.rb +0 -36
- data/lib/moov/models/operations/listtickets_responsebody.rbi +0 -15
- data/lib/moov/models/operations/saveunderwriting_request.rb +0 -49
- data/lib/moov/models/operations/saveunderwriting_request.rbi +0 -17
- data/lib/moov/models/operations/saveunderwriting_response.rb +0 -48
- data/lib/moov/models/operations/saveunderwriting_response.rbi +0 -21
- data/lib/moov/models/operations/updateinvoice_request.rb +0 -53
- data/lib/moov/models/operations/updateinvoice_request.rbi +0 -19
- data/lib/moov/models/operations/updateinvoice_response.rb +0 -48
- data/lib/moov/models/operations/updateinvoice_response.rbi +0 -21
- data/lib/moov/models/operations/updateticket_request.rb +0 -53
- data/lib/moov/models/operations/updateticket_request.rbi +0 -19
- data/lib/moov/models/operations/updateticket_response.rb +0 -48
- data/lib/moov/models/operations/updateticket_response.rbi +0 -21
- data/lib/moov/support.rb +0 -748
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9cb7d6e33089cc848d6193f1e0165865b6a566ab6ff8d4b8fe1c9026c8692c74
|
|
4
|
+
data.tar.gz: c1214e894f0bde10a3dacebaab476cb9e6c40e77e33a5d1293f1eed6ef1758fe
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f089d3683c11a4d51a6fb3bc880223059442f3b046e4c37d28ce24388b8aa79b69dd847e050e72e87b7e9a1ab921e2b1b0af9b3351ffde0c018c03811f7ccdd0
|
|
7
|
+
data.tar.gz: b5578709d34b8a2b2e18cbf6c4370c7e97138f562dd735e41bd28744340b1219d02406d181a423ff641e916ca7f119b7f55cd23ceca4e3112f668063f80df1cb
|
data/lib/moov/client.rb
CHANGED
|
@@ -16,7 +16,7 @@ module Moov
|
|
|
16
16
|
class Client
|
|
17
17
|
extend T::Sig
|
|
18
18
|
|
|
19
|
-
attr_accessor :accounts, :adjustments, :apple_pay, :bank_accounts, :branding, :capabilities, :cards, :disputes, :fee_plans, :files, :images, :
|
|
19
|
+
attr_accessor :accounts, :adjustments, :apple_pay, :bank_accounts, :branding, :capabilities, :cards, :disputes, :fee_plans, :files, :images, :payment_links, :payment_methods, :products, :representatives, :scheduling, :statements, :sweeps, :account_terminal_applications, :transfers, :underwriting, :wallets, :wallet_transactions, :avatars, :end_to_end_encryption, :enriched_address, :enriched_profile, :webhooks, :industries, :institutions, :issuing_transactions, :card_issuing, :authentication, :onboarding, :ping, :receipts, :terminal_applications
|
|
20
20
|
|
|
21
21
|
# Instantiates the SDK, configuring it with the provided parameters.
|
|
22
22
|
#
|
|
@@ -104,7 +104,6 @@ module Moov
|
|
|
104
104
|
@fee_plans = FeePlans.new(@sdk_configuration)
|
|
105
105
|
@files = Files.new(@sdk_configuration)
|
|
106
106
|
@images = Images.new(@sdk_configuration)
|
|
107
|
-
@invoices = Invoices.new(@sdk_configuration)
|
|
108
107
|
@payment_links = PaymentLinks.new(@sdk_configuration)
|
|
109
108
|
@payment_methods = PaymentMethods.new(@sdk_configuration)
|
|
110
109
|
@products = Products.new(@sdk_configuration)
|
|
@@ -113,7 +112,6 @@ module Moov
|
|
|
113
112
|
@statements = Statements.new(@sdk_configuration)
|
|
114
113
|
@sweeps = Sweeps.new(@sdk_configuration)
|
|
115
114
|
@account_terminal_applications = AccountTerminalApplications.new(@sdk_configuration)
|
|
116
|
-
@support = Support.new(@sdk_configuration)
|
|
117
115
|
@transfers = Transfers.new(@sdk_configuration)
|
|
118
116
|
@underwriting = Underwriting.new(@sdk_configuration)
|
|
119
117
|
@wallets = Wallets.new(@sdk_configuration)
|
data/lib/moov/fee_plans.rb
CHANGED
|
@@ -818,130 +818,6 @@ module Moov
|
|
|
818
818
|
end
|
|
819
819
|
|
|
820
820
|
|
|
821
|
-
sig { params(account_id: ::String, x_moov_version: T.nilable(::String), plan_i_ds: T.nilable(T::Array[::String]), timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListPartnerPricingResponse) }
|
|
822
|
-
def list_partner_pricing(account_id:, x_moov_version: nil, plan_i_ds: nil, timeout_ms: nil)
|
|
823
|
-
# list_partner_pricing - List all partner pricing plans available for use by an account.
|
|
824
|
-
#
|
|
825
|
-
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
826
|
-
# you'll need to specify the `/accounts/{accountID}/profile.read` scope.
|
|
827
|
-
request = Models::Operations::ListPartnerPricingRequest.new(
|
|
828
|
-
account_id: account_id,
|
|
829
|
-
x_moov_version: x_moov_version,
|
|
830
|
-
plan_i_ds: plan_i_ds
|
|
831
|
-
)
|
|
832
|
-
url, params = @sdk_configuration.get_server_details
|
|
833
|
-
base_url = Utils.template_url(url, params)
|
|
834
|
-
url = Utils.generate_url(
|
|
835
|
-
Models::Operations::ListPartnerPricingRequest,
|
|
836
|
-
base_url,
|
|
837
|
-
'/accounts/{accountID}/partner-pricing',
|
|
838
|
-
request,
|
|
839
|
-
@sdk_configuration.globals
|
|
840
|
-
)
|
|
841
|
-
headers = Utils.get_headers(request, @sdk_configuration.globals)
|
|
842
|
-
headers = T.cast(headers, T::Hash[String, String])
|
|
843
|
-
query_params = Utils.get_query_params(Models::Operations::ListPartnerPricingRequest, request, nil, @sdk_configuration.globals)
|
|
844
|
-
headers['Accept'] = 'application/json'
|
|
845
|
-
headers['user-agent'] = @sdk_configuration.user_agent
|
|
846
|
-
|
|
847
|
-
security = @sdk_configuration.security_source&.call
|
|
848
|
-
|
|
849
|
-
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
850
|
-
timeout ||= @sdk_configuration.timeout
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
connection = @sdk_configuration.client
|
|
854
|
-
|
|
855
|
-
hook_ctx = SDKHooks::HookContext.new(
|
|
856
|
-
config: @sdk_configuration,
|
|
857
|
-
base_url: base_url,
|
|
858
|
-
oauth2_scopes: nil,
|
|
859
|
-
operation_id: 'listPartnerPricing',
|
|
860
|
-
security_source: @sdk_configuration.security_source
|
|
861
|
-
)
|
|
862
|
-
|
|
863
|
-
error = T.let(nil, T.nilable(StandardError))
|
|
864
|
-
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
begin
|
|
868
|
-
http_response = T.must(connection).get(url) do |req|
|
|
869
|
-
req.headers.merge!(headers)
|
|
870
|
-
req.options.timeout = timeout unless timeout.nil?
|
|
871
|
-
req.params = query_params
|
|
872
|
-
Utils.configure_request_security(req, security)
|
|
873
|
-
|
|
874
|
-
@sdk_configuration.hooks.before_request(
|
|
875
|
-
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
876
|
-
hook_ctx: hook_ctx
|
|
877
|
-
),
|
|
878
|
-
request: req
|
|
879
|
-
)
|
|
880
|
-
end
|
|
881
|
-
rescue StandardError => e
|
|
882
|
-
error = e
|
|
883
|
-
ensure
|
|
884
|
-
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
885
|
-
http_response = @sdk_configuration.hooks.after_error(
|
|
886
|
-
error: error,
|
|
887
|
-
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
|
888
|
-
hook_ctx: hook_ctx
|
|
889
|
-
),
|
|
890
|
-
response: http_response
|
|
891
|
-
)
|
|
892
|
-
else
|
|
893
|
-
http_response = @sdk_configuration.hooks.after_success(
|
|
894
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
895
|
-
hook_ctx: hook_ctx
|
|
896
|
-
),
|
|
897
|
-
response: http_response
|
|
898
|
-
)
|
|
899
|
-
end
|
|
900
|
-
|
|
901
|
-
if http_response.nil?
|
|
902
|
-
raise error if !error.nil?
|
|
903
|
-
raise 'no response'
|
|
904
|
-
end
|
|
905
|
-
end
|
|
906
|
-
|
|
907
|
-
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
908
|
-
if Utils.match_status_code(http_response.status, ['200'])
|
|
909
|
-
if Utils.match_content_type(content_type, 'application/json')
|
|
910
|
-
http_response = @sdk_configuration.hooks.after_success(
|
|
911
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
912
|
-
hook_ctx: hook_ctx
|
|
913
|
-
),
|
|
914
|
-
response: http_response
|
|
915
|
-
)
|
|
916
|
-
response_data = http_response.env.response_body
|
|
917
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Crystalline::Array.new(Models::Components::PartnerPricing))
|
|
918
|
-
response = Models::Operations::ListPartnerPricingResponse.new(
|
|
919
|
-
status_code: http_response.status,
|
|
920
|
-
content_type: content_type,
|
|
921
|
-
raw_response: http_response,
|
|
922
|
-
headers: http_response.headers,
|
|
923
|
-
partner_pricings: T.unsafe(obj)
|
|
924
|
-
)
|
|
925
|
-
|
|
926
|
-
return response
|
|
927
|
-
else
|
|
928
|
-
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
|
929
|
-
end
|
|
930
|
-
elsif Utils.match_status_code(http_response.status, ['401', '403', '429'])
|
|
931
|
-
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
932
|
-
elsif Utils.match_status_code(http_response.status, ['500', '504'])
|
|
933
|
-
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
934
|
-
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
|
935
|
-
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
936
|
-
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
|
937
|
-
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
938
|
-
else
|
|
939
|
-
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received'
|
|
940
|
-
|
|
941
|
-
end
|
|
942
|
-
end
|
|
943
|
-
|
|
944
|
-
|
|
945
821
|
sig { params(request: Models::Operations::ListPartnerPricingAgreementsRequest, timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListPartnerPricingAgreementsResponse) }
|
|
946
822
|
def list_partner_pricing_agreements(request:, timeout_ms: nil)
|
|
947
823
|
# list_partner_pricing_agreements - List all partner pricing agreements associated with an account.
|
|
@@ -16,21 +16,10 @@ module Moov
|
|
|
16
16
|
enums do
|
|
17
17
|
TRANSFERS = new('transfers')
|
|
18
18
|
SEND_FUNDS = new('send-funds')
|
|
19
|
-
SEND_FUNDS_PUSH_TO_CARD = new('send-funds.push-to-card')
|
|
20
|
-
MONEY_TRANSFER_PUSH_TO_CARD = new('money-transfer.push-to-card')
|
|
21
|
-
SEND_FUNDS_ACH = new('send-funds.ach')
|
|
22
|
-
SEND_FUNDS_RTP = new('send-funds.rtp')
|
|
23
|
-
SEND_FUNDS_INSTANT_BANK = new('send-funds.instant-bank')
|
|
24
19
|
COLLECT_FUNDS = new('collect-funds')
|
|
25
|
-
COLLECT_FUNDS_CARD_PAYMENTS = new('collect-funds.card-payments')
|
|
26
|
-
MONEY_TRANSFER_PULL_FROM_CARD = new('money-transfer.pull-from-card')
|
|
27
|
-
COLLECT_FUNDS_ACH = new('collect-funds.ach')
|
|
28
20
|
WALLET = new('wallet')
|
|
29
|
-
WALLET_BALANCE = new('wallet.balance')
|
|
30
21
|
CARD_ISSUING = new('card-issuing')
|
|
31
22
|
PRODUCTION_APP = new('production-app')
|
|
32
|
-
PLATFORM_PRODUCTION_APP = new('platform.production-app')
|
|
33
|
-
PLATFORM_WALLET_TRANSFERS = new('platform.wallet-transfers')
|
|
34
23
|
end
|
|
35
24
|
end
|
|
36
25
|
end
|
|
@@ -12,8 +12,8 @@ module Moov
|
|
|
12
12
|
extend T::Sig
|
|
13
13
|
include Crystalline::MetadataFields
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
field :account_type, Models::Components::
|
|
15
|
+
# The type of entity represented by this account.
|
|
16
|
+
field :account_type, Models::Components::AccountType, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('accountType'), required: true, 'decoder': Utils.enum_from_string(Models::Components::AccountType, false) } }
|
|
17
17
|
|
|
18
18
|
field :profile, Models::Components::CreateProfile, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('profile'), required: true } }
|
|
19
19
|
# Free-form key-value pair list. Useful for storing information that is not captured elsewhere.
|
|
@@ -32,7 +32,7 @@ module Moov
|
|
|
32
32
|
# The operating mode for an account.
|
|
33
33
|
field :mode, Crystalline::Nilable.new(Models::Components::Mode), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('mode'), 'decoder': Utils.enum_from_string(Models::Components::Mode, true) } }
|
|
34
34
|
|
|
35
|
-
sig { params(account_type: Models::Components::
|
|
35
|
+
sig { params(account_type: Models::Components::AccountType, profile: Models::Components::CreateProfile, metadata: T.nilable(T::Hash[Symbol, ::String]), terms_of_service: T.nilable(Models::Components::TermsOfServicePayload), foreign_id: T.nilable(::String), customer_support: T.nilable(Models::Components::CustomerSupport), settings: T.nilable(Models::Components::Settings), capabilities: T.nilable(T::Array[Models::Components::CapabilityID]), mode: T.nilable(Models::Components::Mode)).void }
|
|
36
36
|
def initialize(account_type:, profile:, metadata: nil, terms_of_service: nil, foreign_id: nil, customer_support: nil, settings: nil, capabilities: nil, mode: nil)
|
|
37
37
|
@account_type = account_type
|
|
38
38
|
@profile = profile
|
|
@@ -13,9 +13,9 @@ module Moov
|
|
|
13
13
|
include Crystalline::MetadataFields
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
field :industries, Crystalline::Array.new(Models::Components::
|
|
16
|
+
field :industries, Crystalline::Array.new(Models::Components::EnrichedIndustry), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('industries'), required: true } }
|
|
17
17
|
|
|
18
|
-
sig { params(industries: T::Array[Models::Components::
|
|
18
|
+
sig { params(industries: T::Array[Models::Components::EnrichedIndustry]).void }
|
|
19
19
|
def initialize(industries:)
|
|
20
20
|
@industries = industries
|
|
21
21
|
end
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
# An industry's MCC/SIC/NAICS codes, along with descriptive title.
|
|
11
|
+
class EnrichedIndustry
|
|
12
|
+
extend T::Sig
|
|
13
|
+
include Crystalline::MetadataFields
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
field :title, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('title'), required: true } }
|
|
17
|
+
# North American Industry Classification System
|
|
18
|
+
field :naics, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('naics'), required: true } }
|
|
19
|
+
# Standard Industrial Classification
|
|
20
|
+
field :sic, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('sic'), required: true } }
|
|
21
|
+
# Merchant Category Code
|
|
22
|
+
field :mcc, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('mcc'), required: true } }
|
|
23
|
+
|
|
24
|
+
sig { params(title: ::String, naics: ::String, sic: ::String, mcc: ::String).void }
|
|
25
|
+
def initialize(title:, naics:, sic:, mcc:)
|
|
26
|
+
@title = title
|
|
27
|
+
@naics = naics
|
|
28
|
+
@sic = sic
|
|
29
|
+
@mcc = mcc
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
33
|
+
def ==(other)
|
|
34
|
+
return false unless other.is_a? self.class
|
|
35
|
+
return false unless @title == other.title
|
|
36
|
+
return false unless @naics == other.naics
|
|
37
|
+
return false unless @sic == other.sic
|
|
38
|
+
return false unless @mcc == other.mcc
|
|
39
|
+
true
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Moov::Models::Components::EnrichedIndustry
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Components::EnrichedIndustry
|
|
11
|
+
def title(); end
|
|
12
|
+
def title=(str_); end
|
|
13
|
+
def naics(); end
|
|
14
|
+
def naics=(str_); end
|
|
15
|
+
def sic(); end
|
|
16
|
+
def sic=(str_); end
|
|
17
|
+
def mcc(); end
|
|
18
|
+
def mcc=(str_); end
|
|
19
|
+
end
|
|
@@ -14,21 +14,21 @@ module Moov
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
field :fee_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('feeID') } }
|
|
17
|
-
|
|
17
|
+
# Account ID the fee belongs to.
|
|
18
18
|
field :account_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('accountID') } }
|
|
19
|
-
|
|
19
|
+
# Wallet ID associated with the fee.
|
|
20
20
|
field :wallet_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('walletID') } }
|
|
21
|
-
|
|
21
|
+
# Timestamp when the fee was created.
|
|
22
22
|
field :created_on, Crystalline::Nilable.new(::DateTime), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('createdOn'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
|
23
|
-
|
|
23
|
+
# Name of the fee.
|
|
24
24
|
field :fee_name, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('feeName') } }
|
|
25
|
-
|
|
25
|
+
# The fee amount.
|
|
26
26
|
field :amount, Crystalline::Nilable.new(Models::Components::AmountDecimal), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('amount') } }
|
|
27
|
-
#
|
|
27
|
+
# Object indicating what generated the fee (TransferID, CardID, DisputeID, AccountID, or BankAccountID).
|
|
28
28
|
field :generated_by, Crystalline::Nilable.new(Models::Components::GeneratedBy), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('generatedBy') } }
|
|
29
|
-
|
|
29
|
+
# Describes the source of the fee, such as a Moov-set processing fee, a network pass-through fee, or an interchange or discount fee.
|
|
30
30
|
field :fee_group, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('feeGroup') } }
|
|
31
|
-
|
|
31
|
+
# Unique identifier for this residual payment calculation.
|
|
32
32
|
field :residual_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('residualID') } }
|
|
33
33
|
|
|
34
34
|
sig { params(fee_id: T.nilable(::String), account_id: T.nilable(::String), wallet_id: T.nilable(::String), created_on: T.nilable(::DateTime), fee_name: T.nilable(::String), amount: T.nilable(Models::Components::AmountDecimal), generated_by: T.nilable(Models::Components::GeneratedBy), fee_group: T.nilable(::String), residual_id: T.nilable(::String)).void }
|
|
@@ -16,14 +16,11 @@ module Moov
|
|
|
16
16
|
field :individual, Crystalline::Nilable.new(Models::Components::IndividualProfile), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('individual') } }
|
|
17
17
|
# Describes a business.
|
|
18
18
|
field :business, Crystalline::Nilable.new(Models::Components::BusinessProfile), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('business') } }
|
|
19
|
-
# Describes a guest account profile.
|
|
20
|
-
field :guest, Crystalline::Nilable.new(Models::Components::GuestProfile), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('guest') } }
|
|
21
19
|
|
|
22
|
-
sig { params(individual: T.nilable(Models::Components::IndividualProfile), business: T.nilable(Models::Components::BusinessProfile)
|
|
23
|
-
def initialize(individual: nil, business: nil
|
|
20
|
+
sig { params(individual: T.nilable(Models::Components::IndividualProfile), business: T.nilable(Models::Components::BusinessProfile)).void }
|
|
21
|
+
def initialize(individual: nil, business: nil)
|
|
24
22
|
@individual = individual
|
|
25
23
|
@business = business
|
|
26
|
-
@guest = guest
|
|
27
24
|
end
|
|
28
25
|
|
|
29
26
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
@@ -31,7 +28,6 @@ module Moov
|
|
|
31
28
|
return false unless other.is_a? self.class
|
|
32
29
|
return false unless @individual == other.individual
|
|
33
30
|
return false unless @business == other.business
|
|
34
|
-
return false unless @guest == other.guest
|
|
35
31
|
true
|
|
36
32
|
end
|
|
37
33
|
end
|
|
@@ -67,60 +67,6 @@ module Moov
|
|
|
67
67
|
REPRESENTATIVE_REP_UUID_IS_OWNER = new('representative.{rep-uuid}.is-owner')
|
|
68
68
|
REPRESENTATIVE_REP_UUID_OWNERSHIP = new('representative.{rep-uuid}.ownership')
|
|
69
69
|
DOCUMENT_DOC_UUID_ = new('document.{doc-uuid}')
|
|
70
|
-
UNDERWRITING_BUSINESS_PRESENCE = new('underwriting.businessPresence')
|
|
71
|
-
UNDERWRITING_GEOGRAPHIC_REACH = new('underwriting.geographicReach')
|
|
72
|
-
UNDERWRITING_VOLUME_SHARE_BY_CUSTOMER_TYPE = new('underwriting.volumeShareByCustomerType')
|
|
73
|
-
UNDERWRITING_PENDING_LITIGATION = new('underwriting.pendingLitigation')
|
|
74
|
-
UNDERWRITING_DOCUMENTS_PROCESSING_STATEMENTS_PAST3_MONTHS = new('underwriting.documents.processingStatementsPast3Months')
|
|
75
|
-
UNDERWRITING_COLLECT_FUNDS_CARD_PAYMENTS_CARD_ACCEPTANCE_METHODS = new('underwriting.collectFunds.cardPayments.cardAcceptanceMethods')
|
|
76
|
-
UNDERWRITING_COLLECT_FUNDS_CARD_PAYMENTS_CURRENTLY_ACCEPTS_CARDS = new('underwriting.collectFunds.cardPayments.currentlyAcceptsCards')
|
|
77
|
-
UNDERWRITING_COLLECT_FUNDS_CARD_PAYMENTS_ESTIMATED_ACTIVITY_AVERAGE_TRANSACTION_AMOUNT = new('underwriting.collectFunds.cardPayments.estimatedActivity.averageTransactionAmount')
|
|
78
|
-
UNDERWRITING_COLLECT_FUNDS_CARD_PAYMENTS_ESTIMATED_ACTIVITY_MAXIMUM_TRANSACTION_AMOUNT = new('underwriting.collectFunds.cardPayments.estimatedActivity.maximumTransactionAmount')
|
|
79
|
-
UNDERWRITING_COLLECT_FUNDS_CARD_PAYMENTS_ESTIMATED_ACTIVITY_MONTHLY_VOLUME_RANGE = new('underwriting.collectFunds.cardPayments.estimatedActivity.monthlyVolumeRange')
|
|
80
|
-
UNDERWRITING_COLLECT_FUNDS_CARD_PAYMENTS_FULFILLMENT = new('underwriting.collectFunds.cardPayments.fulfillment')
|
|
81
|
-
UNDERWRITING_COLLECT_FUNDS_CARD_PAYMENTS_REFUND_POLICY = new('underwriting.collectFunds.cardPayments.refundPolicy')
|
|
82
|
-
UNDERWRITING_COLLECT_FUNDS_ACH_CARD_ACCEPTANCE_METHODS = new('underwriting.collectFunds.ach.cardAcceptanceMethods')
|
|
83
|
-
UNDERWRITING_COLLECT_FUNDS_ACH_CURRENTLY_ACCEPTS_CARDS = new('underwriting.collectFunds.ach.currentlyAcceptsCards')
|
|
84
|
-
UNDERWRITING_COLLECT_FUNDS_ACH_ESTIMATED_ACTIVITY_AVERAGE_TRANSACTION_AMOUNT = new('underwriting.collectFunds.ach.estimatedActivity.averageTransactionAmount')
|
|
85
|
-
UNDERWRITING_COLLECT_FUNDS_ACH_ESTIMATED_ACTIVITY_MAXIMUM_TRANSACTION_AMOUNT = new('underwriting.collectFunds.ach.estimatedActivity.maximumTransactionAmount')
|
|
86
|
-
UNDERWRITING_COLLECT_FUNDS_ACH_ESTIMATED_ACTIVITY_MONTHLY_VOLUME_RANGE = new('underwriting.collectFunds.ach.estimatedActivity.monthlyVolumeRange')
|
|
87
|
-
UNDERWRITING_COLLECT_FUNDS_ACH_FULFILLMENT = new('underwriting.collectFunds.ach.fulfillment')
|
|
88
|
-
UNDERWRITING_COLLECT_FUNDS_ACH_REFUND_POLICY = new('underwriting.collectFunds.ach.refundPolicy')
|
|
89
|
-
UNDERWRITING_SEND_FUNDS_ACH_CARD_ACCEPTANCE_METHODS = new('underwriting.sendFunds.ach.cardAcceptanceMethods')
|
|
90
|
-
UNDERWRITING_SEND_FUNDS_ACH_CURRENTLY_ACCEPTS_CARDS = new('underwriting.sendFunds.ach.currentlyAcceptsCards')
|
|
91
|
-
UNDERWRITING_SEND_FUNDS_ACH_ESTIMATED_ACTIVITY_AVERAGE_TRANSACTION_AMOUNT = new('underwriting.sendFunds.ach.estimatedActivity.averageTransactionAmount')
|
|
92
|
-
UNDERWRITING_SEND_FUNDS_ACH_ESTIMATED_ACTIVITY_MAXIMUM_TRANSACTION_AMOUNT = new('underwriting.sendFunds.ach.estimatedActivity.maximumTransactionAmount')
|
|
93
|
-
UNDERWRITING_SEND_FUNDS_ACH_ESTIMATED_ACTIVITY_MONTHLY_VOLUME_RANGE = new('underwriting.sendFunds.ach.estimatedActivity.monthlyVolumeRange')
|
|
94
|
-
UNDERWRITING_SEND_FUNDS_ACH_FULFILLMENT = new('underwriting.sendFunds.ach.fulfillment')
|
|
95
|
-
UNDERWRITING_SEND_FUNDS_ACH_REFUND_POLICY = new('underwriting.sendFunds.ach.refundPolicy')
|
|
96
|
-
UNDERWRITING_SEND_FUNDS_RTP_CARD_ACCEPTANCE_METHODS = new('underwriting.sendFunds.rtp.cardAcceptanceMethods')
|
|
97
|
-
UNDERWRITING_SEND_FUNDS_RTP_CURRENTLY_ACCEPTS_CARDS = new('underwriting.sendFunds.rtp.currentlyAcceptsCards')
|
|
98
|
-
UNDERWRITING_SEND_FUNDS_RTP_ESTIMATED_ACTIVITY_AVERAGE_TRANSACTION_AMOUNT = new('underwriting.sendFunds.rtp.estimatedActivity.averageTransactionAmount')
|
|
99
|
-
UNDERWRITING_SEND_FUNDS_RTP_ESTIMATED_ACTIVITY_MAXIMUM_TRANSACTION_AMOUNT = new('underwriting.sendFunds.rtp.estimatedActivity.maximumTransactionAmount')
|
|
100
|
-
UNDERWRITING_SEND_FUNDS_RTP_ESTIMATED_ACTIVITY_MONTHLY_VOLUME_RANGE = new('underwriting.sendFunds.rtp.estimatedActivity.monthlyVolumeRange')
|
|
101
|
-
UNDERWRITING_SEND_FUNDS_RTP_FULFILLMENT = new('underwriting.sendFunds.rtp.fulfillment')
|
|
102
|
-
UNDERWRITING_SEND_FUNDS_RTP_REFUND_POLICY = new('underwriting.sendFunds.rtp.refundPolicy')
|
|
103
|
-
UNDERWRITING_SEND_FUNDS_PUSH_TO_CARD_CARD_ACCEPTANCE_METHODS = new('underwriting.sendFunds.pushToCard.cardAcceptanceMethods')
|
|
104
|
-
UNDERWRITING_SEND_FUNDS_PUSH_TO_CARD_CURRENTLY_ACCEPTS_CARDS = new('underwriting.sendFunds.pushToCard.currentlyAcceptsCards')
|
|
105
|
-
UNDERWRITING_SEND_FUNDS_PUSH_TO_CARD_ESTIMATED_ACTIVITY_AVERAGE_TRANSACTION_AMOUNT = new('underwriting.sendFunds.pushToCard.estimatedActivity.averageTransactionAmount')
|
|
106
|
-
UNDERWRITING_SEND_FUNDS_PUSH_TO_CARD_ESTIMATED_ACTIVITY_MAXIMUM_TRANSACTION_AMOUNT = new('underwriting.sendFunds.pushToCard.estimatedActivity.maximumTransactionAmount')
|
|
107
|
-
UNDERWRITING_SEND_FUNDS_PUSH_TO_CARD_ESTIMATED_ACTIVITY_MONTHLY_VOLUME_RANGE = new('underwriting.sendFunds.pushToCard.estimatedActivity.monthlyVolumeRange')
|
|
108
|
-
UNDERWRITING_SEND_FUNDS_PUSH_TO_CARD_FULFILLMENT = new('underwriting.sendFunds.pushToCard.fulfillment')
|
|
109
|
-
UNDERWRITING_SEND_FUNDS_PUSH_TO_CARD_REFUND_POLICY = new('underwriting.sendFunds.pushToCard.refundPolicy')
|
|
110
|
-
UNDERWRITING_MONEY_TRANSFER_PULL_FROM_CARD_CARD_ACCEPTANCE_METHODS = new('underwriting.moneyTransfer.pullFromCard.cardAcceptanceMethods')
|
|
111
|
-
UNDERWRITING_MONEY_TRANSFER_PULL_FROM_CARD_CURRENTLY_ACCEPTS_CARDS = new('underwriting.moneyTransfer.pullFromCard.currentlyAcceptsCards')
|
|
112
|
-
UNDERWRITING_MONEY_TRANSFER_PULL_FROM_CARD_ESTIMATED_ACTIVITY_AVERAGE_TRANSACTION_AMOUNT = new('underwriting.moneyTransfer.pullFromCard.estimatedActivity.averageTransactionAmount')
|
|
113
|
-
UNDERWRITING_MONEY_TRANSFER_PULL_FROM_CARD_ESTIMATED_ACTIVITY_MAXIMUM_TRANSACTION_AMOUNT = new('underwriting.moneyTransfer.pullFromCard.estimatedActivity.maximumTransactionAmount')
|
|
114
|
-
UNDERWRITING_MONEY_TRANSFER_PULL_FROM_CARD_ESTIMATED_ACTIVITY_MONTHLY_VOLUME_RANGE = new('underwriting.moneyTransfer.pullFromCard.estimatedActivity.monthlyVolumeRange')
|
|
115
|
-
UNDERWRITING_MONEY_TRANSFER_PULL_FROM_CARD_FULFILLMENT = new('underwriting.moneyTransfer.pullFromCard.fulfillment')
|
|
116
|
-
UNDERWRITING_MONEY_TRANSFER_PULL_FROM_CARD_REFUND_POLICY = new('underwriting.moneyTransfer.pullFromCard.refundPolicy')
|
|
117
|
-
UNDERWRITING_MONEY_TRANSFER_PUSH_TO_CARD_CARD_ACCEPTANCE_METHODS = new('underwriting.moneyTransfer.pushToCard.cardAcceptanceMethods')
|
|
118
|
-
UNDERWRITING_MONEY_TRANSFER_PUSH_TO_CARD_CURRENTLY_ACCEPTS_CARDS = new('underwriting.moneyTransfer.pushToCard.currentlyAcceptsCards')
|
|
119
|
-
UNDERWRITING_MONEY_TRANSFER_PUSH_TO_CARD_ESTIMATED_ACTIVITY_AVERAGE_TRANSACTION_AMOUNT = new('underwriting.moneyTransfer.pushToCard.estimatedActivity.averageTransactionAmount')
|
|
120
|
-
UNDERWRITING_MONEY_TRANSFER_PUSH_TO_CARD_ESTIMATED_ACTIVITY_MAXIMUM_TRANSACTION_AMOUNT = new('underwriting.moneyTransfer.pushToCard.estimatedActivity.maximumTransactionAmount')
|
|
121
|
-
UNDERWRITING_MONEY_TRANSFER_PUSH_TO_CARD_ESTIMATED_ACTIVITY_MONTHLY_VOLUME_RANGE = new('underwriting.moneyTransfer.pushToCard.estimatedActivity.monthlyVolumeRange')
|
|
122
|
-
UNDERWRITING_MONEY_TRANSFER_PUSH_TO_CARD_FULFILLMENT = new('underwriting.moneyTransfer.pushToCard.fulfillment')
|
|
123
|
-
UNDERWRITING_MONEY_TRANSFER_PUSH_TO_CARD_REFUND_POLICY = new('underwriting.moneyTransfer.pushToCard.refundPolicy')
|
|
124
70
|
end
|
|
125
71
|
end
|
|
126
72
|
end
|
|
@@ -12,35 +12,31 @@ module Moov
|
|
|
12
12
|
extend T::Sig
|
|
13
13
|
include Crystalline::MetadataFields
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
# Unique identifier for this residual payment calculation.
|
|
16
16
|
field :residual_id, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('residualID'), required: true } }
|
|
17
|
-
|
|
17
|
+
# The partner account ID this residual belongs to.
|
|
18
18
|
field :partner_account_id, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('partnerAccountID'), required: true } }
|
|
19
|
-
|
|
19
|
+
# Start date and time of the residual calculation period.
|
|
20
20
|
field :period_start, ::DateTime, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('periodStart'), required: true, 'decoder': Utils.datetime_from_iso_format(false) } }
|
|
21
|
-
|
|
21
|
+
# End date and time of the residual calculation period.
|
|
22
22
|
field :period_end, ::DateTime, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('periodEnd'), required: true, 'decoder': Utils.datetime_from_iso_format(false) } }
|
|
23
|
-
|
|
23
|
+
# Total amount of merchant fees collected during the period. This represents the partner's revenue from merchant fees.
|
|
24
24
|
field :merchant_fees, Models::Components::AmountDecimal, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('merchantFees'), required: true } }
|
|
25
|
-
|
|
25
|
+
# Partner's total cost (buy rate) during the period.
|
|
26
26
|
field :partner_cost, Models::Components::AmountDecimal, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('partnerCost'), required: true } }
|
|
27
|
-
|
|
27
|
+
# Net income calculated as merchant fee revenue minus partner costs.
|
|
28
28
|
field :net_income, Models::Components::AmountDecimal, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('netIncome'), required: true } }
|
|
29
|
-
#
|
|
30
|
-
#
|
|
31
|
-
# For example, 2.25% is '2.25'.
|
|
29
|
+
# The revenue share percentage the partner receives, expressed as a decimal string (e.g., "25.00" for 25%).
|
|
32
30
|
field :revenue_share, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('revenueShare'), required: true } }
|
|
33
|
-
|
|
31
|
+
# The amount the partner receives as their share of the net income (netIncome × revenueShare).
|
|
34
32
|
field :residual_amount, Models::Components::AmountDecimal, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('residualAmount'), required: true } }
|
|
35
|
-
|
|
36
|
-
field :moov_share, Models::Components::AmountDecimal, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('moovShare'), required: true } }
|
|
37
|
-
|
|
33
|
+
# Timestamp when the residual was created.
|
|
38
34
|
field :created_on, ::DateTime, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('createdOn'), required: true, 'decoder': Utils.datetime_from_iso_format(false) } }
|
|
39
|
-
|
|
35
|
+
# Timestamp when the residual was last updated.
|
|
40
36
|
field :updated_on, ::DateTime, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('updatedOn'), required: true, 'decoder': Utils.datetime_from_iso_format(false) } }
|
|
41
37
|
|
|
42
|
-
sig { params(residual_id: ::String, partner_account_id: ::String, period_start: ::DateTime, period_end: ::DateTime, merchant_fees: Models::Components::AmountDecimal, partner_cost: Models::Components::AmountDecimal, net_income: Models::Components::AmountDecimal, revenue_share: ::String, residual_amount: Models::Components::AmountDecimal,
|
|
43
|
-
def initialize(residual_id:, partner_account_id:, period_start:, period_end:, merchant_fees:, partner_cost:, net_income:, revenue_share:, residual_amount:,
|
|
38
|
+
sig { params(residual_id: ::String, partner_account_id: ::String, period_start: ::DateTime, period_end: ::DateTime, merchant_fees: Models::Components::AmountDecimal, partner_cost: Models::Components::AmountDecimal, net_income: Models::Components::AmountDecimal, revenue_share: ::String, residual_amount: Models::Components::AmountDecimal, created_on: ::DateTime, updated_on: ::DateTime).void }
|
|
39
|
+
def initialize(residual_id:, partner_account_id:, period_start:, period_end:, merchant_fees:, partner_cost:, net_income:, revenue_share:, residual_amount:, created_on:, updated_on:)
|
|
44
40
|
@residual_id = residual_id
|
|
45
41
|
@partner_account_id = partner_account_id
|
|
46
42
|
@period_start = period_start
|
|
@@ -50,7 +46,6 @@ module Moov
|
|
|
50
46
|
@net_income = net_income
|
|
51
47
|
@revenue_share = revenue_share
|
|
52
48
|
@residual_amount = residual_amount
|
|
53
|
-
@moov_share = moov_share
|
|
54
49
|
@created_on = created_on
|
|
55
50
|
@updated_on = updated_on
|
|
56
51
|
end
|
|
@@ -67,7 +62,6 @@ module Moov
|
|
|
67
62
|
return false unless @net_income == other.net_income
|
|
68
63
|
return false unless @revenue_share == other.revenue_share
|
|
69
64
|
return false unless @residual_amount == other.residual_amount
|
|
70
|
-
return false unless @moov_share == other.moov_share
|
|
71
65
|
return false unless @created_on == other.created_on
|
|
72
66
|
return false unless @updated_on == other.updated_on
|
|
73
67
|
true
|
|
@@ -26,8 +26,6 @@ class Moov::Models::Components::Residual
|
|
|
26
26
|
def revenue_share=(str_); end
|
|
27
27
|
def residual_amount(); end
|
|
28
28
|
def residual_amount=(str_); end
|
|
29
|
-
def moov_share(); end
|
|
30
|
-
def moov_share=(str_); end
|
|
31
29
|
def created_on(); end
|
|
32
30
|
def created_on=(str_); end
|
|
33
31
|
def updated_on(); end
|
|
@@ -69,11 +69,9 @@ module Moov
|
|
|
69
69
|
# An optional collection of line items for a transfer.
|
|
70
70
|
# When line items are provided, their total plus sales tax must equal the transfer amount.
|
|
71
71
|
field :line_items, Crystalline::Nilable.new(Models::Components::TransferLineItems), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('lineItems') } }
|
|
72
|
-
# ID of the invoice that the transfer is associated with.
|
|
73
|
-
field :invoice_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('invoiceID') } }
|
|
74
72
|
|
|
75
|
-
sig { params(transfer_id: ::String, created_on: ::DateTime, source: Models::Components::TransferSource, destination: Models::Components::TransferDestination, status: Models::Components::TransferStatus, amount: Models::Components::Amount, completed_on: T.nilable(::DateTime), failure_reason: T.nilable(Models::Components::TransferFailureReason), description: T.nilable(::String), metadata: T.nilable(T::Hash[Symbol, ::String]), facilitator_fee: T.nilable(Models::Components::FacilitatorFee), moov_fee: T.nilable(::Integer), moov_fee_decimal: T.nilable(::String), moov_fee_details: T.nilable(Models::Components::MoovFeeDetails), moov_fees: T.nilable(T::Array[Models::Components::MoovFee]), group_id: T.nilable(::String), cancellations: T.nilable(T::Array[Models::Components::Cancellation]), refunded_amount: T.nilable(Models::Components::Amount), refunds: T.nilable(T::Array[Models::Components::CardAcquiringRefund]), disputed_amount: T.nilable(Models::Components::Amount), disputes: T.nilable(T::Array[Models::Components::CardAcquiringDispute]), sweep_id: T.nilable(::String), schedule_id: T.nilable(::String), occurrence_id: T.nilable(::String), payment_link_code: T.nilable(::String), sales_tax_amount: T.nilable(Models::Components::Amount), foreign_id: T.nilable(::String), line_items: T.nilable(Models::Components::TransferLineItems)
|
|
76
|
-
def initialize(transfer_id:, created_on:, source:, destination:, status:, amount:, completed_on: nil, failure_reason: nil, description: nil, metadata: nil, facilitator_fee: nil, moov_fee: nil, moov_fee_decimal: nil, moov_fee_details: nil, moov_fees: nil, group_id: nil, cancellations: nil, refunded_amount: nil, refunds: nil, disputed_amount: nil, disputes: nil, sweep_id: nil, schedule_id: nil, occurrence_id: nil, payment_link_code: nil, sales_tax_amount: nil, foreign_id: nil, line_items: nil
|
|
73
|
+
sig { params(transfer_id: ::String, created_on: ::DateTime, source: Models::Components::TransferSource, destination: Models::Components::TransferDestination, status: Models::Components::TransferStatus, amount: Models::Components::Amount, completed_on: T.nilable(::DateTime), failure_reason: T.nilable(Models::Components::TransferFailureReason), description: T.nilable(::String), metadata: T.nilable(T::Hash[Symbol, ::String]), facilitator_fee: T.nilable(Models::Components::FacilitatorFee), moov_fee: T.nilable(::Integer), moov_fee_decimal: T.nilable(::String), moov_fee_details: T.nilable(Models::Components::MoovFeeDetails), moov_fees: T.nilable(T::Array[Models::Components::MoovFee]), group_id: T.nilable(::String), cancellations: T.nilable(T::Array[Models::Components::Cancellation]), refunded_amount: T.nilable(Models::Components::Amount), refunds: T.nilable(T::Array[Models::Components::CardAcquiringRefund]), disputed_amount: T.nilable(Models::Components::Amount), disputes: T.nilable(T::Array[Models::Components::CardAcquiringDispute]), sweep_id: T.nilable(::String), schedule_id: T.nilable(::String), occurrence_id: T.nilable(::String), payment_link_code: T.nilable(::String), sales_tax_amount: T.nilable(Models::Components::Amount), foreign_id: T.nilable(::String), line_items: T.nilable(Models::Components::TransferLineItems)).void }
|
|
74
|
+
def initialize(transfer_id:, created_on:, source:, destination:, status:, amount:, completed_on: nil, failure_reason: nil, description: nil, metadata: nil, facilitator_fee: nil, moov_fee: nil, moov_fee_decimal: nil, moov_fee_details: nil, moov_fees: nil, group_id: nil, cancellations: nil, refunded_amount: nil, refunds: nil, disputed_amount: nil, disputes: nil, sweep_id: nil, schedule_id: nil, occurrence_id: nil, payment_link_code: nil, sales_tax_amount: nil, foreign_id: nil, line_items: nil)
|
|
77
75
|
@transfer_id = transfer_id
|
|
78
76
|
@created_on = created_on
|
|
79
77
|
@source = source
|
|
@@ -102,7 +100,6 @@ module Moov
|
|
|
102
100
|
@sales_tax_amount = sales_tax_amount
|
|
103
101
|
@foreign_id = foreign_id
|
|
104
102
|
@line_items = line_items
|
|
105
|
-
@invoice_id = invoice_id
|
|
106
103
|
end
|
|
107
104
|
|
|
108
105
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
@@ -136,7 +133,6 @@ module Moov
|
|
|
136
133
|
return false unless @sales_tax_amount == other.sales_tax_amount
|
|
137
134
|
return false unless @foreign_id == other.foreign_id
|
|
138
135
|
return false unless @line_items == other.line_items
|
|
139
|
-
return false unless @invoice_id == other.invoice_id
|
|
140
136
|
true
|
|
141
137
|
end
|
|
142
138
|
end
|
|
@@ -13,11 +13,11 @@ module Moov
|
|
|
13
13
|
include Crystalline::MetadataFields
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
field :source_options, Crystalline::Nilable.new(Crystalline::Array.new(Crystalline::Union.new(Models::Components::MoovWalletPaymentMethod, Models::Components::AchDebitFundPaymentMethod, Models::Components::AchDebitCollectPaymentMethod, Models::Components::AchCreditStandardPaymentMethod, Models::Components::AchCreditSameDayPaymentMethod, Models::Components::RtpCreditPaymentMethod, Models::Components::CardPaymentPaymentMethod, Models::Components::PushToCardPaymentMethod, Models::Components::PullFromCardPaymentMethod, Models::Components::ApplePayPaymentMethod
|
|
16
|
+
field :source_options, Crystalline::Nilable.new(Crystalline::Array.new(Crystalline::Union.new(Models::Components::MoovWalletPaymentMethod, Models::Components::AchDebitFundPaymentMethod, Models::Components::AchDebitCollectPaymentMethod, Models::Components::AchCreditStandardPaymentMethod, Models::Components::AchCreditSameDayPaymentMethod, Models::Components::RtpCreditPaymentMethod, Models::Components::CardPaymentPaymentMethod, Models::Components::PushToCardPaymentMethod, Models::Components::PullFromCardPaymentMethod, Models::Components::ApplePayPaymentMethod))), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('sourceOptions') } }
|
|
17
17
|
|
|
18
|
-
field :destination_options, Crystalline::Nilable.new(Crystalline::Array.new(Crystalline::Union.new(Models::Components::MoovWalletPaymentMethod, Models::Components::AchDebitFundPaymentMethod, Models::Components::AchDebitCollectPaymentMethod, Models::Components::AchCreditStandardPaymentMethod, Models::Components::AchCreditSameDayPaymentMethod, Models::Components::RtpCreditPaymentMethod, Models::Components::CardPaymentPaymentMethod, Models::Components::PushToCardPaymentMethod, Models::Components::PullFromCardPaymentMethod, Models::Components::ApplePayPaymentMethod
|
|
18
|
+
field :destination_options, Crystalline::Nilable.new(Crystalline::Array.new(Crystalline::Union.new(Models::Components::MoovWalletPaymentMethod, Models::Components::AchDebitFundPaymentMethod, Models::Components::AchDebitCollectPaymentMethod, Models::Components::AchCreditStandardPaymentMethod, Models::Components::AchCreditSameDayPaymentMethod, Models::Components::RtpCreditPaymentMethod, Models::Components::CardPaymentPaymentMethod, Models::Components::PushToCardPaymentMethod, Models::Components::PullFromCardPaymentMethod, Models::Components::ApplePayPaymentMethod))), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('destinationOptions') } }
|
|
19
19
|
|
|
20
|
-
sig { params(source_options: T.nilable(T::Array[T.any(Models::Components::MoovWalletPaymentMethod, Models::Components::AchDebitFundPaymentMethod, Models::Components::AchDebitCollectPaymentMethod, Models::Components::AchCreditStandardPaymentMethod, Models::Components::AchCreditSameDayPaymentMethod, Models::Components::RtpCreditPaymentMethod, Models::Components::CardPaymentPaymentMethod, Models::Components::PushToCardPaymentMethod, Models::Components::PullFromCardPaymentMethod, Models::Components::ApplePayPaymentMethod
|
|
20
|
+
sig { params(source_options: T.nilable(T::Array[T.any(Models::Components::MoovWalletPaymentMethod, Models::Components::AchDebitFundPaymentMethod, Models::Components::AchDebitCollectPaymentMethod, Models::Components::AchCreditStandardPaymentMethod, Models::Components::AchCreditSameDayPaymentMethod, Models::Components::RtpCreditPaymentMethod, Models::Components::CardPaymentPaymentMethod, Models::Components::PushToCardPaymentMethod, Models::Components::PullFromCardPaymentMethod, Models::Components::ApplePayPaymentMethod)]), destination_options: T.nilable(T::Array[T.any(Models::Components::MoovWalletPaymentMethod, Models::Components::AchDebitFundPaymentMethod, Models::Components::AchDebitCollectPaymentMethod, Models::Components::AchCreditStandardPaymentMethod, Models::Components::AchCreditSameDayPaymentMethod, Models::Components::RtpCreditPaymentMethod, Models::Components::CardPaymentPaymentMethod, Models::Components::PushToCardPaymentMethod, Models::Components::PullFromCardPaymentMethod, Models::Components::ApplePayPaymentMethod)])).void }
|
|
21
21
|
def initialize(source_options: nil, destination_options: nil)
|
|
22
22
|
@source_options = source_options
|
|
23
23
|
@destination_options = destination_options
|