moov_ruby 0.3.4 → 0.3.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dfa16e9f1c2f37e429a659ec02b50187fd2979ddc2cd64a50ff7d8d91e1e8d8f
4
- data.tar.gz: 8a181b2cf636862a88713378ea7393405cc5c2a50c148d8d7cab19c8519c5fc0
3
+ metadata.gz: 9382d5efd0c66ad3bc96d1cc221bdcdf6fae131609fe187a5ad836a966e5fb4b
4
+ data.tar.gz: 65f5c6417a0cd2aab9c8e2a2c53fb6c406315473e289ab0c703c7f231db33f19
5
5
  SHA512:
6
- metadata.gz: '0959204e57c95fed148e465cb6d6900e56c1224bb72db9a2e3115fe5d104c25e27ba591e985f73679203b12dd1135e0a1e36043e305ef3bc5f2bad03f4de2e53'
7
- data.tar.gz: 11fdebf94e506b43f00d7bc05eadea29cfa5827929bd72d25f34942539352f732629bb6c689d5098804a1aa1c2e46bc5214cd24ccb402493d895e33b62383e63
6
+ metadata.gz: '075804a9cf54bdd1d8924bd0a181460a2f726e188c460bd71f7be7b0bf72bd0f5ae20304521371463e75a1e35e755bed4a70a4a03d5090757837fe80bd4c1d54'
7
+ data.tar.gz: 3aa53b8f9da68254aa629cdc422ebe5ffab9e0dbc848dcd11cf8d624229e602d75a8e0c473b4b03a3cbfafecea1223e5e131bb104fc4190ff326c23108037389
@@ -447,9 +447,128 @@ module Moov
447
447
  end
448
448
 
449
449
 
450
+ sig { params(request: Models::Operations::ListFeeRevenueRequest, timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListFeeRevenueResponse) }
451
+ def list_fee_revenue(request:, timeout_ms: nil)
452
+ # list_fee_revenue - Used by a partner. Retrieve revenue generated from merchant fees.
453
+ #
454
+ # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
455
+ # you'll need to specify the `/accounts/{accountID}/profile.read` scope.
456
+ url, params = @sdk_configuration.get_server_details
457
+ base_url = Utils.template_url(url, params)
458
+ url = Utils.generate_url(
459
+ Models::Operations::ListFeeRevenueRequest,
460
+ base_url,
461
+ '/accounts/{accountID}/fee-revenue',
462
+ request,
463
+ @sdk_configuration.globals
464
+ )
465
+ headers = Utils.get_headers(request, @sdk_configuration.globals)
466
+ headers = T.cast(headers, T::Hash[String, String])
467
+ query_params = Utils.get_query_params(Models::Operations::ListFeeRevenueRequest, request, nil, @sdk_configuration.globals)
468
+ headers['Accept'] = 'application/json'
469
+ headers['user-agent'] = @sdk_configuration.user_agent
470
+
471
+ security = @sdk_configuration.security_source&.call
472
+
473
+ timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
474
+ timeout ||= @sdk_configuration.timeout
475
+
476
+
477
+ connection = @sdk_configuration.client
478
+
479
+ hook_ctx = SDKHooks::HookContext.new(
480
+ config: @sdk_configuration,
481
+ base_url: base_url,
482
+ oauth2_scopes: nil,
483
+ operation_id: 'listFeeRevenue',
484
+ security_source: @sdk_configuration.security_source
485
+ )
486
+
487
+ error = T.let(nil, T.nilable(StandardError))
488
+ http_response = T.let(nil, T.nilable(Faraday::Response))
489
+
490
+
491
+ begin
492
+ http_response = T.must(connection).get(url) do |req|
493
+ req.headers.merge!(headers)
494
+ req.options.timeout = timeout unless timeout.nil?
495
+ req.params = query_params
496
+ Utils.configure_request_security(req, security)
497
+
498
+ @sdk_configuration.hooks.before_request(
499
+ hook_ctx: SDKHooks::BeforeRequestHookContext.new(
500
+ hook_ctx: hook_ctx
501
+ ),
502
+ request: req
503
+ )
504
+ end
505
+ rescue StandardError => e
506
+ error = e
507
+ ensure
508
+ if http_response.nil? || Utils.error_status?(http_response.status)
509
+ http_response = @sdk_configuration.hooks.after_error(
510
+ error: error,
511
+ hook_ctx: SDKHooks::AfterErrorHookContext.new(
512
+ hook_ctx: hook_ctx
513
+ ),
514
+ response: http_response
515
+ )
516
+ else
517
+ http_response = @sdk_configuration.hooks.after_success(
518
+ hook_ctx: SDKHooks::AfterSuccessHookContext.new(
519
+ hook_ctx: hook_ctx
520
+ ),
521
+ response: http_response
522
+ )
523
+ end
524
+
525
+ if http_response.nil?
526
+ raise error if !error.nil?
527
+ raise 'no response'
528
+ end
529
+ end
530
+
531
+ content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
532
+ if Utils.match_status_code(http_response.status, ['200'])
533
+ if Utils.match_content_type(content_type, 'application/json')
534
+ http_response = @sdk_configuration.hooks.after_success(
535
+ hook_ctx: SDKHooks::AfterSuccessHookContext.new(
536
+ hook_ctx: hook_ctx
537
+ ),
538
+ response: http_response
539
+ )
540
+ response_data = http_response.env.response_body
541
+ obj = Crystalline.unmarshal_json(JSON.parse(response_data), Crystalline::Array.new(Models::Components::IncurredFee))
542
+ response = Models::Operations::ListFeeRevenueResponse.new(
543
+ status_code: http_response.status,
544
+ content_type: content_type,
545
+ raw_response: http_response,
546
+ headers: http_response.headers,
547
+ incurred_fees: T.unsafe(obj)
548
+ )
549
+
550
+ return response
551
+ else
552
+ raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
553
+ end
554
+ elsif Utils.match_status_code(http_response.status, ['401', '403', '429'])
555
+ raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
556
+ elsif Utils.match_status_code(http_response.status, ['500', '504'])
557
+ raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
558
+ elsif Utils.match_status_code(http_response.status, ['4XX'])
559
+ raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
560
+ elsif Utils.match_status_code(http_response.status, ['5XX'])
561
+ raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
562
+ else
563
+ raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received'
564
+
565
+ end
566
+ end
567
+
568
+
450
569
  sig { params(request: Models::Operations::RetrieveFeesRequest, timeout_ms: T.nilable(Integer)).returns(Models::Operations::RetrieveFeesResponse) }
