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.

822 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().nullable(),
  new_variant_price: z.string().nullable(),
  price_difference: z.string().nullable(),
  original_tax_total: z.string().nullable(),
  new_tax_total: z.string().nullable(),
  original_variant_id: z.string().nullable(),
  new_variant_id: z.string().nullable(),
  line_item_id: z.string().nullable(),
  fulfillment_item_id: z.string().nullable(),
  original_variant: VariantSchema.optional(),
  new_variant: VariantSchema.optional(),
});

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