/**
 * PayPal Server SDKLib
 *
 * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
 */
import { boolean, lazy, object, optional, string } from '../schema';
import { capturePaymentInstructionSchema, } from './capturePaymentInstruction';
import { moneySchema } from './money';
export const captureRequestSchema = object({
    invoiceId: ['invoice_id', optional(string())],
    noteToPayer: ['note_to_payer', optional(string())],
    amount: ['amount', optional(lazy(() => moneySchema))],
    finalCapture: ['final_capture', optional(boolean())],
    paymentInstruction: [
        'payment_instruction',
        optional(lazy(() => capturePaymentInstructionSchema)),
    ],
    softDescriptor: ['soft_descriptor', optional(string())],
});
//# sourceMappingURL=captureRequest.js.map