moov_ruby 0.0.0.pre.dev.3 → 0.0.0.pre.dev.5

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 (65) hide show
  1. checksums.yaml +4 -4
  2. data/lib/crystalline/types.rb +11 -3
  3. data/lib/moov/account_terminal_applications.rb +23 -9
  4. data/lib/moov/accounts.rb +58 -23
  5. data/lib/moov/adjustments.rb +13 -5
  6. data/lib/moov/apple_pay.rb +28 -11
  7. data/lib/moov/authentication.rb +13 -5
  8. data/lib/moov/avatars.rb +8 -3
  9. data/lib/moov/bank_accounts.rb +48 -19
  10. data/lib/moov/branding.rb +18 -7
  11. data/lib/moov/capabilities.rb +23 -9
  12. data/lib/moov/card_issuing.rb +28 -11
  13. data/lib/moov/cards.rb +28 -11
  14. data/lib/moov/client.rb +2 -1
  15. data/lib/moov/disputes.rb +58 -23
  16. data/lib/moov/end_to_end_encryption.rb +13 -5
  17. data/lib/moov/enriched_address.rb +8 -3
  18. data/lib/moov/enriched_profile.rb +8 -3
  19. data/lib/moov/fee_plans.rb +53 -21
  20. data/lib/moov/files.rb +18 -7
  21. data/lib/moov/images.rb +39 -19
  22. data/lib/moov/industries.rb +8 -3
  23. data/lib/moov/institutions.rb +13 -5
  24. data/lib/moov/invoices.rb +170 -13
  25. data/lib/moov/issuing_transactions.rb +28 -11
  26. data/lib/moov/models/components/createinvoicelineitem.rb +2 -1
  27. data/lib/moov/models/components/createpaymentlinklineitem.rb +2 -1
  28. data/lib/moov/models/components/feecategory.rb +1 -0
  29. data/lib/moov/models/components/invoice.rb +14 -2
  30. data/lib/moov/models/components/invoice.rbi +6 -0
  31. data/lib/moov/models/components/invoicelineitem.rb +2 -1
  32. data/lib/moov/models/components/transferdestination.rb +2 -6
  33. data/lib/moov/models/components/transferdestination.rbi +0 -2
  34. data/lib/moov/models/components/updateinvoice.rb +4 -1
  35. data/lib/moov/models/components.rb +0 -3
  36. data/lib/moov/models/operations/deleteinvoice_request.rb +49 -0
  37. data/lib/moov/models/operations/deleteinvoice_request.rbi +17 -0
  38. data/lib/moov/models/operations/deleteinvoice_response.rb +44 -0
  39. data/lib/moov/models/operations/deleteinvoice_response.rbi +19 -0
  40. data/lib/moov/models/operations.rb +2 -0
  41. data/lib/moov/onboarding.rb +23 -9
  42. data/lib/moov/payment_links.rb +33 -13
  43. data/lib/moov/payment_methods.rb +13 -5
  44. data/lib/moov/ping.rb +8 -3
  45. data/lib/moov/products.rb +28 -11
  46. data/lib/moov/receipts.rb +13 -5
  47. data/lib/moov/representatives.rb +28 -11
  48. data/lib/moov/scheduling.rb +33 -13
  49. data/lib/moov/sdkconfiguration.rb +3 -3
  50. data/lib/moov/statements.rb +13 -5
  51. data/lib/moov/support.rb +28 -11
  52. data/lib/moov/sweeps.rb +33 -13
  53. data/lib/moov/terminal_applications.rb +28 -11
  54. data/lib/moov/transfers.rb +58 -23
  55. data/lib/moov/underwriting.rb +18 -7
  56. data/lib/moov/wallet_transactions.rb +13 -5
  57. data/lib/moov/wallets.rb +23 -9
  58. data/lib/moov/webhooks.rb +43 -17
  59. metadata +20 -8
  60. data/lib/moov/models/components/rtpfailurecode.rb +0 -27
  61. data/lib/moov/models/components/rtpfailurecode.rbi +0 -11
  62. data/lib/moov/models/components/rtptransactiondetails.rb +0 -56
  63. data/lib/moov/models/components/rtptransactiondetails.rbi +0 -25
  64. data/lib/moov/models/components/rtptransactionstatus.rb +0 -21
  65. data/lib/moov/models/components/rtptransactionstatus.rbi +0 -11
