import * as z from "zod"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { CustomMappings, CustomMappings$Outbound } from "./custommappings.js"; import { PassThroughBody, PassThroughBody$Outbound } from "./passthroughbody.js"; export type Components = { id?: string | null | undefined; name?: string | undefined; rate?: number | null | undefined; compound?: boolean | null | undefined; }; /** * Tax rate status */ export declare const TaxRateStatus: { readonly Active: "active"; readonly Inactive: "inactive"; readonly Archived: "archived"; }; /** * Tax rate status */ export type TaxRateStatus = ClosedEnum; export type TaxRate = { /** * ID assigned to identify this tax rate. */ id?: string | null | undefined; /** * Name assigned to identify this tax rate. */ name?: string | undefined; /** * Tax code assigned to identify this tax rate. */ code?: string | null | undefined; /** * Description of tax rate */ description?: string | null | undefined; /** * Effective tax rate */ effectiveTaxRate?: number | null | undefined; /** * Not compounded sum of the components of a tax rate */ totalTaxRate?: number | null | undefined; /** * Unique identifier for the account for tax collected. */ taxPayableAccountId?: string | null | undefined; /** * Unique identifier for the account for tax remitted. */ taxRemittedAccountId?: string | null | undefined; components?: Array | null | undefined; /** * Tax type used to indicate the source of tax collected or paid */ type?: string | null | undefined; /** * Report Tax type to aggregate tax collected or paid for reporting purposes */ reportTaxType?: string | null | undefined; /** * ID of the original tax rate from which the new tax rate is derived. Helps to understand the relationship between corresponding tax rate entities. */ originalTaxRateId?: string | null | undefined; /** * Tax rate status */ status?: TaxRateStatus | null | undefined; /** * When custom mappings are configured on the resource, the result is included here. */ customMappings?: CustomMappings | 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 TaxRateInput = { /** * ID assigned to identify this tax rate. */ id?: string | null | undefined; /** * Name assigned to identify this tax rate. */ name?: string | undefined; /** * Tax code assigned to identify this tax rate. */ code?: string | null | undefined; /** * Description of tax rate */ description?: string | null | undefined; /** * Effective tax rate */ effectiveTaxRate?: number | null | undefined; /** * Not compounded sum of the components of a tax rate */ totalTaxRate?: number | null | undefined; /** * Unique identifier for the account for tax collected. */ taxPayableAccountId?: string | null | undefined; /** * Unique identifier for the account for tax remitted. */ taxRemittedAccountId?: string | null | undefined; components?: Array | null | undefined; /** * Tax type used to indicate the source of tax collected or paid */ type?: string | null | undefined; /** * Report Tax type to aggregate tax collected or paid for reporting purposes */ reportTaxType?: string | null | undefined; /** * ID of the original tax rate from which the new tax rate is derived. Helps to understand the relationship between corresponding tax rate entities. */ originalTaxRateId?: string | null | undefined; /** * Tax rate status */ status?: TaxRateStatus | 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 Components$inboundSchema: z.ZodType; /** @internal */ export type Components$Outbound = { id?: string | null | undefined; name?: string | undefined; rate?: number | null | undefined; compound?: boolean | null | undefined; }; /** @internal */ export declare const Components$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 Components$ { /** @deprecated use `Components$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Components$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Components$Outbound` instead. */ type Outbound = Components$Outbound; } export declare function componentsToJSON(components: Components): string; export declare function componentsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const TaxRateStatus$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const TaxRateStatus$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace TaxRateStatus$ { /** @deprecated use `TaxRateStatus$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Active: "active"; readonly Inactive: "inactive"; readonly Archived: "archived"; }>; /** @deprecated use `TaxRateStatus$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Active: "active"; readonly Inactive: "inactive"; readonly Archived: "archived"; }>; } /** @internal */ export declare const TaxRate$inboundSchema: z.ZodType; /** @internal */ export type TaxRate$Outbound = { id?: string | null | undefined; name?: string | undefined; code?: string | null | undefined; description?: string | null | undefined; effective_tax_rate?: number | null | undefined; total_tax_rate?: number | null | undefined; tax_payable_account_id?: string | null | undefined; tax_remitted_account_id?: string | null | undefined; components?: Array | null | undefined; type?: string | null | undefined; report_tax_type?: string | null | undefined; original_tax_rate_id?: string | null | undefined; status?: string | null | undefined; custom_mappings?: CustomMappings$Outbound | null | undefined; row_version?: string | null | undefined; updated_by?: string | null | undefined; created_by?: string | null | undefined; updated_at?: string | null | undefined; created_at?: string | null | undefined; pass_through?: Array | undefined; }; /** @internal */ export declare const TaxRate$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 TaxRate$ { /** @deprecated use `TaxRate$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `TaxRate$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `TaxRate$Outbound` instead. */ type Outbound = TaxRate$Outbound; } export declare function taxRateToJSON(taxRate: TaxRate): string; export declare function taxRateFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const TaxRateInput$inboundSchema: z.ZodType; /** @internal */ export type TaxRateInput$Outbound = { id?: string | null | undefined; name?: string | undefined; code?: string | null | undefined; description?: string | null | undefined; effective_tax_rate?: number | null | undefined; total_tax_rate?: number | null | undefined; tax_payable_account_id?: string | null | undefined; tax_remitted_account_id?: string | null | undefined; components?: Array | null | undefined; type?: string | null | undefined; report_tax_type?: string | null | undefined; original_tax_rate_id?: string | null | undefined; status?: string | null | undefined; row_version?: string | null | undefined; pass_through?: Array | undefined; }; /** @internal */ export declare const TaxRateInput$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 TaxRateInput$ { /** @deprecated use `TaxRateInput$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `TaxRateInput$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `TaxRateInput$Outbound` instead. */ type Outbound = TaxRateInput$Outbound; } export declare function taxRateInputToJSON(taxRateInput: TaxRateInput): string; export declare function taxRateInputFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=taxrate.d.ts.map