moov_ruby 0.3.7 → 0.3.9

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 (80) hide show
  1. checksums.yaml +4 -4
  2. data/lib/crystalline/metadata_fields.rb +9 -16
  3. data/lib/crystalline/types.rb +23 -18
  4. data/lib/moov/accounts.rb +1 -1
  5. data/lib/moov/apple_pay.rb +3 -3
  6. data/lib/moov/branding.rb +1 -1
  7. data/lib/moov/card_issuing.rb +1 -1
  8. data/lib/moov/cards.rb +6 -6
  9. data/lib/moov/images.rb +5 -6
  10. data/lib/moov/models/components/createevidencefilemultipart.rb +1 -1
  11. data/lib/moov/models/components/createinvoice.rb +2 -2
  12. data/lib/moov/models/components/createinvoicelineitem.rb +53 -0
  13. data/lib/moov/models/components/createinvoicelineitem.rbi +23 -0
  14. data/lib/moov/models/components/createinvoicelineitemoption.rb +49 -0
  15. data/lib/moov/models/components/createinvoicelineitemoption.rbi +21 -0
  16. data/lib/moov/models/components/createinvoicelineitemoptionvalidationerror.rb +45 -0
  17. data/lib/moov/models/components/createinvoicelineitemoptionvalidationerror.rbi +19 -0
  18. data/lib/moov/models/components/createinvoicelineitems.rb +33 -0
  19. data/lib/moov/models/components/{invoicelineitemsupdate.rbi → createinvoicelineitems.rbi} +2 -2
  20. data/lib/moov/models/components/{invoicelineitemsupdate.rb → createinvoicelineitemsupdate.rb} +3 -3
  21. data/lib/moov/models/components/createinvoicelineitemsupdate.rbi +13 -0
  22. data/lib/moov/models/components/createinvoicelineitemsvalidationerror.rb +33 -0
  23. data/lib/moov/models/components/createinvoicelineitemsvalidationerror.rbi +13 -0
  24. data/lib/moov/models/components/createinvoicelineitemvalidationerror.rb +49 -0
  25. data/lib/moov/models/components/createinvoicelineitemvalidationerror.rbi +21 -0
  26. data/lib/moov/models/components/createpaymentlink.rb +0 -1
  27. data/lib/moov/models/components/fileuploadrequestmultipart.rb +2 -2
  28. data/lib/moov/models/components/{imageuploadrequestmultipart_image.rb → image.rb} +1 -1
  29. data/lib/moov/models/components/{imageupdaterequestmultipart_image.rbi → image.rbi} +2 -2
  30. data/lib/moov/models/components/imageuploadrequestmultipart.rb +4 -4
  31. data/lib/moov/models/components/invoicelineitem.rb +10 -6
  32. data/lib/moov/models/components/invoicelineitem.rbi +4 -2
  33. data/lib/moov/models/components/invoicelineitemimagemetadata.rb +45 -0
  34. data/lib/moov/models/components/invoicelineitemimagemetadata.rbi +19 -0
  35. data/lib/moov/models/components/patchsweepconfig.rb +4 -4
  36. data/lib/moov/models/components/updateinvoice.rb +2 -2
  37. data/lib/moov/models/components/updaterepresentative.rb +2 -2
  38. data/lib/moov/models/components.rb +9 -13
  39. data/lib/moov/models/errors/createinvoiceerror.rb +2 -2
  40. data/lib/moov/models/operations/createapplepaysession_response.rb +1 -1
  41. data/lib/moov/models/operations/createpaymentlink_request.rb +1 -1
  42. data/lib/moov/models/operations/disablepaymentlink_request.rb +1 -1
  43. data/lib/moov/models/operations/getpaymentlink_request.rb +1 -1
  44. data/lib/moov/models/operations/getpaymentlinkqrcode_request.rb +1 -1
  45. data/lib/moov/models/operations/listpaymentlinks_request.rb +1 -1
  46. data/lib/moov/models/operations/updateimage_request.rb +5 -5
  47. data/lib/moov/models/operations/updateimage_request.rbi +2 -2
  48. data/lib/moov/models/operations/updatepaymentlink_request.rb +1 -1
  49. data/lib/moov/payment_links.rb +1 -1
  50. data/lib/moov/representatives.rb +2 -2
  51. data/lib/moov/sdk_hooks/hooks.rb +0 -1
  52. data/lib/moov/sdkconfiguration.rb +3 -3
  53. data/lib/moov/support.rb +1 -1
  54. data/lib/moov/sweeps.rb +1 -1
  55. data/lib/moov/transfers.rb +3 -3
  56. data/lib/moov/utils/forms.rb +1 -1
  57. data/lib/moov/wallets.rb +1 -1
  58. metadata +20 -28
  59. data/lib/moov/models/components/email.rb +0 -28
  60. data/lib/moov/models/components/email.rbi +0 -11
  61. data/lib/moov/models/components/email_union.rb +0 -28
  62. data/lib/moov/models/components/email_union.rbi +0 -11
  63. data/lib/moov/models/components/imageupdaterequestmultipart.rb +0 -39
  64. data/lib/moov/models/components/imageupdaterequestmultipart.rbi +0 -15
  65. data/lib/moov/models/components/imageupdaterequestmultipart_image.rb +0 -37
  66. data/lib/moov/models/components/imageuploadrequestmultipart_image.rbi +0 -15
  67. data/lib/moov/models/components/metadata.rb +0 -35
  68. data/lib/moov/models/components/metadata.rbi +0 -13
  69. data/lib/moov/models/components/pullpaymentmethodid.rb +0 -28
  70. data/lib/moov/models/components/pullpaymentmethodid.rbi +0 -11
  71. data/lib/moov/models/components/pullpaymentmethodid_union.rb +0 -28
  72. data/lib/moov/models/components/pullpaymentmethodid_union.rbi +0 -11
  73. data/lib/moov/models/components/pushpaymentmethodid.rb +0 -28
  74. data/lib/moov/models/components/pushpaymentmethodid.rbi +0 -11
  75. data/lib/moov/models/components/pushpaymentmethodid_union.rb +0 -28
  76. data/lib/moov/models/components/pushpaymentmethodid_union.rbi +0 -11
  77. data/lib/moov/models/components/statementdescriptor.rb +0 -28
  78. data/lib/moov/models/components/statementdescriptor.rbi +0 -11
  79. data/lib/moov/models/components/statementdescriptor_union.rb +0 -28
  80. data/lib/moov/models/components/statementdescriptor_union.rbi +0 -11
