import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Currency } from "./currency.js"; import { ProfitAndLossIndicator } from "./profitandlossindicator.js"; import { ProfitAndLossType } from "./profitandlosstype.js"; /** * The operating income accounts */ export type Income = { /** * A unique identifier for an object. */ id?: string | undefined; /** * The account code of the account */ code?: string | undefined; /** * The name of the account. */ title?: string | undefined; /** * The type of profit and loss */ type?: ProfitAndLossType | null | undefined; /** * The aggregated total of all accounts within this category. */ total: number | null; records?: any | undefined; }; /** * The cost of goods sold accounts */ export type CostOfGoodsSold = { /** * A unique identifier for an object. */ id?: string | undefined; /** * The account code of the account */ code?: string | undefined; /** * The name of the account. */ title?: string | undefined; /** * The type of profit and loss */ type?: ProfitAndLossType | null | undefined; /** * The aggregated total of all accounts within this category. */ total?: number | null | undefined; records?: any | undefined; }; /** * The operating expenses accounts */ export type Expenses = { /** * A unique identifier for an object. */ id?: string | undefined; /** * The account code of the account */ code?: string | undefined; /** * The name of the account. */ title?: string | undefined; /** * The type of profit and loss */ type?: ProfitAndLossType | null | undefined; /** * The aggregated total of all accounts within this category. */ total: number | null; records?: any | undefined; }; /** * The other income accounts */ export type OtherIncome = { /** * A unique identifier for an object. */ id?: string | undefined; /** * The account code of the account */ code?: string | undefined; /** * The name of the account. */ title?: string | undefined; /** * The type of profit and loss */ type?: ProfitAndLossType | null | undefined; /** * The aggregated total of all accounts within this category. */ total?: number | null | undefined; records?: any | undefined; }; /** * The other expenses accounts */ export type OtherExpenses = { /** * A unique identifier for an object. */ id?: string | undefined; /** * The account code of the account */ code?: string | undefined; /** * The name of the account. */ title?: string | undefined; /** * The type of profit and loss */ type?: ProfitAndLossType | null | undefined; /** * The aggregated total of all accounts within this category. */ total?: number | null | undefined; records?: any | undefined; }; /** * The accounts not categorized in the other sections */ export type UncategorizedAccounts = { /** * A unique identifier for an object. */ id?: string | undefined; /** * The account code of the account */ code?: string | undefined; /** * The name of the account. */ title?: string | undefined; /** * The type of profit and loss */ type?: ProfitAndLossType | null | undefined; /** * The aggregated total of all accounts within this category. */ total: number | null; records?: any | undefined; }; export type ProfitAndLoss = { /** * A unique identifier for an object. */ id?: string | undefined; /** * The name of the report */ reportName: string; /** * The start date of the report */ startDate?: string | undefined; /** * The end date of the report */ endDate?: string | undefined; /** * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). */ currency?: Currency | null | undefined; /** * The operating income accounts */ income: Income; /** * The cost of goods sold accounts */ costOfGoodsSold?: CostOfGoodsSold | undefined; /** * The operating expenses accounts */ expenses: Expenses; /** * The other income accounts */ otherIncome?: OtherIncome | undefined; /** * The other expenses accounts */ otherExpenses?: OtherExpenses | undefined; /** * The accounts not categorized in the other sections */ uncategorizedAccounts?: UncategorizedAccounts | undefined; grossProfit?: ProfitAndLossIndicator | undefined; netOperatingIncome?: ProfitAndLossIndicator | undefined; netIncome?: ProfitAndLossIndicator | undefined; /** * When custom mappings are configured on the resource, the result is included here. */ customMappings?: { [k: string]: any; } | null | undefined; /** * The customer id */ customer?: string | undefined; }; /** @internal */ export declare const Income$inboundSchema: z.ZodType; export declare function incomeFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const CostOfGoodsSold$inboundSchema: z.ZodType; export declare function costOfGoodsSoldFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Expenses$inboundSchema: z.ZodType; export declare function expensesFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const OtherIncome$inboundSchema: z.ZodType; export declare function otherIncomeFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const OtherExpenses$inboundSchema: z.ZodType; export declare function otherExpensesFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const UncategorizedAccounts$inboundSchema: z.ZodType; export declare function uncategorizedAccountsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ProfitAndLoss$inboundSchema: z.ZodType; export declare function profitAndLossFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=profitandloss.d.ts.map