@simpleapps-com/augur-api
Version:
TypeScript client library for Augur microservices API endpoints
1,190 lines • 78.5 kB
TypeScript
import { z } from 'zod';
export declare const HealthCheckResponseSchema: z.ZodEffects<z.ZodObject<{
count: z.ZodNumber;
data: z.ZodString;
message: z.ZodString;
options: z.ZodUnion<[z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
params: z.ZodUnion<[z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
status: z.ZodNumber;
total: z.ZodNumber;
totalResults: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
params: Record<string, unknown> | unknown[];
data: string;
options: Record<string, unknown> | unknown[];
status: number;
message: string;
count: number;
total: number;
totalResults: number;
}, {
params: Record<string, unknown> | unknown[];
data: string;
options: Record<string, unknown> | unknown[];
status: number;
message: string;
count: number;
total: number;
totalResults: number;
}>, {
params: Record<string, unknown> | unknown[];
data: string;
options: Record<string, unknown> | unknown[];
status: number;
message: string;
count: number;
total: number;
totalResults: number;
}, {
params: Record<string, unknown> | unknown[];
data: string;
options: Record<string, unknown> | unknown[];
status: number;
message: string;
count: number;
total: number;
totalResults: number;
}>;
export type HealthCheckResponse = z.infer<typeof HealthCheckResponseSchema>;
export declare const RatesRequestParamsSchema: z.ZodObject<{
lines: z.ZodArray<z.ZodObject<{
amount: z.ZodNumber;
description: z.ZodOptional<z.ZodString>;
taxCode: z.ZodOptional<z.ZodString>;
customerUsageType: z.ZodOptional<z.ZodString>;
itemCode: z.ZodOptional<z.ZodString>;
quantity: z.ZodOptional<z.ZodNumber>;
discount: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
amount: number;
description?: string | undefined;
quantity?: number | undefined;
taxCode?: string | undefined;
customerUsageType?: string | undefined;
itemCode?: string | undefined;
discount?: number | undefined;
}, {
amount: number;
description?: string | undefined;
quantity?: number | undefined;
taxCode?: string | undefined;
customerUsageType?: string | undefined;
itemCode?: string | undefined;
discount?: number | undefined;
}>, "many">;
addresses: z.ZodOptional<z.ZodObject<{
shipFrom: z.ZodOptional<z.ZodObject<{
line1: z.ZodOptional<z.ZodString>;
city: z.ZodOptional<z.ZodString>;
region: z.ZodOptional<z.ZodString>;
country: z.ZodOptional<z.ZodString>;
postalCode: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
postalCode?: string | undefined;
city?: string | undefined;
country?: string | undefined;
line1?: string | undefined;
region?: string | undefined;
}, {
postalCode?: string | undefined;
city?: string | undefined;
country?: string | undefined;
line1?: string | undefined;
region?: string | undefined;
}>>;
shipTo: z.ZodObject<{
line1: z.ZodOptional<z.ZodString>;
city: z.ZodOptional<z.ZodString>;
region: z.ZodOptional<z.ZodString>;
country: z.ZodOptional<z.ZodString>;
postalCode: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
postalCode?: string | undefined;
city?: string | undefined;
country?: string | undefined;
line1?: string | undefined;
region?: string | undefined;
}, {
postalCode?: string | undefined;
city?: string | undefined;
country?: string | undefined;
line1?: string | undefined;
region?: string | undefined;
}>;
}, "strip", z.ZodTypeAny, {
shipTo: {
postalCode?: string | undefined;
city?: string | undefined;
country?: string | undefined;
line1?: string | undefined;
region?: string | undefined;
};
shipFrom?: {
postalCode?: string | undefined;
city?: string | undefined;
country?: string | undefined;
line1?: string | undefined;
region?: string | undefined;
} | undefined;
}, {
shipTo: {
postalCode?: string | undefined;
city?: string | undefined;
country?: string | undefined;
line1?: string | undefined;
region?: string | undefined;
};
shipFrom?: {
postalCode?: string | undefined;
city?: string | undefined;
country?: string | undefined;
line1?: string | undefined;
region?: string | undefined;
} | undefined;
}>>;
date: z.ZodOptional<z.ZodString>;
type: z.ZodOptional<z.ZodEnum<["SalesOrder", "SalesInvoice", "ReturnInvoice", "InventoryTransferOrder"]>>;
companyCode: z.ZodOptional<z.ZodString>;
customerCode: z.ZodOptional<z.ZodString>;
businessIdentificationNo: z.ZodOptional<z.ZodString>;
commit: z.ZodOptional<z.ZodBoolean>;
currencyCode: z.ZodOptional<z.ZodString>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
lines: z.ZodArray<z.ZodObject<{
amount: z.ZodNumber;
description: z.ZodOptional<z.ZodString>;
taxCode: z.ZodOptional<z.ZodString>;
customerUsageType: z.ZodOptional<z.ZodString>;
itemCode: z.ZodOptional<z.ZodString>;
quantity: z.ZodOptional<z.ZodNumber>;
discount: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
amount: number;
description?: string | undefined;
quantity?: number | undefined;
taxCode?: string | undefined;
customerUsageType?: string | undefined;
itemCode?: string | undefined;
discount?: number | undefined;
}, {
amount: number;
description?: string | undefined;
quantity?: number | undefined;
taxCode?: string | undefined;
customerUsageType?: string | undefined;
itemCode?: string | undefined;
discount?: number | undefined;
}>, "many">;
addresses: z.ZodOptional<z.ZodObject<{
shipFrom: z.ZodOptional<z.ZodObject<{
line1: z.ZodOptional<z.ZodString>;
city: z.ZodOptional<z.ZodString>;
region: z.ZodOptional<z.ZodString>;
country: z.ZodOptional<z.ZodString>;
postalCode: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
postalCode?: string | undefined;
city?: string | undefined;
country?: string | undefined;
line1?: string | undefined;
region?: string | undefined;
}, {
postalCode?: string | undefined;
city?: string | undefined;
country?: string | undefined;
line1?: string | undefined;
region?: string | undefined;
}>>;
shipTo: z.ZodObject<{
line1: z.ZodOptional<z.ZodString>;
city: z.ZodOptional<z.ZodString>;
region: z.ZodOptional<z.ZodString>;
country: z.ZodOptional<z.ZodString>;
postalCode: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
postalCode?: string | undefined;
city?: string | undefined;
country?: string | undefined;
line1?: string | undefined;
region?: string | undefined;
}, {
postalCode?: string | undefined;
city?: string | undefined;
country?: string | undefined;
line1?: string | undefined;
region?: string | undefined;
}>;
}, "strip", z.ZodTypeAny, {
shipTo: {
postalCode?: string | undefined;
city?: string | undefined;
country?: string | undefined;
line1?: string | undefined;
region?: string | undefined;
};
shipFrom?: {
postalCode?: string | undefined;
city?: string | undefined;
country?: string | undefined;
line1?: string | undefined;
region?: string | undefined;
} | undefined;
}, {
shipTo: {
postalCode?: string | undefined;
city?: string | undefined;
country?: string | undefined;
line1?: string | undefined;
region?: string | undefined;
};
shipFrom?: {
postalCode?: string | undefined;
city?: string | undefined;
country?: string | undefined;
line1?: string | undefined;
region?: string | undefined;
} | undefined;
}>>;
date: z.ZodOptional<z.ZodString>;
type: z.ZodOptional<z.ZodEnum<["SalesOrder", "SalesInvoice", "ReturnInvoice", "InventoryTransferOrder"]>>;
companyCode: z.ZodOptional<z.ZodString>;
customerCode: z.ZodOptional<z.ZodString>;
businessIdentificationNo: z.ZodOptional<z.ZodString>;
commit: z.ZodOptional<z.ZodBoolean>;
currencyCode: z.ZodOptional<z.ZodString>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
lines: z.ZodArray<z.ZodObject<{
amount: z.ZodNumber;
description: z.ZodOptional<z.ZodString>;
taxCode: z.ZodOptional<z.ZodString>;
customerUsageType: z.ZodOptional<z.ZodString>;
itemCode: z.ZodOptional<z.ZodString>;
quantity: z.ZodOptional<z.ZodNumber>;
discount: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
amount: number;
description?: string | undefined;
quantity?: number | undefined;
taxCode?: string | undefined;
customerUsageType?: string | undefined;
itemCode?: string | undefined;
discount?: number | undefined;
}, {
amount: number;
description?: string | undefined;
quantity?: number | undefined;
taxCode?: string | undefined;
customerUsageType?: string | undefined;
itemCode?: string | undefined;
discount?: number | undefined;
}>, "many">;
addresses: z.ZodOptional<z.ZodObject<{
shipFrom: z.ZodOptional<z.ZodObject<{
line1: z.ZodOptional<z.ZodString>;
city: z.ZodOptional<z.ZodString>;
region: z.ZodOptional<z.ZodString>;
country: z.ZodOptional<z.ZodString>;
postalCode: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
postalCode?: string | undefined;
city?: string | undefined;
country?: string | undefined;
line1?: string | undefined;
region?: string | undefined;
}, {
postalCode?: string | undefined;
city?: string | undefined;
country?: string | undefined;
line1?: string | undefined;
region?: string | undefined;
}>>;
shipTo: z.ZodObject<{
line1: z.ZodOptional<z.ZodString>;
city: z.ZodOptional<z.ZodString>;
region: z.ZodOptional<z.ZodString>;
country: z.ZodOptional<z.ZodString>;
postalCode: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
postalCode?: string | undefined;
city?: string | undefined;
country?: string | undefined;
line1?: string | undefined;
region?: string | undefined;
}, {
postalCode?: string | undefined;
city?: string | undefined;
country?: string | undefined;
line1?: string | undefined;
region?: string | undefined;
}>;
}, "strip", z.ZodTypeAny, {
shipTo: {
postalCode?: string | undefined;
city?: string | undefined;
country?: string | undefined;
line1?: string | undefined;
region?: string | undefined;
};
shipFrom?: {
postalCode?: string | undefined;
city?: string | undefined;
country?: string | undefined;
line1?: string | undefined;
region?: string | undefined;
} | undefined;
}, {
shipTo: {
postalCode?: string | undefined;
city?: string | undefined;
country?: string | undefined;
line1?: string | undefined;
region?: string | undefined;
};
shipFrom?: {
postalCode?: string | undefined;
city?: string | undefined;
country?: string | undefined;
line1?: string | undefined;
region?: string | undefined;
} | undefined;
}>>;
date: z.ZodOptional<z.ZodString>;
type: z.ZodOptional<z.ZodEnum<["SalesOrder", "SalesInvoice", "ReturnInvoice", "InventoryTransferOrder"]>>;
companyCode: z.ZodOptional<z.ZodString>;
customerCode: z.ZodOptional<z.ZodString>;
businessIdentificationNo: z.ZodOptional<z.ZodString>;
commit: z.ZodOptional<z.ZodBoolean>;
currencyCode: z.ZodOptional<z.ZodString>;
}, z.ZodTypeAny, "passthrough">>;
export type RatesRequestParams = z.infer<typeof RatesRequestParamsSchema>;
export declare const TaxLineSchema: z.ZodObject<{
lineNumber: z.ZodOptional<z.ZodString>;
taxableAmount: z.ZodOptional<z.ZodNumber>;
tax: z.ZodOptional<z.ZodNumber>;
taxCalculated: z.ZodOptional<z.ZodNumber>;
rate: z.ZodOptional<z.ZodNumber>;
exemptAmount: z.ZodOptional<z.ZodNumber>;
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
jurisdictionName: z.ZodOptional<z.ZodString>;
rate: z.ZodOptional<z.ZodNumber>;
tax: z.ZodOptional<z.ZodNumber>;
taxableAmount: z.ZodOptional<z.ZodNumber>;
taxType: z.ZodOptional<z.ZodString>;
jurisdictionType: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
taxableAmount?: number | undefined;
tax?: number | undefined;
rate?: number | undefined;
jurisdictionName?: string | undefined;
taxType?: string | undefined;
jurisdictionType?: string | undefined;
}, {
taxableAmount?: number | undefined;
tax?: number | undefined;
rate?: number | undefined;
jurisdictionName?: string | undefined;
taxType?: string | undefined;
jurisdictionType?: string | undefined;
}>, "many">>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
lineNumber: z.ZodOptional<z.ZodString>;
taxableAmount: z.ZodOptional<z.ZodNumber>;
tax: z.ZodOptional<z.ZodNumber>;
taxCalculated: z.ZodOptional<z.ZodNumber>;
rate: z.ZodOptional<z.ZodNumber>;
exemptAmount: z.ZodOptional<z.ZodNumber>;
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
jurisdictionName: z.ZodOptional<z.ZodString>;
rate: z.ZodOptional<z.ZodNumber>;
tax: z.ZodOptional<z.ZodNumber>;
taxableAmount: z.ZodOptional<z.ZodNumber>;
taxType: z.ZodOptional<z.ZodString>;
jurisdictionType: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
taxableAmount?: number | undefined;
tax?: number | undefined;
rate?: number | undefined;
jurisdictionName?: string | undefined;
taxType?: string | undefined;
jurisdictionType?: string | undefined;
}, {
taxableAmount?: number | undefined;
tax?: number | undefined;
rate?: number | undefined;
jurisdictionName?: string | undefined;
taxType?: string | undefined;
jurisdictionType?: string | undefined;
}>, "many">>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
lineNumber: z.ZodOptional<z.ZodString>;
taxableAmount: z.ZodOptional<z.ZodNumber>;
tax: z.ZodOptional<z.ZodNumber>;
taxCalculated: z.ZodOptional<z.ZodNumber>;
rate: z.ZodOptional<z.ZodNumber>;
exemptAmount: z.ZodOptional<z.ZodNumber>;
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
jurisdictionName: z.ZodOptional<z.ZodString>;
rate: z.ZodOptional<z.ZodNumber>;
tax: z.ZodOptional<z.ZodNumber>;
taxableAmount: z.ZodOptional<z.ZodNumber>;
taxType: z.ZodOptional<z.ZodString>;
jurisdictionType: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
taxableAmount?: number | undefined;
tax?: number | undefined;
rate?: number | undefined;
jurisdictionName?: string | undefined;
taxType?: string | undefined;
jurisdictionType?: string | undefined;
}, {
taxableAmount?: number | undefined;
tax?: number | undefined;
rate?: number | undefined;
jurisdictionName?: string | undefined;
taxType?: string | undefined;
jurisdictionType?: string | undefined;
}>, "many">>;
}, z.ZodTypeAny, "passthrough">>;
export type TaxLine = z.infer<typeof TaxLineSchema>;
export declare const TaxCalculationResultSchema: z.ZodObject<{
totalAmount: z.ZodOptional<z.ZodNumber>;
totalExempt: z.ZodOptional<z.ZodNumber>;
totalTaxable: z.ZodOptional<z.ZodNumber>;
totalTax: z.ZodOptional<z.ZodNumber>;
totalTaxCalculated: z.ZodOptional<z.ZodNumber>;
taxDate: z.ZodOptional<z.ZodString>;
lines: z.ZodOptional<z.ZodArray<z.ZodObject<{
lineNumber: z.ZodOptional<z.ZodString>;
taxableAmount: z.ZodOptional<z.ZodNumber>;
tax: z.ZodOptional<z.ZodNumber>;
taxCalculated: z.ZodOptional<z.ZodNumber>;
rate: z.ZodOptional<z.ZodNumber>;
exemptAmount: z.ZodOptional<z.ZodNumber>;
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
jurisdictionName: z.ZodOptional<z.ZodString>;
rate: z.ZodOptional<z.ZodNumber>;
tax: z.ZodOptional<z.ZodNumber>;
taxableAmount: z.ZodOptional<z.ZodNumber>;
taxType: z.ZodOptional<z.ZodString>;
jurisdictionType: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
taxableAmount?: number | undefined;
tax?: number | undefined;
rate?: number | undefined;
jurisdictionName?: string | undefined;
taxType?: string | undefined;
jurisdictionType?: string | undefined;
}, {
taxableAmount?: number | undefined;
tax?: number | undefined;
rate?: number | undefined;
jurisdictionName?: string | undefined;
taxType?: string | undefined;
jurisdictionType?: string | undefined;
}>, "many">>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
lineNumber: z.ZodOptional<z.ZodString>;
taxableAmount: z.ZodOptional<z.ZodNumber>;
tax: z.ZodOptional<z.ZodNumber>;
taxCalculated: z.ZodOptional<z.ZodNumber>;
rate: z.ZodOptional<z.ZodNumber>;
exemptAmount: z.ZodOptional<z.ZodNumber>;
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
jurisdictionName: z.ZodOptional<z.ZodString>;
rate: z.ZodOptional<z.ZodNumber>;
tax: z.ZodOptional<z.ZodNumber>;
taxableAmount: z.ZodOptional<z.ZodNumber>;
taxType: z.ZodOptional<z.ZodString>;
jurisdictionType: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
taxableAmount?: number | undefined;
tax?: number | undefined;
rate?: number | undefined;
jurisdictionName?: string | undefined;
taxType?: string | undefined;
jurisdictionType?: string | undefined;
}, {
taxableAmount?: number | undefined;
tax?: number | undefined;
rate?: number | undefined;
jurisdictionName?: string | undefined;
taxType?: string | undefined;
jurisdictionType?: string | undefined;
}>, "many">>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
lineNumber: z.ZodOptional<z.ZodString>;
taxableAmount: z.ZodOptional<z.ZodNumber>;
tax: z.ZodOptional<z.ZodNumber>;
taxCalculated: z.ZodOptional<z.ZodNumber>;
rate: z.ZodOptional<z.ZodNumber>;
exemptAmount: z.ZodOptional<z.ZodNumber>;
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
jurisdictionName: z.ZodOptional<z.ZodString>;
rate: z.ZodOptional<z.ZodNumber>;
tax: z.ZodOptional<z.ZodNumber>;
taxableAmount: z.ZodOptional<z.ZodNumber>;
taxType: z.ZodOptional<z.ZodString>;
jurisdictionType: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
taxableAmount?: number | undefined;
tax?: number | undefined;
rate?: number | undefined;
jurisdictionName?: string | undefined;
taxType?: string | undefined;
jurisdictionType?: string | undefined;
}, {
taxableAmount?: number | undefined;
tax?: number | undefined;
rate?: number | undefined;
jurisdictionName?: string | undefined;
taxType?: string | undefined;
jurisdictionType?: string | undefined;
}>, "many">>;
}, z.ZodTypeAny, "passthrough">>, "many">>;
addresses: z.ZodOptional<z.ZodArray<z.ZodObject<{
addressType: z.ZodOptional<z.ZodString>;
line1: z.ZodOptional<z.ZodString>;
city: z.ZodOptional<z.ZodString>;
region: z.ZodOptional<z.ZodString>;
country: z.ZodOptional<z.ZodString>;
postalCode: z.ZodOptional<z.ZodString>;
latitude: z.ZodOptional<z.ZodNumber>;
longitude: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
postalCode?: string | undefined;
city?: string | undefined;
country?: string | undefined;
line1?: string | undefined;
region?: string | undefined;
addressType?: string | undefined;
latitude?: number | undefined;
longitude?: number | undefined;
}, {
postalCode?: string | undefined;
city?: string | undefined;
country?: string | undefined;
line1?: string | undefined;
region?: string | undefined;
addressType?: string | undefined;
latitude?: number | undefined;
longitude?: number | undefined;
}>, "many">>;
summary: z.ZodOptional<z.ZodArray<z.ZodObject<{
country: z.ZodOptional<z.ZodString>;
region: z.ZodOptional<z.ZodString>;
jurisType: z.ZodOptional<z.ZodString>;
jurisCode: z.ZodOptional<z.ZodString>;
jurisName: z.ZodOptional<z.ZodString>;
taxAuthorityType: z.ZodOptional<z.ZodNumber>;
stateAssignedNo: z.ZodOptional<z.ZodString>;
taxType: z.ZodOptional<z.ZodString>;
taxName: z.ZodOptional<z.ZodString>;
taxGroup: z.ZodOptional<z.ZodString>;
rateType: z.ZodOptional<z.ZodString>;
taxable: z.ZodOptional<z.ZodNumber>;
rate: z.ZodOptional<z.ZodNumber>;
tax: z.ZodOptional<z.ZodNumber>;
taxCalculated: z.ZodOptional<z.ZodNumber>;
nonTaxable: z.ZodOptional<z.ZodNumber>;
exemption: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
country?: string | undefined;
region?: string | undefined;
tax?: number | undefined;
taxCalculated?: number | undefined;
rate?: number | undefined;
taxType?: string | undefined;
jurisType?: string | undefined;
jurisCode?: string | undefined;
jurisName?: string | undefined;
taxAuthorityType?: number | undefined;
stateAssignedNo?: string | undefined;
taxName?: string | undefined;
taxGroup?: string | undefined;
rateType?: string | undefined;
taxable?: number | undefined;
nonTaxable?: number | undefined;
exemption?: number | undefined;
}, {
country?: string | undefined;
region?: string | undefined;
tax?: number | undefined;
taxCalculated?: number | undefined;
rate?: number | undefined;
taxType?: string | undefined;
jurisType?: string | undefined;
jurisCode?: string | undefined;
jurisName?: string | undefined;
taxAuthorityType?: number | undefined;
stateAssignedNo?: string | undefined;
taxName?: string | undefined;
taxGroup?: string | undefined;
rateType?: string | undefined;
taxable?: number | undefined;
nonTaxable?: number | undefined;
exemption?: number | undefined;
}>, "many">>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
totalAmount: z.ZodOptional<z.ZodNumber>;
totalExempt: z.ZodOptional<z.ZodNumber>;
totalTaxable: z.ZodOptional<z.ZodNumber>;
totalTax: z.ZodOptional<z.ZodNumber>;
totalTaxCalculated: z.ZodOptional<z.ZodNumber>;
taxDate: z.ZodOptional<z.ZodString>;
lines: z.ZodOptional<z.ZodArray<z.ZodObject<{
lineNumber: z.ZodOptional<z.ZodString>;
taxableAmount: z.ZodOptional<z.ZodNumber>;
tax: z.ZodOptional<z.ZodNumber>;
taxCalculated: z.ZodOptional<z.ZodNumber>;
rate: z.ZodOptional<z.ZodNumber>;
exemptAmount: z.ZodOptional<z.ZodNumber>;
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
jurisdictionName: z.ZodOptional<z.ZodString>;
rate: z.ZodOptional<z.ZodNumber>;
tax: z.ZodOptional<z.ZodNumber>;
taxableAmount: z.ZodOptional<z.ZodNumber>;
taxType: z.ZodOptional<z.ZodString>;
jurisdictionType: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
taxableAmount?: number | undefined;
tax?: number | undefined;
rate?: number | undefined;
jurisdictionName?: string | undefined;
taxType?: string | undefined;
jurisdictionType?: string | undefined;
}, {
taxableAmount?: number | undefined;
tax?: number | undefined;
rate?: number | undefined;
jurisdictionName?: string | undefined;
taxType?: string | undefined;
jurisdictionType?: string | undefined;
}>, "many">>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
lineNumber: z.ZodOptional<z.ZodString>;
taxableAmount: z.ZodOptional<z.ZodNumber>;
tax: z.ZodOptional<z.ZodNumber>;
taxCalculated: z.ZodOptional<z.ZodNumber>;
rate: z.ZodOptional<z.ZodNumber>;
exemptAmount: z.ZodOptional<z.ZodNumber>;
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
jurisdictionName: z.ZodOptional<z.ZodString>;
rate: z.ZodOptional<z.ZodNumber>;
tax: z.ZodOptional<z.ZodNumber>;
taxableAmount: z.ZodOptional<z.ZodNumber>;
taxType: z.ZodOptional<z.ZodString>;
jurisdictionType: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
taxableAmount?: number | undefined;
tax?: number | undefined;
rate?: number | undefined;
jurisdictionName?: string | undefined;
taxType?: string | undefined;
jurisdictionType?: string | undefined;
}, {
taxableAmount?: number | undefined;
tax?: number | undefined;
rate?: number | undefined;
jurisdictionName?: string | undefined;
taxType?: string | undefined;
jurisdictionType?: string | undefined;
}>, "many">>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
lineNumber: z.ZodOptional<z.ZodString>;
taxableAmount: z.ZodOptional<z.ZodNumber>;
tax: z.ZodOptional<z.ZodNumber>;
taxCalculated: z.ZodOptional<z.ZodNumber>;
rate: z.ZodOptional<z.ZodNumber>;
exemptAmount: z.ZodOptional<z.ZodNumber>;
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
jurisdictionName: z.ZodOptional<z.ZodString>;
rate: z.ZodOptional<z.ZodNumber>;
tax: z.ZodOptional<z.ZodNumber>;
taxableAmount: z.ZodOptional<z.ZodNumber>;
taxType: z.ZodOptional<z.ZodString>;
jurisdictionType: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
taxableAmount?: number | undefined;
tax?: number | undefined;
rate?: number | undefined;
jurisdictionName?: string | undefined;
taxType?: string | undefined;
jurisdictionType?: string | undefined;
}, {
taxableAmount?: number | undefined;
tax?: number | undefined;
rate?: number | undefined;
jurisdictionName?: string | undefined;
taxType?: string | undefined;
jurisdictionType?: string | undefined;
}>, "many">>;
}, z.ZodTypeAny, "passthrough">>, "many">>;
addresses: z.ZodOptional<z.ZodArray<z.ZodObject<{
addressType: z.ZodOptional<z.ZodString>;
line1: z.ZodOptional<z.ZodString>;
city: z.ZodOptional<z.ZodString>;
region: z.ZodOptional<z.ZodString>;
country: z.ZodOptional<z.ZodString>;
postalCode: z.ZodOptional<z.ZodString>;
latitude: z.ZodOptional<z.ZodNumber>;
longitude: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
postalCode?: string | undefined;
city?: string | undefined;
country?: string | undefined;
line1?: string | undefined;
region?: string | undefined;
addressType?: string | undefined;
latitude?: number | undefined;
longitude?: number | undefined;
}, {
postalCode?: string | undefined;
city?: string | undefined;
country?: string | undefined;
line1?: string | undefined;
region?: string | undefined;
addressType?: string | undefined;
latitude?: number | undefined;
longitude?: number | undefined;
}>, "many">>;
summary: z.ZodOptional<z.ZodArray<z.ZodObject<{
country: z.ZodOptional<z.ZodString>;
region: z.ZodOptional<z.ZodString>;
jurisType: z.ZodOptional<z.ZodString>;
jurisCode: z.ZodOptional<z.ZodString>;
jurisName: z.ZodOptional<z.ZodString>;
taxAuthorityType: z.ZodOptional<z.ZodNumber>;
stateAssignedNo: z.ZodOptional<z.ZodString>;
taxType: z.ZodOptional<z.ZodString>;
taxName: z.ZodOptional<z.ZodString>;
taxGroup: z.ZodOptional<z.ZodString>;
rateType: z.ZodOptional<z.ZodString>;
taxable: z.ZodOptional<z.ZodNumber>;
rate: z.ZodOptional<z.ZodNumber>;
tax: z.ZodOptional<z.ZodNumber>;
taxCalculated: z.ZodOptional<z.ZodNumber>;
nonTaxable: z.ZodOptional<z.ZodNumber>;
exemption: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
country?: string | undefined;
region?: string | undefined;
tax?: number | undefined;
taxCalculated?: number | undefined;
rate?: number | undefined;
taxType?: string | undefined;
jurisType?: string | undefined;
jurisCode?: string | undefined;
jurisName?: string | undefined;
taxAuthorityType?: number | undefined;
stateAssignedNo?: string | undefined;
taxName?: string | undefined;
taxGroup?: string | undefined;
rateType?: string | undefined;
taxable?: number | undefined;
nonTaxable?: number | undefined;
exemption?: number | undefined;
}, {
country?: string | undefined;
region?: string | undefined;
tax?: number | undefined;
taxCalculated?: number | undefined;
rate?: number | undefined;
taxType?: string | undefined;
jurisType?: string | undefined;
jurisCode?: string | undefined;
jurisName?: string | undefined;
taxAuthorityType?: number | undefined;
stateAssignedNo?: string | undefined;
taxName?: string | undefined;
taxGroup?: string | undefined;
rateType?: string | undefined;
taxable?: number | undefined;
nonTaxable?: number | undefined;
exemption?: number | undefined;
}>, "many">>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
totalAmount: z.ZodOptional<z.ZodNumber>;
totalExempt: z.ZodOptional<z.ZodNumber>;
totalTaxable: z.ZodOptional<z.ZodNumber>;
totalTax: z.ZodOptional<z.ZodNumber>;
totalTaxCalculated: z.ZodOptional<z.ZodNumber>;
taxDate: z.ZodOptional<z.ZodString>;
lines: z.ZodOptional<z.ZodArray<z.ZodObject<{
lineNumber: z.ZodOptional<z.ZodString>;
taxableAmount: z.ZodOptional<z.ZodNumber>;
tax: z.ZodOptional<z.ZodNumber>;
taxCalculated: z.ZodOptional<z.ZodNumber>;
rate: z.ZodOptional<z.ZodNumber>;
exemptAmount: z.ZodOptional<z.ZodNumber>;
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
jurisdictionName: z.ZodOptional<z.ZodString>;
rate: z.ZodOptional<z.ZodNumber>;
tax: z.ZodOptional<z.ZodNumber>;
taxableAmount: z.ZodOptional<z.ZodNumber>;
taxType: z.ZodOptional<z.ZodString>;
jurisdictionType: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
taxableAmount?: number | undefined;
tax?: number | undefined;
rate?: number | undefined;
jurisdictionName?: string | undefined;
taxType?: string | undefined;
jurisdictionType?: string | undefined;
}, {
taxableAmount?: number | undefined;
tax?: number | undefined;
rate?: number | undefined;
jurisdictionName?: string | undefined;
taxType?: string | undefined;
jurisdictionType?: string | undefined;
}>, "many">>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
lineNumber: z.ZodOptional<z.ZodString>;
taxableAmount: z.ZodOptional<z.ZodNumber>;
tax: z.ZodOptional<z.ZodNumber>;
taxCalculated: z.ZodOptional<z.ZodNumber>;
rate: z.ZodOptional<z.ZodNumber>;
exemptAmount: z.ZodOptional<z.ZodNumber>;
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
jurisdictionName: z.ZodOptional<z.ZodString>;
rate: z.ZodOptional<z.ZodNumber>;
tax: z.ZodOptional<z.ZodNumber>;
taxableAmount: z.ZodOptional<z.ZodNumber>;
taxType: z.ZodOptional<z.ZodString>;
jurisdictionType: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
taxableAmount?: number | undefined;
tax?: number | undefined;
rate?: number | undefined;
jurisdictionName?: string | undefined;
taxType?: string | undefined;
jurisdictionType?: string | undefined;
}, {
taxableAmount?: number | undefined;
tax?: number | undefined;
rate?: number | undefined;
jurisdictionName?: string | undefined;
taxType?: string | undefined;
jurisdictionType?: string | undefined;
}>, "many">>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
lineNumber: z.ZodOptional<z.ZodString>;
taxableAmount: z.ZodOptional<z.ZodNumber>;
tax: z.ZodOptional<z.ZodNumber>;
taxCalculated: z.ZodOptional<z.ZodNumber>;
rate: z.ZodOptional<z.ZodNumber>;
exemptAmount: z.ZodOptional<z.ZodNumber>;
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
jurisdictionName: z.ZodOptional<z.ZodString>;
rate: z.ZodOptional<z.ZodNumber>;
tax: z.ZodOptional<z.ZodNumber>;
taxableAmount: z.ZodOptional<z.ZodNumber>;
taxType: z.ZodOptional<z.ZodString>;
jurisdictionType: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
taxableAmount?: number | undefined;
tax?: number | undefined;
rate?: number | undefined;
jurisdictionName?: string | undefined;
taxType?: string | undefined;
jurisdictionType?: string | undefined;
}, {
taxableAmount?: number | undefined;
tax?: number | undefined;
rate?: number | undefined;
jurisdictionName?: string | undefined;
taxType?: string | undefined;
jurisdictionType?: string | undefined;
}>, "many">>;
}, z.ZodTypeAny, "passthrough">>, "many">>;
addresses: z.ZodOptional<z.ZodArray<z.ZodObject<{
addressType: z.ZodOptional<z.ZodString>;
line1: z.ZodOptional<z.ZodString>;
city: z.ZodOptional<z.ZodString>;
region: z.ZodOptional<z.ZodString>;
country: z.ZodOptional<z.ZodString>;
postalCode: z.ZodOptional<z.ZodString>;
latitude: z.ZodOptional<z.ZodNumber>;
longitude: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
postalCode?: string | undefined;
city?: string | undefined;
country?: string | undefined;
line1?: string | undefined;
region?: string | undefined;
addressType?: string | undefined;
latitude?: number | undefined;
longitude?: number | undefined;
}, {
postalCode?: string | undefined;
city?: string | undefined;
country?: string | undefined;
line1?: string | undefined;
region?: string | undefined;
addressType?: string | undefined;
latitude?: number | undefined;
longitude?: number | undefined;
}>, "many">>;
summary: z.ZodOptional<z.ZodArray<z.ZodObject<{
country: z.ZodOptional<z.ZodString>;
region: z.ZodOptional<z.ZodString>;
jurisType: z.ZodOptional<z.ZodString>;
jurisCode: z.ZodOptional<z.ZodString>;
jurisName: z.ZodOptional<z.ZodString>;
taxAuthorityType: z.ZodOptional<z.ZodNumber>;
stateAssignedNo: z.ZodOptional<z.ZodString>;
taxType: z.ZodOptional<z.ZodString>;
taxName: z.ZodOptional<z.ZodString>;
taxGroup: z.ZodOptional<z.ZodString>;
rateType: z.ZodOptional<z.ZodString>;
taxable: z.ZodOptional<z.ZodNumber>;
rate: z.ZodOptional<z.ZodNumber>;
tax: z.ZodOptional<z.ZodNumber>;
taxCalculated: z.ZodOptional<z.ZodNumber>;
nonTaxable: z.ZodOptional<z.ZodNumber>;
exemption: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
country?: string | undefined;
region?: string | undefined;
tax?: number | undefined;
taxCalculated?: number | undefined;
rate?: number | undefined;
taxType?: string | undefined;
jurisType?: string | undefined;
jurisCode?: string | undefined;
jurisName?: string | undefined;
taxAuthorityType?: number | undefined;
stateAssignedNo?: string | undefined;
taxName?: string | undefined;
taxGroup?: string | undefined;
rateType?: string | undefined;
taxable?: number | undefined;
nonTaxable?: number | undefined;
exemption?: number | undefined;
}, {
country?: string | undefined;
region?: string | undefined;
tax?: number | undefined;
taxCalculated?: number | undefined;
rate?: number | undefined;
taxType?: string | undefined;
jurisType?: string | undefined;
jurisCode?: string | undefined;
jurisName?: string | undefined;
taxAuthorityType?: number | undefined;
stateAssignedNo?: string | undefined;
taxName?: string | undefined;
taxGroup?: string | undefined;
rateType?: string | undefined;
taxable?: number | undefined;
nonTaxable?: number | undefined;
exemption?: number | undefined;
}>, "many">>;
}, z.ZodTypeAny, "passthrough">>;
export type TaxCalculationResult = z.infer<typeof TaxCalculationResultSchema>;
export declare const RatesResponseSchema: z.ZodEffects<z.ZodObject<{
count: z.ZodNumber;
data: z.ZodObject<{
totalAmount: z.ZodOptional<z.ZodNumber>;
totalExempt: z.ZodOptional<z.ZodNumber>;
totalTaxable: z.ZodOptional<z.ZodNumber>;
totalTax: z.ZodOptional<z.ZodNumber>;
totalTaxCalculated: z.ZodOptional<z.ZodNumber>;
taxDate: z.ZodOptional<z.ZodString>;
lines: z.ZodOptional<z.ZodArray<z.ZodObject<{
lineNumber: z.ZodOptional<z.ZodString>;
taxableAmount: z.ZodOptional<z.ZodNumber>;
tax: z.ZodOptional<z.ZodNumber>;
taxCalculated: z.ZodOptional<z.ZodNumber>;
rate: z.ZodOptional<z.ZodNumber>;
exemptAmount: z.ZodOptional<z.ZodNumber>;
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
jurisdictionName: z.ZodOptional<z.ZodString>;
rate: z.ZodOptional<z.ZodNumber>;
tax: z.ZodOptional<z.ZodNumber>;
taxableAmount: z.ZodOptional<z.ZodNumber>;
taxType: z.ZodOptional<z.ZodString>;
jurisdictionType: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
taxableAmount?: number | undefined;
tax?: number | undefined;
rate?: number | undefined;
jurisdictionName?: string | undefined;
taxType?: string | undefined;
jurisdictionType?: string | undefined;
}, {
taxableAmount?: number | undefined;
tax?: number | undefined;
rate?: number | undefined;
jurisdictionName?: string | undefined;
taxType?: string | undefined;
jurisdictionType?: string | undefined;
}>, "many">>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
lineNumber: z.ZodOptional<z.ZodString>;
taxableAmount: z.ZodOptional<z.ZodNumber>;
tax: z.ZodOptional<z.ZodNumber>;
taxCalculated: z.ZodOptional<z.ZodNumber>;
rate: z.ZodOptional<z.ZodNumber>;
exemptAmount: z.ZodOptional<z.ZodNumber>;
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
jurisdictionName: z.ZodOptional<z.ZodString>;
rate: z.ZodOptional<z.ZodNumber>;
tax: z.ZodOptional<z.ZodNumber>;
taxableAmount: z.ZodOptional<z.ZodNumber>;
taxType: z.ZodOptional<z.ZodString>;
jurisdictionType: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
taxableAmount?: number | undefined;
tax?: number | undefined;
rate?: number | undefined;
jurisdictionName?: string | undefined;
taxType?: string | undefined;
jurisdictionType?: string | undefined;
}, {
taxableAmount?: number | undefined;
tax?: number | undefined;
rate?: number | undefined;
jurisdictionName?: string | undefined;
taxType?: string | undefined;
jurisdictionType?: string | undefined;
}>, "many">>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
lineNumber: z.ZodOptional<z.ZodString>;
taxableAmount: z.ZodOptional<z.ZodNumber>;
tax: z.ZodOptional<z.ZodNumber>;
taxCalculated: z.ZodOptional<z.ZodNumber>;
rate: z.ZodOptional<z.ZodNumber>;
exemptAmount: z.ZodOptional<z.ZodNumber>;
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
jurisdictionName: z.ZodOptional<z.ZodString>;
rate: z.ZodOptional<z.ZodNumber>;
tax: z.ZodOptional<z.ZodNumber>;
taxableAmount: z.ZodOptional<z.ZodNumber>;
taxType: z.ZodOptional<z.ZodString>;
jurisdictionType: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
taxableAmount?: number | undefined;
tax?: number | undefined;
rate?: number | undefined;
jurisdictionName?: string | undefined;
taxType?: string | undefined;
jurisdictionType?: string | undefined;
}, {
taxableAmount?: number | undefined;
tax?: number | undefined;
rate?: number | undefined;
jurisdictionName?: string | undefined;
taxType?: string | undefined;
jurisdictionType?: string | undefined;
}>, "many">>;
}, z.ZodTypeAny, "passthrough">>, "many">>;
addresses: z.ZodOptional<z.ZodArray<z.ZodObject<{
addressType: z.ZodOptional<z.ZodString>;
line1: z.ZodOptional<z.ZodString>;
city: z.ZodOptional<z.ZodString>;
region: z.ZodOptional<z.ZodString>;
country: z.ZodOptional<z.ZodString>;
postalCode: z.ZodOptional<z.ZodString>;
latitude: z.ZodOptional<z.ZodNumber>;
longitude: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
postalCode?: string | undefined;
city?: string | undefined;
country?: string | undefined;
line1?: string | undefined;
region?: string | undefined;
addressType?: string | undefined;
latitude?: number | undefined;
longitude?: number | undefined;
}, {
postalCode?: string | undefined;
city?: string | undefined;
country?: string | undefined;
line1?: string | undefined;
region?: string | undefined;
addressType?: string | undefined;
latitude?: number | undefined;
longitude?: number | undefined;
}>, "many">>;
summary: z.ZodOptional<z.ZodArray<z.ZodObject<{
country: z.ZodOptional<z.ZodString>;
region: z.ZodOptional<z.ZodString>;
jurisType: z.ZodOptional<z.ZodString>;
jurisCode: z.ZodOptional<z.ZodString>;
jurisName: z.ZodOptional<z.ZodString>;
taxAuthorityType: z.ZodOptional<z.ZodNumber>;
stateAssignedNo: z.ZodOptional<z.ZodString>;
taxType: z.ZodOptional<z.ZodString>;
taxName: z.ZodOptional<z.ZodString>;
taxGroup: z.ZodOptional<z.ZodString>;
rateType: z.ZodOptional<z.ZodString>;
taxable: z.ZodOptional<z.ZodNumber>;
rate: z.ZodOptional<z.ZodNumber>;
tax: z.ZodOptional<z.ZodNumber>;
taxCalculated: z.ZodOptional<z.ZodNumber>;
nonTaxable: z.ZodOptional<z.ZodNumber>;
exemption: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
country?: string | undefined;
region?: string | undefined;
tax?: number | undefined;
taxCalculated?: number | undefined;
rate?: number | undefined;
taxType?: string | undefined;
jurisType?: string | undefined;
jurisCode?: string | undefined;
jurisName?: string | undefined;
taxAuthorityType?: number | undefined;
stateAssignedNo?: string | undefined;
taxName?: string | undefined;
taxGroup?: string | undefined;
rateType?: string | undefined;
taxable?: number | undefined;
nonTaxable?: number | undefined;
exemption?: number | undefined;
}, {
country?: string | undefined;
region?: string | undefined;
tax?: number | undefined;
taxCalculated?: number | undefined;
rate?: number | undefined;
taxType?: string | undefined;
jurisType?: string | undefined;
jurisCode?: string | undefined;
jurisName?: string | undefined;
taxAuthorityType?: number | undefined;
stateAssignedNo?: string | undefined;
taxName?: string | undefined;
taxGroup?: string | undefined;
rateType?: string | undefined;
taxable?: number | undefined;
nonTaxable?: number | undefined;
exemption?: number | undefined;
}>, "many">>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
totalAmount: z.ZodOptional<z.ZodNumber>;
totalExempt: z.ZodOptional<z.ZodNumber>;
totalTaxable: z.ZodOptional<z.ZodNumber>;
totalTax: z.ZodOptional<z.ZodNumber>;
totalTaxCalculated: z.ZodOptional<z.ZodNumber>;
taxDate: z.ZodOptional<z.ZodString>;
lines: z.ZodOptional<z.ZodArray<z.ZodObject<{
lineNumber: z.ZodOptional<z.ZodString>;
taxableAmount: z.ZodOptional<z.ZodNumber>;
tax: z.ZodOptional<z.ZodNumber>;
taxCalculated: z.ZodOptional<z.ZodNumber>;
rate: z.ZodOptional<z.ZodNumber>;
exemptAmount: z.ZodOptional<z.ZodNumber>;
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
jurisdictionName: z.ZodOptional<z.ZodString>;
rate: z.ZodOptional<z.ZodNumber>;
tax: z.ZodOptional<z.ZodNumber>;
taxableAmount: z.ZodOptional<z.ZodNumber>;
taxType: z.ZodOptional<z.ZodString>;
jurisdictionType: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
taxableAmount?: number | undefined;
tax?: number | undefined;
rate?: number | undefined;
jurisdiction