import { InvoicingPriceType } from '../invoicingCommonPayload'; import { InvoicingCreditNote, InvoicingCreditNoteAllocation, InvoicingCreditNoteLineItem } from './creditNoteState'; import { InvoicingCreditNoteStatus, InvoicingCreditNoteType } from './creditNoteTypes'; export interface InvoicingCreditNoteLineItemPayload { amount: number; description: string; quantity: number; unit_amount: number; entity_type?: string; id?: string; } export interface InvoicingCreditNoteAllocationPayload { allocated_amount: number; invoice_id: string; invoice_number: string; allocated_at?: string; } export interface InvoicingCreditNotePayload { id: string; allocations?: InvoicingCreditNoteAllocationPayload[]; amount_allocated?: number; amount_available?: number; amount_refunded?: number; create_reason_code?: string; created_at?: string; credit_note_number?: string; currency_code?: string; currency_symbol?: string; customer_id?: string; customer_name?: string; date?: string; line_items?: InvoicingCreditNoteLineItemPayload[]; linked_refunds?: string[]; notes?: string; price_type?: InvoicingPriceType; reason_code?: string; reference_invoice_id?: string; reference_invoice_number?: string | null; status?: InvoicingCreditNoteStatus; sub_total?: number; subscription_id?: string; total?: number; type?: InvoicingCreditNoteType; } export declare const mapInvoicingCreditNoteLineItemPayloadToState: (payload: InvoicingCreditNoteLineItemPayload, currencyCode: string, currencySymbol: string) => InvoicingCreditNoteLineItem; export declare const mapInvoicingCreditNoteAllocationPayloadToState: (payload: InvoicingCreditNoteAllocationPayload, currencyCode: string, currencySymbol: string) => InvoicingCreditNoteAllocation; export declare const mapInvoicingCreditNotePayloadToState: (payload: InvoicingCreditNotePayload) => InvoicingCreditNote;