Class: MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit
- Defined in:
- lib/metronome_sdk/models/contract_without_amendments.rb
Defined Under Namespace
Modules: Proration, RateType, RecurrenceFrequency Classes: AccessAmount, CommitDuration, Contract, InvoiceAmount, Product
Instance Attribute Summary collapse
-
#access_amount ⇒ MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::AccessAmount
The amount of commit to grant.
-
#applicable_product_ids ⇒ Array<String>?
Will be passed down to the individual commits.
-
#applicable_product_tags ⇒ Array<String>?
Will be passed down to the individual commits.
-
#commit_duration ⇒ MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::CommitDuration
The amount of time the created commits will be valid for.
- #contract ⇒ MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::Contract?
-
#description ⇒ String?
Will be passed down to the individual commits.
-
#ending_before ⇒ Time?
Determines when the contract will stop creating recurring commits.
-
#hierarchy_configuration ⇒ MetronomeSDK::Models::CommitHierarchyConfiguration?
Optional configuration for recurring commit/credit hierarchy access control.
- #id ⇒ String
-
#invoice_amount ⇒ MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::InvoiceAmount?
The amount the customer should be billed for the commit.
-
#name ⇒ String?
Displayed on invoices.
-
#netsuite_sales_order_id ⇒ String?
Will be passed down to the individual commits.
-
#priority ⇒ Float
Will be passed down to the individual commits.
- #product ⇒ MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::Product
-
#proration ⇒ Symbol, ...
Determines whether the first and last commit will be prorated.
-
#rate_type ⇒ Symbol, MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::RateType
Whether the created commits will use the commit rate or list rate.
-
#recurrence_frequency ⇒ Symbol, ...
The frequency at which the recurring commits will be created.
-
#rollover_fraction ⇒ Float?
Will be passed down to the individual commits.
-
#specifiers ⇒ Array<MetronomeSDK::Models::CommitSpecifier>?
List of filters that determine what kind of customer usage draws down a commit or credit.
-
#starting_at ⇒ Time
Determines the start time for the first commit.
-
#subscription_config ⇒ MetronomeSDK::Models::RecurringCommitSubscriptionConfig?
Attach a subscription to the recurring commit/credit.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(credit_type_id: , quantity: , unit_price: ) ⇒ Object
constructor
The amount the customer should be billed for the commit.
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.
|
|
# File 'lib/metronome_sdk/models/contract_without_amendments.rb', line 411
|
Instance Attribute Details
#access_amount ⇒ MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::AccessAmount
The amount of commit to grant.
287 |
# File 'lib/metronome_sdk/models/contract_without_amendments.rb', line 287 required :access_amount, -> { MetronomeSDK::ContractWithoutAmendments::RecurringCommit::AccessAmount } |
#applicable_product_ids ⇒ Array<String>?
Will be passed down to the individual commits
322 |
# File 'lib/metronome_sdk/models/contract_without_amendments.rb', line 322 optional :applicable_product_ids, MetronomeSDK::Internal::Type::ArrayOf[String] |
#applicable_product_tags ⇒ Array<String>?
Will be passed down to the individual commits
328 |
# File 'lib/metronome_sdk/models/contract_without_amendments.rb', line 328 optional :applicable_product_tags, MetronomeSDK::Internal::Type::ArrayOf[String] |
#commit_duration ⇒ MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::CommitDuration
The amount of time the created commits will be valid for
293 |
# File 'lib/metronome_sdk/models/contract_without_amendments.rb', line 293 required :commit_duration, -> { MetronomeSDK::ContractWithoutAmendments::RecurringCommit::CommitDuration } |
#contract ⇒ MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::Contract?
333 |
# File 'lib/metronome_sdk/models/contract_without_amendments.rb', line 333 optional :contract, -> { MetronomeSDK::ContractWithoutAmendments::RecurringCommit::Contract } |
#description ⇒ String?
Will be passed down to the individual commits
339 |
# File 'lib/metronome_sdk/models/contract_without_amendments.rb', line 339 optional :description, String |
#ending_before ⇒ Time?
Determines when the contract will stop creating recurring commits. Optional
345 |
# File 'lib/metronome_sdk/models/contract_without_amendments.rb', line 345 optional :ending_before, Time |
#hierarchy_configuration ⇒ MetronomeSDK::Models::CommitHierarchyConfiguration?
Optional configuration for recurring commit/credit hierarchy access control
351 |
# File 'lib/metronome_sdk/models/contract_without_amendments.rb', line 351 optional :hierarchy_configuration, -> { MetronomeSDK::CommitHierarchyConfiguration } |
#id ⇒ String
281 |
# File 'lib/metronome_sdk/models/contract_without_amendments.rb', line 281 required :id, String |
#invoice_amount ⇒ MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::InvoiceAmount?
The amount the customer should be billed for the commit. Not required.
357 |
# File 'lib/metronome_sdk/models/contract_without_amendments.rb', line 357 optional :invoice_amount, -> { MetronomeSDK::ContractWithoutAmendments::RecurringCommit::InvoiceAmount } |
#name ⇒ String?
Displayed on invoices. Will be passed through to the individual commits
363 |
# File 'lib/metronome_sdk/models/contract_without_amendments.rb', line 363 optional :name, String |
#netsuite_sales_order_id ⇒ String?
Will be passed down to the individual commits
369 |
# File 'lib/metronome_sdk/models/contract_without_amendments.rb', line 369 optional :netsuite_sales_order_id, String |
#priority ⇒ Float
Will be passed down to the individual commits
299 |
# File 'lib/metronome_sdk/models/contract_without_amendments.rb', line 299 required :priority, Float |
#product ⇒ MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::Product
304 |
# File 'lib/metronome_sdk/models/contract_without_amendments.rb', line 304 required :product, -> { MetronomeSDK::ContractWithoutAmendments::RecurringCommit::Product } |
#proration ⇒ Symbol, ...
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).
376 |
# File 'lib/metronome_sdk/models/contract_without_amendments.rb', line 376 optional :proration, enum: -> { MetronomeSDK::ContractWithoutAmendments::RecurringCommit::Proration } |
#rate_type ⇒ Symbol, MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::RateType
Whether the created commits will use the commit rate or list rate
310 |
# File 'lib/metronome_sdk/models/contract_without_amendments.rb', line 310 required :rate_type, enum: -> { MetronomeSDK::ContractWithoutAmendments::RecurringCommit::RateType } |
#recurrence_frequency ⇒ Symbol, ...
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.
386 387 |
# File 'lib/metronome_sdk/models/contract_without_amendments.rb', line 386 optional :recurrence_frequency, enum: -> { MetronomeSDK::ContractWithoutAmendments::RecurringCommit::RecurrenceFrequency } |
#rollover_fraction ⇒ Float?
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.
395 |
# File 'lib/metronome_sdk/models/contract_without_amendments.rb', line 395 optional :rollover_fraction, Float |
#specifiers ⇒ Array<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.
403 |
# File 'lib/metronome_sdk/models/contract_without_amendments.rb', line 403 optional :specifiers, -> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::CommitSpecifier] } |
#starting_at ⇒ Time
Determines the start time for the first commit
316 |
# File 'lib/metronome_sdk/models/contract_without_amendments.rb', line 316 required :starting_at, Time |
#subscription_config ⇒ MetronomeSDK::Models::RecurringCommitSubscriptionConfig?
Attach a subscription to the recurring commit/credit.
409 |
# File 'lib/metronome_sdk/models/contract_without_amendments.rb', line 409 optional :subscription_config, -> { MetronomeSDK::RecurringCommitSubscriptionConfig } |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/metronome_sdk/models/contract_without_amendments.rb', line 508
|