fulfillmentmodel

package
v1.33.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Query

Types

type Fulfillment

type Fulfillment struct {
	mixin.Model

	OrderId          string     `json:"orderId"`
	ShippingOptionId string     `json:"shippingOptionId"`
	ProviderId       string     `json:"providerId"`
	LocationId       string     `json:"locationId"`
	PackedAt         *time.Time `json:"packedAt,omitempty"`
	ShippedAt        *time.Time `json:"shippedAt,omitempty"`
	DeliveredAt      *time.Time `json:"deliveredAt,omitempty"`
	CanceledAt       *time.Time `json:"canceledAt,omitempty"`

	Items  []FulfillmentItem `json:"items" datastore:"-"`
	Items_ string            `json:"-" datastore:",noindex"`

	Labels  []FulfillmentLabel `json:"labels" datastore:"-"`
	Labels_ string             `json:"-" datastore:",noindex"`

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

func New

func (*Fulfillment) Defaults

func (f *Fulfillment) Defaults()

func (*Fulfillment) Init

func (f *Fulfillment) Init(db *datastore.Datastore)

func (Fulfillment) Kind

func (f Fulfillment) Kind() string

func (*Fulfillment) Load

func (f *Fulfillment) Load(ps []datastore.Property) (err error)

func (*Fulfillment) Save

func (f *Fulfillment) Save() ([]datastore.Property, error)

type FulfillmentItem

type FulfillmentItem struct {
	Title           string `json:"title"`
	SKU             string `json:"sku"`
	Quantity        int    `json:"quantity"`
	LineItemId      string `json:"lineItemId"`
	InventoryItemId string `json:"inventoryItemId"`
}

type FulfillmentLabel

type FulfillmentLabel struct {
	TrackingNumber string `json:"trackingNumber"`
	TrackingUrl    string `json:"trackingUrl"`
	LabelUrl       string `json:"labelUrl"`
}

Jump to

Keyboard shortcuts

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