moov_ruby 0.1.28 → 0.1.30

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: 7cd8d3e9925d9e111a64ebe24d15ac393b2d17ba7633a2de013261f43b19d6c1
4
- data.tar.gz: 6375a4bf592c7c29d2803115a1f26989b8420d35cea2f0c989e7aa2d393b930f
3
+ metadata.gz: 2e4ec3490c23a708f3bad4f801a03c0235999fdc827d405a20174f3d0b6eea03
4
+ data.tar.gz: aa3e2394ccc5ebf6cf938f723d023c921c34c4425ab3a79a00bfb0a2fcfaa872
5
5
  SHA512:
6
- metadata.gz: d0f80fcca1be819bcc94e8f7b0c7954570c41d744e8049466789c10782797e61c5ad1bf9d39a62ecf26d36ccadbe74ace1b89250297d5f9ef53ed03c66861807
7
- data.tar.gz: 0650053a24ba1df39d0ae303b66a887a18ad902ce66ccbb1f8508dadc98775505b6251f7337a142540f81470c503d46b2aeb5859c9ff28f512244a48229706ff
6
+ metadata.gz: c91b64042088a54f3343d5cc41422a09d0d02be09436099dee3b0fbfb1cceb8a1e7cff864e6d74a55b07598fdaf8562606a5707022fd4835b7da3135a0eda860
7
+ data.tar.gz: 8821161384df5920293075b8885cce1d6617c6510c317b9095ea3a3f4a54d19b28cb2860058ee6cf5100129405b4443ec9c1e3aa1a4e1e9eae913553ca9bf148
@@ -13,6 +13,8 @@ module Moov
13
13
  extend T::Sig
14
14
  include Crystalline::MetadataFields
15
15
 
16
+ # Defines the volume ranges for tiered pricing models.
17
+ field :volume_ranges, Crystalline::Array.new(Models::Components::VolumeRange), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('volumeRanges'), required: true } }
16
18
  # A fixed fee that is applied to the amount of each transaction in the `fixed` and `blended` fee models.
17
19
  field :fixed_amount, Crystalline::Nilable.new(Models::Components::AmountDecimal), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('fixedAmount') } }
18
20
  # A percentage fee that is applied to the amount of each transaction in the `blended` fee model, expressed as a decimal.
@@ -24,8 +26,9 @@ module Moov
24
26
  # Specifies the maximum allowable spending for a single transaction, working as a transaction ceiling.
25
27
  field :max_per_transaction, Crystalline::Nilable.new(Models::Components::AmountDecimal), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('maxPerTransaction') } }
26
28
 
27
- sig { params(fixed_amount: T.nilable(Models::Components::AmountDecimal), variable_rate: T.nilable(::String), min_per_transaction: T.nilable(Models::Components::AmountDecimal), max_per_transaction: T.nilable(Models::Components::AmountDecimal)).void }
28
- def initialize(fixed_amount: nil, variable_rate: nil, min_per_transaction: nil, max_per_transaction: nil)
29
+ sig { params(volume_ranges: T::Array[Models::Components::VolumeRange], fixed_amount: T.nilable(Models::Components::AmountDecimal), variable_rate: T.nilable(::String), min_per_transaction: T.nilable(Models::Components::AmountDecimal), max_per_transaction: T.nilable(Models::Components::AmountDecimal)).void }
30
+ def initialize(volume_ranges:, fixed_amount: nil, variable_rate: nil, min_per_transaction: nil, max_per_transaction: nil)
31
+ @volume_ranges = volume_ranges
29
32
  @fixed_amount = fixed_amount
30
33
  @variable_rate = variable_rate
31
34
  @min_per_transaction = min_per_transaction
@@ -35,6 +38,7 @@ module Moov
35
38
  sig { params(other: T.untyped).returns(T::Boolean) }
36
39
  def ==(other)
37
40
  return false unless other.is_a? self.class
41
+ return false unless @volume_ranges == other.volume_ranges
38
42
  return false unless @fixed_amount == other.fixed_amount
39
43
  return false unless @variable_rate == other.variable_rate
40
44
  return false unless @min_per_transaction == other.min_per_transaction
@@ -8,6 +8,8 @@ end
8
8
 
9
9
 
