/** * Paze Checkout APILib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ import { boolean, lazy, object, optional, Schema, string } from '../schema.js'; import { ShippingAddress, shippingAddressSchema } from './shippingAddress.js'; export interface EcommerceData { cartContainsGiftCard?: boolean; orderForPickup?: boolean; orderHighestCost?: string; orderQuantity?: string; finalShippingAddress?: ShippingAddress; } export const ecommerceDataSchema: Schema = lazy(() => object({ cartContainsGiftCard: ['cartContainsGiftCard', optional(boolean())], orderForPickup: ['orderForPickup', optional(boolean())], orderHighestCost: ['orderHighestCost', optional(string())], orderQuantity: ['orderQuantity', optional(string())], finalShippingAddress: [ 'finalShippingAddress', optional(shippingAddressSchema), ], }) );