@@ -15,6 +15,7 @@ module Moov
15
15
  CARD_OTHER = new('card-other')
16
16
  CARD_PULL = new('card-pull')
17
17
  CARD_PUSH = new('card-push')
18
+ INSTANT_BANK = new('instant-bank')
18
19
  MONTHLY_PLATFORM = new('monthly-platform')
19
20
  NETWORK_PASSTHROUGH = new('network-passthrough')
20
21
  OTHER = new('other')
@@ -18,6 +18,10 @@ module Moov
18
18
  field :invoice_number, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('invoiceNumber'), required: true } }
19
19
  # A unique identifier for a Moov resource. Supports UUID format (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) or typed format with base32-encoded UUID and type suffix (e.g., kuoaydiojf7uszaokc2ggnaaaa_xfer).
20
20
  field :customer_account_id, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('customerAccountID'), required: true } }
21
+ # Display name of the customer account.
22
+ field :customer_display_name, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('customerDisplayName'), required: true } }
23
+ # Email address of the customer account.
24
+ field :customer_email, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('customerEmail'), required: true } }
21
25
  # A unique identifier for a Moov resource. Supports UUID format (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) or typed format with base32-encoded UUID and type suffix (e.g., kuoaydiojf7uszaokc2ggnaaaa_xfer).
22
26
  field :partner_account_id, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('partnerAccountID'), required: true } }
23
27
 
@@ -57,11 +61,15 @@ module Moov
57
61
 
58
62
  field :canceled_on, Crystalline::Nilable.new(::DateTime), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('canceledOn'), 'decoder': ::Moov::Utils.datetime_from_iso_format(true) } }
59
63
 
60
- sig { params(invoice_id: ::String, invoice_number: ::String, customer_account_id: ::String, partner_account_id: ::String, status: Models::Components::InvoiceStatus, line_items: Models::Components::InvoiceLineItems, subtotal_amount: Models::Components::AmountDecimal, tax_amount: Models::Components::AmountDecimal, total_amount: Models::Components::AmountDecimal, pending_amount: Models::Components::AmountDecimal, paid_amount: Models::Components::AmountDecimal, refunded_amount: Models::Components::AmountDecimal, disputed_amount: Models::Components::AmountDecimal, created_on: ::DateTime, description: T.nilable(::String), payment_link_code: T.nilable(::String), invoice_payments: T.nilable(T::Array[Models::Components::InvoicePayment]), invoice_date: T.nilable(::DateTime), due_date: T.nilable(::DateTime), sent_on: T.nilable(::DateTime), paid_on: T.nilable(::DateTime), canceled_on: T.nilable(::DateTime)).void }
61
- def initialize(invoice_id:, invoice_number:, customer_account_id:, partner_account_id:, status:, line_items:, subtotal_amount:, tax_amount:, total_amount:, pending_amount:, paid_amount:, refunded_amount:, disputed_amount:, created_on:, description: nil, payment_link_code: nil, invoice_payments: nil, invoice_date: nil, due_date: nil, sent_on: nil, paid_on: nil, canceled_on: nil)
64
+ field :disabled_on, Crystalline::Nilable.new(::DateTime), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('disabledOn'), 'decoder': ::Moov::Utils.datetime_from_iso_format(true) } }
65
+
66
+ sig { params(invoice_id: ::String, invoice_number: ::String, customer_account_id: ::String, customer_display_name: ::String, customer_email: ::String, partner_account_id: ::String, status: Models::Components::InvoiceStatus, line_items: Models::Components::InvoiceLineItems, subtotal_amount: Models::Components::AmountDecimal, tax_amount: Models::Components::AmountDecimal, total_amount: Models::Components::AmountDecimal, pending_amount: Models::Components::AmountDecimal, paid_amount: Models::Components::AmountDecimal, refunded_amount: Models::Components::AmountDecimal, disputed_amount: Models::Components::AmountDecimal, created_on: ::DateTime, description: T.nilable(::String), payment_link_code: T.nilable(::String), invoice_payments: T.nilable(T::Array[Models::Components::InvoicePayment]), invoice_date: T.nilable(::DateTime), due_date: T.nilable(::DateTime), sent_on: T.nilable(::DateTime), paid_on: T.nilable(::DateTime), canceled_on: T.nilable(::DateTime), disabled_on: T.nilable(::DateTime)).void }
67
+ def initialize(invoice_id:, invoice_number:, customer_account_id:, customer_display_name:, customer_email:, partner_account_id:, status:, line_items:, subtotal_amount:, tax_amount:, total_amount:, pending_amount:, paid_amount:, refunded_amount:, disputed_amount:, created_on:, description: nil, payment_link_code: nil, invoice_payments: nil, invoice_date: nil, due_date: nil, sent_on: nil, paid_on: nil, canceled_on: nil, disabled_on: nil)
62
68
  @invoice_id = invoice_id
