Class: MetronomeSDK::Models::V2::ContractEditParams::AddCredit::AccessSchedule::ScheduleItem
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- MetronomeSDK::Models::V2::ContractEditParams::AddCredit::AccessSchedule::ScheduleItem
- Defined in:
- lib/metronome_sdk/models/v2/contract_edit_params.rb,
sig/metronome_sdk/models/v2/contract_edit_params.rbs
Instance Attribute Summary collapse
- #amount ⇒ Float
-
#ending_before ⇒ Time
RFC 3339 timestamp (exclusive).
-
#starting_at ⇒ Time
RFC 3339 timestamp (inclusive).
Instance Method Summary collapse
-
#initialize(schedule_items:, credit_type_id: nil) ⇒ Object
constructor
Schedule for distributing the credit to the customer.
- #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(schedule_items:, credit_type_id: nil) ⇒ Object
Schedule for distributing the credit to the customer.
1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 |
# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 1197 class ScheduleItem < MetronomeSDK::Internal::Type::BaseModel # @!attribute amount # # @return [Float] required :amount, Float # @!attribute ending_before # RFC 3339 timestamp (exclusive) # # @return [Time] required :ending_before, Time # @!attribute starting_at # RFC 3339 timestamp (inclusive) # # @return [Time] required :starting_at, Time # @!method initialize(amount:, ending_before:, starting_at:) # @param amount [Float] # # @param ending_before [Time] RFC 3339 timestamp (exclusive) # # @param starting_at [Time] RFC 3339 timestamp (inclusive) end |
Instance Attribute Details
#amount ⇒ Float
1201 |
# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 1201 required :amount, Float |
#ending_before ⇒ Time
RFC 3339 timestamp (exclusive)
1207 |
# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 1207 required :ending_before, Time |
#starting_at ⇒ Time
RFC 3339 timestamp (inclusive)
1213 |
# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 1213 required :starting_at, Time |
Instance Method Details
#to_hash ⇒ {
1105 |
# File 'sig/metronome_sdk/models/v2/contract_edit_params.rbs', line 1105
def to_hash: -> {
|