/**
 * PayPal Server SDKLib
 *
 * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
 */
import { array, lazy, object, optional } from '../schema';
import { checkoutPaymentIntentSchema, } from './checkoutPaymentIntent';
import { orderApplicationContextSchema, } from './orderApplicationContext';
import { payerSchema } from './payer';
import { paymentSourceSchema } from './paymentSource';
import { purchaseUnitRequestSchema, } from './purchaseUnitRequest';
export const orderRequestSchema = object({
    intent: ['intent', checkoutPaymentIntentSchema],
    payer: ['payer', optional(lazy(() => payerSchema))],
    purchaseUnits: [
        'purchase_units',
        array(lazy(() => purchaseUnitRequestSchema)),
    ],
    paymentSource: ['payment_source', optional(lazy(() => paymentSourceSchema))],
    applicationContext: [
        'application_context',
        optional(lazy(() => orderApplicationContextSchema)),
    ],
});
//# sourceMappingURL=orderRequest.js.map