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.

853 B
Raw Blame
// This file is auto-generated. Do not edit directly.
import { z } from 'zod';
import { VariantSchema } from './Variant';

export const ExchangeLineItemSchema = z.object({
  id: z.string(),
  quantity: z.number(),
  received_quantity: z.number(),
  resellable: z.boolean(),
  original_price: z.string(),
  new_variant_price: z.string(),
  price_difference: z.string(),
  original_tax_total: z.string(),
  new_tax_total: z.string(),
  original_variant_id: z.string().nullable(),
  new_variant_id: z.string().nullable(),
  line_item_id: z.string().nullable(),
  fulfillment_item_id: z.string().nullable(),
  get original_variant() { return VariantSchema.optional(); },
  get new_variant() { return VariantSchema.optional(); },
  created_at: z.string(),
  updated_at: z.string(),
});

export type ExchangeLineItem = z.infer<typeof ExchangeLineItemSchema>;