models/order.ts

medusa · packages/modules/order/src/models/order.ts · typescript · MIT
payments

Module exposing: Order

// Source: https://github.com/medusajs/medusa | License: MIT | Copyright 2021 Medusajs
// Provided via justclaw.it.com; keep this notice with the code.
import { model, OrderStatus } from "@medusajs/framework/utils"
import { Return } from "@models"
import { OrderAddress } from "./address"
import { OrderCreditLine } from "./credit-line"
import { OrderItem } from "./order-item"
import { OrderShipping } from "./order-shipping-method"
import { OrderSummary } from "./order-summary"
import { OrderTransaction } from "./transaction"

const _Order = model
  .define("Order", {
    id: model.id({ prefix: "order" }).primaryKey(),
    /**
     * An auto-incremented display ID for the order.
     */
    display_id: model.autoincrement().searchable(),
    /**
     * A custom display ID for the order.
    

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key