451
570
  def retrieve_fees(request:, timeout_ms: nil)
452
- # retrieve_fees - Retrieve fees associated with an account.
571
+ # retrieve_fees - Retrieve fees assessed to an account.
453
572
  #
454
573
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
455
574
  # you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
@@ -0,0 +1,41 @@
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
+ # Instantly send funds to a bank account.
12
+ class InstantBankCreditPaymentMethod
13
+ extend T::Sig
14
+ include Crystalline::MetadataFields
15
+
16
+ # ID of the payment method.
17
+ field :payment_method_id, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('paymentMethodID'), required: true } }
18
+
19
+ field :payment_method_type, Models::Components::InstantBankCreditPaymentMethodPaymentMethodType, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('paymentMethodType'), required: true, 'decoder': Utils.enum_from_string(Models::Components::InstantBankCreditPaymentMethodPaymentMethodType, false) } }
20
+ # A bank account as contained within a payment method.
21
+ field :bank_account, Models::Components::PaymentMethodsBankAccount, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('bankAccount'), required: true } }
22
+
23
+ sig { params(payment_method_id: ::String, payment_method_type: Models::Components::InstantBankCreditPaymentMethodPaymentMethodType, bank_account: Models::Components::PaymentMethodsBankAccount).void }
24
+ def initialize(payment_method_id:, payment_method_type:, bank_account:)
25
+ @payment_method_id = payment_method_id
26
+ @payment_method_type = payment_method_type
27
+ @bank_account = bank_account
28
+ end
29
+
30
+ sig { params(other: T.untyped).returns(T::Boolean) }
31
+ def ==(other)
32
+ return false unless other.is_a? self.class
33
+ return false unless @payment_method_id == other.payment_method_id
34
+ return false unless @payment_method_type == other.payment_method_type
35
+ return false unless @bank_account == other.bank_account
36
+ true
37
+ end
38
+ end
39
+ end
40
+ end
41
+ end
@@ -0,0 +1,17 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+
5
+ class Moov::Models::Components::InstantBankCreditPaymentMethod
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class Moov::Models::Components::InstantBankCreditPaymentMethod
11
+ def payment_method_id(); end
12
+ def payment_method_id=(str_); end
13
+ def payment_method_type(); end
14
+ def payment_method_type=(str_); end
15
+ def bank_account(); end
16
+ def bank_account=(str_); end
17
+ end
@@ -0,0 +1,21 @@
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 InstantBankCreditPaymentMethodPaymentMethodType < T::Enum
13
+
14
+
15
+ enums do
16
+ INSTANT_BANK_CREDIT = new('instant-bank-credit')
17
+ end
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,11 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+
5
+ class Moov::Models::Components::InstantBankCreditPaymentMethodPaymentMethodType
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class Moov::Models::Components::InstantBankCreditPaymentMethodPaymentMethodType
11
+ end
@@ -24,6 +24,7 @@ module Moov
24
24
  PULL_FROM_CARD = new('pull-from-card')
