Class: MetronomeSDK::Models::ContractV2::RecurringCommit

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

Defined Under Namespace

Modules: Proration, RateType, RecurrenceFrequency Classes: AccessAmount, CommitDuration, Contract, InvoiceAmount, Product

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(credit_type_id: , quantity: , unit_price: ) ⇒ Object

The amount the customer should be billed for the commit. Not required.

Parameters:

  • credit_type_id (String) (defaults to: )
  • quantity (Float) (defaults to: )
  • unit_price (Float) (defaults to: )


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


Instance Attribute Details

#access_amountMetronomeSDK::Models::ContractV2::RecurringCommit::AccessAmount

The amount of commit to grant.



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

required :access_amount, -> { MetronomeSDK::ContractV2::RecurringCommit::AccessAmount }

#applicable_product_idsArray<String>?

Will be passed down to the individual commits

Returns:

  • (Array<String>, nil)


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

optional :applicable_product_ids, MetronomeSDK::Internal::Type::ArrayOf[String]

#applicable_product_tagsArray<String>?

Will be passed down to the individual commits

Returns:

  • (Array<String>, nil)


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

optional :applicable_product_tags, MetronomeSDK::Internal::Type::ArrayOf[String]

#commit_durationMetronomeSDK::Models::ContractV2::RecurringCommit::CommitDuration

The amount of time the created commits will be valid for



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

required :commit_duration, -> { MetronomeSDK::ContractV2::RecurringCommit::CommitDuration }

#contractMetronomeSDK::Models::ContractV2::RecurringCommit::Contract?



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

optional :contract, -> { MetronomeSDK::ContractV2::RecurringCommit::Contract }

#descriptionString?

Will be passed down to the individual commits

Returns:

  • (String, nil)


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

optional :description, String

#ending_beforeTime?

Determines when the contract will stop creating recurring commits. Optional

Returns:

  • (Time, nil)


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

optional :ending_before, Time

#hierarchy_configurationMetronomeSDK::Models::CommitHierarchyConfiguration?

Optional configuration for recurring credit hierarchy access control



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

optional :hierarchy_configuration, -> { MetronomeSDK::CommitHierarchyConfiguration }

#idString

Returns:

  • (String)


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

required :id, String

#invoice_amountMetronomeSDK::Models::ContractV2::RecurringCommit::InvoiceAmount?

The amount the customer should be billed for the commit. Not required.



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

optional :invoice_amount, -> { MetronomeSDK::ContractV2::RecurringCommit::InvoiceAmount }

#nameString?

Displayed on invoices. Will be passed through to the individual commits

Returns:

  • (String, nil)


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

optional :name, String

#netsuite_sales_order_idString?

Will be passed down to the individual commits

Returns:

  • (String, nil)


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

optional :netsuite_sales_order_id, String

#priorityFloat

Will be passed down to the individual commits

Returns:

  • (Float)


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

required :priority, Float

#productMetronomeSDK::Models::ContractV2::RecurringCommit::Product



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

required :product, -> { MetronomeSDK::ContractV2::RecurringCommit::Product }

#prorationSymbol, ...

Determines whether the first and last commit will be prorated. If not provided, the default is FIRST_AND_LAST (i.e. prorate both the first and last commits).



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

optional :proration, enum: -> { MetronomeSDK::ContractV2::RecurringCommit::Proration }

#rate_typeSymbol, MetronomeSDK::Models::ContractV2::RecurringCommit::RateType

Whether the created commits will use the commit rate or list rate



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

required :rate_type, enum: -> { MetronomeSDK::ContractV2::RecurringCommit::RateType }

#recurrence_frequencySymbol, ...

The frequency at which the recurring commits will be created. If not provided: - The commits will be created on the usage invoice frequency. If provided: - The period defined in the duration will correspond to this frequency. - Commits will be created aligned with the recurring commit’s starting_at rather than the usage invoice dates.



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

optional :recurrence_frequency,
enum: -> { MetronomeSDK::ContractV2::RecurringCommit::RecurrenceFrequency }

#rollover_fractionFloat?

Will be passed down to the individual commits. This controls how much of an individual unexpired commit will roll over upon contract transition. Must be between 0 and 1.

Returns:

  • (Float, nil)


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

optional :rollover_fraction, Float

#specifiersArray<MetronomeSDK::Models::CommitSpecifier>?

List of filters that determine what kind of customer usage draws down a commit or credit. A customer’s usage needs to meet the condition of at least one of the specifiers to contribute to a commit’s or credit’s drawdown.

Returns:



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

optional :specifiers, -> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::CommitSpecifier] }

#starting_atTime

Determines the start time for the first commit

Returns:

  • (Time)


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

required :starting_at, Time

#subscription_configMetronomeSDK::Models::RecurringCommitSubscriptionConfig?

Attach a subscription to the recurring commit/credit.



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

optional :subscription_config, -> { MetronomeSDK::RecurringCommitSubscriptionConfig }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


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