/** * Generated by orval v8.5.3 🍺 * Do not edit manually. * Space Invoices API * REST API for invoice management, customer management, and accounting operations. Features include cursor-based pagination for efficient data navigation, flexible JSON querying with MongoDB-style operators, full-text search across multiple fields, and comprehensive metadata support for custom tracking. * OpenAPI spec version: 1.0.0 */ import type { CreatePaymentBodyMetadata } from './createPaymentBodyMetadata'; import type { CreatePaymentBodyType } from './createPaymentBodyType'; export type CreatePaymentBody = { /** * @maxLength 36 * @nullable */ invoice_id?: string | null; /** * @maxLength 36 * @nullable */ credit_note_id?: string | null; /** * @maxLength 36 * @nullable */ advance_invoice_id?: string | null; /** * @maxLength 36 * @nullable */ incoming_purchase_document_id?: string | null; /** * @maxLength 36 * @nullable */ applied_to_incoming_purchase_document_id?: string | null; /** @exclusiveMinimum 0 */ amount: number; /** Payment type/method */ type: CreatePaymentBodyType; /** Payment date in YYYY-MM-DD format */ date?: string; /** * @maxLength 100 * @nullable */ tag?: string | null; /** * @maxLength 100 * @nullable */ reference?: string | null; /** * @maxLength 500 * @nullable */ note?: string | null; /** * Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data. * @nullable */ metadata?: CreatePaymentBodyMetadata; /** * Generic outgoing document ID for direct payments. The API infers `invoice_id`, `credit_note_id`, or `advance_invoice_id` from the ID prefix. Prefer this over type-specific fields for new integrations. * @maxLength 36 * @nullable */ document_id?: string | null; }; //# sourceMappingURL=createPaymentBody.d.ts.map