Class: MetronomeSDK::Models::ContractV2::HierarchyConfiguration::ChildHierarchyConfigurationV2

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

Defined Under Namespace

Modules: Payer, UsageStatementBehavior Classes: Parent

Instance Attribute Summary collapse

Class Method 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(contract_id: , customer_id: ) ⇒ Object

The single parent contract/customer for this child.

Parameters:

  • contract_id (String) (defaults to: )
  • customer_id (String) (defaults to: )


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

Instance Attribute Details

#parentMetronomeSDK::Models::ContractV2::HierarchyConfiguration::ChildHierarchyConfigurationV2::Parent

The single parent contract/customer for this child.



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

required :parent,
-> { MetronomeSDK::ContractV2::HierarchyConfiguration::ChildHierarchyConfigurationV2::Parent }

#payerSymbol, ...

Account hierarchy M3 - Indicates which customer should pay for the child’s invoice charges SELF: The child pays for its own invoice charges PARENT: The parent pays for the child’s invoice charges



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

optional :payer,
enum: -> { MetronomeSDK::ContractV2::HierarchyConfiguration::ChildHierarchyConfigurationV2::Payer }

#usage_statement_behaviorSymbol, ...

Account hierarchy M3 - Indicates the behavior of the child’s invoice statements on the parent’s invoices.

CONSOLIDATE: Child’s invoice statements will be added to parent’s consolidated invoices

SEPARATE: Child’s invoice statements will appear not appear on parent’s consolidated invoices



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

optional :usage_statement_behavior,
enum: -> { MetronomeSDK::ContractV2::HierarchyConfiguration::ChildHierarchyConfigurationV2::UsageStatementBehavior }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


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