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.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
// 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>;