63
69
  @invoice_number = invoice_number
64
70
  @customer_account_id = customer_account_id
71
+ @customer_display_name = customer_display_name
72
+ @customer_email = customer_email
65
73
  @partner_account_id = partner_account_id
66
74
  @status = status
67
75
  @line_items = line_items
@@ -81,6 +89,7 @@ module Moov
81
89
  @sent_on = sent_on
82
90
  @paid_on = paid_on
83
91
  @canceled_on = canceled_on
92
+ @disabled_on = disabled_on
84
93
  end
85
94
 
86
95
  sig { params(other: T.untyped).returns(T::Boolean) }
@@ -89,6 +98,8 @@ module Moov
89
98
  return false unless @invoice_id == other.invoice_id
90
99
  return false unless @invoice_number == other.invoice_number
91
100
  return false unless @customer_account_id == other.customer_account_id
101
+ return false unless @customer_display_name == other.customer_display_name
102
+ return false unless @customer_email == other.customer_email
92
103
  return false unless @partner_account_id == other.partner_account_id
93
104
  return false unless @status == other.status
94
105
  return false unless @line_items == other.line_items
@@ -108,6 +119,7 @@ module Moov
108
119
  return false unless @sent_on == other.sent_on
109
120
  return false unless @paid_on == other.paid_on
110
121
  return false unless @canceled_on == other.canceled_on
122
+ return false unless @disabled_on == other.disabled_on
111
123
  true
112
124
  end
113
125
  end
@@ -14,6 +14,10 @@ class Moov::Models::Components::Invoice
14
14
  def invoice_number=(str_); end
15
15
  def customer_account_id(); end
16
16
  def customer_account_id=(str_); end
17
+ def customer_display_name(); end
18
+ def customer_display_name=(str_); end
19
+ def customer_email(); end
20
+ def customer_email=(str_); end
17
21
  def partner_account_id(); end
18
22
  def partner_account_id=(str_); end
19
23
  def status(); end
@@ -52,4 +56,6 @@ class Moov::Models::Components::Invoice
52
56
  def paid_on=(str_); end
53
57
  def canceled_on(); end
54
58
  def canceled_on=(str_); end
59
+ def disabled_on(); end
60
+ def disabled_on=(str_); end
55
61
  end
@@ -19,7 +19,8 @@ module Moov
19
19
  # The quantity of this item.
20
20
  field :quantity, ::Integer, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('quantity'), required: true } }
21
21
  # Optional unique identifier associating the line item with a product.
22
- # This is for reporting or tracking purposes, and does not populate other details of the line item.
22
+ # When provided, images associated with the product will be included on the line item.
23
+ # This does not populate other details of the line item.
23
24
  field :product_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('productID') } }
24
25
  # Optional list of modifiers applied to this item (e.g., toppings, upgrades, customizations).
25
26
  field :options, Crystalline::Nilable.new(Crystalline::Array.new(Models::Components::InvoiceLineItemOption)), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('options') } }
@@ -30,13 +30,11 @@ module Moov
30
30
  field :apple_pay, Crystalline::Nilable.new(Models::Components::ApplePayResponse), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('applePay') } }
31
31
  # Card-specific details about the transaction.
32
32
  field :card_details, Crystalline::Nilable.new(Models::Components::CardTransactionDetails), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('cardDetails') } }
33
- # RTP specific details about the transaction.
34
- field :rtp_details, Crystalline::Nilable.new(Models::Components::RTPTransactionDetails), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('rtpDetails') } }
35
33
  # Instant-bank specific details about the transaction.
36
34
  field :instant_bank_details, Crystalline::Nilable.new(Models::Components::InstantBankTransactionDetails), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('instantBankDetails') } }
