moov_ruby 0.3.20 → 0.3.21

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4851832f2945c8c6bd1248f91ec513cdebedf035786f2804f308ff78c8cae994
4
- data.tar.gz: 642348c732c78146f8f3ed746f4fa6b6cbbd26ff8c60e7e7d5328846c5fe908f
3
+ metadata.gz: db86c6fbb525b2c8d07a8569751f9b397d17f7823cd8e41db7305fcef7a86415
4
+ data.tar.gz: 1d631d2b09ddb1a5483aa06518f957cfa92b31c4c7307258766690a9bfc25c3d
5
5
  SHA512:
6
- metadata.gz: 5ec904930442ff25f0f37da4d6509186bcb1205440da34be61345e201619e02897e95b83c15e49d3f994f5644acb98ade7bd66cf06ac7b0456ab384825d9ae07
7
- data.tar.gz: 6bfc3b404b2a0d2ada0af2a9b5f7266988a3a89a0af792a8468f15ae30ff487ee7b23b85c29274509629da90d3d1525afd4ff90586548e02ff9ad3c88fdb4904
6
+ metadata.gz: 71444c67f6ebfbc79461bcb78bb636468595aa2be85bc656c89981891cbc6887273779fc18e782e5549bbb11711ba3fbf736e17018477e75004e6cd4c35506c6
7
+ data.tar.gz: c081b90f6328d7619c7b0f23acbc26fb90e3f32840aeafa1f2b66b8e9fda3285cdcf8624e23f6c5b3608539007230cb2756a023b35e0620823de11136e477d92
@@ -70,9 +70,11 @@ module Moov
70
70
  # An optional collection of line items for a transfer.
71
71
  # When line items are provided, their total plus sales tax must equal the transfer amount.
72
72
  field :line_items, Crystalline::Nilable.new(Models::Components::TransferLineItems), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('lineItems') } }
73
+ # ID of the invoice that the transfer is associated with.
74
+ field :invoice_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('invoiceID') } }
73
75
 
74
- sig { params(transfer_id: ::String, created_on: ::DateTime, source: Models::Components::TransferSource, destination: Models::Components::TransferDestination, status: Models::Components::TransferStatus, amount: Models::Components::Amount, completed_on: T.nilable(::DateTime), failure_reason: T.nilable(Models::Components::TransferFailureReason), description: T.nilable(::String), metadata: T.nilable(T::Hash[Symbol, ::String]), facilitator_fee: T.nilable(Models::Components::FacilitatorFee), moov_fee: T.nilable(::Integer), moov_fee_decimal: T.nilable(::String), moov_fee_details: T.nilable(Models::Components::MoovFeeDetails), moov_fees: T.nilable(T::Array[Models::Components::MoovFee]), group_id: T.nilable(::String), cancellations: T.nilable(T::Array[Models::Components::Cancellation]), refunded_amount: T.nilable(Models::Components::Amount), refunds: T.nilable(T::Array[Models::Components::CardAcquiringRefund]), disputed_amount: T.nilable(Models::Components::Amount), disputes: T.nilable(T::Array[Models::Components::CardAcquiringDispute]), sweep_id: T.nilable(::String), schedule_id: T.nilable(::String), occurrence_id: T.nilable(::String), payment_link_code: T.nilable(::String), sales_tax_amount: T.nilable(Models::Components::Amount), foreign_id: T.nilable(::String), line_items: T.nilable(Models::Components::TransferLineItems)).void }
75
- def initialize(transfer_id:, created_on:, source:, destination:, status:, amount:, completed_on: nil, failure_reason: nil, description: nil, metadata: nil, facilitator_fee: nil, moov_fee: nil, moov_fee_decimal: nil, moov_fee_details: nil, moov_fees: nil, group_id: nil, cancellations: nil, refunded_amount: nil, refunds: nil, disputed_amount: nil, disputes: nil, sweep_id: nil, schedule_id: nil, occurrence_id: nil, payment_link_code: nil, sales_tax_amount: nil, foreign_id: nil, line_items: nil)
76
+ sig { params(transfer_id: ::String, created_on: ::DateTime, source: Models::Components::TransferSource, destination: Models::Components::TransferDestination, status: Models::Components::TransferStatus, amount: Models::Components::Amount, completed_on: T.nilable(::DateTime), failure_reason: T.nilable(Models::Components::TransferFailureReason), description: T.nilable(::String), metadata: T.nilable(T::Hash[Symbol, ::String]), facilitator_fee: T.nilable(Models::Components::FacilitatorFee), moov_fee: T.nilable(::Integer), moov_fee_decimal: T.nilable(::String), moov_fee_details: T.nilable(Models::Components::MoovFeeDetails), moov_fees: T.nilable(T::Array[Models::Components::MoovFee]), group_id: T.nilable(::String), cancellations: T.nilable(T::Array[Models::Components::Cancellation]), refunded_amount: T.nilable(Models::Components::Amount), refunds: T.nilable(T::Array[Models::Components::CardAcquiringRefund]), disputed_amount: T.nilable(Models::Components::Amount), disputes: T.nilable(T::Array[Models::Components::CardAcquiringDispute]), sweep_id: T.nilable(::String), schedule_id: T.nilable(::String), occurrence_id: T.nilable(::String), payment_link_code: T.nilable(::String), sales_tax_amount: T.nilable(Models::Components::Amount), foreign_id: T.nilable(::String), line_items: T.nilable(Models::Components::TransferLineItems), invoice_id: T.nilable(::String)).void }
77
+ def initialize(transfer_id:, created_on:, source:, destination:, status:, amount:, completed_on: nil, failure_reason: nil, description: nil, metadata: nil, facilitator_fee: nil, moov_fee: nil, moov_fee_decimal: nil, moov_fee_details: nil, moov_fees: nil, group_id: nil, cancellations: nil, refunded_amount: nil, refunds: nil, disputed_amount: nil, disputes: nil, sweep_id: nil, schedule_id: nil, occurrence_id: nil, payment_link_code: nil, sales_tax_amount: nil, foreign_id: nil, line_items: nil, invoice_id: nil)
76
78
  @transfer_id = transfer_id
