/** * PayPal Server SDKLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ import { array, lazy, object, optional, Schema, string } from '../schema.js'; import { BalanceInformation, balanceInformationSchema, } from './balanceInformation.js'; /** The balances response information. */ export interface BalancesResponse { /** An array of balance detail objects. */ balances?: BalanceInformation[]; /** The PayPal payer ID, which is a masked version of the PayPal account number intended for use with third parties. The account number is reversibly encrypted and a proprietary variant of Base32 is used to encode the result. */ accountId?: string; /** The date and time, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6). Seconds are required while fractional seconds are optional. Note: The regular expression provides guidance but does not reject all invalid dates. */ asOfTime?: string; /** The date and time, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6). Seconds are required while fractional seconds are optional. Note: The regular expression provides guidance but does not reject all invalid dates. */ lastRefreshTime?: string; } export const balancesResponseSchema: Schema = lazy(() => object({ balances: ['balances', optional(array(balanceInformationSchema))], accountId: ['account_id', optional(string())], asOfTime: ['as_of_time', optional(string())], lastRefreshTime: ['last_refresh_time', optional(string())], }) );