@@ -0,0 +1,21 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+
5
+ class Moov::Models::Components::CreateInvoiceLineItemValidationError
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class Moov::Models::Components::CreateInvoiceLineItemValidationError
11
+ def product_id(); end
12
+ def product_id=(str_); end
13
+ def name(); end
14
+ def name=(str_); end
15
+ def base_price(); end
16
+ def base_price=(str_); end
17
+ def options(); end
18
+ def options=(str_); end
19
+ def quantity(); end
20
+ def quantity=(str_); end
21
+ end
@@ -14,7 +14,6 @@ module Moov
14
14
  # `maxUses` will automatically be set to 1, as these are intended for a one-time disbursement
15
15
  # to a specific recipient.
16
16
  #
17
- # **Note:** The `payout` option is currently under development and is not yet available for general use.
18
17
  class CreatePaymentLink
19
18
  extend T::Sig
20
19
  include Crystalline::MetadataFields
@@ -8,14 +8,14 @@ module Moov
8
8
  module Models
9
9
  module Components
10
10
 
11
- # Request to upload a file for an account.
11
+
12
12
  class FileUploadRequestMultiPart
13
13
  extend T::Sig
14
14
  include Crystalline::MetadataFields
15
15
 
16
16
  # The file to be added. Valid types are `csv`, `png`, `jpeg`, `pdf`.
17
17
  field :file, Models::Components::FileUploadRequestMultiPartFile, { 'multipart_form': { 'file': true, 'field_name': 'file' } }
18
- # The file's purpose.
18
+ # The purpose of the file being uploaded.
19
19
  field :file_purpose, Models::Components::FilePurpose, { 'multipart_form': { 'field_name': 'filePurpose' } }
20
20
  # Additional metadata to be stored with the file, formatted as a JSON string.
21
21
  #
@@ -9,7 +9,7 @@ module Moov
9
9
  module Components
10
10
 
11
11
 
12
- class ImageUploadRequestMultiPartImage
12
+ class Image
13
13
  extend T::Sig
14
14
  include Crystalline::MetadataFields
15
15
 
@@ -2,12 +2,12 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
 
5
- class Moov::Models::Components::ImageUpdateRequestMultiPartImage
5
+ class Moov::Models::Components::Image
6
6
  extend ::Crystalline::MetadataFields::ClassMethods
7
7
  end
8
8
 
9
9
 
10
- class Moov::Models::Components::ImageUpdateRequestMultiPartImage
10
+ class Moov::Models::Components::Image
11
11
  def file_name(); end
12
12
  def file_name=(str_); end
13
13
  def content(); end
@@ -8,17 +8,17 @@ module Moov
8
8
  module Models
9
9
  module Components
10
10
 
11
- # Multipart request body for uploading an image with optional metadata.
11
+
12
12
  class ImageUploadRequestMultiPart
13
13
  extend T::Sig
14
14
  include Crystalline::MetadataFields
15
15
 
16
-
17
- field :image, Models::Components::ImageUploadRequestMultiPartImage, { 'multipart_form': { 'file': true, 'field_name': 'image' } }
16
+ # A PNG, JPEG, or WebP image file to upload.
17
+ field :image, Models::Components::Image, { 'multipart_form': { 'file': true, 'field_name': 'image' } }
18
18
  # Optional, json-encoded metadata to associate with the uploaded image.
