Class: MetronomeSDK::Models::V1::Contracts::RateCardListResponse

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

Overview

Defined Under Namespace

Classes: Alias, CreditTypeConversion

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(name: , ending_before: nil, starting_at: nil) ⇒ Object

Parameters:

  • name (String) (defaults to: )
  • ending_before (Time) (defaults to: nil)
  • starting_at (Time) (defaults to: nil)


# File 'lib/metronome_sdk/models/v1/contracts/rate_card_list_response.rb', line 92


Instance Attribute Details

#aliasesArray<MetronomeSDK::Models::V1::Contracts::RateCardListResponse::Alias>?



32
33
# File 'lib/metronome_sdk/models/v1/contracts/rate_card_list_response.rb', line 32

optional :aliases,
-> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::Models::V1::Contracts::RateCardListResponse::Alias] }

#created_atTime

Returns:

  • (Time)


17
# File 'lib/metronome_sdk/models/v1/contracts/rate_card_list_response.rb', line 17

required :created_at, Time

#created_byString

Returns:

  • (String)


22
# File 'lib/metronome_sdk/models/v1/contracts/rate_card_list_response.rb', line 22

required :created_by, String

#credit_type_conversionsArray<MetronomeSDK::Models::V1::Contracts::RateCardListResponse::CreditTypeConversion>?



38
39
# File 'lib/metronome_sdk/models/v1/contracts/rate_card_list_response.rb', line 38

optional :credit_type_conversions,
-> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::Models::V1::Contracts::RateCardListResponse::CreditTypeConversion] }

#custom_fieldsHash{Symbol=>String}?

Custom fields to be added eg. { “key1”: “value1”, “key2”: “value2” }

Returns:

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


45
# File 'lib/metronome_sdk/models/v1/contracts/rate_card_list_response.rb', line 45

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

#descriptionString?

Returns:

  • (String, nil)


50
# File 'lib/metronome_sdk/models/v1/contracts/rate_card_list_response.rb', line 50

optional :description, String

#fiat_credit_typeMetronomeSDK::Models::CreditTypeData?



55
# File 'lib/metronome_sdk/models/v1/contracts/rate_card_list_response.rb', line 55

optional :fiat_credit_type, -> { MetronomeSDK::CreditTypeData }

#idString

Returns:

  • (String)


12
# File 'lib/metronome_sdk/models/v1/contracts/rate_card_list_response.rb', line 12

required :id, String

#nameString

Returns:

  • (String)


27
# File 'lib/metronome_sdk/models/v1/contracts/rate_card_list_response.rb', line 27

required :name, String