producttype

package
v1.49.63 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package producttype is a product type classification (Medusa v2 parity: product-type).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Query

Types

type ProductType

type ProductType struct {
	mixin.Model[ProductType]

	Value string `json:"value"`

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

ProductType classifies products (e.g. "Digital", "Physical").

func New

func (*ProductType) Load

func (t *ProductType) Load(ps []datastore.Property) (err error)

func (*ProductType) Save

func (t *ProductType) Save() ([]datastore.Property, error)

Jump to

Keyboard shortcuts

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