Class: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSpendThresholdConfiguration

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

Overview

Instance Attribute Summary collapse

Method Summary

Methods inherited from Internal::Type::BaseModel

#==, ==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, #initialize, 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

This class inherits a constructor from MetronomeSDK::Internal::Type::BaseModel

Instance Attribute Details

#commitMetronomeSDK::Models::UpdateBaseThresholdCommit?



3001
# File 'lib/metronome_sdk/models/v2/contract_get_edit_history_response.rb', line 3001

optional :commit, -> { MetronomeSDK::UpdateBaseThresholdCommit }

#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)


3009
# File 'lib/metronome_sdk/models/v2/contract_get_edit_history_response.rb', line 3009

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

#payment_gate_configMetronomeSDK::Models::PaymentGateConfigV2?



3014
# File 'lib/metronome_sdk/models/v2/contract_get_edit_history_response.rb', line 3014

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

#threshold_amountFloat?

Specify the threshold amount for the contract. Each time the contract’s usage hits this amount, a threshold charge will be initiated.

Returns:

  • (Float, nil)


3021
# File 'lib/metronome_sdk/models/v2/contract_get_edit_history_response.rb', line 3021

optional :threshold_amount, Float