/** * 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 { PaymentAdvanceInvoice } from './paymentAdvanceInvoice'; import type { PaymentAppliedToIncomingPurchaseDocument } from './paymentAppliedToIncomingPurchaseDocument'; import type { PaymentCreditNote } from './paymentCreditNote'; import type { PaymentIncomingPurchaseDocument } from './paymentIncomingPurchaseDocument'; import type { PaymentInvoice } from './paymentInvoice'; import type { PaymentMetadata } from './paymentMetadata'; import type { PaymentType } from './paymentType'; /** * Payment record for an invoice, credit note, or advance invoice */ export interface Payment { /** @maxLength 36 */ id: string; /** * @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; /** * @minimum -140737488355328 * @maximum 140737488355327 */ amount: number; /** @maxLength 3 */ currency_code: string; /** * @minimum -140737488355328 * @maximum 140737488355327 */ amount_converted: number; /** Payment type/method */ type: PaymentType; /** Date the payment was received (ISO 8601 datetime at midnight UTC) */ date: string; /** * @maxLength 100 * @nullable */ tag?: string | null; /** * @maxLength 100 * @nullable */ reference?: string | null; /** * @maxLength 500 * @nullable */ note?: string | null; /** @maxLength 36 */ entity_id: string; /** * 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?: PaymentMetadata; /** @nullable */ deleted_at?: string | null; created_at: string; updated_at: string; /** * Related invoice * @nullable */ Invoice?: PaymentInvoice; /** * Related credit note * @nullable */ CreditNote?: PaymentCreditNote; /** * Related advance invoice * @nullable */ AdvanceInvoice?: PaymentAdvanceInvoice; /** * Related incoming purchase document * @nullable */ IncomingPurchaseDocument?: PaymentIncomingPurchaseDocument; /** * Related incoming purchase document * @nullable */ AppliedToIncomingPurchaseDocument?: PaymentAppliedToIncomingPurchaseDocument; } //# sourceMappingURL=payment.d.ts.map