Class: MetronomeSDK::Models::ContractV2::HierarchyConfiguration::ParentHierarchyConfiguration::Child

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/metronome_sdk/models/contract_v2.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(children: , parent_behavior: nil) ⇒ Object

Parameters:



2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
# File 'lib/metronome_sdk/models/contract_v2.rb', line 2231

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

  # @!attribute customer_id
  #
  #   @return [String]
  required :customer_id, String

  # @!method initialize(contract_id:, customer_id:)
  #   @param contract_id [String]
  #   @param customer_id [String]
end

Instance Attribute Details

#contract_idString

Returns:

  • (String)


2235
# File 'lib/metronome_sdk/models/contract_v2.rb', line 2235

required :contract_id, String

#customer_idString

Returns:

  • (String)


2240
# File 'lib/metronome_sdk/models/contract_v2.rb', line 2240

required :customer_id, String