Class: MetronomeSDK::Models::V2::ContractEditParams::UpdateSubscription::QuantityUpdate
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- MetronomeSDK::Models::V2::ContractEditParams::UpdateSubscription::QuantityUpdate
- Defined in:
- lib/metronome_sdk/models/v2/contract_edit_params.rb,
sig/metronome_sdk/models/v2/contract_edit_params.rbs
Instance Attribute Summary collapse
-
#quantity ⇒ Float?
The new quantity for the subscription.
-
#quantity_delta ⇒ Float?
The delta to add to the subscription's quantity.
- #starting_at ⇒ Time
Instance Method Summary collapse
- #initialize ⇒ Object constructor
- #to_hash ⇒ {
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 ⇒ Object
4902 |
# File 'sig/metronome_sdk/models/v2/contract_edit_params.rbs', line 4902
def initialize: (
|
Instance Attribute Details
#quantity ⇒ Float?
The new quantity for the subscription. Must be provided if quantity_delta is not provided. Must be non-negative.
5219 |
# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 5219 optional :quantity, Float |
#quantity_delta ⇒ Float?
The delta to add to the subscription's quantity. Must be provided if quantity is not provided. Can't be zero. It also can't result in a negative quantity on the subscription.
5227 |
# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 5227 optional :quantity_delta, Float |
#starting_at ⇒ Time
5212 |
# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 5212 required :starting_at, Time |
Instance Method Details
#to_hash ⇒ {
4908 |
# File 'sig/metronome_sdk/models/v2/contract_edit_params.rbs', line 4908
def to_hash: -> {
|