Class: MetronomeSDK::Models::V1::ContractCreateParams::HierarchyConfiguration

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

Defined Under Namespace

Modules: Payer, UsageStatementBehavior Classes: Parent, ParentBehavior

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

Parameters:

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


# File 'lib/metronome_sdk/models/v1/contract_create_params.rb', line 1385

Instance Attribute Details

#parentMetronomeSDK::Models::V1::ContractCreateParams::HierarchyConfiguration::Parent?



1352
# File 'lib/metronome_sdk/models/v1/contract_create_params.rb', line 1352

optional :parent, -> { MetronomeSDK::V1::ContractCreateParams::HierarchyConfiguration::Parent }

#parent_behaviorMetronomeSDK::Models::V1::ContractCreateParams::HierarchyConfiguration::ParentBehavior?



1357
1358
# File 'lib/metronome_sdk/models/v1/contract_create_params.rb', line 1357

optional :parent_behavior,
-> { MetronomeSDK::V1::ContractCreateParams::HierarchyConfiguration::ParentBehavior }

#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



1369
# File 'lib/metronome_sdk/models/v1/contract_create_params.rb', line 1369

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



1382
1383
# File 'lib/metronome_sdk/models/v1/contract_create_params.rb', line 1382

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

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/metronome_sdk/models/v1/contract_create_params.rb', line 1452