/** * 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 { MobileWebContext, mobileWebContextSchema, } from './mobileWebContext.js'; import { NativeAppContext, nativeAppContextSchema, } from './nativeAppContext.js'; /** Merchant provided details of the native app or mobile web browser to facilitate buyer's app switch to the PayPal consumer app. */ export interface AppSwitchContext { /** Merchant provided, buyer's native app preferences to app switch to the PayPal consumer app. */ nativeApp?: NativeAppContext; /** Buyer's mobile web browser context to app switch to the PayPal consumer app. */ mobileWeb?: MobileWebContext; } export const appSwitchContextSchema: Schema = lazy(() => object({ nativeApp: ['native_app', optional(nativeAppContextSchema)], mobileWeb: ['mobile_web', optional(mobileWebContextSchema)], }) );