moov_ruby 26.10.0.pre.dev.7 → 26.10.0.pre.dev.9
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 +48 -0
- data/lib/moov/models/components/createtransferrailoptions.rbi +21 -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/{wirecreditpaymentmethod_paymentmethodtype.rb → notificationchannel.rb} +2 -2
- data/lib/moov/models/components/{wirefailurecode.rbi → notificationchannel.rbi} +2 -2
- data/lib/moov/models/components/paymentmethodsbankaccount.rb +7 -2
- data/lib/moov/models/components/paymentmethodsbankaccount.rbi +2 -0
- data/lib/moov/models/components/paymentmethodtype.rb +0 -1
- 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/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/transferoptions.rb +3 -3
- data/lib/moov/models/components/transferpaymentmethodsbankaccount.rb +7 -2
- data/lib/moov/models/components/transferpaymentmethodsbankaccount.rbi +2 -0
- data/lib/moov/models/components/transferpaymentmethodtype.rb +0 -1
- data/lib/moov/models/components/transferprocessingdetails.rb +2 -6
- data/lib/moov/models/components/transferprocessingdetails.rbi +0 -2
- data/lib/moov/models/components/transferrailoptions.rb +2 -6
- data/lib/moov/models/components/transferrailoptions.rbi +0 -2
- data/lib/moov/models/components/transfertype.rb +0 -1
- data/lib/moov/models/components/updateinvoice.rb +6 -2
- data/lib/moov/models/components/updateinvoice.rbi +2 -0
- data/lib/moov/models/components/wallettransactiontype.rb +0 -1
- data/lib/moov/models/components/webhookdatatransferstatus.rb +1 -0
- data/lib/moov/models/components.rb +15 -10
- 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/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/{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/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/getpaymentmethod_response.rb +2 -2
- 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/listpaymentmethods_response.rb +2 -2
- 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 +14 -2
- data/lib/moov/payment_methods.rb +2 -2
- data/lib/moov/sdkconfiguration.rb +3 -3
- data/lib/moov/transfers.rb +3 -156
- metadata +68 -26
- data/lib/moov/models/components/createtransferdestinationwire.rb +0 -32
- data/lib/moov/models/components/createtransferdestinationwire.rbi +0 -13
- data/lib/moov/models/components/wirecreditpaymentmethod.rb +0 -40
- data/lib/moov/models/components/wirecreditpaymentmethod.rbi +0 -17
- data/lib/moov/models/components/wirecreditpaymentmethod_paymentmethodtype.rbi +0 -11
- data/lib/moov/models/components/wirecredittransferpaymentmethod.rb +0 -40
- data/lib/moov/models/components/wirecredittransferpaymentmethod.rbi +0 -17
- data/lib/moov/models/components/wirecredittransferpaymentmethod_paymentmethodtype.rb +0 -18
- data/lib/moov/models/components/wirecredittransferpaymentmethod_paymentmethodtype.rbi +0 -11
- data/lib/moov/models/components/wirefailurecode.rb +0 -28
- data/lib/moov/models/components/wireoptions.rb +0 -32
- data/lib/moov/models/components/wireoptions.rbi +0 -13
- data/lib/moov/models/components/wiretransactionstatus.rb +0 -23
- data/lib/moov/models/components/wiretransactionstatus.rbi +0 -11
- data/lib/moov/models/components/wiretransferprocessingdetails.rb +0 -40
- data/lib/moov/models/components/wiretransferprocessingdetails.rbi +0 -17
- data/lib/moov/models/operations/createcancellation_request.rb +0 -40
- data/lib/moov/models/operations/createcancellation_request.rbi +0 -17
|
@@ -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
|
|
@@ -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
|
data/lib/moov/models/errors.rb
CHANGED
|
@@ -11,12 +11,14 @@ module Moov
|
|
|
11
11
|
autoload :AddCapabilitiesError, 'moov/models/errors/addcapabilitieserror.rb'
|
|
12
12
|
autoload :AssignCountriesError, 'moov/models/errors/assigncountrieserror.rb'
|
|
13
13
|
autoload :AuthTokenRequestError, 'moov/models/errors/authtokenrequesterror.rb'
|
|
14
|
+
autoload :AuthorizationSimulationValidationError, 'moov/models/errors/authorizationsimulationvalidationerror.rb'
|
|
14
15
|
autoload :BankAccountAttestationValidationError, 'moov/models/errors/bankaccountattestationvalidationerror.rb'
|
|
15
16
|
autoload :BankAccountValidationError, 'moov/models/errors/bankaccountvalidationerror.rb'
|
|
16
17
|
autoload :BrandValidationError, 'moov/models/errors/brandvalidationerror.rb'
|
|
17
18
|
autoload :CaptureValidationError, 'moov/models/errors/capturevalidationerror.rb'
|
|
18
19
|
autoload :CardAcquiringRefundError, 'moov/models/errors/cardacquiringrefund_error.rb'
|
|
19
20
|
autoload :CardMetadataRequestError, 'moov/models/errors/cardmetadatarequesterror.rb'
|
|
21
|
+
autoload :ClearingSimulationValidationError, 'moov/models/errors/clearingsimulationvalidationerror.rb'
|
|
20
22
|
autoload :ConnectAccountRequestValidationError, 'moov/models/errors/connectaccountrequestvalidationerror.rb'
|
|
21
23
|
autoload :CreateAccountError, 'moov/models/errors/createaccounterror.rb'
|
|
22
24
|
autoload :CreateInvoiceError, 'moov/models/errors/createinvoiceerror.rb'
|
|
@@ -36,6 +38,8 @@ module Moov
|
|
|
36
38
|
autoload :ImageMetadataValidationError, 'moov/models/errors/imagemetadatavalidationerror.rb'
|
|
37
39
|
autoload :ImageMetadataError, 'moov/models/errors/imagemetadata_error.rb'
|
|
38
40
|
autoload :ImageRequestValidationError, 'moov/models/errors/imagerequestvalidationerror.rb'
|
|
41
|
+
autoload :InvoiceNotificationError, 'moov/models/errors/invoicenotificationerror.rb'
|
|
42
|
+
autoload :InvoiceNotificationRateLimitedError, 'moov/models/errors/invoicenotificationratelimitederror.rb'
|
|
39
43
|
autoload :LinkApplePayError, 'moov/models/errors/linkapplepayerror.rb'
|
|
40
44
|
autoload :LinkCardError, 'moov/models/errors/linkcarderror.rb'
|
|
41
45
|
autoload :LinkGooglePayError, 'moov/models/errors/linkgooglepayerror.rb'
|
|
@@ -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 CreateAuthorizationSimulationRequest
|
|
12
|
+
extend T::Sig
|
|
13
|
+
include Crystalline::MetadataFields
|
|
14
|
+
|
|
15
|
+
# The Moov business account for which the card was issued.
|
|
16
|
+
field :account_id, ::String, { 'path_param': { 'field_name': 'accountID', 'style': 'simple', 'explode': false } }
|
|
17
|
+
|
|
18
|
+
field :create_authorization_simulation, Models::Components::CreateAuthorizationSimulation, { 'request': { 'media_type': 'application/json' } }
|
|
19
|
+
|
|
20
|
+
sig { params(account_id: ::String, create_authorization_simulation: Models::Components::CreateAuthorizationSimulation).void }
|
|
21
|
+
def initialize(account_id:, create_authorization_simulation:)
|
|
22
|
+
@account_id = account_id
|
|
23
|
+
@create_authorization_simulation = create_authorization_simulation
|
|
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 @create_authorization_simulation == other.create_authorization_simulation
|
|
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::CreateAuthorizationSimulationRequest
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Operations::CreateAuthorizationSimulationRequest
|
|
11
|
+
def account_id(); end
|
|
12
|
+
def account_id=(str_); end
|
|
13
|
+
def create_authorization_simulation(); end
|
|
14
|
+
def create_authorization_simulation=(str_); end
|
|
15
|
+
end
|
|
@@ -0,0 +1,52 @@
|
|
|
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 CreateAuthorizationSimulationResponse
|
|
12
|
+
extend T::Sig
|
|
13
|
+
include Crystalline::MetadataFields
|
|
14
|
+
|
|
15
|
+
# HTTP response content type for this operation
|
|
16
|
+
field :content_type, ::String
|
|
17
|
+
# HTTP response status code for this operation
|
|
18
|
+
field :status_code, ::Integer
|
|
19
|
+
# Raw HTTP response; suitable for custom response parsing
|
|
20
|
+
field :raw_response, ::Faraday::Response
|
|
21
|
+
|
|
22
|
+
field :headers, Crystalline::Hash.new(Symbol, Crystalline::Array.new(::String))
|
|
23
|
+
# The request completed successfully.
|
|
24
|
+
field :issued_card_authorization, Crystalline::Nilable.new(Models::Components::IssuedCardAuthorization)
|
|
25
|
+
# The resource was successfully accepted.
|
|
26
|
+
field :authorization_simulation_async_response, Crystalline::Nilable.new(Models::Components::AuthorizationSimulationAsyncResponse)
|
|
27
|
+
|
|
28
|
+
sig { params(content_type: ::String, status_code: ::Integer, raw_response: ::Faraday::Response, headers: T::Hash[Symbol, T::Array[::String]], issued_card_authorization: T.nilable(Models::Components::IssuedCardAuthorization), authorization_simulation_async_response: T.nilable(Models::Components::AuthorizationSimulationAsyncResponse)).void }
|
|
29
|
+
def initialize(content_type:, status_code:, raw_response:, headers:, issued_card_authorization: nil, authorization_simulation_async_response: nil)
|
|
30
|
+
@content_type = content_type
|
|
31
|
+
@status_code = status_code
|
|
32
|
+
@raw_response = raw_response
|
|
33
|
+
@headers = headers
|
|
34
|
+
@issued_card_authorization = issued_card_authorization
|
|
35
|
+
@authorization_simulation_async_response = authorization_simulation_async_response
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
39
|
+
def ==(other)
|
|
40
|
+
return false unless other.is_a? self.class
|
|
41
|
+
return false unless @content_type == other.content_type
|
|
42
|
+
return false unless @status_code == other.status_code
|
|
43
|
+
return false unless @raw_response == other.raw_response
|
|
44
|
+
return false unless @headers == other.headers
|
|
45
|
+
return false unless @issued_card_authorization == other.issued_card_authorization
|
|
46
|
+
return false unless @authorization_simulation_async_response == other.authorization_simulation_async_response
|
|
47
|
+
true
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Moov::Models::Operations::CreateAuthorizationSimulationResponse
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Operations::CreateAuthorizationSimulationResponse
|
|
11
|
+
def content_type(); end
|
|
12
|
+
def content_type=(str_); end
|
|
13
|
+
def status_code(); end
|
|
14
|
+
def status_code=(str_); end
|
|
15
|
+
def raw_response(); end
|
|
16
|
+
def raw_response=(str_); end
|
|
17
|
+
def headers(); end
|
|
18
|
+
def headers=(str_); end
|
|
19
|
+
def issued_card_authorization(); end
|
|
20
|
+
def issued_card_authorization=(str_); end
|
|
21
|
+
def authorization_simulation_async_response(); end
|
|
22
|
+
def authorization_simulation_async_response=(str_); end
|
|
23
|
+
end
|
|
@@ -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 CreateClearingSimulationRequest
|
|
12
|
+
extend T::Sig
|
|
13
|
+
include Crystalline::MetadataFields
|
|
14
|
+
|
|
15
|
+
# The Moov business account for which the card was issued.
|
|
16
|
+
field :account_id, ::String, { 'path_param': { 'field_name': 'accountID', 'style': 'simple', 'explode': false } }
|
|
17
|
+
# The ID of the authorization to clear.
|
|
18
|
+
field :authorization_id, ::String, { 'path_param': { 'field_name': 'authorizationID', 'style': 'simple', 'explode': false } }
|
|
19
|
+
|
|
20
|
+
field :create_clearing_simulation, Models::Components::CreateClearingSimulation, { 'request': { 'media_type': 'application/json' } }
|
|
21
|
+
|
|
22
|
+
sig { params(account_id: ::String, authorization_id: ::String, create_clearing_simulation: Models::Components::CreateClearingSimulation).void }
|
|
23
|
+
def initialize(account_id:, authorization_id:, create_clearing_simulation:)
|
|
24
|
+
@account_id = account_id
|
|
25
|
+
@authorization_id = authorization_id
|
|
26
|
+
@create_clearing_simulation = create_clearing_simulation
|
|
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 @authorization_id == other.authorization_id
|
|
34
|
+
return false unless @create_clearing_simulation == other.create_clearing_simulation
|
|
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::CreateClearingSimulationRequest
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Operations::CreateClearingSimulationRequest
|
|
11
|
+
def account_id(); end
|
|
12
|
+
def account_id=(str_); end
|
|
13
|
+
def authorization_id(); end
|
|
14
|
+
def authorization_id=(str_); end
|
|
15
|
+
def create_clearing_simulation(); end
|
|
16
|
+
def create_clearing_simulation=(str_); end
|
|
17
|
+
end
|
|
@@ -0,0 +1,52 @@
|
|
|
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 CreateClearingSimulationResponse
|
|
12
|
+
extend T::Sig
|
|
13
|
+
include Crystalline::MetadataFields
|
|
14
|
+
|
|
15
|
+
# HTTP response content type for this operation
|
|
16
|
+
field :content_type, ::String
|
|
17
|
+
# HTTP response status code for this operation
|
|
18
|
+
field :status_code, ::Integer
|
|
19
|
+
# Raw HTTP response; suitable for custom response parsing
|
|
20
|
+
field :raw_response, ::Faraday::Response
|
|
21
|
+
|
|
22
|
+
field :headers, Crystalline::Hash.new(Symbol, Crystalline::Array.new(::String))
|
|
23
|
+
# The request completed successfully.
|
|
24
|
+
field :issued_card_authorization, Crystalline::Nilable.new(Models::Components::IssuedCardAuthorization)
|
|
25
|
+
# The resource was successfully accepted.
|
|
26
|
+
field :authorization_simulation_async_response, Crystalline::Nilable.new(Models::Components::AuthorizationSimulationAsyncResponse)
|
|
27
|
+
|
|
28
|
+
sig { params(content_type: ::String, status_code: ::Integer, raw_response: ::Faraday::Response, headers: T::Hash[Symbol, T::Array[::String]], issued_card_authorization: T.nilable(Models::Components::IssuedCardAuthorization), authorization_simulation_async_response: T.nilable(Models::Components::AuthorizationSimulationAsyncResponse)).void }
|
|
29
|
+
def initialize(content_type:, status_code:, raw_response:, headers:, issued_card_authorization: nil, authorization_simulation_async_response: nil)
|
|
30
|
+
@content_type = content_type
|
|
31
|
+
@status_code = status_code
|
|
32
|
+
@raw_response = raw_response
|
|
33
|
+
@headers = headers
|
|
34
|
+
@issued_card_authorization = issued_card_authorization
|
|
35
|
+
@authorization_simulation_async_response = authorization_simulation_async_response
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
39
|
+
def ==(other)
|
|
40
|
+
return false unless other.is_a? self.class
|
|
41
|
+
return false unless @content_type == other.content_type
|
|
42
|
+
return false unless @status_code == other.status_code
|
|
43
|
+
return false unless @raw_response == other.raw_response
|
|
44
|
+
return false unless @headers == other.headers
|
|
45
|
+
return false unless @issued_card_authorization == other.issued_card_authorization
|
|
46
|
+
return false unless @authorization_simulation_async_response == other.authorization_simulation_async_response
|
|
47
|
+
true
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Moov::Models::Operations::CreateClearingSimulationResponse
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Operations::CreateClearingSimulationResponse
|
|
11
|
+
def content_type(); end
|
|
12
|
+
def content_type=(str_); end
|
|
13
|
+
def status_code(); end
|
|
14
|
+
def status_code=(str_); end
|
|
15
|
+
def raw_response(); end
|
|
16
|
+
def raw_response=(str_); end
|
|
17
|
+
def headers(); end
|
|
18
|
+
def headers=(str_); end
|
|
19
|
+
def issued_card_authorization(); end
|
|
20
|
+
def issued_card_authorization=(str_); end
|
|
21
|
+
def authorization_simulation_async_response(); end
|
|
22
|
+
def authorization_simulation_async_response=(str_); end
|
|
23
|
+
end
|
|
@@ -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
|