/** * 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 { GooglePayCardResponse, googlePayCardResponseSchema, } from './googlePayCardResponse.js'; import { PhoneNumberWithCountryCode, phoneNumberWithCountryCodeSchema, } from './phoneNumberWithCountryCode.js'; /** Google Pay Wallet payment data. */ export interface GooglePayWalletResponse { /** The full name representation like Mr J Smith. */ name?: 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 number in its canonical international [E.164 numbering plan format](https://www.itu.int/rec/T-REC-E.164/en). */ phoneNumber?: PhoneNumberWithCountryCode; /** The payment card to use to fund a Google Pay payment response. Can be a credit or debit card. */ card?: GooglePayCardResponse; } export const googlePayWalletResponseSchema: Schema = lazy( () => object({ name: ['name', optional(string())], emailAddress: ['email_address', optional(string())], phoneNumber: ['phone_number', optional(phoneNumberWithCountryCodeSchema)], card: ['card', optional(googlePayCardResponseSchema)], }) );