Class: MetronomeSDK::Models::V1::ContractAmendParams::ScheduledCharge::Schedule::ScheduleItem
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- MetronomeSDK::Models::V1::ContractAmendParams::ScheduledCharge::Schedule::ScheduleItem
- Defined in:
- lib/metronome_sdk/models/v1/contract_amend_params.rb
Instance Attribute Summary collapse
-
#amount ⇒ Float?
Amount for the charge.
-
#quantity ⇒ Float?
Quantity for the charge.
-
#timestamp ⇒ Time
timestamp of the scheduled event.
-
#unit_price ⇒ Float?
Unit price for the charge.
Instance Method Summary collapse
-
#initialize(timestamp: , amount: nil, quantity: nil, unit_price: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see ScheduleItem 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(timestamp: , amount: nil, quantity: nil, unit_price: nil) ⇒ Object
Some parameter documentations has been truncated, see MetronomeSDK::Models::V1::ContractAmendParams::ScheduledCharge::Schedule::ScheduleItem for more details.
|
|
# File 'lib/metronome_sdk/models/v1/contract_amend_params.rb', line 1876
|
Instance Attribute Details
#amount ⇒ Float?
Amount for the charge. Can be provided instead of unit_price and quantity. If amount is sent, the unit_price is assumed to be the amount and quantity is inferred to be 1.
1858 |
# File 'lib/metronome_sdk/models/v1/contract_amend_params.rb', line 1858 optional :amount, Float |
#quantity ⇒ Float?
Quantity for the charge. Will be multiplied by unit_price to determine the amount and must be specified with unit_price. If specified amount cannot be provided.
1866 |
# File 'lib/metronome_sdk/models/v1/contract_amend_params.rb', line 1866 optional :quantity, Float |
#timestamp ⇒ Time
timestamp of the scheduled event
1850 |
# File 'lib/metronome_sdk/models/v1/contract_amend_params.rb', line 1850 required :timestamp, Time |
#unit_price ⇒ Float?
Unit price for the charge. Will be multiplied by quantity to determine the amount and must be specified with quantity. If specified amount cannot be provided.
1874 |
# File 'lib/metronome_sdk/models/v1/contract_amend_params.rb', line 1874 optional :unit_price, Float |