25
25
  APPLE_PAY = new('apple-pay')
26
26
  CARD_PRESENT_PAYMENT = new('card-present-payment')
27
+ INSTANT_BANK_CREDIT = new('instant-bank-credit')
27
28
  end
28
29
  end
29
30
  end
@@ -14,11 +14,11 @@ module Moov
14
14
  include Crystalline::MetadataFields
15
15
 
16
16
 
17
- field :source_options, Crystalline::Nilable.new(Crystalline::Array.new(Crystalline::Union.new(Models::Components::MoovWalletPaymentMethod, Models::Components::AchDebitFundPaymentMethod, Models::Components::AchDebitCollectPaymentMethod, Models::Components::AchCreditStandardPaymentMethod, Models::Components::AchCreditSameDayPaymentMethod, Models::Components::RtpCreditPaymentMethod, Models::Components::CardPaymentPaymentMethod, Models::Components::PushToCardPaymentMethod, Models::Components::PullFromCardPaymentMethod, Models::Components::ApplePayPaymentMethod, Models::Components::CardPresentPaymentPaymentMethod))), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('sourceOptions') } }
17
+ field :source_options, Crystalline::Nilable.new(Crystalline::Array.new(Crystalline::Union.new(Models::Components::MoovWalletPaymentMethod, Models::Components::AchDebitFundPaymentMethod, Models::Components::AchDebitCollectPaymentMethod, Models::Components::AchCreditStandardPaymentMethod, Models::Components::AchCreditSameDayPaymentMethod, Models::Components::RtpCreditPaymentMethod, Models::Components::CardPaymentPaymentMethod, Models::Components::PushToCardPaymentMethod, Models::Components::PullFromCardPaymentMethod, Models::Components::ApplePayPaymentMethod, Models::Components::CardPresentPaymentPaymentMethod, Models::Components::InstantBankCreditPaymentMethod))), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('sourceOptions') } }
18
18
 
19
- field :destination_options, Crystalline::Nilable.new(Crystalline::Array.new(Crystalline::Union.new(Models::Components::MoovWalletPaymentMethod, Models::Components::AchDebitFundPaymentMethod, Models::Components::AchDebitCollectPaymentMethod, Models::Components::AchCreditStandardPaymentMethod, Models::Components::AchCreditSameDayPaymentMethod, Models::Components::RtpCreditPaymentMethod, Models::Components::CardPaymentPaymentMethod, Models::Components::PushToCardPaymentMethod, Models::Components::PullFromCardPaymentMethod, Models::Components::ApplePayPaymentMethod, Models::Components::CardPresentPaymentPaymentMethod))), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('destinationOptions') } }
19
+ field :destination_options, Crystalline::Nilable.new(Crystalline::Array.new(Crystalline::Union.new(Models::Components::MoovWalletPaymentMethod, Models::Components::AchDebitFundPaymentMethod, Models::Components::AchDebitCollectPaymentMethod, Models::Components::AchCreditStandardPaymentMethod, Models::Components::AchCreditSameDayPaymentMethod, Models::Components::RtpCreditPaymentMethod, Models::Components::CardPaymentPaymentMethod, Models::Components::PushToCardPaymentMethod, Models::Components::PullFromCardPaymentMethod, Models::Components::ApplePayPaymentMethod, Models::Components::CardPresentPaymentPaymentMethod, Models::Components::InstantBankCreditPaymentMethod))), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('destinationOptions') } }
20
20
 
