moov_ruby 0.0.0.pre.dev.31 → 0.0.0.pre.dev.33
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 +2 -8
- data/lib/moov/invoices.rb +180 -0
- data/lib/moov/issuing_transactions.rb +123 -0
- data/lib/moov/models/components/capability.rb +2 -0
- data/lib/moov/models/components/capabilityid.rb +3 -0
- data/lib/moov/models/components/capture.rb +2 -6
- data/lib/moov/models/components/capture.rbi +0 -2
- data/lib/moov/models/components/capturemethod.rb +21 -0
- data/lib/moov/models/components/capturemethod.rbi +11 -0
- data/lib/moov/models/components/capturestatus.rb +1 -0
- data/lib/moov/models/components/cardpaymentoptions.rb +14 -2
- data/lib/moov/models/components/cardpaymentoptions.rbi +6 -0
- data/lib/moov/models/components/createauthorizationsimulation.rb +2 -2
- data/lib/moov/models/components/createcapture.rb +2 -6
- data/lib/moov/models/components/createcapture.rbi +0 -2
- data/lib/moov/models/components/createcardpaymentoptions.rb +55 -0
- data/lib/moov/models/components/createcardpaymentoptions.rbi +21 -0
- data/lib/moov/models/components/createcardpaymentoptions_capturemethod.rb +20 -0
- data/lib/moov/models/components/createcardpaymentoptions_capturemethod.rbi +11 -0
- 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/createsweepconfig.rb +6 -2
- data/lib/moov/models/components/createsweepconfig.rbi +2 -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/fullissuedcard.rb +6 -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/issuedcard.rb +6 -4
- data/lib/moov/models/components/issuedcardauthorization.rb +6 -2
- data/lib/moov/models/components/issuedcardauthorization.rbi +2 -0
- data/lib/moov/models/components/issuedcardstate.rb +6 -4
- data/lib/moov/models/components/issuedcardtransaction.rb +6 -2
- data/lib/moov/models/components/issuedcardtransaction.rbi +2 -0
- data/lib/moov/models/components/issuedcontrols_allowedschedule.rb +1 -1
- data/lib/moov/models/components/issuingcontrols_allowedschedule.rb +1 -1
- data/lib/moov/models/components/notificationchannel.rb +18 -0
- data/lib/moov/models/components/notificationchannel.rbi +11 -0
- data/lib/moov/models/components/patchsweepconfig.rb +6 -2
- data/lib/moov/models/components/patchsweepconfig.rbi +2 -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/schedule.rb +40 -0
- data/lib/moov/models/components/schedule.rbi +17 -0
- data/lib/moov/models/components/schedulewindow.rb +1 -1
- 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/sweepconfig.rb +6 -2
- data/lib/moov/models/components/sweepconfig.rbi +2 -0
- data/lib/moov/models/components/sweepconfigschedule.rb +40 -0
- data/lib/moov/models/components/sweepconfigschedule.rbi +17 -0
- data/lib/moov/models/components/sweepconfigscheduleerror.rb +40 -0
- data/lib/moov/models/components/sweepconfigscheduleerror.rbi +17 -0
- data/lib/moov/models/components/sweepschedulefrequency.rb +18 -0
- data/lib/moov/models/components/sweepschedulefrequency.rbi +11 -0
- data/lib/moov/models/components/transferauthorization.rb +6 -2
- data/lib/moov/models/components/transferauthorization.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/updateissuedcard.rb +3 -3
- data/lib/moov/models/components/updateissuedcardstate.rb +3 -3
- data/lib/moov/models/components/updateissuingcontrols_allowedschedule.rb +1 -1
- data/lib/moov/models/components/upsertunderwriting.rb +1 -1
- data/lib/moov/models/components/webhookdatacapabilityrequested.rb +2 -0
- data/lib/moov/models/components/webhookdatacapabilityupdated.rb +2 -0
- data/lib/moov/models/components.rb +17 -3
- data/lib/moov/models/errors/authorizationsimulationvalidationerror.rb +3 -3
- data/lib/moov/models/errors/capturevalidationerror.rb +2 -6
- data/lib/moov/models/errors/capturevalidationerror.rbi +0 -2
- 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/createsweepconfigerror.rb +6 -2
- data/lib/moov/models/errors/createsweepconfigerror.rbi +2 -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/listtransfersvalidationerror.rb +6 -2
- data/lib/moov/models/errors/listtransfersvalidationerror.rbi +2 -0
- data/lib/moov/models/errors/patchsweepconfigerror.rb +6 -2
- data/lib/moov/models/errors/patchsweepconfigerror.rbi +2 -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/disablecapability_request.rb +2 -0
- data/lib/moov/models/operations/getcapability_request.rb +2 -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/listissuedcardauthorizations_request.rb +6 -2
- data/lib/moov/models/operations/listissuedcardauthorizations_request.rbi +2 -0
- data/lib/moov/models/operations/listissuedcards_request.rb +6 -2
- data/lib/moov/models/operations/listissuedcards_request.rbi +2 -0
- data/lib/moov/models/operations/listissuedcardtransactions_request.rb +6 -2
- data/lib/moov/models/operations/listissuedcardtransactions_request.rbi +2 -0
- data/lib/moov/models/operations/listtransfers_request.rb +7 -2
- data/lib/moov/models/operations/listtransfers_request.rbi +2 -0
- data/lib/moov/models/operations/listtransfers_response.rb +1 -1
- data/lib/moov/models/operations.rb +4 -2
- data/lib/moov/sdkconfiguration.rb +3 -3
- data/lib/moov/transfers.rb +9 -157
- metadata +48 -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
|
@@ -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 Components
|
|
10
|
+
|
|
11
|
+
class SweepConfigSchedule
|
|
12
|
+
extend T::Sig
|
|
13
|
+
include Crystalline::MetadataFields
|
|
14
|
+
|
|
15
|
+
# Time of day the sweep runs, in 24-hour `HH:mm` format. Must fall on a 15-minute mark (`:00`, `:15`, `:30`, `:45`).
|
|
16
|
+
field :cutoff_time, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('cutoffTime'), required: true } }
|
|
17
|
+
# IANA timezone for `cutoffTime`, such as `America/New_York` or `UTC`.
|
|
18
|
+
field :timezone, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('timezone'), required: true } }
|
|
19
|
+
# How often the sweep runs. Defaults to `daily`.
|
|
20
|
+
field :frequency, Crystalline::Nilable.new(Models::Components::SweepScheduleFrequency), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('frequency'), 'decoder': ::Moov::Utils.enum_from_string(Models::Components::SweepScheduleFrequency, true) } }
|
|
21
|
+
|
|
22
|
+
sig { params(cutoff_time: ::String, timezone: ::String, frequency: T.nilable(Models::Components::SweepScheduleFrequency)).void }
|
|
23
|
+
def initialize(cutoff_time:, timezone:, frequency: nil)
|
|
24
|
+
@cutoff_time = cutoff_time
|
|
25
|
+
@timezone = timezone
|
|
26
|
+
@frequency = frequency
|
|
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 @cutoff_time == other.cutoff_time
|
|
33
|
+
return false unless @timezone == other.timezone
|
|
34
|
+
return false unless @frequency == other.frequency
|
|
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::Components::SweepConfigSchedule
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Components::SweepConfigSchedule
|
|
11
|
+
def cutoff_time(); end
|
|
12
|
+
def cutoff_time=(str_); end
|
|
13
|
+
def timezone(); end
|
|
14
|
+
def timezone=(str_); end
|
|
15
|
+
def frequency(); end
|
|
16
|
+
def frequency=(str_); end
|
|
17
|
+
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 Components
|
|
10
|
+
|
|
11
|
+
class SweepConfigScheduleError
|
|
12
|
+
extend T::Sig
|
|
13
|
+
include Crystalline::MetadataFields
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
field :cutoff_time, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('cutoffTime') } }
|
|
17
|
+
|
|
18
|
+
field :timezone, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('timezone') } }
|
|
19
|
+
|
|
20
|
+
field :frequency, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('frequency') } }
|
|
21
|
+
|
|
22
|
+
sig { params(cutoff_time: T.nilable(::String), timezone: T.nilable(::String), frequency: T.nilable(::String)).void }
|
|
23
|
+
def initialize(cutoff_time: nil, timezone: nil, frequency: nil)
|
|
24
|
+
@cutoff_time = cutoff_time
|
|
25
|
+
@timezone = timezone
|
|
26
|
+
@frequency = frequency
|
|
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 @cutoff_time == other.cutoff_time
|
|
33
|
+
return false unless @timezone == other.timezone
|
|
34
|
+
return false unless @frequency == other.frequency
|
|
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::Components::SweepConfigScheduleError
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Components::SweepConfigScheduleError
|
|
11
|
+
def cutoff_time(); end
|
|
12
|
+
def cutoff_time=(str_); end
|
|
13
|
+
def timezone(); end
|
|
14
|
+
def timezone=(str_); end
|
|
15
|
+
def frequency(); end
|
|
16
|
+
def frequency=(str_); end
|
|
17
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module Moov
|
|
8
|
+
module Models
|
|
9
|
+
module Components
|
|
10
|
+
|
|
11
|
+
class SweepScheduleFrequency < T::Enum
|
|
12
|
+
enums do
|
|
13
|
+
DAILY = new('daily')
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -29,9 +29,11 @@ module Moov
|
|
|
29
29
|
field :amount_details, Crystalline::Nilable.new(Models::Components::TransferAmountDetails), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('amountDetails') } }
|
|
30
30
|
# Expiration time for the approved authorization, when available.
|
|
31
31
|
field :expires_on, Crystalline::Nilable.new(::DateTime), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('expiresOn'), 'decoder': ::Moov::Utils.datetime_from_iso_format(true) } }
|
|
32
|
+
# Whether the card network granted the extended authorization hold. Returned only when `options.cardPayment.isExtendedAuthorizationRequested` is `true`.
|
|
33
|
+
field :is_extended_authorization_granted, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('isExtendedAuthorizationGranted') } }
|
|
32
34
|
|
|
33
|
-
sig { params(authorization_id: ::String, requested_amount: Models::Components::AmountDecimal, authorized_amount: Models::Components::AmountDecimal, captured_amount: Models::Components::AmountDecimal, capturable_amount: Models::Components::AmountDecimal, amount_details: T.nilable(Models::Components::TransferAmountDetails), expires_on: T.nilable(::DateTime)).void }
|
|
34
|
-
def initialize(authorization_id:, requested_amount:, authorized_amount:, captured_amount:, capturable_amount:, amount_details: nil, expires_on: nil)
|
|
35
|
+
sig { params(authorization_id: ::String, requested_amount: Models::Components::AmountDecimal, authorized_amount: Models::Components::AmountDecimal, captured_amount: Models::Components::AmountDecimal, capturable_amount: Models::Components::AmountDecimal, amount_details: T.nilable(Models::Components::TransferAmountDetails), expires_on: T.nilable(::DateTime), is_extended_authorization_granted: T.nilable(T::Boolean)).void }
|
|
36
|
+
def initialize(authorization_id:, requested_amount:, authorized_amount:, captured_amount:, capturable_amount:, amount_details: nil, expires_on: nil, is_extended_authorization_granted: nil)
|
|
35
37
|
@authorization_id = authorization_id
|
|
36
38
|
@requested_amount = requested_amount
|
|
37
39
|
@authorized_amount = authorized_amount
|
|
@@ -39,6 +41,7 @@ module Moov
|
|
|
39
41
|
@capturable_amount = capturable_amount
|
|
40
42
|
@amount_details = amount_details
|
|
41
43
|
@expires_on = expires_on
|
|
44
|
+
@is_extended_authorization_granted = is_extended_authorization_granted
|
|
42
45
|
end
|
|
43
46
|
|
|
44
47
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
@@ -51,6 +54,7 @@ module Moov
|
|
|
51
54
|
return false unless @capturable_amount == other.capturable_amount
|
|
52
55
|
return false unless @amount_details == other.amount_details
|
|
53
56
|
return false unless @expires_on == other.expires_on
|
|
57
|
+
return false unless @is_extended_authorization_granted == other.is_extended_authorization_granted
|
|
54
58
|
true
|
|
55
59
|
end
|
|
56
60
|
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
|
|
@@ -13,9 +13,9 @@ module Moov
|
|
|
13
13
|
include Crystalline::MetadataFields
|
|
14
14
|
|
|
15
15
|
# Updates the state of a Moov issued card.
|
|
16
|
-
# - `active`:
|
|
17
|
-
# - `frozen`:
|
|
18
|
-
# - `closed`: The card is permanently deactivated
|
|
16
|
+
# - `active`: The card is operational and authorizations can be approved.
|
|
17
|
+
# - `frozen`: The card is temporarily suspended and authorizations cannot be approved. Set the state back to `active` to reactivate it. A card can move between `frozen` and `active` as often as needed.
|
|
18
|
+
# - `closed`: The card is permanently deactivated. A card is closed by request or when it expires, and cannot be reopened.
|
|
19
19
|
field :state, Crystalline::Nilable.new(Models::Components::UpdateIssuedCardState), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('state'), 'decoder': ::Moov::Utils.enum_from_string(Models::Components::UpdateIssuedCardState, true) } }
|
|
20
20
|
# Mutable spend controls for the card.
|
|
21
21
|
field :controls, Crystalline::Nilable.new(Models::Components::UpdateIssuingControls), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('controls') } }
|
|
@@ -8,9 +8,9 @@ module Moov
|
|
|
8
8
|
module Models
|
|
9
9
|
module Components
|
|
10
10
|
# UpdateIssuedCardState - Updates the state of a Moov issued card.
|
|
11
|
-
# - `active`:
|
|
12
|
-
# - `frozen`:
|
|
13
|
-
# - `closed`: The card is permanently deactivated
|
|
11
|
+
# - `active`: The card is operational and authorizations can be approved.
|
|
12
|
+
# - `frozen`: The card is temporarily suspended and authorizations cannot be approved. Set the state back to `active` to reactivate it. A card can move between `frozen` and `active` as often as needed.
|
|
13
|
+
# - `closed`: The card is permanently deactivated. A card is closed by request or when it expires, and cannot be reopened.
|
|
14
14
|
class UpdateIssuedCardState < T::Enum
|
|
15
15
|
enums do
|
|
16
16
|
ACTIVE = new('active')
|
|
@@ -14,7 +14,7 @@ module Moov
|
|
|
14
14
|
|
|
15
15
|
# IANA timezone string used to evaluate window boundaries against the authorization time.
|
|
16
16
|
field :timezone, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('timezone') } }
|
|
17
|
-
# Time windows during which the card
|
|
17
|
+
# Time windows during which authorizations on the card can be approved. Any matching window allows the transaction.
|
|
18
18
|
field :windows, Crystalline::Nilable.new(Crystalline::Array.new(Models::Components::ScheduleWindow)), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('windows') } }
|
|
19
19
|
|
|
20
20
|
sig { params(timezone: T.nilable(::String), windows: T.nilable(T::Array[Models::Components::ScheduleWindow])).void }
|
|
@@ -30,7 +30,7 @@ module Moov
|
|
|
30
30
|
#
|
|
31
31
|
# Issued cards are funded from the account's card-issuing wallet before they can be spent, so estimated activity is the only data collected.
|
|
32
32
|
field :card_issuing, Crystalline::Nilable.new(Models::Components::CardIssuing), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('cardIssuing') } }
|
|
33
|
-
|
|
33
|
+
# For most use cases, you can omit `submissionIntent`. Set it to `wait` to pause the account's underwriting approval process until you send a subsequent request with `submissionIntent` set to `submit`.
|
|
34
34
|
field :submission_intent, Crystalline::Nilable.new(Models::Components::SubmissionIntent), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('submissionIntent'), 'decoder': ::Moov::Utils.enum_from_string(Models::Components::SubmissionIntent, true) } }
|
|
35
35
|
|
|
36
36
|
sig { params(geographic_reach: T.nilable(Models::Components::GeographicReach), business_presence: T.nilable(Models::Components::BusinessPresence), pending_litigation: T.nilable(Models::Components::PendingLitigation), volume_share_by_customer_type: T.nilable(Models::Components::VolumeShareByCustomerType), collect_funds: T.nilable(Models::Components::CollectFunds), money_transfer: T.nilable(Models::Components::MoneyTransfer), send_funds: T.nilable(Models::Components::SendFunds), card_issuing: T.nilable(Models::Components::CardIssuing), submission_intent: T.nilable(Models::Components::SubmissionIntent)).void }
|
|
@@ -23,6 +23,8 @@ module Moov
|
|
|
23
23
|
# Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to choose the right capabilities for your integration.
|
|
24
24
|
#
|
|
25
25
|
# The `production-app`, `platform.production-app`, and / or `platform.wallet-transfers` capabilities might appear in the list for your Partner account. These are read-only capabilities that Moov requests. These capabilities remain active with your account and require no additional action.
|
|
26
|
+
#
|
|
27
|
+
# Starting in v2026.10.00, the `platform.moov-money` capability might appear in the list for accounts enrolled in Moov Money. This is a read-only capability that Moov requests. It requires no additional action.
|
|
26
28
|
field :capability_id, Models::Components::CapabilityID, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('capabilityID'), required: true, 'decoder': ::Moov::Utils.open_enum_from_string(Models::Components::CapabilityID, false) } }
|
|
27
29
|
|
|
28
30
|
field :foreign_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('foreignID') } }
|
|
@@ -23,6 +23,8 @@ module Moov
|
|
|
23
23
|
# Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to choose the right capabilities for your integration.
|
|
24
24
|
#
|
|
25
25
|
# The `production-app`, `platform.production-app`, and / or `platform.wallet-transfers` capabilities might appear in the list for your Partner account. These are read-only capabilities that Moov requests. These capabilities remain active with your account and require no additional action.
|
|
26
|
+
#
|
|
27
|
+
# Starting in v2026.10.00, the `platform.moov-money` capability might appear in the list for accounts enrolled in Moov Money. This is a read-only capability that Moov requests. It requires no additional action.
|
|
26
28
|
field :capability_id, Models::Components::CapabilityID, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('capabilityID'), required: true, 'decoder': ::Moov::Utils.open_enum_from_string(Models::Components::CapabilityID, false) } }
|
|
27
29
|
# The status of the capability requested for an account.
|
|
28
30
|
field :status, Models::Components::CapabilityStatus, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('status'), required: true, 'decoder': ::Moov::Utils.open_enum_from_string(Models::Components::CapabilityStatus, false) } }
|
|
@@ -129,6 +129,7 @@ module Moov
|
|
|
129
129
|
autoload :CapabilityRequirement, 'moov/models/components/capabilityrequirement.rb'
|
|
130
130
|
autoload :CapabilityStatus, 'moov/models/components/capabilitystatus.rb'
|
|
131
131
|
autoload :Capture, 'moov/models/components/capture.rb'
|
|
132
|
+
autoload :CaptureMethod, 'moov/models/components/capturemethod.rb'
|
|
132
133
|
autoload :CaptureStatus, 'moov/models/components/capturestatus.rb'
|
|
133
134
|
autoload :Card, 'moov/models/components/card.rb'
|
|
134
135
|
autoload :CardAcceptanceMethods, 'moov/models/components/cardacceptancemethods.rb'
|
|
@@ -141,7 +142,6 @@ module Moov
|
|
|
141
142
|
autoload :CardBrand, 'moov/models/components/cardbrand.rb'
|
|
142
143
|
autoload :CardBrandFees, 'moov/models/components/cardbrandfees.rb'
|
|
143
144
|
autoload :CardExpiration, 'moov/models/components/cardexpiration.rb'
|
|
144
|
-
autoload :CardExpirationError, 'moov/models/components/cardexpirationerror.rb'
|
|
145
145
|
autoload :CardIssuing, 'moov/models/components/cardissuing.rb'
|
|
146
146
|
autoload :CardIssuingError, 'moov/models/components/cardissuingerror.rb'
|
|
147
147
|
autoload :CardIssuingNetwork, 'moov/models/components/cardissuingnetwork.rb'
|
|
@@ -194,8 +194,9 @@ module Moov
|
|
|
194
194
|
autoload :CreateBusinessErrorIndustryCodes, 'moov/models/components/createbusinesserror_industrycodes.rb'
|
|
195
195
|
autoload :CreateBusinessErrorTaxID, 'moov/models/components/createbusinesserror_taxid.rb'
|
|
196
196
|
autoload :CreateBusinessProfile, 'moov/models/components/createbusinessprofile.rb'
|
|
197
|
-
autoload :CreateCancellation, 'moov/models/components/createcancellation.rb'
|
|
198
197
|
autoload :CreateCapture, 'moov/models/components/createcapture.rb'
|
|
198
|
+
autoload :CreateCardPaymentOptions, 'moov/models/components/createcardpaymentoptions.rb'
|
|
199
|
+
autoload :CreateCardPaymentOptionsCaptureMethod, 'moov/models/components/createcardpaymentoptions_capturemethod.rb'
|
|
199
200
|
autoload :CreateClearingSimulation, 'moov/models/components/createclearingsimulation.rb'
|
|
200
201
|
autoload :CreateEvidenceFileMultiPart, 'moov/models/components/createevidencefilemultipart.rb'
|
|
201
202
|
autoload :CreateEvidenceFileMultiPartFile, 'moov/models/components/createevidencefilemultipart_file.rb'
|
|
@@ -214,6 +215,7 @@ module Moov
|
|
|
214
215
|
autoload :CreateInvoiceLineItems, 'moov/models/components/createinvoicelineitems.rb'
|
|
215
216
|
autoload :CreateInvoiceLineItemsUpdate, 'moov/models/components/createinvoicelineitemsupdate.rb'
|
|
216
217
|
autoload :CreateInvoiceLineItemsValidationError, 'moov/models/components/createinvoicelineitemsvalidationerror.rb'
|
|
218
|
+
autoload :CreateInvoiceNotification, 'moov/models/components/createinvoicenotification.rb'
|
|
217
219
|
autoload :CreateInvoicePayment, 'moov/models/components/createinvoicepayment.rb'
|
|
218
220
|
autoload :CreatePaymentLink, 'moov/models/components/createpaymentlink.rb'
|
|
219
221
|
autoload :CreatePaymentLinkAmountDetails, 'moov/models/components/createpaymentlinkamountdetails.rb'
|
|
@@ -260,6 +262,8 @@ module Moov
|
|
|
260
262
|
autoload :CreateTransferLineItems, 'moov/models/components/createtransferlineitems.rb'
|
|
261
263
|
autoload :CreateTransferLineItemsValidationError, 'moov/models/components/createtransferlineitemsvalidationerror.rb'
|
|
262
264
|
autoload :CreateTransferOptions, 'moov/models/components/createtransferoptions.rb'
|
|
265
|
+
autoload :CreateTransferRailOptions, 'moov/models/components/createtransferrailoptions.rb'
|
|
266
|
+
autoload :CreateTransferResponse, 'moov/models/components/createtransferresponse.rb'
|
|
263
267
|
autoload :CreateTransferSource, 'moov/models/components/createtransfersource.rb'
|
|
264
268
|
autoload :CreateTransferSourceACH, 'moov/models/components/createtransfersourceach.rb'
|
|
265
269
|
autoload :CreateTransferSourceCard, 'moov/models/components/createtransfersourcecard.rb'
|
|
@@ -374,7 +378,11 @@ module Moov
|
|
|
374
378
|
autoload :InvoiceLineItemValidationError, 'moov/models/components/invoicelineitemvalidationerror.rb'
|
|
375
379
|
autoload :InvoiceLineItems, 'moov/models/components/invoicelineitems.rb'
|
|
376
380
|
autoload :InvoiceLineItemsValidationError, 'moov/models/components/invoicelineitemsvalidationerror.rb'
|
|
381
|
+
autoload :InvoiceNotificationLimitedChannel, 'moov/models/components/invoicenotificationlimitedchannel.rb'
|
|
377
382
|
autoload :InvoicePayment, 'moov/models/components/invoicepayment.rb'
|
|
383
|
+
autoload :InvoicePaymentOptions, 'moov/models/components/invoicepaymentoptions.rb'
|
|
384
|
+
autoload :InvoicePaymentOptionsError, 'moov/models/components/invoicepaymentoptionserror.rb'
|
|
385
|
+
autoload :InvoicePaymentOptionsUpdate, 'moov/models/components/invoicepaymentoptionsupdate.rb'
|
|
378
386
|
autoload :InvoicePaymentType, 'moov/models/components/invoicepaymenttype.rb'
|
|
379
387
|
autoload :InvoiceStatus, 'moov/models/components/invoicestatus.rb'
|
|
380
388
|
autoload :InvoiceTransferPayment, 'moov/models/components/invoicetransferpayment.rb'
|
|
@@ -399,7 +407,6 @@ module Moov
|
|
|
399
407
|
autoload :IssuingIntervalLimit, 'moov/models/components/issuingintervallimit.rb'
|
|
400
408
|
autoload :IssuingMerchantCategory, 'moov/models/components/issuingmerchantcategory.rb'
|
|
401
409
|
autoload :IssuingMerchantData, 'moov/models/components/issuingmerchantdata.rb'
|
|
402
|
-
autoload :IssuingMerchantDataValidationError, 'moov/models/components/issuingmerchantdatavalidationerror.rb'
|
|
403
410
|
autoload :IssuingScheduleDay, 'moov/models/components/issuingscheduleday.rb'
|
|
404
411
|
autoload :IssuingVelocityLimit, 'moov/models/components/issuingvelocitylimit.rb'
|
|
405
412
|
autoload :IssuingVelocityLimitError, 'moov/models/components/issuingvelocitylimiterror.rb'
|
|
@@ -446,6 +453,7 @@ module Moov
|
|
|
446
453
|
autoload :MoovWalletTransferPaymentMethod, 'moov/models/components/moovwallettransferpaymentmethod.rb'
|
|
447
454
|
autoload :MoovWalletTransferPaymentMethodPaymentMethodType, 'moov/models/components/moovwallettransferpaymentmethod_paymentmethodtype.rb'
|
|
448
455
|
autoload :MxPayload, 'moov/models/components/mxpayload.rb'
|
|
456
|
+
autoload :NotificationChannel, 'moov/models/components/notificationchannel.rb'
|
|
449
457
|
autoload :OAuth2ClientType, 'moov/models/components/oauth2clienttype.rb'
|
|
450
458
|
autoload :Occurrence, 'moov/models/components/occurrence.rb'
|
|
451
459
|
autoload :OccurrenceStatus, 'moov/models/components/occurrencestatus.rb'
|
|
@@ -617,6 +625,8 @@ module Moov
|
|
|
617
625
|
autoload :SentReceipt, 'moov/models/components/sentreceipt.rb'
|
|
618
626
|
autoload :Settings, 'moov/models/components/settings.rb'
|
|
619
627
|
autoload :ShareScopes, 'moov/models/components/sharescopes.rb'
|
|
628
|
+
autoload :SimulationIssuingMerchantData, 'moov/models/components/simulationissuingmerchantdata.rb'
|
|
629
|
+
autoload :SimulationIssuingMerchantDataValidationError, 'moov/models/components/simulationissuingmerchantdatavalidationerror.rb'
|
|
620
630
|
autoload :SourceDestinationOptions, 'moov/models/components/sourcedestinationoptions.rb'
|
|
621
631
|
autoload :SourceSystem, 'moov/models/components/sourcesystem.rb'
|
|
622
632
|
autoload :Statement, 'moov/models/components/statement.rb'
|
|
@@ -624,7 +634,10 @@ module Moov
|
|
|
624
634
|
autoload :Sweep, 'moov/models/components/sweep.rb'
|
|
625
635
|
autoload :SweepConfig, 'moov/models/components/sweepconfig.rb'
|
|
626
636
|
autoload :SweepConfigPaymentMethod, 'moov/models/components/sweepconfigpaymentmethod.rb'
|
|
637
|
+
autoload :SweepConfigSchedule, 'moov/models/components/sweepconfigschedule.rb'
|
|
638
|
+
autoload :SweepConfigScheduleError, 'moov/models/components/sweepconfigscheduleerror.rb'
|
|
627
639
|
autoload :SweepConfigStatus, 'moov/models/components/sweepconfigstatus.rb'
|
|
640
|
+
autoload :SweepScheduleFrequency, 'moov/models/components/sweepschedulefrequency.rb'
|
|
628
641
|
autoload :SweepStatus, 'moov/models/components/sweepstatus.rb'
|
|
629
642
|
autoload :SweepSubtotal, 'moov/models/components/sweepsubtotal.rb'
|
|
630
643
|
autoload :TaxID, 'moov/models/components/taxid.rb'
|
|
@@ -817,6 +830,7 @@ module Moov
|
|
|
817
830
|
autoload :OtherFees, 'moov/models/components/otherfees.rb'
|
|
818
831
|
autoload :Phone, 'moov/models/components/phone.rb'
|
|
819
832
|
autoload :Responsibilities, 'moov/models/components/responsibilities.rb'
|
|
833
|
+
autoload :Schedule, 'moov/models/components/schedule.rb'
|
|
820
834
|
autoload :Status, 'moov/models/components/status.rb'
|
|
821
835
|
autoload :Surcharge, 'moov/models/components/surcharge.rb'
|
|
822
836
|
autoload :Tax, 'moov/models/components/tax.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
|
|
@@ -13,8 +13,6 @@ module Moov
|
|
|
13
13
|
include Crystalline::MetadataFields
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
field :destination_payment_method_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('destinationPaymentMethodID') } }
|
|
17
|
-
|
|
18
16
|
field :amount, Crystalline::Nilable.new(Models::Components::AmountDecimalValidationError), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('amount') } }
|
|
19
17
|
|
|
20
18
|
field :is_final, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('isFinal') } }
|
|
@@ -33,9 +31,8 @@ module Moov
|
|
|
33
31
|
# Raw HTTP response; suitable for custom response parsing
|
|
34
32
|
field :raw_response, Crystalline::Nilable.new(::Faraday::Response), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('-') } }
|
|
35
33
|
|
|
36
|
-
sig { params(
|
|
37
|
-
def initialize(
|
|
38
|
-
@destination_payment_method_id = destination_payment_method_id
|
|
34
|
+
sig { params(amount: T.nilable(Models::Components::AmountDecimalValidationError), is_final: T.nilable(::String), description: T.nilable(::String), facilitator_fee_amount: T.nilable(Models::Components::AmountDecimalValidationError), metadata: T.nilable(::String), foreign_id: T.nilable(::String), line_items: T.nilable(Models::Components::CreateTransferLineItemsValidationError), amount_details: T.nilable(Models::Components::CreateTransferAmountDetailsValidationError), raw_response: T.nilable(::Faraday::Response)).void }
|
|
35
|
+
def initialize(amount: nil, is_final: nil, description: nil, facilitator_fee_amount: nil, metadata: nil, foreign_id: nil, line_items: nil, amount_details: nil, raw_response: nil)
|
|
39
36
|
@amount = amount
|
|
40
37
|
@is_final = is_final
|
|
41
38
|
@description = description
|
|
@@ -50,7 +47,6 @@ module Moov
|
|
|
50
47
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
51
48
|
def ==(other)
|
|
52
49
|
return false unless other.is_a? self.class
|
|
53
|
-
return false unless @destination_payment_method_id == other.destination_payment_method_id
|
|
54
50
|
return false unless @amount == other.amount
|
|
55
51
|
return false unless @is_final == other.is_final
|
|
56
52
|
return false unless @description == other.description
|
|
@@ -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
|
|
@@ -24,17 +24,20 @@ module Moov
|
|
|
24
24
|
field :statement_descriptor, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('statementDescriptor') } }
|
|
25
25
|
|
|
26
26
|
field :minimum_balance, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('minimumBalance') } }
|
|
27
|
+
|
|
28
|
+
field :schedule, Crystalline::Nilable.new(Models::Components::SweepConfigScheduleError), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('schedule') } }
|
|
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(wallet_id: T.nilable(::String), status: T.nilable(::String), push_payment_method_id: T.nilable(::String), pull_payment_method_id: T.nilable(::String), statement_descriptor: T.nilable(::String), minimum_balance: T.nilable(::String), raw_response: T.nilable(::Faraday::Response)).void }
|
|
31
|
-
def initialize(wallet_id: nil, status: nil, push_payment_method_id: nil, pull_payment_method_id: nil, statement_descriptor: nil, minimum_balance: nil, raw_response: nil)
|
|
32
|
+
sig { params(wallet_id: T.nilable(::String), status: T.nilable(::String), push_payment_method_id: T.nilable(::String), pull_payment_method_id: T.nilable(::String), statement_descriptor: T.nilable(::String), minimum_balance: T.nilable(::String), schedule: T.nilable(Models::Components::SweepConfigScheduleError), raw_response: T.nilable(::Faraday::Response)).void }
|
|
33
|
+
def initialize(wallet_id: nil, status: nil, push_payment_method_id: nil, pull_payment_method_id: nil, statement_descriptor: nil, minimum_balance: nil, schedule: nil, raw_response: nil)
|
|
32
34
|
@wallet_id = wallet_id
|
|
33
35
|
@status = status
|
|
34
36
|
@push_payment_method_id = push_payment_method_id
|
|
35
37
|
@pull_payment_method_id = pull_payment_method_id
|
|
36
38
|
@statement_descriptor = statement_descriptor
|
|
37
39
|
@minimum_balance = minimum_balance
|
|
40
|
+
@schedule = schedule
|
|
38
41
|
@raw_response = raw_response
|
|
39
42
|
end
|
|
40
43
|
|
|
@@ -47,6 +50,7 @@ module Moov
|
|
|
47
50
|
return false unless @pull_payment_method_id == other.pull_payment_method_id
|
|
48
51
|
return false unless @statement_descriptor == other.statement_descriptor
|
|
49
52
|
return false unless @minimum_balance == other.minimum_balance
|
|
53
|
+
return false unless @schedule == other.schedule
|
|
50
54
|
return false unless @raw_response == other.raw_response
|
|
51
55
|
true
|
|
52
56
|
end
|
|
@@ -20,6 +20,8 @@ class Moov::Models::Errors::CreateSweepConfigError
|
|
|
20
20
|
def statement_descriptor=(str_); end
|
|
21
21
|
def minimum_balance(); end
|
|
22
22
|
def minimum_balance=(str_); end
|
|
23
|
+
def schedule(); end
|
|
24
|
+
def schedule=(str_); end
|
|
23
25
|
def raw_response(); end
|
|
24
26
|
def raw_response=(str_); end
|
|
25
27
|
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
|