import { AccountBasePayload } from '../../account/accountPayload'; import { ClassBasePayload } from '../../class/classPayload'; import { InvoicingPlanTier, InvoicingProduct } from './productState'; export interface InvoicingPlanTierPayload { price: number; starting_unit: number; ending_unit?: number; package_size?: number; pricing_type?: string; } export interface InvoicingAccountingDetailPayload { /** * `account` and `accounting_class` hold whole records — what the service stores * and what the catalog payload builder sends. The bare `accounting_code` / * `accounting_category_1` are the older shape, still read so a plan saved * before the rollover prefills. */ account?: Partial | null; accounting_category_1?: string; accounting_category_2?: string; accounting_category_3?: string; accounting_category_4?: string; accounting_class?: Partial | null; accounting_code?: string; sku?: string; } export interface InvoicingProductPayload { id: string; accounting_detail?: InvoicingAccountingDetailPayload; applicable_items?: string[]; archived_at?: string; billing_cycles?: number; created_at?: string; currency_code?: string; currency_symbol?: string; description?: string; enabled?: boolean; enabled_for_checkout?: boolean; enabled_in_portal?: boolean; free_quantity?: number; gift_claim_redirect_url?: string; included_in_mrr?: boolean; invoice_notes?: string; is_giftable?: boolean; is_shippable?: boolean; is_taxable?: boolean; item_applicability?: string; item_id?: string; item_type?: string; metered?: boolean; name?: string; period?: number; period_unit?: string; price?: number; price_code?: string; pricing_model?: string; product_code?: string; proration_type?: string; shipping_period?: number; shipping_period_unit?: string; show_description_in_invoices?: boolean; show_description_in_quotes?: boolean; status?: string; subscription_count?: number; tiers?: InvoicingPlanTierPayload[]; trial_end_action?: string; trial_period?: number; trial_period_unit?: string; type?: string; unit?: string; updated_at?: string; usage_accumulation_reset_frequency?: string; usage_calculation?: string; } export declare const mapInvoicingPlanTierPayloadToState: (payload: InvoicingPlanTierPayload, currencyCode: string, currencySymbol: string) => InvoicingPlanTier; export declare const mapInvoicingProductPayloadToState: (payload: InvoicingProductPayload) => InvoicingProduct;