moov_ruby 26.4.19 → 26.4.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.
Files changed (87) hide show
  1. checksums.yaml +4 -4
  2. data/lib/moov/card_issuing.rb +2 -8
  3. data/lib/moov/invoices.rb +180 -0
  4. data/lib/moov/models/components/capability.rb +2 -0
  5. data/lib/moov/models/components/capabilityid.rb +2 -0
  6. data/lib/moov/models/components/createinvoice.rb +10 -2
  7. data/lib/moov/models/components/createinvoice.rbi +4 -0
  8. data/lib/moov/models/components/createinvoicenotification.rb +32 -0
  9. data/lib/moov/models/components/createinvoicenotification.rbi +13 -0
  10. data/lib/moov/models/components/createsweepconfig.rb +6 -2
  11. data/lib/moov/models/components/createsweepconfig.rbi +2 -0
  12. data/lib/moov/models/components/fullissuedcard.rb +6 -4
  13. data/lib/moov/models/components/invoice.rb +6 -2
  14. data/lib/moov/models/components/invoice.rbi +2 -0
  15. data/lib/moov/models/components/invoicenotificationlimitedchannel.rb +36 -0
  16. data/lib/moov/models/components/invoicenotificationlimitedchannel.rbi +15 -0
  17. data/lib/moov/models/components/invoicepaymentoptions.rb +40 -0
  18. data/lib/moov/models/components/invoicepaymentoptions.rbi +17 -0
  19. data/lib/moov/models/components/invoicepaymentoptionserror.rb +40 -0
  20. data/lib/moov/models/components/invoicepaymentoptionserror.rbi +17 -0
  21. data/lib/moov/models/components/invoicepaymentoptionsupdate.rb +40 -0
  22. data/lib/moov/models/components/invoicepaymentoptionsupdate.rbi +17 -0
  23. data/lib/moov/models/components/issuedcard.rb +6 -4
  24. data/lib/moov/models/components/issuedcardauthorization.rb +6 -2
  25. data/lib/moov/models/components/issuedcardauthorization.rbi +2 -0
  26. data/lib/moov/models/components/issuedcardstate.rb +6 -4
  27. data/lib/moov/models/components/issuedcardtransaction.rb +6 -2
  28. data/lib/moov/models/components/issuedcardtransaction.rbi +2 -0
  29. data/lib/moov/models/components/notificationchannel.rb +18 -0
  30. data/lib/moov/models/components/notificationchannel.rbi +11 -0
  31. data/lib/moov/models/components/patchsweepconfig.rb +6 -2
  32. data/lib/moov/models/components/patchsweepconfig.rbi +2 -0
  33. data/lib/moov/models/components/schedule.rb +40 -0
  34. data/lib/moov/models/components/schedule.rbi +17 -0
  35. data/lib/moov/models/components/sweepconfig.rb +6 -2
  36. data/lib/moov/models/components/sweepconfig.rbi +2 -0
  37. data/lib/moov/models/components/sweepconfigschedule.rb +40 -0
  38. data/lib/moov/models/components/sweepconfigschedule.rbi +17 -0
  39. data/lib/moov/models/components/sweepconfigscheduleerror.rb +40 -0
  40. data/lib/moov/models/components/sweepconfigscheduleerror.rbi +17 -0
  41. data/lib/moov/models/components/sweepschedulefrequency.rb +18 -0
  42. data/lib/moov/models/components/sweepschedulefrequency.rbi +11 -0
  43. data/lib/moov/models/components/updateinvoice.rb +6 -2
  44. data/lib/moov/models/components/updateinvoice.rbi +2 -0
  45. data/lib/moov/models/components/updateissuedcard.rb +3 -3
  46. data/lib/moov/models/components/updateissuedcardstate.rb +3 -3
  47. data/lib/moov/models/components/upsertunderwriting.rb +1 -1
  48. data/lib/moov/models/components/webhookdatacapabilityrequested.rb +2 -0
  49. data/lib/moov/models/components/webhookdatacapabilityupdated.rb +2 -0
  50. data/lib/moov/models/components.rb +10 -0
  51. data/lib/moov/models/errors/createinvoiceerror.rb +10 -2
  52. data/lib/moov/models/errors/createinvoiceerror.rbi +4 -0
  53. data/lib/moov/models/errors/createsweepconfigerror.rb +6 -2
  54. data/lib/moov/models/errors/createsweepconfigerror.rbi +2 -0
  55. data/lib/moov/models/errors/invoicenotificationerror.rb +36 -0
  56. data/lib/moov/models/errors/invoicenotificationerror.rbi +15 -0
  57. data/lib/moov/models/errors/invoicenotificationratelimitederror.rb +44 -0
  58. data/lib/moov/models/errors/invoicenotificationratelimitederror.rbi +19 -0
  59. data/lib/moov/models/errors/listtransfersvalidationerror.rb +6 -2
  60. data/lib/moov/models/errors/listtransfersvalidationerror.rbi +2 -0
  61. data/lib/moov/models/errors/patchsweepconfigerror.rb +6 -2
  62. data/lib/moov/models/errors/patchsweepconfigerror.rbi +2 -0
  63. data/lib/moov/models/errors/updateinvoiceerror.rb +6 -2
  64. data/lib/moov/models/errors/updateinvoiceerror.rbi +2 -0
  65. data/lib/moov/models/errors.rb +2 -0
  66. data/lib/moov/models/operations/createcancellation_request.rb +7 -2
  67. data/lib/moov/models/operations/createcancellation_request.rbi +2 -0
  68. data/lib/moov/models/operations/createinvoicenotification_request.rb +40 -0
  69. data/lib/moov/models/operations/createinvoicenotification_request.rbi +17 -0
  70. data/lib/moov/models/operations/createinvoicenotification_response.rb +44 -0
  71. data/lib/moov/models/operations/createinvoicenotification_response.rbi +19 -0
  72. data/lib/moov/models/operations/disablecapability_request.rb +2 -0
  73. data/lib/moov/models/operations/getcapability_request.rb +2 -0
  74. data/lib/moov/models/operations/initiaterefund_request.rb +1 -1
  75. data/lib/moov/models/operations/listissuedcardauthorizations_request.rb +6 -2
  76. data/lib/moov/models/operations/listissuedcardauthorizations_request.rbi +2 -0
  77. data/lib/moov/models/operations/listissuedcards_request.rb +6 -2
  78. data/lib/moov/models/operations/listissuedcards_request.rbi +2 -0
  79. data/lib/moov/models/operations/listissuedcardtransactions_request.rb +6 -2
  80. data/lib/moov/models/operations/listissuedcardtransactions_request.rbi +2 -0
  81. data/lib/moov/models/operations/listtransfers_request.rb +7 -2
  82. data/lib/moov/models/operations/listtransfers_request.rbi +2 -0
  83. data/lib/moov/models/operations/listtransfers_response.rb +1 -1
  84. data/lib/moov/models/operations.rb +2 -0
  85. data/lib/moov/sdkconfiguration.rb +3 -3
  86. data/lib/moov/transfers.rb +12 -5
  87. metadata +30 -2