77
79
  @created_on = created_on
78
80
  @source = source
@@ -101,6 +103,7 @@ module Moov
101
103
  @sales_tax_amount = sales_tax_amount
102
104
  @foreign_id = foreign_id
103
105
  @line_items = line_items
106
+ @invoice_id = invoice_id
104
107
  end
105
108
 
106
109
  sig { params(other: T.untyped).returns(T::Boolean) }
@@ -134,6 +137,7 @@ module Moov
134
137
  return false unless @sales_tax_amount == other.sales_tax_amount
135
138
  return false unless @foreign_id == other.foreign_id
136
139
  return false unless @line_items == other.line_items
140
+ return false unless @invoice_id == other.invoice_id
137
141
  true
138
142
  end
139
143
  end
@@ -64,4 +64,6 @@ class Moov::Models::Components::Transfer
64
64
  def foreign_id=(str_); end
65
65
  def line_items(); end
66
66
  def line_items=(str_); end
67
+ def invoice_id(); end
68
+ def invoice_id=(str_); end
67
69
  end
@@ -17,7 +17,9 @@ module Moov
17
17
  field :description, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('description') } }
18
18
  # A collection of line items for an invoice.
19
19
  field :line_items, Crystalline::Nilable.new(Models::Components::CreateInvoiceLineItemsUpdate), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('lineItems') } }
20
- # Status can only be updated to `canceled` when the status is either `draft`, `unpaid`, or `overdue`.
20
+ # The status can be updated to one of the following values under specific conditions:
21
+ # - `canceled`: Can only be set if the current status is `draft`, `unpaid`, or `overdue`.
22
+ # - `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.
21
23
  field :status, Crystalline::Nilable.new(Models::Components::InvoiceStatus), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('status'), 'decoder': Utils.enum_from_string(Models::Components::InvoiceStatus, true) } }
22
24
 
23
25
  field :tax_amount, Crystalline::Nilable.new(Models::Components::AmountDecimalUpdate), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('taxAmount') } }
@@ -70,11 +70,13 @@ module Moov
70
70
  # An optional collection of line items for a transfer.
71
71
  # When line items are provided, their total plus sales tax must equal the transfer amount.
72
72
  field :line_items, Crystalline::Nilable.new(Models::Components::TransferLineItems), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('lineItems') } }
73
+ # ID of the invoice that the transfer is associated with.
74
+ field :invoice_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('invoiceID') } }
73
75
  # Raw HTTP response; suitable for custom response parsing
74
76
  field :raw_response, Crystalline::Nilable.new(::Faraday::Response), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('-') } }
75
77
 
