moov_ruby 0.0.0.pre.dev.31 → 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/invoices.rb +180 -0
- data/lib/moov/issuing_transactions.rb +123 -0
- data/lib/moov/models/components/capturestatus.rb +1 -0
- data/lib/moov/models/components/createauthorizationsimulation.rb +2 -2
- data/lib/moov/models/components/createinvoice.rb +10 -2
- data/lib/moov/models/components/createinvoice.rbi +4 -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/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/notificationchannel.rb +18 -0
- data/lib/moov/models/components/notificationchannel.rbi +11 -0
- 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/simulationissuingmerchantdata.rb +56 -0
- data/lib/moov/models/components/{issuingmerchantdatavalidationerror.rbi → simulationissuingmerchantdata.rbi} +2 -2
- data/lib/moov/models/components/{issuingmerchantdatavalidationerror.rb → simulationissuingmerchantdatavalidationerror.rb} +1 -1
- data/lib/moov/models/components/simulationissuingmerchantdatavalidationerror.rbi +25 -0
- data/lib/moov/models/components/updateinvoice.rb +6 -2
- data/lib/moov/models/components/updateinvoice.rbi +2 -0
- data/lib/moov/models/components.rb +10 -3
- data/lib/moov/models/errors/authorizationsimulationvalidationerror.rb +3 -3
- data/lib/moov/models/errors/clearingsimulationvalidationerror.rb +1 -1
- data/lib/moov/models/errors/createinvoiceerror.rb +10 -2
- data/lib/moov/models/errors/createinvoiceerror.rbi +4 -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/updateinvoiceerror.rb +6 -2
- data/lib/moov/models/errors/updateinvoiceerror.rbi +2 -0
- data/lib/moov/models/errors.rb +2 -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/{createcancellation_response.rb → createinvoicenotification_response.rb} +3 -7
- data/lib/moov/models/operations/{createcancellation_response.rbi → createinvoicenotification_response.rbi} +2 -4
- 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/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.rb +4 -2
- data/lib/moov/sdkconfiguration.rb +3 -3
- data/lib/moov/transfers.rb +3 -156
- metadata +34 -12
- data/lib/moov/models/components/cardexpirationerror.rb +0 -36
- data/lib/moov/models/components/cardexpirationerror.rbi +0 -15
- data/lib/moov/models/components/createcancellation.rb +0 -34
- data/lib/moov/models/components/createcancellation.rbi +0 -13
- data/lib/moov/models/operations/createcancellation_request.rb +0 -40
- data/lib/moov/models/operations/createcancellation_request.rbi +0 -17
|
@@ -141,7 +141,6 @@ module Moov
|
|
|
141
141
|
autoload :CardBrand, 'moov/models/components/cardbrand.rb'
|
|
142
142
|
autoload :CardBrandFees, 'moov/models/components/cardbrandfees.rb'
|
|
143
143
|
autoload :CardExpiration, 'moov/models/components/cardexpiration.rb'
|
|
144
|
-
autoload :CardExpirationError, 'moov/models/components/cardexpirationerror.rb'
|
|
145
144
|
autoload :CardIssuing, 'moov/models/components/cardissuing.rb'
|
|
146
145
|
autoload :CardIssuingError, 'moov/models/components/cardissuingerror.rb'
|
|
147
146
|
autoload :CardIssuingNetwork, 'moov/models/components/cardissuingnetwork.rb'
|
|
@@ -194,7 +193,6 @@ module Moov
|
|
|
194
193
|
autoload :CreateBusinessErrorIndustryCodes, 'moov/models/components/createbusinesserror_industrycodes.rb'
|
|
195
194
|
autoload :CreateBusinessErrorTaxID, 'moov/models/components/createbusinesserror_taxid.rb'
|
|
196
195
|
autoload :CreateBusinessProfile, 'moov/models/components/createbusinessprofile.rb'
|
|
197
|
-
autoload :CreateCancellation, 'moov/models/components/createcancellation.rb'
|
|
198
196
|
autoload :CreateCapture, 'moov/models/components/createcapture.rb'
|
|
199
197
|
autoload :CreateClearingSimulation, 'moov/models/components/createclearingsimulation.rb'
|
|
200
198
|
autoload :CreateEvidenceFileMultiPart, 'moov/models/components/createevidencefilemultipart.rb'
|
|
@@ -214,6 +212,7 @@ module Moov
|
|
|
214
212
|
autoload :CreateInvoiceLineItems, 'moov/models/components/createinvoicelineitems.rb'
|
|
215
213
|
autoload :CreateInvoiceLineItemsUpdate, 'moov/models/components/createinvoicelineitemsupdate.rb'
|
|
216
214
|
autoload :CreateInvoiceLineItemsValidationError, 'moov/models/components/createinvoicelineitemsvalidationerror.rb'
|
|
215
|
+
autoload :CreateInvoiceNotification, 'moov/models/components/createinvoicenotification.rb'
|
|
217
216
|
autoload :CreateInvoicePayment, 'moov/models/components/createinvoicepayment.rb'
|
|
218
217
|
autoload :CreatePaymentLink, 'moov/models/components/createpaymentlink.rb'
|
|
219
218
|
autoload :CreatePaymentLinkAmountDetails, 'moov/models/components/createpaymentlinkamountdetails.rb'
|
|
@@ -260,6 +259,8 @@ module Moov
|
|
|
260
259
|
autoload :CreateTransferLineItems, 'moov/models/components/createtransferlineitems.rb'
|
|
261
260
|
autoload :CreateTransferLineItemsValidationError, 'moov/models/components/createtransferlineitemsvalidationerror.rb'
|
|
262
261
|
autoload :CreateTransferOptions, 'moov/models/components/createtransferoptions.rb'
|
|
262
|
+
autoload :CreateTransferRailOptions, 'moov/models/components/createtransferrailoptions.rb'
|
|
263
|
+
autoload :CreateTransferResponse, 'moov/models/components/createtransferresponse.rb'
|
|
263
264
|
autoload :CreateTransferSource, 'moov/models/components/createtransfersource.rb'
|
|
264
265
|
autoload :CreateTransferSourceACH, 'moov/models/components/createtransfersourceach.rb'
|
|
265
266
|
autoload :CreateTransferSourceCard, 'moov/models/components/createtransfersourcecard.rb'
|
|
@@ -374,7 +375,11 @@ module Moov
|
|
|
374
375
|
autoload :InvoiceLineItemValidationError, 'moov/models/components/invoicelineitemvalidationerror.rb'
|
|
375
376
|
autoload :InvoiceLineItems, 'moov/models/components/invoicelineitems.rb'
|
|
376
377
|
autoload :InvoiceLineItemsValidationError, 'moov/models/components/invoicelineitemsvalidationerror.rb'
|
|
378
|
+
autoload :InvoiceNotificationLimitedChannel, 'moov/models/components/invoicenotificationlimitedchannel.rb'
|
|
377
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'
|
|
378
383
|
autoload :InvoicePaymentType, 'moov/models/components/invoicepaymenttype.rb'
|
|
379
384
|
autoload :InvoiceStatus, 'moov/models/components/invoicestatus.rb'
|
|
380
385
|
autoload :InvoiceTransferPayment, 'moov/models/components/invoicetransferpayment.rb'
|
|
@@ -399,7 +404,6 @@ module Moov
|
|
|
399
404
|
autoload :IssuingIntervalLimit, 'moov/models/components/issuingintervallimit.rb'
|
|
400
405
|
autoload :IssuingMerchantCategory, 'moov/models/components/issuingmerchantcategory.rb'
|
|
401
406
|
autoload :IssuingMerchantData, 'moov/models/components/issuingmerchantdata.rb'
|
|
402
|
-
autoload :IssuingMerchantDataValidationError, 'moov/models/components/issuingmerchantdatavalidationerror.rb'
|
|
403
407
|
autoload :IssuingScheduleDay, 'moov/models/components/issuingscheduleday.rb'
|
|
404
408
|
autoload :IssuingVelocityLimit, 'moov/models/components/issuingvelocitylimit.rb'
|
|
405
409
|
autoload :IssuingVelocityLimitError, 'moov/models/components/issuingvelocitylimiterror.rb'
|
|
@@ -446,6 +450,7 @@ module Moov
|
|
|
446
450
|
autoload :MoovWalletTransferPaymentMethod, 'moov/models/components/moovwallettransferpaymentmethod.rb'
|
|
447
451
|
autoload :MoovWalletTransferPaymentMethodPaymentMethodType, 'moov/models/components/moovwallettransferpaymentmethod_paymentmethodtype.rb'
|
|
448
452
|
autoload :MxPayload, 'moov/models/components/mxpayload.rb'
|
|
453
|
+
autoload :NotificationChannel, 'moov/models/components/notificationchannel.rb'
|
|
449
454
|
autoload :OAuth2ClientType, 'moov/models/components/oauth2clienttype.rb'
|
|
450
455
|
autoload :Occurrence, 'moov/models/components/occurrence.rb'
|
|
451
456
|
autoload :OccurrenceStatus, 'moov/models/components/occurrencestatus.rb'
|
|
@@ -617,6 +622,8 @@ module Moov
|
|
|
617
622
|
autoload :SentReceipt, 'moov/models/components/sentreceipt.rb'
|
|
618
623
|
autoload :Settings, 'moov/models/components/settings.rb'
|
|
619
624
|
autoload :ShareScopes, 'moov/models/components/sharescopes.rb'
|
|
625
|
+
autoload :SimulationIssuingMerchantData, 'moov/models/components/simulationissuingmerchantdata.rb'
|
|
626
|
+
autoload :SimulationIssuingMerchantDataValidationError, 'moov/models/components/simulationissuingmerchantdatavalidationerror.rb'
|
|
620
627
|
autoload :SourceDestinationOptions, 'moov/models/components/sourcedestinationoptions.rb'
|
|
621
628
|
autoload :SourceSystem, 'moov/models/components/sourcesystem.rb'
|
|
622
629
|
autoload :Statement, 'moov/models/components/statement.rb'
|
|
@@ -14,14 +14,14 @@ module Moov
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
field :issued_card_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('issuedCardID') } }
|
|
17
|
-
|
|
17
|
+
|
|
18
18
|
field :amount, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('amount') } }
|
|
19
19
|
|
|
20
|
-
field :merchant_data, Crystalline::Nilable.new(Models::Components::
|
|
20
|
+
field :merchant_data, Crystalline::Nilable.new(Models::Components::SimulationIssuingMerchantDataValidationError), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('merchantData') } }
|
|
21
21
|
# Raw HTTP response; suitable for custom response parsing
|
|
22
22
|
field :raw_response, Crystalline::Nilable.new(::Faraday::Response), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('-') } }
|
|
23
23
|
|
|
24
|
-
sig { params(issued_card_id: T.nilable(::String), amount: T.nilable(::String), merchant_data: T.nilable(Models::Components::
|
|
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
25
|
def initialize(issued_card_id: nil, amount: nil, merchant_data: nil, raw_response: nil)
|
|
26
26
|
@issued_card_id = issued_card_id
|
|
27
27
|
@amount = amount
|
|
@@ -12,7 +12,7 @@ module Moov
|
|
|
12
12
|
extend T::Sig
|
|
13
13
|
include Crystalline::MetadataFields
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
|
|
16
16
|
field :amount, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('amount') } }
|
|
17
17
|
# Raw HTTP response; suitable for custom response parsing
|
|
18
18
|
field :raw_response, Crystalline::Nilable.new(::Faraday::Response), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('-') } }
|
|
@@ -17,6 +17,8 @@ module Moov
|
|
|
17
17
|
|
|
18
18
|
field :customer_email, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('customerEmail') } }
|
|
19
19
|
|
|
20
|
+
field :invoice_number, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('invoiceNumber') } }
|
|
21
|
+
|
|
20
22
|
field :description, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('description') } }
|
|
21
23
|
|
|
22
24
|
field :line_items, Crystalline::Nilable.new(Models::Components::CreateInvoiceLineItemsValidationError), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('lineItems') } }
|
|
@@ -25,18 +27,22 @@ module Moov
|
|
|
25
27
|
|
|
26
28
|
field :due_date, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('dueDate') } }
|
|
27
29
|
|
|
30
|
+
field :payment, Crystalline::Nilable.new(Models::Components::InvoicePaymentOptionsError), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('payment') } }
|
|
31
|
+
|
|
28
32
|
field :amount_details, Crystalline::Nilable.new(Models::Components::AmountDetailsValidationError), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('amountDetails') } }
|
|
29
33
|
# Raw HTTP response; suitable for custom response parsing
|
|
30
34
|
field :raw_response, Crystalline::Nilable.new(::Faraday::Response), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('-') } }
|
|
31
35
|
|
|
32
|
-
sig { params(customer_account_id: T.nilable(::String), customer_email: 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 }
|
|
33
|
-
def initialize(customer_account_id: nil, customer_email: 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)
|
|
34
38
|
@customer_account_id = customer_account_id
|
|
35
39
|
@customer_email = customer_email
|
|
40
|
+
@invoice_number = invoice_number
|
|
36
41
|
@description = description
|
|
37
42
|
@line_items = line_items
|
|
38
43
|
@invoice_date = invoice_date
|
|
39
44
|
@due_date = due_date
|
|
45
|
+
@payment = payment
|
|
40
46
|
@amount_details = amount_details
|
|
41
47
|
@raw_response = raw_response
|
|
42
48
|
end
|
|
@@ -46,10 +52,12 @@ module Moov
|
|
|
46
52
|
return false unless other.is_a? self.class
|
|
47
53
|
return false unless @customer_account_id == other.customer_account_id
|
|
48
54
|
return false unless @customer_email == other.customer_email
|
|
55
|
+
return false unless @invoice_number == other.invoice_number
|
|
49
56
|
return false unless @description == other.description
|
|
50
57
|
return false unless @line_items == other.line_items
|
|
51
58
|
return false unless @invoice_date == other.invoice_date
|
|
52
59
|
return false unless @due_date == other.due_date
|
|
60
|
+
return false unless @payment == other.payment
|
|
53
61
|
return false unless @amount_details == other.amount_details
|
|
54
62
|
return false unless @raw_response == other.raw_response
|
|
55
63
|
true
|
|
@@ -12,6 +12,8 @@ class Moov::Models::Errors::CreateInvoiceError
|
|
|
12
12
|
def customer_account_id=(str_); end
|
|
13
13
|
def customer_email(); end
|
|
14
14
|
def customer_email=(str_); end
|
|
15
|
+
def invoice_number(); end
|
|
16
|
+
def invoice_number=(str_); end
|
|
15
17
|
def description(); end
|
|
16
18
|
def description=(str_); end
|
|
17
19
|
def line_items(); end
|
|
@@ -20,6 +22,8 @@ class Moov::Models::Errors::CreateInvoiceError
|
|
|
20
22
|
def invoice_date=(str_); end
|
|
21
23
|
def due_date(); end
|
|
22
24
|
def due_date=(str_); end
|
|
25
|
+
def payment(); end
|
|
26
|
+
def payment=(str_); end
|
|
23
27
|
def amount_details(); end
|
|
24
28
|
def amount_details=(str_); end
|
|
25
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
|
|
@@ -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
|
data/lib/moov/models/errors.rb
CHANGED
|
@@ -38,6 +38,8 @@ module Moov
|
|
|
38
38
|
autoload :ImageMetadataValidationError, 'moov/models/errors/imagemetadatavalidationerror.rb'
|
|
39
39
|
autoload :ImageMetadataError, 'moov/models/errors/imagemetadata_error.rb'
|
|
40
40
|
autoload :ImageRequestValidationError, 'moov/models/errors/imagerequestvalidationerror.rb'
|
|
41
|
+
autoload :InvoiceNotificationError, 'moov/models/errors/invoicenotificationerror.rb'
|
|
42
|
+
autoload :InvoiceNotificationRateLimitedError, 'moov/models/errors/invoicenotificationratelimitederror.rb'
|
|
41
43
|
autoload :LinkApplePayError, 'moov/models/errors/linkapplepayerror.rb'
|
|
42
44
|
autoload :LinkCardError, 'moov/models/errors/linkcarderror.rb'
|
|
43
45
|
autoload :LinkGooglePayError, 'moov/models/errors/linkgooglepayerror.rb'
|
|
@@ -0,0 +1,40 @@
|
|
|
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 Operations
|
|
10
|
+
|
|
11
|
+
class CreateInvoiceNotificationRequest
|
|
12
|
+
extend T::Sig
|
|
13
|
+
include Crystalline::MetadataFields
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
field :account_id, ::String, { 'path_param': { 'field_name': 'accountID', 'style': 'simple', 'explode': false } }
|
|
17
|
+
|
|
18
|
+
field :invoice_id, ::String, { 'path_param': { 'field_name': 'invoiceID', 'style': 'simple', 'explode': false } }
|
|
19
|
+
|
|
20
|
+
field :create_invoice_notification, Models::Components::CreateInvoiceNotification, { 'request': { 'media_type': 'application/json' } }
|
|
21
|
+
|
|
22
|
+
sig { params(account_id: ::String, invoice_id: ::String, create_invoice_notification: Models::Components::CreateInvoiceNotification).void }
|
|
23
|
+
def initialize(account_id:, invoice_id:, create_invoice_notification:)
|
|
24
|
+
@account_id = account_id
|
|
25
|
+
@invoice_id = invoice_id
|
|
26
|
+
@create_invoice_notification = create_invoice_notification
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
30
|
+
def ==(other)
|
|
31
|
+
return false unless other.is_a? self.class
|
|
32
|
+
return false unless @account_id == other.account_id
|
|
33
|
+
return false unless @invoice_id == other.invoice_id
|
|
34
|
+
return false unless @create_invoice_notification == other.create_invoice_notification
|
|
35
|
+
true
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Moov::Models::Operations::CreateInvoiceNotificationRequest
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Operations::CreateInvoiceNotificationRequest
|
|
11
|
+
def account_id(); end
|
|
12
|
+
def account_id=(str_); end
|
|
13
|
+
def invoice_id(); end
|
|
14
|
+
def invoice_id=(str_); end
|
|
15
|
+
def create_invoice_notification(); end
|
|
16
|
+
def create_invoice_notification=(str_); end
|
|
17
|
+
end
|
|
@@ -8,7 +8,7 @@ module Moov
|
|
|
8
8
|
module Models
|
|
9
9
|
module Operations
|
|
10
10
|
|
|
11
|
-
class
|
|
11
|
+
class CreateInvoiceNotificationResponse
|
|
12
12
|
extend T::Sig
|
|
13
13
|
include Crystalline::MetadataFields
|
|
14
14
|
|
|
@@ -20,16 +20,13 @@ module Moov
|
|
|
20
20
|
field :raw_response, ::Faraday::Response
|
|
21
21
|
|
|
22
22
|
field :headers, Crystalline::Hash.new(Symbol, Crystalline::Array.new(::String))
|
|
23
|
-
# The request completed successfully.
|
|
24
|
-
field :cancellation, Crystalline::Nilable.new(Models::Components::Cancellation)
|
|
25
23
|
|
|
26
|
-
sig { params(content_type: ::String, status_code: ::Integer, raw_response: ::Faraday::Response, headers: T::Hash[Symbol, T::Array[::String]]
|
|
27
|
-
def initialize(content_type:, status_code:, raw_response:, headers
|
|
24
|
+
sig { params(content_type: ::String, status_code: ::Integer, raw_response: ::Faraday::Response, headers: T::Hash[Symbol, T::Array[::String]]).void }
|
|
25
|
+
def initialize(content_type:, status_code:, raw_response:, headers:)
|
|
28
26
|
@content_type = content_type
|
|
29
27
|
@status_code = status_code
|
|
30
28
|
@raw_response = raw_response
|
|
31
29
|
@headers = headers
|
|
32
|
-
@cancellation = cancellation
|
|
33
30
|
end
|
|
34
31
|
|
|
35
32
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
@@ -39,7 +36,6 @@ module Moov
|
|
|
39
36
|
return false unless @status_code == other.status_code
|
|
40
37
|
return false unless @raw_response == other.raw_response
|
|
41
38
|
return false unless @headers == other.headers
|
|
42
|
-
return false unless @cancellation == other.cancellation
|
|
43
39
|
true
|
|
44
40
|
end
|
|
45
41
|
end
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
class Moov::Models::Operations::
|
|
5
|
+
class Moov::Models::Operations::CreateInvoiceNotificationResponse
|
|
6
6
|
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
7
|
end
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
class Moov::Models::Operations::
|
|
10
|
+
class Moov::Models::Operations::CreateInvoiceNotificationResponse
|
|
11
11
|
def content_type(); end
|
|
12
12
|
def content_type=(str_); end
|
|
13
13
|
def status_code(); end
|
|
@@ -16,6 +16,4 @@ class Moov::Models::Operations::CreateCancellationResponse
|
|
|
16
16
|
def raw_response=(str_); end
|
|
17
17
|
def headers(); end
|
|
18
18
|
def headers=(str_); end
|
|
19
|
-
def cancellation(); end
|
|
20
|
-
def cancellation=(str_); end
|
|
21
19
|
end
|
|
@@ -21,19 +21,19 @@ module Moov
|
|
|
21
21
|
|
|
22
22
|
field :headers, Crystalline::Hash.new(Symbol, Crystalline::Array.new(::String))
|
|
23
23
|
# The request completed successfully.
|
|
24
|
-
field :
|
|
24
|
+
field :create_transfer_response, Crystalline::Nilable.new(Crystalline::Union.new(Models::Components::CreatedTransfer, Models::Components::AsyncTransfer))
|
|
25
25
|
# A transfer was successfully created but an error occurred while generating the synchronous response. The asynchronous response object will be returned.
|
|
26
26
|
field :async_transfer, Crystalline::Nilable.new(Models::Components::AsyncTransfer)
|
|
27
27
|
# The transfer was created, but rail-specific details may not be available within the 15 second timeout window.
|
|
28
28
|
field :transfer, Crystalline::Nilable.new(Models::Components::Transfer)
|
|
29
29
|
|
|
30
|
-
sig { params(content_type: ::String, status_code: ::Integer, raw_response: ::Faraday::Response, headers: T::Hash[Symbol, T::Array[::String]],
|
|
31
|
-
def initialize(content_type:, status_code:, raw_response:, headers:,
|
|
30
|
+
sig { params(content_type: ::String, status_code: ::Integer, raw_response: ::Faraday::Response, headers: T::Hash[Symbol, T::Array[::String]], create_transfer_response: T.nilable(T.any(Models::Components::CreatedTransfer, Models::Components::AsyncTransfer)), async_transfer: T.nilable(Models::Components::AsyncTransfer), transfer: T.nilable(Models::Components::Transfer)).void }
|
|
31
|
+
def initialize(content_type:, status_code:, raw_response:, headers:, create_transfer_response: nil, async_transfer: nil, transfer: nil)
|
|
32
32
|
@content_type = content_type
|
|
33
33
|
@status_code = status_code
|
|
34
34
|
@raw_response = raw_response
|
|
35
35
|
@headers = headers
|
|
36
|
-
@
|
|
36
|
+
@create_transfer_response = create_transfer_response
|
|
37
37
|
@async_transfer = async_transfer
|
|
38
38
|
@transfer = transfer
|
|
39
39
|
end
|
|
@@ -45,7 +45,7 @@ module Moov
|
|
|
45
45
|
return false unless @status_code == other.status_code
|
|
46
46
|
return false unless @raw_response == other.raw_response
|
|
47
47
|
return false unless @headers == other.headers
|
|
48
|
-
return false unless @
|
|
48
|
+
return false unless @create_transfer_response == other.create_transfer_response
|
|
49
49
|
return false unless @async_transfer == other.async_transfer
|
|
50
50
|
return false unless @transfer == other.transfer
|
|
51
51
|
true
|
|
@@ -16,8 +16,8 @@ class Moov::Models::Operations::CreateTransferResponse
|
|
|
16
16
|
def raw_response=(str_); end
|
|
17
17
|
def headers(); end
|
|
18
18
|
def headers=(str_); end
|
|
19
|
-
def
|
|
20
|
-
def
|
|
19
|
+
def create_transfer_response(); end
|
|
20
|
+
def create_transfer_response=(str_); end
|
|
21
21
|
def async_transfer(); end
|
|
22
22
|
def async_transfer=(str_); end
|
|
23
23
|
def transfer(); 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 Operations
|
|
10
|
+
|
|
11
|
+
class GetIssuedCardActivityRequest
|
|
12
|
+
extend T::Sig
|
|
13
|
+
include Crystalline::MetadataFields
|
|
14
|
+
|
|
15
|
+
# The Moov business account for which cards have been issued.
|
|
16
|
+
field :account_id, ::String, { 'path_param': { 'field_name': 'accountID', 'style': 'simple', 'explode': false } }
|
|
17
|
+
# The identifier for the activity item, either authorizationID or cardTransactionID.
|
|
18
|
+
field :id, ::String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
|
|
19
|
+
|
|
20
|
+
sig { params(account_id: ::String, id: ::String).void }
|
|
21
|
+
def initialize(account_id:, id:)
|
|
22
|
+
@account_id = account_id
|
|
23
|
+
@id = id
|
|
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 @account_id == other.account_id
|
|
30
|
+
return false unless @id == other.id
|
|
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::Operations::GetIssuedCardActivityRequest
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Operations::GetIssuedCardActivityRequest
|
|
11
|
+
def account_id(); end
|
|
12
|
+
def account_id=(str_); end
|
|
13
|
+
def id(); end
|
|
14
|
+
def id=(str_); end
|
|
15
|
+
end
|