moov_ruby 26.4.1 → 26.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0730013675eb0919f88c6903f2c428af6746259c5f38f2b55de32dc7fd7834ca
4
- data.tar.gz: b85bacf05317fdf10abee22ad5bfbedaa78a2c0519ad7330ff4b27156aeb7fa9
3
+ metadata.gz: f4d75868fdb0359621fa1dd98865f0c42321d87b624c293529de7c6da32a1989
4
+ data.tar.gz: e7f70ffb32f9f3266457bb807c87f95ea0a9afc1556333e98008beb29f7767c9
5
5
  SHA512:
6
- metadata.gz: 8eb75292b6868f0eb6bb37a59db441827229139f6dd99364084d4a32382cb9ff46b0a8844c3c130d572850b74b9221f121dee0a406aa3ca2a8f9bc590f3567e1
7
- data.tar.gz: 94e8c5a96dc65b72221f5c1176d9f9951158490b8b6e5afbb7a232bc61521fe8c1ae2de20a474144bcf0aeef221f89a5974f3c245b25fd3ed4c24277122109a7
6
+ metadata.gz: 7942f19c0a01b54a132c5bbd371c929fe6b28e48d4e7de2b642dfa6c2a5fec10a48c8efa7288af763abc2b8def75a43cfa4fdd8e769e15aa15c2e7cd9522a487
7
+ data.tar.gz: fb55c7eda4dd60eab1d83e5e0bd12cf56b30fb2c6e72f02d3896fcf8cb0b0af6e176904bd19c9143cc3e9b93c6797e93d94df0b9dfc7fdf6dcd5bb4a4008b0aa
@@ -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 Components
10
+ # Additional metadata to be stored with the file.
11
+ class FileUploadMetadata
12
+ extend T::Sig
13
+ include Crystalline::MetadataFields
14
+
15
+ # The representative ID that the file is for. Required when filePurpose is `representativeVerification`.
16
+ field :representative_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('representative_id') } }
17
+ # Comments or notes about the file.
18
+ field :comment, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('comment') } }
19
+
20
+ sig { params(representative_id: T.nilable(::String), comment: T.nilable(::String)).void }
21
+ def initialize(representative_id: nil, comment: nil)
22
+ @representative_id = representative_id
23
+ @comment = comment
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 @representative_id == other.representative_id
30
+ return false unless @comment == other.comment
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::Components::FileUploadMetadata
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class Moov::Models::Components::FileUploadMetadata
11
+ def representative_id(); end
12
+ def representative_id=(str_); end
13
+ def comment(); end
14
+ def comment=(str_); end
15
+ end
@@ -12,16 +12,14 @@ module Moov
12
12
  extend T::Sig
13
13
  include Crystalline::MetadataFields
14
14
 
15
- # The file to be added. Valid types are `csv`, `png`, `jpeg`, `pdf`.
15
+ # The file to upload. Valid types are `csv`, `png`, `jpeg`, `pdf`.
16
16
  field :file, Models::Components::FileUploadRequestMultiPartFile, { 'multipart_form': { 'file': true, 'field_name': 'file' } }
17
17
  # The purpose of the file being uploaded.
18
18
  field :file_purpose, Models::Components::FilePurpose, { 'multipart_form': { 'field_name': 'filePurpose' } }
19
- # Additional metadata to be stored with the file, formatted as a JSON string.
20
- #
21
- # Valid keys are `representative_id`, `comment`, `requirement_id`, `error_code`.
22
- field :metadata, Crystalline::Nilable.new(::String), { 'multipart_form': { 'field_name': 'metadata' } }
19
+ # Additional metadata to be stored with the file.
20
+ field :metadata, Crystalline::Nilable.new(Models::Components::FileUploadMetadata), { 'multipart_form': { 'field_name': 'metadata', 'json': true } }
23
21
 
24
- sig { params(file: Models::Components::FileUploadRequestMultiPartFile, file_purpose: Models::Components::FilePurpose, metadata: T.nilable(::String)).void }
22
+ sig { params(file: Models::Components::FileUploadRequestMultiPartFile, file_purpose: Models::Components::FilePurpose, metadata: T.nilable(Models::Components::FileUploadMetadata)).void }
25
23
  def initialize(file:, file_purpose:, metadata: nil)
