Class: MetronomeSDK::Models::V2::ContractEditResponse::Data::Edit::UpdateSubscription::SeatUpdates::AddSeatID

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/metronome_sdk/models/v2/contract_edit_response.rb,
sig/metronome_sdk/models/v2/contract_edit_response.rbs

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(add_seat_ids: nil, add_unassigned_seats: nil, remove_seat_ids: nil, remove_unassigned_seats: nil) ⇒ Object

Some parameter documentations has been truncated, see MetronomeSDK::Models::V2::ContractEditResponse::Data::Edit::UpdateSubscription::SeatUpdates for more details.

Manage subscription seats for subscriptions in SEAT_BASED mode.

Parameters:



4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
# File 'lib/metronome_sdk/models/v2/contract_edit_response.rb', line 4235

class AddSeatID < MetronomeSDK::Internal::Type::BaseModel
  # @!attribute seat_ids
  #
  #   @return [Array<String>]
  required :seat_ids, MetronomeSDK::Internal::Type::ArrayOf[String]

  # @!attribute starting_at
  #   Assigned seats will be added/removed starting at this date.
  #
  #   @return [Time]
  required :starting_at, Time

  # @!method initialize(seat_ids:, starting_at:)
  #   @param seat_ids [Array<String>]
  #
  #   @param starting_at [Time] Assigned seats will be added/removed starting at this date.
end

Instance Attribute Details

#seat_idsArray<String>

Parameters:

  • value (::Array[String])

Returns:

  • (Array<String>)


4239
# File 'lib/metronome_sdk/models/v2/contract_edit_response.rb', line 4239

required :seat_ids, MetronomeSDK::Internal::Type::ArrayOf[String]

#starting_atTime

Assigned seats will be added/removed starting at this date.

Parameters:

  • value (Time)

Returns:

  • (Time)


4245
# File 'lib/metronome_sdk/models/v2/contract_edit_response.rb', line 4245

required :starting_at, Time

Instance Method Details

#to_hash{

Returns:

  • ({)


4169
# File 'sig/metronome_sdk/models/v2/contract_edit_response.rbs', line 4169

def to_hash: -> {