/** * PayPal Server SDKLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ import { lazy, object, optional, Schema } from '../schema.js'; import { OrderConfirmApplicationContext, orderConfirmApplicationContextSchema, } from './orderConfirmApplicationContext.js'; import { PaymentSource, paymentSourceSchema } from './paymentSource.js'; /** Payer confirms the intent to pay for the Order using the provided payment source. */ export interface ConfirmOrderRequest { /** The payment source definition. */ paymentSource: PaymentSource; /** Customizes the payer confirmation experience. */ applicationContext?: OrderConfirmApplicationContext; } export const confirmOrderRequestSchema: Schema = lazy(() => object({ paymentSource: ['payment_source', paymentSourceSchema], applicationContext: [ 'application_context', optional(orderConfirmApplicationContextSchema), ], }) );