Skip to main content

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

Interface: HardwareOrder

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

Properties​

created_at​

TypeScript
created_at: string;

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


fulfillment_status​

TypeScript
fulfillment_status: HardwareOrderFulfillmentStatus;

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


goods_cents​

TypeScript
goods_cents: number;

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

What the items cost, in USD cents, at the prices they were sold at.


id​

TypeScript
id: string;

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


items​

TypeScript
items: HardwareOrderItem[];

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

The physical units the lines expanded into, one per device.


lines​

TypeScript
lines: HardwareOrderLine[];

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

What was ordered, and what it cost. A quantity of three is one line and three units; a bundle is one line and one unit per component.


payment_settled_at​

TypeScript
payment_settled_at: string | null;

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

When the funds actually became ours, days after submission. Set only for settled and reversed; a reversal keeps it.


payment_status​

TypeScript
payment_status: HardwareOrderPaymentStatus;

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


payment_submitted_at​

TypeScript
payment_submitted_at: string | null;

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

When the debit was handed to the network. Null while payment_status is unpaid, set for every other state. Not an authorization — ACH has none.


placed_at​

TypeScript
placed_at: string | null;

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

When checkout completed. Null means the order is still a draft: its contents can be changed and its prices are not yet frozen. This is the only place draftness is recorded — there is no draft status value.


rejection_reason​

TypeScript
rejection_reason: string | null;

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

Why the order was declined at review. Only set when rejected.


ship_to_address​

TypeScript
ship_to_address: HardwareOrderAddress | null;

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

Where the order ships. Required before checkout.


ship_to_recipient​

TypeScript
ship_to_recipient: string | null;

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

The name the parcel is addressed to. Required before checkout.


shipping_cents​

TypeScript
shipping_cents: number | null;

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

Shipping in USD cents, passed through at cost and stated separately from goods. Set when a carrier service is chosen from a shipping quote, at that quote's price. Null means none has been chosen, which is not the same as free — checkout refuses a null, while 0 is a legitimate price. Changing the order's contents or its destination clears it.


shipping_method​

TypeScript
shipping_method: string | null;

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

The carrier service chosen for this order, as the distributor names it (for example FED_2DY). Null until a service is chosen.


shipping_quoted_at​

TypeScript
shipping_quoted_at: string | null;

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


total_cents​

TypeScript
total_cents: number | null;

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

goods_cents plus shipping_cents. Null until shipping has been quoted: an order with no quote has no total, rather than one that happens to equal its goods.


updated_at​

TypeScript
updated_at: string;

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