/**
 * PayPal Server SDKLib
 *
 * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
 */
import { array, lazy, object, optional, string } from '../schema';
import { customerResponseSchema } from './customerResponse';
import { linkDescriptionSchema } from './linkDescription';
import { paymentTokenResponsePaymentSourceSchema, } from './paymentTokenResponsePaymentSource';
export const paymentTokenResponseSchema = object({
    id: ['id', optional(string())],
    customer: ['customer', optional(lazy(() => customerResponseSchema))],
    paymentSource: [
        'payment_source',
        optional(lazy(() => paymentTokenResponsePaymentSourceSchema)),
    ],
    links: ['links', optional(array(lazy(() => linkDescriptionSchema)))],
});
//# sourceMappingURL=paymentTokenResponse.js.map