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 { CustomFieldSchema } from './CustomField';
import { DeliverySchema } from './Delivery';
import { DeliveryMethodSchema } from './DeliveryMethod';
import { DeliveryRateSchema } from './DeliveryRate';
import { StockLocationSchema } from './StockLocation';
import { TaxLineSchema } from './TaxLine';
export const FulfillmentSchema = z.object({
id: z.string(),
number: z.string(),
tracking: z.string().nullable(),
tracking_url: z.string().nullable(),
pickup_point_data: z.record(z.string(), z.unknown()).nullable(),
selected_delivery_rate_id: z.string().nullable(),
unpriced: z.boolean(),
cost: z.string().nullable(),
display_cost: z.string().nullable(),
total: z.string().nullable(),
display_total: z.string().nullable(),
discount_total: z.string().nullable(),
display_discount_total: z.string().nullable(),
additional_tax_total: z.string().nullable(),
display_additional_tax_total: z.string().nullable(),
included_tax_total: z.string().nullable(),
display_included_tax_total: z.string().nullable(),
tax_total: z.string().nullable(),
display_tax_total: z.string().nullable(),
status: z.string(),
fulfillment_type: z.string(),
fulfilled_at: z.string().nullable(),
delivered_at: z.string().nullable(),
items: z.array(z.object({ item_id: z.string(), variant_id: z.string(), quantity: z.number() })),
deliveries: z.array(DeliverySchema),
delivery_method: DeliveryMethodSchema,
stock_location: StockLocationSchema,
delivery_rates: z.array(DeliveryRateSchema),
tax_lines: z.array(TaxLineSchema).optional(),
custom_fields: z.array(CustomFieldSchema).optional(),
});
export type Fulfillment = z.infer<typeof FulfillmentSchema>;