Class: MetronomeSDK::Models::V2::ContractEditParams::UpdateCredit

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

Defined Under Namespace

Modules: RateType Classes: AccessSchedule

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, ending_before: nil, starting_at: nil) ⇒ Object

Parameters:

  • id (String) (defaults to: )
  • amount (Float) (defaults to: nil)
  • ending_before (Time) (defaults to: nil)
  • starting_at (Time) (defaults to: nil)


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

Instance Attribute Details

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



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

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


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

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)


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

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

#credit_idString

Returns:

  • (String)


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

required :credit_id, String

#hierarchy_configurationMetronomeSDK::Models::CommitHierarchyConfiguration?

Optional configuration for commit hierarchy access control



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

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

#netsuite_sales_order_idString?

Returns:

  • (String, nil)


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

optional :netsuite_sales_order_id, String, nil?: true

#priorityFloat?

Returns:

  • (Float, nil)


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

optional :priority, Float, nil?: true

#product_idString?

Returns:

  • (String, nil)


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

optional :product_id, String

#rate_typeSymbol, ...

If provided, updates the credit 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.



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

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