@wix/auto_sdk_ecom_manual-tax-mappings 1.0.0

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 (39) hide show
  1. package/build/cjs/index.d.ts +101 -0
  2. package/build/cjs/index.js +651 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +822 -0
  5. package/build/cjs/index.typings.js +517 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +324 -0
  8. package/build/cjs/meta.js +405 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/es/index.d.mts +101 -0
  11. package/build/es/index.mjs +615 -0
  12. package/build/es/index.mjs.map +1 -0
  13. package/build/es/index.typings.d.mts +822 -0
  14. package/build/es/index.typings.mjs +484 -0
  15. package/build/es/index.typings.mjs.map +1 -0
  16. package/build/es/meta.d.mts +324 -0
  17. package/build/es/meta.mjs +372 -0
  18. package/build/es/meta.mjs.map +1 -0
  19. package/build/es/package.json +3 -0
  20. package/build/internal/cjs/index.d.ts +101 -0
  21. package/build/internal/cjs/index.js +651 -0
  22. package/build/internal/cjs/index.js.map +1 -0
  23. package/build/internal/cjs/index.typings.d.ts +822 -0
  24. package/build/internal/cjs/index.typings.js +517 -0
  25. package/build/internal/cjs/index.typings.js.map +1 -0
  26. package/build/internal/cjs/meta.d.ts +324 -0
  27. package/build/internal/cjs/meta.js +405 -0
  28. package/build/internal/cjs/meta.js.map +1 -0
  29. package/build/internal/es/index.d.mts +101 -0
  30. package/build/internal/es/index.mjs +615 -0
  31. package/build/internal/es/index.mjs.map +1 -0
  32. package/build/internal/es/index.typings.d.mts +822 -0
  33. package/build/internal/es/index.typings.mjs +484 -0
  34. package/build/internal/es/index.typings.mjs.map +1 -0
  35. package/build/internal/es/meta.d.mts +324 -0
  36. package/build/internal/es/meta.mjs +372 -0
  37. package/build/internal/es/meta.mjs.map +1 -0
  38. package/meta/package.json +3 -0
  39. package/package.json +54 -0
