Class: MetronomeSDK::Models::V1::Customers::PlanListResponse::TrialInfo::SpendingCap

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/metronome_sdk/models/v1/customers/plan_list_response.rb

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(amount: , amount_remaining: , credit_type: ) ⇒ Object

Parameters:



93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
# File 'lib/metronome_sdk/models/v1/customers/plan_list_response.rb', line 93

class SpendingCap < MetronomeSDK::Internal::Type::BaseModel
  # @!attribute amount
  #
  #   @return [Float]
  required :amount, Float

  # @!attribute amount_remaining
  #
  #   @return [Float]
  required :amount_remaining, Float

  # @!attribute credit_type
  #
  #   @return [MetronomeSDK::Models::CreditTypeData]
  required :credit_type, -> { MetronomeSDK::CreditTypeData }

  # @!method initialize(amount:, amount_remaining:, credit_type:)
  #   @param amount [Float]
  #   @param amount_remaining [Float]
  #   @param credit_type [MetronomeSDK::Models::CreditTypeData]
end

Instance Attribute Details

#amountFloat

Returns:

  • (Float)


97
# File 'lib/metronome_sdk/models/v1/customers/plan_list_response.rb', line 97

required :amount, Float

#amount_remainingFloat

Returns:

  • (Float)


102
# File 'lib/metronome_sdk/models/v1/customers/plan_list_response.rb', line 102

required :amount_remaining, Float

#credit_typeMetronomeSDK::Models::CreditTypeData



107
# File 'lib/metronome_sdk/models/v1/customers/plan_list_response.rb', line 107

required :credit_type, -> { MetronomeSDK::CreditTypeData }