76
- sig { params(transfer_id: ::String, created_on: ::DateTime, source: Models::Components::TransferSource, destination: Models::Components::TransferDestination, status: Models::Components::TransferStatus, amount: Models::Components::Amount, completed_on: T.nilable(::DateTime), failure_reason: T.nilable(Models::Components::TransferFailureReason), description: T.nilable(::String), metadata: T.nilable(T::Hash[Symbol, ::String]), facilitator_fee: T.nilable(Models::Components::FacilitatorFee), moov_fee: T.nilable(::Integer), moov_fee_decimal: T.nilable(::String), moov_fee_details: T.nilable(Models::Components::MoovFeeDetails), moov_fees: T.nilable(T::Array[Models::Components::MoovFee]), group_id: T.nilable(::String), cancellations: T.nilable(T::Array[Models::Components::Cancellation]), refunded_amount: T.nilable(Models::Components::Amount), refunds: T.nilable(T::Array[Models::Components::CardAcquiringRefund]), disputed_amount: T.nilable(Models::Components::Amount), disputes: T.nilable(T::Array[Models::Components::CardAcquiringDispute]), sweep_id: T.nilable(::String), schedule_id: T.nilable(::String), occurrence_id: T.nilable(::String), payment_link_code: T.nilable(::String), sales_tax_amount: T.nilable(Models::Components::Amount), foreign_id: T.nilable(::String), line_items: T.nilable(Models::Components::TransferLineItems), raw_response: T.nilable(::Faraday::Response)).void }
77
- def initialize(transfer_id:, created_on:, source:, destination:, status:, amount:, completed_on: nil, failure_reason: nil, description: nil, metadata: nil, facilitator_fee: nil, moov_fee: nil, moov_fee_decimal: nil, moov_fee_details: nil, moov_fees: nil, group_id: nil, cancellations: nil, refunded_amount: nil, refunds: nil, disputed_amount: nil, disputes: nil, sweep_id: nil, schedule_id: nil, occurrence_id: nil, payment_link_code: nil, sales_tax_amount: nil, foreign_id: nil, line_items: nil, raw_response: nil)
78
+ sig { params(transfer_id: ::String, created_on: ::DateTime, source: Models::Components::TransferSource, destination: Models::Components::TransferDestination, status: Models::Components::TransferStatus, amount: Models::Components::Amount, completed_on: T.nilable(::DateTime), failure_reason: T.nilable(Models::Components::TransferFailureReason), description: T.nilable(::String), metadata: T.nilable(T::Hash[Symbol, ::String]), facilitator_fee: T.nilable(Models::Components::FacilitatorFee), moov_fee: T.nilable(::Integer), moov_fee_decimal: T.nilable(::String), moov_fee_details: T.nilable(Models::Components::MoovFeeDetails), moov_fees: T.nilable(T::Array[Models::Components::MoovFee]), group_id: T.nilable(::String), cancellations: T.nilable(T::Array[Models::Components::Cancellation]), refunded_amount: T.nilable(Models::Components::Amount), refunds: T.nilable(T::Array[Models::Components::CardAcquiringRefund]), disputed_amount: T.nilable(Models::Components::Amount), disputes: T.nilable(T::Array[Models::Components::CardAcquiringDispute]), sweep_id: T.nilable(::String), schedule_id: T.nilable(::String), occurrence_id: T.nilable(::String), payment_link_code: T.nilable(::String), sales_tax_amount: T.nilable(Models::Components::Amount), foreign_id: T.nilable(::String), line_items: T.nilable(Models::Components::TransferLineItems), invoice_id: T.nilable(::String), raw_response: T.nilable(::Faraday::Response)).void }
79
+ def initialize(transfer_id:, created_on:, source:, destination:, status:, amount:, completed_on: nil, failure_reason: nil, description: nil, metadata: nil, facilitator_fee: nil, moov_fee: nil, moov_fee_decimal: nil, moov_fee_details: nil, moov_fees: nil, group_id: nil, cancellations: nil, refunded_amount: nil, refunds: nil, disputed_amount: nil, disputes: nil, sweep_id: nil, schedule_id: nil, occurrence_id: nil, payment_link_code: nil, sales_tax_amount: nil, foreign_id: nil, line_items: nil, invoice_id: nil, raw_response: nil)
78
80
  @transfer_id = transfer_id
79
81
  @created_on = created_on
80
82
  @source = source
@@ -103,6 +105,7 @@ module Moov
103
105
  @sales_tax_amount = sales_tax_amount
104
106
  @foreign_id = foreign_id
105
107
  @line_items = line_items
108
+ @invoice_id = invoice_id
106
109
  @raw_response = raw_response
107
110
  end
108
111
 
@@ -137,6 +140,7 @@ module Moov
137
140
  return false unless @sales_tax_amount == other.sales_tax_amount
138
141
  return false unless @foreign_id == other.foreign_id
139
142
  return false unless @line_items == other.line_items
143
+ return false unless @invoice_id == other.invoice_id
140
144
  return false unless @raw_response == other.raw_response
141
145
  true
142
146
  end
@@ -64,6 +64,8 @@ class Moov::Models::Errors::TransferError
64
64
  def foreign_id=(str_); end
65
65
  def line_items(); end
66
66
  def line_items=(str_); end
67
+ def invoice_id(); end
68
+ def invoice_id=(str_); end
67
69
  def raw_response(); end
68
70
  def raw_response=(str_); end
69
71
  end
@@ -95,9 +95,9 @@ module Moov
95
95
  @globals = globals.nil? ? {} : globals
96
96
  @language = 'ruby'
97
97
  @openapi_doc_version = 'latest'
98
- @sdk_version = '0.3.20'
98
+ @sdk_version = '0.3.21'
99
99
  @gen_version = '2.788.7'
100
- @user_agent = 'speakeasy-sdk/ruby 0.3.20 2.788.7 latest moov_ruby'
100
+ @user_agent = 'speakeasy-sdk/ruby 0.3.21 2.788.7 latest moov_ruby'
101
101
  end
102
102
 
103
103
  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: 0.3.20
4
+ version: 0.3.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Speakeasy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-12-23 00:00:00.000000000 Z
11
+ date: 2025-12-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base64