19
19
  field :metadata, Crystalline::Nilable.new(Models::Components::ImageMetadataRequest), { 'multipart_form': { 'field_name': 'metadata', 'json': true } }
20
20
 
21
- sig { params(image: Models::Components::ImageUploadRequestMultiPartImage, metadata: T.nilable(Models::Components::ImageMetadataRequest)).void }
21
+ sig { params(image: Models::Components::Image, metadata: T.nilable(Models::Components::ImageMetadataRequest)).void }
22
22
  def initialize(image:, metadata: nil)
23
23
  @image = image
24
24
  @metadata = metadata
@@ -19,18 +19,21 @@ module Moov
19
19
  field :base_price, Models::Components::AmountDecimal, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('basePrice'), required: true } }
20
20
  # The quantity of this item.
21
21
  field :quantity, ::Integer, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('quantity'), required: true } }
22
- # Optional list of modifiers applied to this item (e.g., toppings, upgrades, customizations).
23
- field :options, Crystalline::Nilable.new(Crystalline::Array.new(Models::Components::InvoiceLineItemOption)), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('options') } }
24
22
  # Optional unique identifier associating the line item with a product.
25
23
  field :product_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('productID') } }
24
+ # Optional list of modifiers applied to this item (e.g., toppings, upgrades, customizations).
25
+ field :options, Crystalline::Nilable.new(Crystalline::Array.new(Models::Components::InvoiceLineItemOption)), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('options') } }
26
+ # Optional list of images associated with this line item.
27
+ field :images, Crystalline::Nilable.new(Crystalline::Array.new(Models::Components::InvoiceLineItemImageMetadata)), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('images') } }
26
28
 
27
- sig { params(name: ::String, base_price: Models::Components::AmountDecimal, quantity: ::Integer, options: T.nilable(T::Array[Models::Components::InvoiceLineItemOption]), product_id: T.nilable(::String)).void }
28
- def initialize(name:, base_price:, quantity:, options: nil, product_id: nil)
29
+ sig { params(name: ::String, base_price: Models::Components::AmountDecimal, quantity: ::Integer, product_id: T.nilable(::String), options: T.nilable(T::Array[Models::Components::InvoiceLineItemOption]), images: T.nilable(T::Array[Models::Components::InvoiceLineItemImageMetadata])).void }
30
+ def initialize(name:, base_price:, quantity:, product_id: nil, options: nil, images: nil)
29
31
  @name = name
30
32
  @base_price = base_price
31
33
  @quantity = quantity
32
- @options = options
33
34
  @product_id = product_id
35
+ @options = options
36
+ @images = images
34
37
  end
35
38
 
36
39
  sig { params(other: T.untyped).returns(T::Boolean) }
@@ -39,8 +42,9 @@ module Moov
39
42
  return false unless @name == other.name
40
43
  return false unless @base_price == other.base_price
41
44
  return false unless @quantity == other.quantity
42
- return false unless @options == other.options
43
45
  return false unless @product_id == other.product_id
46
+ return false unless @options == other.options
47
+ return false unless @images == other.images
44
48
  true
45
49
  end
46
50
  end
@@ -14,8 +14,10 @@ class Moov::Models::Components::InvoiceLineItem
14
14
  def base_price=(str_); end
15
15
  def quantity(); end
16
16
  def quantity=(str_); end
17
- def options(); end
18
- def options=(str_); end
19
17
  def product_id(); end
20
18
  def product_id=(str_); end
19
+ def options(); end
20
+ def options=(str_); end
21
+ def images(); end
22
+ def images=(str_); end
21
23
  end
@@ -0,0 +1,45 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module Moov
8
+ module Models
9
+ module Components
10
+
11
+
12
+ class InvoiceLineItemImageMetadata
13
+ extend T::Sig
14
+ include Crystalline::MetadataFields
15
+
16
+ # Unique identifier for a image resource.
17
+ field :image_id, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('imageID'), required: true } }
18
+ # The image's public URL.
19
+ field :link, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('link'), required: true } }
20
+ # A unique identifier for an image, used in public image links.
21
+ field :public_id, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('publicID'), required: true } }
22
+ # Alternative text for the image.
23
+ field :alt_text, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('altText') } }
24
+
25
+ sig { params(image_id: ::String, link: ::String, public_id: ::String, alt_text: T.nilable(::String)).void }
26
+ def initialize(image_id:, link:, public_id:, alt_text: nil)
27
+ @image_id = image_id
28
+ @link = link
29
+ @public_id = public_id
30
+ @alt_text = alt_text
31
+ end
32
+
33
+ sig { params(other: T.untyped).returns(T::Boolean) }
34
+ def ==(other)
35
+ return false unless other.is_a? self.class
36
+ return false unless @image_id == other.image_id
37
+ return false unless @link == other.link
38
+ return false unless @public_id == other.public_id
39
+ return false unless @alt_text == other.alt_text
40
+ true
41
+ end
42
+ end
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,19 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+
5
+ class Moov::Models::Components::InvoiceLineItemImageMetadata
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class Moov::Models::Components::InvoiceLineItemImageMetadata
11
+ def image_id(); end
12
+ def image_id=(str_); end
13
+ def link(); end
14
+ def link=(str_); end
15
+ def public_id(); end
16
+ def public_id=(str_); end
17
+ def alt_text(); end
18
+ def alt_text=(str_); end
19
+ end
@@ -16,15 +16,15 @@ module Moov
16
16
 
