@wix/auto_sdk_ecom_tax-groups 1.0.6 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. package/build/{internal/cjs/src/billing-v1-tax-group-tax-groups.universal.d.ts → billing-v1-tax-group-tax-groups.universal-CiIRXdgk.d.mts} +48 -294
  2. package/build/{internal/es/src/billing-v1-tax-group-tax-groups.universal.d.ts → billing-v1-tax-group-tax-groups.universal-CiIRXdgk.d.ts} +48 -294
  3. package/build/{cjs/src/billing-v1-tax-group-tax-groups.public.d.ts → index.d.mts} +34 -16
  4. package/build/{internal/cjs/src/billing-v1-tax-group-tax-groups.public.d.ts → index.d.ts} +34 -16
  5. package/build/index.js +602 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +567 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/{cjs/src/billing-v1-tax-group-tax-groups.universal.d.ts → internal/billing-v1-tax-group-tax-groups.universal-CiIRXdgk.d.mts} +48 -294
  10. package/build/{es/src/billing-v1-tax-group-tax-groups.universal.d.ts → internal/billing-v1-tax-group-tax-groups.universal-CiIRXdgk.d.ts} +48 -294
  11. package/build/internal/{es/src/billing-v1-tax-group-tax-groups.public.d.ts → index.d.mts} +34 -16
  12. package/build/{es/src/billing-v1-tax-group-tax-groups.public.d.ts → internal/index.d.ts} +34 -16
  13. package/build/internal/index.js +602 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +567 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/internal/{cjs/src/billing-v1-tax-group-tax-groups.types.d.ts → meta.d.mts} +55 -169
  18. package/build/{cjs/src/billing-v1-tax-group-tax-groups.types.d.ts → internal/meta.d.ts} +55 -169
  19. package/build/internal/meta.js +398 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +365 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/{es/src/billing-v1-tax-group-tax-groups.types.d.ts → meta.d.mts} +55 -169
  24. package/build/{internal/es/src/billing-v1-tax-group-tax-groups.types.d.ts → meta.d.ts} +55 -169
  25. package/build/meta.js +398 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +365 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +13 -12
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/billing-v1-tax-group-tax-groups.context.d.ts +0 -27
  40. package/build/cjs/src/billing-v1-tax-group-tax-groups.context.js +0 -32
  41. package/build/cjs/src/billing-v1-tax-group-tax-groups.context.js.map +0 -1
  42. package/build/cjs/src/billing-v1-tax-group-tax-groups.http.d.ts +0 -57
  43. package/build/cjs/src/billing-v1-tax-group-tax-groups.http.js +0 -286
  44. package/build/cjs/src/billing-v1-tax-group-tax-groups.http.js.map +0 -1
  45. package/build/cjs/src/billing-v1-tax-group-tax-groups.meta.d.ts +0 -25
  46. package/build/cjs/src/billing-v1-tax-group-tax-groups.meta.js +0 -161
  47. package/build/cjs/src/billing-v1-tax-group-tax-groups.meta.js.map +0 -1
  48. package/build/cjs/src/billing-v1-tax-group-tax-groups.public.js +0 -85
  49. package/build/cjs/src/billing-v1-tax-group-tax-groups.public.js.map +0 -1
  50. package/build/cjs/src/billing-v1-tax-group-tax-groups.types.js +0 -17
  51. package/build/cjs/src/billing-v1-tax-group-tax-groups.types.js.map +0 -1
  52. package/build/cjs/src/billing-v1-tax-group-tax-groups.universal.js +0 -399
  53. package/build/cjs/src/billing-v1-tax-group-tax-groups.universal.js.map +0 -1
  54. package/build/es/index.d.ts +0 -1
  55. package/build/es/index.js +0 -2
  56. package/build/es/index.js.map +0 -1
  57. package/build/es/index.typings.d.ts +0 -1
  58. package/build/es/index.typings.js +0 -2
  59. package/build/es/index.typings.js.map +0 -1
  60. package/build/es/meta.d.ts +0 -1
  61. package/build/es/meta.js +0 -2
  62. package/build/es/meta.js.map +0 -1
  63. package/build/es/package.json +0 -3
  64. package/build/es/src/billing-v1-tax-group-tax-groups.context.d.ts +0 -27
  65. package/build/es/src/billing-v1-tax-group-tax-groups.context.js +0 -27
  66. package/build/es/src/billing-v1-tax-group-tax-groups.context.js.map +0 -1
  67. package/build/es/src/billing-v1-tax-group-tax-groups.http.d.ts +0 -57
  68. package/build/es/src/billing-v1-tax-group-tax-groups.http.js +0 -276
  69. package/build/es/src/billing-v1-tax-group-tax-groups.http.js.map +0 -1
  70. package/build/es/src/billing-v1-tax-group-tax-groups.meta.d.ts +0 -25
  71. package/build/es/src/billing-v1-tax-group-tax-groups.meta.js +0 -128
  72. package/build/es/src/billing-v1-tax-group-tax-groups.meta.js.map +0 -1
  73. package/build/es/src/billing-v1-tax-group-tax-groups.public.js +0 -73
  74. package/build/es/src/billing-v1-tax-group-tax-groups.public.js.map +0 -1
  75. package/build/es/src/billing-v1-tax-group-tax-groups.types.js +0 -14
  76. package/build/es/src/billing-v1-tax-group-tax-groups.types.js.map +0 -1
  77. package/build/es/src/billing-v1-tax-group-tax-groups.universal.js +0 -366
  78. package/build/es/src/billing-v1-tax-group-tax-groups.universal.js.map +0 -1
  79. package/build/internal/cjs/index.d.ts +0 -1
  80. package/build/internal/cjs/index.js +0 -18
  81. package/build/internal/cjs/index.js.map +0 -1
  82. package/build/internal/cjs/index.typings.d.ts +0 -1
  83. package/build/internal/cjs/index.typings.js +0 -18
  84. package/build/internal/cjs/index.typings.js.map +0 -1
  85. package/build/internal/cjs/meta.d.ts +0 -1
  86. package/build/internal/cjs/meta.js +0 -18
  87. package/build/internal/cjs/meta.js.map +0 -1
  88. package/build/internal/cjs/src/billing-v1-tax-group-tax-groups.context.d.ts +0 -27
  89. package/build/internal/cjs/src/billing-v1-tax-group-tax-groups.context.js +0 -32
  90. package/build/internal/cjs/src/billing-v1-tax-group-tax-groups.context.js.map +0 -1
  91. package/build/internal/cjs/src/billing-v1-tax-group-tax-groups.http.d.ts +0 -57
  92. package/build/internal/cjs/src/billing-v1-tax-group-tax-groups.http.js +0 -286
  93. package/build/internal/cjs/src/billing-v1-tax-group-tax-groups.http.js.map +0 -1
  94. package/build/internal/cjs/src/billing-v1-tax-group-tax-groups.meta.d.ts +0 -25
  95. package/build/internal/cjs/src/billing-v1-tax-group-tax-groups.meta.js +0 -161
  96. package/build/internal/cjs/src/billing-v1-tax-group-tax-groups.meta.js.map +0 -1
  97. package/build/internal/cjs/src/billing-v1-tax-group-tax-groups.public.js +0 -85
  98. package/build/internal/cjs/src/billing-v1-tax-group-tax-groups.public.js.map +0 -1
  99. package/build/internal/cjs/src/billing-v1-tax-group-tax-groups.types.js +0 -17
  100. package/build/internal/cjs/src/billing-v1-tax-group-tax-groups.types.js.map +0 -1
  101. package/build/internal/cjs/src/billing-v1-tax-group-tax-groups.universal.js +0 -399
  102. package/build/internal/cjs/src/billing-v1-tax-group-tax-groups.universal.js.map +0 -1
  103. package/build/internal/es/index.d.ts +0 -1
  104. package/build/internal/es/index.js +0 -2
  105. package/build/internal/es/index.js.map +0 -1
  106. package/build/internal/es/index.typings.d.ts +0 -1
  107. package/build/internal/es/index.typings.js +0 -2
  108. package/build/internal/es/index.typings.js.map +0 -1
  109. package/build/internal/es/meta.d.ts +0 -1
  110. package/build/internal/es/meta.js +0 -2
  111. package/build/internal/es/meta.js.map +0 -1
  112. package/build/internal/es/src/billing-v1-tax-group-tax-groups.context.d.ts +0 -27
  113. package/build/internal/es/src/billing-v1-tax-group-tax-groups.context.js +0 -27
  114. package/build/internal/es/src/billing-v1-tax-group-tax-groups.context.js.map +0 -1
  115. package/build/internal/es/src/billing-v1-tax-group-tax-groups.http.d.ts +0 -57
  116. package/build/internal/es/src/billing-v1-tax-group-tax-groups.http.js +0 -276
  117. package/build/internal/es/src/billing-v1-tax-group-tax-groups.http.js.map +0 -1
  118. package/build/internal/es/src/billing-v1-tax-group-tax-groups.meta.d.ts +0 -25
  119. package/build/internal/es/src/billing-v1-tax-group-tax-groups.meta.js +0 -128
  120. package/build/internal/es/src/billing-v1-tax-group-tax-groups.meta.js.map +0 -1
  121. package/build/internal/es/src/billing-v1-tax-group-tax-groups.public.js +0 -73
  122. package/build/internal/es/src/billing-v1-tax-group-tax-groups.public.js.map +0 -1
  123. package/build/internal/es/src/billing-v1-tax-group-tax-groups.types.js +0 -14
  124. package/build/internal/es/src/billing-v1-tax-group-tax-groups.types.js.map +0 -1
  125. package/build/internal/es/src/billing-v1-tax-group-tax-groups.universal.js +0 -366
  126. package/build/internal/es/src/billing-v1-tax-group-tax-groups.universal.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/billing-v1-tax-group-tax-groups.public.ts","../../src/billing-v1-tax-group-tax-groups.universal.ts","../../src/billing-v1-tax-group-tax-groups.http.ts","../../src/billing-v1-tax-group-tax-groups.context.ts"],"sourcesContent":["import { renameKeysFromRESTResponseToSDKResponse } from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { EventDefinition, HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n ListDefaultTaxGroupsByAppIdsResponse,\n ListDefaultTaxGroupsResponse,\n TaxGroup,\n TaxGroupCreatedEnvelope,\n TaxGroupDeletedEnvelope,\n TaxGroupUpdatedEnvelope,\n TaxGroupsQueryBuilder,\n UpdateTaxGroup,\n createTaxGroup as universalCreateTaxGroup,\n deleteTaxGroup as universalDeleteTaxGroup,\n getTaxGroup as universalGetTaxGroup,\n listDefaultTaxGroups as universalListDefaultTaxGroups,\n listDefaultTaxGroupsByAppIds as universalListDefaultTaxGroupsByAppIds,\n queryTaxGroups as universalQueryTaxGroups,\n updateTaxGroup as universalUpdateTaxGroup,\n} from './billing-v1-tax-group-tax-groups.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/ecom' };\n\nexport function createTaxGroup(\n httpClient: HttpClient\n): CreateTaxGroupSignature {\n return (taxGroup: NonNullablePaths<TaxGroup, `name`>) =>\n universalCreateTaxGroup(\n taxGroup,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CreateTaxGroupSignature {\n /**\n * Creates a tax group.\n *\n * Call Stores Update Product to add the `taxGroupId` to specific products to categorize as a group based on distinct tax treatment.\n * Wix uses tax groups to calculate tax.\n *\n * In addition to tax groups you create, default tax groups are already included in all Wix catalogs.\n * Call List Default Tax Groups to retrieve them. You can also use the Tax Groups Integration service plugin (REST only)\n * to create new default tax groups that can be applied directly to an entire catalog of products.\n * @param - Tax group to create.\n * @returns Created tax group.\n */\n (taxGroup: TaxGroup): Promise<TaxGroup>;\n}\n\nexport function getTaxGroup(httpClient: HttpClient): GetTaxGroupSignature {\n return (taxGroupId: string) =>\n universalGetTaxGroup(\n taxGroupId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetTaxGroupSignature {\n /**\n * Retrieves a tax group.\n * @param - ID of the tax group to retrieve.\n * @returns Retrieved tax group.\n */\n (taxGroupId: string): Promise<TaxGroup>;\n}\n\nexport function updateTaxGroup(\n httpClient: HttpClient\n): UpdateTaxGroupSignature {\n return (\n _id: string,\n taxGroup: NonNullablePaths<UpdateTaxGroup, `name` | `revision`>\n ) =>\n universalUpdateTaxGroup(\n _id,\n taxGroup,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface UpdateTaxGroupSignature {\n /**\n * Updates a tax group.\n *\n * Each time the tax group is updated, `revision` increments by 1.\n * The current `revision` must be passed when updating the tax group.\n * This ensures you're working with the latest tax group and prevents\n * unintended overwrites.\n * @param - Tax group ID.\n * @param - Tax group info.\n * @returns Updated tax group.\n */\n (_id: string, taxGroup: UpdateTaxGroup): Promise<TaxGroup>;\n}\n\nexport function deleteTaxGroup(\n httpClient: HttpClient\n): DeleteTaxGroupSignature {\n return (taxGroupId: string) =>\n universalDeleteTaxGroup(\n taxGroupId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface DeleteTaxGroupSignature {\n /**\n * Deletes a tax group.\n *\n * 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.\n * @param - ID of the tax group to delete.\n */\n (taxGroupId: string): Promise<void>;\n}\n\nexport function queryTaxGroups(\n httpClient: HttpClient\n): QueryTaxGroupsSignature {\n return () =>\n universalQueryTaxGroups(\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface QueryTaxGroupsSignature {\n /**\n * Creates a query to retrieve a list of tax groups.\n *\n * The `queryTaxGroups()` function builds a query to retrieve a list of tax groups and returns a `TaxGroupsQueryBuilder` object.\n *\n * The returned object contains the query definition, which is typically used to run the query using the `find()` function.\n *\n * 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.\n *\n * `queryTaxGroups()` runs with the following `TaxGroupsQueryBuilder` default that you can override:\n * + `ascending(\"_id\")`\n *\n * 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\"`.\n *\n * 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`.\n */\n (): TaxGroupsQueryBuilder;\n}\n\nexport function listDefaultTaxGroups(\n httpClient: HttpClient\n): ListDefaultTaxGroupsSignature {\n return () =>\n universalListDefaultTaxGroups(\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ListDefaultTaxGroupsSignature {\n /**\n * Retrieves a list of default tax groups.\n *\n * The default tax groups for a site are inherited by the apps installed on the site.\n * For example, the Wix Stores app includes a `\"Products\"` tax group by default.\n *\n * Add additional default tax groups with the Tax Groups Integration service plugin (REST only).\n */\n (): Promise<ListDefaultTaxGroupsResponse>;\n}\n\nexport function listDefaultTaxGroupsByAppIds(\n httpClient: HttpClient\n): ListDefaultTaxGroupsByAppIdsSignature {\n return (appIds: string[]) =>\n universalListDefaultTaxGroupsByAppIds(\n appIds,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ListDefaultTaxGroupsByAppIdsSignature {\n /**\n * Retrieves default tax groups for specific apps.\n * @param - App IDs to retrieve default tax groups for.\n */\n (appIds: string[]): Promise<ListDefaultTaxGroupsByAppIdsResponse>;\n}\n\nexport const onTaxGroupCreated = EventDefinition(\n 'wix.billing.v1.tax_group_created',\n true,\n (event: TaxGroupCreatedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'entity.createdDate' },\n { path: 'entity.updatedDate' },\n { path: 'metadata.eventTime' },\n ],\n },\n ])\n )\n)<TaxGroupCreatedEnvelope>();\nexport const onTaxGroupDeleted = EventDefinition(\n 'wix.billing.v1.tax_group_deleted',\n true,\n (event: TaxGroupDeletedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'undefined.createdDate' },\n { path: 'undefined.updatedDate' },\n { path: 'metadata.eventTime' },\n ],\n },\n ])\n )\n)<TaxGroupDeletedEnvelope>();\nexport const onTaxGroupUpdated = EventDefinition(\n 'wix.billing.v1.tax_group_updated',\n true,\n (event: TaxGroupUpdatedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'entity.createdDate' },\n { path: 'entity.updatedDate' },\n { path: 'metadata.eventTime' },\n ],\n },\n ])\n )\n)<TaxGroupUpdatedEnvelope>();\n\nexport {\n ActionEvent,\n ApplicationError,\n BaseEventMetadata,\n BulkActionMetadata,\n CreateTaxGroupRequest,\n CreateTaxGroupResponse,\n CursorPaging,\n CursorPagingMetadata,\n Cursors,\n DeleteTaxGroupRequest,\n DeleteTaxGroupResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n EventMetadata,\n GetTaxGroupRequest,\n GetTaxGroupResponse,\n IdentificationData,\n IdentificationDataIdOneOf,\n ItemMetadata,\n ListDefaultTaxGroupsByAppIdsRequest,\n ListDefaultTaxGroupsByAppIdsResponse,\n ListDefaultTaxGroupsByAppIdsResult,\n ListDefaultTaxGroupsRequest,\n ListDefaultTaxGroupsResponse,\n MessageEnvelope,\n Paging,\n QueryTaxGroupsRequest,\n QueryTaxGroupsResponse,\n QueryV2,\n QueryV2PagingMethodOneOf,\n RestoreInfo,\n SortOrder,\n Sorting,\n TaxGroup,\n TaxGroupCreatedEnvelope,\n TaxGroupDeletedEnvelope,\n TaxGroupUpdatedEnvelope,\n TaxGroupsQueryBuilder,\n TaxGroupsQueryResult,\n UpdateTaxGroup,\n UpdateTaxGroupRequest,\n UpdateTaxGroupResponse,\n WebhookIdentityType,\n} from './billing-v1-tax-group-tax-groups.universal.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, HttpResponse, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixBillingV1TaxGroup from './billing-v1-tax-group-tax-groups.http.js';\n// @ts-ignore\n\n/**\n * A tax group is a category of specific line items grouped together based on their tax treatment.\n * You can create new tax groups to apply distinct tax rates and rules.\n */\nexport interface TaxGroup {\n /**\n * Tax group ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Tax group name.\n * @minLength 1\n * @maxLength 200\n */\n name?: string;\n /**\n * Revision number, which increments by 1 each time the tax group is updated. To prevent conflicting changes,\n * the current revision must be passed when updating the tax group.\n *\n * Ignored when creating a tax group.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the tax group was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the tax group was last updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n}\n\nexport interface CreateTaxGroupRequest {\n /** Tax group to create. */\n taxGroup: TaxGroup;\n}\n\nexport interface CreateTaxGroupResponse {\n /** Created tax group. */\n taxGroup?: TaxGroup;\n}\n\nexport interface GetTaxGroupRequest {\n /**\n * ID of the tax group to retrieve.\n * @format GUID\n */\n taxGroupId: string;\n}\n\nexport interface GetTaxGroupResponse {\n /** Retrieved tax group. */\n taxGroup?: TaxGroup;\n}\n\nexport interface UpdateTaxGroupRequest {\n /** Tax group info to update. */\n taxGroup: TaxGroup;\n}\n\nexport interface UpdateTaxGroupResponse {\n /** Updated tax group. */\n taxGroup?: TaxGroup;\n}\n\nexport interface DeleteTaxGroupRequest {\n /**\n * ID of the tax group to delete.\n * @format GUID\n */\n taxGroupId: string;\n}\n\nexport interface DeleteTaxGroupResponse {}\n\nexport interface QueryTaxGroupsRequest {\n /** Query options. */\n query: QueryV2;\n}\n\nexport interface QueryV2 extends QueryV2PagingMethodOneOf {\n /** Paging options to limit and skip the number of items. */\n paging?: Paging;\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n /**\n * Filter object.\n *\n * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object.\n *\n * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).\n */\n sort?: Sorting[];\n /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */\n fields?: string[];\n /** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */\n fieldsets?: string[];\n}\n\n/** @oneof */\nexport interface QueryV2PagingMethodOneOf {\n /** Paging options to limit and skip the number of items. */\n paging?: Paging;\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrder;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\nexport interface Paging {\n /** Number of items to load. */\n limit?: number | null;\n /** Number of items to skip in the current sort order. */\n offset?: number | null;\n}\n\nexport interface CursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface QueryTaxGroupsResponse {\n /** Retrieved default tax groups. */\n taxGroups?: TaxGroup[];\n /** Paging metadata. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in current page. */\n count?: number | null;\n /** Cursor strings that point to the next page, previous page, or both. */\n cursors?: Cursors;\n /**\n * Whether there are more pages to retrieve following the current page.\n *\n * + `true`: Another page of results can be retrieved.\n * + `false`: This is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface ListDefaultTaxGroupsRequest {}\n\nexport interface ListDefaultTaxGroupsResponse {\n /** Retrieved default tax groups. */\n taxGroups?: TaxGroup[];\n}\n\nexport interface ListDefaultTaxGroupsByAppIdsRequest {\n /**\n * App IDs to retrieve default tax groups for.\n * @minSize 1\n * @maxSize 300\n * @minLength 1\n */\n appIds: string[];\n}\n\nexport interface ListDefaultTaxGroupsByAppIdsResponse {\n /**\n * Retrieved default tax groups.\n * @minSize 1\n * @maxSize 300\n */\n results?: ListDefaultTaxGroupsByAppIdsResult[];\n /** Bulk action metadata. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface ListDefaultTaxGroupsByAppIdsResult {\n /** Information about success or failure to retrieve default tax groups. */\n taxGroupMetadata?: ItemMetadata;\n /** Retrieved default tax groups. */\n taxGroup?: TaxGroup;\n}\n\nexport interface ItemMetadata {\n /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */\n _id?: string | null;\n /** Index of the item within the request array. Allows for correlation between request and response items. */\n originalIndex?: number;\n /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */\n success?: boolean;\n /** Details about the error in case of failure. */\n error?: ApplicationError;\n}\n\nexport interface ApplicationError {\n /** Error code. */\n code?: string;\n /** Description of the error. */\n description?: string;\n /** Data related to the error. */\n data?: Record<string, any> | null;\n}\n\nexport interface BulkActionMetadata {\n /** Number of items that were successfully processed. */\n totalSuccesses?: number;\n /** Number of items that couldn't be processed. */\n totalFailures?: number;\n /** Number of failures without details because detailed failure threshold was exceeded. */\n undetailedFailures?: number;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /**\n * Unique event ID.\n * Allows clients to ignore duplicate webhooks.\n */\n _id?: string;\n /**\n * Assumes actions are also always typed to an entity_type\n * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction\n */\n entityFqdn?: string;\n /**\n * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)\n * This is although the created/updated/deleted notion is duplication of the oneof types\n * Example: created/updated/deleted/started/completed/email_opened\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number defining the order of updates to the underlying entity.\n * For example, given that some entity was updated at 16:00 and than again at 16:01,\n * it is guaranteed that the sequence number of the second update is strictly higher than the first.\n * As the consumer, you can use this value to ensure that you handle messages in the correct order.\n * To do so, you will need to persist this number on your end, and compare the sequence number from the\n * message against the one you have stored. Given that the stored number is higher, you should ignore the message.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityType;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\nexport interface BaseEventMetadata {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n}\n\nexport interface EventMetadata extends BaseEventMetadata {\n /**\n * Unique event ID.\n * Allows clients to ignore duplicate webhooks.\n */\n _id?: string;\n /**\n * Assumes actions are also always typed to an entity_type\n * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction\n */\n entityFqdn?: string;\n /**\n * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)\n * This is although the created/updated/deleted notion is duplication of the oneof types\n * Example: created/updated/deleted/started/completed/email_opened\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number defining the order of updates to the underlying entity.\n * For example, given that some entity was updated at 16:00 and than again at 16:01,\n * it is guaranteed that the sequence number of the second update is strictly higher than the first.\n * As the consumer, you can use this value to ensure that you handle messages in the correct order.\n * To do so, you will need to persist this number on your end, and compare the sequence number from the\n * message against the one you have stored. Given that the stored number is higher, you should ignore the message.\n */\n entityEventSequence?: string | null;\n}\n\nexport interface TaxGroupCreatedEnvelope {\n entity: TaxGroup;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a tax group is created.\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionScope Manage Orders\n * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS\n * @permissionId BILLING.TAX_GROUP_READ\n * @webhook\n * @eventType wix.billing.v1.tax_group_created\n * @serviceIdentifier wix.billing.v1.TaxGroups\n * @slug created\n * @documentationMaturity preview\n */\nexport declare function onTaxGroupCreated(\n handler: (event: TaxGroupCreatedEnvelope) => void | Promise<void>\n): void;\n\nexport interface TaxGroupDeletedEnvelope {\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a tax group is deleted.\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionScope Manage Orders\n * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS\n * @permissionId BILLING.TAX_GROUP_READ\n * @webhook\n * @eventType wix.billing.v1.tax_group_deleted\n * @serviceIdentifier wix.billing.v1.TaxGroups\n * @slug deleted\n * @documentationMaturity preview\n */\nexport declare function onTaxGroupDeleted(\n handler: (event: TaxGroupDeletedEnvelope) => void | Promise<void>\n): void;\n\nexport interface TaxGroupUpdatedEnvelope {\n entity: TaxGroup;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a tax group is updated.\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionScope Manage Orders\n * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS\n * @permissionId BILLING.TAX_GROUP_READ\n * @webhook\n * @eventType wix.billing.v1.tax_group_updated\n * @serviceIdentifier wix.billing.v1.TaxGroups\n * @slug updated\n * @documentationMaturity preview\n */\nexport declare function onTaxGroupUpdated(\n handler: (event: TaxGroupUpdatedEnvelope) => void | Promise<void>\n): void;\n\ntype TaxGroupNonNullablePaths = `name`;\n\n/**\n * Creates a tax group.\n *\n * Call Stores Update Product to add the `taxGroupId` to specific products to categorize as a group based on distinct tax treatment.\n * Wix uses tax groups to calculate tax.\n *\n * In addition to tax groups you create, default tax groups are already included in all Wix catalogs.\n * Call List Default Tax Groups to retrieve them. You can also use the Tax Groups Integration service plugin (REST only)\n * to create new default tax groups that can be applied directly to an entire catalog of products.\n * @param taxGroup - Tax group to create.\n * @public\n * @documentationMaturity preview\n * @requiredField taxGroup\n * @requiredField taxGroup.name\n * @permissionId BILLING.TAX_GROUP_CREATE\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionScope Manage Orders\n * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS\n * @applicableIdentity APP\n * @returns Created tax group.\n * @fqn wix.billing.v1.TaxGroups.CreateTaxGroup\n */\nexport async function createTaxGroup(\n taxGroup: NonNullablePaths<TaxGroup, `name`>\n): Promise<NonNullablePaths<TaxGroup, TaxGroupNonNullablePaths>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ taxGroup: taxGroup });\n\n const reqOpts = ambassadorWixBillingV1TaxGroup.createTaxGroup(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.taxGroup!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { taxGroup: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['taxGroup']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a tax group.\n * @param taxGroupId - ID of the tax group to retrieve.\n * @public\n * @documentationMaturity preview\n * @requiredField taxGroupId\n * @permissionId BILLING.TAX_GROUP_READ\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionScope Manage Orders\n * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS\n * @applicableIdentity APP\n * @applicableIdentity VISITOR\n * @returns Retrieved tax group.\n * @fqn wix.billing.v1.TaxGroups.GetTaxGroup\n */\nexport async function getTaxGroup(\n taxGroupId: string\n): Promise<NonNullablePaths<TaxGroup, TaxGroupNonNullablePaths>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n taxGroupId: taxGroupId,\n });\n\n const reqOpts = ambassadorWixBillingV1TaxGroup.getTaxGroup(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.taxGroup!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { taxGroupId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['taxGroupId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Updates a tax group.\n *\n * Each time the tax group is updated, `revision` increments by 1.\n * The current `revision` must be passed when updating the tax group.\n * This ensures you're working with the latest tax group and prevents\n * unintended overwrites.\n * @param _id - Tax group ID.\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @requiredField taxGroup\n * @requiredField taxGroup.name\n * @requiredField taxGroup.revision\n * @param taxGroup - Tax group info.\n * @permissionId BILLING.TAX_GROUP_UPDATE\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionScope Manage Orders\n * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS\n * @applicableIdentity APP\n * @returns Updated tax group.\n * @fqn wix.billing.v1.TaxGroups.UpdateTaxGroup\n */\nexport async function updateTaxGroup(\n _id: string,\n taxGroup: NonNullablePaths<UpdateTaxGroup, `name` | `revision`>\n): Promise<NonNullablePaths<TaxGroup, TaxGroupNonNullablePaths>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n taxGroup: { ...taxGroup, id: _id },\n });\n\n const reqOpts = ambassadorWixBillingV1TaxGroup.updateTaxGroup(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.taxGroup!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: { taxGroup: '$[1]' },\n explicitPathsToArguments: { 'taxGroup.id': '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['_id', 'taxGroup']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateTaxGroup {\n /**\n * Tax group ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Tax group name.\n * @minLength 1\n * @maxLength 200\n */\n name?: string;\n /**\n * Revision number, which increments by 1 each time the tax group is updated. To prevent conflicting changes,\n * the current revision must be passed when updating the tax group.\n *\n * Ignored when creating a tax group.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the tax group was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the tax group was last updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n}\n\n/**\n * Deletes a tax group.\n *\n * 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.\n * @param taxGroupId - ID of the tax group to delete.\n * @public\n * @documentationMaturity preview\n * @requiredField taxGroupId\n * @permissionId BILLING.TAX_GROUP_DELETE\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionScope Manage Orders\n * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS\n * @applicableIdentity APP\n * @fqn wix.billing.v1.TaxGroups.DeleteTaxGroup\n */\nexport async function deleteTaxGroup(taxGroupId: string): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n taxGroupId: taxGroupId,\n });\n\n const reqOpts = ambassadorWixBillingV1TaxGroup.deleteTaxGroup(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { taxGroupId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['taxGroupId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Creates a query to retrieve a list of tax groups.\n *\n * The `queryTaxGroups()` function builds a query to retrieve a list of tax groups and returns a `TaxGroupsQueryBuilder` object.\n *\n * The returned object contains the query definition, which is typically used to run the query using the `find()` function.\n *\n * 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.\n *\n * `queryTaxGroups()` runs with the following `TaxGroupsQueryBuilder` default that you can override:\n * + `ascending(\"_id\")`\n *\n * 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\"`.\n *\n * 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`.\n * @public\n * @documentationMaturity preview\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionScope Manage Orders\n * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS\n * @permissionId BILLING.TAX_GROUP_READ\n * @applicableIdentity APP\n * @applicableIdentity VISITOR\n * @fqn wix.billing.v1.TaxGroups.QueryTaxGroups\n */\nexport function queryTaxGroups(): TaxGroupsQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<\n TaxGroup,\n 'CURSOR',\n QueryTaxGroupsRequest,\n QueryTaxGroupsResponse\n >({\n func: async (payload: QueryTaxGroupsRequest) => {\n const reqOpts = ambassadorWixBillingV1TaxGroup.queryTaxGroups(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n return result;\n } catch (err) {\n sideEffects?.onError?.(err);\n throw err;\n }\n },\n requestTransformer: (query: QueryTaxGroupsRequest['query']) => {\n const args = [query, {}] as [QueryTaxGroupsRequest['query'], {}];\n return renameKeysFromSDKRequestToRESTRequest({\n ...args?.[1],\n query: args?.[0],\n });\n },\n responseTransformer: ({ data }: HttpResponse<QueryTaxGroupsResponse>) => {\n const transformedData = renameKeysFromRESTResponseToSDKResponse(data);\n\n return {\n items: transformedData?.taxGroups,\n pagingMetadata: transformedData?.pagingMetadata,\n };\n },\n errorTransformer: (err: unknown) => {\n const transformedError = sdkTransformError(err, {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n });\n\n throw transformedError;\n },\n pagingMethod: 'CURSOR',\n transformationPaths: {},\n });\n}\n\ninterface QueryCursorResult {\n cursors: Cursors;\n hasNext: () => boolean;\n hasPrev: () => boolean;\n length: number;\n pageSize: number;\n}\n\nexport interface TaxGroupsQueryResult extends QueryCursorResult {\n items: TaxGroup[];\n query: TaxGroupsQueryBuilder;\n next: () => Promise<TaxGroupsQueryResult>;\n prev: () => Promise<TaxGroupsQueryResult>;\n}\n\nexport interface TaxGroupsQueryBuilder {\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n eq: (\n propertyName: '_id' | 'name' | '_createdDate' | '_updatedDate',\n value: any\n ) => TaxGroupsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n ne: (\n propertyName: '_id' | 'name' | '_createdDate' | '_updatedDate',\n value: any\n ) => TaxGroupsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n ge: (\n propertyName: '_createdDate' | '_updatedDate',\n value: any\n ) => TaxGroupsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n gt: (\n propertyName: '_createdDate' | '_updatedDate',\n value: any\n ) => TaxGroupsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n le: (\n propertyName: '_createdDate' | '_updatedDate',\n value: any\n ) => TaxGroupsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n lt: (\n propertyName: '_createdDate' | '_updatedDate',\n value: any\n ) => TaxGroupsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `values`.\n * @param values - List of values to compare against.\n * @documentationMaturity preview\n */\n hasSome: (\n propertyName: '_createdDate' | '_updatedDate',\n value: any[]\n ) => TaxGroupsQueryBuilder;\n /** @documentationMaturity preview */\n in: (\n propertyName: '_id' | 'name' | '_createdDate' | '_updatedDate',\n value: any\n ) => TaxGroupsQueryBuilder;\n /** @documentationMaturity preview */\n exists: (\n propertyName: '_createdDate' | '_updatedDate',\n value: boolean\n ) => TaxGroupsQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.\n * @documentationMaturity preview\n */\n ascending: (\n ...propertyNames: Array<'_id' | 'name' | '_createdDate' | '_updatedDate'>\n ) => TaxGroupsQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.\n * @documentationMaturity preview\n */\n descending: (\n ...propertyNames: Array<'_id' | 'name' | '_createdDate' | '_updatedDate'>\n ) => TaxGroupsQueryBuilder;\n /** @param limit - Number of items to return, which is also the `pageSize` of the results object.\n * @documentationMaturity preview\n */\n limit: (limit: number) => TaxGroupsQueryBuilder;\n /** @param cursor - A pointer to specific record\n * @documentationMaturity preview\n */\n skipTo: (cursor: string) => TaxGroupsQueryBuilder;\n /** @documentationMaturity preview */\n find: () => Promise<TaxGroupsQueryResult>;\n}\n\n/**\n * Retrieves a list of default tax groups.\n *\n * The default tax groups for a site are inherited by the apps installed on the site.\n * For example, the Wix Stores app includes a `\"Products\"` tax group by default.\n *\n * Add additional default tax groups with the Tax Groups Integration service plugin (REST only).\n * @public\n * @documentationMaturity preview\n * @permissionId BILLING.TAX_GROUP_READ\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionScope Manage Orders\n * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS\n * @applicableIdentity APP\n * @applicableIdentity VISITOR\n * @fqn wix.billing.v1.TaxGroups.ListDefaultTaxGroups\n */\nexport async function listDefaultTaxGroups(): Promise<\n NonNullablePaths<\n ListDefaultTaxGroupsResponse,\n {\n [P in TaxGroupNonNullablePaths]: `taxGroups.${number}.${P}`;\n }[TaxGroupNonNullablePaths]\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({});\n\n const reqOpts = ambassadorWixBillingV1TaxGroup.listDefaultTaxGroups(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {},\n singleArgumentUnchanged: false,\n },\n []\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves default tax groups for specific apps.\n * @param appIds - App IDs to retrieve default tax groups for.\n * @public\n * @documentationMaturity preview\n * @requiredField appIds\n * @permissionId BILLING.TAX_GROUP_READ\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionScope Manage Orders\n * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS\n * @applicableIdentity APP\n * @applicableIdentity VISITOR\n * @fqn wix.billing.v1.TaxGroups.ListDefaultTaxGroupsByAppIds\n */\nexport async function listDefaultTaxGroupsByAppIds(\n appIds: string[]\n): Promise<\n NonNullablePaths<\n ListDefaultTaxGroupsByAppIdsResponse,\n | `results`\n | `results.${number}.taxGroupMetadata.originalIndex`\n | `results.${number}.taxGroupMetadata.success`\n | `results.${number}.taxGroupMetadata.error.code`\n | `results.${number}.taxGroupMetadata.error.description`\n | {\n [P in TaxGroupNonNullablePaths]: `results.${number}.taxGroup.${P}`;\n }[TaxGroupNonNullablePaths]\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ appIds: appIds });\n\n const reqOpts =\n ambassadorWixBillingV1TaxGroup.listDefaultTaxGroupsByAppIds(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { appIds: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['appIds']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixBillingV1TaxGroupsUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www.wixapis.com': [\n {\n srcPath: '/billing/v1/tax-groups',\n destPath: '/v1/tax-groups',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/billing/v1/tax-groups',\n destPath: '/v1/tax-groups',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_ecom_tax-groups';\n\n/**\n * Creates a tax group.\n *\n * Call Stores Update Product to add the `taxGroupId` to specific products to categorize as a group based on distinct tax treatment.\n * Wix uses tax groups to calculate tax.\n *\n * In addition to tax groups you create, default tax groups are already included in all Wix catalogs.\n * Call List Default Tax Groups to retrieve them. You can also use the Tax Groups Integration service plugin (REST only)\n * to create new default tax groups that can be applied directly to an entire catalog of products.\n */\nexport function createTaxGroup(payload: object): RequestOptionsFactory<any> {\n function __createTaxGroup({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'taxGroup.createdDate' },\n { path: 'taxGroup.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.billing.v1.tax_group',\n method: 'POST' as any,\n methodFqn: 'wix.billing.v1.TaxGroups.CreateTaxGroup',\n packageName: PACKAGE_NAME,\n url: resolveWixBillingV1TaxGroupsUrl({\n protoPath: '/v1/tax-groups',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'taxGroup.createdDate' },\n { path: 'taxGroup.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createTaxGroup;\n}\n\n/** Retrieves a tax group. */\nexport function getTaxGroup(payload: object): RequestOptionsFactory<any> {\n function __getTaxGroup({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.billing.v1.tax_group',\n method: 'GET' as any,\n methodFqn: 'wix.billing.v1.TaxGroups.GetTaxGroup',\n packageName: PACKAGE_NAME,\n url: resolveWixBillingV1TaxGroupsUrl({\n protoPath: '/v1/tax-groups/{taxGroupId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'taxGroup.createdDate' },\n { path: 'taxGroup.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getTaxGroup;\n}\n\n/**\n * Updates a tax group.\n *\n * Each time the tax group is updated, `revision` increments by 1.\n * The current `revision` must be passed when updating the tax group.\n * This ensures you're working with the latest tax group and prevents\n * unintended overwrites.\n */\nexport function updateTaxGroup(payload: object): RequestOptionsFactory<any> {\n function __updateTaxGroup({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'taxGroup.createdDate' },\n { path: 'taxGroup.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.billing.v1.tax_group',\n method: 'PATCH' as any,\n methodFqn: 'wix.billing.v1.TaxGroups.UpdateTaxGroup',\n packageName: PACKAGE_NAME,\n url: resolveWixBillingV1TaxGroupsUrl({\n protoPath: '/v1/tax-groups/{taxGroup.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'taxGroup.createdDate' },\n { path: 'taxGroup.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateTaxGroup;\n}\n\n/**\n * Deletes a tax group.\n *\n * 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.\n */\nexport function deleteTaxGroup(payload: object): RequestOptionsFactory<any> {\n function __deleteTaxGroup({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.billing.v1.tax_group',\n method: 'DELETE' as any,\n methodFqn: 'wix.billing.v1.TaxGroups.DeleteTaxGroup',\n packageName: PACKAGE_NAME,\n url: resolveWixBillingV1TaxGroupsUrl({\n protoPath: '/v1/tax-groups/{taxGroupId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteTaxGroup;\n}\n\n/**\n * Creates a query to retrieve a list of tax groups.\n *\n * The `queryTaxGroups()` function builds a query to retrieve a list of tax groups and returns a `TaxGroupsQueryBuilder` object.\n *\n * The returned object contains the query definition, which is typically used to run the query using the `find()` function.\n *\n * 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.\n *\n * `queryTaxGroups()` runs with the following `TaxGroupsQueryBuilder` default that you can override:\n * + `ascending(\"_id\")`\n *\n * 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\"`.\n *\n * 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`.\n */\nexport function queryTaxGroups(payload: object): RequestOptionsFactory<any> {\n function __queryTaxGroups({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.billing.v1.tax_group',\n method: 'POST' as any,\n methodFqn: 'wix.billing.v1.TaxGroups.QueryTaxGroups',\n packageName: PACKAGE_NAME,\n url: resolveWixBillingV1TaxGroupsUrl({\n protoPath: '/v1/tax-groups/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'taxGroups.createdDate' },\n { path: 'taxGroups.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryTaxGroups;\n}\n\n/**\n * Retrieves a list of default tax groups.\n *\n * The default tax groups for a site are inherited by the apps installed on the site.\n * For example, the Wix Stores app includes a `\"Products\"` tax group by default.\n *\n * Add additional default tax groups with the Tax Groups Integration service plugin (REST only).\n */\nexport function listDefaultTaxGroups(\n payload: object\n): RequestOptionsFactory<any> {\n function __listDefaultTaxGroups({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.billing.v1.tax_group',\n method: 'GET' as any,\n methodFqn: 'wix.billing.v1.TaxGroups.ListDefaultTaxGroups',\n packageName: PACKAGE_NAME,\n url: resolveWixBillingV1TaxGroupsUrl({\n protoPath: '/v1/tax-groups/default-tax-groups',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'taxGroups.createdDate' },\n { path: 'taxGroups.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listDefaultTaxGroups;\n}\n\n/** Retrieves default tax groups for specific apps. */\nexport function listDefaultTaxGroupsByAppIds(\n payload: object\n): RequestOptionsFactory<any> {\n function __listDefaultTaxGroupsByAppIds({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.billing.v1.tax_group',\n method: 'POST' as any,\n methodFqn: 'wix.billing.v1.TaxGroups.ListDefaultTaxGroupsByAppIds',\n packageName: PACKAGE_NAME,\n url: resolveWixBillingV1TaxGroupsUrl({\n protoPath: '/v1/tax-groups/list-default-tax-groups-by-app-ids',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'results.taxGroup.createdDate' },\n { path: 'results.taxGroup.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listDefaultTaxGroupsByAppIds;\n}\n","import {\n createTaxGroup as publicCreateTaxGroup,\n getTaxGroup as publicGetTaxGroup,\n updateTaxGroup as publicUpdateTaxGroup,\n deleteTaxGroup as publicDeleteTaxGroup,\n queryTaxGroups as publicQueryTaxGroups,\n listDefaultTaxGroups as publicListDefaultTaxGroups,\n listDefaultTaxGroupsByAppIds as publicListDefaultTaxGroupsByAppIds,\n} from './billing-v1-tax-group-tax-groups.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { createEventModule } from '@wix/sdk-runtime/event-definition-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\nimport { onTaxGroupCreated as publicOnTaxGroupCreated } from './billing-v1-tax-group-tax-groups.public.js';\nimport { onTaxGroupDeleted as publicOnTaxGroupDeleted } from './billing-v1-tax-group-tax-groups.public.js';\nimport { onTaxGroupUpdated as publicOnTaxGroupUpdated } from './billing-v1-tax-group-tax-groups.public.js';\n\nexport const createTaxGroup: MaybeContext<\n BuildRESTFunction<typeof publicCreateTaxGroup> & typeof publicCreateTaxGroup\n> = /*#__PURE__*/ createRESTModule(publicCreateTaxGroup);\nexport const getTaxGroup: MaybeContext<\n BuildRESTFunction<typeof publicGetTaxGroup> & typeof publicGetTaxGroup\n> = /*#__PURE__*/ createRESTModule(publicGetTaxGroup);\nexport const updateTaxGroup: MaybeContext<\n BuildRESTFunction<typeof publicUpdateTaxGroup> & typeof publicUpdateTaxGroup\n> = /*#__PURE__*/ createRESTModule(publicUpdateTaxGroup);\nexport const deleteTaxGroup: MaybeContext<\n BuildRESTFunction<typeof publicDeleteTaxGroup> & typeof publicDeleteTaxGroup\n> = /*#__PURE__*/ createRESTModule(publicDeleteTaxGroup);\nexport const queryTaxGroups: MaybeContext<\n BuildRESTFunction<typeof publicQueryTaxGroups> & typeof publicQueryTaxGroups\n> = /*#__PURE__*/ createRESTModule(publicQueryTaxGroups);\nexport const listDefaultTaxGroups: MaybeContext<\n BuildRESTFunction<typeof publicListDefaultTaxGroups> &\n typeof publicListDefaultTaxGroups\n> = /*#__PURE__*/ createRESTModule(publicListDefaultTaxGroups);\nexport const listDefaultTaxGroupsByAppIds: MaybeContext<\n BuildRESTFunction<typeof publicListDefaultTaxGroupsByAppIds> &\n typeof publicListDefaultTaxGroupsByAppIds\n> = /*#__PURE__*/ createRESTModule(publicListDefaultTaxGroupsByAppIds);\n/**\n * Triggered when a tax group is created.\n */\nexport const onTaxGroupCreated: ReturnType<\n typeof createEventModule<typeof publicOnTaxGroupCreated>\n> = createEventModule(publicOnTaxGroupCreated);\n/**\n * Triggered when a tax group is deleted.\n */\nexport const onTaxGroupDeleted: ReturnType<\n typeof createEventModule<typeof publicOnTaxGroupDeleted>\n> = createEventModule(publicOnTaxGroupDeleted);\n/**\n * Triggered when a tax group is updated.\n */\nexport const onTaxGroupUpdated: ReturnType<\n typeof createEventModule<typeof publicOnTaxGroupUpdated>\n> = createEventModule(publicOnTaxGroupUpdated);\n\nexport {\n SortOrder,\n WebhookIdentityType,\n} from './billing-v1-tax-group-tax-groups.universal.js';\nexport {\n TaxGroup,\n CreateTaxGroupRequest,\n CreateTaxGroupResponse,\n GetTaxGroupRequest,\n GetTaxGroupResponse,\n UpdateTaxGroupRequest,\n UpdateTaxGroupResponse,\n DeleteTaxGroupRequest,\n DeleteTaxGroupResponse,\n QueryTaxGroupsRequest,\n QueryV2,\n QueryV2PagingMethodOneOf,\n Sorting,\n Paging,\n CursorPaging,\n QueryTaxGroupsResponse,\n CursorPagingMetadata,\n Cursors,\n ListDefaultTaxGroupsRequest,\n ListDefaultTaxGroupsResponse,\n ListDefaultTaxGroupsByAppIdsRequest,\n ListDefaultTaxGroupsByAppIdsResponse,\n ListDefaultTaxGroupsByAppIdsResult,\n ItemMetadata,\n ApplicationError,\n BulkActionMetadata,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n BaseEventMetadata,\n EventMetadata,\n TaxGroupCreatedEnvelope,\n TaxGroupDeletedEnvelope,\n TaxGroupUpdatedEnvelope,\n UpdateTaxGroup,\n TaxGroupsQueryResult,\n TaxGroupsQueryBuilder,\n} from './billing-v1-tax-group-tax-groups.universal.js';\n"],"mappings":";AAAA,SAAS,2CAAAA,gDAA+C;AACxD,SAAS,wCAAAC,6CAA4C;AACrD,SAAS,kBAAAC,u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imestamp","transformPaths","payload","SortOrder","WebhookIdentityType","createTaxGroup","getTaxGroup","updateTaxGroup","deleteTaxGroup","queryTaxGroups","listDefaultTaxGroups","listDefaultTaxGroupsByAppIds","createTaxGroup","getTaxGroup","updateTaxGroup","deleteTaxGroup","queryTaxGroups","listDefaultTaxGroups","listDefaultTaxGroupsByAppIds","renameKeysFromRESTResponseToSDKResponse","transformPaths","transformRESTTimestampToSDKTimestamp","createTaxGroup","getTaxGroup","updateTaxGroup","deleteTaxGroup","queryTaxGroups","listDefaultTaxGroups","listDefaultTaxGroupsByAppIds","onTaxGroupCreated","onTaxGroupDeleted","onTaxGroupUpdated"]}
@@ -1,8 +1,10 @@
1
+ import { C as CreateTaxGroupRequest$1, c as CreateTaxGroupResponse$1, G as GetTaxGroupRequest$1, d as GetTaxGroupResponse$1, e as UpdateTaxGroupRequest$1, f as UpdateTaxGroupResponse$1, D as DeleteTaxGroupRequest$1, g as DeleteTaxGroupResponse$1, Q as QueryTaxGroupsRequest$1, l as QueryTaxGroupsResponse$1, o as ListDefaultTaxGroupsRequest$1, L as ListDefaultTaxGroupsResponse$1, p as ListDefaultTaxGroupsByAppIdsRequest$1, b as ListDefaultTaxGroupsByAppIdsResponse$1 } from './billing-v1-tax-group-tax-groups.universal-CiIRXdgk.mjs';
2
+
1
3
  /**
2
4
  * A tax group is a category of specific line items grouped together based on their tax treatment.
3
5
  * You can create new tax groups to apply distinct tax rates and rules.
4
6
  */
5
- export interface TaxGroup {
7
+ interface TaxGroup {
6
8
  /**
7
9
  * Tax group ID.
8
10
  * @format GUID
@@ -34,47 +36,47 @@ export interface TaxGroup {
34
36
  */
35
37
  updatedDate?: Date | null;
36
38
  }
37
- export interface CreateTaxGroupRequest {
39
+ interface CreateTaxGroupRequest {
38
40
  /** Tax group to create. */
39
41
  taxGroup: TaxGroup;
40
42
  }
41
- export interface CreateTaxGroupResponse {
43
+ interface CreateTaxGroupResponse {
42
44
  /** Created tax group. */
43
45
  taxGroup?: TaxGroup;
44
46
  }
45
- export interface GetTaxGroupRequest {
47
+ interface GetTaxGroupRequest {
46
48
  /**
47
49
  * ID of the tax group to retrieve.
48
50
  * @format GUID
49
51
  */
50
52
  taxGroupId: string;
51
53
  }
52
- export interface GetTaxGroupResponse {
54
+ interface GetTaxGroupResponse {
53
55
  /** Retrieved tax group. */
54
56
  taxGroup?: TaxGroup;
55
57
  }
56
- export interface UpdateTaxGroupRequest {
58
+ interface UpdateTaxGroupRequest {
57
59
  /** Tax group info to update. */
58
60
  taxGroup: TaxGroup;
59
61
  }
60
- export interface UpdateTaxGroupResponse {
62
+ interface UpdateTaxGroupResponse {
61
63
  /** Updated tax group. */
62
64
  taxGroup?: TaxGroup;
63
65
  }
64
- export interface DeleteTaxGroupRequest {
66
+ interface DeleteTaxGroupRequest {
65
67
  /**
66
68
  * ID of the tax group to delete.
67
69
  * @format GUID
68
70
  */
69
71
  taxGroupId: string;
70
72
  }
71
- export interface DeleteTaxGroupResponse {
73
+ interface DeleteTaxGroupResponse {
72
74
  }
73
- export interface QueryTaxGroupsRequest {
75
+ interface QueryTaxGroupsRequest {
74
76
  /** Query options. */
75
77
  query: QueryV2;
76
78
  }
77
- export interface QueryV2 extends QueryV2PagingMethodOneOf {
79
+ interface QueryV2 extends QueryV2PagingMethodOneOf {
78
80
  /** Paging options to limit and skip the number of items. */
79
81
  paging?: Paging;
80
82
  /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
@@ -97,13 +99,13 @@ export interface QueryV2 extends QueryV2PagingMethodOneOf {
97
99
  fieldsets?: string[];
98
100
  }
99
101
  /** @oneof */
100
- export interface QueryV2PagingMethodOneOf {
102
+ interface QueryV2PagingMethodOneOf {
101
103
  /** Paging options to limit and skip the number of items. */
102
104
  paging?: Paging;
103
105
  /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
104
106
  cursorPaging?: CursorPaging;
105
107
  }
106
- export interface Sorting {
108
+ interface Sorting {
107
109
  /**
108
110
  * Name of the field to sort by.
109
111
  * @maxLength 512
@@ -112,17 +114,17 @@ export interface Sorting {
112
114
  /** Sort order. */
113
115
  order?: SortOrder;
114
116
  }
115
- export declare enum SortOrder {
117
+ declare enum SortOrder {
116
118
  ASC = "ASC",
117
119
  DESC = "DESC"
118
120
  }
119
- export interface Paging {
121
+ interface Paging {
120
122
  /** Number of items to load. */
121
123
  limit?: number | null;
122
124
  /** Number of items to skip in the current sort order. */
123
125
  offset?: number | null;
124
126
  }
125
- export interface CursorPaging {
127
+ interface CursorPaging {
126
128
  /**
127
129
  * Maximum number of items to return in the results.
128
130
  * @max 100
@@ -137,13 +139,13 @@ export interface CursorPaging {
137
139
  */
138
140
  cursor?: string | null;
139
141
  }
140
- export interface QueryTaxGroupsResponse {
142
+ interface QueryTaxGroupsResponse {
141
143
  /** Retrieved default tax groups. */
142
144
  taxGroups?: TaxGroup[];
143
145
  /** Paging metadata. */
144
146
  pagingMetadata?: CursorPagingMetadata;
145
147
  }
146
- export interface CursorPagingMetadata {
148
+ interface CursorPagingMetadata {
147
149
  /** Number of items returned in current page. */
148
150
  count?: number | null;
149
151
  /** Cursor strings that point to the next page, previous page, or both. */
@@ -156,7 +158,7 @@ export interface CursorPagingMetadata {
156
158
  */
157
159
  hasNext?: boolean | null;
158
160
  }
159
- export interface Cursors {
161
+ interface Cursors {
160
162
  /**
161
163
  * Cursor string pointing to the next page in the list of results.
162
164
  * @maxLength 16000
@@ -168,13 +170,13 @@ export interface Cursors {
168
170
  */
169
171
  prev?: string | null;
170
172
  }
171
- export interface ListDefaultTaxGroupsRequest {
173
+ interface ListDefaultTaxGroupsRequest {
172
174
  }
173
- export interface ListDefaultTaxGroupsResponse {
175
+ interface ListDefaultTaxGroupsResponse {
174
176
  /** Retrieved default tax groups. */
175
177
  taxGroups?: TaxGroup[];
176
178
  }
177
- export interface ListDefaultTaxGroupsByAppIdsRequest {
179
+ interface ListDefaultTaxGroupsByAppIdsRequest {
178
180
  /**
179
181
  * App IDs to retrieve default tax groups for.
180
182
  * @minSize 1
@@ -183,7 +185,7 @@ export interface ListDefaultTaxGroupsByAppIdsRequest {
183
185
  */
184
186
  appIds: string[];
185
187
  }
186
- export interface ListDefaultTaxGroupsByAppIdsResponse {
188
+ interface ListDefaultTaxGroupsByAppIdsResponse {
187
189
  /**
188
190
  * Retrieved default tax groups.
189
191
  * @minSize 1
@@ -193,13 +195,13 @@ export interface ListDefaultTaxGroupsByAppIdsResponse {
193
195
  /** Bulk action metadata. */
194
196
  bulkActionMetadata?: BulkActionMetadata;
195
197
  }
196
- export interface ListDefaultTaxGroupsByAppIdsResult {
198
+ interface ListDefaultTaxGroupsByAppIdsResult {
197
199
  /** Information about success or failure to retrieve default tax groups. */
198
200
  taxGroupMetadata?: ItemMetadata;
199
201
  /** Retrieved default tax groups. */
200
202
  taxGroup?: TaxGroup;
201
203
  }
202
- export interface ItemMetadata {
204
+ interface ItemMetadata {
203
205
  /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
204
206
  id?: string | null;
205
207
  /** Index of the item within the request array. Allows for correlation between request and response items. */
@@ -209,7 +211,7 @@ export interface ItemMetadata {
209
211
  /** Details about the error in case of failure. */
210
212
  error?: ApplicationError;
211
213
  }
212
- export interface ApplicationError {
214
+ interface ApplicationError {
213
215
  /** Error code. */
214
216
  code?: string;
215
217
  /** Description of the error. */
@@ -217,7 +219,7 @@ export interface ApplicationError {
217
219
  /** Data related to the error. */
218
220
  data?: Record<string, any> | null;
219
221
  }
220
- export interface BulkActionMetadata {
222
+ interface BulkActionMetadata {
221
223
  /** Number of items that were successfully processed. */
222
224
  totalSuccesses?: number;
223
225
  /** Number of items that couldn't be processed. */
@@ -225,145 +227,29 @@ export interface BulkActionMetadata {
225
227
  /** Number of failures without details because detailed failure threshold was exceeded. */
226
228
  undetailedFailures?: number;
227
229
  }
228
- export interface DomainEvent extends DomainEventBodyOneOf {
229
- createdEvent?: EntityCreatedEvent;
230
- updatedEvent?: EntityUpdatedEvent;
231
- deletedEvent?: EntityDeletedEvent;
232
- actionEvent?: ActionEvent;
233
- /**
234
- * Unique event ID.
235
- * Allows clients to ignore duplicate webhooks.
236
- */
237
- id?: string;
238
- /**
239
- * Assumes actions are also always typed to an entity_type
240
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
241
- */
242
- entityFqdn?: string;
243
- /**
244
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
245
- * This is although the created/updated/deleted notion is duplication of the oneof types
246
- * Example: created/updated/deleted/started/completed/email_opened
247
- */
248
- slug?: string;
249
- /** ID of the entity associated with the event. */
250
- entityId?: string;
251
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
252
- eventTime?: Date | null;
253
- /**
254
- * Whether the event was triggered as a result of a privacy regulation application
255
- * (for example, GDPR).
256
- */
257
- triggeredByAnonymizeRequest?: boolean | null;
258
- /** If present, indicates the action that triggered the event. */
259
- originatedFrom?: string | null;
260
- /**
261
- * A sequence number defining the order of updates to the underlying entity.
262
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
263
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
264
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
265
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
266
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
267
- */
268
- entityEventSequence?: string | null;
269
- }
270
- /** @oneof */
271
- export interface DomainEventBodyOneOf {
272
- createdEvent?: EntityCreatedEvent;
273
- updatedEvent?: EntityUpdatedEvent;
274
- deletedEvent?: EntityDeletedEvent;
275
- actionEvent?: ActionEvent;
276
- }
277
- export interface EntityCreatedEvent {
278
- entityAsJson?: string;
279
- /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
280
- restoreInfo?: RestoreInfo;
281
- }
282
- export interface RestoreInfo {
283
- deletedDate?: Date | null;
284
- }
285
- export interface EntityUpdatedEvent {
286
- /**
287
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
288
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
289
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
290
- */
291
- currentEntityAsJson?: string;
292
- }
293
- export interface EntityDeletedEvent {
294
- /** Entity that was deleted */
295
- deletedEntityAsJson?: string | null;
296
- }
297
- export interface ActionEvent {
298
- bodyAsJson?: string;
299
- }
300
- export interface MessageEnvelope {
301
- /**
302
- * App instance ID.
303
- * @format GUID
304
- */
305
- instanceId?: string | null;
306
- /**
307
- * Event type.
308
- * @maxLength 150
309
- */
310
- eventType?: string;
311
- /** The identification type and identity data. */
312
- identity?: IdentificationData;
313
- /** Stringify payload. */
314
- data?: string;
315
- }
316
- export interface IdentificationData extends IdentificationDataIdOneOf {
317
- /**
318
- * ID of a site visitor that has not logged in to the site.
319
- * @format GUID
320
- */
321
- anonymousVisitorId?: string;
322
- /**
323
- * ID of a site visitor that has logged in to the site.
324
- * @format GUID
325
- */
326
- memberId?: string;
327
- /**
328
- * ID of a Wix user (site owner, contributor, etc.).
329
- * @format GUID
330
- */
331
- wixUserId?: string;
332
- /**
333
- * ID of an app.
334
- * @format GUID
335
- */
336
- appId?: string;
337
- /** @readonly */
338
- identityType?: WebhookIdentityType;
339
- }
340
- /** @oneof */
341
- export interface IdentificationDataIdOneOf {
342
- /**
343
- * ID of a site visitor that has not logged in to the site.
344
- * @format GUID
345
- */
346
- anonymousVisitorId?: string;
347
- /**
348
- * ID of a site visitor that has logged in to the site.
349
- * @format GUID
350
- */
351
- memberId?: string;
352
- /**
353
- * ID of a Wix user (site owner, contributor, etc.).
354
- * @format GUID
355
- */
356
- wixUserId?: string;
357
- /**
358
- * ID of an app.
359
- * @format GUID
360
- */
361
- appId?: string;
362
- }
363
- export declare enum WebhookIdentityType {
364
- UNKNOWN = "UNKNOWN",
365
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
366
- MEMBER = "MEMBER",
367
- WIX_USER = "WIX_USER",
368
- APP = "APP"
369
- }
230
+
231
+ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
232
+ getUrl: (context: any) => string;
233
+ httpMethod: K;
234
+ path: string;
235
+ pathParams: M;
236
+ __requestType: T;
237
+ __originalRequestType: S;
238
+ __responseType: Q;
239
+ __originalResponseType: R;
240
+ };
241
+ declare function createTaxGroup(): __PublicMethodMetaInfo<'POST', {}, CreateTaxGroupRequest$1, CreateTaxGroupRequest, CreateTaxGroupResponse$1, CreateTaxGroupResponse>;
242
+ declare function getTaxGroup(): __PublicMethodMetaInfo<'GET', {
243
+ taxGroupId: string;
244
+ }, GetTaxGroupRequest$1, GetTaxGroupRequest, GetTaxGroupResponse$1, GetTaxGroupResponse>;
245
+ declare function updateTaxGroup(): __PublicMethodMetaInfo<'PATCH', {
246
+ taxGroupId: string;
247
+ }, UpdateTaxGroupRequest$1, UpdateTaxGroupRequest, UpdateTaxGroupResponse$1, UpdateTaxGroupResponse>;
248
+ declare function deleteTaxGroup(): __PublicMethodMetaInfo<'DELETE', {
249
+ taxGroupId: string;
250
+ }, DeleteTaxGroupRequest$1, DeleteTaxGroupRequest, DeleteTaxGroupResponse$1, DeleteTaxGroupResponse>;
251
+ declare function queryTaxGroups(): __PublicMethodMetaInfo<'POST', {}, QueryTaxGroupsRequest$1, QueryTaxGroupsRequest, QueryTaxGroupsResponse$1, QueryTaxGroupsResponse>;
252
+ declare function listDefaultTaxGroups(): __PublicMethodMetaInfo<'GET', {}, ListDefaultTaxGroupsRequest$1, ListDefaultTaxGroupsRequest, ListDefaultTaxGroupsResponse$1, ListDefaultTaxGroupsResponse>;
253
+ declare function listDefaultTaxGroupsByAppIds(): __PublicMethodMetaInfo<'POST', {}, ListDefaultTaxGroupsByAppIdsRequest$1, ListDefaultTaxGroupsByAppIdsRequest, ListDefaultTaxGroupsByAppIdsResponse$1, ListDefaultTaxGroupsByAppIdsResponse>;
254
+
255
+ export { type __PublicMethodMetaInfo, createTaxGroup, deleteTaxGroup, getTaxGroup, listDefaultTaxGroups, listDefaultTaxGroupsByAppIds, queryTaxGroups, updateTaxGroup };