import type * as Samsara from "../../../../index.js"; /** * @example * { * file: { * base64Content: "JVBERi0xLjQKJeLjz9MKMyAwIG9iago8P...", * contentType: "application/pdf" * } * } */ export interface WorkOrdersPostInvoiceScanRequestBody { /** Asset ID to create a new work order for the invoice. Provide either workOrderId OR assetId, but not both. If assetId is provided, a new work order will be created for that asset. If workOrderId is provided instead, the invoice will be attached to the existing work order. */ assetId?: string; file: Samsara.InvoiceScanFileRequestBody; /** Work order ID to attach the invoice to an existing work order. Provide either workOrderId OR assetId, but not both. If workOrderId is provided, the invoice will be attached to the existing work order. If assetId is provided instead, a new work order will be created for that asset. */ workOrderId?: string; }