Class: MetronomeSDK::Models::V1::Customers::PlanListPriceAdjustmentsResponse

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

Overview

Defined Under Namespace

Modules: ChargeType Classes: Price

Instance Attribute Summary collapse

Class Method 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(charge_id: , charge_type: , prices: , start_period: , quantity: nil) ⇒ Object

Parameters:



# File 'lib/metronome_sdk/models/v1/customers/plan_list_price_adjustments_response.rb', line 36


Instance Attribute Details

#charge_idString

Returns:

  • (String)


12
# File 'lib/metronome_sdk/models/v1/customers/plan_list_price_adjustments_response.rb', line 12

required :charge_id, String

#charge_typeSymbol, MetronomeSDK::Models::V1::Customers::PlanListPriceAdjustmentsResponse::ChargeType



17
18
# File 'lib/metronome_sdk/models/v1/customers/plan_list_price_adjustments_response.rb', line 17

required :charge_type,
enum: -> { MetronomeSDK::Models::V1::Customers::PlanListPriceAdjustmentsResponse::ChargeType }

#pricesArray<MetronomeSDK::Models::V1::Customers::PlanListPriceAdjustmentsResponse::Price>



23
24
# File 'lib/metronome_sdk/models/v1/customers/plan_list_price_adjustments_response.rb', line 23

required :prices,
-> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::Models::V1::Customers::PlanListPriceAdjustmentsResponse::Price] }

#quantityFloat?

Returns:

  • (Float, nil)


34
# File 'lib/metronome_sdk/models/v1/customers/plan_list_price_adjustments_response.rb', line 34

optional :quantity, Float

#start_periodFloat

Returns:

  • (Float)


29
# File 'lib/metronome_sdk/models/v1/customers/plan_list_price_adjustments_response.rb', line 29

required :start_period, Float

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/metronome_sdk/models/v1/customers/plan_list_price_adjustments_response.rb', line 53