/**
 * 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 { orderUpdateCallbackShippingAddressSchema, } from './orderUpdateCallbackShippingAddress';
import { orderUpdateCallbackShippingOptionSchema, } from './orderUpdateCallbackShippingOption';
import { purchaseUnitRequestSchema, } from './purchaseUnitRequest';
export const orderUpdateCallbackRequestSchema = object({
    id: ['id', optional(string())],
    shippingAddress: [
        'shipping_address',
        lazy(() => orderUpdateCallbackShippingAddressSchema),
    ],
    shippingOption: [
        'shipping_option',
        optional(lazy(() => orderUpdateCallbackShippingOptionSchema)),
    ],
    purchaseUnits: [
        'purchase_units',
        array(lazy(() => purchaseUnitRequestSchema)),
    ],
});
//# sourceMappingURL=orderUpdateCallbackRequest.js.map