@@ -186,6 +186,7 @@ module Moov
186
186
  autoload :CreateInvoiceLineItems, 'moov/models/components/createinvoicelineitems.rb'
187
187
  autoload :CreateInvoiceLineItemsUpdate, 'moov/models/components/createinvoicelineitemsupdate.rb'
188
188
  autoload :CreateInvoiceLineItemsValidationError, 'moov/models/components/createinvoicelineitemsvalidationerror.rb'
189
+ autoload :CreateInvoiceNotification, 'moov/models/components/createinvoicenotification.rb'
189
190
  autoload :CreateInvoicePayment, 'moov/models/components/createinvoicepayment.rb'
190
191
  autoload :CreatePaymentLink, 'moov/models/components/createpaymentlink.rb'
191
192
  autoload :CreatePaymentLinkLineItem, 'moov/models/components/createpaymentlinklineitem.rb'
@@ -339,7 +340,11 @@ module Moov
339
340
  autoload :InvoiceLineItemValidationError, 'moov/models/components/invoicelineitemvalidationerror.rb'
340
341
  autoload :InvoiceLineItems, 'moov/models/components/invoicelineitems.rb'
341
342
  autoload :InvoiceLineItemsValidationError, 'moov/models/components/invoicelineitemsvalidationerror.rb'
343
+ autoload :InvoiceNotificationLimitedChannel, 'moov/models/components/invoicenotificationlimitedchannel.rb'
342
344
  autoload :InvoicePayment, 'moov/models/components/invoicepayment.rb'
