Class: MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCommit

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

Defined Under Namespace

Modules: RateType Classes: AccessSchedule, InvoiceSchedule

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: , amount: nil, quantity: nil, timestamp: nil, unit_price: nil) ⇒ Object

Parameters:

  • id (String) (defaults to: )
  • amount (Float) (defaults to: nil)
  • quantity (Float) (defaults to: nil)
  • timestamp (Time) (defaults to: nil)
  • unit_price (Float) (defaults to: nil)


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

Instance Attribute Details

#access_scheduleMetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCommit::AccessSchedule?



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

optional :access_schedule,
-> { MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCommit::AccessSchedule }

#applicable_product_idsArray<String>?

Which products the commit applies to. If applicable_product_ids, applicable_product_tags or specifiers are not provided, the commit applies to all products.

Returns:

  • (Array<String>, nil)


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

optional :applicable_product_ids, MetronomeSDK::Internal::Type::ArrayOf[String], nil?: true

#applicable_product_tagsArray<String>?

Which tags the commit applies to. If applicable_product_ids, applicable_product_tags or specifiers are not provided, the commit applies to all products.

Returns:

  • (Array<String>, nil)


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

optional :applicable_product_tags, MetronomeSDK::Internal::Type::ArrayOf[String], nil?: true

#hierarchy_configurationMetronomeSDK::Models::CommitHierarchyConfiguration?

Optional configuration for commit hierarchy access control



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

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

#idString

Returns:

  • (String)


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

required :id, String

#invoice_scheduleMetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCommit::InvoiceSchedule?



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

optional :invoice_schedule,
-> { MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCommit::InvoiceSchedule }

#nameString?

Returns:

  • (String, nil)


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

optional :name, String

#netsuite_sales_order_idString?

Returns:

  • (String, nil)


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

optional :netsuite_sales_order_id, String, nil?: true

#priorityFloat?

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

Returns:

  • (Float, nil)


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

optional :priority, Float, nil?: true

#product_idString?

Returns:

  • (String, nil)


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

optional :product_id, String

#rate_typeSymbol, ...

If set, the commit’s rate type was updated to the specified value.



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

optional :rate_type,
enum: -> { MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCommit::RateType }

#rollover_fractionFloat?

Returns:

  • (Float, nil)


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

optional :rollover_fraction, Float, nil?: true

#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`.



1912
1913
1914
# File 'lib/metronome_sdk/models/v2/contract_get_edit_history_response.rb', line 1912

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