Class: Dodopayments::Models::AddMeterToPrice
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Dodopayments::Models::AddMeterToPrice
- Defined in:
- lib/dodopayments/models/add_meter_to_price.rb
Instance Attribute Summary collapse
-
#description ⇒ String?
Meter description.
- #free_threshold ⇒ Integer?
-
#measurement_unit ⇒ String?
Meter measurement unit.
- #meter_id ⇒ String
-
#name ⇒ String?
Meter name.
-
#price_per_unit ⇒ String
The price per unit in lowest denomination.
Instance Method Summary collapse
-
#initialize(meter_id: , price_per_unit: , description: nil, free_threshold: nil, measurement_unit: nil, name: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see AddMeterToPrice 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(meter_id: , price_per_unit: , description: nil, free_threshold: nil, measurement_unit: nil, name: nil) ⇒ Object
Some parameter documentations has been truncated, see Dodopayments::Models::AddMeterToPrice for more details.
|
|
# File 'lib/dodopayments/models/add_meter_to_price.rb', line 41
|
Instance Attribute Details
#description ⇒ String?
Meter description. Will ignored on Request, but will be shown in response
22 |
# File 'lib/dodopayments/models/add_meter_to_price.rb', line 22 optional :description, String, nil?: true |
#free_threshold ⇒ Integer?
27 |
# File 'lib/dodopayments/models/add_meter_to_price.rb', line 27 optional :free_threshold, Integer, nil?: true |
#measurement_unit ⇒ String?
Meter measurement unit. Will ignored on Request, but will be shown in response
33 |
# File 'lib/dodopayments/models/add_meter_to_price.rb', line 33 optional :measurement_unit, String, nil?: true |
#meter_id ⇒ String
9 |
# File 'lib/dodopayments/models/add_meter_to_price.rb', line 9 required :meter_id, String |
#name ⇒ String?
Meter name. Will ignored on Request, but will be shown in response
39 |
# File 'lib/dodopayments/models/add_meter_to_price.rb', line 39 optional :name, String, nil?: true |
#price_per_unit ⇒ String
The price per unit in lowest denomination. Must be greater than zero. Supports up to 5 digits before decimal point and 12 decimal places.
16 |
# File 'lib/dodopayments/models/add_meter_to_price.rb', line 16 required :price_per_unit, String |