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.

868 B
Raw Blame
// This file is auto-generated. Do not edit directly.
import { z } from 'zod';
import { ActorSchema } from './Actor';
import { StockReceiptItemSchema } from './StockReceiptItem';

export const StockReceiptSchema = z.object({
  id: z.string(),
  number: z.string(),
  reference: z.string().nullable(),
  notes: z.string().nullable(),
  metadata: z.record(z.string(), z.unknown()),
  quantity_accepted_total: z.number(),
  quantity_rejected_total: z.number(),
  received_at: z.string(),
  created_at: z.string(),
  updated_at: z.string(),
  receivable_type: z.string(),
  receivable_id: z.string(),
  received_by_id: z.string().nullable(),
  received_by_type: z.string().nullable(),
  received_by: ActorSchema.optional(),
  items_count: z.number(),
  items: z.array(StockReceiptItemSchema).optional(),
});

export type StockReceipt = z.infer<typeof StockReceiptSchema>;