17
17
  field :status, Crystalline::Nilable.new(Models::Components::Status), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('status'), 'decoder': Utils.enum_from_string(Models::Components::Status, true) } }
18
18
 
19
- field :push_payment_method_id, Crystalline::Nilable.new(Crystalline::Union.new(::String, Models::Components::PushPaymentMethodID)), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('pushPaymentMethodID') } }
19
+ field :push_payment_method_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('pushPaymentMethodID') } }
20
20
 
21
- field :pull_payment_method_id, Crystalline::Nilable.new(Crystalline::Union.new(::String, Models::Components::PullPaymentMethodID)), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('pullPaymentMethodID') } }
21
+ field :pull_payment_method_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('pullPaymentMethodID') } }
22
22
 
23
- field :statement_descriptor, Crystalline::Nilable.new(Crystalline::Union.new(::String, Models::Components::StatementDescriptor)), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('statementDescriptor') } }
23
+ field :statement_descriptor, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('statementDescriptor') } }
24
24
 
25
25
  field :minimum_balance, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('minimumBalance') } }
26
26
 
27
- sig { params(status: T.nilable(Models::Components::Status), push_payment_method_id: T.nilable(T.any(::String, Models::Components::PushPaymentMethodID)), pull_payment_method_id: T.nilable(T.any(::String, Models::Components::PullPaymentMethodID)), statement_descriptor: T.nilable(T.any(::String, Models::Components::StatementDescriptor)), minimum_balance: T.nilable(::String)).void }
27
+ sig { params(status: T.nilable(Models::Components::Status), push_payment_method_id: T.nilable(::String), pull_payment_method_id: T.nilable(::String), statement_descriptor: T.nilable(::String), minimum_balance: T.nilable(::String)).void }
28
28
  def initialize(status: nil, push_payment_method_id: nil, pull_payment_method_id: nil, statement_descriptor: nil, minimum_balance: nil)
29
29
  @status = status
30
30
  @push_payment_method_id = push_payment_method_id
@@ -16,7 +16,7 @@ module Moov
16
16
 
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
- field :line_items, Crystalline::Nilable.new(Models::Components::InvoiceLineItemsUpdate), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('lineItems') } }
19
+ field :line_items, Crystalline::Nilable.new(Models::Components::CreateInvoiceLineItemsUpdate), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('lineItems') } }
20
20
  # Status can only be updated to `canceled` when the status is either `draft`, `unpaid`, or `overdue`.
21
21
  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
22
 
@@ -26,7 +26,7 @@ module Moov
26
26
 
27
27
  field :due_date, Crystalline::Nilable.new(::DateTime), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('dueDate'), 'decoder': Utils.datetime_from_iso_format(true) } }
28
28
 
29
- sig { params(description: T.nilable(::String), line_items: T.nilable(Models::Components::InvoiceLineItemsUpdate), status: T.nilable(Models::Components::InvoiceStatus), tax_amount: T.nilable(Models::Components::AmountDecimalUpdate), invoice_date: T.nilable(::DateTime), due_date: T.nilable(::DateTime)).void }
29
+ sig { params(description: T.nilable(::String), line_items: T.nilable(Models::Components::CreateInvoiceLineItemsUpdate), status: T.nilable(Models::Components::InvoiceStatus), tax_amount: T.nilable(Models::Components::AmountDecimalUpdate), invoice_date: T.nilable(::DateTime), due_date: T.nilable(::DateTime)).void }
30
30
  def initialize(description: nil, line_items: nil, status: nil, tax_amount: nil, invoice_date: nil, due_date: nil)
31
31
  @description = description
32
32
  @line_items = line_items
@@ -18,7 +18,7 @@ module Moov
18
18
 
19
19
  field :phone, Crystalline::Nilable.new(Models::Components::Phone), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('phone') } }
20
20
 
21
- field :email, Crystalline::Nilable.new(Crystalline::Union.new(::String, Models::Components::Email)), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('email') } }
21
+ field :email, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('email') } }
22
22
 
23
23
  field :address, Crystalline::Nilable.new(Models::Components::UpdateRepresentativeAddress), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('address') } }
24
24
 
@@ -28,7 +28,7 @@ module Moov
28
28
 
29
29
  field :responsibilities, Crystalline::Nilable.new(Models::Components::Responsibilities), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('responsibilities') } }
30
30
 
