Class: MetronomeSDK::Models::ProService

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/metronome_sdk/models/pro_service.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(id: , max_amount: , product_id: , quantity: , unit_price: , custom_fields: nil, description: nil, netsuite_sales_order_id: nil) ⇒ Object

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

Parameters:

  • id (String) (defaults to: )
  • max_amount (Float) (defaults to: )

    Maximum amount for the term.

  • product_id (String) (defaults to: )
  • quantity (Float) (defaults to: )

    Quantity for the charge. Will be multiplied by unit_price to determine the amoun

  • unit_price (Float) (defaults to: )

    Unit price for the charge. Will be multiplied by quantity to determine the amoun

  • custom_fields (Hash{Symbol=>String}) (defaults to: nil)

    Custom fields to be added eg. { “key1”: “value1”, “key2”: “value2” }

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

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



# File 'lib/metronome_sdk/models/pro_service.rb', line 53


Instance Attribute Details

#custom_fieldsHash{Symbol=>String}?

Custom fields to be added eg. { “key1”: “value1”, “key2”: “value2” }

Returns:

  • (Hash{Symbol=>String}, nil)


40
# File 'lib/metronome_sdk/models/pro_service.rb', line 40

optional :custom_fields, MetronomeSDK::Internal::Type::HashOf[String]

#descriptionString?

Returns:

  • (String, nil)


45
# File 'lib/metronome_sdk/models/pro_service.rb', line 45

optional :description, String

#idString

Returns:

  • (String)


9
# File 'lib/metronome_sdk/models/pro_service.rb', line 9

required :id, String

#max_amountFloat

Maximum amount for the term.

Returns:

  • (Float)


15
# File 'lib/metronome_sdk/models/pro_service.rb', line 15

required :max_amount, Float

#netsuite_sales_order_idString?

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

Returns:

  • (String, nil)


51
# File 'lib/metronome_sdk/models/pro_service.rb', line 51

optional :netsuite_sales_order_id, String

#product_idString

Returns:

  • (String)


20
# File 'lib/metronome_sdk/models/pro_service.rb', line 20

required :product_id, String

#quantityFloat

Quantity for the charge. Will be multiplied by unit_price to determine the amount.

Returns:

  • (Float)


27
# File 'lib/metronome_sdk/models/pro_service.rb', line 27

required :quantity, Float

#unit_priceFloat

Unit price for the charge. Will be multiplied by quantity to determine the amount and must be specified.

Returns:

  • (Float)


34
# File 'lib/metronome_sdk/models/pro_service.rb', line 34

required :unit_price, Float