Skip to main content

@dialstack/sdk-dev / server/src / HardwareOrderUpdateParams

Interface: HardwareOrderUpdateParams

Defined in: sdk/server/src/index.ts:1887

Changes to a draft order. Every field is optional and only what is sent changes, all or nothing: if any part is refused, none of it is applied.

Properties

items?

TypeScript
optional items?: object[];

Defined in: sdk/server/src/index.ts:1892

Replaces the cart. At least one line; quantity is 1-100 per line. Clears the chosen carrier service, so it cannot be sent with shipping_method.

hardware_catalog

TypeScript
hardware_catalog: string;

quantity

TypeScript
quantity: number;

ship_to_address?

TypeScript
optional ship_to_address?: HardwareOrderAddress;

Defined in: sdk/server/src/index.ts:1899

Where the order ships. Changing it clears the chosen carrier service.


ship_to_recipient?

TypeScript
optional ship_to_recipient?: string;

Defined in: sdk/server/src/index.ts:1897

The name the parcel is addressed to. Changing it does not clear the chosen carrier service.


shipping_method?

TypeScript
optional shipping_method?: string;

Defined in: sdk/server/src/index.ts:1906

A carrier service from shipping_quote. The price is taken from that quote, never from the request.


shipping_quote?

TypeScript
optional shipping_quote?: string;

Defined in: sdk/server/src/index.ts:1901

The shipping quote to choose shipping_method from. Sent with it.