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 type Market from '../../types/generated/Market';
import { CountrySchema } from './Country';
export const MarketSchema = z.object({
id: z.string(),
name: z.string(),
currency: z.string(),
default_locale: z.string(),
tax_inclusive: z.boolean(),
default: z.boolean(),
country_codes: z.array(z.string()),
country_isos: z.array(z.string()),
supported_locales: z.array(z.string()),
get countries() { return z.array(CountrySchema).optional(); },
}) as unknown as z.ZodObject<{
id: z.ZodType<Market['id']>;
name: z.ZodType<Market['name']>;
currency: z.ZodType<Market['currency']>;
default_locale: z.ZodType<Market['default_locale']>;
tax_inclusive: z.ZodType<Market['tax_inclusive']>;
default: z.ZodType<Market['default']>;
country_codes: z.ZodType<Market['country_codes']>;
country_isos: z.ZodType<Market['country_isos']>;
supported_locales: z.ZodType<Market['supported_locales']>;
countries: z.ZodOptional<z.ZodType<Exclude<Market['countries'], undefined>>>;
}>;
export type { Market };