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 { EmailAddressSchema } from './EmailAddress';
import { EmailCustomerGroupSchema } from './EmailCustomerGroup';
import { EmailNewsletterSubscriberSchema } from './EmailNewsletterSubscriber';
export const EmailCustomerSchema = z.object({
id: z.string(),
email: z.string(),
first_name: z.string().nullable(),
last_name: z.string().nullable(),
phone: z.string().nullable(),
accepts_email_marketing: z.boolean(),
email_marketing_consent_updated_at: z.string().nullable(),
full_name: z.string(),
available_store_credit_total: z.string(),
addresses: z.array(EmailAddressSchema),
default_billing_address: EmailAddressSchema.nullable(),
default_shipping_address: EmailAddressSchema.nullable(),
newsletter_subscriber: EmailNewsletterSubscriberSchema.nullable(),
customer_groups: z.array(EmailCustomerGroupSchema),
});
export type EmailCustomer = z.infer<typeof EmailCustomerSchema>;