moov_ruby 26.4.6 → 26.4.7
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/invoice.rb +1 -1
- 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 +6 -6
- data/lib/moov/models/components.rb +1 -0
- data/lib/moov/sdkconfiguration.rb +3 -3
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2cdef0a858ae85fa3a8ef60bba8ba14e9e64aece10af0cb8b730ba9a67467e9e
|
|
4
|
+
data.tar.gz: ae60234eca8525039ff5dbcb4e835ca723e33e274e67ac725c49cd453858696e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 41f7fbf850fdb1147ebf3dbb129b142906734360831e8e9457fc0c2d597e5452102a64fc48ca2c38aa549c7dbbc03c37fd04ae93354a6afcd5fc6fb4ad276230
|
|
7
|
+
data.tar.gz: 8b744d3075a88a8a580e1bf9dcc1f4311115706a3f2a5b4d15f0d7b0c3fad9d84962282b35df2acf6bc1b554390430f6403b997b354fc075e94194a3853c719e
|
|
@@ -32,7 +32,7 @@ module Moov
|
|
|
32
32
|
field :subtotal_amount, Models::Components::AmountDecimal, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('subtotalAmount'), required: true } }
|
|
33
33
|
|
|
34
34
|
field :tax_amount, Models::Components::AmountDecimal, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('taxAmount'), required: true } }
|
|
35
|
-
# Total amount of the invoice,
|
|
35
|
+
# Total amount of the invoice, including subtotal, tax, and surcharge amounts.
|
|
36
36
|
field :total_amount, Models::Components::AmountDecimal, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('totalAmount'), required: true } }
|
|
37
37
|
# Total amount of pending transfers paid towards the invoice
|
|
38
38
|
field :pending_amount, Models::Components::AmountDecimal, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('pendingAmount'), required: true } }
|
|
@@ -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,12 +16,12 @@ 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
27
|
field :tax_amount, Crystalline::Nilable.new(Models::Components::AmountDecimalUpdate), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('taxAmount') } }
|
|
@@ -578,6 +578,7 @@ module Moov
|
|
|
578
578
|
autoload :TransferAccount, 'moov/models/components/transferaccount.rb'
|
|
579
579
|
autoload :TransferAmountDetails, 'moov/models/components/transferamountdetails.rb'
|
|
580
580
|
autoload :TransferConfig, 'moov/models/components/transferconfig.rb'
|
|
581
|
+
autoload :TransferControls, 'moov/models/components/transfercontrols.rb'
|
|
581
582
|
autoload :TransferDestination, 'moov/models/components/transferdestination.rb'
|
|
582
583
|
autoload :TransferEntryMode, 'moov/models/components/transferentrymode.rb'
|
|
583
584
|
autoload :TransferFailureReason, 'moov/models/components/transferfailurereason.rb'
|
|
@@ -88,9 +88,9 @@ module Moov
|
|
|
88
88
|
end
|
|
89
89
|
@language = 'ruby'
|
|
90
90
|
@openapi_doc_version = 'v2026.04.00'
|
|
91
|
-
@sdk_version = '26.4.
|
|
92
|
-
@gen_version = '2.
|
|
93
|
-
@user_agent = 'speakeasy-sdk/ruby 26.4.
|
|
91
|
+
@sdk_version = '26.4.7'
|
|
92
|
+
@gen_version = '2.893.0'
|
|
93
|
+
@user_agent = 'speakeasy-sdk/ruby 26.4.7 2.893.0 v2026.04.00 moov_ruby'
|
|
94
94
|
end
|
|
95
95
|
|
|
96
96
|
sig { returns([String, T::Hash[Symbol, String]]) }
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: moov_ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 26.4.
|
|
4
|
+
version: 26.4.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Speakeasy
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-06-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: base64
|
|
@@ -1444,6 +1444,8 @@ files:
|
|
|
1444
1444
|
- lib/moov/models/components/transferamountdetails.rbi
|
|
1445
1445
|
- lib/moov/models/components/transferconfig.rb
|
|
1446
1446
|
- lib/moov/models/components/transferconfig.rbi
|
|
1447
|
+
- lib/moov/models/components/transfercontrols.rb
|
|
1448
|
+
- lib/moov/models/components/transfercontrols.rbi
|
|
1447
1449
|
- lib/moov/models/components/transferdestination.rb
|
|
1448
1450
|
- lib/moov/models/components/transferdestination.rbi
|
|
1449
1451
|
- lib/moov/models/components/transferentrymode.rb
|