import * as z from "zod/v3"; import { OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { LinkedLedgerAccount, LinkedLedgerAccount$Outbound } from "./linkedledgeraccount.js"; import { LinkedTaxRate } from "./linkedtaxrate.js"; import { LinkedTaxRateInput, LinkedTaxRateInput$Outbound } from "./linkedtaxrateinput.js"; import { PassThroughBody, PassThroughBody$Outbound } from "./passthroughbody.js"; /** * The status of the expense category. */ export declare const ExpenseCategoryStatus: { readonly Active: "active"; readonly Inactive: "inactive"; }; /** * The status of the expense category. */ export type ExpenseCategoryStatus = OpenEnum; export type ExpenseCategory = { /** * A unique identifier for an object. */ id?: string | undefined; /** * Id to be displayed. */ displayId?: string | null | undefined; /** * The name of the expense category. */ name: string; /** * The code or external identifier of the expense category. */ code?: string | null | undefined; /** * The description of the expense category. */ description?: string | null | undefined; /** * The status of the expense category. */ status?: ExpenseCategoryStatus | null | undefined; account?: LinkedLedgerAccount | null | undefined; offsetAccount?: LinkedLedgerAccount | null | undefined; taxRate?: LinkedTaxRate | undefined; /** * Whether the expense category requires rate/quantity entry (e.g. mileage at $/mile). */ rateRequired?: boolean | null | undefined; /** * Default rate when rate_required is true (e.g. 0.67 for mileage). */ defaultRate?: number | null | undefined; /** * When custom mappings are configured on the resource, the result is included here. */ customMappings?: { [k: string]: any; } | null | undefined; /** * The third-party API ID of original entity */ downstreamId?: string | null | undefined; /** * A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. */ rowVersion?: string | null | undefined; /** * The user who last updated the object. */ updatedBy?: string | null | undefined; /** * The user who created the object. */ createdBy?: string | null | undefined; /** * The date and time when the object was last updated. */ updatedAt?: Date | null | undefined; /** * The date and time when the object was created. */ createdAt?: Date | null | undefined; /** * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. */ passThrough?: Array | undefined; }; export type ExpenseCategoryInput = { /** * Id to be displayed. */ displayId?: string | null | undefined; /** * The name of the expense category. */ name: string; /** * The code or external identifier of the expense category. */ code?: string | null | undefined; /** * The description of the expense category. */ description?: string | null | undefined; /** * The status of the expense category. */ status?: ExpenseCategoryStatus | null | undefined; account?: LinkedLedgerAccount | null | undefined; offsetAccount?: LinkedLedgerAccount | null | undefined; taxRate?: LinkedTaxRateInput | undefined; /** * Whether the expense category requires rate/quantity entry (e.g. mileage at $/mile). */ rateRequired?: boolean | null | undefined; /** * Default rate when rate_required is true (e.g. 0.67 for mileage). */ defaultRate?: number | null | undefined; /** * A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. */ rowVersion?: string | null | undefined; /** * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. */ passThrough?: Array | undefined; }; /** @internal */ export declare const ExpenseCategoryStatus$inboundSchema: z.ZodType; /** @internal */ export declare const ExpenseCategoryStatus$outboundSchema: z.ZodType; /** @internal */ export declare const ExpenseCategory$inboundSchema: z.ZodType; export declare function expenseCategoryFromJSON(jsonString: string): SafeParseResult; /** @internal */ export type ExpenseCategoryInput$Outbound = { display_id?: string | null | undefined; name: string; code?: string | null | undefined; description?: string | null | undefined; status?: string | null | undefined; account?: LinkedLedgerAccount$Outbound | null | undefined; offset_account?: LinkedLedgerAccount$Outbound | null | undefined; tax_rate?: LinkedTaxRateInput$Outbound | undefined; rate_required?: boolean | null | undefined; default_rate?: number | null | undefined; row_version?: string | null | undefined; pass_through?: Array | undefined; }; /** @internal */ export declare const ExpenseCategoryInput$outboundSchema: z.ZodType; export declare function expenseCategoryInputToJSON(expenseCategoryInput: ExpenseCategoryInput): string; //# sourceMappingURL=expensecategory.d.ts.map