37
35
 
38
- sig { params(payment_method_id: ::String, payment_method_type: Models::Components::TransferPaymentMethodType, account: Models::Components::TransferAccount, bank_account: T.nilable(Models::Components::TransferPaymentMethodsBankAccount), wallet: T.nilable(Models::Components::TransferPaymentMethodsWallet), card: T.nilable(Models::Components::TransferPaymentMethodsCard), ach_details: T.nilable(Models::Components::ACHTransactionDetails), apple_pay: T.nilable(Models::Components::ApplePayResponse), card_details: T.nilable(Models::Components::CardTransactionDetails), rtp_details: T.nilable(Models::Components::RTPTransactionDetails), instant_bank_details: T.nilable(Models::Components::InstantBankTransactionDetails)).void }
39
- def initialize(payment_method_id:, payment_method_type:, account:, bank_account: nil, wallet: nil, card: nil, ach_details: nil, apple_pay: nil, card_details: nil, rtp_details: nil, instant_bank_details: nil)
36
+ sig { params(payment_method_id: ::String, payment_method_type: Models::Components::TransferPaymentMethodType, account: Models::Components::TransferAccount, bank_account: T.nilable(Models::Components::TransferPaymentMethodsBankAccount), wallet: T.nilable(Models::Components::TransferPaymentMethodsWallet), card: T.nilable(Models::Components::TransferPaymentMethodsCard), ach_details: T.nilable(Models::Components::ACHTransactionDetails), apple_pay: T.nilable(Models::Components::ApplePayResponse), card_details: T.nilable(Models::Components::CardTransactionDetails), instant_bank_details: T.nilable(Models::Components::InstantBankTransactionDetails)).void }
37
+ def initialize(payment_method_id:, payment_method_type:, account:, bank_account: nil, wallet: nil, card: nil, ach_details: nil, apple_pay: nil, card_details: nil, instant_bank_details: nil)
40
38
  @payment_method_id = payment_method_id
41
39
  @payment_method_type = payment_method_type
42
40
  @account = account
@@ -46,7 +44,6 @@ module Moov
46
44
  @ach_details = ach_details
47
45
  @apple_pay = apple_pay
48
46
  @card_details = card_details
49
- @rtp_details = rtp_details
50
47
  @instant_bank_details = instant_bank_details
51
48
  end
52
49
 
@@ -62,7 +59,6 @@ module Moov
62
59
  return false unless @ach_details == other.ach_details
63
60
  return false unless @apple_pay == other.apple_pay
64
61
  return false unless @card_details == other.card_details
65
- return false unless @rtp_details == other.rtp_details
66
62
  return false unless @instant_bank_details == other.instant_bank_details
67
63
  true
68
64
  end
@@ -26,8 +26,6 @@ class Moov::Models::Components::TransferDestination
26
26
  def apple_pay=(str_); end
27
27
  def card_details(); end
28
28
  def card_details=(str_); end
29
- def rtp_details(); end
30
- def rtp_details=(str_); end
31
29
  def instant_bank_details(); end
32
30
  def instant_bank_details=(str_); end
33
31
  end
