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 { AddressOwnerSchema } from './AddressOwner';
import { CustomFieldSchema } from './CustomField';
export const AddressSchema = z.object({
id: z.string(),
label: z.string().nullable(),
first_name: z.string().nullable(),
last_name: z.string().nullable(),
full_name: z.string(),
address1: z.string().nullable(),
address2: z.string().nullable(),
postal_code: z.string().nullable(),
city: z.string().nullable(),
phone: z.string().nullable(),
company: z.string().nullable(),
country_name: z.string(),
country_code: z.string(),
state_text: z.string().nullable(),
state_code: z.string().nullable(),
quick_checkout: z.boolean(),
is_default_billing: z.boolean(),
is_default_shipping: z.boolean(),
state_name: z.string().nullable(),
owner: AddressOwnerSchema.nullable(),
custom_fields: z.array(CustomFieldSchema).optional(),
metadata: z.record(z.string(), z.unknown()),
created_at: z.string(),
updated_at: z.string(),
latitude: z.number().nullable(),
longitude: z.number().nullable(),
customer_id: z.string().nullable(),
});
export type Address = z.infer<typeof AddressSchema>;