Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

1.4 KB
Raw Blame
// This file is auto-generated. Do not edit directly.
import { z } from 'zod';
import { AddressSchema } from './Address';
import { OrderSchema } from './Order';
import { PaymentSchema } from './Payment';

export const OrderGroupSchema = z.object({
  id: z.string(),
  number: z.string(),
  email: z.string().nullable(),
  currency: z.string(),
  item_total: z.string().nullable(),
  discount_total: z.string().nullable(),
  tax_total: z.string().nullable(),
  included_tax_total: z.string().nullable(),
  additional_tax_total: z.string().nullable(),
  delivery_total: z.string().nullable(),
  fee_total: z.string().nullable(),
  gift_card_total: z.string().nullable(),
  store_credit_total: z.string().nullable(),
  total: z.string().nullable(),
  amount_due: z.string().nullable(),
  covered_by_store_credit: z.boolean(),
  get payments() { return z.array(PaymentSchema); },
  fulfillment_status: z.string().nullable(),
  payment_status: z.string().nullable(),
  completed_at: z.string().nullable(),
  billing_address: AddressSchema.nullable(),
  shipping_address: AddressSchema.nullable(),
  get orders() { return z.array(OrderSchema); },
  customer_id: z.string().nullable(),
  cart_id: z.string().nullable(),
  seller_count: z.number(),
  includes_first_party: z.boolean(),
  confirmation_delivered: z.boolean(),
  store_owner_notification_delivered: z.boolean(),
  created_at: z.string(),
  updated_at: z.string(),
});

export type OrderGroup = z.infer<typeof OrderGroupSchema>;