10
10
  class Moov::Models::Components::FeeProperties
11
+ def volume_ranges(); end
12
+ def volume_ranges=(str_); end
11
13
  def fixed_amount(); end
12
14
  def fixed_amount=(str_); end
13
15
  def variable_rate(); end
@@ -15,10 +15,12 @@ module Moov
15
15
 
16
16
 
17
17
  field :plan_id, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('planID'), required: true } }
18
- # The name of the fee plan.
18
+ # The name of the partner pricing plan.
19
19
  field :name, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('name'), required: true } }
20
- # The integer percentage value of the revenue split for partner.
21
- field :revenue_share, ::Integer, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('revenueShare'), required: true } }
20
+ # The decimal-formatted numerical string of the revenue split for partner.
21
+ #
22
+ # For example, 2.25% is '2.25'.
23
+ field :revenue_share, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('revenueShare'), required: true } }
22
24
  # Specifies the card processing pricing model
23
25
  field :card_acquiring_model, Models::Components::CardAcquiringModel, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('cardAcquiringModel'), required: true, 'decoder': Utils.enum_from_string(Models::Components::CardAcquiringModel, false) } }
24
26
 
@@ -32,7 +34,7 @@ module Moov
32
34
  # A description of the fee plan.
33
35
  field :description, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('description') } }
34
36
 
35
- sig { params(plan_id: ::String, name: ::String, revenue_share: ::Integer, card_acquiring_model: Models::Components::CardAcquiringModel, billable_fees: T::Array[Models::Components::BillableFee], minimum_commitment: Models::Components::MinimumCommitment, monthly_platform_fee: Models::Components::MonthlyPlatformFee, created_at: ::DateTime, description: T.nilable(::String)).void }
37
+ sig { params(plan_id: ::String, name: ::String, revenue_share: ::String, card_acquiring_model: Models::Components::CardAcquiringModel, billable_fees: T::Array[Models::Components::BillableFee], minimum_commitment: Models::Components::MinimumCommitment, monthly_platform_fee: Models::Components::MonthlyPlatformFee, created_at: ::DateTime, description: T.nilable(::String)).void }
36
38
  def initialize(plan_id:, name:, revenue_share:, card_acquiring_model:, billable_fees:, minimum_commitment:, monthly_platform_fee:, created_at:, description: nil)
37
39
  @plan_id = plan_id
38
40
  @name = name
@@ -31,14 +31,16 @@ module Moov
31
31
  field :minimum_commitment, Models::Components::MinimumCommitment, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('minimumCommitment'), required: true } }
32
32
  # Fixed recurring amount paid in the billing period regardless of usage.
33
33
  field :monthly_platform_fee, Models::Components::MonthlyPlatformFee, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('monthlyPlatformFee'), required: true } }
34
- # The integer percentage value of the revenue split for partner.
35
- field :revenue_share, ::Integer, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('revenueShare'), required: true } }
34
+ # The decimal-formatted numerical string of the revenue split for partner.
35
+ #
36
+ # For example, 2.25% is '2.25'.
37
+ field :revenue_share, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('revenueShare'), required: true } }
36
38
 
37
39
  field :account_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('accountID') } }
38
40
  # The description of the agreement.
39
41
  field :description, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('description') } }
40
42
 
41
- sig { params(agreement_id: ::String, plan_id: ::String, name: ::String, accepted_on: ::DateTime, status: Models::Components::FeePlanAgreementStatus, card_acquiring_model: Models::Components::CardAcquiringModel, billable_fees: T::Array[Models::Components::BillableFee], minimum_commitment: Models::Components::MinimumCommitment, monthly_platform_fee: Models::Components::MonthlyPlatformFee, revenue_share: ::Integer, account_id: T.nilable(::String), description: T.nilable(::String)).void }
43
+ sig { params(agreement_id: ::String, plan_id: ::String, name: ::String, accepted_on: ::DateTime, status: Models::Components::FeePlanAgreementStatus, card_acquiring_model: Models::Components::CardAcquiringModel, billable_fees: T::Array[Models::Components::BillableFee], minimum_commitment: Models::Components::MinimumCommitment, monthly_platform_fee: Models::Components::MonthlyPlatformFee, revenue_share: ::String, account_id: T.nilable(::String), description: T.nilable(::String)).void }
42
44
  def initialize(agreement_id:, plan_id:, name:, accepted_on:, status:, card_acquiring_model:, billable_fees:, minimum_commitment:, monthly_platform_fee:, revenue_share:, account_id: nil, description: nil)
