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.

783 B
Raw Blame
// This file is auto-generated. Do not edit directly.
import { z } from 'zod';
import { ExchangeLineItemSchema } from './ExchangeLineItem';
import { ReturnReasonSchema } from './ReturnReason';

export const ExchangeSchema = z.object({
  id: z.string(),
  number: z.string(),
  status: z.string(),
  order_id: z.string().nullable(),
  reason_id: z.string().nullable(),
  price_difference: z.string().nullable(),
  display_price_difference: z.string().nullable(),
  approved_at: z.string().nullable(),
  received_at: z.string().nullable(),
  fulfilled_at: z.string().nullable(),
  canceled_at: z.string().nullable(),
  reason: ReturnReasonSchema.optional(),
  exchange_line_items: z.array(ExchangeLineItemSchema).optional(),
});

export type Exchange = z.infer<typeof ExchangeSchema>;