Class: MetronomeSDK::Models::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/metronome_sdk/models/v2/contract_edit_params.rb

Defined Under Namespace

Classes: Commit

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(commit: nil, custom_credit_type_id: nil, is_enabled: nil, payment_gate_config: nil, recharge_to_amount: nil, threshold_amount: nil) ⇒ Object

Some parameter documentations has been truncated, see MetronomeSDK::Models::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration for more details.

Parameters:

  • commit (MetronomeSDK::Models::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::Commit) (defaults to: nil)
  • custom_credit_type_id (String, nil) (defaults to: nil)

    If provided, the threshold, recharge-to amount, and the resulting threshold comm

  • is_enabled (Boolean) (defaults to: nil)

    When set to false, the contract will not be evaluated against the threshold_amou

  • payment_gate_config (MetronomeSDK::Models::PaymentGateConfigV2) (defaults to: nil)
  • recharge_to_amount (Float) (defaults to: nil)

    Specify the amount the balance should be recharged to.

  • threshold_amount (Float) (defaults to: nil)

    Specify the threshold amount for the contract. Each time the contract’s balance



# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 3679

Instance Attribute Details

#commitMetronomeSDK::Models::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::Commit?



3643
3644
# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 3643

optional :commit,
-> { MetronomeSDK::V2::ContractEditParams::UpdatePrepaidBalanceThresholdConfiguration::Commit }

#custom_credit_type_idString?

If provided, the threshold, recharge-to amount, and the resulting threshold commit amount will be in terms of this credit type instead of the fiat currency.

Returns:

  • (String, nil)


3651
# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 3651

optional :custom_credit_type_id, String, nil?: true

#is_enabledBoolean?

When set to false, the contract will not be evaluated against the threshold_amount. Toggling to true will result an immediate evaluation, regardless of prior state.

Returns:

  • (Boolean, nil)


3659
# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 3659

optional :is_enabled, MetronomeSDK::Internal::Type::Boolean

#payment_gate_configMetronomeSDK::Models::PaymentGateConfigV2?



3664
# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 3664

optional :payment_gate_config, -> { MetronomeSDK::PaymentGateConfigV2 }

#recharge_to_amountFloat?

Specify the amount the balance should be recharged to.

Returns:

  • (Float, nil)


3670
# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 3670

optional :recharge_to_amount, Float

#threshold_amountFloat?

Specify the threshold amount for the contract. Each time the contract’s balance lowers to this amount, a threshold charge will be initiated.

Returns:

  • (Float, nil)


3677
# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 3677

optional :threshold_amount, Float