/** * PayPal Server SDKLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ import { array, object, Schema, string } from '../schema.js'; import { CallbackEvents, callbackEventsSchema } from './callbackEvents.js'; /** CallBack Configuration that the merchant can provide to PayPal/Venmo. */ export interface CallbackConfiguration { /** An array of callback events merchant can subscribe to for the corresponding callback url. */ callbackEvents: CallbackEvents[]; /** Merchant provided CallBack url.PayPal/Venmo will use this url to call the merchant back when the events occur .PayPal/Venmo expects a secured url usually in the https format.merchant can append the cart id or other params part of the url as query or path params. */ callbackUrl: string; } export const callbackConfigurationSchema: Schema = object( { callbackEvents: ['callback_events', array(callbackEventsSchema)], callbackUrl: ['callback_url', string()], } );