Class: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCommit::InvoiceSchedule::ScheduleItem

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/metronome_sdk/models/v2/contract_get_edit_history_response.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(credit_type: nil, do_not_invoice: nil, schedule_items: nil) ⇒ Object

The schedule that the customer will be invoiced for this commit.

Parameters:



469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
# File 'lib/metronome_sdk/models/v2/contract_get_edit_history_response.rb', line 469

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

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

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

  # @!attribute invoice_id
  #
  #   @return [String, nil]
  optional :invoice_id, String, nil?: true

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

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

  # @!method initialize(id:, timestamp:, amount: nil, invoice_id: nil, quantity: nil, unit_price: nil)
  #   @param id [String]
  #   @param timestamp [Time]
  #   @param amount [Float]
  #   @param invoice_id [String, nil]
  #   @param quantity [Float]
  #   @param unit_price [Float]
end

Instance Attribute Details

#amountFloat?

Returns:

  • (Float, nil)


483
# File 'lib/metronome_sdk/models/v2/contract_get_edit_history_response.rb', line 483

optional :amount, Float

#idString

Returns:

  • (String)


473
# File 'lib/metronome_sdk/models/v2/contract_get_edit_history_response.rb', line 473

required :id, String

#invoice_idString?

Returns:

  • (String, nil)


488
# File 'lib/metronome_sdk/models/v2/contract_get_edit_history_response.rb', line 488

optional :invoice_id, String, nil?: true

#quantityFloat?

Returns:

  • (Float, nil)


493
# File 'lib/metronome_sdk/models/v2/contract_get_edit_history_response.rb', line 493

optional :quantity, Float

#timestampTime

Returns:

  • (Time)


478
# File 'lib/metronome_sdk/models/v2/contract_get_edit_history_response.rb', line 478

required :timestamp, Time

#unit_priceFloat?

Returns:

  • (Float, nil)


498
# File 'lib/metronome_sdk/models/v2/contract_get_edit_history_response.rb', line 498

optional :unit_price, Float