31
- sig { params(name: T.nilable(Models::Components::IndividualNameUpdate), phone: T.nilable(Models::Components::Phone), email: T.nilable(T.any(::String, Models::Components::Email)), address: T.nilable(Models::Components::UpdateRepresentativeAddress), birth_date: T.nilable(Models::Components::UpdateRepresentativeBirthDate), government_id: T.nilable(Models::Components::UpdateRepresentativeGovernmentID), responsibilities: T.nilable(Models::Components::Responsibilities)).void }
31
+ sig { params(name: T.nilable(Models::Components::IndividualNameUpdate), phone: T.nilable(Models::Components::Phone), email: T.nilable(::String), address: T.nilable(Models::Components::UpdateRepresentativeAddress), birth_date: T.nilable(Models::Components::UpdateRepresentativeBirthDate), government_id: T.nilable(Models::Components::UpdateRepresentativeGovernmentID), responsibilities: T.nilable(Models::Components::Responsibilities)).void }
32
32
  def initialize(name: nil, phone: nil, email: nil, address: nil, birth_date: nil, government_id: nil, responsibilities: nil)
33
33
  @name = name
34
34
  @phone = phone
@@ -160,6 +160,13 @@ module Moov
160
160
  autoload :CreateIndividualErrorSsn, 'moov/models/components/createindividualerror_ssn.rb'
161
161
  autoload :CreateIndividualProfile, 'moov/models/components/createindividualprofile.rb'
162
162
  autoload :CreateInvoice, 'moov/models/components/createinvoice.rb'
163
+ autoload :CreateInvoiceLineItem, 'moov/models/components/createinvoicelineitem.rb'
164
+ autoload :CreateInvoiceLineItemOption, 'moov/models/components/createinvoicelineitemoption.rb'
165
+ autoload :CreateInvoiceLineItemOptionValidationError, 'moov/models/components/createinvoicelineitemoptionvalidationerror.rb'
166
+ autoload :CreateInvoiceLineItemValidationError, 'moov/models/components/createinvoicelineitemvalidationerror.rb'
167
+ autoload :CreateInvoiceLineItems, 'moov/models/components/createinvoicelineitems.rb'
168
+ autoload :CreateInvoiceLineItemsUpdate, 'moov/models/components/createinvoicelineitemsupdate.rb'
169
+ autoload :CreateInvoiceLineItemsValidationError, 'moov/models/components/createinvoicelineitemsvalidationerror.rb'
163
170
  autoload :CreatePaymentLink, 'moov/models/components/createpaymentlink.rb'
164
171
  autoload :CreatePaymentLinkLineItem, 'moov/models/components/createpaymentlinklineitem.rb'
165
172
  autoload :CreatePaymentLinkLineItemOption, 'moov/models/components/createpaymentlinklineitemoption.rb'
@@ -254,10 +261,7 @@ module Moov
254
261
  autoload :ImageMetadata, 'moov/models/components/imagemetadata.rb'
255
262
  autoload :ImageMetadataRequest, 'moov/models/components/imagemetadatarequest.rb'
256
263
  autoload :ImageMetadataValidationError, 'moov/models/components/imagemetadatavalidationerror.rb'
257
- autoload :ImageUpdateRequestMultiPart, 'moov/models/components/imageupdaterequestmultipart.rb'
258
- autoload :ImageUpdateRequestMultiPartImage, 'moov/models/components/imageupdaterequestmultipart_image.rb'
259
264
  autoload :ImageUploadRequestMultiPart, 'moov/models/components/imageuploadrequestmultipart.rb'
260
- autoload :ImageUploadRequestMultiPartImage, 'moov/models/components/imageuploadrequestmultipart_image.rb'
261
265
  autoload :IncurredFee, 'moov/models/components/incurredfee.rb'
262
266
  autoload :IndividualName, 'moov/models/components/individualname.rb'
263
267
  autoload :IndividualNameError, 'moov/models/components/individualnameerror.rb'
@@ -273,11 +277,11 @@ module Moov
273
277
  autoload :InvoiceExternalPayment, 'moov/models/components/invoiceexternalpayment.rb'
274
278
  autoload :InvoiceExternalPaymentPaymentType, 'moov/models/components/invoiceexternalpayment_paymenttype.rb'
275
279
  autoload :InvoiceLineItem, 'moov/models/components/invoicelineitem.rb'
280
+ autoload :InvoiceLineItemImageMetadata, 'moov/models/components/invoicelineitemimagemetadata.rb'
276
281
  autoload :InvoiceLineItemOption, 'moov/models/components/invoicelineitemoption.rb'
277
282
  autoload :InvoiceLineItemOptionValidationError, 'moov/models/components/invoicelineitemoptionvalidationerror.rb'
278
283
  autoload :InvoiceLineItemValidationError, 'moov/models/components/invoicelineitemvalidationerror.rb'
279
284
  autoload :InvoiceLineItems, 'moov/models/components/invoicelineitems.rb'
280
- autoload :InvoiceLineItemsUpdate, 'moov/models/components/invoicelineitemsupdate.rb'
281
285
  autoload :InvoiceLineItemsValidationError, 'moov/models/components/invoicelineitemsvalidationerror.rb'