345
+ autoload :InvoicePaymentOptions, 'moov/models/components/invoicepaymentoptions.rb'
346
+ autoload :InvoicePaymentOptionsError, 'moov/models/components/invoicepaymentoptionserror.rb'
347
+ autoload :InvoicePaymentOptionsUpdate, 'moov/models/components/invoicepaymentoptionsupdate.rb'
343
348
  autoload :InvoicePaymentType, 'moov/models/components/invoicepaymenttype.rb'
344
349
  autoload :InvoiceStatus, 'moov/models/components/invoicestatus.rb'
345
350
  autoload :InvoiceTransferPayment, 'moov/models/components/invoicetransferpayment.rb'
@@ -394,6 +399,7 @@ module Moov
394
399
  autoload :MoovWalletTransferPaymentMethod, 'moov/models/components/moovwallettransferpaymentmethod.rb'
395
400
  autoload :MoovWalletTransferPaymentMethodPaymentMethodType, 'moov/models/components/moovwallettransferpaymentmethod_paymentmethodtype.rb'
396
401
  autoload :MxPayload, 'moov/models/components/mxpayload.rb'
402
+ autoload :NotificationChannel, 'moov/models/components/notificationchannel.rb'
397
403
  autoload :OAuth2ClientType, 'moov/models/components/oauth2clienttype.rb'
398
404
  autoload :Occurrence, 'moov/models/components/occurrence.rb'
399
405
  autoload :OccurrenceStatus, 'moov/models/components/occurrencestatus.rb'
@@ -552,7 +558,10 @@ module Moov
552
558
  autoload :Sweep, 'moov/models/components/sweep.rb'
553
559
  autoload :SweepConfig, 'moov/models/components/sweepconfig.rb'
554
560
  autoload :SweepConfigPaymentMethod, 'moov/models/components/sweepconfigpaymentmethod.rb'
561
+ autoload :SweepConfigSchedule, 'moov/models/components/sweepconfigschedule.rb'
562
+ autoload :SweepConfigScheduleError, 'moov/models/components/sweepconfigscheduleerror.rb'
555
563
  autoload :SweepConfigStatus, 'moov/models/components/sweepconfigstatus.rb'
564
+ autoload :SweepScheduleFrequency, 'moov/models/components/sweepschedulefrequency.rb'
556
565
  autoload :SweepStatus, 'moov/models/components/sweepstatus.rb'
557
566
  autoload :SweepSubtotal, 'moov/models/components/sweepsubtotal.rb'
558
567
  autoload :TaxID, 'moov/models/components/taxid.rb'
@@ -708,6 +717,7 @@ module Moov
708
717
  autoload :OtherFees, 'moov/models/components/otherfees.rb'
709
718
  autoload :Phone, 'moov/models/components/phone.rb'
710
719
  autoload :Responsibilities, 'moov/models/components/responsibilities.rb'
720
+ autoload :Schedule, 'moov/models/components/schedule.rb'
711
721
  autoload :Status, 'moov/models/components/status.rb'
712
722
  autoload :TokenTypeHint, 'moov/models/components/token_type_hint.rb'
713
723
  autoload :Use, 'moov/models/components/use.rb'
