/** * Billingual API * REST API for invoice management, customer management, and accounting operations. Features include cursor-based pagination for efficient data navigation, flexible JSON querying with MongoDB-style operators, full-text search across multiple fields, and comprehensive metadata support for custom tracking. * * The version of the OpenAPI document: 1.0.0 * Contact: api@billingual.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import * as runtime from '../runtime'; import type { CreateTaxRequest, GetTaxes200Response, GetTaxesOrderByParameter, Tax, UpdateTaxRequest } from '../models/index'; export interface CreateTaxOperationRequest { x_entity_id: string; data: CreateTaxRequest; } export interface GetTaxesRequest { x_entity_id: string; limit?: number; next_cursor?: string; prev_cursor?: string; order_by?: GetTaxesOrderByParameter; query?: string; search?: string; } export interface ReplaceTaxRequest { id: string; x_entity_id: string; data: CreateTaxRequest; } export interface UpdateTaxOperationRequest { id: string; x_entity_id: string; data: UpdateTaxRequest; } /** * */ export declare class TaxesApi extends runtime.BaseAPI { /** * Create a new tax with one or more tax rates. Each rate can specify a valid_from date to track historical changes (defaults to 1970-01-01 if not provided). Rates are automatically sorted by valid_from date (newest first). * Create a new tax */ createTaxRaw(requestParameters: CreateTaxOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Create a new tax with one or more tax rates. Each rate can specify a valid_from date to track historical changes (defaults to 1970-01-01 if not provided). Rates are automatically sorted by valid_from date (newest first). * Create a new tax */ createTax(requestParameters: CreateTaxOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Retrieve a paginated list of taxes with optional filtering and sorting. Supports cursor-based pagination, flexible JSON querying with MongoDB-style operators, and sorting. Each tax may contain multiple historical rates. * List all taxes */ getTaxesRaw(requestParameters: GetTaxesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Retrieve a paginated list of taxes with optional filtering and sorting. Supports cursor-based pagination, flexible JSON querying with MongoDB-style operators, and sorting. Each tax may contain multiple historical rates. * List all taxes */ getTaxes(requestParameters: GetTaxesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise & AsyncIterable; /** * Replace all tax rates on a tax with a new set of rates. This completely replaces the existing tax_rates array. Use this when you need to remove rates or completely restructure the rate history. Optionally update the name as well. * Replace tax rates */ replaceTaxRaw(requestParameters: ReplaceTaxRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Replace all tax rates on a tax with a new set of rates. This completely replaces the existing tax_rates array. Use this when you need to remove rates or completely restructure the rate history. Optionally update the name as well. * Replace tax rates */ replaceTax(requestParameters: ReplaceTaxRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Add one or more new tax rates to an existing tax. New rates are merged with existing rates and automatically sorted by valid_from date (newest first). Use this to track historical tax rate changes. * Add new tax rate(s) */ updateTaxRaw(requestParameters: UpdateTaxOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Add one or more new tax rates to an existing tax. New rates are merged with existing rates and automatically sorted by valid_from date (newest first). Use this to track historical tax rate changes. * Add new tax rate(s) */ updateTax(requestParameters: UpdateTaxOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; } //# sourceMappingURL=TaxesApi.d.ts.map