productoptionvalue

package
v1.49.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package productoptionvalue is one value of a product option (e.g. "Small" of "Size"). Medusa v2 parity (product-option-value).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Query

Types

type ProductOptionValue

type ProductOptionValue struct {
	mixin.Model[ProductOptionValue]

	OptionId string `json:"optionId"`
	Value    string `json:"value"` // "Small", "Red"

	Metadata  Map    `json:"metadata,omitempty" datastore:"-"`
	Metadata_ string `json:"-" datastore:",noindex"`
}

ProductOptionValue is a single selectable value of a ProductOption.

func (*ProductOptionValue) Load

func (v *ProductOptionValue) Load(ps []datastore.Property) (err error)

func (*ProductOptionValue) Save

func (v *ProductOptionValue) Save() ([]datastore.Property, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL