import * as z from "zod"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { CustomMappings, CustomMappings$Outbound } from "./custommappings.js"; export type Income = { /** * Total income */ total: number | null; records?: any | undefined; }; export type Expenses = { /** * Total expense */ total: number | null; records?: any | undefined; }; export type NetIncome = { /** * Total net income */ total: number | null; records?: any | undefined; }; export type NetOperatingIncome = { /** * Total net operating income */ total: number | null; records?: any | undefined; }; export type GrossProfit = { /** * Total gross profit */ 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 start date of the report */ endDate?: string | undefined; currency: string; /** * Customer id */ customerId?: string | undefined; income: Income; expenses: Expenses; netIncome?: NetIncome | null | undefined; netOperatingIncome?: NetOperatingIncome | null | undefined; grossProfit?: GrossProfit | null | undefined; /** * When custom mappings are configured on the resource, the result is included here. */ customMappings?: CustomMappings | null | undefined; }; /** @internal */ export declare const Income$inboundSchema: z.ZodType; /** @internal */ export type Income$Outbound = { total: number | null; records?: any | undefined; }; /** @internal */ export declare const Income$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Income$ { /** @deprecated use `Income$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Income$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Income$Outbound` instead. */ type Outbound = Income$Outbound; } export declare function incomeToJSON(income: Income): string; export declare function incomeFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Expenses$inboundSchema: z.ZodType; /** @internal */ export type Expenses$Outbound = { total: number | null; records?: any | undefined; }; /** @internal */ export declare const Expenses$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Expenses$ { /** @deprecated use `Expenses$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Expenses$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Expenses$Outbound` instead. */ type Outbound = Expenses$Outbound; } export declare function expensesToJSON(expenses: Expenses): string; export declare function expensesFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const NetIncome$inboundSchema: z.ZodType; /** @internal */ export type NetIncome$Outbound = { total: number | null; records?: any | undefined; }; /** @internal */ export declare const NetIncome$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace NetIncome$ { /** @deprecated use `NetIncome$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `NetIncome$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `NetIncome$Outbound` instead. */ type Outbound = NetIncome$Outbound; } export declare function netIncomeToJSON(netIncome: NetIncome): string; export declare function netIncomeFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const NetOperatingIncome$inboundSchema: z.ZodType; /** @internal */ export type NetOperatingIncome$Outbound = { total: number | null; records?: any | undefined; }; /** @internal */ export declare const NetOperatingIncome$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace NetOperatingIncome$ { /** @deprecated use `NetOperatingIncome$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `NetOperatingIncome$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `NetOperatingIncome$Outbound` instead. */ type Outbound = NetOperatingIncome$Outbound; } export declare function netOperatingIncomeToJSON(netOperatingIncome: NetOperatingIncome): string; export declare function netOperatingIncomeFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const GrossProfit$inboundSchema: z.ZodType; /** @internal */ export type GrossProfit$Outbound = { total: number | null; records?: any | undefined; }; /** @internal */ export declare const GrossProfit$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace GrossProfit$ { /** @deprecated use `GrossProfit$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `GrossProfit$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `GrossProfit$Outbound` instead. */ type Outbound = GrossProfit$Outbound; } export declare function grossProfitToJSON(grossProfit: GrossProfit): string; export declare function grossProfitFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ProfitAndLoss$inboundSchema: z.ZodType; /** @internal */ export type ProfitAndLoss$Outbound = { id?: string | undefined; report_name: string; start_date?: string | undefined; end_date?: string | undefined; currency: string; customer_id?: string | undefined; income: Income$Outbound; expenses: Expenses$Outbound; net_income?: NetIncome$Outbound | null | undefined; net_operating_income?: NetOperatingIncome$Outbound | null | undefined; gross_profit?: GrossProfit$Outbound | null | undefined; custom_mappings?: CustomMappings$Outbound | null | undefined; }; /** @internal */ export declare const ProfitAndLoss$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace ProfitAndLoss$ { /** @deprecated use `ProfitAndLoss$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `ProfitAndLoss$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `ProfitAndLoss$Outbound` instead. */ type Outbound = ProfitAndLoss$Outbound; } export declare function profitAndLossToJSON(profitAndLoss: ProfitAndLoss): string; export declare function profitAndLossFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=profitandloss.d.ts.map