Class: MetronomeSDK::Models::V2::ContractEditCommitParams::AccessSchedule

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/metronome_sdk/models/v2/contract_edit_commit_params.rb

Defined Under Namespace

Classes: AddScheduleItem, RemoveScheduleItem, UpdateScheduleItem

Instance Attribute Summary collapse

Instance Method Summary collapse

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

Parameters:

  • id (String) (defaults to: )


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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
# File 'lib/metronome_sdk/models/v2/contract_edit_commit_params.rb', line 124

class AccessSchedule < MetronomeSDK::Internal::Type::BaseModel
  # @!attribute add_schedule_items
  #
  #   @return [Array<MetronomeSDK::Models::V2::ContractEditCommitParams::AccessSchedule::AddScheduleItem>, nil]
  optional :add_schedule_items,
           -> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::V2::ContractEditCommitParams::AccessSchedule::AddScheduleItem] }

  # @!attribute remove_schedule_items
  #
  #   @return [Array<MetronomeSDK::Models::V2::ContractEditCommitParams::AccessSchedule::RemoveScheduleItem>, nil]
  optional :remove_schedule_items,
           -> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::V2::ContractEditCommitParams::AccessSchedule::RemoveScheduleItem] }

  # @!attribute update_schedule_items
  #
  #   @return [Array<MetronomeSDK::Models::V2::ContractEditCommitParams::AccessSchedule::UpdateScheduleItem>, nil]
  optional :update_schedule_items,
           -> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::V2::ContractEditCommitParams::AccessSchedule::UpdateScheduleItem] }

  # @!method initialize(add_schedule_items: nil, remove_schedule_items: nil, update_schedule_items: nil)
  #   @param add_schedule_items [Array<MetronomeSDK::Models::V2::ContractEditCommitParams::AccessSchedule::AddScheduleItem>]
  #   @param remove_schedule_items [Array<MetronomeSDK::Models::V2::ContractEditCommitParams::AccessSchedule::RemoveScheduleItem>]
  #   @param update_schedule_items [Array<MetronomeSDK::Models::V2::ContractEditCommitParams::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_itemsArray<MetronomeSDK::Models::V2::ContractEditCommitParams::AccessSchedule::AddScheduleItem>?



128
129
# File 'lib/metronome_sdk/models/v2/contract_edit_commit_params.rb', line 128

optional :add_schedule_items,
-> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::V2::ContractEditCommitParams::AccessSchedule::AddScheduleItem] }

#remove_schedule_itemsArray<MetronomeSDK::Models::V2::ContractEditCommitParams::AccessSchedule::RemoveScheduleItem>?



134
135
# File 'lib/metronome_sdk/models/v2/contract_edit_commit_params.rb', line 134

optional :remove_schedule_items,
-> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::V2::ContractEditCommitParams::AccessSchedule::RemoveScheduleItem] }

#update_schedule_itemsArray<MetronomeSDK::Models::V2::ContractEditCommitParams::AccessSchedule::UpdateScheduleItem>?



140
141
# File 'lib/metronome_sdk/models/v2/contract_edit_commit_params.rb', line 140

optional :update_schedule_items,
-> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::V2::ContractEditCommitParams::AccessSchedule::UpdateScheduleItem] }