282
286
  autoload :InvoicePayment, 'moov/models/components/invoicepayment.rb'
283
287
  autoload :InvoiceStatus, 'moov/models/components/invoicestatus.rb'
@@ -578,20 +582,12 @@ module Moov
578
582
  autoload :CardAcquiring, 'moov/models/components/cardacquiring.rb'
579
583
  autoload :CardDetails, 'moov/models/components/carddetails.rb'
580
584
  autoload :CardPayment, 'moov/models/components/cardpayment.rb'
581
- autoload :Email, 'moov/models/components/email.rb'
582
- autoload :EmailUnion, 'moov/models/components/email_union.rb'
585
+ autoload :Image, 'moov/models/components/image.rb'
583
586
  autoload :Kind, 'moov/models/components/kind.rb'
584
587
  autoload :Logo, 'moov/models/components/logo.rb'
585
588
  autoload :Manual, 'moov/models/components/manual.rb'
586
- autoload :Metadata, 'moov/models/components/metadata.rb'
587
589
  autoload :Phone, 'moov/models/components/phone.rb'
588
- autoload :PullPaymentMethodID, 'moov/models/components/pullpaymentmethodid.rb'
589
- autoload :PullPaymentMethodIDUnion, 'moov/models/components/pullpaymentmethodid_union.rb'
590
- autoload :PushPaymentMethodID, 'moov/models/components/pushpaymentmethodid.rb'
591
- autoload :PushPaymentMethodIDUnion, 'moov/models/components/pushpaymentmethodid_union.rb'
592
590
  autoload :Responsibilities, 'moov/models/components/responsibilities.rb'
593
- autoload :StatementDescriptor, 'moov/models/components/statementdescriptor.rb'
594
- autoload :StatementDescriptorUnion, 'moov/models/components/statementdescriptor_union.rb'
595
591
  autoload :Status, 'moov/models/components/status.rb'
596
592
  autoload :TokenTypeHint, 'moov/models/components/token_type_hint.rb'
597
593
  autoload :Use, 'moov/models/components/use.rb'
@@ -18,7 +18,7 @@ module Moov
18
18
 
19
19
  field :description, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('description') } }
20
20
 
21
- field :line_items, Crystalline::Nilable.new(Models::Components::InvoiceLineItemsValidationError), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('lineItems') } }
21
+ field :line_items, Crystalline::Nilable.new(Models::Components::CreateInvoiceLineItemsValidationError), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('lineItems') } }
22
22
 
23
23
  field :invoice_date, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('invoiceDate') } }
24
24
 
@@ -28,7 +28,7 @@ module Moov
28
28
  # Raw HTTP response; suitable for custom response parsing
29
29
  field :raw_response, Crystalline::Nilable.new(::Faraday::Response), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('-') } }
30
30
 
31
- sig { params(customer_account_id: T.nilable(::String), description: T.nilable(::String), line_items: T.nilable(Models::Components::InvoiceLineItemsValidationError), invoice_date: T.nilable(::String), due_date: T.nilable(::String), tax_amount: T.nilable(Models::Components::AmountDecimalValidationError), raw_response: T.nilable(::Faraday::Response)).void }
31
+ sig { params(customer_account_id: T.nilable(::String), description: T.nilable(::String), line_items: T.nilable(Models::Components::CreateInvoiceLineItemsValidationError), invoice_date: T.nilable(::String), due_date: T.nilable(::String), tax_amount: T.nilable(Models::Components::AmountDecimalValidationError), raw_response: T.nilable(::Faraday::Response)).void }
32
32
  def initialize(customer_account_id: nil, description: nil, line_items: nil, invoice_date: nil, due_date: nil, tax_amount: nil, raw_response: nil)
33
33
  @customer_account_id = customer_account_id
34
34
  @description = description
@@ -21,7 +21,7 @@ module Moov
21
21
  field :raw_response, ::Faraday::Response
22
22
 
23
23
  field :headers, Crystalline::Hash.new(Symbol, Crystalline::Array.new(::String))
24
- # The request completed successfully.
24
+ # The request has succeeded.
25
25
  field :apple_pay_session, Crystalline::Nilable.new(::String)
26
26
 
27
27
  sig { params(content_type: ::String, status_code: ::Integer, raw_response: ::Faraday::Response, headers: T::Hash[Symbol, T::Array[::String]], apple_pay_session: T.nilable(::String)).void }
@@ -13,7 +13,7 @@ module Moov
13
13
  extend T::Sig
14
14
  include Crystalline::MetadataFields
15
15
 
16
-
16
+ # The merchant account ID.
17
17
  field :account_id, ::String, { 'path_param': { 'field_name': 'accountID', 'style': 'simple', 'explode': false } }
18
18
 
19
19
  field :create_payment_link, Models::Components::CreatePaymentLink, { 'request': { 'media_type': 'application/json' } }
@@ -13,7 +13,7 @@ module Moov
13
13
  extend T::Sig
14
14
  include Crystalline::MetadataFields
15
15
 
