Class: MetronomeSDK::Models::V1::ContractRetrieveSubscriptionQuantityHistoryResponse::Data::History
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- MetronomeSDK::Models::V1::ContractRetrieveSubscriptionQuantityHistoryResponse::Data::History
- Defined in:
- lib/metronome_sdk/models/v1/contract_retrieve_subscription_quantity_history_response.rb
Defined Under Namespace
Classes: Data
Instance Attribute Summary collapse
- #data ⇒ Array<MetronomeSDK::Models::V1::ContractRetrieveSubscriptionQuantityHistoryResponse::Data::History::Data>
- #starting_at ⇒ Time
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(fiat_credit_type_id: nil, history: nil, subscription_id: nil) ⇒ Object
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
# File 'lib/metronome_sdk/models/v1/contract_retrieve_subscription_quantity_history_response.rb', line 39 class History < MetronomeSDK::Internal::Type::BaseModel # @!attribute data # # @return [Array<MetronomeSDK::Models::V1::ContractRetrieveSubscriptionQuantityHistoryResponse::Data::History::Data>] required :data, -> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::Models::V1::ContractRetrieveSubscriptionQuantityHistoryResponse::Data::History::Data] } # @!attribute starting_at # # @return [Time] required :starting_at, Time # @!method initialize(data:, starting_at:) # @param data [Array<MetronomeSDK::Models::V1::ContractRetrieveSubscriptionQuantityHistoryResponse::Data::History::Data>] # @param starting_at [Time] class Data < MetronomeSDK::Internal::Type::BaseModel # @!attribute quantity # # @return [Float] required :quantity, Float # @!attribute total # # @return [Float] required :total, Float # @!attribute unit_price # # @return [Float] required :unit_price, Float # @!method initialize(quantity:, total:, unit_price:) # @param quantity [Float] # @param total [Float] # @param unit_price [Float] end end |
Instance Attribute Details
#data ⇒ Array<MetronomeSDK::Models::V1::ContractRetrieveSubscriptionQuantityHistoryResponse::Data::History::Data>
43 44 |
# File 'lib/metronome_sdk/models/v1/contract_retrieve_subscription_quantity_history_response.rb', line 43 required :data, -> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::Models::V1::ContractRetrieveSubscriptionQuantityHistoryResponse::Data::History::Data] } |
#starting_at ⇒ Time
49 |
# File 'lib/metronome_sdk/models/v1/contract_retrieve_subscription_quantity_history_response.rb', line 49 required :starting_at, Time |