/**
 * Paypal Server SDKLib
 *
 * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
 */

import { object, optional, Schema, string } from '../schema';

/** The details about a customer in PayPal's system of record. */
export interface VenmoWalletCustomerInformation {
  /** The unique ID for a customer generated by PayPal. */
  id?: string;
  /** The internationalized email address.<blockquote><strong>Note:</strong> Up to 64 characters are allowed before and 255 characters are allowed after the <code>@</code> sign. However, the generally accepted maximum length for an email address is 254 characters. The pattern verifies that an unquoted <code>@</code> sign exists.</blockquote> */
  emailAddress?: string;
}

export const venmoWalletCustomerInformationSchema: Schema<VenmoWalletCustomerInformation> = object(
  {
    id: ['id', optional(string())],
    emailAddress: ['email_address', optional(string())],
  }
);
