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

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

Defined Under Namespace

Classes: SubtotalsWithQuantity

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(contract_id: , credit_type_id: , customer_id: , exclusive_end_date: , inclusive_start_date: , issue_date: , usage_line_items: , billable_status: nil, breakdown_granularity: nil, custom_fields: nil) ⇒ Object

Parameters:



104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
# File 'lib/metronome_sdk/models/v1/contract_create_historical_invoices_params.rb', line 104

class UsageLineItem < 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 product_id
  #
  #   @return [String]
  required :product_id, String

  # @!attribute presentation_group_values
  #
  #   @return [Hash{Symbol=>String}, nil]
  optional :presentation_group_values, MetronomeSDK::Internal::Type::HashOf[String]

  # @!attribute pricing_group_values
  #
  #   @return [Hash{Symbol=>String}, nil]
  optional :pricing_group_values, MetronomeSDK::Internal::Type::HashOf[String]

  # @!attribute quantity
  #
  #   @return [Float, nil]
  optional :quantity, Float

  # @!attribute subtotals_with_quantity
  #
  #   @return [Array<MetronomeSDK::Models::V1::ContractCreateHistoricalInvoicesParams::Invoice::UsageLineItem::SubtotalsWithQuantity>, nil]
  optional :subtotals_with_quantity,
           -> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::V1::ContractCreateHistoricalInvoicesParams::Invoice::UsageLineItem::SubtotalsWithQuantity] }

  # @!method initialize(exclusive_end_date:, inclusive_start_date:, product_id:, presentation_group_values: nil, pricing_group_values: nil, quantity: nil, subtotals_with_quantity: nil)
  #   @param exclusive_end_date [Time]
  #   @param inclusive_start_date [Time]
  #   @param product_id [String]
  #   @param presentation_group_values [Hash{Symbol=>String}]
  #   @param pricing_group_values [Hash{Symbol=>String}]
  #   @param quantity [Float]
  #   @param subtotals_with_quantity [Array<MetronomeSDK::Models::V1::ContractCreateHistoricalInvoicesParams::Invoice::UsageLineItem::SubtotalsWithQuantity>]

  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
end

Instance Attribute Details

#exclusive_end_dateTime

Returns:

  • (Time)


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

required :exclusive_end_date, Time

#inclusive_start_dateTime

Returns:

  • (Time)


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

required :inclusive_start_date, Time

#presentation_group_valuesHash{Symbol=>String}?

Returns:

  • (Hash{Symbol=>String}, nil)


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

optional :presentation_group_values, MetronomeSDK::Internal::Type::HashOf[String]

#pricing_group_valuesHash{Symbol=>String}?

Returns:

  • (Hash{Symbol=>String}, nil)


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

optional :pricing_group_values, MetronomeSDK::Internal::Type::HashOf[String]

#product_idString

Returns:

  • (String)


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

required :product_id, String

#quantityFloat?

Returns:

  • (Float, nil)


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

optional :quantity, Float

#subtotals_with_quantityArray<MetronomeSDK::Models::V1::ContractCreateHistoricalInvoicesParams::Invoice::UsageLineItem::SubtotalsWithQuantity>?



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

optional :subtotals_with_quantity,
-> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::V1::ContractCreateHistoricalInvoicesParams::Invoice::UsageLineItem::SubtotalsWithQuantity] }