import * as z from "zod"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { RFCDate } from "../../types/rfcdate.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Address, Address$Outbound } from "./address.js"; import { Currency } from "./currency.js"; import { CustomMappings, CustomMappings$Outbound } from "./custommappings.js"; import { Email, Email$Outbound } from "./email.js"; import { PhoneNumber, PhoneNumber$Outbound } from "./phonenumber.js"; import { TaxRate, TaxRate$Outbound } from "./taxrate.js"; /** * Based on the status some functionality is enabled or disabled. */ export declare const CompanyStatus: { readonly Active: "active"; readonly Inactive: "inactive"; }; /** * Based on the status some functionality is enabled or disabled. */ export type CompanyStatus = ClosedEnum; /** * The start month of fiscal year. */ export declare const TheStartMonthOfFiscalYear: { readonly January: "January"; readonly February: "February"; readonly March: "March"; readonly April: "April"; readonly May: "May"; readonly June: "June"; readonly July: "July"; readonly August: "August"; readonly September: "September"; readonly October: "October"; readonly November: "November"; readonly December: "December"; }; /** * The start month of fiscal year. */ export type TheStartMonthOfFiscalYear = ClosedEnum; export type CompanyInfo = { /** * A unique identifier for an object. */ id?: string | undefined; /** * The name of the company. */ companyName?: string | null | undefined; /** * Based on the status some functionality is enabled or disabled. */ status?: CompanyStatus | undefined; /** * The legal name of the company */ legalName?: string | undefined; /** * country code according to ISO 3166-1 alpha-2. */ country?: string | null | undefined; salesTaxNumber?: string | null | undefined; /** * Whether sales tax is calculated automatically for the company */ automatedSalesTax?: boolean | undefined; /** * Whether sales tax is enabled for the company */ salesTaxEnabled?: boolean | undefined; defaultSalesTax?: TaxRate | 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; /** * language code according to ISO 639-1. For the United States - EN */ language?: string | null | undefined; /** * The start month of fiscal year. */ fiscalYearStartMonth?: TheStartMonthOfFiscalYear | undefined; /** * Date when company file was created */ companyStartDate?: RFCDate | undefined; addresses?: Array
| undefined; phoneNumbers?: Array | undefined; emails?: Array | 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; }; /** @internal */ export declare const CompanyStatus$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const CompanyStatus$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 CompanyStatus$ { /** @deprecated use `CompanyStatus$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Active: "active"; readonly Inactive: "inactive"; }>; /** @deprecated use `CompanyStatus$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Active: "active"; readonly Inactive: "inactive"; }>; } /** @internal */ export declare const TheStartMonthOfFiscalYear$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const TheStartMonthOfFiscalYear$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 TheStartMonthOfFiscalYear$ { /** @deprecated use `TheStartMonthOfFiscalYear$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly January: "January"; readonly February: "February"; readonly March: "March"; readonly April: "April"; readonly May: "May"; readonly June: "June"; readonly July: "July"; readonly August: "August"; readonly September: "September"; readonly October: "October"; readonly November: "November"; readonly December: "December"; }>; /** @deprecated use `TheStartMonthOfFiscalYear$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly January: "January"; readonly February: "February"; readonly March: "March"; readonly April: "April"; readonly May: "May"; readonly June: "June"; readonly July: "July"; readonly August: "August"; readonly September: "September"; readonly October: "October"; readonly November: "November"; readonly December: "December"; }>; } /** @internal */ export declare const CompanyInfo$inboundSchema: z.ZodType; /** @internal */ export type CompanyInfo$Outbound = { id?: string | undefined; company_name?: string | null | undefined; status?: string | undefined; legal_name?: string | undefined; country?: string | null | undefined; sales_tax_number?: string | null | undefined; automated_sales_tax?: boolean | undefined; sales_tax_enabled?: boolean | undefined; default_sales_tax?: TaxRate$Outbound | undefined; currency?: string | null | undefined; language?: string | null | undefined; fiscal_year_start_month?: string | undefined; company_start_date?: string | undefined; addresses?: Array | undefined; phone_numbers?: Array | undefined; emails?: Array | 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; }; /** @internal */ export declare const CompanyInfo$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 CompanyInfo$ { /** @deprecated use `CompanyInfo$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `CompanyInfo$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `CompanyInfo$Outbound` instead. */ type Outbound = CompanyInfo$Outbound; } export declare function companyInfoToJSON(companyInfo: CompanyInfo): string; export declare function companyInfoFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=companyinfo.d.ts.map