Class: MetronomeSDK::Models::HierarchyConfiguration::ChildHierarchyConfiguration

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/metronome_sdk/models/hierarchy_configuration.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/hierarchy_configuration.rb', line 124

Instance Attribute Details

#parentMetronomeSDK::Models::HierarchyConfiguration::ChildHierarchyConfiguration::Parent

The single parent contract/customer for this child.



97
# File 'lib/metronome_sdk/models/hierarchy_configuration.rb', line 97

required :parent, -> { MetronomeSDK::HierarchyConfiguration::ChildHierarchyConfiguration::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



108
# File 'lib/metronome_sdk/models/hierarchy_configuration.rb', line 108

optional :payer, enum: -> { MetronomeSDK::HierarchyConfiguration::ChildHierarchyConfiguration::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



121
122
# File 'lib/metronome_sdk/models/hierarchy_configuration.rb', line 121

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

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/metronome_sdk/models/hierarchy_configuration.rb', line 168