moov_ruby 0.0.0.pre.dev.30 → 0.0.0.pre.dev.32
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/card_issuing.rb +538 -0
- data/lib/moov/files.rb +186 -0
- data/lib/moov/invoices.rb +180 -0
- data/lib/moov/issuing_transactions.rb +246 -0
- data/lib/moov/models/components/applicationscope.rb +1 -0
- data/lib/moov/models/components/authorizationsimulationasyncresponse.rb +32 -0
- data/lib/moov/models/components/authorizationsimulationasyncresponse.rbi +13 -0
- data/lib/moov/models/components/bankaccount.rb +7 -2
- data/lib/moov/models/components/bankaccount.rbi +2 -0
- data/lib/moov/models/components/bankaccountpayload.rb +7 -2
- data/lib/moov/models/components/bankaccountpayload.rbi +2 -0
- data/lib/moov/models/components/capturestatus.rb +1 -0
- data/lib/moov/models/components/cardpaymentrefundprocessingdetails.rb +6 -2
- data/lib/moov/models/components/cardpaymentrefundprocessingdetails.rbi +2 -0
- data/lib/moov/models/components/createauthorizationsimulation.rb +40 -0
- data/lib/moov/models/components/createauthorizationsimulation.rbi +17 -0
- data/lib/moov/models/components/{createcancellation.rb → createclearingsimulation.rb} +5 -7
- data/lib/moov/models/components/{createcancellation.rbi → createclearingsimulation.rbi} +2 -2
- data/lib/moov/models/components/createdtransfer.rb +2 -1
- data/lib/moov/models/components/createinvoice.rb +14 -2
- data/lib/moov/models/components/createinvoice.rbi +6 -0
- data/lib/moov/models/components/createinvoicenotification.rb +32 -0
- data/lib/moov/models/components/createinvoicenotification.rbi +13 -0
- data/lib/moov/models/components/createtransfer.rb +6 -2
- data/lib/moov/models/components/createtransfer.rbi +2 -0
- data/lib/moov/models/components/createtransferdestination.rb +2 -14
- data/lib/moov/models/components/createtransferdestination.rbi +0 -6
- data/lib/moov/models/components/createtransferrailoptions.rb +52 -0
- data/lib/moov/models/components/createtransferrailoptions.rbi +23 -0
- data/lib/moov/models/components/createtransferresponse.rb +27 -0
- data/lib/moov/models/components/createtransferresponse.rbi +11 -0
- data/lib/moov/models/components/createtransfersource.rb +2 -10
- data/lib/moov/models/components/createtransfersource.rbi +0 -4
- data/lib/moov/models/components/disbursementpaymentmethodtype.rb +1 -0
- data/lib/moov/models/components/incurredfee.rb +6 -2
- data/lib/moov/models/components/incurredfee.rbi +2 -0
- data/lib/moov/models/components/invoice.rb +6 -2
- data/lib/moov/models/components/invoice.rbi +2 -0
- data/lib/moov/models/components/invoicenotificationlimitedchannel.rb +36 -0
- data/lib/moov/models/components/invoicenotificationlimitedchannel.rbi +15 -0
- data/lib/moov/models/components/invoicepaymentoptions.rb +40 -0
- data/lib/moov/models/components/invoicepaymentoptions.rbi +17 -0
- data/lib/moov/models/components/invoicepaymentoptionserror.rb +40 -0
- data/lib/moov/models/components/invoicepaymentoptionserror.rbi +17 -0
- data/lib/moov/models/components/invoicepaymentoptionsupdate.rb +40 -0
- data/lib/moov/models/components/invoicepaymentoptionsupdate.rbi +17 -0
- data/lib/moov/models/components/issuedcardactivity.rb +78 -0
- data/lib/moov/models/components/issuedcardactivity.rbi +33 -0
- data/lib/moov/models/components/notificationchannel.rb +18 -0
- data/lib/moov/models/components/notificationchannel.rbi +11 -0
- data/lib/moov/models/components/paymentmethodsbankaccount.rb +7 -2
- data/lib/moov/models/components/paymentmethodsbankaccount.rbi +2 -0
- data/lib/moov/models/components/product.rb +1 -1
- data/lib/moov/models/components/productrequest.rb +1 -1
- data/lib/moov/models/components/pushtocardoptions.rb +6 -2
- data/lib/moov/models/components/pushtocardoptions.rbi +2 -0
- data/lib/moov/models/components/requestcard.rb +2 -6
- data/lib/moov/models/components/requestcard.rbi +0 -2
- data/lib/moov/models/components/riskverificationoutcome.rb +23 -0
- data/lib/moov/models/components/riskverificationoutcome.rbi +11 -0
- data/lib/moov/models/components/simulationissuingmerchantdata.rb +56 -0
- data/lib/moov/models/components/simulationissuingmerchantdata.rbi +25 -0
- data/lib/moov/models/components/simulationissuingmerchantdatavalidationerror.rb +56 -0
- data/lib/moov/models/components/simulationissuingmerchantdatavalidationerror.rbi +25 -0
- data/lib/moov/models/components/transfer.rb +2 -1
- data/lib/moov/models/components/transferauthorization.rb +9 -2
- data/lib/moov/models/components/transferauthorization.rbi +2 -0
- data/lib/moov/models/components/transferevent.rb +48 -0
- data/lib/moov/models/components/transferevent.rbi +21 -0
- data/lib/moov/models/components/transfereventachdetails.rb +40 -0
- data/lib/moov/models/components/transfereventachdetails.rbi +17 -0
- data/lib/moov/models/components/transfereventauthorizationdetails.rb +40 -0
- data/lib/moov/models/components/transfereventauthorizationdetails.rbi +17 -0
- data/lib/moov/models/components/transfereventauthorizationstatus.rb +22 -0
- data/lib/moov/models/components/transfereventauthorizationstatus.rbi +11 -0
- data/lib/moov/models/components/transfereventcancellationdetails.rb +36 -0
- data/lib/moov/models/components/transfereventcancellationdetails.rbi +15 -0
- data/lib/moov/models/components/transfereventcapturedetails.rb +40 -0
- data/lib/moov/models/components/transfereventcapturedetails.rbi +17 -0
- data/lib/moov/models/components/transfereventcardpaymentdetails.rb +36 -0
- data/lib/moov/models/components/transfereventcardpaymentdetails.rbi +15 -0
- data/lib/moov/models/components/transfereventdetails.rb +88 -0
- data/lib/moov/models/components/transfereventdetails.rbi +41 -0
- data/lib/moov/models/components/transfereventdisputedetails.rb +46 -0
- data/lib/moov/models/components/transfereventdisputedetails.rbi +19 -0
- data/lib/moov/models/components/transfereventinstantbankcreditdetails.rb +36 -0
- data/lib/moov/models/components/transfereventinstantbankcreditdetails.rbi +15 -0
- data/lib/moov/models/components/transfereventpullfromcarddetails.rb +36 -0
- data/lib/moov/models/components/transfereventpullfromcarddetails.rbi +15 -0
- data/lib/moov/models/components/transfereventpushtocarddetails.rb +36 -0
- data/lib/moov/models/components/transfereventpushtocarddetails.rbi +15 -0
- data/lib/moov/models/components/transfereventrefunddetails.rb +44 -0
- data/lib/moov/models/components/transfereventrefunddetails.rbi +19 -0
- data/lib/moov/models/components/transfereventtransferdetails.rb +32 -0
- data/lib/moov/models/components/transfereventtransferdetails.rbi +13 -0
- data/lib/moov/models/components/transfereventtype.rb +34 -0
- data/lib/moov/models/components/transfereventtype.rbi +11 -0
- data/lib/moov/models/components/transfereventwallettransactiondetails.rb +48 -0
- data/lib/moov/models/components/transfereventwallettransactiondetails.rbi +21 -0
- data/lib/moov/models/components/transfereventwirecreditdetails.rb +36 -0
- data/lib/moov/models/components/transfereventwirecreditdetails.rbi +15 -0
- data/lib/moov/models/components/transferpaymentmethodsbankaccount.rb +7 -2
- data/lib/moov/models/components/transferpaymentmethodsbankaccount.rbi +2 -0
- data/lib/moov/models/components/updateinvoice.rb +6 -2
- data/lib/moov/models/components/updateinvoice.rbi +2 -0
- data/lib/moov/models/components/webhookdatatransferstatus.rb +1 -0
- data/lib/moov/models/components.rb +32 -2
- data/lib/moov/models/errors/authorizationsimulationvalidationerror.rb +44 -0
- data/lib/moov/models/errors/authorizationsimulationvalidationerror.rbi +19 -0
- data/lib/moov/models/errors/clearingsimulationvalidationerror.rb +36 -0
- data/lib/moov/models/errors/clearingsimulationvalidationerror.rbi +15 -0
- data/lib/moov/models/errors/createinvoiceerror.rb +14 -2
- data/lib/moov/models/errors/createinvoiceerror.rbi +6 -0
- data/lib/moov/models/errors/invoicenotificationerror.rb +36 -0
- data/lib/moov/models/errors/invoicenotificationerror.rbi +15 -0
- data/lib/moov/models/errors/invoicenotificationratelimitederror.rb +44 -0
- data/lib/moov/models/errors/invoicenotificationratelimitederror.rbi +19 -0
- data/lib/moov/models/errors/requestcarderror.rb +2 -6
- data/lib/moov/models/errors/requestcarderror.rbi +0 -2
- data/lib/moov/models/errors/transfer_error.rb +2 -1
- data/lib/moov/models/errors/updateinvoiceerror.rb +6 -2
- data/lib/moov/models/errors/updateinvoiceerror.rbi +2 -0
- data/lib/moov/models/errors.rb +4 -0
- data/lib/moov/models/operations/createauthorizationsimulation_request.rb +36 -0
- data/lib/moov/models/operations/createauthorizationsimulation_request.rbi +15 -0
- data/lib/moov/models/operations/createauthorizationsimulation_response.rb +52 -0
- data/lib/moov/models/operations/createauthorizationsimulation_response.rbi +23 -0
- data/lib/moov/models/operations/createclearingsimulation_request.rb +40 -0
- data/lib/moov/models/operations/createclearingsimulation_request.rbi +17 -0
- data/lib/moov/models/operations/createclearingsimulation_response.rb +52 -0
- data/lib/moov/models/operations/createclearingsimulation_response.rbi +23 -0
- data/lib/moov/models/operations/createinvoicenotification_request.rb +40 -0
- data/lib/moov/models/operations/createinvoicenotification_request.rbi +17 -0
- data/lib/moov/models/operations/createinvoicenotification_response.rb +44 -0
- data/lib/moov/models/operations/{createcancellation_response.rbi → createinvoicenotification_response.rbi} +2 -4
- data/lib/moov/models/operations/createreversalsimulation_request.rb +36 -0
- data/lib/moov/models/operations/createreversalsimulation_request.rbi +15 -0
- data/lib/moov/models/operations/createreversalsimulation_response.rb +52 -0
- data/lib/moov/models/operations/createreversalsimulation_response.rbi +23 -0
- data/lib/moov/models/operations/createtransfer_response.rb +5 -5
- data/lib/moov/models/operations/createtransfer_response.rbi +2 -2
- data/lib/moov/models/operations/downloadfile_request.rb +36 -0
- data/lib/moov/models/operations/downloadfile_request.rbi +15 -0
- data/lib/moov/models/operations/downloadfile_response.rb +64 -0
- data/lib/moov/models/operations/downloadfile_response.rbi +29 -0
- data/lib/moov/models/operations/getissuedcardactivity_request.rb +36 -0
- data/lib/moov/models/operations/getissuedcardactivity_request.rbi +15 -0
- data/lib/moov/models/operations/getissuedcardactivity_response.rb +48 -0
- data/lib/moov/models/operations/getissuedcardactivity_response.rbi +21 -0
- data/lib/moov/models/operations/initiaterefund_request.rb +1 -1
- data/lib/moov/models/operations/listissuedcardactivity_request.rb +60 -0
- data/lib/moov/models/operations/listissuedcardactivity_request.rbi +27 -0
- data/lib/moov/models/operations/listissuedcardactivity_response.rb +48 -0
- data/lib/moov/models/operations/listissuedcardactivity_response.rbi +21 -0
- data/lib/moov/models/operations/{createcancellation_request.rb → listtransferevents_request.rb} +5 -9
- data/lib/moov/models/operations/{createcancellation_request.rbi → listtransferevents_request.rbi} +2 -4
- data/lib/moov/models/operations/{createcancellation_response.rb → listtransferevents_response.rb} +6 -6
- data/lib/moov/models/operations/listtransferevents_response.rbi +21 -0
- data/lib/moov/models/operations/listtransfers_request.rb +6 -2
- data/lib/moov/models/operations/listtransfers_request.rbi +2 -0
- data/lib/moov/models/operations.rb +16 -2
- data/lib/moov/sdkconfiguration.rb +3 -3
- data/lib/moov/transfers.rb +128 -156
- metadata +106 -10
- data/lib/moov/models/components/cardexpirationerror.rb +0 -36
- data/lib/moov/models/components/cardexpirationerror.rbi +0 -15
|
@@ -34,9 +34,12 @@ module Moov
|
|
|
34
34
|
field :last_four_account_number, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('lastFourAccountNumber'), required: true } }
|
|
35
35
|
|
|
36
36
|
field :updated_on, ::DateTime, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('updatedOn'), required: true, 'decoder': ::Moov::Utils.datetime_from_iso_format(false) } }
|
|
37
|
+
# The outcome of a requested risk-verification attempt. `notAttempted` when
|
|
38
|
+
# `requestRiskVerification` was not set, or the calling account was not allowlisted.
|
|
39
|
+
field :risk_verification_outcome, Crystalline::Nilable.new(Models::Components::RiskVerificationOutcome), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('riskVerificationOutcome'), 'decoder': ::Moov::Utils.open_enum_from_string(Models::Components::RiskVerificationOutcome, true) } }
|
|
37
40
|
|
|
38
|
-
sig { params(bank_account_id: ::String, fingerprint: ::String, status: Models::Components::BankAccountStatus, holder_name: ::String, holder_type: Models::Components::BankAccountHolderType, bank_name: ::String, bank_account_type: Models::Components::BankAccountType, routing_number: ::String, last_four_account_number: ::String, updated_on: ::DateTime).void }
|
|
39
|
-
def initialize(bank_account_id:, fingerprint:, status:, holder_name:, holder_type:, bank_name:, bank_account_type:, routing_number:, last_four_account_number:, updated_on:)
|
|
41
|
+
sig { params(bank_account_id: ::String, fingerprint: ::String, status: Models::Components::BankAccountStatus, holder_name: ::String, holder_type: Models::Components::BankAccountHolderType, bank_name: ::String, bank_account_type: Models::Components::BankAccountType, routing_number: ::String, last_four_account_number: ::String, updated_on: ::DateTime, risk_verification_outcome: T.nilable(Models::Components::RiskVerificationOutcome)).void }
|
|
42
|
+
def initialize(bank_account_id:, fingerprint:, status:, holder_name:, holder_type:, bank_name:, bank_account_type:, routing_number:, last_four_account_number:, updated_on:, risk_verification_outcome: nil)
|
|
40
43
|
@bank_account_id = bank_account_id
|
|
41
44
|
@fingerprint = fingerprint
|
|
42
45
|
@status = status
|
|
@@ -47,6 +50,7 @@ module Moov
|
|
|
47
50
|
@routing_number = routing_number
|
|
48
51
|
@last_four_account_number = last_four_account_number
|
|
49
52
|
@updated_on = updated_on
|
|
53
|
+
@risk_verification_outcome = risk_verification_outcome
|
|
50
54
|
end
|
|
51
55
|
|
|
52
56
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
@@ -62,6 +66,7 @@ module Moov
|
|
|
62
66
|
return false unless @routing_number == other.routing_number
|
|
63
67
|
return false unless @last_four_account_number == other.last_four_account_number
|
|
64
68
|
return false unless @updated_on == other.updated_on
|
|
69
|
+
return false unless @risk_verification_outcome == other.risk_verification_outcome
|
|
65
70
|
true
|
|
66
71
|
end
|
|
67
72
|
end
|
|
@@ -23,6 +23,8 @@ module Moov
|
|
|
23
23
|
# To completely discard an invoice created by mistake, use the delete endpoint instead.
|
|
24
24
|
# - `unpaid`: Can only be set if the current status is `draft`. Setting the status to `unpaid` finalizes the invoice and sends an email with a payment link to the customer.
|
|
25
25
|
field :status, Crystalline::Nilable.new(Models::Components::InvoiceStatus), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('status'), 'decoder': ::Moov::Utils.open_enum_from_string(Models::Components::InvoiceStatus, true) } }
|
|
26
|
+
# Payment options to update on the invoice.
|
|
27
|
+
field :payment, Crystalline::Nilable.new(Models::Components::InvoicePaymentOptionsUpdate), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('payment') } }
|
|
26
28
|
|
|
27
29
|
field :amount_details, Crystalline::Nilable.new(Models::Components::AmountDetailsUpdate), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('amountDetails') } }
|
|
28
30
|
|
|
@@ -30,11 +32,12 @@ module Moov
|
|
|
30
32
|
|
|
31
33
|
field :due_date, Crystalline::Nilable.new(::DateTime), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('dueDate'), 'decoder': ::Moov::Utils.datetime_from_iso_format(true) } }
|
|
32
34
|
|
|
33
|
-
sig { params(description: T.nilable(::String), line_items: T.nilable(Models::Components::CreateInvoiceLineItemsUpdate), status: T.nilable(Models::Components::InvoiceStatus), amount_details: T.nilable(Models::Components::AmountDetailsUpdate), invoice_date: T.nilable(::DateTime), due_date: T.nilable(::DateTime)).void }
|
|
34
|
-
def initialize(description: nil, line_items: nil, status: nil, amount_details: nil, invoice_date: nil, due_date: nil)
|
|
35
|
+
sig { params(description: T.nilable(::String), line_items: T.nilable(Models::Components::CreateInvoiceLineItemsUpdate), status: T.nilable(Models::Components::InvoiceStatus), payment: T.nilable(Models::Components::InvoicePaymentOptionsUpdate), amount_details: T.nilable(Models::Components::AmountDetailsUpdate), invoice_date: T.nilable(::DateTime), due_date: T.nilable(::DateTime)).void }
|
|
36
|
+
def initialize(description: nil, line_items: nil, status: nil, payment: nil, amount_details: nil, invoice_date: nil, due_date: nil)
|
|
35
37
|
@description = description
|
|
36
38
|
@line_items = line_items
|
|
37
39
|
@status = status
|
|
40
|
+
@payment = payment
|
|
38
41
|
@amount_details = amount_details
|
|
39
42
|
@invoice_date = invoice_date
|
|
40
43
|
@due_date = due_date
|
|
@@ -46,6 +49,7 @@ module Moov
|
|
|
46
49
|
return false unless @description == other.description
|
|
47
50
|
return false unless @line_items == other.line_items
|
|
48
51
|
return false unless @status == other.status
|
|
52
|
+
return false unless @payment == other.payment
|
|
49
53
|
return false unless @amount_details == other.amount_details
|
|
50
54
|
return false unless @invoice_date == other.invoice_date
|
|
51
55
|
return false unless @due_date == other.due_date
|
|
@@ -14,6 +14,8 @@ class Moov::Models::Components::UpdateInvoice
|
|
|
14
14
|
def line_items=(str_); end
|
|
15
15
|
def status(); end
|
|
16
16
|
def status=(str_); end
|
|
17
|
+
def payment(); end
|
|
18
|
+
def payment=(str_); end
|
|
17
19
|
def amount_details(); end
|
|
18
20
|
def amount_details=(str_); end
|
|
19
21
|
def invoice_date(); end
|
|
@@ -27,6 +27,7 @@ module Moov
|
|
|
27
27
|
SOURCE_SETTLED = new('source.settled')
|
|
28
28
|
SOURCE_FAILED = new('source.failed')
|
|
29
29
|
SOURCE_CANCELED = new('source.canceled')
|
|
30
|
+
SOURCE_CLEARED_EXTERNALLY = new('source.cleared-externally')
|
|
30
31
|
DESTINATION_COMPLETED = new('destination.completed')
|
|
31
32
|
DESTINATION_CORRECTED = new('destination.corrected')
|
|
32
33
|
DESTINATION_INITIATED = new('destination.initiated')
|
|
@@ -78,6 +78,7 @@ module Moov
|
|
|
78
78
|
autoload :AsyncTransfer, 'moov/models/components/asynctransfer.rb'
|
|
79
79
|
autoload :AuthToken, 'moov/models/components/authtoken.rb'
|
|
80
80
|
autoload :AuthTokenRequest, 'moov/models/components/authtokenrequest.rb'
|
|
81
|
+
autoload :AuthorizationSimulationAsyncResponse, 'moov/models/components/authorizationsimulationasyncresponse.rb'
|
|
81
82
|
autoload :AvatarUploadRequest, 'moov/models/components/avataruploadrequest.rb'
|
|
82
83
|
autoload :AvatarUploadRequestFile, 'moov/models/components/avataruploadrequest_file.rb'
|
|
83
84
|
autoload :BankAccount, 'moov/models/components/bankaccount.rb'
|
|
@@ -140,7 +141,6 @@ module Moov
|
|
|
140
141
|
autoload :CardBrand, 'moov/models/components/cardbrand.rb'
|
|
141
142
|
autoload :CardBrandFees, 'moov/models/components/cardbrandfees.rb'
|
|
142
143
|
autoload :CardExpiration, 'moov/models/components/cardexpiration.rb'
|
|
143
|
-
autoload :CardExpirationError, 'moov/models/components/cardexpirationerror.rb'
|
|
144
144
|
autoload :CardIssuing, 'moov/models/components/cardissuing.rb'
|
|
145
145
|
autoload :CardIssuingError, 'moov/models/components/cardissuingerror.rb'
|
|
146
146
|
autoload :CardIssuingNetwork, 'moov/models/components/cardissuingnetwork.rb'
|
|
@@ -186,14 +186,15 @@ module Moov
|
|
|
186
186
|
autoload :CreateAccountSettings, 'moov/models/components/createaccountsettings.rb'
|
|
187
187
|
autoload :CreateAccountType, 'moov/models/components/createaccounttype.rb'
|
|
188
188
|
autoload :CreateApplePaySession, 'moov/models/components/createapplepaysession.rb'
|
|
189
|
+
autoload :CreateAuthorizationSimulation, 'moov/models/components/createauthorizationsimulation.rb'
|
|
189
190
|
autoload :CreateBankAccountAttestation, 'moov/models/components/createbankaccountattestation.rb'
|
|
190
191
|
autoload :CreateBusinessError, 'moov/models/components/createbusinesserror.rb'
|
|
191
192
|
autoload :CreateBusinessErrorEin, 'moov/models/components/createbusinesserror_ein.rb'
|
|
192
193
|
autoload :CreateBusinessErrorIndustryCodes, 'moov/models/components/createbusinesserror_industrycodes.rb'
|
|
193
194
|
autoload :CreateBusinessErrorTaxID, 'moov/models/components/createbusinesserror_taxid.rb'
|
|
194
195
|
autoload :CreateBusinessProfile, 'moov/models/components/createbusinessprofile.rb'
|
|
195
|
-
autoload :CreateCancellation, 'moov/models/components/createcancellation.rb'
|
|
196
196
|
autoload :CreateCapture, 'moov/models/components/createcapture.rb'
|
|
197
|
+
autoload :CreateClearingSimulation, 'moov/models/components/createclearingsimulation.rb'
|
|
197
198
|
autoload :CreateEvidenceFileMultiPart, 'moov/models/components/createevidencefilemultipart.rb'
|
|
198
199
|
autoload :CreateEvidenceFileMultiPartFile, 'moov/models/components/createevidencefilemultipart_file.rb'
|
|
199
200
|
autoload :CreateEvidenceText, 'moov/models/components/createevidencetext.rb'
|
|
@@ -211,6 +212,7 @@ module Moov
|
|
|
211
212
|
autoload :CreateInvoiceLineItems, 'moov/models/components/createinvoicelineitems.rb'
|
|
212
213
|
autoload :CreateInvoiceLineItemsUpdate, 'moov/models/components/createinvoicelineitemsupdate.rb'
|
|
213
214
|
autoload :CreateInvoiceLineItemsValidationError, 'moov/models/components/createinvoicelineitemsvalidationerror.rb'
|
|
215
|
+
autoload :CreateInvoiceNotification, 'moov/models/components/createinvoicenotification.rb'
|
|
214
216
|
autoload :CreateInvoicePayment, 'moov/models/components/createinvoicepayment.rb'
|
|
215
217
|
autoload :CreatePaymentLink, 'moov/models/components/createpaymentlink.rb'
|
|
216
218
|
autoload :CreatePaymentLinkAmountDetails, 'moov/models/components/createpaymentlinkamountdetails.rb'
|
|
@@ -257,6 +259,8 @@ module Moov
|
|
|
257
259
|
autoload :CreateTransferLineItems, 'moov/models/components/createtransferlineitems.rb'
|
|
258
260
|
autoload :CreateTransferLineItemsValidationError, 'moov/models/components/createtransferlineitemsvalidationerror.rb'
|
|
259
261
|
autoload :CreateTransferOptions, 'moov/models/components/createtransferoptions.rb'
|
|
262
|
+
autoload :CreateTransferRailOptions, 'moov/models/components/createtransferrailoptions.rb'
|
|
263
|
+
autoload :CreateTransferResponse, 'moov/models/components/createtransferresponse.rb'
|
|
260
264
|
autoload :CreateTransferSource, 'moov/models/components/createtransfersource.rb'
|
|
261
265
|
autoload :CreateTransferSourceACH, 'moov/models/components/createtransfersourceach.rb'
|
|
262
266
|
autoload :CreateTransferSourceCard, 'moov/models/components/createtransfersourcecard.rb'
|
|
@@ -371,11 +375,16 @@ module Moov
|
|
|
371
375
|
autoload :InvoiceLineItemValidationError, 'moov/models/components/invoicelineitemvalidationerror.rb'
|
|
372
376
|
autoload :InvoiceLineItems, 'moov/models/components/invoicelineitems.rb'
|
|
373
377
|
autoload :InvoiceLineItemsValidationError, 'moov/models/components/invoicelineitemsvalidationerror.rb'
|
|
378
|
+
autoload :InvoiceNotificationLimitedChannel, 'moov/models/components/invoicenotificationlimitedchannel.rb'
|
|
374
379
|
autoload :InvoicePayment, 'moov/models/components/invoicepayment.rb'
|
|
380
|
+
autoload :InvoicePaymentOptions, 'moov/models/components/invoicepaymentoptions.rb'
|
|
381
|
+
autoload :InvoicePaymentOptionsError, 'moov/models/components/invoicepaymentoptionserror.rb'
|
|
382
|
+
autoload :InvoicePaymentOptionsUpdate, 'moov/models/components/invoicepaymentoptionsupdate.rb'
|
|
375
383
|
autoload :InvoicePaymentType, 'moov/models/components/invoicepaymenttype.rb'
|
|
376
384
|
autoload :InvoiceStatus, 'moov/models/components/invoicestatus.rb'
|
|
377
385
|
autoload :InvoiceTransferPayment, 'moov/models/components/invoicetransferpayment.rb'
|
|
378
386
|
autoload :IssuedCard, 'moov/models/components/issuedcard.rb'
|
|
387
|
+
autoload :IssuedCardActivity, 'moov/models/components/issuedcardactivity.rb'
|
|
379
388
|
autoload :IssuedCardAuthorization, 'moov/models/components/issuedcardauthorization.rb'
|
|
380
389
|
autoload :IssuedCardAuthorizationEvent, 'moov/models/components/issuedcardauthorizationevent.rb'
|
|
381
390
|
autoload :IssuedCardAuthorizationEventResult, 'moov/models/components/issuedcardauthorizationeventresult.rb'
|
|
@@ -441,6 +450,7 @@ module Moov
|
|
|
441
450
|
autoload :MoovWalletTransferPaymentMethod, 'moov/models/components/moovwallettransferpaymentmethod.rb'
|
|
442
451
|
autoload :MoovWalletTransferPaymentMethodPaymentMethodType, 'moov/models/components/moovwallettransferpaymentmethod_paymentmethodtype.rb'
|
|
443
452
|
autoload :MxPayload, 'moov/models/components/mxpayload.rb'
|
|
453
|
+
autoload :NotificationChannel, 'moov/models/components/notificationchannel.rb'
|
|
444
454
|
autoload :OAuth2ClientType, 'moov/models/components/oauth2clienttype.rb'
|
|
445
455
|
autoload :Occurrence, 'moov/models/components/occurrence.rb'
|
|
446
456
|
autoload :OccurrenceStatus, 'moov/models/components/occurrencestatus.rb'
|
|
@@ -578,6 +588,7 @@ module Moov
|
|
|
578
588
|
autoload :ReversedWithCancellation, 'moov/models/components/reversedwithcancellation.rb'
|
|
579
589
|
autoload :ReversedWithRefund, 'moov/models/components/reversedwithrefund.rb'
|
|
580
590
|
autoload :RevokeTokenRequest, 'moov/models/components/revoketokenrequest.rb'
|
|
591
|
+
autoload :RiskVerificationOutcome, 'moov/models/components/riskverificationoutcome.rb'
|
|
581
592
|
autoload :RtpCreditPaymentMethod, 'moov/models/components/rtpcreditpaymentmethod.rb'
|
|
582
593
|
autoload :RtpCreditPaymentMethodPaymentMethodType, 'moov/models/components/rtpcreditpaymentmethod_paymentmethodtype.rb'
|
|
583
594
|
autoload :RtpCreditTransferPaymentMethod, 'moov/models/components/rtpcredittransferpaymentmethod.rb'
|
|
@@ -611,6 +622,8 @@ module Moov
|
|
|
611
622
|
autoload :SentReceipt, 'moov/models/components/sentreceipt.rb'
|
|
612
623
|
autoload :Settings, 'moov/models/components/settings.rb'
|
|
613
624
|
autoload :ShareScopes, 'moov/models/components/sharescopes.rb'
|
|
625
|
+
autoload :SimulationIssuingMerchantData, 'moov/models/components/simulationissuingmerchantdata.rb'
|
|
626
|
+
autoload :SimulationIssuingMerchantDataValidationError, 'moov/models/components/simulationissuingmerchantdatavalidationerror.rb'
|
|
614
627
|
autoload :SourceDestinationOptions, 'moov/models/components/sourcedestinationoptions.rb'
|
|
615
628
|
autoload :SourceSystem, 'moov/models/components/sourcesystem.rb'
|
|
616
629
|
autoload :Statement, 'moov/models/components/statement.rb'
|
|
@@ -653,6 +666,23 @@ module Moov
|
|
|
653
666
|
autoload :TransferControls, 'moov/models/components/transfercontrols.rb'
|
|
654
667
|
autoload :TransferDestination, 'moov/models/components/transferdestination.rb'
|
|
655
668
|
autoload :TransferEntryMode, 'moov/models/components/transferentrymode.rb'
|
|
669
|
+
autoload :TransferEvent, 'moov/models/components/transferevent.rb'
|
|
670
|
+
autoload :TransferEventACHDetails, 'moov/models/components/transfereventachdetails.rb'
|
|
671
|
+
autoload :TransferEventAuthorizationDetails, 'moov/models/components/transfereventauthorizationdetails.rb'
|
|
672
|
+
autoload :TransferEventAuthorizationStatus, 'moov/models/components/transfereventauthorizationstatus.rb'
|
|
673
|
+
autoload :TransferEventCancellationDetails, 'moov/models/components/transfereventcancellationdetails.rb'
|
|
674
|
+
autoload :TransferEventCaptureDetails, 'moov/models/components/transfereventcapturedetails.rb'
|
|
675
|
+
autoload :TransferEventCardPaymentDetails, 'moov/models/components/transfereventcardpaymentdetails.rb'
|
|
676
|
+
autoload :TransferEventDetails, 'moov/models/components/transfereventdetails.rb'
|
|
677
|
+
autoload :TransferEventDisputeDetails, 'moov/models/components/transfereventdisputedetails.rb'
|
|
678
|
+
autoload :TransferEventInstantBankCreditDetails, 'moov/models/components/transfereventinstantbankcreditdetails.rb'
|
|
679
|
+
autoload :TransferEventPullFromCardDetails, 'moov/models/components/transfereventpullfromcarddetails.rb'
|
|
680
|
+
autoload :TransferEventPushToCardDetails, 'moov/models/components/transfereventpushtocarddetails.rb'
|
|
681
|
+
autoload :TransferEventRefundDetails, 'moov/models/components/transfereventrefunddetails.rb'
|
|
682
|
+
autoload :TransferEventTransferDetails, 'moov/models/components/transfereventtransferdetails.rb'
|
|
683
|
+
autoload :TransferEventType, 'moov/models/components/transfereventtype.rb'
|
|
684
|
+
autoload :TransferEventWalletTransactionDetails, 'moov/models/components/transfereventwallettransactiondetails.rb'
|
|
685
|
+
autoload :TransferEventWireCreditDetails, 'moov/models/components/transfereventwirecreditdetails.rb'
|
|
656
686
|
autoload :TransferFailureReason, 'moov/models/components/transferfailurereason.rb'
|
|
657
687
|
autoload :TransferFeePaidBy, 'moov/models/components/transferfeepaidby.rb'
|
|
658
688
|
autoload :TransferLineItem, 'moov/models/components/transferlineitem.rb'
|
|
@@ -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 Errors
|
|
10
|
+
|
|
11
|
+
class AuthorizationSimulationValidationError < StandardError
|
|
12
|
+
extend T::Sig
|
|
13
|
+
include Crystalline::MetadataFields
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
field :issued_card_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('issuedCardID') } }
|
|
17
|
+
|
|
18
|
+
field :amount, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('amount') } }
|
|
19
|
+
|
|
20
|
+
field :merchant_data, Crystalline::Nilable.new(Models::Components::SimulationIssuingMerchantDataValidationError), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('merchantData') } }
|
|
21
|
+
# Raw HTTP response; suitable for custom response parsing
|
|
22
|
+
field :raw_response, Crystalline::Nilable.new(::Faraday::Response), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('-') } }
|
|
23
|
+
|
|
24
|
+
sig { params(issued_card_id: T.nilable(::String), amount: T.nilable(::String), merchant_data: T.nilable(Models::Components::SimulationIssuingMerchantDataValidationError), raw_response: T.nilable(::Faraday::Response)).void }
|
|
25
|
+
def initialize(issued_card_id: nil, amount: nil, merchant_data: nil, raw_response: nil)
|
|
26
|
+
@issued_card_id = issued_card_id
|
|
27
|
+
@amount = amount
|
|
28
|
+
@merchant_data = merchant_data
|
|
29
|
+
@raw_response = raw_response
|
|
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 @issued_card_id == other.issued_card_id
|
|
36
|
+
return false unless @amount == other.amount
|
|
37
|
+
return false unless @merchant_data == other.merchant_data
|
|
38
|
+
return false unless @raw_response == other.raw_response
|
|
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::Errors::AuthorizationSimulationValidationError
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Errors::AuthorizationSimulationValidationError
|
|
11
|
+
def issued_card_id(); end
|
|
12
|
+
def issued_card_id=(str_); end
|
|
13
|
+
def amount(); end
|
|
14
|
+
def amount=(str_); end
|
|
15
|
+
def merchant_data(); end
|
|
16
|
+
def merchant_data=(str_); end
|
|
17
|
+
def raw_response(); end
|
|
18
|
+
def raw_response=(str_); end
|
|
19
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
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 Errors
|
|
10
|
+
|
|
11
|
+
class ClearingSimulationValidationError < StandardError
|
|
12
|
+
extend T::Sig
|
|
13
|
+
include Crystalline::MetadataFields
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
field :amount, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('amount') } }
|
|
17
|
+
# Raw HTTP response; suitable for custom response parsing
|
|
18
|
+
field :raw_response, Crystalline::Nilable.new(::Faraday::Response), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('-') } }
|
|
19
|
+
|
|
20
|
+
sig { params(amount: T.nilable(::String), raw_response: T.nilable(::Faraday::Response)).void }
|
|
21
|
+
def initialize(amount: nil, raw_response: nil)
|
|
22
|
+
@amount = amount
|
|
23
|
+
@raw_response = raw_response
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
27
|
+
def ==(other)
|
|
28
|
+
return false unless other.is_a? self.class
|
|
29
|
+
return false unless @amount == other.amount
|
|
30
|
+
return false unless @raw_response == other.raw_response
|
|
31
|
+
true
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Moov::Models::Errors::ClearingSimulationValidationError
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Errors::ClearingSimulationValidationError
|
|
11
|
+
def amount(); end
|
|
12
|
+
def amount=(str_); end
|
|
13
|
+
def raw_response(); end
|
|
14
|
+
def raw_response=(str_); end
|
|
15
|
+
end
|
|
@@ -15,6 +15,10 @@ module Moov
|
|
|
15
15
|
|
|
16
16
|
field :customer_account_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('customerAccountID') } }
|
|
17
17
|
|
|
18
|
+
field :customer_email, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('customerEmail') } }
|
|
19
|
+
|
|
20
|
+
field :invoice_number, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('invoiceNumber') } }
|
|
21
|
+
|
|
18
22
|
field :description, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('description') } }
|
|
19
23
|
|
|
20
24
|
field :line_items, Crystalline::Nilable.new(Models::Components::CreateInvoiceLineItemsValidationError), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('lineItems') } }
|
|
@@ -23,17 +27,22 @@ module Moov
|
|
|
23
27
|
|
|
24
28
|
field :due_date, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('dueDate') } }
|
|
25
29
|
|
|
30
|
+
field :payment, Crystalline::Nilable.new(Models::Components::InvoicePaymentOptionsError), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('payment') } }
|
|
31
|
+
|
|
26
32
|
field :amount_details, Crystalline::Nilable.new(Models::Components::AmountDetailsValidationError), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('amountDetails') } }
|
|
27
33
|
# Raw HTTP response; suitable for custom response parsing
|
|
28
34
|
field :raw_response, Crystalline::Nilable.new(::Faraday::Response), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('-') } }
|
|
29
35
|
|
|
30
|
-
sig { params(customer_account_id: T.nilable(::String), description: T.nilable(::String), line_items: T.nilable(Models::Components::CreateInvoiceLineItemsValidationError), invoice_date: T.nilable(::String), due_date: T.nilable(::String), amount_details: T.nilable(Models::Components::AmountDetailsValidationError), raw_response: T.nilable(::Faraday::Response)).void }
|
|
31
|
-
def initialize(customer_account_id: nil, description: nil, line_items: nil, invoice_date: nil, due_date: nil, amount_details: nil, raw_response: nil)
|
|
36
|
+
sig { params(customer_account_id: T.nilable(::String), customer_email: T.nilable(::String), invoice_number: T.nilable(::String), description: T.nilable(::String), line_items: T.nilable(Models::Components::CreateInvoiceLineItemsValidationError), invoice_date: T.nilable(::String), due_date: T.nilable(::String), payment: T.nilable(Models::Components::InvoicePaymentOptionsError), amount_details: T.nilable(Models::Components::AmountDetailsValidationError), raw_response: T.nilable(::Faraday::Response)).void }
|
|
37
|
+
def initialize(customer_account_id: nil, customer_email: nil, invoice_number: nil, description: nil, line_items: nil, invoice_date: nil, due_date: nil, payment: nil, amount_details: nil, raw_response: nil)
|
|
32
38
|
@customer_account_id = customer_account_id
|
|
39
|
+
@customer_email = customer_email
|
|
40
|
+
@invoice_number = invoice_number
|
|
33
41
|
@description = description
|
|
34
42
|
@line_items = line_items
|
|
35
43
|
@invoice_date = invoice_date
|
|
36
44
|
@due_date = due_date
|
|
45
|
+
@payment = payment
|
|
37
46
|
@amount_details = amount_details
|
|
38
47
|
@raw_response = raw_response
|
|
39
48
|
end
|
|
@@ -42,10 +51,13 @@ module Moov
|
|
|
42
51
|
def ==(other)
|
|
43
52
|
return false unless other.is_a? self.class
|
|
44
53
|
return false unless @customer_account_id == other.customer_account_id
|
|
54
|
+
return false unless @customer_email == other.customer_email
|
|
55
|
+
return false unless @invoice_number == other.invoice_number
|
|
45
56
|
return false unless @description == other.description
|
|
46
57
|
return false unless @line_items == other.line_items
|
|
47
58
|
return false unless @invoice_date == other.invoice_date
|
|
48
59
|
return false unless @due_date == other.due_date
|
|
60
|
+
return false unless @payment == other.payment
|
|
49
61
|
return false unless @amount_details == other.amount_details
|
|
50
62
|
return false unless @raw_response == other.raw_response
|
|
51
63
|
true
|
|
@@ -10,6 +10,10 @@ end
|
|
|
10
10
|
class Moov::Models::Errors::CreateInvoiceError
|
|
11
11
|
def customer_account_id(); end
|
|
12
12
|
def customer_account_id=(str_); end
|
|
13
|
+
def customer_email(); end
|
|
14
|
+
def customer_email=(str_); end
|
|
15
|
+
def invoice_number(); end
|
|
16
|
+
def invoice_number=(str_); end
|
|
13
17
|
def description(); end
|
|
14
18
|
def description=(str_); end
|
|
15
19
|
def line_items(); end
|
|
@@ -18,6 +22,8 @@ class Moov::Models::Errors::CreateInvoiceError
|
|
|
18
22
|
def invoice_date=(str_); end
|
|
19
23
|
def due_date(); end
|
|
20
24
|
def due_date=(str_); end
|
|
25
|
+
def payment(); end
|
|
26
|
+
def payment=(str_); end
|
|
21
27
|
def amount_details(); end
|
|
22
28
|
def amount_details=(str_); end
|
|
23
29
|
def raw_response(); end
|
|
@@ -0,0 +1,36 @@
|
|
|
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 Errors
|
|
10
|
+
|
|
11
|
+
class InvoiceNotificationError < StandardError
|
|
12
|
+
extend T::Sig
|
|
13
|
+
include Crystalline::MetadataFields
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
field :channels, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('channels') } }
|
|
17
|
+
# Raw HTTP response; suitable for custom response parsing
|
|
18
|
+
field :raw_response, Crystalline::Nilable.new(::Faraday::Response), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('-') } }
|
|
19
|
+
|
|
20
|
+
sig { params(channels: T.nilable(::String), raw_response: T.nilable(::Faraday::Response)).void }
|
|
21
|
+
def initialize(channels: nil, raw_response: nil)
|
|
22
|
+
@channels = channels
|
|
23
|
+
@raw_response = raw_response
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
27
|
+
def ==(other)
|
|
28
|
+
return false unless other.is_a? self.class
|
|
29
|
+
return false unless @channels == other.channels
|
|
30
|
+
return false unless @raw_response == other.raw_response
|
|
31
|
+
true
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Moov::Models::Errors::InvoiceNotificationError
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Errors::InvoiceNotificationError
|
|
11
|
+
def channels(); end
|
|
12
|
+
def channels=(str_); end
|
|
13
|
+
def raw_response(); end
|
|
14
|
+
def raw_response=(str_); end
|
|
15
|
+
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 Errors
|
|
10
|
+
|
|
11
|
+
class InvoiceNotificationRateLimitedError < StandardError
|
|
12
|
+
extend T::Sig
|
|
13
|
+
include Crystalline::MetadataFields
|
|
14
|
+
|
|
15
|
+
# A description of the rate limit error.
|
|
16
|
+
field :error, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('error'), required: true } }
|
|
17
|
+
# The requested channels that are rate limited.
|
|
18
|
+
field :limited_channels, Crystalline::Array.new(Models::Components::InvoiceNotificationLimitedChannel), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('limitedChannels'), required: true } }
|
|
19
|
+
# The requested channels that are not rate limited and can be sent in a new request.
|
|
20
|
+
field :available_channels, Crystalline::Array.new(Models::Components::NotificationChannel), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('availableChannels'), required: true } }
|
|
21
|
+
# Raw HTTP response; suitable for custom response parsing
|
|
22
|
+
field :raw_response, Crystalline::Nilable.new(::Faraday::Response), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('-') } }
|
|
23
|
+
|
|
24
|
+
sig { params(error: ::String, limited_channels: T::Array[Models::Components::InvoiceNotificationLimitedChannel], available_channels: T::Array[Models::Components::NotificationChannel], raw_response: T.nilable(::Faraday::Response)).void }
|
|
25
|
+
def initialize(error:, limited_channels:, available_channels:, raw_response: nil)
|
|
26
|
+
@error = error
|
|
27
|
+
@limited_channels = limited_channels
|
|
28
|
+
@available_channels = available_channels
|
|
29
|
+
@raw_response = raw_response
|
|
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 @error == other.error
|
|
36
|
+
return false unless @limited_channels == other.limited_channels
|
|
37
|
+
return false unless @available_channels == other.available_channels
|
|
38
|
+
return false unless @raw_response == other.raw_response
|
|
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::Errors::InvoiceNotificationRateLimitedError
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Errors::InvoiceNotificationRateLimitedError
|
|
11
|
+
def error(); end
|
|
12
|
+
def error=(str_); end
|
|
13
|
+
def limited_channels(); end
|
|
14
|
+
def limited_channels=(str_); end
|
|
15
|
+
def available_channels(); end
|
|
16
|
+
def available_channels=(str_); end
|
|
17
|
+
def raw_response(); end
|
|
18
|
+
def raw_response=(str_); end
|
|
19
|
+
end
|
|
@@ -21,19 +21,16 @@ module Moov
|
|
|
21
21
|
|
|
22
22
|
field :billing_address, Crystalline::Nilable.new(Models::Components::AddressError), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('billingAddress') } }
|
|
23
23
|
|
|
24
|
-
field :expiration, Crystalline::Nilable.new(Models::Components::CardExpirationError), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('expiration') } }
|
|
25
|
-
|
|
26
24
|
field :controls, Crystalline::Nilable.new(Models::Components::IssuingControlsError), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('controls') } }
|
|
27
25
|
# Raw HTTP response; suitable for custom response parsing
|
|
28
26
|
field :raw_response, Crystalline::Nilable.new(::Faraday::Response), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('-') } }
|
|
29
27
|
|
|
30
|
-
sig { params(authorized_user_account_id: T.nilable(::String), nickname: T.nilable(::String), metadata: T.nilable(::String), billing_address: T.nilable(Models::Components::AddressError),
|
|
31
|
-
def initialize(authorized_user_account_id: nil, nickname: nil, metadata: nil, billing_address: nil,
|
|
28
|
+
sig { params(authorized_user_account_id: T.nilable(::String), nickname: T.nilable(::String), metadata: T.nilable(::String), billing_address: T.nilable(Models::Components::AddressError), controls: T.nilable(Models::Components::IssuingControlsError), raw_response: T.nilable(::Faraday::Response)).void }
|
|
29
|
+
def initialize(authorized_user_account_id: nil, nickname: nil, metadata: nil, billing_address: nil, controls: nil, raw_response: nil)
|
|
32
30
|
@authorized_user_account_id = authorized_user_account_id
|
|
33
31
|
@nickname = nickname
|
|
34
32
|
@metadata = metadata
|
|
35
33
|
@billing_address = billing_address
|
|
36
|
-
@expiration = expiration
|
|
37
34
|
@controls = controls
|
|
38
35
|
@raw_response = raw_response
|
|
39
36
|
end
|
|
@@ -45,7 +42,6 @@ module Moov
|
|
|
45
42
|
return false unless @nickname == other.nickname
|
|
46
43
|
return false unless @metadata == other.metadata
|
|
47
44
|
return false unless @billing_address == other.billing_address
|
|
48
|
-
return false unless @expiration == other.expiration
|
|
49
45
|
return false unless @controls == other.controls
|
|
50
46
|
return false unless @raw_response == other.raw_response
|
|
51
47
|
true
|
|
@@ -16,8 +16,6 @@ class Moov::Models::Errors::RequestCardError
|
|
|
16
16
|
def metadata=(str_); end
|
|
17
17
|
def billing_address(); end
|
|
18
18
|
def billing_address=(str_); end
|
|
19
|
-
def expiration(); end
|
|
20
|
-
def expiration=(str_); end
|
|
21
19
|
def controls(); end
|
|
22
20
|
def controls=(str_); end
|
|
23
21
|
def raw_response(); end
|
|
@@ -70,7 +70,8 @@ module Moov
|
|
|
70
70
|
field :line_items, Crystalline::Nilable.new(Models::Components::TransferLineItems), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('lineItems') } }
|
|
71
71
|
# ID of the invoice that the transfer is associated with.
|
|
72
72
|
field :invoice_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('invoiceID') } }
|
|
73
|
-
|
|
73
|
+
# The tip, tax, and surcharge portion of the transfer amount.
|
|
74
|
+
# For an auth-capture `card-payment` transfer, this is the aggregate of all captures' `amountDetails`.
|
|
74
75
|
field :amount_details, Crystalline::Nilable.new(Models::Components::TransferAmountDetails), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('amountDetails') } }
|
|
75
76
|
# Authorization amounts.
|
|
76
77
|
# This field is present only for an auth-capture `card-payment` transfer.
|
|
@@ -23,17 +23,20 @@ module Moov
|
|
|
23
23
|
|
|
24
24
|
field :status, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('status') } }
|
|
25
25
|
|
|
26
|
+
field :payment, Crystalline::Nilable.new(Models::Components::InvoicePaymentOptionsError), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('payment') } }
|
|
27
|
+
|
|
26
28
|
field :amount_details, Crystalline::Nilable.new(Models::Components::AmountDetailsValidationError), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('amountDetails') } }
|
|
27
29
|
# Raw HTTP response; suitable for custom response parsing
|
|
28
30
|
field :raw_response, Crystalline::Nilable.new(::Faraday::Response), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('-') } }
|
|
29
31
|
|
|
30
|
-
sig { params(description: T.nilable(::String), line_items: T.nilable(Models::Components::InvoiceLineItemsValidationError), invoice_date: T.nilable(::String), due_date: T.nilable(::String), status: T.nilable(::String), amount_details: T.nilable(Models::Components::AmountDetailsValidationError), raw_response: T.nilable(::Faraday::Response)).void }
|
|
31
|
-
def initialize(description: nil, line_items: nil, invoice_date: nil, due_date: nil, status: nil, amount_details: nil, raw_response: nil)
|
|
32
|
+
sig { params(description: T.nilable(::String), line_items: T.nilable(Models::Components::InvoiceLineItemsValidationError), invoice_date: T.nilable(::String), due_date: T.nilable(::String), status: T.nilable(::String), payment: T.nilable(Models::Components::InvoicePaymentOptionsError), amount_details: T.nilable(Models::Components::AmountDetailsValidationError), raw_response: T.nilable(::Faraday::Response)).void }
|
|
33
|
+
def initialize(description: nil, line_items: nil, invoice_date: nil, due_date: nil, status: nil, payment: nil, amount_details: nil, raw_response: nil)
|
|
32
34
|
@description = description
|
|
33
35
|
@line_items = line_items
|
|
34
36
|
@invoice_date = invoice_date
|
|
35
37
|
@due_date = due_date
|
|
36
38
|
@status = status
|
|
39
|
+
@payment = payment
|
|
37
40
|
@amount_details = amount_details
|
|
38
41
|
@raw_response = raw_response
|
|
39
42
|
end
|
|
@@ -46,6 +49,7 @@ module Moov
|
|
|
46
49
|
return false unless @invoice_date == other.invoice_date
|
|
47
50
|
return false unless @due_date == other.due_date
|
|
48
51
|
return false unless @status == other.status
|
|
52
|
+
return false unless @payment == other.payment
|
|
49
53
|
return false unless @amount_details == other.amount_details
|
|
50
54
|
return false unless @raw_response == other.raw_response
|
|
51
55
|
true
|
|
@@ -18,6 +18,8 @@ class Moov::Models::Errors::UpdateInvoiceError
|
|
|
18
18
|
def due_date=(str_); end
|
|
19
19
|
def status(); end
|
|
20
20
|
def status=(str_); end
|
|
21
|
+
def payment(); end
|
|
22
|
+
def payment=(str_); end
|
|
21
23
|
def amount_details(); end
|
|
22
24
|
def amount_details=(str_); end
|
|
23
25
|
def raw_response(); end
|