Class: MetronomeSDK::Models::BaseThresholdCommit

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

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(product_id: , description: nil, name: nil) ⇒ Object

Some parameter documentations has been truncated, see MetronomeSDK::Models::BaseThresholdCommit for more details.

Parameters:

  • product_id (String) (defaults to: )

    The commit product that will be used to generate the line item for commit paymen

  • description (String) (defaults to: nil)
  • name (String) (defaults to: nil)

    Specify the name of the line item for the threshold charge. If left blank, it wi



# File 'lib/metronome_sdk/models/base_threshold_commit.rb', line 25


Instance Attribute Details

#descriptionString?

Returns:

  • (String, nil)


16
# File 'lib/metronome_sdk/models/base_threshold_commit.rb', line 16

optional :description, String

#nameString?

Specify the name of the line item for the threshold charge. If left blank, it will default to the commit product name.

Returns:

  • (String, nil)


23
# File 'lib/metronome_sdk/models/base_threshold_commit.rb', line 23

optional :name, String

#product_idString

The commit product that will be used to generate the line item for commit payment.

Returns:

  • (String)


11
# File 'lib/metronome_sdk/models/base_threshold_commit.rb', line 11

required :product_id, String