21
- sig { params(source_options: T.nilable(T::Array[T.any(Models::Components::MoovWalletPaymentMethod, Models::Components::AchDebitFundPaymentMethod, Models::Components::AchDebitCollectPaymentMethod, Models::Components::AchCreditStandardPaymentMethod, Models::Components::AchCreditSameDayPaymentMethod, Models::Components::RtpCreditPaymentMethod, Models::Components::CardPaymentPaymentMethod, Models::Components::PushToCardPaymentMethod, Models::Components::PullFromCardPaymentMethod, Models::Components::ApplePayPaymentMethod, Models::Components::CardPresentPaymentPaymentMethod)]), destination_options: T.nilable(T::Array[T.any(Models::Components::MoovWalletPaymentMethod, Models::Components::AchDebitFundPaymentMethod, Models::Components::AchDebitCollectPaymentMethod, Models::Components::AchCreditStandardPaymentMethod, Models::Components::AchCreditSameDayPaymentMethod, Models::Components::RtpCreditPaymentMethod, Models::Components::CardPaymentPaymentMethod, Models::Components::PushToCardPaymentMethod, Models::Components::PullFromCardPaymentMethod, Models::Components::ApplePayPaymentMethod, Models::Components::CardPresentPaymentPaymentMethod)])).void }
21
+ sig { params(source_options: T.nilable(T::Array[T.any(Models::Components::MoovWalletPaymentMethod, Models::Components::AchDebitFundPaymentMethod, Models::Components::AchDebitCollectPaymentMethod, Models::Components::AchCreditStandardPaymentMethod, Models::Components::AchCreditSameDayPaymentMethod, Models::Components::RtpCreditPaymentMethod, Models::Components::CardPaymentPaymentMethod, Models::Components::PushToCardPaymentMethod, Models::Components::PullFromCardPaymentMethod, Models::Components::ApplePayPaymentMethod, Models::Components::CardPresentPaymentPaymentMethod, Models::Components::InstantBankCreditPaymentMethod)]), destination_options: T.nilable(T::Array[T.any(Models::Components::MoovWalletPaymentMethod, Models::Components::AchDebitFundPaymentMethod, Models::Components::AchDebitCollectPaymentMethod, Models::Components::AchCreditStandardPaymentMethod, Models::Components::AchCreditSameDayPaymentMethod, Models::Components::RtpCreditPaymentMethod, Models::Components::CardPaymentPaymentMethod, Models::Components::PushToCardPaymentMethod, Models::Components::PullFromCardPaymentMethod, Models::Components::ApplePayPaymentMethod, Models::Components::CardPresentPaymentPaymentMethod, Models::Components::InstantBankCreditPaymentMethod)])).void }
22
22
  def initialize(source_options: nil, destination_options: nil)
23
23
  @source_options = source_options
24
24
  @destination_options = destination_options
@@ -256,6 +256,8 @@ module Moov
256
256
  autoload :IndividualProfile, 'moov/models/components/individualprofile.rb'
257
257
  autoload :IndustryCodes, 'moov/models/components/industrycodes.rb'
258
258
  autoload :IndustryTaxonomy, 'moov/models/components/industrytaxonomy.rb'
259
+ autoload :InstantBankCreditPaymentMethod, 'moov/models/components/instantbankcreditpaymentmethod.rb'
260
+ autoload :InstantBankCreditPaymentMethodPaymentMethodType, 'moov/models/components/instantbankcreditpaymentmethod_paymentmethodtype.rb'
259
261
  autoload :InstantPaymentFees, 'moov/models/components/instantpaymentfees.rb'
260
262
  autoload :InstitutionsSearchResponse, 'moov/models/components/institutionssearchresponse.rb'
261
263
  autoload :IssuedCard, 'moov/models/components/issuedcard.rb'
@@ -22,9 +22,9 @@ module Moov
22
22
 
23
23
  field :headers, Crystalline::Hash.new(Symbol, Crystalline::Array.new(::String))
24
24
  # The request completed successfully.
25
- field :payment_method, Crystalline::Nilable.new(Crystalline::Union.new(Models::Components::MoovWalletPaymentMethod, Models::Components::AchDebitFundPaymentMethod, Models::Components::AchDebitCollectPaymentMethod, Models::Components::AchCreditStandardPaymentMethod, Models::Components::AchCreditSameDayPaymentMethod, Models::Components::RtpCreditPaymentMethod, Models::Components::CardPaymentPaymentMethod, Models::Components::PushToCardPaymentMethod, Models::Components::PullFromCardPaymentMethod, Models::Components::ApplePayPaymentMethod, Models::Components::CardPresentPaymentPaymentMethod))
25
+ field :payment_method, Crystalline::Nilable.new(Crystalline::Union.new(Models::Components::MoovWalletPaymentMethod, Models::Components::AchDebitFundPaymentMethod, Models::Components::AchDebitCollectPaymentMethod, Models::Components::AchCreditStandardPaymentMethod, Models::Components::AchCreditSameDayPaymentMethod, Models::Components::RtpCreditPaymentMethod, Models::Components::CardPaymentPaymentMethod, Models::Components::PushToCardPaymentMethod, Models::Components::PullFromCardPaymentMethod, Models::Components::ApplePayPaymentMethod, Models::Components::CardPresentPaymentPaymentMethod, Models::Components::InstantBankCreditPaymentMethod))
26
26
 