43
45
  @agreement_id = agreement_id
44
46
  @plan_id = plan_id
@@ -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
+ # Defines the volume ranges for tiered pricing models.
12
+ class VolumeRange
13
+ extend T::Sig
14
+ include Crystalline::MetadataFields
15
+
16
+ # Specifies the lower value of a tier for the fee.
17
+ field :from_value, ::Integer, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('fromValue'), required: true } }
18
+ # The flat amount for a whole tier of the fee.
19
+ field :flat_amount, Models::Components::AmountDecimal, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('flatAmount'), required: true } }
20
+ # The unit price for a specific tier of the fee.
21
+ field :per_unit_amount, Models::Components::AmountDecimal, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('perUnitAmount'), required: true } }
22
+ # Specifies the upper value of a tier for the fee.
23
+ field :to_value, Crystalline::Nilable.new(::Integer), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('toValue') } }
24
+
25
+ sig { params(from_value: ::Integer, flat_amount: Models::Components::AmountDecimal, per_unit_amount: Models::Components::AmountDecimal, to_value: T.nilable(::Integer)).void }
26
+ def initialize(from_value:, flat_amount:, per_unit_amount:, to_value: nil)
27
+ @from_value = from_value
28
+ @flat_amount = flat_amount
29
+ @per_unit_amount = per_unit_amount
30
+ @to_value = to_value
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 @from_value == other.from_value
37
+ return false unless @flat_amount == other.flat_amount
38
+ return false unless @per_unit_amount == other.per_unit_amount
39
+ return false unless @to_value == other.to_value
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::VolumeRange
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class Moov::Models::Components::VolumeRange
11
+ def from_value(); end
12
+ def from_value=(str_); end
13
+ def flat_amount(); end
14
+ def flat_amount=(str_); end
15
+ def per_unit_amount(); end
16
+ def per_unit_amount=(str_); end
17
+ def to_value(); end
18
+ def to_value=(str_); end
19
+ end
@@ -467,6 +467,7 @@ module Moov
467
467
  autoload :VerificationStatusDetail, 'moov/models/components/verificationstatusdetail.rb'
468
468
  autoload :VolumeByCustomerType, 'moov/models/components/volumebycustomertype.rb'
469
469
  autoload :VolumeByCustomerTypeError, 'moov/models/components/volumebycustomertypeerror.rb'
470
+ autoload :VolumeRange, 'moov/models/components/volumerange.rb'
470
471
  autoload :VolumeShareByCustomerType, 'moov/models/components/volumesharebycustomertype.rb'
471
472
  autoload :VolumeShareByCustomerTypeError, 'moov/models/components/volumesharebycustomertypeerror.rb'
472
473
  autoload :Wallet, 'moov/models/components/wallet.rb'
@@ -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.1.28'
99
- @gen_version = '2.723.2'
100
- @user_agent = 'speakeasy-sdk/ruby 0.1.28 2.723.2 latest moov_ruby'
98
+ @sdk_version = '0.1.30'
99
+ @gen_version = '2.723.11'
100
+ @user_agent = 'speakeasy-sdk/ruby 0.1.30 2.723.11 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.1.28
4
+ version: 0.1.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - Speakeasy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-10-08 00:00:00.000000000 Z
11
+ date: 2025-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base64
@@ -1183,6 +1183,8 @@ files:
1183
1183
  - lib/moov/models/components/volumebycustomertype.rbi
1184
1184
  - lib/moov/models/components/volumebycustomertypeerror.rb
1185
1185
  - lib/moov/models/components/volumebycustomertypeerror.rbi
1186
+ - lib/moov/models/components/volumerange.rb
1187
+ - lib/moov/models/components/volumerange.rbi
1186
1188
  - lib/moov/models/components/volumesharebycustomertype.rb
1187
1189
  - lib/moov/models/components/volumesharebycustomertype.rbi
1188
1190
  - lib/moov/models/components/volumesharebycustomertypeerror.rb