Class: MetronomeSDK::Models::Credit::Ledger::CreditCanceledLedgerEntry

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

Defined Under Namespace

Modules: Type

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(amount: , invoice_id: , segment_id: , timestamp: , type: , contract_id: nil) ⇒ Object

Parameters:



# File 'lib/metronome_sdk/models/credit.rb', line 387


Instance Attribute Details

#amountFloat

Returns:

  • (Float)


360
# File 'lib/metronome_sdk/models/credit.rb', line 360

required :amount, Float

#contract_idString?

Returns:

  • (String, nil)


385
# File 'lib/metronome_sdk/models/credit.rb', line 385

optional :contract_id, String

#invoice_idString

Returns:

  • (String)


365
# File 'lib/metronome_sdk/models/credit.rb', line 365

required :invoice_id, String

#segment_idString

Returns:

  • (String)


370
# File 'lib/metronome_sdk/models/credit.rb', line 370

required :segment_id, String

#timestampTime

Returns:

  • (Time)


375
# File 'lib/metronome_sdk/models/credit.rb', line 375

required :timestamp, Time

#typeSymbol, MetronomeSDK::Models::Credit::Ledger::CreditCanceledLedgerEntry::Type



380
# File 'lib/metronome_sdk/models/credit.rb', line 380

required :type, enum: -> { MetronomeSDK::Credit::Ledger::CreditCanceledLedgerEntry::Type }