/** * PayPal Server SDKLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ import { lazy, object, optional, Schema, string } from '../schema.js'; import { PhoneWithType, phoneWithTypeSchema } from './phoneWithType.js'; /** The details about a customer in PayPal's system of record. */ export interface SubscriptionCustomerInformation { /** The unique ID for a customer generated by PayPal. */ id?: string; /** The internationalized email address. Note: Up to 64 characters are allowed before and 255 characters are allowed after the @ sign. However, the generally accepted maximum length for an email address is 254 characters. The pattern verifies that an unquoted @ sign exists. */ emailAddress?: string; /** The phone information. */ phone?: PhoneWithType; } export const subscriptionCustomerInformationSchema: Schema = lazy( () => object({ id: ['id', optional(string())], emailAddress: ['email_address', optional(string())], phone: ['phone', optional(phoneWithTypeSchema)], }) );