27
- sig { params(content_type: ::String, status_code: ::Integer, raw_response: ::Faraday::Response, headers: T::Hash[Symbol, T::Array[::String]], payment_method: T.nilable(T.any(Models::Components::MoovWalletPaymentMethod, Models::Components::AchDebitFundPaymentMethod, Models::Components::AchDebitCollectPaymentMethod, Models::Components::AchCreditStandardPaymentMethod, Models::Components::AchCreditSameDayPaymentMethod, Models::Components::RtpCreditPaymentMethod, Models::Components::CardPaymentPaymentMethod, Models::Components::PushToCardPaymentMethod, Models::Components::PullFromCardPaymentMethod, Models::Components::ApplePayPaymentMethod, Models::Components::CardPresentPaymentPaymentMethod))).void }
27
+ sig { params(content_type: ::String, status_code: ::Integer, raw_response: ::Faraday::Response, headers: T::Hash[Symbol, T::Array[::String]], payment_method: T.nilable(T.any(Models::Components::MoovWalletPaymentMethod, Models::Components::AchDebitFundPaymentMethod, Models::Components::AchDebitCollectPaymentMethod, Models::Components::AchCreditStandardPaymentMethod, Models::Components::AchCreditSameDayPaymentMethod, Models::Components::RtpCreditPaymentMethod, Models::Components::CardPaymentPaymentMethod, Models::Components::PushToCardPaymentMethod, Models::Components::PullFromCardPaymentMethod, Models::Components::ApplePayPaymentMethod, Models::Components::CardPresentPaymentPaymentMethod, Models::Components::InstantBankCreditPaymentMethod))).void }
28
28
  def initialize(content_type:, status_code:, raw_response:, headers:, payment_method: nil)
29
29
  @content_type = content_type
30
30
  @status_code = status_code
