@wix/auto_sdk_ecom_tax-groups 1.0.7 → 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 -274
  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 -274
  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 -274
  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 -274
  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 -385
  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 -352
  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 -385
  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 -352
  126. package/build/internal/es/src/billing-v1-tax-group-tax-groups.universal.js.map +0 -1
@@ -1,9 +1,8 @@
1
- import { NonNullablePaths } from '@wix/sdk-types';
2
1
  /**
3
2
  * A tax group is a category of specific line items grouped together based on their tax treatment.
4
3
  * You can create new tax groups to apply distinct tax rates and rules.
5
4
  */
6
- export interface TaxGroup {
5
+ interface TaxGroup {
7
6
  /**
8
7
  * Tax group ID.
9
8
  * @format GUID
@@ -35,47 +34,47 @@ export interface TaxGroup {
35
34
  */
36
35
  _updatedDate?: Date | null;
37
36
  }
38
- export interface CreateTaxGroupRequest {
37
+ interface CreateTaxGroupRequest {
39
38
  /** Tax group to create. */
40
39
  taxGroup: TaxGroup;
41
40
  }
42
- export interface CreateTaxGroupResponse {
41
+ interface CreateTaxGroupResponse {
43
42
  /** Created tax group. */
44
43
  taxGroup?: TaxGroup;
45
44
  }
46
- export interface GetTaxGroupRequest {
45
+ interface GetTaxGroupRequest {
47
46
  /**
48
47
  * ID of the tax group to retrieve.
49
48
  * @format GUID
50
49
  */
51
50
  taxGroupId: string;
52
51
  }
53
- export interface GetTaxGroupResponse {
52
+ interface GetTaxGroupResponse {
54
53
  /** Retrieved tax group. */
55
54
  taxGroup?: TaxGroup;
56
55
  }
57
- export interface UpdateTaxGroupRequest {
56
+ interface UpdateTaxGroupRequest {
58
57
  /** Tax group info to update. */
59
58
  taxGroup: TaxGroup;
60
59
  }
61
- export interface UpdateTaxGroupResponse {
60
+ interface UpdateTaxGroupResponse {
62
61
  /** Updated tax group. */
63
62
  taxGroup?: TaxGroup;
64
63
  }
65
- export interface DeleteTaxGroupRequest {
64
+ interface DeleteTaxGroupRequest {
66
65
  /**
67
66
  * ID of the tax group to delete.
68
67
  * @format GUID
69
68
  */
70
69
  taxGroupId: string;
71
70
  }
72
- export interface DeleteTaxGroupResponse {
71
+ interface DeleteTaxGroupResponse {
73
72
  }
74
- export interface QueryTaxGroupsRequest {
73
+ interface QueryTaxGroupsRequest {
75
74
  /** Query options. */
76
75
  query: QueryV2;
77
76
  }
78
- export interface QueryV2 extends QueryV2PagingMethodOneOf {
77
+ interface QueryV2 extends QueryV2PagingMethodOneOf {
79
78
  /** Paging options to limit and skip the number of items. */
80
79
  paging?: Paging;
81
80
  /** 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`. */
@@ -98,13 +97,13 @@ export interface QueryV2 extends QueryV2PagingMethodOneOf {
98
97
  fieldsets?: string[];
99
98
  }
100
99
  /** @oneof */
101
- export interface QueryV2PagingMethodOneOf {
100
+ interface QueryV2PagingMethodOneOf {
102
101
  /** Paging options to limit and skip the number of items. */
103
102
  paging?: Paging;
104
103
  /** 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`. */
105
104
  cursorPaging?: CursorPaging;
106
105
  }
107
- export interface Sorting {
106
+ interface Sorting {
108
107
  /**
109
108
  * Name of the field to sort by.
110
109
  * @maxLength 512
@@ -113,17 +112,17 @@ export interface Sorting {
113
112
  /** Sort order. */
114
113
  order?: SortOrder;
115
114
  }
116
- export declare enum SortOrder {
115
+ declare enum SortOrder {
117
116
  ASC = "ASC",
118
117
  DESC = "DESC"
119
118
  }
120
- export interface Paging {
119
+ interface Paging {
121
120
  /** Number of items to load. */
122
121
  limit?: number | null;
123
122
  /** Number of items to skip in the current sort order. */
124
123
  offset?: number | null;
125
124
  }
126
- export interface CursorPaging {
125
+ interface CursorPaging {
127
126
  /**
128
127
  * Maximum number of items to return in the results.
129
128
  * @max 100
@@ -138,13 +137,13 @@ export interface CursorPaging {
138
137
  */
139
138
  cursor?: string | null;
140
139
  }
141
- export interface QueryTaxGroupsResponse {
140
+ interface QueryTaxGroupsResponse {
142
141
  /** Retrieved default tax groups. */
143
142
  taxGroups?: TaxGroup[];
144
143
  /** Paging metadata. */
145
144
  pagingMetadata?: CursorPagingMetadata;
146
145
  }
147
- export interface CursorPagingMetadata {
146
+ interface CursorPagingMetadata {
148
147
  /** Number of items returned in current page. */
149
148
  count?: number | null;
150
149
  /** Cursor strings that point to the next page, previous page, or both. */
@@ -157,7 +156,7 @@ export interface CursorPagingMetadata {
157
156
  */
158
157
  hasNext?: boolean | null;
159
158
  }
160
- export interface Cursors {
159
+ interface Cursors {
161
160
  /**
162
161
  * Cursor string pointing to the next page in the list of results.
163
162
  * @maxLength 16000
@@ -169,13 +168,13 @@ export interface Cursors {
169
168
  */
170
169
  prev?: string | null;
171
170
  }
172
- export interface ListDefaultTaxGroupsRequest {
171
+ interface ListDefaultTaxGroupsRequest {
173
172
  }
174
- export interface ListDefaultTaxGroupsResponse {
173
+ interface ListDefaultTaxGroupsResponse {
175
174
  /** Retrieved default tax groups. */
176
175
  taxGroups?: TaxGroup[];
177
176
  }
178
- export interface ListDefaultTaxGroupsByAppIdsRequest {
177
+ interface ListDefaultTaxGroupsByAppIdsRequest {
179
178
  /**
180
179
  * App IDs to retrieve default tax groups for.
181
180
  * @minSize 1
@@ -184,7 +183,7 @@ export interface ListDefaultTaxGroupsByAppIdsRequest {
184
183
  */
185
184
  appIds: string[];
186
185
  }
187
- export interface ListDefaultTaxGroupsByAppIdsResponse {
186
+ interface ListDefaultTaxGroupsByAppIdsResponse {
188
187
  /**
189
188
  * Retrieved default tax groups.
190
189
  * @minSize 1
@@ -194,13 +193,13 @@ export interface ListDefaultTaxGroupsByAppIdsResponse {
194
193
  /** Bulk action metadata. */
195
194
  bulkActionMetadata?: BulkActionMetadata;
196
195
  }
197
- export interface ListDefaultTaxGroupsByAppIdsResult {
196
+ interface ListDefaultTaxGroupsByAppIdsResult {
198
197
  /** Information about success or failure to retrieve default tax groups. */
199
198
  taxGroupMetadata?: ItemMetadata;
200
199
  /** Retrieved default tax groups. */
201
200
  taxGroup?: TaxGroup;
202
201
  }
203
- export interface ItemMetadata {
202
+ interface ItemMetadata {
204
203
  /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
205
204
  _id?: string | null;
206
205
  /** Index of the item within the request array. Allows for correlation between request and response items. */
@@ -210,7 +209,7 @@ export interface ItemMetadata {
210
209
  /** Details about the error in case of failure. */
211
210
  error?: ApplicationError;
212
211
  }
213
- export interface ApplicationError {
212
+ interface ApplicationError {
214
213
  /** Error code. */
215
214
  code?: string;
216
215
  /** Description of the error. */
@@ -218,7 +217,7 @@ export interface ApplicationError {
218
217
  /** Data related to the error. */
219
218
  data?: Record<string, any> | null;
220
219
  }
221
- export interface BulkActionMetadata {
220
+ interface BulkActionMetadata {
222
221
  /** Number of items that were successfully processed. */
223
222
  totalSuccesses?: number;
224
223
  /** Number of items that couldn't be processed. */
@@ -226,7 +225,7 @@ export interface BulkActionMetadata {
226
225
  /** Number of failures without details because detailed failure threshold was exceeded. */
227
226
  undetailedFailures?: number;
228
227
  }
229
- export interface DomainEvent extends DomainEventBodyOneOf {
228
+ interface DomainEvent extends DomainEventBodyOneOf {
230
229
  createdEvent?: EntityCreatedEvent;
231
230
  updatedEvent?: EntityUpdatedEvent;
232
231
  deletedEvent?: EntityDeletedEvent;
@@ -269,19 +268,19 @@ export interface DomainEvent extends DomainEventBodyOneOf {
269
268
  entityEventSequence?: string | null;
270
269
  }
271
270
  /** @oneof */
272
- export interface DomainEventBodyOneOf {
271
+ interface DomainEventBodyOneOf {
273
272
  createdEvent?: EntityCreatedEvent;
274
273
  updatedEvent?: EntityUpdatedEvent;
275
274
  deletedEvent?: EntityDeletedEvent;
276
275
  actionEvent?: ActionEvent;
277
276
  }
278
- export interface EntityCreatedEvent {
277
+ interface EntityCreatedEvent {
279
278
  entity?: string;
280
279
  }
281
- export interface RestoreInfo {
280
+ interface RestoreInfo {
282
281
  deletedDate?: Date | null;
283
282
  }
284
- export interface EntityUpdatedEvent {
283
+ interface EntityUpdatedEvent {
285
284
  /**
286
285
  * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
287
286
  * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
@@ -289,14 +288,14 @@ export interface EntityUpdatedEvent {
289
288
  */
290
289
  currentEntity?: string;
291
290
  }
292
- export interface EntityDeletedEvent {
291
+ interface EntityDeletedEvent {
293
292
  /** Entity that was deleted */
294
293
  deletedEntity?: string | null;
295
294
  }
296
- export interface ActionEvent {
295
+ interface ActionEvent {
297
296
  body?: string;
298
297
  }
299
- export interface MessageEnvelope {
298
+ interface MessageEnvelope {
300
299
  /**
301
300
  * App instance ID.
302
301
  * @format GUID
@@ -312,7 +311,7 @@ export interface MessageEnvelope {
312
311
  /** Stringify payload. */
313
312
  data?: string;
314
313
  }
315
- export interface IdentificationData extends IdentificationDataIdOneOf {
314
+ interface IdentificationData extends IdentificationDataIdOneOf {
316
315
  /**
317
316
  * ID of a site visitor that has not logged in to the site.
318
317
  * @format GUID
@@ -337,7 +336,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
337
336
  identityType?: WebhookIdentityType;
338
337
  }
339
338
  /** @oneof */
340
- export interface IdentificationDataIdOneOf {
339
+ interface IdentificationDataIdOneOf {
341
340
  /**
342
341
  * ID of a site visitor that has not logged in to the site.
343
342
  * @format GUID
@@ -359,14 +358,14 @@ export interface IdentificationDataIdOneOf {
359
358
  */
360
359
  appId?: string;
361
360
  }
362
- export declare enum WebhookIdentityType {
361
+ declare enum WebhookIdentityType {
363
362
  UNKNOWN = "UNKNOWN",
364
363
  ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
365
364
  MEMBER = "MEMBER",
366
365
  WIX_USER = "WIX_USER",
367
366
  APP = "APP"
368
367
  }
369
- export interface BaseEventMetadata {
368
+ interface BaseEventMetadata {
370
369
  /**
371
370
  * App instance ID.
372
371
  * @format GUID
@@ -380,7 +379,7 @@ export interface BaseEventMetadata {
380
379
  /** The identification type and identity data. */
381
380
  identity?: IdentificationData;
382
381
  }
383
- export interface EventMetadata extends BaseEventMetadata {
382
+ interface EventMetadata extends BaseEventMetadata {
384
383
  /**
385
384
  * Unique event ID.
386
385
  * Allows clients to ignore duplicate webhooks.
@@ -418,147 +417,18 @@ export interface EventMetadata extends BaseEventMetadata {
418
417
  */
419
418
  entityEventSequence?: string | null;
420
419
  }
421
- export interface TaxGroupCreatedEnvelope {
420
+ interface TaxGroupCreatedEnvelope {
422
421
  entity: TaxGroup;
423
422
  metadata: EventMetadata;
424
423
  }
425
- /**
426
- * Triggered when a tax group is created.
427
- * @permissionScope Manage Stores - all permissions
428
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
429
- * @permissionScope Manage Restaurants - all permissions
430
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
431
- * @permissionScope Manage eCommerce - all permissions
432
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
433
- * @permissionScope Manage Orders
434
- * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
435
- * @permissionId BILLING.TAX_GROUP_READ
436
- * @webhook
437
- * @eventType wix.billing.v1.tax_group_created
438
- * @serviceIdentifier wix.billing.v1.TaxGroups
439
- * @slug created
440
- * @documentationMaturity preview
441
- */
442
- export declare function onTaxGroupCreated(handler: (event: TaxGroupCreatedEnvelope) => void | Promise<void>): void;
443
- export interface TaxGroupDeletedEnvelope {
424
+ interface TaxGroupDeletedEnvelope {
444
425
  metadata: EventMetadata;
445
426
  }
446
- /**
447
- * Triggered when a tax group is deleted.
448
- * @permissionScope Manage Stores - all permissions
449
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
450
- * @permissionScope Manage Restaurants - all permissions
451
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
452
- * @permissionScope Manage eCommerce - all permissions
453
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
454
- * @permissionScope Manage Orders
455
- * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
456
- * @permissionId BILLING.TAX_GROUP_READ
457
- * @webhook
458
- * @eventType wix.billing.v1.tax_group_deleted
459
- * @serviceIdentifier wix.billing.v1.TaxGroups
460
- * @slug deleted
461
- * @documentationMaturity preview
462
- */
463
- export declare function onTaxGroupDeleted(handler: (event: TaxGroupDeletedEnvelope) => void | Promise<void>): void;
464
- export interface TaxGroupUpdatedEnvelope {
427
+ interface TaxGroupUpdatedEnvelope {
465
428
  entity: TaxGroup;
466
429
  metadata: EventMetadata;
467
430
  }
468
- /**
469
- * Triggered when a tax group is updated.
470
- * @permissionScope Manage Stores - all permissions
471
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
472
- * @permissionScope Manage Restaurants - all permissions
473
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
474
- * @permissionScope Manage eCommerce - all permissions
475
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
476
- * @permissionScope Manage Orders
477
- * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
478
- * @permissionId BILLING.TAX_GROUP_READ
479
- * @webhook
480
- * @eventType wix.billing.v1.tax_group_updated
481
- * @serviceIdentifier wix.billing.v1.TaxGroups
482
- * @slug updated
483
- * @documentationMaturity preview
484
- */
485
- export declare function onTaxGroupUpdated(handler: (event: TaxGroupUpdatedEnvelope) => void | Promise<void>): void;
486
- type TaxGroupNonNullablePaths = `name`;
487
- /**
488
- * Creates a tax group.
489
- *
490
- * Call Stores Update Product to add the `taxGroupId` to specific products to categorize as a group based on distinct tax treatment.
491
- * Wix uses tax groups to calculate tax.
492
- *
493
- * In addition to tax groups you create, default tax groups are already included in all Wix catalogs.
494
- * Call List Default Tax Groups to retrieve them. You can also use the Tax Groups Integration service plugin (REST only)
495
- * to create new default tax groups that can be applied directly to an entire catalog of products.
496
- * @param taxGroup - Tax group to create.
497
- * @public
498
- * @documentationMaturity preview
499
- * @requiredField taxGroup
500
- * @requiredField taxGroup.name
501
- * @permissionId BILLING.TAX_GROUP_CREATE
502
- * @permissionScope Manage Stores - all permissions
503
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
504
- * @permissionScope Manage Restaurants - all permissions
505
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
506
- * @permissionScope Manage Orders
507
- * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
508
- * @applicableIdentity APP
509
- * @returns Created tax group.
510
- * @fqn wix.billing.v1.TaxGroups.CreateTaxGroup
511
- */
512
- export declare function createTaxGroup(taxGroup: NonNullablePaths<TaxGroup, `name`>): Promise<NonNullablePaths<TaxGroup, TaxGroupNonNullablePaths>>;
513
- /**
514
- * Retrieves a tax group.
515
- * @param taxGroupId - ID of the tax group to retrieve.
516
- * @public
517
- * @documentationMaturity preview
518
- * @requiredField taxGroupId
519
- * @permissionId BILLING.TAX_GROUP_READ
520
- * @permissionScope Manage Stores - all permissions
521
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
522
- * @permissionScope Manage Restaurants - all permissions
523
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
524
- * @permissionScope Manage eCommerce - all permissions
525
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
526
- * @permissionScope Manage Orders
527
- * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
528
- * @applicableIdentity APP
529
- * @applicableIdentity VISITOR
530
- * @returns Retrieved tax group.
531
- * @fqn wix.billing.v1.TaxGroups.GetTaxGroup
532
- */
533
- export declare function getTaxGroup(taxGroupId: string): Promise<NonNullablePaths<TaxGroup, TaxGroupNonNullablePaths>>;
534
- /**
535
- * Updates a tax group.
536
- *
537
- * Each time the tax group is updated, `revision` increments by 1.
538
- * The current `revision` must be passed when updating the tax group.
539
- * This ensures you're working with the latest tax group and prevents
540
- * unintended overwrites.
541
- * @param _id - Tax group ID.
542
- * @public
543
- * @documentationMaturity preview
544
- * @requiredField _id
545
- * @requiredField taxGroup
546
- * @requiredField taxGroup.name
547
- * @requiredField taxGroup.revision
548
- * @param taxGroup - Tax group info.
549
- * @permissionId BILLING.TAX_GROUP_UPDATE
550
- * @permissionScope Manage Stores - all permissions
551
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
552
- * @permissionScope Manage Restaurants - all permissions
553
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
554
- * @permissionScope Manage Orders
555
- * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
556
- * @applicableIdentity APP
557
- * @returns Updated tax group.
558
- * @fqn wix.billing.v1.TaxGroups.UpdateTaxGroup
559
- */
560
- export declare function updateTaxGroup(_id: string, taxGroup: NonNullablePaths<UpdateTaxGroup, `name` | `revision`>): Promise<NonNullablePaths<TaxGroup, TaxGroupNonNullablePaths>>;
561
- export interface UpdateTaxGroup {
431
+ interface UpdateTaxGroup {
562
432
  /**
563
433
  * Tax group ID.
564
434
  * @format GUID
@@ -590,56 +460,6 @@ export interface UpdateTaxGroup {
590
460
  */
591
461
  _updatedDate?: Date | null;
592
462
  }
593
- /**
594
- * Deletes a tax group.
595
- *
596
- * 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.
597
- * @param taxGroupId - ID of the tax group to delete.
598
- * @public
599
- * @documentationMaturity preview
600
- * @requiredField taxGroupId
601
- * @permissionId BILLING.TAX_GROUP_DELETE
602
- * @permissionScope Manage Stores - all permissions
603
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
604
- * @permissionScope Manage Restaurants - all permissions
605
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
606
- * @permissionScope Manage Orders
607
- * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
608
- * @applicableIdentity APP
609
- * @fqn wix.billing.v1.TaxGroups.DeleteTaxGroup
610
- */
611
- export declare function deleteTaxGroup(taxGroupId: string): Promise<void>;
612
- /**
613
- * Creates a query to retrieve a list of tax groups.
614
- *
615
- * The `queryTaxGroups()` function builds a query to retrieve a list of tax groups and returns a `TaxGroupsQueryBuilder` object.
616
- *
617
- * The returned object contains the query definition, which is typically used to run the query using the `find()` function.
618
- *
619
- * 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.
620
- *
621
- * `queryTaxGroups()` runs with the following `TaxGroupsQueryBuilder` default that you can override:
622
- * + `ascending("_id")`
623
- *
624
- * 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"`.
625
- *
626
- * 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`.
627
- * @public
628
- * @documentationMaturity preview
629
- * @permissionScope Manage Stores - all permissions
630
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
631
- * @permissionScope Manage Restaurants - all permissions
632
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
633
- * @permissionScope Manage eCommerce - all permissions
634
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
635
- * @permissionScope Manage Orders
636
- * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
637
- * @permissionId BILLING.TAX_GROUP_READ
638
- * @applicableIdentity APP
639
- * @applicableIdentity VISITOR
640
- * @fqn wix.billing.v1.TaxGroups.QueryTaxGroups
641
- */
642
- export declare function queryTaxGroups(): TaxGroupsQueryBuilder;
643
463
  interface QueryCursorResult {
644
464
  cursors: Cursors;
645
465
  hasNext: () => boolean;
@@ -647,13 +467,13 @@ interface QueryCursorResult {
647
467
  length: number;
648
468
  pageSize: number;
649
469
  }
650
- export interface TaxGroupsQueryResult extends QueryCursorResult {
470
+ interface TaxGroupsQueryResult extends QueryCursorResult {
651
471
  items: TaxGroup[];
652
472
  query: TaxGroupsQueryBuilder;
653
473
  next: () => Promise<TaxGroupsQueryResult>;
654
474
  prev: () => Promise<TaxGroupsQueryResult>;
655
475
  }
656
- export interface TaxGroupsQueryBuilder {
476
+ interface TaxGroupsQueryBuilder {
657
477
  /** @param propertyName - Property whose value is compared with `value`.
658
478
  * @param value - Value to compare against.
659
479
  * @documentationMaturity preview
@@ -712,51 +532,5 @@ export interface TaxGroupsQueryBuilder {
712
532
  /** @documentationMaturity preview */
713
533
  find: () => Promise<TaxGroupsQueryResult>;
714
534
  }
715
- /**
716
- * Retrieves a list of default tax groups.
717
- *
718
- * The default tax groups for a site are inherited by the apps installed on the site.
719
- * For example, the Wix Stores app includes a `"Products"` tax group by default.
720
- *
721
- * Add additional default tax groups with the Tax Groups Integration service plugin (REST only).
722
- * @public
723
- * @documentationMaturity preview
724
- * @permissionId BILLING.TAX_GROUP_READ
725
- * @permissionScope Manage Stores - all permissions
726
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
727
- * @permissionScope Manage Restaurants - all permissions
728
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
729
- * @permissionScope Manage eCommerce - all permissions
730
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
731
- * @permissionScope Manage Orders
732
- * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
733
- * @applicableIdentity APP
734
- * @applicableIdentity VISITOR
735
- * @fqn wix.billing.v1.TaxGroups.ListDefaultTaxGroups
736
- */
737
- export declare function listDefaultTaxGroups(): Promise<NonNullablePaths<ListDefaultTaxGroupsResponse, {
738
- [P in TaxGroupNonNullablePaths]: `taxGroups.${number}.${P}`;
739
- }[TaxGroupNonNullablePaths]>>;
740
- /**
741
- * Retrieves default tax groups for specific apps.
742
- * @param appIds - App IDs to retrieve default tax groups for.
743
- * @public
744
- * @documentationMaturity preview
745
- * @requiredField appIds
746
- * @permissionId BILLING.TAX_GROUP_READ
747
- * @permissionScope Manage Stores - all permissions
748
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
749
- * @permissionScope Manage Restaurants - all permissions
750
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
751
- * @permissionScope Manage eCommerce - all permissions
752
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
753
- * @permissionScope Manage Orders
754
- * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
755
- * @applicableIdentity APP
756
- * @applicableIdentity VISITOR
757
- * @fqn wix.billing.v1.TaxGroups.ListDefaultTaxGroupsByAppIds
758
- */
759
- export declare function listDefaultTaxGroupsByAppIds(appIds: string[]): Promise<NonNullablePaths<ListDefaultTaxGroupsByAppIdsResponse, `results` | `results.${number}.taxGroupMetadata.originalIndex` | `results.${number}.taxGroupMetadata.success` | `results.${number}.taxGroupMetadata.error.code` | `results.${number}.taxGroupMetadata.error.description` | {
760
- [P in TaxGroupNonNullablePaths]: `results.${number}.taxGroup.${P}`;
761
- }[TaxGroupNonNullablePaths] | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
762
- export {};
535
+
536
+ export { type ApplicationError as A, type BulkActionMetadata as B, type CreateTaxGroupRequest as C, type DeleteTaxGroupRequest as D, type EntityCreatedEvent as E, type TaxGroupCreatedEnvelope as F, type GetTaxGroupRequest as G, type TaxGroupDeletedEnvelope as H, type ItemMetadata as I, type TaxGroupUpdatedEnvelope as J, type TaxGroupsQueryResult as K, type ListDefaultTaxGroupsResponse as L, type MessageEnvelope as M, type Paging as P, type QueryTaxGroupsRequest as Q, type RestoreInfo as R, SortOrder as S, type TaxGroup as T, type UpdateTaxGroup as U, WebhookIdentityType as W, type TaxGroupsQueryBuilder as a, type ListDefaultTaxGroupsByAppIdsResponse as b, type CreateTaxGroupResponse as c, type GetTaxGroupResponse as d, type UpdateTaxGroupRequest as e, type UpdateTaxGroupResponse as f, type DeleteTaxGroupResponse as g, type QueryV2 as h, type QueryV2PagingMethodOneOf as i, type Sorting as j, type CursorPaging as k, type QueryTaxGroupsResponse as l, type CursorPagingMetadata as m, type Cursors as n, type ListDefaultTaxGroupsRequest as o, type ListDefaultTaxGroupsByAppIdsRequest as p, type ListDefaultTaxGroupsByAppIdsResult as q, type DomainEvent as r, type DomainEventBodyOneOf as s, type EntityUpdatedEvent as t, type EntityDeletedEvent as u, type ActionEvent as v, type IdentificationData as w, type IdentificationDataIdOneOf as x, type BaseEventMetadata as y, type EventMetadata as z };