Class: MetronomeSDK::Models::V1::Contracts::RateCards::ProductOrderUpdateParams::ProductMove

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/metronome_sdk/models/v1/contracts/rate_cards/product_order_update_params.rb

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(position: , product_id: ) ⇒ Object

Parameters:

  • position (Float) (defaults to: )

    0-based index of the new position of the product

  • product_id (String) (defaults to: )

    ID of the product to move



32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# File 'lib/metronome_sdk/models/v1/contracts/rate_cards/product_order_update_params.rb', line 32

class ProductMove < MetronomeSDK::Internal::Type::BaseModel
  # @!attribute position
  #   0-based index of the new position of the product
  #
  #   @return [Float]
  required :position, Float

  # @!attribute product_id
  #   ID of the product to move
  #
  #   @return [String]
  required :product_id, String

  # @!method initialize(position:, product_id:)
  #   @param position [Float] 0-based index of the new position of the product
  #
  #   @param product_id [String] ID of the product to move
end

Instance Attribute Details

#positionFloat

0-based index of the new position of the product

Returns:

  • (Float)


37
# File 'lib/metronome_sdk/models/v1/contracts/rate_cards/product_order_update_params.rb', line 37

required :position, Float

#product_idString

ID of the product to move

Returns:

  • (String)


43
# File 'lib/metronome_sdk/models/v1/contracts/rate_cards/product_order_update_params.rb', line 43

required :product_id, String