@@ -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 :tax_amount, Crystalline::Nilable.new(Models::Components::AmountDecimalValidationError), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('taxAmount') } }
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), tax_amount: T.nilable(Models::Components::AmountDecimalValidationError), 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, tax_amount: 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), tax_amount: T.nilable(Models::Components::AmountDecimalValidationError), 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, tax_amount: 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
  @tax_amount = tax_amount
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 @tax_amount == other.tax_amount
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 tax_amount(); end
24
28
  def tax_amount=(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
@@ -0,0 +1,15 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+
5
+ class Moov::Models::Errors::InvoiceNotificationError
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class Moov::Models::Errors::InvoiceNotificationError
11
+ def channels(); end
12
+ def channels=(str_); end
13
+ def raw_response(); end
14
+ def raw_response=(str_); end
15
+ end
@@ -0,0 +1,44 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module Moov
8
+ module Models
9
+ module Errors
10
+
11
+ class InvoiceNotificationRateLimitedError < StandardError
12
+ extend T::Sig
13
+ include Crystalline::MetadataFields
14
+
15
+ # A description of the rate limit error.
16
+ field :error, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('error'), required: true } }
17
+ # The requested channels that are rate limited.
18
+ field :limited_channels, Crystalline::Array.new(Models::Components::InvoiceNotificationLimitedChannel), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('limitedChannels'), required: true } }
19
+ # The requested channels that are not rate limited and can be sent in a new request.
20
+ field :available_channels, Crystalline::Array.new(Models::Components::NotificationChannel), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('availableChannels'), required: true } }
21
+ # Raw HTTP response; suitable for custom response parsing
22
+ field :raw_response, Crystalline::Nilable.new(::Faraday::Response), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('-') } }
23
+
24
+ sig { params(error: ::String, limited_channels: T::Array[Models::Components::InvoiceNotificationLimitedChannel], available_channels: T::Array[Models::Components::NotificationChannel], raw_response: T.nilable(::Faraday::Response)).void }
25
+ def initialize(error:, limited_channels:, available_channels:, raw_response: nil)
26
+ @error = error
27
+ @limited_channels = limited_channels
28
+ @available_channels = available_channels
29
+ @raw_response = raw_response
30
+ end
31
+
32
+ sig { params(other: T.untyped).returns(T::Boolean) }
33
+ def ==(other)
34
+ return false unless other.is_a? self.class
35
+ return false unless @error == other.error
36
+ return false unless @limited_channels == other.limited_channels
37
+ return false unless @available_channels == other.available_channels
38
+ return false unless @raw_response == other.raw_response
39
+ true
40
+ end
41
+ end
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,19 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+
5
+ class Moov::Models::Errors::InvoiceNotificationRateLimitedError
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class Moov::Models::Errors::InvoiceNotificationRateLimitedError
11
+ def error(); end
12
+ def error=(str_); end
13
+ def limited_channels(); end
14
+ def limited_channels=(str_); end
15
+ def available_channels(); end
16
+ def available_channels=(str_); end
17
+ def raw_response(); end
18
+ def raw_response=(str_); end
19
+ end
@@ -25,6 +25,8 @@ module Moov
25
25
 
26
26
  field :count, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('count') } }
27
27
 
28
+ field :cursor, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('cursor') } }
29
+
28
30
  field :group_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('groupID') } }
29
31
 
30
32
  field :foreign_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('foreignID') } }
@@ -39,14 +41,15 @@ module Moov
39
41
  # Raw HTTP response; suitable for custom response parsing
40
42
  field :raw_response, Crystalline::Nilable.new(::Faraday::Response), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('-') } }
41
43
 
42
- sig { params(account_i_ds: T.nilable(::String), status: T.nilable(::String), start_date_time: T.nilable(::String), end_date_time: T.nilable(::String), skip: T.nilable(::String), count: T.nilable(::String), group_id: T.nilable(::String), foreign_id: T.nilable(::String), schedule_id: T.nilable(::String), payment_link_code: T.nilable(::String), refunded: T.nilable(::String), disputed: T.nilable(::String), raw_response: T.nilable(::Faraday::Response)).void }
43
- def initialize(account_i_ds: nil, status: nil, start_date_time: nil, end_date_time: nil, skip: nil, count: nil, group_id: nil, foreign_id: nil, schedule_id: nil, payment_link_code: nil, refunded: nil, disputed: nil, raw_response: nil)
44
+ sig { params(account_i_ds: T.nilable(::String), status: T.nilable(::String), start_date_time: T.nilable(::String), end_date_time: T.nilable(::String), skip: T.nilable(::String), count: T.nilable(::String), cursor: T.nilable(::String), group_id: T.nilable(::String), foreign_id: T.nilable(::String), schedule_id: T.nilable(::String), payment_link_code: T.nilable(::String), refunded: T.nilable(::String), disputed: T.nilable(::String), raw_response: T.nilable(::Faraday::Response)).void }
45
+ def initialize(account_i_ds: nil, status: nil, start_date_time: nil, end_date_time: nil, skip: nil, count: nil, cursor: nil, group_id: nil, foreign_id: nil, schedule_id: nil, payment_link_code: nil, refunded: nil, disputed: nil, raw_response: nil)
44
46
  @account_i_ds = account_i_ds
45
47
  @status = status
46
48
  @start_date_time = start_date_time
47
49
  @end_date_time = end_date_time
48
50
  @skip = skip
49
51
  @count = count
52
+ @cursor = cursor
50
53
  @group_id = group_id
51
54
  @foreign_id = foreign_id
52
55
  @schedule_id = schedule_id
@@ -65,6 +68,7 @@ module Moov
65
68
  return false unless @end_date_time == other.end_date_time
