@wix/auto_sdk_ecom_tax-regions 1.0.30 → 1.0.32

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.
@@ -60,6 +60,74 @@ interface CreateTaxRegionResponse {
60
60
  /** Created tax region. */
61
61
  taxRegion?: TaxRegion;
62
62
  }
63
+ interface ConflictErrorDetails {
64
+ /**
65
+ * Conflict details.
66
+ * @maxLength 1000
67
+ */
68
+ reasonForConflict?: string;
69
+ }
70
+ interface BulkCreateTaxRegionRequest {
71
+ /**
72
+ * Tax regions to create.
73
+ * @minSize 1
74
+ * @maxSize 100
75
+ */
76
+ taxRegions?: TaxRegion[];
77
+ /**
78
+ * Whether to return the full tax region objects in the response.
79
+ *
80
+ * Default: `true`
81
+ */
82
+ returnEntity?: boolean;
83
+ }
84
+ interface BulkCreateTaxRegionResponse {
85
+ /**
86
+ * Tax regions created by bulk action.
87
+ * @minSize 1
88
+ * @maxSize 100
89
+ */
90
+ results?: BulkCreateTaxRegionResult[];
91
+ /** Bulk action metadata. */
92
+ bulkActionMetadata?: BulkActionMetadata;
93
+ }
94
+ interface BulkCreateTaxRegionResult {
95
+ /** Item metadata. */
96
+ itemMetadata?: ItemMetadata;
97
+ /**
98
+ * Tax region.
99
+ *
100
+ * This field is returned if the operation was successful and
101
+ * `returnEntity` is set to `true`.
102
+ */
103
+ item?: TaxRegion;
104
+ }
105
+ interface ItemMetadata {
106
+ /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
107
+ id?: string | null;
108
+ /** Index of the item within the request array. Allows for correlation between request and response items. */
109
+ originalIndex?: number;
110
+ /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
111
+ success?: boolean;
112
+ /** Details about the error in case of failure. */
113
+ error?: ApplicationError;
114
+ }
115
+ interface ApplicationError {
116
+ /** Error code. */
117
+ code?: string;
118
+ /** Description of the error. */
119
+ description?: string;
120
+ /** Data related to the error. */
121
+ data?: Record<string, any> | null;
122
+ }
123
+ interface BulkActionMetadata {
124
+ /** Number of items that were successfully processed. */
125
+ totalSuccesses?: number;
126
+ /** Number of items that couldn't be processed. */
127
+ totalFailures?: number;
128
+ /** Number of failures without details because detailed failure threshold was exceeded. */
129
+ undetailedFailures?: number;
130
+ }
63
131
  interface GetTaxRegionRequest {
64
132
  /**
65
133
  * ID of the tax region to retrieve.
@@ -183,6 +251,219 @@ interface Cursors {
183
251
  */
184
252
  prev?: string | null;
185
253
  }