16
-
16
+ # The merchant account ID.
17
17
  field :account_id, ::String, { 'path_param': { 'field_name': 'accountID', 'style': 'simple', 'explode': false } }
18
18
 
19
19
  field :payment_link_code, ::String, { 'path_param': { 'field_name': 'paymentLinkCode', 'style': 'simple', 'explode': false } }
@@ -13,7 +13,7 @@ module Moov
13
13
  extend T::Sig
14
14
  include Crystalline::MetadataFields
15
15
 
16
-
16
+ # The merchant account ID.
17
17
  field :account_id, ::String, { 'path_param': { 'field_name': 'accountID', 'style': 'simple', 'explode': false } }
18
18
 
19
19
  field :payment_link_code, ::String, { 'path_param': { 'field_name': 'paymentLinkCode', 'style': 'simple', 'explode': false } }
@@ -13,7 +13,7 @@ module Moov
13
13
  extend T::Sig
14
14
  include Crystalline::MetadataFields
15
15
 
16
-
16
+ # The merchant account ID.
17
17
  field :account_id, ::String, { 'path_param': { 'field_name': 'accountID', 'style': 'simple', 'explode': false } }
18
18
 
19
19
  field :payment_link_code, ::String, { 'path_param': { 'field_name': 'paymentLinkCode', 'style': 'simple', 'explode': false } }
@@ -13,7 +13,7 @@ module Moov
13
13
  extend T::Sig
14
14
  include Crystalline::MetadataFields
15
15
 
16
-
16
+ # The merchant account ID.
17
17
  field :account_id, ::String, { 'path_param': { 'field_name': 'accountID', 'style': 'simple', 'explode': false } }
18
18
  # Specify an API version.
19
19
  #
@@ -18,7 +18,7 @@ module Moov
18
18
 
19
19
  field :image_id, ::String, { 'path_param': { 'field_name': 'imageID', 'style': 'simple', 'explode': false } }
20
20
 
21
- field :image_update_request_multi_part, Models::Components::ImageUpdateRequestMultiPart, { 'request': { 'media_type': 'multipart/form-data' } }
21
+ field :image_upload_request_multi_part, Models::Components::ImageUploadRequestMultiPart, { 'request': { 'media_type': 'multipart/form-data' } }
22
22
  # Specify an API version.
23
23
  #
24
24
  # API versioning follows the format `vYYYY.QQ.BB`, where
@@ -31,11 +31,11 @@ module Moov
31
31
  # When no version is specified, the API defaults to `v2024.01.00`.
32
32
  field :x_moov_version, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'X-Moov-Version', 'style': 'simple', 'explode': false } }
33
33
 
34
- sig { params(account_id: ::String, image_id: ::String, image_update_request_multi_part: Models::Components::ImageUpdateRequestMultiPart, x_moov_version: T.nilable(::String)).void }
35
- def initialize(account_id:, image_id:, image_update_request_multi_part:, x_moov_version: nil)
34
+ sig { params(account_id: ::String, image_id: ::String, image_upload_request_multi_part: Models::Components::ImageUploadRequestMultiPart, x_moov_version: T.nilable(::String)).void }
35
+ def initialize(account_id:, image_id:, image_upload_request_multi_part:, x_moov_version: nil)
36
36
  @account_id = account_id
37
37
  @image_id = image_id
38
- @image_update_request_multi_part = image_update_request_multi_part
38
+ @image_upload_request_multi_part = image_upload_request_multi_part
39
39
  @x_moov_version = x_moov_version
40
40
  end
41
41
 
@@ -44,7 +44,7 @@ module Moov
44
44
  return false unless other.is_a? self.class
45
45
  return false unless @account_id == other.account_id
46
46
  return false unless @image_id == other.image_id
47
- return false unless @image_update_request_multi_part == other.image_update_request_multi_part
47
+ return false unless @image_upload_request_multi_part == other.image_upload_request_multi_part
48
48
  return false unless @x_moov_version == other.x_moov_version
49
49
  true
50
50
  end
@@ -12,8 +12,8 @@ class Moov::Models::Operations::UpdateImageRequest
12
12
  def account_id=(str_); end
13
13
  def image_id(); end
14
14
  def image_id=(str_); end
15
- def image_update_request_multi_part(); end
16
- def image_update_request_multi_part=(str_); end
15
+ def image_upload_request_multi_part(); end
16
+ def image_upload_request_multi_part=(str_); end
17
17
  def x_moov_version(); end
18
18
  def x_moov_version=(str_); end
19
19
  end
@@ -13,7 +13,7 @@ module Moov
13
13
  extend T::Sig
14
14
  include Crystalline::MetadataFields
15
15
 
16
-
16
+ # The merchant account ID.
17
17
  field :account_id, ::String, { 'path_param': { 'field_name': 'accountID', 'style': 'simple', 'explode': false } }
18
18
 
19
19
  field :payment_link_code, ::String, { 'path_param': { 'field_name': 'paymentLinkCode', 'style': 'simple', 'explode': false } }