@@ -0,0 +1,62 @@
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
+
12
+ class ListFeeRevenueRequest
13
+ extend T::Sig
14
+ include Crystalline::MetadataFields
15
+
16
+ # The Partner's AccountID.
17
+ field :account_id, ::String, { 'path_param': { 'field_name': 'accountID', 'style': 'simple', 'explode': false } }
18
+ # Specify an API version.
19
+ #
20
+ # API versioning follows the format `vYYYY.QQ.BB`, where
21
+ # - `YYYY` is the year
22
+ # - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
23
+ # - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter.
24
+ # - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
25
+ #
26
+ # The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
27
+ # When no version is specified, the API defaults to `v2024.01.00`.
28
+ field :x_moov_version, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'X-Moov-Version', 'style': 'simple', 'explode': false } }
29
+
30
+ field :skip, Crystalline::Nilable.new(::Integer), { 'query_param': { 'field_name': 'skip', 'style': 'form', 'explode': false } }
31
+
32
+ field :count, Crystalline::Nilable.new(::Integer), { 'query_param': { 'field_name': 'count', 'style': 'form', 'explode': false } }
33
+ # Optional date-time to inclusively filter all fees created after this date-time.
34
+ field :start_date_time, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'startDateTime', 'style': 'form', 'explode': false } }
35
+ # Optional date-time to exclusively filter all fees created before this date-time.
36
+ field :end_date_time, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'endDateTime', 'style': 'form', 'explode': false } }
37
+
38
+ sig { params(account_id: ::String, x_moov_version: T.nilable(::String), skip: T.nilable(::Integer), count: T.nilable(::Integer), start_date_time: T.nilable(::String), end_date_time: T.nilable(::String)).void }
39
+ def initialize(account_id:, x_moov_version: nil, skip: nil, count: nil, start_date_time: nil, end_date_time: nil)
40
+ @account_id = account_id
41
+ @x_moov_version = x_moov_version
42
+ @skip = skip
43
+ @count = count
44
+ @start_date_time = start_date_time
45
+ @end_date_time = end_date_time
46
+ end
47
+
48
+ sig { params(other: T.untyped).returns(T::Boolean) }
49
+ def ==(other)
50
+ return false unless other.is_a? self.class
51
+ return false unless @account_id == other.account_id
52
+ return false unless @x_moov_version == other.x_moov_version
53
+ return false unless @skip == other.skip
54
+ return false unless @count == other.count
55
+ return false unless @start_date_time == other.start_date_time
56
+ return false unless @end_date_time == other.end_date_time
57
+ true
58
+ end
59
+ end
60
+ end
61
+ end
62
+ end
@@ -0,0 +1,23 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+
5
+ class Moov::Models::Operations::ListFeeRevenueRequest
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class Moov::Models::Operations::ListFeeRevenueRequest
11
+ def account_id(); end
12
+ def account_id=(str_); end
13
+ def x_moov_version(); end
14
+ def x_moov_version=(str_); end
15
+ def skip(); end
16
+ def skip=(str_); end
17
+ def count(); end
18
+ def count=(str_); end
19
+ def start_date_time(); end
20
+ def start_date_time=(str_); end
21
+ def end_date_time(); end
22
+ def end_date_time=(str_); end
23
+ end
@@ -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
+
12
+ class ListFeeRevenueResponse
13
+ extend T::Sig
14
+ include Crystalline::MetadataFields
15
+
16
+ # HTTP response content type for this operation
17
+ field :content_type, ::String
18
+ # HTTP response status code for this operation
19
+ field :status_code, ::Integer
20
+ # Raw HTTP response; suitable for custom response parsing
21
+ field :raw_response, ::Faraday::Response
22
+
23
+ field :headers, Crystalline::Hash.new(Symbol, Crystalline::Array.new(::String))
24
+ # The request completed successfully.
25
+ field :incurred_fees, Crystalline::Nilable.new(Crystalline::Array.new(Models::Components::IncurredFee))
26
+
27
+ sig { params(content_type: ::String, status_code: ::Integer, raw_response: ::Faraday::Response, headers: T::Hash[Symbol, T::Array[::String]], incurred_fees: T.nilable(T::Array[Models::Components::IncurredFee])).void }
28
+ def initialize(content_type:, status_code:, raw_response:, headers:, incurred_fees: nil)
29
+ @content_type = content_type
30
+ @status_code = status_code
31
+ @raw_response = raw_response
32
+ @headers = headers
33
+ @incurred_fees = incurred_fees
34
+ end
35
+
36
+ sig { params(other: T.untyped).returns(T::Boolean) }
37
+ def ==(other)
38
+ return false unless other.is_a? self.class
39
+ return false unless @content_type == other.content_type
40
+ return false unless @status_code == other.status_code
41
+ return false unless @raw_response == other.raw_response
42
+ return false unless @headers == other.headers
43
+ return false unless @incurred_fees == other.incurred_fees
44
+ true
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,21 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+
5
+ class Moov::Models::Operations::ListFeeRevenueResponse
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class Moov::Models::Operations::ListFeeRevenueResponse
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
+ def incurred_fees(); end
20
+ def incurred_fees=(str_); end
21
+ end
@@ -22,9 +22,9 @@ module Moov
22
22
 
23
23
  field :headers, Crystalline::Hash.new(Symbol, Crystalline::Array.new(::String))
24
24
  # The request completed successfully.
25
- field :payment_methods, Crystalline::Nilable.new(Crystalline::Array.new(Crystalline::Union.new(Models::Components::MoovWalletPaymentMethod, Models::Components::AchDebitFundPaymentMethod, Models::Components::AchDebitCollectPaymentMethod, Models::Components::AchCreditStandardPaymentMethod, Models::Components::AchCreditSameDayPaymentMethod, Models::Components::RtpCreditPaymentMethod, Models::Components::CardPaymentPaymentMethod, Models::Components::PushToCardPaymentMethod, Models::Components::PullFromCardPaymentMethod, Models::Components::ApplePayPaymentMethod, Models::Components::CardPresentPaymentPaymentMethod)))
25
+ field :payment_methods, Crystalline::Nilable.new(Crystalline::Array.new(Crystalline::Union.new(Models::Components::MoovWalletPaymentMethod, Models::Components::AchDebitFundPaymentMethod, Models::Components::AchDebitCollectPaymentMethod, Models::Components::AchCreditStandardPaymentMethod, Models::Components::AchCreditSameDayPaymentMethod, Models::Components::RtpCreditPaymentMethod, Models::Components::CardPaymentPaymentMethod, Models::Components::PushToCardPaymentMethod, Models::Components::PullFromCardPaymentMethod, Models::Components::ApplePayPaymentMethod, Models::Components::CardPresentPaymentPaymentMethod, Models::Components::InstantBankCreditPaymentMethod)))
26
26
 
