import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types'; import { T as TaxGroup, a as TaxGroupNonNullableFields, U as UpdateTaxGroup, b as TaxGroupsQueryBuilder, L as ListDefaultTaxGroupsResponse, c as ListDefaultTaxGroupsResponseNonNullableFields, d as ListDefaultTaxGroupsByAppIdsResponse, e as ListDefaultTaxGroupsByAppIdsResponseNonNullableFields } from './billing-v1-tax-group-tax-groups.universal-PCKewrTz.mjs'; export { y as ActionEvent, A as ApplicationError, O as BaseEventMetadata, B as BulkActionMetadata, C as CreateTaxGroupRequest, f as CreateTaxGroupResponse, H as CreateTaxGroupResponseNonNullableFields, n as CursorPaging, p as CursorPagingMetadata, q as Cursors, D as DeleteTaxGroupRequest, j as DeleteTaxGroupResponse, u as DomainEvent, v as DomainEventBodyOneOf, E as EntityCreatedEvent, x as EntityDeletedEvent, w as EntityUpdatedEvent, V as EventMetadata, G as GetTaxGroupRequest, g as GetTaxGroupResponse, J as GetTaxGroupResponseNonNullableFields, z as IdentificationData, F as IdentificationDataIdOneOf, I as ItemMetadata, s as ListDefaultTaxGroupsByAppIdsRequest, t as ListDefaultTaxGroupsByAppIdsResult, r as ListDefaultTaxGroupsRequest, M as MessageEnvelope, P as Paging, Q as QueryTaxGroupsRequest, o as QueryTaxGroupsResponse, N as QueryTaxGroupsResponseNonNullableFields, k as QueryV2, l as QueryV2PagingMethodOneOf, R as RestoreInfo, S as SortOrder, m as Sorting, X as TaxGroupCreatedEnvelope, Y as TaxGroupDeletedEnvelope, Z as TaxGroupUpdatedEnvelope, _ as TaxGroupsQueryResult, h as UpdateTaxGroupRequest, i as UpdateTaxGroupResponse, K as UpdateTaxGroupResponseNonNullableFields, W as WebhookIdentityType } from './billing-v1-tax-group-tax-groups.universal-PCKewrTz.mjs'; import { createEventModule } from '@wix/sdk-runtime/event-definition-modules'; declare function createTaxGroup$1(httpClient: HttpClient): CreateTaxGroupSignature; interface CreateTaxGroupSignature { /** * Creates a tax group. * * Call Stores Update Product to add the `taxGroupId` to specific products to categorize as a group based on distinct tax treatment. * Wix uses tax groups to calculate tax. * * In addition to tax groups you create, default tax groups are already included in all Wix catalogs. * Call List Default Tax Groups to retrieve them. You can also use the Tax Groups Integration service plugin (REST only) * to create new default tax groups that can be applied directly to an entire catalog of products. * @param - Tax group to create. * @returns Created tax group. */ (taxGroup: TaxGroup): Promise; } declare function getTaxGroup$1(httpClient: HttpClient): GetTaxGroupSignature; interface GetTaxGroupSignature { /** * Retrieves a tax group. * @param - ID of the tax group to retrieve. * @returns Retrieved tax group. */ (taxGroupId: string): Promise; } declare function updateTaxGroup$1(httpClient: HttpClient): UpdateTaxGroupSignature; interface UpdateTaxGroupSignature { /** * Updates a tax group. * * Each time the tax group is updated, `revision` increments by 1. * The current `revision` must be passed when updating the tax group. * This ensures you're working with the latest tax group and prevents * unintended overwrites. * @param - Tax group ID. * @param - Tax group info. * @returns Updated tax group. */ (_id: string | null, taxGroup: UpdateTaxGroup): Promise; } declare function deleteTaxGroup$1(httpClient: HttpClient): DeleteTaxGroupSignature; interface DeleteTaxGroupSignature { /** * Deletes a tax group. * * If a tax group is deleted but the `taxGroupId` is still assigned to a product (see Stores Products API) then the default tax group is used to calculate tax. * @param - ID of the tax group to delete. */ (taxGroupId: string): Promise; } declare function queryTaxGroups$1(httpClient: HttpClient): QueryTaxGroupsSignature; interface QueryTaxGroupsSignature { /** * Creates a query to retrieve a list of tax groups. * * The `queryTaxGroups()` function builds a query to retrieve a list of tax groups and returns a `TaxGroupsQueryBuilder` object. * * The returned object contains the query definition, which is typically used to run the query using the `find()` function. * * You can refine the query by chaining `TaxGroupsQueryBuilder` functions onto the query. `TaxGroupsQueryBuilder` functions enable you to sort, filter, and control the results that `queryTaxGroups()` returns. * * `queryTaxGroups()` runs with the following `TaxGroupsQueryBuilder` default that you can override: * + `ascending("_id")` * * The functions that are chained to `queryTaxGroups()` are applied in the order they are called. For example, if you apply `ascending("name")` and then `ascending("_createdDate")`, the results are sorted first by the `"name"`, and then, if there are multiple results with the same `"name"`, the items are sorted by `"_createdDate"`. * * The following `TaxGroupsQueryBuilder` functions are supported for the `queryTaxGroups()` function. For a full description of the tax group object, see the object returned for the `items` property in `TaxGroupsQueryResult`. */ (): TaxGroupsQueryBuilder; } declare function listDefaultTaxGroups$1(httpClient: HttpClient): ListDefaultTaxGroupsSignature; interface ListDefaultTaxGroupsSignature { /** * Retrieves a list of default tax groups. * * The default tax groups for a site are inherited by the apps installed on the site. * For example, the Wix Stores app includes a `"Products"` tax group by default. * * Add additional default tax groups with the Tax Groups Integration service plugin (REST only). */ (): Promise; } declare function listDefaultTaxGroupsByAppIds$1(httpClient: HttpClient): ListDefaultTaxGroupsByAppIdsSignature; interface ListDefaultTaxGroupsByAppIdsSignature { /** * Retrieves default tax groups for specific apps. * @param - App IDs to retrieve default tax groups for. */ (appIds: string[]): Promise; } declare const createTaxGroup: MaybeContext & typeof createTaxGroup$1>; declare const getTaxGroup: MaybeContext & typeof getTaxGroup$1>; declare const updateTaxGroup: MaybeContext & typeof updateTaxGroup$1>; declare const deleteTaxGroup: MaybeContext & typeof deleteTaxGroup$1>; declare const queryTaxGroups: MaybeContext & typeof queryTaxGroups$1>; declare const listDefaultTaxGroups: MaybeContext & typeof listDefaultTaxGroups$1>; declare const listDefaultTaxGroupsByAppIds: MaybeContext & typeof listDefaultTaxGroupsByAppIds$1>; /** * Triggered when a tax group is created. */ declare const onTaxGroupCreated: ReturnType>; /** * Triggered when a tax group is deleted. */ declare const onTaxGroupDeleted: ReturnType>; /** * Triggered when a tax group is updated. */ declare const onTaxGroupUpdated: ReturnType>; export { ListDefaultTaxGroupsByAppIdsResponse, ListDefaultTaxGroupsByAppIdsResponseNonNullableFields, ListDefaultTaxGroupsResponse, ListDefaultTaxGroupsResponseNonNullableFields, TaxGroup, TaxGroupNonNullableFields, TaxGroupsQueryBuilder, UpdateTaxGroup, createTaxGroup, deleteTaxGroup, getTaxGroup, listDefaultTaxGroups, listDefaultTaxGroupsByAppIds, onTaxGroupCreated, onTaxGroupDeleted, onTaxGroupUpdated, queryTaxGroups, updateTaxGroup };