types/index.ts

velobase-harness · src/server/order/types/index.ts · typescript · MIT
payments

Exports comprehensive order, payment, and product type definitions for a commerce backend.

// Source: https://github.com/velobase/velobase-harness | License: MIT | Copyright 2026 Velobase
// Provided via justclaw.it.com; keep this notice with the code.
import type {
  Order,
  Payment,
  Product,
  ProductType,
  ProductStatus,
} from "@prisma/client";

// Order types
import type { OrderType } from "@velobase/payments";
export type { OrderType, OrderStatus } from "@velobase/payments";

// Payment types
export type PaymentStatus =
  | "PENDING"
  | "SUCCEEDED"
  | "FAILED"
  | "EXPIRED"
  | "REFUNDED";
export type PaymentGateway = "STRIPE" | "NOWPAYMENTS" | "LEMONSQUEEZY";

// Product types
export type ProductInterval = "month" | "year";

// Export Prisma types for compatibility
export type { ProductType, ProductStatus };

// Extended types
export type OrderWithRelations = 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