Class: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit

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

Defined Under Namespace

Modules: Proration, RateType, RecurrenceFrequency Classes: AccessAmount, CommitDuration, Contract, 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(id: ) ⇒ Object

Parameters:

  • id (String) (defaults to: )


# File 'lib/metronome_sdk/models/v2/contract_get_edit_history_response.rb', line 1419


Instance Attribute Details

#access_amountMetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit::AccessAmount

The amount of commit to grant.



1295
1296
# File 'lib/metronome_sdk/models/v2/contract_get_edit_history_response.rb', line 1295

required :access_amount,
-> { MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit::AccessAmount }

#applicable_product_idsArray<String>?

Will be passed down to the individual commits

Returns:

  • (Array<String>, nil)


1334
# File 'lib/metronome_sdk/models/v2/contract_get_edit_history_response.rb', line 1334

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)


1340
# File 'lib/metronome_sdk/models/v2/contract_get_edit_history_response.rb', line 1340

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

#commit_durationMetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit::CommitDuration

The amount of time the created commits will be valid for



1302
1303
# File 'lib/metronome_sdk/models/v2/contract_get_edit_history_response.rb', line 1302

required :commit_duration,
-> { MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit::CommitDuration }

#contractMetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit::Contract?



1345
1346
# File 'lib/metronome_sdk/models/v2/contract_get_edit_history_response.rb', line 1345

optional :contract,
-> { MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit::Contract }

#descriptionString?

Will be passed down to the individual commits

Returns:

  • (String, nil)


1352
# File 'lib/metronome_sdk/models/v2/contract_get_edit_history_response.rb', line 1352

optional :description, String

#ending_beforeTime?

Determines when the contract will stop creating recurring commits. Optional

Returns:

  • (Time, nil)


1358
# File 'lib/metronome_sdk/models/v2/contract_get_edit_history_response.rb', line 1358

optional :ending_before, Time

#hierarchy_configurationMetronomeSDK::Models::CommitHierarchyConfiguration?

Optional configuration for recurring credit hierarchy access control



1364
# File 'lib/metronome_sdk/models/v2/contract_get_edit_history_response.rb', line 1364

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

#idString

Returns:

  • (String)


1289
# File 'lib/metronome_sdk/models/v2/contract_get_edit_history_response.rb', line 1289

required :id, String

#nameString?

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

Returns:

  • (String, nil)


1370
# File 'lib/metronome_sdk/models/v2/contract_get_edit_history_response.rb', line 1370

optional :name, String

#netsuite_sales_order_idString?

Will be passed down to the individual commits

Returns:

  • (String, nil)


1376
# File 'lib/metronome_sdk/models/v2/contract_get_edit_history_response.rb', line 1376

optional :netsuite_sales_order_id, String

#priorityFloat

Will be passed down to the individual commits

Returns:

  • (Float)


1309
# File 'lib/metronome_sdk/models/v2/contract_get_edit_history_response.rb', line 1309

required :priority, Float

#productMetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit::Product



1314
1315
# File 'lib/metronome_sdk/models/v2/contract_get_edit_history_response.rb', line 1314

required :product,
-> { MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit::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).



1383
1384
# File 'lib/metronome_sdk/models/v2/contract_get_edit_history_response.rb', line 1383

optional :proration,
enum: -> { MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit::Proration }

#rate_typeSymbol, MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit::RateType

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



1321
1322
# File 'lib/metronome_sdk/models/v2/contract_get_edit_history_response.rb', line 1321

required :rate_type,
enum: -> { MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit::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.



1394
1395
# File 'lib/metronome_sdk/models/v2/contract_get_edit_history_response.rb', line 1394

optional :recurrence_frequency,
enum: -> { MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddRecurringCredit::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)


1403
# File 'lib/metronome_sdk/models/v2/contract_get_edit_history_response.rb', line 1403

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:



1411
# File 'lib/metronome_sdk/models/v2/contract_get_edit_history_response.rb', line 1411

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

#starting_atTime

Determines the start time for the first commit

Returns:

  • (Time)


1328
# File 'lib/metronome_sdk/models/v2/contract_get_edit_history_response.rb', line 1328

required :starting_at, Time

#subscription_configMetronomeSDK::Models::RecurringCommitSubscriptionConfig?

Attach a subscription to the recurring commit/credit.



1417
# File 'lib/metronome_sdk/models/v2/contract_get_edit_history_response.rb', line 1417

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

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/metronome_sdk/models/v2/contract_get_edit_history_response.rb', line 1514