Class: MetronomeSDK::Models::V1::ContractCreateParams::Credit::AccessSchedule::ScheduleItem
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- MetronomeSDK::Models::V1::ContractCreateParams::Credit::AccessSchedule::ScheduleItem
- Defined in:
- lib/metronome_sdk/models/v1/contract_create_params.rb
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.
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.
1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 |
# File 'lib/metronome_sdk/models/v1/contract_create_params.rb', line 1076 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
1080 |
# File 'lib/metronome_sdk/models/v1/contract_create_params.rb', line 1080 required :amount, Float |
#ending_before ⇒ Time
RFC 3339 timestamp (exclusive)
1086 |
# File 'lib/metronome_sdk/models/v1/contract_create_params.rb', line 1086 required :ending_before, Time |
#starting_at ⇒ Time
RFC 3339 timestamp (inclusive)
1092 |
# File 'lib/metronome_sdk/models/v1/contract_create_params.rb', line 1092 required :starting_at, Time |