66
69
  return false unless @skip == other.skip
67
70
  return false unless @count == other.count
71
+ return false unless @cursor == other.cursor
68
72
  return false unless @group_id == other.group_id
69
73
  return false unless @foreign_id == other.foreign_id
70
74
  return false unless @schedule_id == other.schedule_id
@@ -20,6 +20,8 @@ class Moov::Models::Errors::ListTransfersValidationError
20
20
  def skip=(str_); end
21
21
  def count(); end
22
22
  def count=(str_); end
23
+ def cursor(); end
24
+ def cursor=(str_); end
23
25
  def group_id(); end
24
26
  def group_id=(str_); end
25
27
  def foreign_id(); end
@@ -22,16 +22,19 @@ module Moov
22
22
  field :statement_descriptor, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('statementDescriptor') } }
23
23
 
24
24
  field :minimum_balance, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('minimumBalance') } }
25
+
26
+ field :schedule, Crystalline::Nilable.new(Models::Components::SweepConfigScheduleError), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('schedule') } }
25
27
  # Raw HTTP response; suitable for custom response parsing
26
28
  field :raw_response, Crystalline::Nilable.new(::Faraday::Response), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('-') } }
27
29
 
28
- sig { params(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 }
29
- def initialize(status: nil, push_payment_method_id: nil, pull_payment_method_id: nil, statement_descriptor: nil, minimum_balance: nil, raw_response: nil)
30
+ sig { params(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 }
31
+ def initialize(status: nil, push_payment_method_id: nil, pull_payment_method_id: nil, statement_descriptor: nil, minimum_balance: nil, schedule: nil, raw_response: nil)
30
32
  @status = status
31
33
  @push_payment_method_id = push_payment_method_id
32
34
  @pull_payment_method_id = pull_payment_method_id
33
35
  @statement_descriptor = statement_descriptor
34
36
  @minimum_balance = minimum_balance
37
+ @schedule = schedule
35
38
  @raw_response = raw_response
36
39
  end
37
40
 
@@ -43,6 +46,7 @@ module Moov
43
46
  return false unless @pull_payment_method_id == other.pull_payment_method_id
44
47
  return false unless @statement_descriptor == other.statement_descriptor
45
48
  return false unless @minimum_balance == other.minimum_balance
49
+ return false unless @schedule == other.schedule
46
50
  return false unless @raw_response == other.raw_response
47
51
  true
48
52
  end
@@ -18,6 +18,8 @@ class Moov::Models::Errors::PatchSweepConfigError
18
18
  def statement_descriptor=(str_); end
19
19
  def minimum_balance(); end
20
20
  def minimum_balance=(str_); end
21
+ def schedule(); end
22
+ def schedule=(str_); end
21
23
  def raw_response(); end
22
24
  def raw_response=(str_); end
23
25
  end
@@ -23,17 +23,20 @@ module Moov
23
23
 
24
24
  field :status, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('status') } }
25
25
 
26
+ field :payment, Crystalline::Nilable.new(Models::Components::InvoicePaymentOptionsError), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('payment') } }
27
+
26
28
  field :tax_amount, Crystalline::Nilable.new(Models::Components::AmountDecimalValidationError), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('taxAmount') } }
27
29
  # Raw HTTP response; suitable for custom response parsing
28
30
  field :raw_response, Crystalline::Nilable.new(::Faraday::Response), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('-') } }
29
31
 
30
- sig { params(description: T.nilable(::String), line_items: T.nilable(Models::Components::InvoiceLineItemsValidationError), invoice_date: T.nilable(::String), due_date: T.nilable(::String), status: T.nilable(::String), tax_amount: T.nilable(Models::Components::AmountDecimalValidationError), raw_response: T.nilable(::Faraday::Response)).void }
31
- def initialize(description: nil, line_items: nil, invoice_date: nil, due_date: nil, status: nil, tax_amount: nil, raw_response: nil)
32
+ sig { params(description: T.nilable(::String), line_items: T.nilable(Models::Components::InvoiceLineItemsValidationError), invoice_date: T.nilable(::String), due_date: T.nilable(::String), status: T.nilable(::String), payment: T.nilable(Models::Components::InvoicePaymentOptionsError), tax_amount: T.nilable(Models::Components::AmountDecimalValidationError), raw_response: T.nilable(::Faraday::Response)).void }
33
+ def initialize(description: nil, line_items: nil, invoice_date: nil, due_date: nil, status: nil, payment: nil, tax_amount: nil, raw_response: nil)
32
34
  @description = description
