@simpleapps-com/augur-api
Version:
TypeScript client library for Augur microservices API endpoints
282 lines • 7.76 kB
TypeScript
import { z } from 'zod';
export declare const TaxEngineAddressSchema: z.ZodObject<{
street: z.ZodString;
city: z.ZodString;
state: z.ZodString;
postal_code: z.ZodString;
}, "strip", z.ZodTypeAny, {
state: string;
city: string;
street: string;
postal_code: string;
}, {
state: string;
city: string;
street: string;
postal_code: string;
}>;
export declare const TaxEngineItemSchema: z.ZodObject<{
item_id: z.ZodString;
quantity: z.ZodNumber;
unit_price: z.ZodNumber;
extended_amount: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
quantity: number;
unit_price: number;
item_id: string;
extended_amount: number;
}, {
quantity: number;
unit_price: number;
item_id: string;
extended_amount: number;
}>;
export declare const TaxEngineRequestSchema: z.ZodObject<{
customer_id: z.ZodNumber;
postal_code: z.ZodString;
items: z.ZodArray<z.ZodObject<{
item_id: z.ZodString;
quantity: z.ZodNumber;
unit_price: z.ZodNumber;
extended_amount: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
quantity: number;
unit_price: number;
item_id: string;
extended_amount: number;
}, {
quantity: number;
unit_price: number;
item_id: string;
extended_amount: number;
}>, "many">;
ship_to_address: z.ZodObject<{
street: z.ZodString;
city: z.ZodString;
state: z.ZodString;
postal_code: z.ZodString;
}, "strip", z.ZodTypeAny, {
state: string;
city: string;
street: string;
postal_code: string;
}, {
state: string;
city: string;
street: string;
postal_code: string;
}>;
}, "strip", z.ZodTypeAny, {
customer_id: number;
postal_code: string;
items: {
quantity: number;
unit_price: number;
item_id: string;
extended_amount: number;
}[];
ship_to_address: {
state: string;
city: string;
street: string;
postal_code: string;
};
}, {
customer_id: number;
postal_code: string;
items: {
quantity: number;
unit_price: number;
item_id: string;
extended_amount: number;
}[];
ship_to_address: {
state: string;
city: string;
street: string;
postal_code: string;
};
}>;
export declare const TaxJurisdictionSchema: z.ZodObject<{
jurisdiction_name: z.ZodString;
tax_rate: z.ZodNumber;
tax_amount: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
tax_amount: number;
jurisdiction_name: string;
tax_rate: number;
}, {
tax_amount: number;
jurisdiction_name: string;
tax_rate: number;
}>;
export declare const TaxEngineDataSchema: z.ZodObject<{
total_tax: z.ZodNumber;
tax_rate: z.ZodNumber;
jurisdictions: z.ZodArray<z.ZodObject<{
jurisdiction_name: z.ZodString;
tax_rate: z.ZodNumber;
tax_amount: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
tax_amount: number;
jurisdiction_name: string;
tax_rate: number;
}, {
tax_amount: number;
jurisdiction_name: string;
tax_rate: number;
}>, "many">;
taxable_amount: z.ZodNumber;
exempt_amount: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
tax_rate: number;
total_tax: number;
jurisdictions: {
tax_amount: number;
jurisdiction_name: string;
tax_rate: number;
}[];
taxable_amount: number;
exempt_amount: number;
}, {
tax_rate: number;
total_tax: number;
jurisdictions: {
tax_amount: number;
jurisdiction_name: string;
tax_rate: number;
}[];
taxable_amount: number;
exempt_amount: number;
}>;
export declare const TaxEngineResponseSchema: z.ZodEffects<z.ZodObject<{
count: z.ZodNumber;
data: z.ZodObject<{
total_tax: z.ZodNumber;
tax_rate: z.ZodNumber;
jurisdictions: z.ZodArray<z.ZodObject<{
jurisdiction_name: z.ZodString;
tax_rate: z.ZodNumber;
tax_amount: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
tax_amount: number;
jurisdiction_name: string;
tax_rate: number;
}, {
tax_amount: number;
jurisdiction_name: string;
tax_rate: number;
}>, "many">;
taxable_amount: z.ZodNumber;
exempt_amount: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
tax_rate: number;
total_tax: number;
jurisdictions: {
tax_amount: number;
jurisdiction_name: string;
tax_rate: number;
}[];
taxable_amount: number;
exempt_amount: number;
}, {
tax_rate: number;
total_tax: number;
jurisdictions: {
tax_amount: number;
jurisdiction_name: string;
tax_rate: number;
}[];
taxable_amount: number;
exempt_amount: number;
}>;
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: {
tax_rate: number;
total_tax: number;
jurisdictions: {
tax_amount: number;
jurisdiction_name: string;
tax_rate: number;
}[];
taxable_amount: number;
exempt_amount: number;
};
options: Record<string, unknown> | unknown[];
status: number;
message: string;
count: number;
total: number;
totalResults: number;
}, {
params: Record<string, unknown> | unknown[];
data: {
tax_rate: number;
total_tax: number;
jurisdictions: {
tax_amount: number;
jurisdiction_name: string;
tax_rate: number;
}[];
taxable_amount: number;
exempt_amount: number;
};
options: Record<string, unknown> | unknown[];
status: number;
message: string;
count: number;
total: number;
totalResults: number;
}>, {
params: Record<string, unknown> | unknown[];
data: {
tax_rate: number;
total_tax: number;
jurisdictions: {
tax_amount: number;
jurisdiction_name: string;
tax_rate: number;
}[];
taxable_amount: number;
exempt_amount: number;
};
options: Record<string, unknown> | unknown[];
status: number;
message: string;
count: number;
total: number;
totalResults: number;
}, {
params: Record<string, unknown> | unknown[];
data: {
tax_rate: number;
total_tax: number;
jurisdictions: {
tax_amount: number;
jurisdiction_name: string;
tax_rate: number;
}[];
taxable_amount: number;
exempt_amount: number;
};
options: Record<string, unknown> | unknown[];
status: number;
message: string;
count: number;
total: number;
totalResults: number;
}>;
export type TaxEngineAddress = z.infer<typeof TaxEngineAddressSchema>;
export type TaxEngineItem = z.infer<typeof TaxEngineItemSchema>;
export type TaxEngineRequest = z.infer<typeof TaxEngineRequestSchema>;
export type TaxJurisdiction = z.infer<typeof TaxJurisdictionSchema>;
export type TaxEngineData = z.infer<typeof TaxEngineDataSchema>;
export type TaxEngineResponse = z.infer<typeof TaxEngineResponseSchema>;
//# sourceMappingURL=tax.d.ts.map