26
24
  @file = file
27
25
  @file_purpose = file_purpose
@@ -17,10 +17,13 @@ module Moov
17
17
 
18
18
  field :account_id, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('accountID'), required: true } }
19
19
 
20
- sig { params(bank_account_id: ::String, account_id: ::String).void }
21
- def initialize(bank_account_id:, account_id:)
20
+ field :status, Models::Components::BankAccountStatus, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('status'), required: true, 'decoder': ::Moov::Utils.enum_from_string(Models::Components::BankAccountStatus, false) } }
21
+
22
+ sig { params(bank_account_id: ::String, account_id: ::String, status: Models::Components::BankAccountStatus).void }
23
+ def initialize(bank_account_id:, account_id:, status:)
22
24
  @bank_account_id = bank_account_id
23
25
  @account_id = account_id
26
+ @status = status
24
27
  end
25
28
 
26
29
  sig { params(other: T.untyped).returns(T::Boolean) }
@@ -28,6 +31,7 @@ module Moov
28
31
  return false unless other.is_a? self.class
29
32
  return false unless @bank_account_id == other.bank_account_id
30
33
  return false unless @account_id == other.account_id
34
+ return false unless @status == other.status
31
35
  true
32
36
  end
33
37
  end
@@ -12,4 +12,6 @@ class Moov::Models::Components::WebhookDataBankAccountCreated
12
12
  def bank_account_id=(str_); end
13
13
  def account_id(); end
14
14
  def account_id=(str_); end
15
+ def status(); end
16
+ def status=(str_); end
15
17
  end
@@ -276,6 +276,7 @@ module Moov
276
276
  autoload :FileDetails, 'moov/models/components/filedetails.rb'
277
277
  autoload :FilePurpose, 'moov/models/components/filepurpose.rb'
278
278
  autoload :FileStatus, 'moov/models/components/filestatus.rb'
279
+ autoload :FileUploadMetadata, 'moov/models/components/fileuploadmetadata.rb'
279
280
  autoload :FileUploadRequestMultiPart, 'moov/models/components/fileuploadrequestmultipart.rb'
280
281
  autoload :FileUploadRequestMultiPartFile, 'moov/models/components/fileuploadrequestmultipart_file.rb'
281
282
  autoload :FileUploadValidationErrorFile, 'moov/models/components/fileuploadvalidationerror_file.rb'
@@ -88,9 +88,9 @@ module Moov
88
88
  end
89
89
  @language = 'ruby'
90
90
  @openapi_doc_version = 'v2026.04.00'
91
- @sdk_version = '26.4.1'
92
- @gen_version = '2.881.4'
93
- @user_agent = 'speakeasy-sdk/ruby 26.4.1 2.881.4 v2026.04.00 moov_ruby'
91
+ @sdk_version = '26.4.2'
92
+ @gen_version = '2.881.17'
93
+ @user_agent = 'speakeasy-sdk/ruby 26.4.2 2.881.17 v2026.04.00 moov_ruby'
94
94
  end
95
95
 
96
96
  sig { returns([String, T::Hash[Symbol, String]]) }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moov_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 26.4.1
4
+ version: 26.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Speakeasy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-04-25 00:00:00.000000000 Z
11
+ date: 2026-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base64
@@ -820,6 +820,8 @@ files:
820
820
  - lib/moov/models/components/filepurpose.rbi
821
821
  - lib/moov/models/components/filestatus.rb
822
822
  - lib/moov/models/components/filestatus.rbi
823
+ - lib/moov/models/components/fileuploadmetadata.rb
824
+ - lib/moov/models/components/fileuploadmetadata.rbi
823
825
  - lib/moov/models/components/fileuploadrequestmultipart.rb
824
826
  - lib/moov/models/components/fileuploadrequestmultipart.rbi
825
827
  - lib/moov/models/components/fileuploadrequestmultipart_file.rb