Class: MetronomeSDK::Models::V1::ContractCreateHistoricalInvoicesParams::Invoice::UsageLineItem::SubtotalsWithQuantity

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/metronome_sdk/models/v1/contract_create_historical_invoices_params.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(exclusive_end_date: , inclusive_start_date: , product_id: , presentation_group_values: nil, pricing_group_values: nil, quantity: nil, subtotals_with_quantity: nil) ⇒ Object

Parameters:



150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
# File 'lib/metronome_sdk/models/v1/contract_create_historical_invoices_params.rb', line 150

class SubtotalsWithQuantity < MetronomeSDK::Internal::Type::BaseModel
  # @!attribute exclusive_end_date
  #
  #   @return [Time]
  required :exclusive_end_date, Time

  # @!attribute inclusive_start_date
  #
  #   @return [Time]
  required :inclusive_start_date, Time

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

  # @!method initialize(exclusive_end_date:, inclusive_start_date:, quantity:)
  #   @param exclusive_end_date [Time]
  #   @param inclusive_start_date [Time]
  #   @param quantity [Float]
end

Instance Attribute Details

#exclusive_end_dateTime

Returns:

  • (Time)


154
# File 'lib/metronome_sdk/models/v1/contract_create_historical_invoices_params.rb', line 154

required :exclusive_end_date, Time

#inclusive_start_dateTime

Returns:

  • (Time)


159
# File 'lib/metronome_sdk/models/v1/contract_create_historical_invoices_params.rb', line 159

required :inclusive_start_date, Time

#quantityFloat

Returns:

  • (Float)


164
# File 'lib/metronome_sdk/models/v1/contract_create_historical_invoices_params.rb', line 164

required :quantity, Float