254
+ interface CreateOrGetTaxRegionWithoutValidationRequest {
255
+ /** Tax region to create. */
256
+ taxRegion?: TaxRegion;
257
+ }
258
+ interface CreateOrGetTaxRegionWithoutValidationResponse {
259
+ /** Created tax region. */
260
+ taxRegion?: TaxRegion;
261
+ }
262
+ interface DeleteTaxRegionWithoutDomainEventsRequest {
263
+ /**
264
+ * ID of the tax region to delete.
265
+ * @format GUID
266
+ */
267
+ taxRegionId?: string;
268
+ }
269
+ interface DeleteTaxRegionWithoutDomainEventsResponse {
270
+ }
271
+ interface BulkRestoreTaxRegionsRequest {
272
+ /**
273
+ * Tax region IDs to restore.
274
+ * @format GUID
275
+ * @minSize 1
276
+ * @maxSize 200
277
+ */
278
+ taxRegionIds?: string[];
279
+ }
280
+ interface BulkRestoreTaxRegionsResponse {
281
+ /**
282
+ * Restored tax regions result
283
+ * @minSize 1
284
+ * @maxSize 200
285
+ */
286
+ results?: BulkRestoreTaxRegionsResult[];
287
+ }
288
+ interface BulkRestoreTaxRegionsResult {
289
+ itemMetadata?: ItemMetadata;
290
+ }
291
+ interface DomainEvent extends DomainEventBodyOneOf {
292
+ createdEvent?: EntityCreatedEvent;
293
+ updatedEvent?: EntityUpdatedEvent;
294
+ deletedEvent?: EntityDeletedEvent;
295
+ actionEvent?: ActionEvent;
296
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
297
+ id?: string;
298
+ /**
299
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
300
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
301
+ */
302
+ entityFqdn?: string;
303
+ /**
304
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
305
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
306
+ */
307
+ slug?: string;
308
+ /** ID of the entity associated with the event. */
309
+ entityId?: string;
310
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
311
+ eventTime?: Date | null;
312
+ /**
313
+ * Whether the event was triggered as a result of a privacy regulation application
314
+ * (for example, GDPR).
315
+ */
316
+ triggeredByAnonymizeRequest?: boolean | null;
317
+ /** If present, indicates the action that triggered the event. */
318
+ originatedFrom?: string | null;
319
+ /**
320
+ * 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.
321
+ * 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.
322
+ */
323
+ entityEventSequence?: string | null;
324
+ }
325
+ /** @oneof */
326
+ interface DomainEventBodyOneOf {
327
+ createdEvent?: EntityCreatedEvent;
328
+ updatedEvent?: EntityUpdatedEvent;
329
+ deletedEvent?: EntityDeletedEvent;
330
+ actionEvent?: ActionEvent;
331
+ }
332
+ interface EntityCreatedEvent {
333
+ entityAsJson?: string;
334
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
335
+ restoreInfo?: RestoreInfo;
336
+ }
337
+ interface RestoreInfo {
338
+ deletedDate?: Date | null;
339
+ }
340
+ interface EntityUpdatedEvent {
341
+ /**
342
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
343
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
344
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
345
+ */
346
+ currentEntityAsJson?: string;
347
+ }
348
+ interface EntityDeletedEvent {
349
+ /** Entity that was deleted. */
350
+ deletedEntityAsJson?: string | null;
351
+ }
352
+ interface ActionEvent {
353
+ bodyAsJson?: string;
354
+ }
355
+ interface MessageEnvelope {
356
+ /**
357
+ * App instance ID.
358
+ * @format GUID
359
+ */
360
+ instanceId?: string | null;
361
+ /**
362
+ * Event type.
363
+ * @maxLength 150
364
+ */
365
+ eventType?: string;
366
+ /** The identification type and identity data. */
367
+ identity?: IdentificationData;
368
+ /** Stringify payload. */
369
+ data?: string;
370
+ }
371
+ interface IdentificationData extends IdentificationDataIdOneOf {
372
+ /**
373
+ * ID of a site visitor that has not logged in to the site.
374
+ * @format GUID
375
+ */
376
+ anonymousVisitorId?: string;
377
+ /**
378
+ * ID of a site visitor that has logged in to the site.
379
+ * @format GUID
380
+ */
381
+ memberId?: string;
382
+ /**
383
+ * ID of a Wix user (site owner, contributor, etc.).
384
+ * @format GUID
385
+ */
386
+ wixUserId?: string;
387
+ /**
388
+ * ID of an app.
389
+ * @format GUID
390
+ */
391
+ appId?: string;
392
+ /** @readonly */
393
+ identityType?: WebhookIdentityTypeWithLiterals;
394
+ }
395
+ /** @oneof */
396
+ interface 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
+ }
418
+ declare enum WebhookIdentityType {
419
+ UNKNOWN = "UNKNOWN",
420
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
421
+ MEMBER = "MEMBER",
422
+ WIX_USER = "WIX_USER",
423
+ APP = "APP"
424
+ }
425
+ /** @enumType */
426
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
427
+ /** @docsIgnore */
428
+ type CreateTaxRegionApplicationErrors = {
429
+ code?: 'ALREADY_EXISTS';
430
+ description?: string;
431
+ data?: ConflictErrorDetails;
432
+ } | {
433
+ code?: 'CALCULATOR_ID_NOT_FOUND';
434
+ description?: string;
435
+ data?: Record<string, any>;
436
+ } | {
437
+ code?: 'CALCULATOR_IS_NOT_SUPPORTED_FOR_THIS_TAX_REGION';
438
+ description?: string;
439
+ data?: Record<string, any>;
440
+ } | {
441
+ code?: 'INVALID_SUBDIVISION_FORMAT';
442
+ description?: string;
443
+ data?: Record<string, any>;
444
+ } | {
445
+ code?: 'SUBDIVISIONS_NOT_SUPPORTED_FOR_COUNTRY';
446
+ description?: string;
447
+ data?: Record<string, any>;
448
+ };
449
+ /** @docsIgnore */
450
+ type UpdateTaxRegionApplicationErrors = {
451
+ code?: 'CALCULATOR_ID_NOT_FOUND';
452
+ description?: string;
453
+ data?: Record<string, any>;
454
+ } | {
455
+ code?: 'CALCULATOR_IS_NOT_SUPPORTED_FOR_THIS_TAX_REGION';
456
+ description?: string;
457
+ data?: Record<string, any>;
458
+ } | {
459
+ code?: 'INVALID_SUBDIVISION_FORMAT';
460
+ description?: string;
461
+ data?: Record<string, any>;
462
+ } | {
463
+ code?: 'SUBDIVISIONS_NOT_SUPPORTED_FOR_COUNTRY';
464
+ description?: string;
465
+ data?: Record<string, any>;
466
+ };
186
467
 
187
468
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
188
469
  getUrl: (context: any) => string;
@@ -206,4 +487,4 @@ declare function deleteTaxRegion(): __PublicMethodMetaInfo<'DELETE', {
206
487
  }, DeleteTaxRegionRequest$1, DeleteTaxRegionRequest, DeleteTaxRegionResponse$1, DeleteTaxRegionResponse>;
207
488
  declare function queryTaxRegions(): __PublicMethodMetaInfo<'POST', {}, QueryTaxRegionsRequest$1, QueryTaxRegionsRequest, QueryTaxRegionsResponse$1, QueryTaxRegionsResponse>;
208
489
 
