Class: MetronomeSDK::Models::V2::ContractEditParams::UpdateCommit

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/metronome_sdk/models/v2/contract_edit_params.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_edit_params.rb', line 3233


Instance Attribute Details

#access_scheduleMetronomeSDK::Models::V2::ContractEditParams::UpdateCommit::AccessSchedule?



3176
# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 3176

optional :access_schedule, -> { MetronomeSDK::V2::ContractEditParams::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)


3184
# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 3184

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)


3192
# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 3192

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

#commit_idString

Returns:

  • (String)


3171
# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 3171

required :commit_id, String

#hierarchy_configurationMetronomeSDK::Models::CommitHierarchyConfiguration?

Optional configuration for commit hierarchy access control



3198
# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 3198

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

#invoice_scheduleMetronomeSDK::Models::V2::ContractEditParams::UpdateCommit::InvoiceSchedule?



3203
# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 3203

optional :invoice_schedule, -> { MetronomeSDK::V2::ContractEditParams::UpdateCommit::InvoiceSchedule }

#netsuite_sales_order_idString?

Returns:

  • (String, nil)


3208
# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 3208

optional :netsuite_sales_order_id, String, nil?: true

#priorityFloat?

Returns:

  • (Float, nil)


3213
# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 3213

optional :priority, Float, nil?: true

#product_idString?

Returns:

  • (String, nil)


3218
# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 3218

optional :product_id, String

#rate_typeSymbol, ...

If provided, updates the commit to use the specified rate type for current and future invoices. Previously finalized invoices will need to be voided and regenerated to reflect the rate type change.



3226
# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 3226

optional :rate_type, enum: -> { MetronomeSDK::V2::ContractEditParams::UpdateCommit::RateType }

#rollover_fractionFloat?

Returns:

  • (Float, nil)


3231
# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 3231

optional :rollover_fraction, Float, nil?: true