27
- sig { params(content_type: ::String, status_code: ::Integer, raw_response: ::Faraday::Response, headers: T::Hash[Symbol, T::Array[::String]], payment_methods: T.nilable(T::Array[T.any(Models::Components::MoovWalletPaymentMethod, Models::Components::AchDebitFundPaymentMethod, Models::Components::AchDebitCollectPaymentMethod, Models::Components::AchCreditStandardPaymentMethod, Models::Components::AchCreditSameDayPaymentMethod, Models::Components::RtpCreditPaymentMethod, Models::Components::CardPaymentPaymentMethod, Models::Components::PushToCardPaymentMethod, Models::Components::PullFromCardPaymentMethod, Models::Components::ApplePayPaymentMethod, Models::Components::CardPresentPaymentPaymentMethod)])).void }
27
+ sig { params(content_type: ::String, status_code: ::Integer, raw_response: ::Faraday::Response, headers: T::Hash[Symbol, T::Array[::String]], payment_methods: T.nilable(T::Array[T.any(Models::Components::MoovWalletPaymentMethod, Models::Components::AchDebitFundPaymentMethod, Models::Components::AchDebitCollectPaymentMethod, Models::Components::AchCreditStandardPaymentMethod, Models::Components::AchCreditSameDayPaymentMethod, Models::Components::RtpCreditPaymentMethod, Models::Components::CardPaymentPaymentMethod, Models::Components::PushToCardPaymentMethod, Models::Components::PullFromCardPaymentMethod, Models::Components::ApplePayPaymentMethod, Models::Components::CardPresentPaymentPaymentMethod, Models::Components::InstantBankCreditPaymentMethod)])).void }
28
28
  def initialize(content_type:, status_code:, raw_response:, headers:, payment_methods: nil)
29
29
  @content_type = content_type
30
30
  @status_code = status_code
@@ -205,6 +205,8 @@ module Moov
205
205
  autoload :ListFeePlanAgreementsResponse, 'moov/models/operations/listfeeplanagreements_response.rb'
206
206
  autoload :ListFeePlansRequest, 'moov/models/operations/listfeeplans_request.rb'
207
207
  autoload :ListFeePlansResponse, 'moov/models/operations/listfeeplans_response.rb'
208
+ autoload :ListFeeRevenueRequest, 'moov/models/operations/listfeerevenue_request.rb'
209
+ autoload :ListFeeRevenueResponse, 'moov/models/operations/listfeerevenue_response.rb'
208
210
  autoload :ListFeesFetchRequest, 'moov/models/operations/listfeesfetch_request.rb'
209
211
  autoload :ListFeesFetchResponse, 'moov/models/operations/listfeesfetch_response.rb'
210
212
  autoload :ListFilesRequest, 'moov/models/operations/listfiles_request.rb'
@@ -137,7 +137,7 @@ module Moov
137
137
  response: http_response
138
138
  )
139
139
  response_data = http_response.env.response_body
140
- obj = Crystalline.unmarshal_json(JSON.parse(response_data), Crystalline::Array.new(Crystalline::Union.new(Models::Components::MoovWalletPaymentMethod, Models::Components::AchDebitFundPaymentMethod, Models::Components::AchDebitCollectPaymentMethod, Models::Components::AchCreditStandardPaymentMethod, Models::Components::AchCreditSameDayPaymentMethod, Models::Components::RtpCreditPaymentMethod, Models::Components::CardPaymentPaymentMethod, Models::Components::PushToCardPaymentMethod, Models::Components::PullFromCardPaymentMethod, Models::Components::ApplePayPaymentMethod, Models::Components::CardPresentPaymentPaymentMethod)))
140
+ obj = Crystalline.unmarshal_json(JSON.parse(response_data), Crystalline::Array.new(Crystalline::Union.new(Models::Components::MoovWalletPaymentMethod, Models::Components::AchDebitFundPaymentMethod, Models::Components::AchDebitCollectPaymentMethod, Models::Components::AchCreditStandardPaymentMethod, Models::Components::AchCreditSameDayPaymentMethod, Models::Components::RtpCreditPaymentMethod, Models::Components::CardPaymentPaymentMethod, Models::Components::PushToCardPaymentMethod, Models::Components::PullFromCardPaymentMethod, Models::Components::ApplePayPaymentMethod, Models::Components::CardPresentPaymentPaymentMethod, Models::Components::InstantBankCreditPaymentMethod)))
141
141
  response = Models::Operations::ListPaymentMethodsResponse.new(
142
142
  status_code: http_response.status,
143
143
  content_type: content_type,
@@ -259,7 +259,7 @@ module Moov
259
259
  response: http_response
260
260
  )