209
- export { type __PublicMethodMetaInfo, createTaxRegion, deleteTaxRegion, getTaxRegion, queryTaxRegions, updateTaxRegion };
490
+ export { type ActionEvent as ActionEventOriginal, type ApplicationError as ApplicationErrorOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkCreateTaxRegionRequest as BulkCreateTaxRegionRequestOriginal, type BulkCreateTaxRegionResponse as BulkCreateTaxRegionResponseOriginal, type BulkCreateTaxRegionResult as BulkCreateTaxRegionResultOriginal, type BulkRestoreTaxRegionsRequest as BulkRestoreTaxRegionsRequestOriginal, type BulkRestoreTaxRegionsResponse as BulkRestoreTaxRegionsResponseOriginal, type BulkRestoreTaxRegionsResult as BulkRestoreTaxRegionsResultOriginal, type ConflictErrorDetails as ConflictErrorDetailsOriginal, type CreateOrGetTaxRegionWithoutValidationRequest as CreateOrGetTaxRegionWithoutValidationRequestOriginal, type CreateOrGetTaxRegionWithoutValidationResponse as CreateOrGetTaxRegionWithoutValidationResponseOriginal, type CreateTaxRegionApplicationErrors as CreateTaxRegionApplicationErrorsOriginal, type CreateTaxRegionRequest as CreateTaxRegionRequestOriginal, type CreateTaxRegionResponse as CreateTaxRegionResponseOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type DeleteTaxRegionRequest as DeleteTaxRegionRequestOriginal, type DeleteTaxRegionResponse as DeleteTaxRegionResponseOriginal, type DeleteTaxRegionWithoutDomainEventsRequest as DeleteTaxRegionWithoutDomainEventsRequestOriginal, type DeleteTaxRegionWithoutDomainEventsResponse as DeleteTaxRegionWithoutDomainEventsResponseOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type GetTaxRegionRequest as GetTaxRegionRequestOriginal, type GetTaxRegionResponse as GetTaxRegionResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type ItemMetadata as ItemMetadataOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type QueryTaxRegionsRequest as QueryTaxRegionsRequestOriginal, type QueryTaxRegionsResponse as QueryTaxRegionsResponseOriginal, type RestoreInfo as RestoreInfoOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type TaxRegion as TaxRegionOriginal, type UpdateTaxRegionApplicationErrors as UpdateTaxRegionApplicationErrorsOriginal, type UpdateTaxRegionRequest as UpdateTaxRegionRequestOriginal, type UpdateTaxRegionResponse as UpdateTaxRegionResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, createTaxRegion, deleteTaxRegion, getTaxRegion, queryTaxRegions, updateTaxRegion };
package/build/cjs/meta.js CHANGED
@@ -20,6 +20,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // meta.ts
21
21
  var meta_exports = {};
22
22
  __export(meta_exports, {
23
+ SortOrderOriginal: () => SortOrder,
24
+ WebhookIdentityTypeOriginal: () => WebhookIdentityType,
23
25
  createTaxRegion: () => createTaxRegion2,
24
26
  deleteTaxRegion: () => deleteTaxRegion2,
25
27
  getTaxRegion: () => getTaxRegion2,
@@ -225,6 +227,21 @@ function queryTaxRegions(payload) {
225
227
  return __queryTaxRegions;
226
228
  }
227
229
 
230
+ // src/billing-v1-tax-region-tax-regions.types.ts
231
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
232
+ SortOrder2["ASC"] = "ASC";
233
+ SortOrder2["DESC"] = "DESC";
234
+ return SortOrder2;
235
+ })(SortOrder || {});
236
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
237
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
238
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
239
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
240
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
241
+ WebhookIdentityType2["APP"] = "APP";
242
+ return WebhookIdentityType2;
243
+ })(WebhookIdentityType || {});
244
+
228
245
  // src/billing-v1-tax-region-tax-regions.meta.ts
