/** * 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 { Name, nameSchema } from './name.js'; /** The customer who approves and pays for the order. The customer is also known as the payer. */ export interface SubscriptionPayer { /** 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 account identifier for a PayPal account. */ payerId?: string; /** The name of the party. */ name?: Name; } export const subscriptionPayerSchema: Schema = lazy(() => object({ emailAddress: ['email_address', optional(string())], payerId: ['payer_id', optional(string())], name: ['name', optional(nameSchema)], }) );