Class: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCredit

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

Defined Under Namespace

Modules: Type Classes: Product

Instance Attribute 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: , name: ) ⇒ Object

Parameters:

  • id (String) (defaults to: )
  • name (String) (defaults to: )


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


Instance Attribute Details

#access_scheduleMetronomeSDK::Models::ScheduleDuration?

The schedule that the customer will gain access to the credits.



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

optional :access_schedule, -> { MetronomeSDK::ScheduleDuration }

#applicable_product_idsArray<String>?

Returns:

  • (Array<String>, nil)


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

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

#applicable_product_tagsArray<String>?

Returns:

  • (Array<String>, nil)


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

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

#descriptionString?

Returns:

  • (String, nil)


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

optional :description, String

#hierarchy_configurationMetronomeSDK::Models::CommitHierarchyConfiguration?

Optional configuration for recurring credit hierarchy access control



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

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

#idString

Returns:

  • (String)


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

required :id, String

#nameString?

Returns:

  • (String, nil)


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

optional :name, String

#netsuite_sales_order_idString?

This field’s availability is dependent on your client’s configuration.

Returns:

  • (String, nil)


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

optional :netsuite_sales_order_id, String

#priorityFloat?

If multiple credits or commits are applicable, the one with the lower priority will apply first.

Returns:

  • (Float, nil)


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

optional :priority, Float

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



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

required :product,
-> { MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCredit::Product }

#salesforce_opportunity_idString?

This field’s availability is dependent on your client’s configuration.

Returns:

  • (String, nil)


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

optional :salesforce_opportunity_id, String

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

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. This field cannot be used together with ‘applicable_product_ids` or `applicable_product_tags`. Instead, to target usage by product or product tag, pass those values in the body of `specifiers`.



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

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

#typeSymbol, MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCredit::Type



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

required :type,
enum: -> { MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::AddCredit::Type }