Class: Magento::Params::CreateProductLink

Inherits:
Dry::Struct
  • Object
show all
Defined in:
lib/magento/params/create_product_link.rb

Constant Summary collapse

LinkType =
Type::String.enum(
  'related',
  'upsell',
  'crosssell',
  'associated'
)

Instance Method Summary collapse

Instance Method Details

#to_hObject



19
20
21
22
23
24
25
26
27
# File 'lib/magento/params/create_product_link.rb', line 19

def to_h
  {
    link_type: link_type,
    linked_product_sku: linked_product_sku,
    linked_product_type: linked_product_type,
    position: position,
    sku: sku
  }
end