import { IPaymentMethodDetails } from './customer.types'; import { EnumValues, IPaginatedResults } from './types'; export type IPayment = { id: string; customer_id: string; customer_name: string; customer_email: string; customer_external_id?: string | null; connector_id?: string | null; created_at?: string; connector_name: string | null; organisation_id: string; external_id: string | null; payment_method: string; payment_method_details?: IPaymentMethodDetails; type: string; amount: string; currency_code: string; status: EPaymentStatusType; parent_id?: string | null; invoices: IPaymentInvoice[]; transactions: { status: string; timestamp: string; payment_type: EPaymentType; amount: string; currency_code: string; }[]; timestamp: string; receipt_number: string | null; amount_refunded: string; error_text?: string | null; balance_transactions?: unknown; }; export type IPaymentInvoice = { invoice_id: string; payment_id: string; amount: string; currency_code: string; invoice_number: string; status: string; amount_refunded: string; invoice_total: string; created_at: string; }; export declare const PaymentType: { readonly REFUND: "Refund"; readonly PAYMENT: "Payment"; }; export type EPaymentType = EnumValues; export declare const PaymentStatusType: { readonly IN_PROGRESS: "in_progress"; readonly REQUIRES_ACTION: "requires_action"; readonly PENDING_CHARGE: "pending_charge"; readonly AUTHORIZED: "authorized"; readonly CREATED: "created"; readonly SUCCESS: "success"; readonly VOIDED: "voided"; readonly FAILED: "failed"; readonly CANCELED: "canceled"; readonly REFUNDED: "refunded"; readonly PARTIALLY_REFUNDED: "partially_refunded"; readonly OTHER: "other"; }; export type EPaymentStatusType = EnumValues; export type IPaymentsList = IPaginatedResults;