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 { ClaimLineItemSchema } from './ClaimLineItem';
import { ClaimReasonSchema } from './ClaimReason';
import { CustomFieldSchema } from './CustomField';
export const ClaimSchema = z.object({
id: z.string(),
number: z.string(),
status: z.string(),
resolution: z.string().nullable(),
order_id: z.string().nullable(),
reason_id: z.string().nullable(),
refund_total: z.string().nullable(),
display_refund_total: z.string().nullable(),
approved_at: z.string().nullable(),
resolved_at: z.string().nullable(),
denied_at: z.string().nullable(),
canceled_at: z.string().nullable(),
reason: ClaimReasonSchema.optional(),
claim_line_items: z.array(ClaimLineItemSchema).optional(),
custom_fields: z.array(CustomFieldSchema).optional(),
});
export type Claim = z.infer<typeof ClaimSchema>;