@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?
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
hardware_catalog: string;
quantity
quantity: number;
ship_to_address?
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?
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?
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?
optional shipping_quote?: string;
Defined in: sdk/server/src/index.ts:1901
The shipping quote to choose shipping_method from. Sent with it.