Class: MetronomeSDK::Models::V2::ContractEditCreditParams::AccessSchedule
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- MetronomeSDK::Models::V2::ContractEditCreditParams::AccessSchedule
- Defined in:
- lib/metronome_sdk/models/v2/contract_edit_credit_params.rb
Defined Under Namespace
Classes: AddScheduleItem, RemoveScheduleItem, UpdateScheduleItem
Instance Attribute Summary collapse
- #add_schedule_items ⇒ Array<MetronomeSDK::Models::V2::ContractEditCreditParams::AccessSchedule::AddScheduleItem>?
- #remove_schedule_items ⇒ Array<MetronomeSDK::Models::V2::ContractEditCreditParams::AccessSchedule::RemoveScheduleItem>?
- #update_schedule_items ⇒ Array<MetronomeSDK::Models::V2::ContractEditCreditParams::AccessSchedule::UpdateScheduleItem>?
Instance Method Summary collapse
- #initialize(id: ) ⇒ Object constructor
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(id: ) ⇒ Object
107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 |
# File 'lib/metronome_sdk/models/v2/contract_edit_credit_params.rb', line 107 class AccessSchedule < MetronomeSDK::Internal::Type::BaseModel # @!attribute add_schedule_items # # @return [Array<MetronomeSDK::Models::V2::ContractEditCreditParams::AccessSchedule::AddScheduleItem>, nil] optional :add_schedule_items, -> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::V2::ContractEditCreditParams::AccessSchedule::AddScheduleItem] } # @!attribute remove_schedule_items # # @return [Array<MetronomeSDK::Models::V2::ContractEditCreditParams::AccessSchedule::RemoveScheduleItem>, nil] optional :remove_schedule_items, -> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::V2::ContractEditCreditParams::AccessSchedule::RemoveScheduleItem] } # @!attribute update_schedule_items # # @return [Array<MetronomeSDK::Models::V2::ContractEditCreditParams::AccessSchedule::UpdateScheduleItem>, nil] optional :update_schedule_items, -> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::V2::ContractEditCreditParams::AccessSchedule::UpdateScheduleItem] } # @!method initialize(add_schedule_items: nil, remove_schedule_items: nil, update_schedule_items: nil) # @param add_schedule_items [Array<MetronomeSDK::Models::V2::ContractEditCreditParams::AccessSchedule::AddScheduleItem>] # @param remove_schedule_items [Array<MetronomeSDK::Models::V2::ContractEditCreditParams::AccessSchedule::RemoveScheduleItem>] # @param update_schedule_items [Array<MetronomeSDK::Models::V2::ContractEditCreditParams::AccessSchedule::UpdateScheduleItem>] class AddScheduleItem < MetronomeSDK::Internal::Type::BaseModel # @!attribute amount # # @return [Float] required :amount, Float # @!attribute ending_before # # @return [Time] required :ending_before, Time # @!attribute starting_at # # @return [Time] required :starting_at, Time # @!method initialize(amount:, ending_before:, starting_at:) # @param amount [Float] # @param ending_before [Time] # @param starting_at [Time] end class RemoveScheduleItem < MetronomeSDK::Internal::Type::BaseModel # @!attribute id # # @return [String] required :id, String # @!method initialize(id:) # @param id [String] end class UpdateScheduleItem < MetronomeSDK::Internal::Type::BaseModel # @!attribute id # # @return [String] required :id, String # @!attribute amount # # @return [Float, nil] optional :amount, Float # @!attribute ending_before # # @return [Time, nil] optional :ending_before, Time # @!attribute starting_at # # @return [Time, nil] optional :starting_at, Time # @!method initialize(id:, amount: nil, ending_before: nil, starting_at: nil) # @param id [String] # @param amount [Float] # @param ending_before [Time] # @param starting_at [Time] end end |
Instance Attribute Details
#add_schedule_items ⇒ Array<MetronomeSDK::Models::V2::ContractEditCreditParams::AccessSchedule::AddScheduleItem>?
111 112 |
# File 'lib/metronome_sdk/models/v2/contract_edit_credit_params.rb', line 111 optional :add_schedule_items, -> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::V2::ContractEditCreditParams::AccessSchedule::AddScheduleItem] } |
#remove_schedule_items ⇒ Array<MetronomeSDK::Models::V2::ContractEditCreditParams::AccessSchedule::RemoveScheduleItem>?
117 118 |
# File 'lib/metronome_sdk/models/v2/contract_edit_credit_params.rb', line 117 optional :remove_schedule_items, -> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::V2::ContractEditCreditParams::AccessSchedule::RemoveScheduleItem] } |
#update_schedule_items ⇒ Array<MetronomeSDK::Models::V2::ContractEditCreditParams::AccessSchedule::UpdateScheduleItem>?
123 124 |
# File 'lib/metronome_sdk/models/v2/contract_edit_credit_params.rb', line 123 optional :update_schedule_items, -> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::V2::ContractEditCreditParams::AccessSchedule::UpdateScheduleItem] } |