261
261
  response_data = http_response.env.response_body
262
- obj = Crystalline.unmarshal_json(JSON.parse(response_data), Crystalline::Union.new(Models::Components::MoovWalletPaymentMethod, Models::Components::AchDebitFundPaymentMethod, Models::Components::AchDebitCollectPaymentMethod, Models::Components::AchCreditStandardPaymentMethod, Models::Components::AchCreditSameDayPaymentMethod, Models::Components::RtpCreditPaymentMethod, Models::Components::CardPaymentPaymentMethod, Models::Components::PushToCardPaymentMethod, Models::Components::PullFromCardPaymentMethod, Models::Components::ApplePayPaymentMethod, Models::Components::CardPresentPaymentPaymentMethod))
262
+ obj = Crystalline.unmarshal_json(JSON.parse(response_data), Crystalline::Union.new(Models::Components::MoovWalletPaymentMethod, Models::Components::AchDebitFundPaymentMethod, Models::Components::AchDebitCollectPaymentMethod, Models::Components::AchCreditStandardPaymentMethod, Models::Components::AchCreditSameDayPaymentMethod, Models::Components::RtpCreditPaymentMethod, Models::Components::CardPaymentPaymentMethod, Models::Components::PushToCardPaymentMethod, Models::Components::PullFromCardPaymentMethod, Models::Components::ApplePayPaymentMethod, Models::Components::CardPresentPaymentPaymentMethod, Models::Components::InstantBankCreditPaymentMethod))
263
263
  response = Models::Operations::GetPaymentMethodResponse.new(
264
264
  status_code: http_response.status,
265
265
  content_type: content_type,
@@ -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.4'
98
+ @sdk_version = '0.3.5'
99
99
  @gen_version = '2.755.9'
100
- @user_agent = 'speakeasy-sdk/ruby 0.3.4 2.755.9 latest moov_ruby'
100
+ @user_agent = 'speakeasy-sdk/ruby 0.3.5 2.755.9 latest moov_ruby'
101
101
  end
102
102
 
103
103
  sig { returns([String, T::Hash[Symbol, String]]) }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moov_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Speakeasy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-11-19 00:00:00.000000000 Z
11
+ date: 2025-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base64
@@ -733,6 +733,10 @@ files:
733
733
  - lib/moov/models/components/industrycodes.rbi
734
734
  - lib/moov/models/components/industrytaxonomy.rb
735
735
  - lib/moov/models/components/industrytaxonomy.rbi
736
+ - lib/moov/models/components/instantbankcreditpaymentmethod.rb
737
+ - lib/moov/models/components/instantbankcreditpaymentmethod.rbi
738
+ - lib/moov/models/components/instantbankcreditpaymentmethod_paymentmethodtype.rb
739
+ - lib/moov/models/components/instantbankcreditpaymentmethod_paymentmethodtype.rbi
736
740
  - lib/moov/models/components/instantpaymentfees.rb
737
741
  - lib/moov/models/components/instantpaymentfees.rbi
738
742
  - lib/moov/models/components/institutionssearchresponse.rb
@@ -1839,6 +1843,10 @@ files:
1839
1843
  - lib/moov/models/operations/listfeeplans_request.rbi
1840
1844
  - lib/moov/models/operations/listfeeplans_response.rb
1841
1845
  - lib/moov/models/operations/listfeeplans_response.rbi
1846
+ - lib/moov/models/operations/listfeerevenue_request.rb
1847
+ - lib/moov/models/operations/listfeerevenue_request.rbi
1848
+ - lib/moov/models/operations/listfeerevenue_response.rb
1849
+ - lib/moov/models/operations/listfeerevenue_response.rbi
1842
1850
  - lib/moov/models/operations/listfeesfetch_request.rb
1843
1851
  - lib/moov/models/operations/listfeesfetch_request.rbi
1844
1852
  - lib/moov/models/operations/listfeesfetch_response.rb