@@ -448,7 +448,7 @@ module Moov
448
448
  def update(update_payment_link:, account_id:, payment_link_code:, x_moov_version: nil, timeout_ms: nil)
449
449
  # update - Update a payment link.
450
450
  #
451
- # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
451
+ # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
452
452
  # you'll need to specify the `/accounts/{accountID}/transfers.write` scope.
453
453
  request = Models::Operations::UpdatePaymentLinkRequest.new(
454
454
  account_id: account_id,
@@ -581,7 +581,7 @@ module Moov
581
581
 
582
582
  sig { params(update_representative: Models::Components::UpdateRepresentative, account_id: ::String, representative_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::UpdateRepresentativeResponse) }
583
583
  def update(update_representative:, account_id:, representative_id:, x_moov_version: nil, timeout_ms: nil)
584
- # update - If a representative's information has changed you can patch the information associated with a specific representative ID.
584
+ # update - If a representative's information has changed you can patch the information associated with a specific representative ID.
585
585
  # Read our [business representatives guide](https://docs.moov.io/guides/accounts/requirements/business-representatives/) to learn more.
586
586
  #
587
587
  # When **can** profile data be updated:
@@ -596,7 +596,7 @@ module Moov
596
596
  #
597
597
  # If you need to update information in a locked state, please contact Moov support.
598
598
  #
599
- # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
599
+ # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
600
600
  # you'll need to specify the `/accounts/{accountID}/representatives.write` scope.
601
601
  request = Models::Operations::UpdateRepresentativeRequest.new(
602
602
  account_id: account_id,
@@ -6,7 +6,6 @@
6
6
  require_relative './registration'
7
7
  require_relative './types'
8
8
 
9
-
10
9
  module Moov
11
10
  module SDKHooks
12
11
  class Hooks
@@ -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.7'
99
- @gen_version = '2.760.2'
100
- @user_agent = 'speakeasy-sdk/ruby 0.3.7 2.760.2 latest moov_ruby'
98
+ @sdk_version = '0.3.9'
99
+ @gen_version = '2.770.0'
100
+ @user_agent = 'speakeasy-sdk/ruby 0.3.9 2.770.0 latest moov_ruby'
101
101
  end
102
102
 
103
103
  sig { returns([String, T::Hash[Symbol, String]]) }
data/lib/moov/support.rb CHANGED
@@ -457,7 +457,7 @@ module Moov
457
457
  def update_ticket(update_ticket:, account_id:, ticket_id:, x_moov_version: nil, timeout_ms: nil)
458
458
  # update_ticket - Updates a support ticket.
459
459
  #
460
- # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
460
+ # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
461
461
  # you'll need to specify the `/accounts/{accountID}/tickets.write` scope.
462
462
  #
463
463
  # If you're updating the ticket on behalf of another account, then you'll need to
data/lib/moov/sweeps.rb CHANGED
@@ -450,7 +450,7 @@ module Moov
450
450
  def update_config(patch_sweep_config:, account_id:, sweep_config_id:, x_moov_version: nil, timeout_ms: nil)
451
451
  # update_config - Update settings on a sweep config.
452
452
  #
453
- # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
453
+ # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
454
454
  # you'll need to specify the `/accounts/{accountID}/wallets.write` scope.
455
455
  request = Models::Operations::UpdateSweepConfigRequest.new(
456
456
  account_id: account_id,
@@ -696,11 +696,11 @@ module Moov
696
696
 
697
697
  sig { params(patch_transfer: Models::Components::PatchTransfer, transfer_id: ::String, account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::UpdateTransferResponse) }
698
698
  def update(patch_transfer:, transfer_id:, account_id:, x_moov_version: nil, timeout_ms: nil)
699
- # update - Update the metadata contained on a transfer.
699
+ # update - Update the metadata contained on a transfer.
700
700
  #
701
- # Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/overview/) to learn more.
701
+ # Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/overview/) to learn more.
702
702
  #
703
- # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
703
+ # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
704
704
  # you'll need to specify the `/accounts/{accountID}/transfers.write` scope.
705
705
  request = Models::Operations::UpdateTransferRequest.new(
706
706
  transfer_id: transfer_id,
@@ -104,7 +104,7 @@ module Moov
104
104
  end
105
105
  raise StandardError, 'invalid multipart/form-data file' if T.unsafe(file_name) == '' || T.unsafe(content).nil?
106
106
 
107
- form.append([field_name, [file_name, content]])
107
+ form.append(["#{field_name}[]", [file_name, content]])
108
108
  end
109
109
  else
110
110
  # Handle single file
data/lib/moov/wallets.rb CHANGED
@@ -471,7 +471,7 @@ module Moov
471
471
  #
472
472
  # Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to learn more.
473
473
  #
474
- # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
474
+ # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
475
475
  # you'll need to specify the `/accounts/{accountID}/wallets.write` scope.
476
476
  request = Models::Operations::UpdateWalletRequest.new(
477
477
  wallet_id: wallet_id,