26 lines
583 B
TypeScript
26 lines
583 B
TypeScript
import type { Address } from "./address";
|
|
import type { CustomerSummary } from "./customer";
|
|
import type { Money } from "./money";
|
|
import type { OrderStatus } from "./order-status";
|
|
|
|
export interface OrderItemDetail {
|
|
id: string;
|
|
productId: string;
|
|
sku: string;
|
|
productName: string;
|
|
quantity: number;
|
|
unitPrice: Money;
|
|
availableQuantity: number;
|
|
}
|
|
|
|
export interface OrderDetail {
|
|
id: string;
|
|
orderNumber: string;
|
|
status: OrderStatus;
|
|
createdAt: string;
|
|
updatedAt: string;
|
|
customer: CustomerSummary;
|
|
shippingAddress: Address;
|
|
items: OrderItemDetail[];
|
|
}
|