/** * #order.ts * * Code generated by ts-proto. DO NOT EDIT. * @packageDocumentation */ import type { Environment } from "./common.js"; import type { Product } from "./product.js"; export declare enum OrderStatus { ORDER_STATUS_UNSPECIFIED = 0, ORDER_STATUS_NEW = 1, ORDER_STATUS_CREATED = 2, ORDER_STATUS_PAID = 3, ORDER_STATUS_DELIVERED = 4, ORDER_STATUS_CANCELED = 5, ORDER_STATUS_REVERTED = 6, UNRECOGNIZED = -1 } /** Order represents a purchase made by a user */ export type Order = { /** a unique identifier for the order */ id: string; /** where the order is in its lifecycle */ status: OrderStatus; /** when the order was created */ createdAt?: string | undefined; /** when the order was last updated */ updatedAt?: string | undefined; /** the products that were ordered */ products: Product[]; /** whether or not the order was placed in the development sandbox or production */ environment: Environment; /** user-defined metadata about the order */ metadata: { [key: string]: string; }; }; export type Order_MetadataEntry = { key: string; value: string; }; //# sourceMappingURL=order.d.ts.map