shippingcaseep

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminUpdateShippingCaseTrackingEndpoint

type AdminUpdateShippingCaseTrackingEndpoint struct{}

Rewrites the tracking number of a shipping case that has already shipped. Administrators only: it is the deliberate override for a case dispatched under the wrong number, and it rejects a case that has not shipped yet.

type AdminUpdateShippingCaseTrackingRequest

type AdminUpdateShippingCaseTrackingRequest struct {
	// Shipping case ID.
	ShippingCaseID string `path:"id" validate:"required"`
	// Carrier tracking number the case actually travelled under, replacing any number already recorded.
	TrackingNumber field.Optional[string] `json:"tracking_number,omitzero" validate:"omitempty,max=255"`
}

! separate endpoint due to SDK type resttrictions Request to correct a shipped shipping case's tracking number.

func (*AdminUpdateShippingCaseTrackingRequest) SchemaExample

type DeleteShippingCaseEndpoint

type DeleteShippingCaseEndpoint struct{}

Permanently deletes a shipping case.

Only the case is removed; its shipment, the shipment's lines, and the shipment's other cases are left untouched. Deleting a case that has already been deleted returns an error rather than succeeding again.

type DeleteShippingCaseRequest

type DeleteShippingCaseRequest struct {
	// Shipping case ID.
	ShippingCaseID string `path:"id" validate:"required"`
}

Request to delete a shipping case.

type GetShippingCaseLabelEndpoint

type GetShippingCaseLabelEndpoint struct{}

Returns a temporary download link for the shipping case's label image.

The link expires one hour after it is issued, so fetch it when the label is about to be printed rather than storing it. No link is returned until a label has been generated for the case.

type GetShippingCaseLabelRequest

type GetShippingCaseLabelRequest struct {
	// Shipping case ID.
	ShippingCaseID string `path:"id" validate:"required"`
}

Request to retrieve a shipping case label URL.

type RetrieveShippingCaseEndpoint

type RetrieveShippingCaseEndpoint struct{}

Returns a shipping case by ID.

type RetrieveShippingCaseRequest

type RetrieveShippingCaseRequest struct {
	// Shipping case ID.
	ShippingCaseID string `path:"id" validate:"required"`
}

Request to retrieve a shipping case by ID.

type ShippingCaseSvcConfig

type ShippingCaseSvcConfig struct {
	// CoreClient (required) is the core-service shipping-case gRPC client.
	CoreClient pb.CoreShippingCaseServiceClient
}

type UpdateShippingCaseEndpoint

type UpdateShippingCaseEndpoint struct{}

Partially updates a shipping case's tracking number and freight quantities.

Fields left out of the request keep their current values. The freight cost and weight recorded here are the case's own actual charge and weight; they do not change the freight billed on the sales order.

func (*UpdateShippingCaseEndpoint) Materialize

type UpdateShippingCaseRequest

type UpdateShippingCaseRequest struct {
	// Shipping case ID.
	ShippingCaseID string `path:"id" validate:"required"`
	// Carrier tracking number to set on the case, replacing any number already recorded.
	TrackingNumber field.Optional[string] `json:"tracking_number,omitzero" validate:"omitempty,max=255"`
	// New value for the case's freight cost, as a decimal string.
	FreightAmountValue field.Optional[string] `json:"freight_amount_value,omitzero"`
	// ID of the currency unit the case's freight cost is expressed in.
	//
	// Changing the unit relabels the stored freight cost; the number itself is never converted, so send `freight_amount_value` alongside it when the amount should change too.
	FreightAmountUnitID field.Optional[string] `json:"freight_amount_unit_id,omitzero" validate:"omitempty"`
	// New value for the case's freight weight, as a decimal string.
	FreightWeightValue field.Optional[string] `json:"freight_weight_value,omitzero"`
	// ID of the unit the case's freight weight is expressed in.
	//
	// Changing the unit relabels the stored weight; the number itself is never converted, so send `freight_weight_value` alongside it when the weight should change too.
	FreightWeightUnitID field.Optional[string] `json:"freight_weight_unit_id,omitzero" validate:"omitempty"`
}

Request to update a shipping case.

func (*UpdateShippingCaseRequest) SchemaExample

func (*UpdateShippingCaseRequest) SchemaExample() any

Jump to

Keyboard shortcuts

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