33
35
  @line_items = line_items
34
36
  @invoice_date = invoice_date
35
37
  @due_date = due_date
36
38
  @status = status
39
+ @payment = payment
37
40
  @tax_amount = tax_amount
38
41
  @raw_response = raw_response
39
42
  end
@@ -46,6 +49,7 @@ module Moov
46
49
  return false unless @invoice_date == other.invoice_date
47
50
  return false unless @due_date == other.due_date
48
51
  return false unless @status == other.status
52
+ return false unless @payment == other.payment
49
53
  return false unless @tax_amount == other.tax_amount
50
54
  return false unless @raw_response == other.raw_response
51
55
  true
@@ -18,6 +18,8 @@ class Moov::Models::Errors::UpdateInvoiceError
18
18
  def due_date=(str_); end
19
19
  def status(); end
20
20
  def status=(str_); end
21
+ def payment(); end
22
+ def payment=(str_); end
21
23
  def tax_amount(); end
22
24
  def tax_amount=(str_); end
23
25
  def raw_response(); end
@@ -31,6 +31,8 @@ module Moov
31
31
  autoload :GenericError, 'moov/models/errors/genericerror.rb'
32
32
  autoload :ImageMetadataValidationError, 'moov/models/errors/imagemetadatavalidationerror.rb'
33
33
  autoload :ImageRequestValidationError, 'moov/models/errors/imagerequestvalidationerror.rb'
34
+ autoload :InvoiceNotificationError, 'moov/models/errors/invoicenotificationerror.rb'
35
+ autoload :InvoiceNotificationRateLimitedError, 'moov/models/errors/invoicenotificationratelimitederror.rb'
34
36
  autoload :LinkApplePayError, 'moov/models/errors/linkapplepayerror.rb'
35
37
  autoload :LinkCardError, 'moov/models/errors/linkcarderror.rb'
36
38
  autoload :LinkGooglePayError, 'moov/models/errors/linkgooglepayerror.rb'
@@ -16,11 +16,15 @@ module Moov
16
16
  field :account_id, ::String, { 'path_param': { 'field_name': 'accountID', 'style': 'simple', 'explode': false } }
17
17
  # The transfer ID to cancel.
18
18
  field :transfer_id, ::String, { 'path_param': { 'field_name': 'transferID', 'style': 'simple', 'explode': false } }
19
+ # Prevents duplicate cancellations from being created.
20
+ # In v2026.10 and later, this header is required, and reusing a key returns a `409` response with the original cancellation.
21
+ field :x_idempotency_key, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'x-idempotency-key', 'style': 'simple', 'explode': false } }
19
22
 
20
- sig { params(account_id: ::String, transfer_id: ::String).void }
21
- def initialize(account_id:, transfer_id:)
23
+ sig { params(account_id: ::String, transfer_id: ::String, x_idempotency_key: T.nilable(::String)).void }
24
+ def initialize(account_id:, transfer_id:, x_idempotency_key: nil)
22
25
  @account_id = account_id
23
26
  @transfer_id = transfer_id
27
+ @x_idempotency_key = x_idempotency_key
24
28
  end
25
29
 
26
30
  sig { params(other: T.untyped).returns(T::Boolean) }
@@ -28,6 +32,7 @@ module Moov
28
32
  return false unless other.is_a? self.class
29
33
  return false unless @account_id == other.account_id
30
34
  return false unless @transfer_id == other.transfer_id
35
+ return false unless @x_idempotency_key == other.x_idempotency_key
31
36
  true
32
37
  end
33
38
  end
@@ -12,4 +12,6 @@ class Moov::Models::Operations::CreateCancellationRequest
12
12
  def account_id=(str_); end
13
13
  def transfer_id(); end
14
14
  def transfer_id=(str_); end