@@ -0,0 +1,822 @@
1
+ import { NonNullablePaths } from '@wix/sdk-types';
2
+
3
+ interface ManualTaxMapping {
4
+ /**
5
+ * Manual tax mapping ID.
6
+ * @format GUID
7
+ * @readonly
8
+ */
9
+ _id?: string | null;
10
+ /**
11
+ * Revision number, which increments by 1 each time the manual tax mapping is updated.
12
+ * To prevent conflicting changes,
13
+ * the current revision must be passed when updating the manual tax mapping.
14
+ *
15
+ * Ignored when creating a manual tax mapping.
16
+ * @readonly
17
+ */
18
+ revision?: string | null;
19
+ /**
20
+ * Date and time the manual tax mapping was created.
21
+ * @readonly
22
+ */
23
+ _createdDate?: Date | null;
24
+ /**
25
+ * Date and time the manual tax mapping was last updated.
26
+ * @readonly
27
+ */
28
+ _updatedDate?: Date | null;
29
+ /**
30
+ * Tax group ID.
31
+ * @format GUID
32
+ */
33
+ taxGroupId?: string | null;
34
+ /**
35
+ * Tax region ID.
36
+ * @format GUID
37
+ */
38
+ taxRegionId?: string | null;
39
+ /**
40
+ * Tax rate for given tax group, tax region and jurisdiction.
41
+ * @decimalValue options { maxScale:6, gte:0 }
42
+ */
43
+ taxRate?: string;
44
+ /**
45
+ * Tax group mapping description.
46
+ * @maxLength 1000
47
+ */
48
+ description?: string | null;
49
+ /**
50
+ * The type of tax that was calculated. Depends on the jurisdiction's tax laws.
51
+ * @maxLength 200
52
+ */
53
+ taxType?: string;
54
+ /**
55
+ * The name of the tax against which this tax amount was calculated, for example "STATE TAX" for "State Tax" or "GST" for "Goods and Services Tax".
56
+ * @maxLength 200
57
+ */
58
+ taxName?: string;
59
+ /**
60
+ * The name of the jurisdiction to which this tax detail applies.
61
+ * @maxLength 200
62
+ */
63
+ jurisdiction?: string;
64
+ /** The type of the jurisdiction in which this tax detail applies. (Country,State,County,City,Special) */
65
+ jurisdictionType?: JurisdictionTypeWithLiterals;
66
+ /** Data Extensions */
67
+ extendedFields?: ExtendedFields;
68
+ }
69
+ /** Type of jurisdiction that taxes were calculated for. For example, `"State"`, `"County"`, `"City"`, `"Special"`, etc. */
70
+ declare enum JurisdictionType {
71
+ UNDEFINED = "UNDEFINED",
72
+ COUNTRY = "COUNTRY",
73
+ STATE = "STATE",
74
+ COUNTY = "COUNTY",
75
+ CITY = "CITY",
76
+ SPECIAL = "SPECIAL"
77
+ }
78
+ /** @enumType */
79
+ type JurisdictionTypeWithLiterals = JurisdictionType | 'UNDEFINED' | 'COUNTRY' | 'STATE' | 'COUNTY' | 'CITY' | 'SPECIAL';
80
+ interface ExtendedFields {
81
+ /**
82
+ * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
83
+ * The value of each key is structured according to the schema defined when the extended fields were configured.
84
+ *
85
+ * You can only access fields for which you have the appropriate permissions.
86
+ *
87
+ * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
88
+ */
89
+ namespaces?: Record<string, Record<string, any>>;
90
+ }
91
+ interface CreateManualTaxMappingRequest {
92
+ /** Manual tax mapping to create. */
93
+ manualTaxMapping: ManualTaxMapping;
94
+ }
95
+ interface CreateManualTaxMappingResponse {
96
+ /** The created manual tax mapping. */
97
+ manualTaxMapping?: ManualTaxMapping;
98
+ }
99
+ interface BulkCreateManualTaxMappingsRequest {
100
+ /**
101
+ * List of manual tax mappings to be created
102
+ * @minSize 1
103
+ * @maxSize 100
104
+ */
105
+ manualTaxMappings: ManualTaxMapping[];
106
+ /**
107
+ * Whether to return the manual tax mapping entity in the response.
108
+ *
109
+ * Default: `false`
110
+ */
111
+ returnEntity?: boolean;
112
+ }
113
+ interface BulkCreateManualTaxMappingsResponse {
114
+ /**
115
+ * List of the bulk create operation results including the manual tax mappings and metadata.
116
+ * @minSize 1
117
+ * @maxSize 100
118
+ */
119
+ results?: BulkManualTaxMappingResult[];
120
+ /** Metadata regarding the bulk create operation */
121
+ bulkActionMetadata?: BulkActionMetadata;
122
+ }
123
+ interface ItemMetadata {
124
+ /**
125
+ * Item ID. Provided only whenever possible. For example, `itemId` can't be provided when item creation has failed.
126
+ * @format GUID
127
+ */
128
+ _id?: string | null;
129
+ /** Index of the item within the request array. Allows for correlation between request and response items. */
130
+ originalIndex?: number;
131
+ /** Whether the requested action for this item was successful. When `false`, the `error` field is returned. */
132
+ success?: boolean;
133
+ /** Details about the error in case of failure. */
134
+ error?: ApplicationError;
135
+ }
136
+ interface ApplicationError {
137
+ /** Error code. */
138
+ code?: string;
139
+ /** Description of the error. */
140
+ description?: string;
141
+ /** Data related to the error. */
142
+ data?: Record<string, any> | null;
143
+ }
144
+ interface BulkManualTaxMappingResult {
145
+ /** Metadata regarding the specific single create operation */
146
+ itemMetadata?: ItemMetadata;
147
+ /** Only exists if `returnEntity` was set to true in the request */
148
+ item?: ManualTaxMapping;
149
+ }
150
+ interface BulkActionMetadata {
151
+ /** Number of items that were successfully processed. */
152
+ totalSuccesses?: number;
153
+ /** Number of items that couldn't be processed. */
154
+ totalFailures?: number;
155
+ /** Number of failures without details because detailed failure threshold was exceeded. */
156
+ undetailedFailures?: number;
157
+ }
158
+ interface GetManualTaxMappingRequest {
159
+ /**
160
+ * Manual tax mapping ID.
161
+ * @format GUID
162
+ */
163
+ manualTaxMappingId: string;
164
+ }
165
+ interface GetManualTaxMappingResponse {
166
+ /** The requested manual tax mapping. */
167
+ manualTaxMapping?: ManualTaxMapping;
168
+ }
169
+ interface UpdateManualTaxMappingRequest {
170
+ /** Manual tax mapping to update. */
171
+ manualTaxMapping: ManualTaxMapping;
172
+ }
173
+ interface UpdateManualTaxMappingResponse {
174
+ /** Updated manual tax mapping. */
175
+ manualTaxMapping?: ManualTaxMapping;
176
+ }
177
+ interface DeleteManualTaxMappingRequest {
178
+ /**
179
+ * Manual tax mapping ID.
180
+ * @format GUID
181
+ */
182
+ manualTaxMappingId: string;
183
+ }
184
+ interface DeleteManualTaxMappingResponse {
185
+ }
186
+ interface QueryManualTaxMappingsRequest {
187
+ /** WQL expression. */
188
+ query?: CursorQuery;
189
+ }
190
+ interface CursorQuery extends CursorQueryPagingMethodOneOf {
191
+ /**
192
+ * Cursor paging options.
193
+ *
194
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
195
+ */
196
+ cursorPaging?: CursorPaging;
197
+ /**
198
+ * Filter object.
199
+ *
200
+ * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
201
+ */
202
+ filter?: Record<string, any> | null;
203
+ /**
204
+ * Sort object.
205
+ *
206
+ * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
207
+ * @maxSize 5
208
+ */
209
+ sort?: Sorting[];
210
+ }
211
+ /** @oneof */
212
+ interface CursorQueryPagingMethodOneOf {
213
+ /**
214
+ * Cursor paging options.
215
+ *
216
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
217
+ */
218
+ cursorPaging?: CursorPaging;
219
+ }
220
+ interface Sorting {
221
+ /**
222
+ * Name of the field to sort by.
223
+ * @maxLength 512
224
+ */
225
+ fieldName?: string;
226
+ /** Sort order. */
227
+ order?: SortOrderWithLiterals;
228
+ }
229
+ declare enum SortOrder {
230
+ ASC = "ASC",
231
+ DESC = "DESC"
232
+ }
233
+ /** @enumType */
234
+ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
235
+ interface CursorPaging {
236
+ /**
237
+ * Maximum number of items to return in the results.
238
+ * @max 100
239
+ */
240
+ limit?: number | null;
241
+ /**
242
+ * Pointer to the next or previous page in the list of results.
243
+ *
244
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
245
+ * Not relevant for the first request.
246
+ * @maxLength 16000
247
+ */
248
+ cursor?: string | null;
249
+ }
250
+ interface QueryManualTaxMappingsResponse {
251
+ /**
252
+ * Query options.
253
+ * @maxSize 100
254
+ */
255
+ manualTaxMappings?: ManualTaxMapping[];
256
+ /** Paging metadata */
257
+ pagingMetadata?: CursorPagingMetadata;
258
+ }
259
+ interface CursorPagingMetadata {
260
+ /** Number of items returned in current page. */
261
+ count?: number | null;
262
+ /** Cursor strings that point to the next page, previous page, or both. */
263
+ cursors?: Cursors;
264
+ /**
265
+ * Whether there are more pages to retrieve following the current page.
266
+ *
267
+ * + `true`: Another page of results can be retrieved.
268
+ * + `false`: This is the last page.
269
+ */
270
+ hasNext?: boolean | null;
271
+ }
272
+ interface Cursors {
273
+ /**
274
+ * Cursor string pointing to the next page in the list of results.
275
+ * @maxLength 16000
276
+ */
277
+ next?: string | null;
278
+ /**
279
+ * Cursor pointing to the previous page in the list of results.
280
+ * @maxLength 16000
281
+ */
282
+ prev?: string | null;
283
+ }
284
+ interface UpdateExtendedFieldsRequest {
285
+ /** ID of the entity to update. */
286
+ _id: string;
287
+ /** Identifier for the app whose extended fields are being updated. */
288
+ namespace: string;
289
+ /** Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields#json-schema-for-extended-fields) defined when the extended fields were configured. */
290
+ namespaceData: Record<string, any> | null;
291
+ }
292
+ interface UpdateExtendedFieldsResponse {
293
+ /** Updated manual tax mapping. */
294
+ manualTaxMapping?: ManualTaxMapping;
295
+ }
296
+ interface BulkRestoreManualTaxMappingsRequest {
297
+ /**
298
+ * Manual tax mapping IDs to restore.
299
+ * @format GUID
300
+ * @minSize 1
301
+ * @maxSize 200
302
+ */
303
+ manualTaxMappingIds?: string[];
304
+ }
305
+ interface BulkRestoreManualTaxMappingsResponse {
306
+ /**
307
+ * Restored manual tax mappings
308
+ * @minSize 1
309
+ * @maxSize 200
310
+ */
311
+ results?: BulkRestoreManualTaxMappingsResult[];
312
+ }
313
+ interface BulkRestoreManualTaxMappingsResult {
314
+ itemMetadata?: ItemMetadata;
315
+ }
316
+ interface DomainEvent extends DomainEventBodyOneOf {
317
+ createdEvent?: EntityCreatedEvent;
318
+ updatedEvent?: EntityUpdatedEvent;
319
+ deletedEvent?: EntityDeletedEvent;
320
+ actionEvent?: ActionEvent;
321
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
322
+ _id?: string;
323
+ /**
324
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
325
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
326
+ */
327
+ entityFqdn?: string;
328
+ /**
329
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
330
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
331
+ */
332
+ slug?: string;
333
+ /** ID of the entity associated with the event. */
334
+ entityId?: string;
335
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
336
+ eventTime?: Date | null;
337
+ /**
338
+ * Whether the event was triggered as a result of a privacy regulation application
339
+ * (for example, GDPR).
340
+ */
341
+ triggeredByAnonymizeRequest?: boolean | null;
342
+ /** If present, indicates the action that triggered the event. */
343
+ originatedFrom?: string | null;
344
+ /**
345
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
346
+ * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
347
+ */
348
+ entityEventSequence?: string | null;
349
+ }
350
+ /** @oneof */
351
+ interface DomainEventBodyOneOf {
352
+ createdEvent?: EntityCreatedEvent;
353
+ updatedEvent?: EntityUpdatedEvent;
354
+ deletedEvent?: EntityDeletedEvent;
355
+ actionEvent?: ActionEvent;
356
+ }
357
+ interface EntityCreatedEvent {
358
+ entity?: string;
359
+ }
360
+ interface RestoreInfo {
361
+ deletedDate?: Date | null;
362
+ }
363
+ interface EntityUpdatedEvent {
364
+ /**
365
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
366
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
367
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
368
+ */
369
+ currentEntity?: string;
370
+ }
371
+ interface EntityDeletedEvent {
372
+ /** Entity that was deleted. */
373
+ deletedEntity?: string | null;
374
+ }
375
+ interface ActionEvent {
376
+ body?: string;
377
+ }
378
+ interface Empty {
379
+ }
380
+ interface MessageEnvelope {
381
+ /**
382
+ * App instance ID.
383
+ * @format GUID
384
+ */
385
+ instanceId?: string | null;
386
+ /**
387
+ * Event type.
388
+ * @maxLength 150
389
+ */
390
+ eventType?: string;
391
+ /** The identification type and identity data. */
392
+ identity?: IdentificationData;
393
+ /** Stringify payload. */
394
+ data?: string;
395
+ }
396
+ interface IdentificationData extends IdentificationDataIdOneOf {
397
+ /**
398
+ * ID of a site visitor that has not logged in to the site.
399
+ * @format GUID
400
+ */
401
+ anonymousVisitorId?: string;
402
+ /**
403
+ * ID of a site visitor that has logged in to the site.
404
+ * @format GUID
405
+ */
406
+ memberId?: string;
407
+ /**
408
+ * ID of a Wix user (site owner, contributor, etc.).
409
+ * @format GUID
410
+ */
411
+ wixUserId?: string;
412
+ /**
413
+ * ID of an app.
414
+ * @format GUID
415
+ */
416
+ appId?: string;
417
+ /** @readonly */
418
+ identityType?: WebhookIdentityTypeWithLiterals;
419
+ }
420
+ /** @oneof */
421
+ interface IdentificationDataIdOneOf {
422
+ /**
423
+ * ID of a site visitor that has not logged in to the site.
424
+ * @format GUID
425
+ */
426
+ anonymousVisitorId?: string;
427
+ /**
428
+ * ID of a site visitor that has logged in to the site.
429
+ * @format GUID
430
+ */
431
+ memberId?: string;
432
+ /**
433
+ * ID of a Wix user (site owner, contributor, etc.).
434
+ * @format GUID
435
+ */
436
+ wixUserId?: string;
437
+ /**
438
+ * ID of an app.
439
+ * @format GUID
440
+ */
441
+ appId?: string;
442
+ }
443
+ declare enum WebhookIdentityType {
444
+ UNKNOWN = "UNKNOWN",
445
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
446
+ MEMBER = "MEMBER",
447
+ WIX_USER = "WIX_USER",
448
+ APP = "APP"
449
+ }
450
+ /** @enumType */
451
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
452
+ interface BaseEventMetadata {
453
+ /**
454
+ * App instance ID.
455
+ * @format GUID
456
+ */
457
+ instanceId?: string | null;
458
+ /**
459
+ * Event type.
460
+ * @maxLength 150
461
+ */
462
+ eventType?: string;
463
+ /** The identification type and identity data. */
464
+ identity?: IdentificationData;
465
+ }
466
+ interface EventMetadata extends BaseEventMetadata {
467
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
468
+ _id?: string;
469
+ /**
470
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
471
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
472
+ */
473
+ entityFqdn?: string;
474
+ /**
475
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
476
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
477
+ */
478
+ slug?: string;
479
+ /** ID of the entity associated with the event. */
480
+ entityId?: string;
481
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
482
+ eventTime?: Date | null;
483
+ /**
484
+ * Whether the event was triggered as a result of a privacy regulation application
485
+ * (for example, GDPR).
486
+ */
487
+ triggeredByAnonymizeRequest?: boolean | null;
488
+ /** If present, indicates the action that triggered the event. */
489
+ originatedFrom?: string | null;
490
+ /**
491
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
492
+ * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
493
+ */
494
+ entityEventSequence?: string | null;
495
+ }
496
+ interface ManualTaxMappingCreatedEnvelope {
497
+ entity: ManualTaxMapping;
498
+ metadata: EventMetadata;
499
+ }
500
+ /**
501
+ * Triggered when a manual tax mapping is created.
502
+ * @permissionScope Manage Stores - all permissions
503
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
504
+ * @permissionScope Manage Stores
505
+ * @permissionScopeId SCOPE.STORES.MANAGE-STORES
506
+ * @permissionScope Manage Restaurants - all permissions
507
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
508
+ * @permissionScope Manage eCommerce - all permissions
509
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
510
+ * @permissionScope Manage Orders
511
+ * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
512
+ * @permissionId BILLING.MANUAL_TAX_MAPPING_READ
513
+ * @webhook
514
+ * @eventType wix.billing.v1.manual_tax_mapping_created
515
+ * @slug created
516
+ * @documentationMaturity preview
517
+ */
518
+ declare function onManualTaxMappingCreated(handler: (event: ManualTaxMappingCreatedEnvelope) => void | Promise<void>): void;
519
+ interface ManualTaxMappingDeletedEnvelope {
520
+ entity: ManualTaxMapping;
521
+ metadata: EventMetadata;
522
+ }
523
+ /**
524
+ * Triggered when a manual tax mapping is deleted.
525
+ * @permissionScope Manage Stores - all permissions
526
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
527
+ * @permissionScope Manage Stores
528
+ * @permissionScopeId SCOPE.STORES.MANAGE-STORES
529
+ * @permissionScope Manage Restaurants - all permissions
530
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
531
+ * @permissionScope Manage eCommerce - all permissions
532
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
533
+ * @permissionScope Manage Orders
534
+ * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
535
+ * @permissionId BILLING.MANUAL_TAX_MAPPING_READ
536
+ * @webhook
537
+ * @eventType wix.billing.v1.manual_tax_mapping_deleted
538
+ * @slug deleted
539
+ * @documentationMaturity preview
540
+ */
541
+ declare function onManualTaxMappingDeleted(handler: (event: ManualTaxMappingDeletedEnvelope) => void | Promise<void>): void;
542
+ interface ManualTaxMappingUpdatedEnvelope {
543
+ entity: ManualTaxMapping;
544
+ metadata: EventMetadata;
545
+ }
546
+ /**
547
+ * Triggered when a manual tax mapping is updated.
548
+ * @permissionScope Manage Stores - all permissions
549
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
550
+ * @permissionScope Manage Stores
551
+ * @permissionScopeId SCOPE.STORES.MANAGE-STORES
552
+ * @permissionScope Manage Restaurants - all permissions
553
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
554
+ * @permissionScope Manage eCommerce - all permissions
555
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
556
+ * @permissionScope Manage Orders
557
+ * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
558
+ * @permissionId BILLING.MANUAL_TAX_MAPPING_READ
559
+ * @webhook
560
+ * @eventType wix.billing.v1.manual_tax_mapping_updated
561
+ * @slug updated
562
+ * @documentationMaturity preview
563
+ */
564
+ declare function onManualTaxMappingUpdated(handler: (event: ManualTaxMappingUpdatedEnvelope) => void | Promise<void>): void;
565
+ /**
566
+ * Creates a manual tax mapping.
567
+ * @param manualTaxMapping - Manual tax mapping to create.
568
+ * @public
569
+ * @documentationMaturity preview
570
+ * @requiredField manualTaxMapping
571
+ * @requiredField manualTaxMapping.taxGroupId
572
+ * @requiredField manualTaxMapping.taxRegionId
573
+ * @permissionId BILLING.MANUAL_TAX_MAPPING_CREATE
574
+ * @applicableIdentity APP
575
+ * @returns The created manual tax mapping.
576
+ * @fqn wix.billing.v1.ManualTaxMappingService.CreateManualTaxMapping
577
+ */
578
+ declare function createManualTaxMapping(manualTaxMapping: NonNullablePaths<ManualTaxMapping, `taxGroupId` | `taxRegionId`, 2>): Promise<NonNullablePaths<ManualTaxMapping, `taxRate` | `taxType` | `taxName` | `jurisdiction` | `jurisdictionType`, 2>>;
579
+ /**
580
+ * Create multiple manual tax mappings in a single request. Works synchronously.
581
+ * @param manualTaxMappings - List of manual tax mappings to be created
582
+ * @public
583
+ * @documentationMaturity preview
584
+ * @requiredField manualTaxMappings
585
+ * @requiredField manualTaxMappings.taxGroupId
586
+ * @requiredField manualTaxMappings.taxRegionId
587
+ * @permissionId BILLING.MANUAL_TAX_MAPPING_CREATE
588
+ * @applicableIdentity APP
589
+ * @fqn wix.billing.v1.ManualTaxMappingService.BulkCreateManualTaxMappings
590
+ */
591
+ declare function bulkCreateManualTaxMappings(manualTaxMappings: NonNullablePaths<ManualTaxMapping, `taxGroupId` | `taxRegionId`, 2>[], options?: BulkCreateManualTaxMappingsOptions): Promise<NonNullablePaths<BulkCreateManualTaxMappingsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.taxRate` | `results.${number}.item.taxType` | `results.${number}.item.taxName` | `results.${number}.item.jurisdiction` | `results.${number}.item.jurisdictionType` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
592
+ interface BulkCreateManualTaxMappingsOptions {
593
+ /**
594
+ * Whether to return the manual tax mapping entity in the response.
595
+ *
596
+ * Default: `false`
597
+ */
598
+ returnEntity?: boolean;
599
+ }
600
+ /**
601
+ * Retrieves a manual tax mapping.
602
+ * @param manualTaxMappingId - Manual tax mapping ID.
603
+ * @public
604
+ * @documentationMaturity preview
605
+ * @requiredField manualTaxMappingId
606
+ * @permissionId BILLING.MANUAL_TAX_MAPPING_READ
607
+ * @applicableIdentity APP
608
+ * @returns The requested manual tax mapping.
609
+ * @fqn wix.billing.v1.ManualTaxMappingService.GetManualTaxMapping
610
+ */
611
+ declare function getManualTaxMapping(manualTaxMappingId: string): Promise<NonNullablePaths<ManualTaxMapping, `taxRate` | `taxType` | `taxName` | `jurisdiction` | `jurisdictionType`, 2>>;
612
+ /**
613
+ * Updates a manual tax mapping.
614
+ *
615
+ * Each time the manual tax mapping is updated, `revision` increments by 1.
616
+ * The current `revision` must be passed when updating the manual tax mapping.
617
+ * This ensures you're working with the latest manual tax mapping and prevents unintended overwrites.
618
+ * @param _id - Manual tax mapping ID.
619
+ * @public
620
+ * @documentationMaturity preview
621
+ * @requiredField _id
622
+ * @requiredField manualTaxMapping
623
+ * @requiredField manualTaxMapping.revision
624
+ * @permissionId BILLING.MANUAL_TAX_MAPPING_UPDATE
625
+ * @applicableIdentity APP
626
+ * @returns Updated manual tax mapping.
627
+ * @fqn wix.billing.v1.ManualTaxMappingService.UpdateManualTaxMapping
628
+ */
629
+ declare function updateManualTaxMapping(_id: string, manualTaxMapping: NonNullablePaths<UpdateManualTaxMapping, `revision`, 2>): Promise<NonNullablePaths<ManualTaxMapping, `taxRate` | `taxType` | `taxName` | `jurisdiction` | `jurisdictionType`, 2>>;
630
+ interface UpdateManualTaxMapping {
631
+ /**
632
+ * Manual tax mapping ID.
633
+ * @format GUID
634
+ * @readonly
635
+ */
636
+ _id?: string | null;
637
+ /**
638
+ * Revision number, which increments by 1 each time the manual tax mapping is updated.
639
+ * To prevent conflicting changes,
640
+ * the current revision must be passed when updating the manual tax mapping.
641
+ *
642
+ * Ignored when creating a manual tax mapping.
643
+ * @readonly
644
+ */
645
+ revision?: string | null;
646
+ /**
647
+ * Date and time the manual tax mapping was created.
648
+ * @readonly
649
+ */
650
+ _createdDate?: Date | null;
651
+ /**
652
+ * Date and time the manual tax mapping was last updated.
653
+ * @readonly
654
+ */
655
+ _updatedDate?: Date | null;
656
+ /**
657
+ * Tax group ID.
658
+ * @format GUID
659
+ */
660
+ taxGroupId?: string | null;
661
+ /**
662
+ * Tax region ID.
663
+ * @format GUID
664
+ */
665
+ taxRegionId?: string | null;
666
+ /**
667
+ * Tax rate for given tax group, tax region and jurisdiction.
668
+ * @decimalValue options { maxScale:6, gte:0 }
669
+ */
670
+ taxRate?: string;
671
+ /**
672
+ * Tax group mapping description.
673
+ * @maxLength 1000
674
+ */
675
+ description?: string | null;
676
+ /**
677
+ * The type of tax that was calculated. Depends on the jurisdiction's tax laws.
678
+ * @maxLength 200
679
+ */
680
+ taxType?: string;
681
+ /**
682
+ * The name of the tax against which this tax amount was calculated, for example "STATE TAX" for "State Tax" or "GST" for "Goods and Services Tax".
683
+ * @maxLength 200
684
+ */
685
+ taxName?: string;
686
+ /**
687
+ * The name of the jurisdiction to which this tax detail applies.
688
+ * @maxLength 200
689
+ */
690
+ jurisdiction?: string;
691
+ /** The type of the jurisdiction in which this tax detail applies. (Country,State,County,City,Special) */
692
+ jurisdictionType?: JurisdictionTypeWithLiterals;
693
+ /** Data Extensions */
694
+ extendedFields?: ExtendedFields;
695
+ }
696
+ /**
697
+ * Deletes a manual tax mapping.
698
+ *
699
+ * Deleting a manual tax mapping permanently removes them from the manual tax mapping List.
700
+ * @param manualTaxMappingId - Manual tax mapping ID.
701
+ * @public
702
+ * @documentationMaturity preview
703
+ * @requiredField manualTaxMappingId
704
+ * @permissionId BILLING.MANUAL_TAX_MAPPING_DELETE
705
+ * @applicableIdentity APP
706
+ * @fqn wix.billing.v1.ManualTaxMappingService.DeleteManualTaxMapping
707
+ */
708
+ declare function deleteManualTaxMapping(manualTaxMappingId: string): Promise<void>;
709
+ /**
710
+ * Retrieves a list of manual tax mappings, given the provided [paging, filtering, and sorting][1].
711
+ *
712
+ * Up to 1,000 manual tax mappings can be returned per request.
713
+ *
714
+ * To learn how to query manual tax mappings, see [API Query Language][2].
715
+ *
716
+ * [1]: https://dev.wix.com/api/rest/getting-started/sorting-and-paging
717
+ * [2]: https://dev.wix.com/api/rest/getting-started/api-query-language
718
+ * @public
719
+ * @documentationMaturity preview
720
+ * @permissionId BILLING.MANUAL_TAX_MAPPING_READ
721
+ * @applicableIdentity APP
722
+ * @fqn wix.billing.v1.ManualTaxMappingService.QueryManualTaxMappings
723
+ */
724
+ declare function queryManualTaxMappings(): ManualTaxMappingsQueryBuilder;
725
+ interface QueryCursorResult {
726
+ cursors: Cursors;
727
+ hasNext: () => boolean;
728
+ hasPrev: () => boolean;
729
+ length: number;
730
+ pageSize: number;
731
+ }
732
+ interface ManualTaxMappingsQueryResult extends QueryCursorResult {
733
+ items: ManualTaxMapping[];
734
+ query: ManualTaxMappingsQueryBuilder;
735
+ next: () => Promise<ManualTaxMappingsQueryResult>;
736
+ prev: () => Promise<ManualTaxMappingsQueryResult>;
737
+ }
738
+ interface ManualTaxMappingsQueryBuilder {
739
+ /** @param propertyName - Property whose value is compared with `value`.
740
+ * @param value - Value to compare against.
741
+ * @documentationMaturity preview
742
+ */
743
+ eq: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'taxGroupId' | 'taxRegionId' | 'taxRate' | 'description' | 'taxType' | 'taxName' | 'jurisdiction' | 'jurisdictionType', value: any) => ManualTaxMappingsQueryBuilder;
744
+ /** @param propertyName - Property whose value is compared with `value`.
745
+ * @param value - Value to compare against.
746
+ * @documentationMaturity preview
747
+ */
748
+ ne: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'taxGroupId' | 'taxRegionId' | 'taxRate' | 'description' | 'taxType' | 'taxName' | 'jurisdiction' | 'jurisdictionType', value: any) => ManualTaxMappingsQueryBuilder;
749
+ /** @param propertyName - Property whose value is compared with `value`.
750
+ * @param value - Value to compare against.
751
+ * @documentationMaturity preview
752
+ */
753
+ ge: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'taxGroupId' | 'taxRegionId' | 'taxRate' | 'description' | 'taxType' | 'taxName' | 'jurisdiction', value: any) => ManualTaxMappingsQueryBuilder;
754
+ /** @param propertyName - Property whose value is compared with `value`.
755
+ * @param value - Value to compare against.
756
+ * @documentationMaturity preview
757
+ */
758
+ gt: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'taxGroupId' | 'taxRegionId' | 'taxRate' | 'description' | 'taxType' | 'taxName' | 'jurisdiction', value: any) => ManualTaxMappingsQueryBuilder;
759
+ /** @param propertyName - Property whose value is compared with `value`.
760
+ * @param value - Value to compare against.
761
+ * @documentationMaturity preview
762
+ */
763
+ le: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'taxGroupId' | 'taxRegionId' | 'taxRate' | 'description' | 'taxType' | 'taxName' | 'jurisdiction', value: any) => ManualTaxMappingsQueryBuilder;
764
+ /** @param propertyName - Property whose value is compared with `value`.
765
+ * @param value - Value to compare against.
766
+ * @documentationMaturity preview
767
+ */
768
+ lt: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'taxGroupId' | 'taxRegionId' | 'taxRate' | 'description' | 'taxType' | 'taxName' | 'jurisdiction', value: any) => ManualTaxMappingsQueryBuilder;
769
+ /** @param propertyName - Property whose value is compared with `string`.
770
+ * @param string - String to compare against. Case-insensitive.
771
+ * @documentationMaturity preview
772
+ */
773
+ startsWith: (propertyName: '_id' | 'taxGroupId' | 'taxRegionId' | 'taxRate' | 'description' | 'taxType' | 'taxName' | 'jurisdiction', value: string) => ManualTaxMappingsQueryBuilder;
774
+ /** @param propertyName - Property whose value is compared with `values`.
775
+ * @param values - List of values to compare against.
776
+ * @documentationMaturity preview
777
+ */
778
+ hasSome: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'taxGroupId' | 'taxRegionId' | 'taxRate' | 'description' | 'taxType' | 'taxName' | 'jurisdiction' | 'jurisdictionType', value: any[]) => ManualTaxMappingsQueryBuilder;
779
+ /** @documentationMaturity preview */
780
+ in: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'taxGroupId' | 'taxRegionId' | 'taxRate' | 'description' | 'taxType' | 'taxName' | 'jurisdiction' | 'jurisdictionType', value: any) => ManualTaxMappingsQueryBuilder;
781
+ /** @documentationMaturity preview */
782
+ exists: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'taxGroupId' | 'taxRegionId' | 'taxRate' | 'description' | 'taxType' | 'taxName' | 'jurisdiction' | 'jurisdictionType', value: boolean) => ManualTaxMappingsQueryBuilder;
783
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
784
+ * @documentationMaturity preview
785
+ */
786
+ ascending: (...propertyNames: Array<'_id' | '_createdDate' | '_updatedDate' | 'taxRate' | 'taxType' | 'taxName' | 'jurisdiction' | 'jurisdictionType'>) => ManualTaxMappingsQueryBuilder;
787
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
788
+ * @documentationMaturity preview
789
+ */
790
+ descending: (...propertyNames: Array<'_id' | '_createdDate' | '_updatedDate' | 'taxRate' | 'taxType' | 'taxName' | 'jurisdiction' | 'jurisdictionType'>) => ManualTaxMappingsQueryBuilder;
791
+ /** @param limit - Number of items to return, which is also the `pageSize` of the results object.
792
+ * @documentationMaturity preview
793
+ */
794
+ limit: (limit: number) => ManualTaxMappingsQueryBuilder;
795
+ /** @param cursor - A pointer to specific record
796
+ * @documentationMaturity preview
797
+ */
798
+ skipTo: (cursor: string) => ManualTaxMappingsQueryBuilder;
799
+ /** @documentationMaturity preview */
800
+ find: () => Promise<ManualTaxMappingsQueryResult>;
801
+ }
802
+ /**
803
+ * Updates extended fields of a manual tax mapping without incrementing revision
804
+ * @param _id - ID of the entity to update.
805
+ * @param namespace - Identifier for the app whose extended fields are being updated.
806
+ * @public
807
+ * @documentationMaturity preview
808
+ * @requiredField _id
809
+ * @requiredField namespace
810
+ * @requiredField options
811
+ * @requiredField options.namespaceData
812
+ * @permissionId BILLING.MANUAL_TAX_MAPPING_UPDATE
813
+ * @applicableIdentity APP
814
+ * @fqn wix.billing.v1.ManualTaxMappingService.UpdateExtendedFields
815
+ */
816
+ declare function updateExtendedFields(_id: string, namespace: string, options: NonNullablePaths<UpdateExtendedFieldsOptions, `namespaceData`, 2>): Promise<NonNullablePaths<UpdateExtendedFieldsResponse, `manualTaxMapping.taxRate` | `manualTaxMapping.taxType` | `manualTaxMapping.taxName` | `manualTaxMapping.jurisdiction` | `manualTaxMapping.jurisdictionType`, 3>>;
817
+ interface UpdateExtendedFieldsOptions {
818
+ /** Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields#json-schema-for-extended-fields) defined when the extended fields were configured. */
819
+ namespaceData: Record<string, any> | null;
820
+ }
821
+
822
+ export { type ActionEvent, type ApplicationError, type BaseEventMetadata, type BulkActionMetadata, type BulkCreateManualTaxMappingsOptions, type BulkCreateManualTaxMappingsRequest, type BulkCreateManualTaxMappingsResponse, type BulkManualTaxMappingResult, type BulkRestoreManualTaxMappingsRequest, type BulkRestoreManualTaxMappingsResponse, type BulkRestoreManualTaxMappingsResult, type CreateManualTaxMappingRequest, type CreateManualTaxMappingResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DeleteManualTaxMappingRequest, type DeleteManualTaxMappingResponse, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type GetManualTaxMappingRequest, type GetManualTaxMappingResponse, type IdentificationData, type IdentificationDataIdOneOf, type ItemMetadata, JurisdictionType, type JurisdictionTypeWithLiterals, type ManualTaxMapping, type ManualTaxMappingCreatedEnvelope, type ManualTaxMappingDeletedEnvelope, type ManualTaxMappingUpdatedEnvelope, type ManualTaxMappingsQueryBuilder, type ManualTaxMappingsQueryResult, type MessageEnvelope, type QueryManualTaxMappingsRequest, type QueryManualTaxMappingsResponse, type RestoreInfo, SortOrder, type SortOrderWithLiterals, type Sorting, type UpdateExtendedFieldsOptions, type UpdateExtendedFieldsRequest, type UpdateExtendedFieldsResponse, type UpdateManualTaxMapping, type UpdateManualTaxMappingRequest, type UpdateManualTaxMappingResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, bulkCreateManualTaxMappings, createManualTaxMapping, deleteManualTaxMapping, getManualTaxMapping, onManualTaxMappingCreated, onManualTaxMappingDeleted, onManualTaxMappingUpdated, queryManualTaxMappings, updateExtendedFields, updateManualTaxMapping };