229
246
  function createTaxRegion2() {
230
247
  const payload = {};
@@ -318,6 +335,8 @@ function queryTaxRegions2() {
318
335
  }
319
336
  // Annotate the CommonJS export names for ESM import in node:
320
337
  0 && (module.exports = {
338
+ SortOrderOriginal,
339
+ WebhookIdentityTypeOriginal,
321
340
  createTaxRegion,
322
341
  deleteTaxRegion,
323
342
  getTaxRegion,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../meta.ts","../../src/billing-v1-tax-region-tax-regions.http.ts","../../src/billing-v1-tax-region-tax-regions.meta.ts"],"sourcesContent":["export * from './src/billing-v1-tax-region-tax-regions.meta.js';\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 resolveWixBillingV1TaxRegionsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www.wixapis.com': [\n {\n srcPath: '/billing/v1/tax-regions',\n destPath: '/v1/tax-regions',\n },\n {\n srcPath: '/billing/v1/bulk/tax-regions',\n destPath: '/v1/bulk/tax-regions',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/billing/v1/tax-regions',\n destPath: '/v1/tax-regions',\n },\n {\n srcPath: '/billing/v1/bulk/tax-regions',\n destPath: '/v1/bulk/tax-regions',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_ecom_tax-regions';\n\n/**\n * Creates a tax region.\n *\n * Tax regions require a tax calculator `appId`. Call List Tax Calculators to retrieve a list of available calculators for a site.\n *\n * Wix uses tax regions to calculate tax.\n * <!-- Subdivisions are supported for the following countries: `AU`, `BR`, `CA`, `FR`, `DE`, `IN`, `IT`, `MX`, `NL`, `ES`, `AE`, `GB`, `US` -->\n */\nexport function createTaxRegion(payload: object): RequestOptionsFactory<any> {\n function __createTaxRegion({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'taxRegion.createdDate' },\n { path: 'taxRegion.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.billing.v1.tax_region',\n method: 'POST' as any,\n methodFqn: 'wix.billing.v1.TaxRegionsService.CreateTaxRegion',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBillingV1TaxRegionsServiceUrl({\n protoPath: '/v1/tax-regions',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'taxRegion.createdDate' },\n { path: 'taxRegion.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createTaxRegion;\n}\n\n/** Retrieves a tax region. */\nexport function getTaxRegion(payload: object): RequestOptionsFactory<any> {\n function __getTaxRegion({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.billing.v1.tax_region',\n method: 'GET' as any,\n methodFqn: 'wix.billing.v1.TaxRegionsService.GetTaxRegion',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBillingV1TaxRegionsServiceUrl({\n protoPath: '/v1/tax-regions/{taxRegionId}',\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: 'taxRegion.createdDate' },\n { path: 'taxRegion.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getTaxRegion;\n}\n\n/**\n * Updates a tax region.\n *\n * Each time the tax region is updated, `revision` increments by 1.\n * The current `revision` must be passed when updating the tax region.\n * This ensures you're working with the latest tax region and prevents\n * unintended overwrites.\n */\nexport function updateTaxRegion(payload: object): RequestOptionsFactory<any> {\n function __updateTaxRegion({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'taxRegion.createdDate' },\n { path: 'taxRegion.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.billing.v1.tax_region',\n method: 'PATCH' as any,\n methodFqn: 'wix.billing.v1.TaxRegionsService.UpdateTaxRegion',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBillingV1TaxRegionsServiceUrl({\n protoPath: '/v1/tax-regions/{taxRegion.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: 'taxRegion.createdDate' },\n { path: 'taxRegion.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateTaxRegion;\n}\n\n/**\n * Deletes a tax region.\n *\n * When a tax region is deleted, tax is not calculated and zero tax will be returned for addresses in this region.\n */\nexport function deleteTaxRegion(payload: object): RequestOptionsFactory<any> {\n function __deleteTaxRegion({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.billing.v1.tax_region',\n method: 'DELETE' as any,\n methodFqn: 'wix.billing.v1.TaxRegionsService.DeleteTaxRegion',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBillingV1TaxRegionsServiceUrl({\n protoPath: '/v1/tax-regions/{taxRegionId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteTaxRegion;\n}\n\n/**\n * Creates a query to retrieve a list of tax regions.\n *\n * The `queryTaxRegions()` function builds a query to retrieve a list of tax regions and returns a `TaxRegionsQueryBuilder` 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 `TaxRegionsQueryBuilder` functions onto the query. `TaxRegionsQueryBuilder` functions enable you to sort, filter, and control the results that `queryTaxRegions()` returns.\n *\n * `queryTaxRegions()` runs with the following `TaxRegionsQueryBuilder` default that you can override:\n * + `ascending(\"_id\")`\n *\n * The functions that are chained to `queryTaxRegions()` are applied in the order they are called. For example, if you apply `ascending(\"country\")` and then `ascending(\"subdivision\")`, the results are sorted first by the `\"country\"`, and then, if there are multiple results with the same `\"country\"`, the items are sorted by `\"subdivision\"`.\n *\n * The following `TaxRegionsQueryBuilder` functions are supported for the `queryTaxRegions()` function. For a full description of the tax region object, see the object returned for the `items` property in `TaxRegionsQueryResult`.\n */\nexport function queryTaxRegions(payload: object): RequestOptionsFactory<any> {\n function __queryTaxRegions({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.billing.v1.tax_region',\n method: 'POST' as any,\n methodFqn: 'wix.billing.v1.TaxRegionsService.QueryTaxRegions',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBillingV1TaxRegionsServiceUrl({\n protoPath: '/v1/tax-regions/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: 'taxRegions.createdDate' },\n { path: 'taxRegions.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryTaxRegions;\n}\n","import * as ambassadorWixBillingV1TaxRegion from './billing-v1-tax-region-tax-regions.http.js';\nimport * as ambassadorWixBillingV1TaxRegionTypes from './billing-v1-tax-region-tax-regions.types.js';\nimport * as ambassadorWixBillingV1TaxRegionUniversalTypes from './billing-v1-tax-region-tax-regions.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function createTaxRegion(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBillingV1TaxRegionUniversalTypes.CreateTaxRegionRequest,\n ambassadorWixBillingV1TaxRegionTypes.CreateTaxRegionRequest,\n ambassadorWixBillingV1TaxRegionUniversalTypes.CreateTaxRegionResponse,\n ambassadorWixBillingV1TaxRegionTypes.CreateTaxRegionResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBillingV1TaxRegion.createTaxRegion(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/tax-regions',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getTaxRegion(): __PublicMethodMetaInfo<\n 'GET',\n { taxRegionId: string },\n ambassadorWixBillingV1TaxRegionUniversalTypes.GetTaxRegionRequest,\n ambassadorWixBillingV1TaxRegionTypes.GetTaxRegionRequest,\n ambassadorWixBillingV1TaxRegionUniversalTypes.GetTaxRegionResponse,\n ambassadorWixBillingV1TaxRegionTypes.GetTaxRegionResponse\n> {\n const payload = { taxRegionId: ':taxRegionId' } as any;\n\n const getRequestOptions =\n ambassadorWixBillingV1TaxRegion.getTaxRegion(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/tax-regions/{taxRegionId}',\n pathParams: { taxRegionId: 'taxRegionId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateTaxRegion(): __PublicMethodMetaInfo<\n 'PATCH',\n { taxRegionId: string },\n ambassadorWixBillingV1TaxRegionUniversalTypes.UpdateTaxRegionRequest,\n ambassadorWixBillingV1TaxRegionTypes.UpdateTaxRegionRequest,\n ambassadorWixBillingV1TaxRegionUniversalTypes.UpdateTaxRegionResponse,\n ambassadorWixBillingV1TaxRegionTypes.UpdateTaxRegionResponse\n> {\n const payload = { taxRegion: { id: ':taxRegionId' } } as any;\n\n const getRequestOptions =\n ambassadorWixBillingV1TaxRegion.updateTaxRegion(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v1/tax-regions/{taxRegion.id}',\n pathParams: { taxRegionId: 'taxRegionId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteTaxRegion(): __PublicMethodMetaInfo<\n 'DELETE',\n { taxRegionId: string },\n ambassadorWixBillingV1TaxRegionUniversalTypes.DeleteTaxRegionRequest,\n ambassadorWixBillingV1TaxRegionTypes.DeleteTaxRegionRequest,\n ambassadorWixBillingV1TaxRegionUniversalTypes.DeleteTaxRegionResponse,\n ambassadorWixBillingV1TaxRegionTypes.DeleteTaxRegionResponse\n> {\n const payload = { taxRegionId: ':taxRegionId' } as any;\n\n const getRequestOptions =\n ambassadorWixBillingV1TaxRegion.deleteTaxRegion(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v1/tax-regions/{taxRegionId}',\n pathParams: { taxRegionId: 'taxRegionId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryTaxRegions(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBillingV1TaxRegionUniversalTypes.QueryTaxRegionsRequest,\n ambassadorWixBillingV1TaxRegionTypes.QueryTaxRegionsRequest,\n ambassadorWixBillingV1TaxRegionUniversalTypes.QueryTaxRegionsResponse,\n ambassadorWixBillingV1TaxRegionTypes.QueryTaxRegionsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBillingV1TaxRegion.queryTaxRegions(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/tax-regions/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,yBAAAA;AAAA,EAAA,uBAAAC;AAAA,EAAA,oBAAAC;AAAA,EAAA,uBAAAC;AAAA,EAAA,uBAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,wBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,wCACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;A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,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC4B,gBAAgB,OAAO;AAEzD,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["createTaxRegion","deleteTaxRegion","getTaxRegion","queryTaxRegions","updateTaxRegion","import_timestamp","import_rest_modules","payload","createTaxRegion","getTaxRegion","updateTaxRegion","deleteTaxRegion","queryTaxRegions"]}
1
+ {"version":3,"sources":["../../meta.ts","../../src/billing-v1-tax-region-tax-regions.http.ts","../../src/billing-v1-tax-region-tax-regions.types.ts","../../src/billing-v1-tax-region-tax-regions.meta.ts"],"sourcesContent":["export * from './src/billing-v1-tax-region-tax-regions.meta.js';\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 resolveWixBillingV1TaxRegionsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www.wixapis.com': [\n {\n srcPath: '/billing/v1/tax-regions',\n destPath: '/v1/tax-regions',\n },\n {\n srcPath: '/billing/v1/bulk/tax-regions',\n destPath: '/v1/bulk/tax-regions',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/billing/v1/tax-regions',\n destPath: '/v1/tax-regions',\n },\n {\n srcPath: '/billing/v1/bulk/tax-regions',\n destPath: '/v1/bulk/tax-regions',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_ecom_tax-regions';\n\n/**\n * Creates a tax region.\n *\n * Tax regions require a tax calculator `appId`. Call List Tax Calculators to retrieve a list of available calculators for a site.\n *\n * Wix uses tax regions to calculate tax.\n * <!-- Subdivisions are supported for the following countries: `AU`, `BR`, `CA`, `FR`, `DE`, `IN`, `IT`, `MX`, `NL`, `ES`, `AE`, `GB`, `US` -->\n */\nexport function createTaxRegion(payload: object): RequestOptionsFactory<any> {\n function __createTaxRegion({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'taxRegion.createdDate' },\n { path: 'taxRegion.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.billing.v1.tax_region',\n method: 'POST' as any,\n methodFqn: 'wix.billing.v1.TaxRegionsService.CreateTaxRegion',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBillingV1TaxRegionsServiceUrl({\n protoPath: '/v1/tax-regions',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'taxRegion.createdDate' },\n { path: 'taxRegion.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createTaxRegion;\n}\n\n/** Retrieves a tax region. */\nexport function getTaxRegion(payload: object): RequestOptionsFactory<any> {\n function __getTaxRegion({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.billing.v1.tax_region',\n method: 'GET' as any,\n methodFqn: 'wix.billing.v1.TaxRegionsService.GetTaxRegion',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBillingV1TaxRegionsServiceUrl({\n protoPath: '/v1/tax-regions/{taxRegionId}',\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: 'taxRegion.createdDate' },\n { path: 'taxRegion.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getTaxRegion;\n}\n\n/**\n * Updates a tax region.\n *\n * Each time the tax region is updated, `revision` increments by 1.\n * The current `revision` must be passed when updating the tax region.\n * This ensures you're working with the latest tax region and prevents\n * unintended overwrites.\n */\nexport function updateTaxRegion(payload: object): RequestOptionsFactory<any> {\n function __updateTaxRegion({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'taxRegion.createdDate' },\n { path: 'taxRegion.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.billing.v1.tax_region',\n method: 'PATCH' as any,\n methodFqn: 'wix.billing.v1.TaxRegionsService.UpdateTaxRegion',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBillingV1TaxRegionsServiceUrl({\n protoPath: '/v1/tax-regions/{taxRegion.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: 'taxRegion.createdDate' },\n { path: 'taxRegion.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateTaxRegion;\n}\n\n/**\n * Deletes a tax region.\n *\n * When a tax region is deleted, tax is not calculated and zero tax will be returned for addresses in this region.\n */\nexport function deleteTaxRegion(payload: object): RequestOptionsFactory<any> {\n function __deleteTaxRegion({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.billing.v1.tax_region',\n method: 'DELETE' as any,\n methodFqn: 'wix.billing.v1.TaxRegionsService.DeleteTaxRegion',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBillingV1TaxRegionsServiceUrl({\n protoPath: '/v1/tax-regions/{taxRegionId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteTaxRegion;\n}\n\n/**\n * Creates a query to retrieve a list of tax regions.\n *\n * The `queryTaxRegions()` function builds a query to retrieve a list of tax regions and returns a `TaxRegionsQueryBuilder` 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 `TaxRegionsQueryBuilder` functions onto the query. `TaxRegionsQueryBuilder` functions enable you to sort, filter, and control the results that `queryTaxRegions()` returns.\n *\n * `queryTaxRegions()` runs with the following `TaxRegionsQueryBuilder` default that you can override:\n * + `ascending(\"_id\")`\n *\n * The functions that are chained to `queryTaxRegions()` are applied in the order they are called. For example, if you apply `ascending(\"country\")` and then `ascending(\"subdivision\")`, the results are sorted first by the `\"country\"`, and then, if there are multiple results with the same `\"country\"`, the items are sorted by `\"subdivision\"`.\n *\n * The following `TaxRegionsQueryBuilder` functions are supported for the `queryTaxRegions()` function. For a full description of the tax region object, see the object returned for the `items` property in `TaxRegionsQueryResult`.\n */\nexport function queryTaxRegions(payload: object): RequestOptionsFactory<any> {\n function __queryTaxRegions({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.billing.v1.tax_region',\n method: 'POST' as any,\n methodFqn: 'wix.billing.v1.TaxRegionsService.QueryTaxRegions',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBillingV1TaxRegionsServiceUrl({\n protoPath: '/v1/tax-regions/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: 'taxRegions.createdDate' },\n { path: 'taxRegions.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryTaxRegions;\n}\n","/**\n * A tax region uses a location to define a specific tax treatment.\n * A location is defined by `country` and `subdivision`. The tax region also\n * dictates whether or not tax is included in the displayed price.\n */\nexport interface TaxRegion {\n /**\n * Tax region ID.\n * @format GUID\n * @readonly\n */\n id?: string | null;\n /**\n * 2-letter country code in [ISO-3166 alpha-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format.\n * @format COUNTRY\n * @minLength 2\n */\n country?: string;\n /**\n * Subdivision (such as state, prefecture, or province) in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-2) format.\n * @maxLength 50\n */\n subdivision?: string;\n /**\n * The tax calculator ID to use to calculate tax for this region.\n *\n * Call List Tax Calculators to retrieve a list of available calculators for a site.\n * @format GUID\n */\n appId?: string;\n /** Whether tax is included in the price. */\n taxIncludedInPrice?: boolean;\n /**\n * Revision number, which increments by 1 each time the tax region is updated.\n * To prevent conflicting changes, the current revision must be passed when updating the tax region.\n *\n * Ignored when creating a tax region.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the tax region was created.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Date and time the tax region was last updated.\n * @readonly\n */\n updatedDate?: Date | null;\n}\n\nexport interface CreateTaxRegionRequest {\n /** Tax region to create. */\n taxRegion: TaxRegion;\n}\n\nexport interface CreateTaxRegionResponse {\n /** Created tax region. */\n taxRegion?: TaxRegion;\n}\n\nexport interface ConflictErrorDetails {\n /**\n * Conflict details.\n * @maxLength 1000\n */\n reasonForConflict?: string;\n}\n\nexport interface BulkCreateTaxRegionRequest {\n /**\n * Tax regions to create.\n * @minSize 1\n * @maxSize 100\n */\n taxRegions?: TaxRegion[];\n /**\n * Whether to return the full tax region objects in the response.\n *\n * Default: `true`\n */\n returnEntity?: boolean;\n}\n\nexport interface BulkCreateTaxRegionResponse {\n /**\n * Tax regions created by bulk action.\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkCreateTaxRegionResult[];\n /** Bulk action metadata. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkCreateTaxRegionResult {\n /** Item metadata. */\n itemMetadata?: ItemMetadata;\n /**\n * Tax region.\n *\n * This field is returned if the operation was successful and\n * `returnEntity` is set to `true`.\n */\n item?: TaxRegion;\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 GetTaxRegionRequest {\n /**\n * ID of the tax region to retrieve.\n * @format GUID\n */\n taxRegionId: string;\n}\n\nexport interface GetTaxRegionResponse {\n /** Retrieved tax region. */\n taxRegion?: TaxRegion;\n}\n\nexport interface UpdateTaxRegionRequest {\n /** Tax region info to update. */\n taxRegion: TaxRegion;\n}\n\nexport interface UpdateTaxRegionResponse {\n /** Updated tax region. */\n taxRegion?: TaxRegion;\n}\n\nexport interface DeleteTaxRegionRequest {\n /**\n * ID of the tax region to delete.\n * @format GUID\n */\n taxRegionId: string;\n}\n\nexport interface DeleteTaxRegionResponse {}\n\nexport interface QueryTaxRegionsRequest {\n /** Query options. */\n query?: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\n cursorPaging?: CursorPaging;\n /**\n * Filter object.\n *\n * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object.\n *\n * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).\n * @maxSize 5\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\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?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\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 QueryTaxRegionsResponse {\n /** Retrieved tax regions. */\n taxRegions?: TaxRegion[];\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 CreateOrGetTaxRegionWithoutValidationRequest {\n /** Tax region to create. */\n taxRegion?: TaxRegion;\n}\n\nexport interface CreateOrGetTaxRegionWithoutValidationResponse {\n /** Created tax region. */\n taxRegion?: TaxRegion;\n}\n\nexport interface DeleteTaxRegionWithoutDomainEventsRequest {\n /**\n * ID of the tax region to delete.\n * @format GUID\n */\n taxRegionId?: string;\n}\n\nexport interface DeleteTaxRegionWithoutDomainEventsResponse {}\n\nexport interface BulkRestoreTaxRegionsRequest {\n /**\n * Tax region IDs to restore.\n * @format GUID\n * @minSize 1\n * @maxSize 200\n */\n taxRegionIds?: string[];\n}\n\nexport interface BulkRestoreTaxRegionsResponse {\n /**\n * Restored tax regions result\n * @minSize 1\n * @maxSize 200\n */\n results?: BulkRestoreTaxRegionsResult[];\n}\n\nexport interface BulkRestoreTaxRegionsResult {\n itemMetadata?: ItemMetadata;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For 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 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.\n * 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.\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 entityAsJson?: string;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\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 currentEntityAsJson?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: 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?: WebhookIdentityTypeWithLiterals;\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\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n/** @docsIgnore */\nexport type CreateTaxRegionApplicationErrors =\n | {\n code?: 'ALREADY_EXISTS';\n description?: string;\n data?: ConflictErrorDetails;\n }\n | {\n code?: 'CALCULATOR_ID_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CALCULATOR_IS_NOT_SUPPORTED_FOR_THIS_TAX_REGION';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'INVALID_SUBDIVISION_FORMAT';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'SUBDIVISIONS_NOT_SUPPORTED_FOR_COUNTRY';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type UpdateTaxRegionApplicationErrors =\n | {\n code?: 'CALCULATOR_ID_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CALCULATOR_IS_NOT_SUPPORTED_FOR_THIS_TAX_REGION';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'INVALID_SUBDIVISION_FORMAT';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'SUBDIVISIONS_NOT_SUPPORTED_FOR_COUNTRY';\n description?: string;\n data?: Record<string, any>;\n };\n","import * as ambassadorWixBillingV1TaxRegion from './billing-v1-tax-region-tax-regions.http.js';\nimport * as ambassadorWixBillingV1TaxRegionTypes from './billing-v1-tax-region-tax-regions.types.js';\nimport * as ambassadorWixBillingV1TaxRegionUniversalTypes from './billing-v1-tax-region-tax-regions.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function createTaxRegion(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBillingV1TaxRegionUniversalTypes.CreateTaxRegionRequest,\n ambassadorWixBillingV1TaxRegionTypes.CreateTaxRegionRequest,\n ambassadorWixBillingV1TaxRegionUniversalTypes.CreateTaxRegionResponse,\n ambassadorWixBillingV1TaxRegionTypes.CreateTaxRegionResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBillingV1TaxRegion.createTaxRegion(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/tax-regions',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getTaxRegion(): __PublicMethodMetaInfo<\n 'GET',\n { taxRegionId: string },\n ambassadorWixBillingV1TaxRegionUniversalTypes.GetTaxRegionRequest,\n ambassadorWixBillingV1TaxRegionTypes.GetTaxRegionRequest,\n ambassadorWixBillingV1TaxRegionUniversalTypes.GetTaxRegionResponse,\n ambassadorWixBillingV1TaxRegionTypes.GetTaxRegionResponse\n> {\n const payload = { taxRegionId: ':taxRegionId' } as any;\n\n const getRequestOptions =\n ambassadorWixBillingV1TaxRegion.getTaxRegion(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/tax-regions/{taxRegionId}',\n pathParams: { taxRegionId: 'taxRegionId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateTaxRegion(): __PublicMethodMetaInfo<\n 'PATCH',\n { taxRegionId: string },\n ambassadorWixBillingV1TaxRegionUniversalTypes.UpdateTaxRegionRequest,\n ambassadorWixBillingV1TaxRegionTypes.UpdateTaxRegionRequest,\n ambassadorWixBillingV1TaxRegionUniversalTypes.UpdateTaxRegionResponse,\n ambassadorWixBillingV1TaxRegionTypes.UpdateTaxRegionResponse\n> {\n const payload = { taxRegion: { id: ':taxRegionId' } } as any;\n\n const getRequestOptions =\n ambassadorWixBillingV1TaxRegion.updateTaxRegion(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v1/tax-regions/{taxRegion.id}',\n pathParams: { taxRegionId: 'taxRegionId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteTaxRegion(): __PublicMethodMetaInfo<\n 'DELETE',\n { taxRegionId: string },\n ambassadorWixBillingV1TaxRegionUniversalTypes.DeleteTaxRegionRequest,\n ambassadorWixBillingV1TaxRegionTypes.DeleteTaxRegionRequest,\n ambassadorWixBillingV1TaxRegionUniversalTypes.DeleteTaxRegionResponse,\n ambassadorWixBillingV1TaxRegionTypes.DeleteTaxRegionResponse\n> {\n const payload = { taxRegionId: ':taxRegionId' } as any;\n\n const getRequestOptions =\n ambassadorWixBillingV1TaxRegion.deleteTaxRegion(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v1/tax-regions/{taxRegionId}',\n pathParams: { taxRegionId: 'taxRegionId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryTaxRegions(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBillingV1TaxRegionUniversalTypes.QueryTaxRegionsRequest,\n ambassadorWixBillingV1TaxRegionTypes.QueryTaxRegionsRequest,\n ambassadorWixBillingV1TaxRegionUniversalTypes.QueryTaxRegionsResponse,\n ambassadorWixBillingV1TaxRegionTypes.QueryTaxRegionsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBillingV1TaxRegion.queryTaxRegions(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/tax-regions/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n TaxRegion as TaxRegionOriginal,\n CreateTaxRegionRequest as CreateTaxRegionRequestOriginal,\n CreateTaxRegionResponse as CreateTaxRegionResponseOriginal,\n ConflictErrorDetails as ConflictErrorDetailsOriginal,\n BulkCreateTaxRegionRequest as BulkCreateTaxRegionRequestOriginal,\n BulkCreateTaxRegionResponse as BulkCreateTaxRegionResponseOriginal,\n BulkCreateTaxRegionResult as BulkCreateTaxRegionResultOriginal,\n ItemMetadata as ItemMetadataOriginal,\n ApplicationError as ApplicationErrorOriginal,\n BulkActionMetadata as BulkActionMetadataOriginal,\n GetTaxRegionRequest as GetTaxRegionRequestOriginal,\n GetTaxRegionResponse as GetTaxRegionResponseOriginal,\n UpdateTaxRegionRequest as UpdateTaxRegionRequestOriginal,\n UpdateTaxRegionResponse as UpdateTaxRegionResponseOriginal,\n DeleteTaxRegionRequest as DeleteTaxRegionRequestOriginal,\n DeleteTaxRegionResponse as DeleteTaxRegionResponseOriginal,\n QueryTaxRegionsRequest as QueryTaxRegionsRequestOriginal,\n CursorQuery as CursorQueryOriginal,\n CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal,\n Sorting as SortingOriginal,\n SortOrder as SortOrderOriginal,\n SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n CursorPaging as CursorPagingOriginal,\n QueryTaxRegionsResponse as QueryTaxRegionsResponseOriginal,\n CursorPagingMetadata as CursorPagingMetadataOriginal,\n Cursors as CursorsOriginal,\n CreateOrGetTaxRegionWithoutValidationRequest as CreateOrGetTaxRegionWithoutValidationRequestOriginal,\n CreateOrGetTaxRegionWithoutValidationResponse as CreateOrGetTaxRegionWithoutValidationResponseOriginal,\n DeleteTaxRegionWithoutDomainEventsRequest as DeleteTaxRegionWithoutDomainEventsRequestOriginal,\n DeleteTaxRegionWithoutDomainEventsResponse as DeleteTaxRegionWithoutDomainEventsResponseOriginal,\n BulkRestoreTaxRegionsRequest as BulkRestoreTaxRegionsRequestOriginal,\n BulkRestoreTaxRegionsResponse as BulkRestoreTaxRegionsResponseOriginal,\n BulkRestoreTaxRegionsResult as BulkRestoreTaxRegionsResultOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n CreateTaxRegionApplicationErrors as CreateTaxRegionApplicationErrorsOriginal,\n UpdateTaxRegionApplicationErrors as UpdateTaxRegionApplicationErrorsOriginal,\n} from './billing-v1-tax-region-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AM,oBAC4B,gBAAgB,OAAO;AAEzD,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,aAAa,cAAc;AAAA,IACzC,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,mBAOd;AACA,QAAM,UAAU,EAAE,aAAa,eAAe;AAE9C,QAAM,oBAC4B,gBAAgB,OAAO;AAEzD,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,aAAa,cAAc;AAAA,IACzC,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,mBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC4B,gBAAgB,OAAO;AAEzD,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["createTaxRegion","deleteTaxRegion","getTaxRegion","queryTaxRegions","updateTaxRegion","import_timestamp","import_rest_modules","payload","SortOrder","WebhookIdentityType","createTaxRegion","getTaxRegion","updateTaxRegion","deleteTaxRegion","queryTaxRegions"]}