15
+ def x_idempotency_key(); end
16
+ def x_idempotency_key=(str_); end
15
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 Operations
10
+
11
+ class CreateInvoiceNotificationRequest
12
+ extend T::Sig
13
+ include Crystalline::MetadataFields
14
+
15
+
16
+ field :account_id, ::String, { 'path_param': { 'field_name': 'accountID', 'style': 'simple', 'explode': false } }
17
+
18
+ field :invoice_id, ::String, { 'path_param': { 'field_name': 'invoiceID', 'style': 'simple', 'explode': false } }
19
+
20
+ field :create_invoice_notification, Models::Components::CreateInvoiceNotification, { 'request': { 'media_type': 'application/json' } }
21
+
22
+ sig { params(account_id: ::String, invoice_id: ::String, create_invoice_notification: Models::Components::CreateInvoiceNotification).void }
23
+ def initialize(account_id:, invoice_id:, create_invoice_notification:)
24
+ @account_id = account_id
25
+ @invoice_id = invoice_id
26
+ @create_invoice_notification = create_invoice_notification
27
+ end
28
+
29
+ sig { params(other: T.untyped).returns(T::Boolean) }
30
+ def ==(other)
31
+ return false unless other.is_a? self.class
32
+ return false unless @account_id == other.account_id
33
+ return false unless @invoice_id == other.invoice_id
34
+ return false unless @create_invoice_notification == other.create_invoice_notification
35
+ true
36
+ end
37
+ end
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,17 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+
5
+ class Moov::Models::Operations::CreateInvoiceNotificationRequest
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class Moov::Models::Operations::CreateInvoiceNotificationRequest
11
+ def account_id(); end
12
+ def account_id=(str_); end
13
+ def invoice_id(); end
14
+ def invoice_id=(str_); end
15
+ def create_invoice_notification(); end
16
+ def create_invoice_notification=(str_); end
17
+ end
@@ -0,0 +1,44 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module Moov
8
+ module Models
9
+ module Operations
10
+
11
+ class CreateInvoiceNotificationResponse
12
+ extend T::Sig
13
+ include Crystalline::MetadataFields
14
+
15
+ # HTTP response content type for this operation
16
+ field :content_type, ::String
17
+ # HTTP response status code for this operation
18
+ field :status_code, ::Integer
19
+ # Raw HTTP response; suitable for custom response parsing
20
+ field :raw_response, ::Faraday::Response
21
+
22
+ field :headers, Crystalline::Hash.new(Symbol, Crystalline::Array.new(::String))
23
+
24
+ sig { params(content_type: ::String, status_code: ::Integer, raw_response: ::Faraday::Response, headers: T::Hash[Symbol, T::Array[::String]]).void }
25
+ def initialize(content_type:, status_code:, raw_response:, headers:)
26
+ @content_type = content_type
27
+ @status_code = status_code
28
+ @raw_response = raw_response
29
+ @headers = headers
30
+ end
31
+
32
+ sig { params(other: T.untyped).returns(T::Boolean) }
33
+ def ==(other)
34
+ return false unless other.is_a? self.class
35
+ return false unless @content_type == other.content_type
36
+ return false unless @status_code == other.status_code
37
+ return false unless @raw_response == other.raw_response
38
+ return false unless @headers == other.headers
39
+ true
40
+ end
41
+ end
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,19 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+
5
+ class Moov::Models::Operations::CreateInvoiceNotificationResponse
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class Moov::Models::Operations::CreateInvoiceNotificationResponse
11
+ def content_type(); end
12
+ def content_type=(str_); end
13
+ def status_code(); end
14
+ def status_code=(str_); end
15
+ def raw_response(); end
16
+ def raw_response=(str_); end
17
+ def headers(); end
18
+ def headers=(str_); end
19
+ end
@@ -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, { 'path_param': { 'field_name': 'capabilityID', 'style': 'simple', 'explode': false } }
27
29
 
28
30
  sig { params(account_id: ::String, capability_id: Models::Components::CapabilityID).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, { 'path_param': { 'field_name': 'capabilityID', 'style': 'simple', 'explode': false } }
27
29
 
28
30
  sig { params(account_id: ::String, capability_id: Models::Components::CapabilityID).void }
@@ -14,7 +14,7 @@ module Moov
14
14
 
15
15
  # Prevents duplicate refunds from being created.
16
16
  field :x_idempotency_key, ::String, { 'header': { 'field_name': 'x-idempotency-key', 'style': 'simple', 'explode': false } }
17
- # The merchant's Moov account ID.
17
+ # Moov account ID of the partner for the transfer.
18
18
  field :account_id, ::String, { 'path_param': { 'field_name': 'accountID', 'style': 'simple', 'explode': false } }
19
19
  # Identifier for the transfer.
20
20
  field :transfer_id, ::String, { 'path_param': { 'field_name': 'transferID', 'style': 'simple', 'explode': false } }