moov_ruby 26.7.0.pre.dev.1 → 26.7.0.pre.dev.2
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/models/components/amountdetails.rb +36 -0
- data/lib/moov/models/components/amountdetails.rbi +15 -0
- data/lib/moov/models/components/amountdetailsupdate.rb +36 -0
- data/lib/moov/models/components/amountdetailsupdate.rbi +15 -0
- data/lib/moov/models/components/amountdetailsvalidationerror.rb +36 -0
- data/lib/moov/models/components/amountdetailsvalidationerror.rbi +15 -0
- data/lib/moov/models/components/asynccreatedrefund.rb +6 -2
- data/lib/moov/models/components/asynccreatedrefund.rbi +2 -0
- data/lib/moov/models/components/cardacquiringrefund.rb +6 -2
- data/lib/moov/models/components/cardacquiringrefund.rbi +2 -0
- data/lib/moov/models/components/createinvoice.rb +5 -5
- data/lib/moov/models/components/createinvoice.rbi +2 -2
- data/lib/moov/models/components/createpaymentlinkamountdetails.rb +6 -2
- data/lib/moov/models/components/createpaymentlinkamountdetails.rbi +2 -0
- data/lib/moov/models/components/createpaymentlinkamountdetailsvalidationerror.rb +6 -2
- data/lib/moov/models/components/createpaymentlinkamountdetailsvalidationerror.rbi +2 -0
- data/lib/moov/models/components/createrefund.rb +6 -2
- data/lib/moov/models/components/createrefund.rbi +2 -0
- data/lib/moov/models/components/createreversal.rb +6 -2
- data/lib/moov/models/components/createreversal.rbi +2 -0
- data/lib/moov/models/components/createtransferamountdetails.rb +6 -2
- data/lib/moov/models/components/createtransferamountdetails.rbi +2 -0
- data/lib/moov/models/components/createtransferamountdetailsvalidationerror.rb +6 -2
- data/lib/moov/models/components/createtransferamountdetailsvalidationerror.rbi +2 -0
- data/lib/moov/models/components/invoice.rb +7 -7
- data/lib/moov/models/components/invoice.rbi +2 -2
- data/lib/moov/models/components/paymentlinkamountdetails.rb +6 -2
- data/lib/moov/models/components/paymentlinkamountdetails.rbi +2 -0
- data/lib/moov/models/components/refundamountdetails.rb +32 -0
- data/lib/moov/models/components/refundamountdetails.rbi +13 -0
- data/lib/moov/models/components/refundamountdetailsvalidationerror.rb +32 -0
- data/lib/moov/models/components/refundamountdetailsvalidationerror.rbi +13 -0
- data/lib/moov/models/components/reversalamountdetails.rb +32 -0
- data/lib/moov/models/components/reversalamountdetails.rbi +13 -0
- data/lib/moov/models/components/reversalamountdetailsvalidationerror.rb +32 -0
- data/lib/moov/models/components/reversalamountdetailsvalidationerror.rbi +13 -0
- data/lib/moov/models/components/transferamountdetails.rb +6 -2
- data/lib/moov/models/components/transferamountdetails.rbi +2 -0
- data/lib/moov/models/components/transferconfig.rb +6 -2
- data/lib/moov/models/components/transferconfig.rbi +2 -0
- data/lib/moov/models/components/transfercontrols.rb +48 -0
- data/lib/moov/models/components/transfercontrols.rbi +21 -0
- data/lib/moov/models/components/updateinvoice.rb +11 -11
- data/lib/moov/models/components/updateinvoice.rbi +2 -2
- data/lib/moov/models/components/updatepaymentlinkamountdetails.rb +6 -2
- data/lib/moov/models/components/updatepaymentlinkamountdetails.rbi +2 -0
- data/lib/moov/models/components/updatepaymentlinkamountdetailsvalidationerror.rb +6 -2
- data/lib/moov/models/components/updatepaymentlinkamountdetailsvalidationerror.rbi +2 -0
- data/lib/moov/models/components.rb +8 -0
- data/lib/moov/models/errors/cardacquiringrefund_error.rb +6 -2
- data/lib/moov/models/errors/cardacquiringrefund_error.rbi +2 -0
- data/lib/moov/models/errors/createinvoiceerror.rb +5 -5
- data/lib/moov/models/errors/createinvoiceerror.rbi +2 -2
- data/lib/moov/models/errors/refundvalidationerror.rb +6 -2
- data/lib/moov/models/errors/refundvalidationerror.rbi +2 -0
- data/lib/moov/models/errors/reversalvalidationerror.rb +6 -2
- data/lib/moov/models/errors/reversalvalidationerror.rbi +2 -0
- data/lib/moov/models/errors/updateinvoiceerror.rb +5 -5
- data/lib/moov/models/errors/updateinvoiceerror.rbi +2 -2
- data/lib/moov/sdkconfiguration.rb +3 -3
- metadata +18 -2
|
@@ -0,0 +1,32 @@
|
|
|
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 RefundAmountDetailsValidationError
|
|
12
|
+
extend T::Sig
|
|
13
|
+
include Crystalline::MetadataFields
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
field :surcharge, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('surcharge') } }
|
|
17
|
+
|
|
18
|
+
sig { params(surcharge: T.nilable(::String)).void }
|
|
19
|
+
def initialize(surcharge: nil)
|
|
20
|
+
@surcharge = surcharge
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
24
|
+
def ==(other)
|
|
25
|
+
return false unless other.is_a? self.class
|
|
26
|
+
return false unless @surcharge == other.surcharge
|
|
27
|
+
true
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Moov::Models::Components::RefundAmountDetailsValidationError
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Components::RefundAmountDetailsValidationError
|
|
11
|
+
def surcharge(); end
|
|
12
|
+
def surcharge=(str_); end
|
|
13
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
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 ReversalAmountDetails
|
|
12
|
+
extend T::Sig
|
|
13
|
+
include Crystalline::MetadataFields
|
|
14
|
+
|
|
15
|
+
# The amount of surcharge to refund. Should be proportionate to the surcharge on the original transfer. This does not reply if the reversal resulted in a cancellation instead of a refund
|
|
16
|
+
field :surcharge, Crystalline::Nilable.new(Models::Components::AmountDecimal), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('surcharge') } }
|
|
17
|
+
|
|
18
|
+
sig { params(surcharge: T.nilable(Models::Components::AmountDecimal)).void }
|
|
19
|
+
def initialize(surcharge: nil)
|
|
20
|
+
@surcharge = surcharge
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
24
|
+
def ==(other)
|
|
25
|
+
return false unless other.is_a? self.class
|
|
26
|
+
return false unless @surcharge == other.surcharge
|
|
27
|
+
true
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Moov::Models::Components::ReversalAmountDetails
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Components::ReversalAmountDetails
|
|
11
|
+
def surcharge(); end
|
|
12
|
+
def surcharge=(str_); end
|
|
13
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
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 ReversalAmountDetailsValidationError
|
|
12
|
+
extend T::Sig
|
|
13
|
+
include Crystalline::MetadataFields
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
field :surcharge, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('surcharge') } }
|
|
17
|
+
|
|
18
|
+
sig { params(surcharge: T.nilable(::String)).void }
|
|
19
|
+
def initialize(surcharge: nil)
|
|
20
|
+
@surcharge = surcharge
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
24
|
+
def ==(other)
|
|
25
|
+
return false unless other.is_a? self.class
|
|
26
|
+
return false unless @surcharge == other.surcharge
|
|
27
|
+
true
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Moov::Models::Components::ReversalAmountDetailsValidationError
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Components::ReversalAmountDetailsValidationError
|
|
11
|
+
def surcharge(); end
|
|
12
|
+
def surcharge=(str_); end
|
|
13
|
+
end
|
|
@@ -16,11 +16,14 @@ module Moov
|
|
|
16
16
|
field :tip, Crystalline::Nilable.new(Models::Components::AmountDecimal), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('tip') } }
|
|
17
17
|
# The amount of tax applied to the transfer.
|
|
18
18
|
field :tax, Crystalline::Nilable.new(Models::Components::AmountDecimal), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('tax') } }
|
|
19
|
+
# The amount of surcharge applied to the transfer.
|
|
20
|
+
field :surcharge, Crystalline::Nilable.new(Models::Components::AmountDecimal), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('surcharge') } }
|
|
19
21
|
|
|
20
|
-
sig { params(tip: T.nilable(Models::Components::AmountDecimal), tax: T.nilable(Models::Components::AmountDecimal)).void }
|
|
21
|
-
def initialize(tip: nil, tax: nil)
|
|
22
|
+
sig { params(tip: T.nilable(Models::Components::AmountDecimal), tax: T.nilable(Models::Components::AmountDecimal), surcharge: T.nilable(Models::Components::AmountDecimal)).void }
|
|
23
|
+
def initialize(tip: nil, tax: nil, surcharge: nil)
|
|
22
24
|
@tip = tip
|
|
23
25
|
@tax = tax
|
|
26
|
+
@surcharge = surcharge
|
|
24
27
|
end
|
|
25
28
|
|
|
26
29
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
@@ -28,6 +31,7 @@ module Moov
|
|
|
28
31
|
return false unless other.is_a? self.class
|
|
29
32
|
return false unless @tip == other.tip
|
|
30
33
|
return false unless @tax == other.tax
|
|
34
|
+
return false unless @surcharge == other.surcharge
|
|
31
35
|
true
|
|
32
36
|
end
|
|
33
37
|
end
|
|
@@ -15,15 +15,19 @@ module Moov
|
|
|
15
15
|
# Tip presets when calculating tips for a transfer.
|
|
16
16
|
field :tip_presets, Crystalline::Nilable.new(Models::Components::TipPresets), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('tipPresets') } }
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
field :transfer_controls, Crystalline::Nilable.new(Crystalline::Array.new(Models::Components::TransferControls)), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('transferControls') } }
|
|
19
|
+
|
|
20
|
+
sig { params(tip_presets: T.nilable(Models::Components::TipPresets), transfer_controls: T.nilable(T::Array[Models::Components::TransferControls])).void }
|
|
21
|
+
def initialize(tip_presets: nil, transfer_controls: nil)
|
|
20
22
|
@tip_presets = tip_presets
|
|
23
|
+
@transfer_controls = transfer_controls
|
|
21
24
|
end
|
|
22
25
|
|
|
23
26
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
24
27
|
def ==(other)
|
|
25
28
|
return false unless other.is_a? self.class
|
|
26
29
|
return false unless @tip_presets == other.tip_presets
|
|
30
|
+
return false unless @transfer_controls == other.transfer_controls
|
|
27
31
|
true
|
|
28
32
|
end
|
|
29
33
|
end
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
# Controls for transfers created through a given partner
|
|
11
|
+
class TransferControls
|
|
12
|
+
extend T::Sig
|
|
13
|
+
include Crystalline::MetadataFields
|
|
14
|
+
|
|
15
|
+
# ID of the merchant account.
|
|
16
|
+
field :account_id, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('accountID'), required: true } }
|
|
17
|
+
# ID of the partner account.
|
|
18
|
+
field :partner_account_id, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('partnerAccountID'), required: true } }
|
|
19
|
+
# Indicates if the account is configured for debt repayment.
|
|
20
|
+
field :debt_repayment, Crystalline::Boolean.new, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('debtRepayment'), required: true } }
|
|
21
|
+
# Indicates if the account is allowed to set dynamic descriptors on transfers.
|
|
22
|
+
field :allow_dynamic_descriptor, Crystalline::Boolean.new, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('allowDynamicDescriptor'), required: true } }
|
|
23
|
+
# Indicates if the account is allowed to apply surcharges to transfers.
|
|
24
|
+
field :allow_surcharge, Crystalline::Boolean.new, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('allowSurcharge'), required: true } }
|
|
25
|
+
|
|
26
|
+
sig { params(account_id: ::String, partner_account_id: ::String, debt_repayment: T::Boolean, allow_dynamic_descriptor: T::Boolean, allow_surcharge: T::Boolean).void }
|
|
27
|
+
def initialize(account_id:, partner_account_id:, debt_repayment:, allow_dynamic_descriptor:, allow_surcharge:)
|
|
28
|
+
@account_id = account_id
|
|
29
|
+
@partner_account_id = partner_account_id
|
|
30
|
+
@debt_repayment = debt_repayment
|
|
31
|
+
@allow_dynamic_descriptor = allow_dynamic_descriptor
|
|
32
|
+
@allow_surcharge = allow_surcharge
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
36
|
+
def ==(other)
|
|
37
|
+
return false unless other.is_a? self.class
|
|
38
|
+
return false unless @account_id == other.account_id
|
|
39
|
+
return false unless @partner_account_id == other.partner_account_id
|
|
40
|
+
return false unless @debt_repayment == other.debt_repayment
|
|
41
|
+
return false unless @allow_dynamic_descriptor == other.allow_dynamic_descriptor
|
|
42
|
+
return false unless @allow_surcharge == other.allow_surcharge
|
|
43
|
+
true
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Moov::Models::Components::TransferControls
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Components::TransferControls
|
|
11
|
+
def account_id(); end
|
|
12
|
+
def account_id=(str_); end
|
|
13
|
+
def partner_account_id(); end
|
|
14
|
+
def partner_account_id=(str_); end
|
|
15
|
+
def debt_repayment(); end
|
|
16
|
+
def debt_repayment=(str_); end
|
|
17
|
+
def allow_dynamic_descriptor(); end
|
|
18
|
+
def allow_dynamic_descriptor=(str_); end
|
|
19
|
+
def allow_surcharge(); end
|
|
20
|
+
def allow_surcharge=(str_); end
|
|
21
|
+
end
|
|
@@ -16,26 +16,26 @@ module Moov
|
|
|
16
16
|
field :description, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('description') } }
|
|
17
17
|
# A collection of line items for an invoice.
|
|
18
18
|
field :line_items, Crystalline::Nilable.new(Models::Components::CreateInvoiceLineItemsUpdate), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('lineItems') } }
|
|
19
|
-
#
|
|
20
|
-
#
|
|
21
|
-
#
|
|
22
|
-
#
|
|
23
|
-
#
|
|
24
|
-
#
|
|
19
|
+
# The status can be updated to one of the following values under specific conditions:
|
|
20
|
+
# - `canceled`: Can only be set if the current status is `draft`, `unpaid`, or `overdue`. Canceling an invoice
|
|
21
|
+
# indicates the invoice is no longer expected to be paid (e.g., the charge was waived or terms changed).
|
|
22
|
+
# Canceled invoices still appear in list results by default and remain part of the invoice history.
|
|
23
|
+
# To completely discard an invoice created by mistake, use the delete endpoint instead.
|
|
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.enum_from_string(Models::Components::InvoiceStatus, true) } }
|
|
26
26
|
|
|
27
|
-
field :
|
|
27
|
+
field :amount_details, Crystalline::Nilable.new(Models::Components::AmountDetailsUpdate), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('amountDetails') } }
|
|
28
28
|
|
|
29
29
|
field :invoice_date, Crystalline::Nilable.new(::DateTime), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('invoiceDate'), 'decoder': ::Moov::Utils.datetime_from_iso_format(true) } }
|
|
30
30
|
|
|
31
31
|
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
32
|
|
|
33
|
-
sig { params(description: T.nilable(::String), line_items: T.nilable(Models::Components::CreateInvoiceLineItemsUpdate), status: T.nilable(Models::Components::InvoiceStatus),
|
|
34
|
-
def initialize(description: nil, line_items: nil, status: nil,
|
|
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
35
|
@description = description
|
|
36
36
|
@line_items = line_items
|
|
37
37
|
@status = status
|
|
38
|
-
@
|
|
38
|
+
@amount_details = amount_details
|
|
39
39
|
@invoice_date = invoice_date
|
|
40
40
|
@due_date = due_date
|
|
41
41
|
end
|
|
@@ -46,7 +46,7 @@ module Moov
|
|
|
46
46
|
return false unless @description == other.description
|
|
47
47
|
return false unless @line_items == other.line_items
|
|
48
48
|
return false unless @status == other.status
|
|
49
|
-
return false unless @
|
|
49
|
+
return false unless @amount_details == other.amount_details
|
|
50
50
|
return false unless @invoice_date == other.invoice_date
|
|
51
51
|
return false unless @due_date == other.due_date
|
|
52
52
|
true
|
|
@@ -14,8 +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
|
|
18
|
-
def
|
|
17
|
+
def amount_details(); end
|
|
18
|
+
def amount_details=(str_); end
|
|
19
19
|
def invoice_date(); end
|
|
20
20
|
def invoice_date=(str_); end
|
|
21
21
|
def due_date(); end
|
|
@@ -14,16 +14,20 @@ module Moov
|
|
|
14
14
|
|
|
15
15
|
# The amount of tax applied to the payment link.
|
|
16
16
|
field :tax, Crystalline::Nilable.new(Models::Components::AmountDecimalUpdate), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('tax') } }
|
|
17
|
+
# The amount of surcharge applied to the payment link.
|
|
18
|
+
field :surcharge, Crystalline::Nilable.new(Models::Components::AmountDecimalUpdate), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('surcharge') } }
|
|
17
19
|
|
|
18
|
-
sig { params(tax: T.nilable(Models::Components::AmountDecimalUpdate)).void }
|
|
19
|
-
def initialize(tax: nil)
|
|
20
|
+
sig { params(tax: T.nilable(Models::Components::AmountDecimalUpdate), surcharge: T.nilable(Models::Components::AmountDecimalUpdate)).void }
|
|
21
|
+
def initialize(tax: nil, surcharge: nil)
|
|
20
22
|
@tax = tax
|
|
23
|
+
@surcharge = surcharge
|
|
21
24
|
end
|
|
22
25
|
|
|
23
26
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
24
27
|
def ==(other)
|
|
25
28
|
return false unless other.is_a? self.class
|
|
26
29
|
return false unless @tax == other.tax
|
|
30
|
+
return false unless @surcharge == other.surcharge
|
|
27
31
|
true
|
|
28
32
|
end
|
|
29
33
|
end
|
|
@@ -15,15 +15,19 @@ module Moov
|
|
|
15
15
|
|
|
16
16
|
field :tax, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('tax') } }
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
field :surcharge, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('surcharge') } }
|
|
19
|
+
|
|
20
|
+
sig { params(tax: T.nilable(::String), surcharge: T.nilable(::String)).void }
|
|
21
|
+
def initialize(tax: nil, surcharge: nil)
|
|
20
22
|
@tax = tax
|
|
23
|
+
@surcharge = surcharge
|
|
21
24
|
end
|
|
22
25
|
|
|
23
26
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
24
27
|
def ==(other)
|
|
25
28
|
return false unless other.is_a? self.class
|
|
26
29
|
return false unless @tax == other.tax
|
|
30
|
+
return false unless @surcharge == other.surcharge
|
|
27
31
|
true
|
|
28
32
|
end
|
|
29
33
|
end
|
|
@@ -53,6 +53,9 @@ module Moov
|
|
|
53
53
|
autoload :AmountDecimalRangeUpdate, 'moov/models/components/amountdecimalrangeupdate.rb'
|
|
54
54
|
autoload :AmountDecimalUpdate, 'moov/models/components/amountdecimalupdate.rb'
|
|
55
55
|
autoload :AmountDecimalValidationError, 'moov/models/components/amountdecimalvalidationerror.rb'
|
|
56
|
+
autoload :AmountDetails, 'moov/models/components/amountdetails.rb'
|
|
57
|
+
autoload :AmountDetailsUpdate, 'moov/models/components/amountdetailsupdate.rb'
|
|
58
|
+
autoload :AmountDetailsValidationError, 'moov/models/components/amountdetailsvalidationerror.rb'
|
|
56
59
|
autoload :AmountUpdate, 'moov/models/components/amountupdate.rb'
|
|
57
60
|
autoload :AmountValidationError, 'moov/models/components/amountvalidationerror.rb'
|
|
58
61
|
autoload :AppleBillingContact, 'moov/models/components/applebillingcontact.rb'
|
|
@@ -498,6 +501,8 @@ module Moov
|
|
|
498
501
|
autoload :ReceiptResponse, 'moov/models/components/receiptresponse.rb'
|
|
499
502
|
autoload :Recur, 'moov/models/components/recur.rb'
|
|
500
503
|
autoload :RecurResponse, 'moov/models/components/recurresponse.rb'
|
|
504
|
+
autoload :RefundAmountDetails, 'moov/models/components/refundamountdetails.rb'
|
|
505
|
+
autoload :RefundAmountDetailsValidationError, 'moov/models/components/refundamountdetailsvalidationerror.rb'
|
|
501
506
|
autoload :RefundCardDetails, 'moov/models/components/refundcarddetails.rb'
|
|
502
507
|
autoload :RefundCardStatus, 'moov/models/components/refundcardstatus.rb'
|
|
503
508
|
autoload :RefundPolicy, 'moov/models/components/refundpolicy.rb'
|
|
@@ -517,6 +522,8 @@ module Moov
|
|
|
517
522
|
autoload :ResolutionLinkStatus, 'moov/models/components/resolutionlinkstatus.rb'
|
|
518
523
|
autoload :ReturnPolicyType, 'moov/models/components/returnpolicytype.rb'
|
|
519
524
|
autoload :Reversal, 'moov/models/components/reversal.rb'
|
|
525
|
+
autoload :ReversalAmountDetails, 'moov/models/components/reversalamountdetails.rb'
|
|
526
|
+
autoload :ReversalAmountDetailsValidationError, 'moov/models/components/reversalamountdetailsvalidationerror.rb'
|
|
520
527
|
autoload :ReversedWithCancellation, 'moov/models/components/reversedwithcancellation.rb'
|
|
521
528
|
autoload :ReversedWithRefund, 'moov/models/components/reversedwithrefund.rb'
|
|
522
529
|
autoload :RevokeTokenRequest, 'moov/models/components/revoketokenrequest.rb'
|
|
@@ -584,6 +591,7 @@ module Moov
|
|
|
584
591
|
autoload :TransferAccount, 'moov/models/components/transferaccount.rb'
|
|
585
592
|
autoload :TransferAmountDetails, 'moov/models/components/transferamountdetails.rb'
|
|
586
593
|
autoload :TransferConfig, 'moov/models/components/transferconfig.rb'
|
|
594
|
+
autoload :TransferControls, 'moov/models/components/transfercontrols.rb'
|
|
587
595
|
autoload :TransferDestination, 'moov/models/components/transferdestination.rb'
|
|
588
596
|
autoload :TransferEntryMode, 'moov/models/components/transferentrymode.rb'
|
|
589
597
|
autoload :TransferFailureReason, 'moov/models/components/transferfailurereason.rb'
|
|
@@ -23,17 +23,20 @@ module Moov
|
|
|
23
23
|
|
|
24
24
|
field :amount, Models::Components::Amount, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('amount'), required: true } }
|
|
25
25
|
|
|
26
|
+
field :amount_details, Crystalline::Nilable.new(Models::Components::RefundAmountDetails), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('amountDetails') } }
|
|
27
|
+
|
|
26
28
|
field :card_details, Crystalline::Nilable.new(Models::Components::RefundCardDetails), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('cardDetails') } }
|
|
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(refund_id: ::String, created_on: ::DateTime, updated_on: ::DateTime, status: Models::Components::RefundStatus, amount: Models::Components::Amount, card_details: T.nilable(Models::Components::RefundCardDetails), raw_response: T.nilable(::Faraday::Response)).void }
|
|
31
|
-
def initialize(refund_id:, created_on:, updated_on:, status:, amount:, card_details: nil, raw_response: nil)
|
|
32
|
+
sig { params(refund_id: ::String, created_on: ::DateTime, updated_on: ::DateTime, status: Models::Components::RefundStatus, amount: Models::Components::Amount, amount_details: T.nilable(Models::Components::RefundAmountDetails), card_details: T.nilable(Models::Components::RefundCardDetails), raw_response: T.nilable(::Faraday::Response)).void }
|
|
33
|
+
def initialize(refund_id:, created_on:, updated_on:, status:, amount:, amount_details: nil, card_details: nil, raw_response: nil)
|
|
32
34
|
@refund_id = refund_id
|
|
33
35
|
@created_on = created_on
|
|
34
36
|
@updated_on = updated_on
|
|
35
37
|
@status = status
|
|
36
38
|
@amount = amount
|
|
39
|
+
@amount_details = amount_details
|
|
37
40
|
@card_details = card_details
|
|
38
41
|
@raw_response = raw_response
|
|
39
42
|
end
|
|
@@ -46,6 +49,7 @@ module Moov
|
|
|
46
49
|
return false unless @updated_on == other.updated_on
|
|
47
50
|
return false unless @status == other.status
|
|
48
51
|
return false unless @amount == other.amount
|
|
52
|
+
return false unless @amount_details == other.amount_details
|
|
49
53
|
return false unless @card_details == other.card_details
|
|
50
54
|
return false unless @raw_response == other.raw_response
|
|
51
55
|
true
|
|
@@ -18,6 +18,8 @@ class Moov::Models::Errors::CardAcquiringRefundError
|
|
|
18
18
|
def status=(str_); end
|
|
19
19
|
def amount(); end
|
|
20
20
|
def amount=(str_); end
|
|
21
|
+
def amount_details(); end
|
|
22
|
+
def amount_details=(str_); end
|
|
21
23
|
def card_details(); end
|
|
22
24
|
def card_details=(str_); end
|
|
23
25
|
def raw_response(); end
|
|
@@ -23,18 +23,18 @@ module Moov
|
|
|
23
23
|
|
|
24
24
|
field :due_date, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('dueDate') } }
|
|
25
25
|
|
|
26
|
-
field :
|
|
26
|
+
field :amount_details, Crystalline::Nilable.new(Models::Components::AmountDetailsValidationError), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('amountDetails') } }
|
|
27
27
|
# Raw HTTP response; suitable for custom response parsing
|
|
28
28
|
field :raw_response, Crystalline::Nilable.new(::Faraday::Response), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('-') } }
|
|
29
29
|
|
|
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),
|
|
31
|
-
def initialize(customer_account_id: nil, description: nil, line_items: nil, invoice_date: nil, due_date: nil,
|
|
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)
|
|
32
32
|
@customer_account_id = customer_account_id
|
|
33
33
|
@description = description
|
|
34
34
|
@line_items = line_items
|
|
35
35
|
@invoice_date = invoice_date
|
|
36
36
|
@due_date = due_date
|
|
37
|
-
@
|
|
37
|
+
@amount_details = amount_details
|
|
38
38
|
@raw_response = raw_response
|
|
39
39
|
end
|
|
40
40
|
|
|
@@ -46,7 +46,7 @@ module Moov
|
|
|
46
46
|
return false unless @line_items == other.line_items
|
|
47
47
|
return false unless @invoice_date == other.invoice_date
|
|
48
48
|
return false unless @due_date == other.due_date
|
|
49
|
-
return false unless @
|
|
49
|
+
return false unless @amount_details == other.amount_details
|
|
50
50
|
return false unless @raw_response == other.raw_response
|
|
51
51
|
true
|
|
52
52
|
end
|
|
@@ -18,8 +18,8 @@ class Moov::Models::Errors::CreateInvoiceError
|
|
|
18
18
|
def invoice_date=(str_); end
|
|
19
19
|
def due_date(); end
|
|
20
20
|
def due_date=(str_); end
|
|
21
|
-
def
|
|
22
|
-
def
|
|
21
|
+
def amount_details(); end
|
|
22
|
+
def amount_details=(str_); end
|
|
23
23
|
def raw_response(); end
|
|
24
24
|
def raw_response=(str_); end
|
|
25
25
|
end
|
|
@@ -14,14 +14,17 @@ module Moov
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
field :amount, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('amount') } }
|
|
17
|
+
|
|
18
|
+
field :amount_details, Crystalline::Nilable.new(Models::Components::RefundAmountDetailsValidationError), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('amountDetails') } }
|
|
17
19
|
# Used for generic errors when invalid request data isn't attributed to a single request field.
|
|
18
20
|
field :error, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('error') } }
|
|
19
21
|
# Raw HTTP response; suitable for custom response parsing
|
|
20
22
|
field :raw_response, Crystalline::Nilable.new(::Faraday::Response), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('-') } }
|
|
21
23
|
|
|
22
|
-
sig { params(amount: T.nilable(::String), error: T.nilable(::String), raw_response: T.nilable(::Faraday::Response)).void }
|
|
23
|
-
def initialize(amount: nil, error: nil, raw_response: nil)
|
|
24
|
+
sig { params(amount: T.nilable(::String), amount_details: T.nilable(Models::Components::RefundAmountDetailsValidationError), error: T.nilable(::String), raw_response: T.nilable(::Faraday::Response)).void }
|
|
25
|
+
def initialize(amount: nil, amount_details: nil, error: nil, raw_response: nil)
|
|
24
26
|
@amount = amount
|
|
27
|
+
@amount_details = amount_details
|
|
25
28
|
@error = error
|
|
26
29
|
@raw_response = raw_response
|
|
27
30
|
end
|
|
@@ -30,6 +33,7 @@ module Moov
|
|
|
30
33
|
def ==(other)
|
|
31
34
|
return false unless other.is_a? self.class
|
|
32
35
|
return false unless @amount == other.amount
|
|
36
|
+
return false unless @amount_details == other.amount_details
|
|
33
37
|
return false unless @error == other.error
|
|
34
38
|
return false unless @raw_response == other.raw_response
|
|
35
39
|
true
|
|
@@ -14,12 +14,15 @@ module Moov
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
field :amount, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('amount') } }
|
|
17
|
+
|
|
18
|
+
field :amount_details, Crystalline::Nilable.new(Models::Components::ReversalAmountDetailsValidationError), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('amountDetails') } }
|
|
17
19
|
# Raw HTTP response; suitable for custom response parsing
|
|
18
20
|
field :raw_response, Crystalline::Nilable.new(::Faraday::Response), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('-') } }
|
|
19
21
|
|
|
20
|
-
sig { params(amount: T.nilable(::String), raw_response: T.nilable(::Faraday::Response)).void }
|
|
21
|
-
def initialize(amount: nil, raw_response: nil)
|
|
22
|
+
sig { params(amount: T.nilable(::String), amount_details: T.nilable(Models::Components::ReversalAmountDetailsValidationError), raw_response: T.nilable(::Faraday::Response)).void }
|
|
23
|
+
def initialize(amount: nil, amount_details: nil, raw_response: nil)
|
|
22
24
|
@amount = amount
|
|
25
|
+
@amount_details = amount_details
|
|
23
26
|
@raw_response = raw_response
|
|
24
27
|
end
|
|
25
28
|
|
|
@@ -27,6 +30,7 @@ module Moov
|
|
|
27
30
|
def ==(other)
|
|
28
31
|
return false unless other.is_a? self.class
|
|
29
32
|
return false unless @amount == other.amount
|
|
33
|
+
return false unless @amount_details == other.amount_details
|
|
30
34
|
return false unless @raw_response == other.raw_response
|
|
31
35
|
true
|
|
32
36
|
end
|
|
@@ -23,18 +23,18 @@ 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 :
|
|
26
|
+
field :amount_details, Crystalline::Nilable.new(Models::Components::AmountDetailsValidationError), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('amountDetails') } }
|
|
27
27
|
# Raw HTTP response; suitable for custom response parsing
|
|
28
28
|
field :raw_response, Crystalline::Nilable.new(::Faraday::Response), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('-') } }
|
|
29
29
|
|
|
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),
|
|
31
|
-
def initialize(description: nil, line_items: nil, invoice_date: nil, due_date: nil, status: nil,
|
|
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
32
|
@description = description
|
|
33
33
|
@line_items = line_items
|
|
34
34
|
@invoice_date = invoice_date
|
|
35
35
|
@due_date = due_date
|
|
36
36
|
@status = status
|
|
37
|
-
@
|
|
37
|
+
@amount_details = amount_details
|
|
38
38
|
@raw_response = raw_response
|
|
39
39
|
end
|
|
40
40
|
|
|
@@ -46,7 +46,7 @@ module Moov
|
|
|
46
46
|
return false unless @invoice_date == other.invoice_date
|
|
47
47
|
return false unless @due_date == other.due_date
|
|
48
48
|
return false unless @status == other.status
|
|
49
|
-
return false unless @
|
|
49
|
+
return false unless @amount_details == other.amount_details
|
|
50
50
|
return false unless @raw_response == other.raw_response
|
|
51
51
|
true
|
|
52
52
|
end
|