@@ -17,7 +17,10 @@ module Moov
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
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`.
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.
21
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.
22
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) } }
23
26
 
@@ -441,12 +441,9 @@ module Moov
441
441
  autoload :PushToCardTransferPaymentMethod, 'moov/models/components/pushtocardtransferpaymentmethod.rb'
442
442
  autoload :PushToCardTransferPaymentMethodPaymentMethodType, 'moov/models/components/pushtocardtransferpaymentmethod_paymentmethodtype.rb'
443
443
  autoload :QRCode, 'moov/models/components/qrcode.rb'
444
- autoload :RTPFailureCode, 'moov/models/components/rtpfailurecode.rb'
445
444
  autoload :RTPInstitution, 'moov/models/components/rtpinstitution.rb'
446
445
  autoload :RTPRejectionCode, 'moov/models/components/rtprejectioncode.rb'
447
446
  autoload :RTPServices, 'moov/models/components/rtpservices.rb'
448
- autoload :RTPTransactionDetails, 'moov/models/components/rtptransactiondetails.rb'
449
- autoload :RTPTransactionStatus, 'moov/models/components/rtptransactionstatus.rb'
450
447
  autoload :ReceiptKind, 'moov/models/components/receiptkind.rb'
451
448
  autoload :ReceiptRequest, 'moov/models/components/receiptrequest.rb'
452
449
  autoload :ReceiptResponse, 'moov/models/components/receiptresponse.rb'
@@ -0,0 +1,49 @@
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 DeleteInvoiceRequest
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
+ # Specify an API version.
20
+ #
21
+ # API versioning follows the format `vYYYY.QQ.BB`, where
22
+ # - `YYYY` is the year
23
+ # - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
24
+ # - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter.
25
+ # - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
26
+ #
27
+ # The `dev` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
28
+ # When no version is specified, the API defaults to `v2024.01.00`.
29
+ field :x_moov_version, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'X-Moov-Version', 'style': 'simple', 'explode': false } }
30
+
31
+ sig { params(account_id: ::String, invoice_id: ::String, x_moov_version: T.nilable(::String)).void }
32
+ def initialize(account_id:, invoice_id:, x_moov_version: nil)
33
+ @account_id = account_id
34
+ @invoice_id = invoice_id
35
+ @x_moov_version = x_moov_version
36
+ end
37
+
38
+ sig { params(other: T.untyped).returns(T::Boolean) }
39
+ def ==(other)
40
+ return false unless other.is_a? self.class
41
+ return false unless @account_id == other.account_id
42
+ return false unless @invoice_id == other.invoice_id
43
+ return false unless @x_moov_version == other.x_moov_version
44
+ true
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,17 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+
5
+ class Moov::Models::Operations::DeleteInvoiceRequest
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class Moov::Models::Operations::DeleteInvoiceRequest
11
+ def account_id(); end
12
+ def account_id=(str_); end
13
+ def invoice_id(); end
14
+ def invoice_id=(str_); end
15
+ def x_moov_version(); end
16
+ def x_moov_version=(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 DeleteInvoiceResponse
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::DeleteInvoiceResponse
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class Moov::Models::Operations::DeleteInvoiceResponse
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
@@ -68,6 +68,8 @@ module Moov
68
68
  autoload :DeleteDisputeEvidenceFileResponse, 'moov/models/operations/deletedisputeevidencefile_response.rb'
69
69
  autoload :DeleteImageRequest, 'moov/models/operations/deleteimage_request.rb'
70
70
  autoload :DeleteImageResponse, 'moov/models/operations/deleteimage_response.rb'
71
+ autoload :DeleteInvoiceRequest, 'moov/models/operations/deleteinvoice_request.rb'
72
+ autoload :DeleteInvoiceResponse, 'moov/models/operations/deleteinvoice_response.rb'
71
73
  autoload :DeleteRepresentativeRequest, 'moov/models/operations/deleterepresentative_request.rb'
72
74
  autoload :DeleteRepresentativeResponse, 'moov/models/operations/deleterepresentative_response.rb'
73
75
  autoload :DeleteTerminalApplicationRequest, 'moov/models/operations/deleteterminalapplication_request.rb'
@@ -39,8 +39,10 @@ module Moov
39
39
  end
40
40
 
41
41
 
42
- sig { params(onboarding_invite_request: Models::Components::OnboardingInviteRequest, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::CreateOnboardingInviteResponse) }
43
- def create_invite(onboarding_invite_request:, x_moov_version: nil, timeout_ms: nil)
42
+
43
+
44
+ sig { params(onboarding_invite_request: Models::Components::OnboardingInviteRequest, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::CreateOnboardingInviteResponse) }
45
+ def create_invite(onboarding_invite_request:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
44
46
  # create_invite - Create an invitation containing a unique link that allows the recipient to onboard their organization with Moov.
45
47
  #
46
48
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
@@ -94,6 +96,9 @@ module Moov
94
96
  req.headers.merge!(headers)
95
97
  req.options.timeout = timeout unless timeout.nil?
96
98
  Utils.configure_request_security(req, security)
99
+ http_headers&.each do |key, value|
100
+ req.headers[key.to_s] = value
101
+ end
97
102
 
98
103
  @sdk_configuration.hooks.before_request(
99
104
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -196,8 +201,8 @@ module Moov
196
201
  end
197
202
 
198
203
 
199
- sig { params(x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListOnboardingInvitesResponse) }
200
- def list_invites(x_moov_version: nil, timeout_ms: nil)
204
+ sig { params(x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ListOnboardingInvitesResponse) }
205
+ def list_invites(x_moov_version: nil, timeout_ms: nil, http_headers: nil)
201
206
  # list_invites - List all the onboarding invites created by the caller's account.
202
207
  #
203
208
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
@@ -238,6 +243,9 @@ module Moov
238
243
  req.headers.merge!(headers)
239
244
  req.options.timeout = timeout unless timeout.nil?
240
245
  Utils.configure_request_security(req, security)
246
+ http_headers&.each do |key, value|
247
+ req.headers[key.to_s] = value
248
+ end
241
249
 
242
250
  @sdk_configuration.hooks.before_request(
243
251
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -310,8 +318,8 @@ module Moov
310
318
  end
311
319
 
312
320
 
313
- sig { params(code: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetOnboardingInviteResponse) }
314
- def get_invite(code:, x_moov_version: nil, timeout_ms: nil)
321
+ sig { params(code: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::GetOnboardingInviteResponse) }
322
+ def get_invite(code:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
315
323
  # get_invite - Retrieve details about an onboarding invite.
316
324
  #
317
325
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
@@ -359,6 +367,9 @@ module Moov
359
367
  req.headers.merge!(headers)
360
368
  req.options.timeout = timeout unless timeout.nil?
361
369
  Utils.configure_request_security(req, security)
370
+ http_headers&.each do |key, value|
371
+ req.headers[key.to_s] = value
372
+ end
362
373
 
363
374
  @sdk_configuration.hooks.before_request(
364
375
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -431,8 +442,8 @@ module Moov
431
442
  end
432
443
 
433
444
 
434
- sig { params(code: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::RevokeOnboardingInviteResponse) }
435
- def revoke_invite(code:, x_moov_version: nil, timeout_ms: nil)
445
+ sig { params(code: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::RevokeOnboardingInviteResponse) }
446
+ def revoke_invite(code:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
436
447
  # revoke_invite - Revoke an onboarding invite, rendering the invitation link unusable.
437
448
  #
438
449
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
@@ -480,6 +491,9 @@ module Moov
480
491
  req.headers.merge!(headers)
481
492
  req.options.timeout = timeout unless timeout.nil?
482
493
  Utils.configure_request_security(req, security)
494
+ http_headers&.each do |key, value|
495
+ req.headers[key.to_s] = value
496
+ end
483
497
 
484
498
  @sdk_configuration.hooks.before_request(
485
499
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -537,5 +551,5 @@ module Moov
537
551
 
538
552
  end
539
553
  end
540
- end
554
+ end
541
555
  end
@@ -39,8 +39,10 @@ module Moov
39
39
  end
40
40
 
41
41
 
42
- sig { params(create_payment_link: Models::Components::CreatePaymentLink, account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::CreatePaymentLinkResponse) }
43
- def create(create_payment_link:, account_id:, x_moov_version: nil, timeout_ms: nil)
42
+
43
+
44
+ sig { params(create_payment_link: Models::Components::CreatePaymentLink, account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::CreatePaymentLinkResponse) }
45
+ def create(create_payment_link:, account_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
44
46
  # create - Create a payment link that allows an end user to make a payment on Moov's hosted payment link page.
45
47
  #
46
48
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
@@ -101,6 +103,9 @@ module Moov
101
103
  req.headers.merge!(headers)
102
104
  req.options.timeout = timeout unless timeout.nil?
103
105
  Utils.configure_request_security(req, security)
106
+ http_headers&.each do |key, value|
107
+ req.headers[key.to_s] = value
108
+ end
104
109
 
105
110
  @sdk_configuration.hooks.before_request(
106
111
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -203,8 +208,8 @@ module Moov
203
208
  end
204
209
 
205
210
 
206
- sig { params(request: Models::Operations::ListPaymentLinksRequest, timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListPaymentLinksResponse) }
207
- def list(request:, timeout_ms: nil)
211
+ sig { params(request: Models::Operations::ListPaymentLinksRequest, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ListPaymentLinksResponse) }
212
+ def list(request:, timeout_ms: nil, http_headers: nil)
208
213
  # list - List all the payment links created under a Moov account.
209
214
  #
210
215
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
@@ -250,6 +255,9 @@ module Moov
250
255
  req.options.timeout = timeout unless timeout.nil?
251
256
  req.params = query_params
252
257
  Utils.configure_request_security(req, security)
258
+ http_headers&.each do |key, value|
259
+ req.headers[key.to_s] = value
260
+ end
253
261
 
254
262
  @sdk_configuration.hooks.before_request(
255
263
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -322,8 +330,8 @@ module Moov
322
330
  end
323
331
 
324
332
 
325
- sig { params(account_id: ::String, payment_link_code: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetPaymentLinkResponse) }
326
- def get(account_id:, payment_link_code:, x_moov_version: nil, timeout_ms: nil)
333
+ sig { params(account_id: ::String, payment_link_code: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::GetPaymentLinkResponse) }
334
+ def get(account_id:, payment_link_code:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
327
335
  # get - Retrieve a payment link by code.
328
336
  #
329
337
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
@@ -372,6 +380,9 @@ module Moov
372
380
  req.headers.merge!(headers)
373
381
  req.options.timeout = timeout unless timeout.nil?
374
382
  Utils.configure_request_security(req, security)
383
+ http_headers&.each do |key, value|
384
+ req.headers[key.to_s] = value
385
+ end
375
386
 
376
387
  @sdk_configuration.hooks.before_request(
377
388
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -444,8 +455,8 @@ module Moov
444
455
  end
445
456
 
446
457
 
447
- sig { params(update_payment_link: Models::Components::UpdatePaymentLink, account_id: ::String, payment_link_code: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::UpdatePaymentLinkResponse) }
448
- def update(update_payment_link:, account_id:, payment_link_code:, x_moov_version: nil, timeout_ms: nil)
458
+ sig { params(update_payment_link: Models::Components::UpdatePaymentLink, account_id: ::String, payment_link_code: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::UpdatePaymentLinkResponse) }
459
+ def update(update_payment_link:, account_id:, payment_link_code:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
449
460
  # update - Update a payment link.
450
461
  #
451
462
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
@@ -507,6 +518,9 @@ module Moov
507
518
  req.headers.merge!(headers)
508
519
  req.options.timeout = timeout unless timeout.nil?
509
520
  Utils.configure_request_security(req, security)
521
+ http_headers&.each do |key, value|
522
+ req.headers[key.to_s] = value
523
+ end
510
524
 
511
525
  @sdk_configuration.hooks.before_request(
512
526
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -609,8 +623,8 @@ module Moov
609
623
  end
610
624
 
611
625
 
612
- sig { params(account_id: ::String, payment_link_code: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::DisablePaymentLinkResponse) }
613
- def disable(account_id:, payment_link_code:, x_moov_version: nil, timeout_ms: nil)
626
+ sig { params(account_id: ::String, payment_link_code: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::DisablePaymentLinkResponse) }
627
+ def disable(account_id:, payment_link_code:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
614
628
  # disable - Disable a payment link.
615
629
  #
616
630
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
@@ -659,6 +673,9 @@ module Moov
659
673
  req.headers.merge!(headers)
660
674
  req.options.timeout = timeout unless timeout.nil?
661
675
  Utils.configure_request_security(req, security)
676
+ http_headers&.each do |key, value|
677
+ req.headers[key.to_s] = value
678
+ end
662
679
 
663
680
  @sdk_configuration.hooks.before_request(
664
681
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -722,8 +739,8 @@ module Moov
722
739
  end
723
740
 
724
741
 
725
- sig { params(account_id: ::String, payment_link_code: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), accept_header_override: T.nilable(String)).returns(Models::Operations::GetPaymentLinkQRCodeResponse) }
726
- def get_qr_code(account_id:, payment_link_code:, x_moov_version: nil, timeout_ms: nil, accept_header_override: nil)
742
+ sig { params(account_id: ::String, payment_link_code: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), accept_header_override: T.nilable(String), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::GetPaymentLinkQRCodeResponse) }
743
+ def get_qr_code(account_id:, payment_link_code:, x_moov_version: nil, timeout_ms: nil, accept_header_override: nil, http_headers: nil)
727
744
  # get_qr_code - Retrieve the payment link encoded in a QR code.
728
745
  #
729
746
  # Use the `Accept` header to specify the format of the response. Supported formats are `application/json` and `image/png`.
@@ -774,6 +791,9 @@ module Moov
774
791
  req.headers.merge!(headers)
775
792
  req.options.timeout = timeout unless timeout.nil?
776
793
  Utils.configure_request_security(req, security)
794
+ http_headers&.each do |key, value|
795
+ req.headers[key.to_s] = value
796
+ end
777
797
 
778
798
  @sdk_configuration.hooks.before_request(
779
799
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -860,5 +880,5 @@ module Moov
860
880
 
861
881
  end
862
882
  end
863
- end
883
+ end
864
884
  end
@@ -39,8 +39,10 @@ module Moov
39
39
  end
40
40
 
41
41
 
42
- sig { params(account_id: ::String, x_moov_version: T.nilable(::String), source_id: T.nilable(::String), payment_method_type: T.nilable(Models::Components::PaymentMethodType), timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListPaymentMethodsResponse) }
43
- def list(account_id:, x_moov_version: nil, source_id: nil, payment_method_type: nil, timeout_ms: nil)
42
+
43
+
44
+ sig { params(account_id: ::String, x_moov_version: T.nilable(::String), source_id: T.nilable(::String), payment_method_type: T.nilable(Models::Components::PaymentMethodType), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ListPaymentMethodsResponse) }
45
+ def list(account_id:, x_moov_version: nil, source_id: nil, payment_method_type: nil, timeout_ms: nil, http_headers: nil)
44
46
  # list - Retrieve a list of payment methods associated with a Moov account. Read our [payment methods
45
47
  # guide](https://docs.moov.io/guides/money-movement/payment-methods/) to learn more.
46
48
  #
@@ -93,6 +95,9 @@ module Moov
93
95
  req.options.timeout = timeout unless timeout.nil?
94
96
  req.params = query_params
95
97
  Utils.configure_request_security(req, security)
98
+ http_headers&.each do |key, value|
99
+ req.headers[key.to_s] = value
100
+ end
96
101
 
97
102
  @sdk_configuration.hooks.before_request(
98
103
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -165,8 +170,8 @@ module Moov
165
170
  end
166
171
 
167
172
 
168
- sig { params(account_id: ::String, payment_method_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetPaymentMethodResponse) }
169
- def get(account_id:, payment_method_id:, x_moov_version: nil, timeout_ms: nil)
173
+ sig { params(account_id: ::String, payment_method_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::GetPaymentMethodResponse) }
174
+ def get(account_id:, payment_method_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
170
175
  # get - Get the specified payment method associated with a Moov account. Read our [payment methods guide](https://docs.moov.io/guides/money-movement/payment-methods/) to learn more.
171
176
  #
172
177
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
@@ -215,6 +220,9 @@ module Moov
215
220
  req.headers.merge!(headers)
216
221
  req.options.timeout = timeout unless timeout.nil?
217
222
  Utils.configure_request_security(req, security)
223
+ http_headers&.each do |key, value|
224
+ req.headers[key.to_s] = value
225
+ end
218
226
 
219
227
  @sdk_configuration.hooks.before_request(
220
228
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -285,5 +293,5 @@ module Moov
285
293
 
286
294
  end
287
295
  end
288
- end
296
+ end
289
297
  end
data/lib/moov/ping.rb CHANGED
@@ -39,8 +39,10 @@ module Moov
39
39
  end
40
40
 
41
41
 
42
- sig { params(x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::PingResponse) }
43
- def ping(x_moov_version: nil, timeout_ms: nil)
42
+
43
+
44
+ sig { params(x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::PingResponse) }
45
+ def ping(x_moov_version: nil, timeout_ms: nil, http_headers: nil)
44
46
  # ping - A simple endpoint to check auth.
45
47
  #
46
48
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
@@ -81,6 +83,9 @@ module Moov
81
83
  req.headers.merge!(headers)
82
84
  req.options.timeout = timeout unless timeout.nil?
83
85
  Utils.configure_request_security(req, security)
86
+ http_headers&.each do |key, value|
87
+ req.headers[key.to_s] = value
88
+ end
84
89
 
85
90
  @sdk_configuration.hooks.before_request(
86
91
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -142,5 +147,5 @@ module Moov
142
147
 
143
148
  end
144
149
  end
145
- end
150
+ end
146
151
  end