Class: MetronomeSDK::Models::V1::ContractAmendParams::Commit::AccessSchedule::ScheduleItem

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/metronome_sdk/models/v1/contract_amend_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(schedule_items: , credit_type_id: nil) ⇒ Object

Required: Schedule for distributing the commit to the customer. For “POSTPAID” commits only one schedule item is allowed and amount must match invoice_schedule total.

Parameters:



323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
# File 'lib/metronome_sdk/models/v1/contract_amend_params.rb', line 323

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

  # @!attribute ending_before
  #   RFC 3339 timestamp (exclusive)
  #
  #   @return [Time]
  required :ending_before, Time

  # @!attribute starting_at
  #   RFC 3339 timestamp (inclusive)
  #
  #   @return [Time]
  required :starting_at, Time

  # @!method initialize(amount:, ending_before:, starting_at:)
  #   @param amount [Float]
  #
  #   @param ending_before [Time] RFC 3339 timestamp (exclusive)
  #
  #   @param starting_at [Time] RFC 3339 timestamp (inclusive)
end

Instance Attribute Details

#amountFloat

Returns:

  • (Float)


327
# File 'lib/metronome_sdk/models/v1/contract_amend_params.rb', line 327

required :amount, Float

#ending_beforeTime

RFC 3339 timestamp (exclusive)

Returns:

  • (Time)


333
# File 'lib/metronome_sdk/models/v1/contract_amend_params.rb', line 333

required :ending_before, Time

#starting_atTime

RFC 3339 timestamp (inclusive)

Returns:

  • (Time)


339
# File 'lib/metronome_sdk/models/v1/contract_amend_params.rb', line 339

required :starting_at, Time