Class: MetronomeSDK::Models::ProService
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- MetronomeSDK::Models::ProService
- Defined in:
- lib/metronome_sdk/models/pro_service.rb
Instance Attribute Summary collapse
-
#custom_fields ⇒ Hash{Symbol=>String}?
Custom fields to be added eg.
- #description ⇒ String?
- #id ⇒ String
-
#max_amount ⇒ Float
Maximum amount for the term.
-
#netsuite_sales_order_id ⇒ String?
This field’s availability is dependent on your client’s configuration.
- #product_id ⇒ String
-
#quantity ⇒ Float
Quantity for the charge.
-
#unit_price ⇒ Float
Unit price for the charge.
Instance Method Summary collapse
-
#initialize(id: , max_amount: , product_id: , quantity: , unit_price: , custom_fields: nil, description: nil, netsuite_sales_order_id: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see ProService for more details.
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.
|
|
# File 'lib/metronome_sdk/models/pro_service.rb', line 53
|
Instance Attribute Details
#custom_fields ⇒ Hash{Symbol=>String}?
Custom fields to be added eg. { “key1”: “value1”, “key2”: “value2” }
40 |
# File 'lib/metronome_sdk/models/pro_service.rb', line 40 optional :custom_fields, MetronomeSDK::Internal::Type::HashOf[String] |
#description ⇒ String?
45 |
# File 'lib/metronome_sdk/models/pro_service.rb', line 45 optional :description, String |
#id ⇒ String
9 |
# File 'lib/metronome_sdk/models/pro_service.rb', line 9 required :id, String |
#max_amount ⇒ Float
Maximum amount for the term.
15 |
# File 'lib/metronome_sdk/models/pro_service.rb', line 15 required :max_amount, Float |
#netsuite_sales_order_id ⇒ String?
This field’s availability is dependent on your client’s configuration.
51 |
# File 'lib/metronome_sdk/models/pro_service.rb', line 51 optional :netsuite_sales_order_id, String |
#product_id ⇒ String
20 |
# File 'lib/metronome_sdk/models/pro_service.rb', line 20 required :product_id, String |
#quantity ⇒ Float
Quantity for the charge. Will be multiplied by unit_price to determine the amount.
27 |
# File 'lib/metronome_sdk/models/pro_service.rb', line 27 required :quantity, Float |
#unit_price ⇒ Float
Unit price for the charge. Will be multiplied by quantity to determine the amount and must be specified.
34 |
# File 'lib/metronome_sdk/models/pro_service.rb', line 34 required :unit_price, Float |