returnreason

package
v1.46.25 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2026 License: MIT Imports: 5 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package returnreason is the return-reason lookup (Medusa v2 parity: return-reason) — the categorized reason a customer returns an item.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Query

Types

type ReturnReason

type ReturnReason struct {
	mixin.Model[ReturnReason]

	Value       string `json:"value"` // code, e.g. "wrong_size"
	Label       string `json:"label"`
	Description string `json:"description" datastore:",noindex"`

	// ParentReturnReasonId nests reasons (e.g. "damaged" > "damaged_in_transit").
	ParentReturnReasonId string `json:"parentReturnReasonId,omitempty"`

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

ReturnReason categorizes why an item was returned (e.g. "wrong_size").

func New

func (*ReturnReason) Load

func (r *ReturnReason) Load(ps []datastore.Property) (err error)

func (*ReturnReason) Save

func (r *ReturnReason) Save() ([]datastore.Property, error)

Jump to

Keyboard shortcuts

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