fulfillmentmodel

package
v1.36.2 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: MIT Imports: 6 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[Fulfillment]

	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:"-" orm:"default:[]"`
	Items_ string            `json:"-" datastore:",noindex"`

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

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

func New

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