@wix/auto_sdk_ecom_tax-regions 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.
- package/build/cjs/index.d.ts +1 -0
- package/build/cjs/index.js +18 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/billing-v1-tax-region-tax-regions.context.d.ts +23 -0
- package/build/cjs/src/billing-v1-tax-region-tax-regions.context.js +28 -0
- package/build/cjs/src/billing-v1-tax-region-tax-regions.context.js.map +1 -0
- package/build/cjs/src/billing-v1-tax-region-tax-regions.http.d.ts +44 -0
- package/build/cjs/src/billing-v1-tax-region-tax-regions.http.js +227 -0
- package/build/cjs/src/billing-v1-tax-region-tax-regions.http.js.map +1 -0
- package/build/cjs/src/billing-v1-tax-region-tax-regions.meta.d.ts +23 -0
- package/build/cjs/src/billing-v1-tax-region-tax-regions.meta.js +123 -0
- package/build/cjs/src/billing-v1-tax-region-tax-regions.meta.js.map +1 -0
- package/build/cjs/src/billing-v1-tax-region-tax-regions.public.d.ts +77 -0
- package/build/cjs/src/billing-v1-tax-region-tax-regions.public.js +73 -0
- package/build/cjs/src/billing-v1-tax-region-tax-regions.public.js.map +1 -0
- package/build/cjs/src/billing-v1-tax-region-tax-regions.types.d.ts +446 -0
- package/build/cjs/src/billing-v1-tax-region-tax-regions.types.js +17 -0
- package/build/cjs/src/billing-v1-tax-region-tax-regions.types.js.map +1 -0
- package/build/cjs/src/billing-v1-tax-region-tax-regions.universal.d.ts +805 -0
- package/build/cjs/src/billing-v1-tax-region-tax-regions.universal.js +301 -0
- package/build/cjs/src/billing-v1-tax-region-tax-regions.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/src/billing-v1-tax-region-tax-regions.context.d.ts +23 -0
- package/build/es/src/billing-v1-tax-region-tax-regions.context.js +23 -0
- package/build/es/src/billing-v1-tax-region-tax-regions.context.js.map +1 -0
- package/build/es/src/billing-v1-tax-region-tax-regions.http.d.ts +44 -0
- package/build/es/src/billing-v1-tax-region-tax-regions.http.js +219 -0
- package/build/es/src/billing-v1-tax-region-tax-regions.http.js.map +1 -0
- package/build/es/src/billing-v1-tax-region-tax-regions.meta.d.ts +23 -0
- package/build/es/src/billing-v1-tax-region-tax-regions.meta.js +92 -0
- package/build/es/src/billing-v1-tax-region-tax-regions.meta.js.map +1 -0
- package/build/es/src/billing-v1-tax-region-tax-regions.public.d.ts +77 -0
- package/build/es/src/billing-v1-tax-region-tax-regions.public.js +63 -0
- package/build/es/src/billing-v1-tax-region-tax-regions.public.js.map +1 -0
- package/build/es/src/billing-v1-tax-region-tax-regions.types.d.ts +446 -0
- package/build/es/src/billing-v1-tax-region-tax-regions.types.js +14 -0
- package/build/es/src/billing-v1-tax-region-tax-regions.types.js.map +1 -0
- package/build/es/src/billing-v1-tax-region-tax-regions.universal.d.ts +805 -0
- package/build/es/src/billing-v1-tax-region-tax-regions.universal.js +270 -0
- package/build/es/src/billing-v1-tax-region-tax-regions.universal.js.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -0
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/src/billing-v1-tax-region-tax-regions.context.d.ts +23 -0
- package/build/internal/cjs/src/billing-v1-tax-region-tax-regions.context.js +28 -0
- package/build/internal/cjs/src/billing-v1-tax-region-tax-regions.context.js.map +1 -0
- package/build/internal/cjs/src/billing-v1-tax-region-tax-regions.http.d.ts +44 -0
- package/build/internal/cjs/src/billing-v1-tax-region-tax-regions.http.js +227 -0
- package/build/internal/cjs/src/billing-v1-tax-region-tax-regions.http.js.map +1 -0
- package/build/internal/cjs/src/billing-v1-tax-region-tax-regions.meta.d.ts +23 -0
- package/build/internal/cjs/src/billing-v1-tax-region-tax-regions.meta.js +123 -0
- package/build/internal/cjs/src/billing-v1-tax-region-tax-regions.meta.js.map +1 -0
- package/build/internal/cjs/src/billing-v1-tax-region-tax-regions.public.d.ts +77 -0
- package/build/internal/cjs/src/billing-v1-tax-region-tax-regions.public.js +73 -0
- package/build/internal/cjs/src/billing-v1-tax-region-tax-regions.public.js.map +1 -0
- package/build/internal/cjs/src/billing-v1-tax-region-tax-regions.types.d.ts +446 -0
- package/build/internal/cjs/src/billing-v1-tax-region-tax-regions.types.js +17 -0
- package/build/internal/cjs/src/billing-v1-tax-region-tax-regions.types.js.map +1 -0
- package/build/internal/cjs/src/billing-v1-tax-region-tax-regions.universal.d.ts +805 -0
- package/build/internal/cjs/src/billing-v1-tax-region-tax-regions.universal.js +301 -0
- package/build/internal/cjs/src/billing-v1-tax-region-tax-regions.universal.js.map +1 -0
- package/build/internal/es/index.d.ts +1 -0
- package/build/internal/es/index.js +2 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +1 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/build/internal/es/src/billing-v1-tax-region-tax-regions.context.d.ts +23 -0
- package/build/internal/es/src/billing-v1-tax-region-tax-regions.context.js +23 -0
- package/build/internal/es/src/billing-v1-tax-region-tax-regions.context.js.map +1 -0
- package/build/internal/es/src/billing-v1-tax-region-tax-regions.http.d.ts +44 -0
- package/build/internal/es/src/billing-v1-tax-region-tax-regions.http.js +219 -0
- package/build/internal/es/src/billing-v1-tax-region-tax-regions.http.js.map +1 -0
- package/build/internal/es/src/billing-v1-tax-region-tax-regions.meta.d.ts +23 -0
- package/build/internal/es/src/billing-v1-tax-region-tax-regions.meta.js +92 -0
- package/build/internal/es/src/billing-v1-tax-region-tax-regions.meta.js.map +1 -0
- package/build/internal/es/src/billing-v1-tax-region-tax-regions.public.d.ts +77 -0
- package/build/internal/es/src/billing-v1-tax-region-tax-regions.public.js +63 -0
- package/build/internal/es/src/billing-v1-tax-region-tax-regions.public.js.map +1 -0
- package/build/internal/es/src/billing-v1-tax-region-tax-regions.types.d.ts +446 -0
- package/build/internal/es/src/billing-v1-tax-region-tax-regions.types.js +14 -0
- package/build/internal/es/src/billing-v1-tax-region-tax-regions.types.js.map +1 -0
- package/build/internal/es/src/billing-v1-tax-region-tax-regions.universal.d.ts +805 -0
- package/build/internal/es/src/billing-v1-tax-region-tax-regions.universal.js +270 -0
- package/build/internal/es/src/billing-v1-tax-region-tax-regions.universal.js.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +52 -0
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { EventDefinition, HttpClient } from '@wix/sdk-types';
|
|
2
|
+
import { TaxRegion, TaxRegionCreatedEnvelope, TaxRegionDeletedEnvelope, TaxRegionNonNullableFields, TaxRegionUpdatedEnvelope, TaxRegionsQueryBuilder, UpdateTaxRegion } from './billing-v1-tax-region-tax-regions.universal.js';
|
|
3
|
+
export declare const __metadata: {
|
|
4
|
+
PACKAGE_NAME: string;
|
|
5
|
+
};
|
|
6
|
+
export declare function createTaxRegion(httpClient: HttpClient): CreateTaxRegionSignature;
|
|
7
|
+
interface CreateTaxRegionSignature {
|
|
8
|
+
/**
|
|
9
|
+
* Creates a tax region.
|
|
10
|
+
*
|
|
11
|
+
* Tax regions require a tax calculator `appId`. Call List Tax Calculators to retrieve a list of available calculators for a site.
|
|
12
|
+
*
|
|
13
|
+
* Wix uses tax regions to calculate tax.
|
|
14
|
+
* <!-- Subdivisions are supported for the following countries: `AU`, `BR`, `CA`, `FR`, `DE`, `IN`, `IT`, `MX`, `NL`, `ES`, `AE`, `GB`, `US` -->
|
|
15
|
+
* @param - Tax region to create.
|
|
16
|
+
* @returns Created tax region.
|
|
17
|
+
*/
|
|
18
|
+
(taxRegion: TaxRegion): Promise<TaxRegion & TaxRegionNonNullableFields>;
|
|
19
|
+
}
|
|
20
|
+
export declare function getTaxRegion(httpClient: HttpClient): GetTaxRegionSignature;
|
|
21
|
+
interface GetTaxRegionSignature {
|
|
22
|
+
/**
|
|
23
|
+
* Retrieves a tax region.
|
|
24
|
+
* @param - ID of the tax region to retrieve.
|
|
25
|
+
* @returns Retrieved tax region.
|
|
26
|
+
*/
|
|
27
|
+
(taxRegionId: string): Promise<TaxRegion & TaxRegionNonNullableFields>;
|
|
28
|
+
}
|
|
29
|
+
export declare function updateTaxRegion(httpClient: HttpClient): UpdateTaxRegionSignature;
|
|
30
|
+
interface UpdateTaxRegionSignature {
|
|
31
|
+
/**
|
|
32
|
+
* Updates a tax region.
|
|
33
|
+
*
|
|
34
|
+
* Each time the tax region is updated, `revision` increments by 1.
|
|
35
|
+
* The current `revision` must be passed when updating the tax region.
|
|
36
|
+
* This ensures you're working with the latest tax region and prevents
|
|
37
|
+
* unintended overwrites.
|
|
38
|
+
* @param - Tax region ID.
|
|
39
|
+
* @param - Tax region info.
|
|
40
|
+
* @returns Updated tax region.
|
|
41
|
+
*/
|
|
42
|
+
(_id: string | null, taxRegion: UpdateTaxRegion): Promise<TaxRegion & TaxRegionNonNullableFields>;
|
|
43
|
+
}
|
|
44
|
+
export declare function deleteTaxRegion(httpClient: HttpClient): DeleteTaxRegionSignature;
|
|
45
|
+
interface DeleteTaxRegionSignature {
|
|
46
|
+
/**
|
|
47
|
+
* Deletes a tax region.
|
|
48
|
+
*
|
|
49
|
+
* When a tax region is deleted, tax is not calculated and zero tax will be returned for addresses in this region.
|
|
50
|
+
* @param - ID of the tax region to delete.
|
|
51
|
+
*/
|
|
52
|
+
(taxRegionId: string): Promise<void>;
|
|
53
|
+
}
|
|
54
|
+
export declare function queryTaxRegions(httpClient: HttpClient): QueryTaxRegionsSignature;
|
|
55
|
+
interface QueryTaxRegionsSignature {
|
|
56
|
+
/**
|
|
57
|
+
* Creates a query to retrieve a list of tax regions.
|
|
58
|
+
*
|
|
59
|
+
* The `queryTaxRegions()` function builds a query to retrieve a list of tax regions and returns a `TaxRegionsQueryBuilder` object.
|
|
60
|
+
*
|
|
61
|
+
* The returned object contains the query definition, which is typically used to run the query using the `find()` function.
|
|
62
|
+
*
|
|
63
|
+
* 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.
|
|
64
|
+
*
|
|
65
|
+
* `queryTaxRegions()` runs with the following `TaxRegionsQueryBuilder` default that you can override:
|
|
66
|
+
* + `ascending("_id")`
|
|
67
|
+
*
|
|
68
|
+
* 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"`.
|
|
69
|
+
*
|
|
70
|
+
* 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`.
|
|
71
|
+
*/
|
|
72
|
+
(): TaxRegionsQueryBuilder;
|
|
73
|
+
}
|
|
74
|
+
export declare const onTaxRegionCreated: EventDefinition<TaxRegionCreatedEnvelope, "wix.billing.v1.tax_region_created">;
|
|
75
|
+
export declare const onTaxRegionDeleted: EventDefinition<TaxRegionDeletedEnvelope, "wix.billing.v1.tax_region_deleted">;
|
|
76
|
+
export declare const onTaxRegionUpdated: EventDefinition<TaxRegionUpdatedEnvelope, "wix.billing.v1.tax_region_updated">;
|
|
77
|
+
export { ActionEvent, ApplicationError, BaseEventMetadata, BulkActionMetadata, BulkCreateTaxRegionRequest, BulkCreateTaxRegionResponse, BulkCreateTaxRegionResult, BulkRestoreTaxRegionsRequest, BulkRestoreTaxRegionsResponse, BulkRestoreTaxRegionsResult, ConflictErrorDetails, CreateOrGetTaxRegionWithoutValidationRequest, CreateOrGetTaxRegionWithoutValidationResponse, CreateTaxRegionRequest, CreateTaxRegionResponse, CreateTaxRegionResponseNonNullableFields, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeleteTaxRegionRequest, DeleteTaxRegionResponse, DeleteTaxRegionWithoutDomainEventsRequest, DeleteTaxRegionWithoutDomainEventsResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, GetTaxRegionRequest, GetTaxRegionResponse, GetTaxRegionResponseNonNullableFields, IdentificationData, IdentificationDataIdOneOf, ItemMetadata, MessageEnvelope, QueryTaxRegionsRequest, QueryTaxRegionsResponse, QueryTaxRegionsResponseNonNullableFields, RestoreInfo, SortOrder, Sorting, TaxRegion, TaxRegionCreatedEnvelope, TaxRegionDeletedEnvelope, TaxRegionNonNullableFields, TaxRegionUpdatedEnvelope, TaxRegionsQueryBuilder, TaxRegionsQueryResult, UpdateTaxRegion, UpdateTaxRegionRequest, UpdateTaxRegionResponse, UpdateTaxRegionResponseNonNullableFields, WebhookIdentityType, } from './billing-v1-tax-region-tax-regions.universal.js';
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebhookIdentityType = exports.SortOrder = exports.onTaxRegionUpdated = exports.onTaxRegionDeleted = exports.onTaxRegionCreated = exports.queryTaxRegions = exports.deleteTaxRegion = exports.updateTaxRegion = exports.getTaxRegion = exports.createTaxRegion = exports.__metadata = void 0;
|
|
4
|
+
const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
5
|
+
const timestamp_1 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
6
|
+
const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
7
|
+
const sdk_types_1 = require("@wix/sdk-types");
|
|
8
|
+
const billing_v1_tax_region_tax_regions_universal_js_1 = require("./billing-v1-tax-region-tax-regions.universal.js");
|
|
9
|
+
exports.__metadata = { PACKAGE_NAME: '@wix/ecom' };
|
|
10
|
+
function createTaxRegion(httpClient) {
|
|
11
|
+
return (taxRegion) => (0, billing_v1_tax_region_tax_regions_universal_js_1.createTaxRegion)(taxRegion,
|
|
12
|
+
// @ts-ignore
|
|
13
|
+
{ httpClient });
|
|
14
|
+
}
|
|
15
|
+
exports.createTaxRegion = createTaxRegion;
|
|
16
|
+
function getTaxRegion(httpClient) {
|
|
17
|
+
return (taxRegionId) => (0, billing_v1_tax_region_tax_regions_universal_js_1.getTaxRegion)(taxRegionId,
|
|
18
|
+
// @ts-ignore
|
|
19
|
+
{ httpClient });
|
|
20
|
+
}
|
|
21
|
+
exports.getTaxRegion = getTaxRegion;
|
|
22
|
+
function updateTaxRegion(httpClient) {
|
|
23
|
+
return (_id, taxRegion) => (0, billing_v1_tax_region_tax_regions_universal_js_1.updateTaxRegion)(_id, taxRegion,
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
{ httpClient });
|
|
26
|
+
}
|
|
27
|
+
exports.updateTaxRegion = updateTaxRegion;
|
|
28
|
+
function deleteTaxRegion(httpClient) {
|
|
29
|
+
return (taxRegionId) => (0, billing_v1_tax_region_tax_regions_universal_js_1.deleteTaxRegion)(taxRegionId,
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
{ httpClient });
|
|
32
|
+
}
|
|
33
|
+
exports.deleteTaxRegion = deleteTaxRegion;
|
|
34
|
+
function queryTaxRegions(httpClient) {
|
|
35
|
+
return () => (0, billing_v1_tax_region_tax_regions_universal_js_1.queryTaxRegions)(
|
|
36
|
+
// @ts-ignore
|
|
37
|
+
{ httpClient });
|
|
38
|
+
}
|
|
39
|
+
exports.queryTaxRegions = queryTaxRegions;
|
|
40
|
+
exports.onTaxRegionCreated = (0, sdk_types_1.EventDefinition)('wix.billing.v1.tax_region_created', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
|
|
41
|
+
{
|
|
42
|
+
transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
|
|
43
|
+
paths: [
|
|
44
|
+
{ path: 'entity.createdDate' },
|
|
45
|
+
{ path: 'entity.updatedDate' },
|
|
46
|
+
{ path: 'metadata.eventTime' },
|
|
47
|
+
],
|
|
48
|
+
},
|
|
49
|
+
])))();
|
|
50
|
+
exports.onTaxRegionDeleted = (0, sdk_types_1.EventDefinition)('wix.billing.v1.tax_region_deleted', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
|
|
51
|
+
{
|
|
52
|
+
transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
|
|
53
|
+
paths: [
|
|
54
|
+
{ path: 'undefined.createdDate' },
|
|
55
|
+
{ path: 'undefined.updatedDate' },
|
|
56
|
+
{ path: 'metadata.eventTime' },
|
|
57
|
+
],
|
|
58
|
+
},
|
|
59
|
+
])))();
|
|
60
|
+
exports.onTaxRegionUpdated = (0, sdk_types_1.EventDefinition)('wix.billing.v1.tax_region_updated', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
|
|
61
|
+
{
|
|
62
|
+
transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
|
|
63
|
+
paths: [
|
|
64
|
+
{ path: 'entity.createdDate' },
|
|
65
|
+
{ path: 'entity.updatedDate' },
|
|
66
|
+
{ path: 'metadata.eventTime' },
|
|
67
|
+
],
|
|
68
|
+
},
|
|
69
|
+
])))();
|
|
70
|
+
var billing_v1_tax_region_tax_regions_universal_js_2 = require("./billing-v1-tax-region-tax-regions.universal.js");
|
|
71
|
+
Object.defineProperty(exports, "SortOrder", { enumerable: true, get: function () { return billing_v1_tax_region_tax_regions_universal_js_2.SortOrder; } });
|
|
72
|
+
Object.defineProperty(exports, "WebhookIdentityType", { enumerable: true, get: function () { return billing_v1_tax_region_tax_regions_universal_js_2.WebhookIdentityType; } });
|
|
73
|
+
//# sourceMappingURL=billing-v1-tax-region-tax-regions.public.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"billing-v1-tax-region-tax-regions.public.js","sourceRoot":"","sources":["../../../src/billing-v1-tax-region-tax-regions.public.ts"],"names":[],"mappings":";;;AAAA,oFAAkG;AAClG,0EAAkG;AAClG,sFAAkF;AAClF,8CAA6D;AAC7D,qHAa0D;AAE7C,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC;AAExD,SAAgB,eAAe,CAC7B,UAAsB;IAEtB,OAAO,CAAC,SAAoB,EAAE,EAAE,CAC9B,IAAA,gEAAwB,EACtB,SAAS;IACT,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,0CASC;AAgBD,SAAgB,YAAY,CAAC,UAAsB;IACjD,OAAO,CAAC,WAAmB,EAAE,EAAE,CAC7B,IAAA,6DAAqB,EACnB,WAAW;IACX,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,oCAOC;AAWD,SAAgB,eAAe,CAC7B,UAAsB;IAEtB,OAAO,CAAC,GAAkB,EAAE,SAA0B,EAAE,EAAE,CACxD,IAAA,gEAAwB,EACtB,GAAG,EACH,SAAS;IACT,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAVD,0CAUC;AAmBD,SAAgB,eAAe,CAC7B,UAAsB;IAEtB,OAAO,CAAC,WAAmB,EAAE,EAAE,CAC7B,IAAA,gEAAwB,EACtB,WAAW;IACX,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,0CASC;AAYD,SAAgB,eAAe,CAC7B,UAAsB;IAEtB,OAAO,GAAG,EAAE,CACV,IAAA,gEAAwB;IACtB,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,0CAQC;AAsBY,QAAA,kBAAkB,GAAG,IAAA,2BAAe,EAC/C,mCAAmC,EACnC,IAAI,EACJ,CAAC,KAA+B,EAAE,EAAE,CAClC,IAAA,gEAAuC,EACrC,IAAA,gCAAc,EAAC,KAAK,EAAE;IACpB;QACE,WAAW,EAAE,gDAAoC;QACjD,KAAK,EAAE;YACL,EAAE,IAAI,EAAE,oBAAoB,EAAE;YAC9B,EAAE,IAAI,EAAE,oBAAoB,EAAE;YAC9B,EAAE,IAAI,EAAE,oBAAoB,EAAE;SAC/B;KACF;CACF,CAAC,CACH,CACJ,EAA4B,CAAC;AACjB,QAAA,kBAAkB,GAAG,IAAA,2BAAe,EAC/C,mCAAmC,EACnC,IAAI,EACJ,CAAC,KAA+B,EAAE,EAAE,CAClC,IAAA,gEAAuC,EACrC,IAAA,gCAAc,EAAC,KAAK,EAAE;IACpB;QACE,WAAW,EAAE,gDAAoC;QACjD,KAAK,EAAE;YACL,EAAE,IAAI,EAAE,uBAAuB,EAAE;YACjC,EAAE,IAAI,EAAE,uBAAuB,EAAE;YACjC,EAAE,IAAI,EAAE,oBAAoB,EAAE;SAC/B;KACF;CACF,CAAC,CACH,CACJ,EAA4B,CAAC;AACjB,QAAA,kBAAkB,GAAG,IAAA,2BAAe,EAC/C,mCAAmC,EACnC,IAAI,EACJ,CAAC,KAA+B,EAAE,EAAE,CAClC,IAAA,gEAAuC,EACrC,IAAA,gCAAc,EAAC,KAAK,EAAE;IACpB;QACE,WAAW,EAAE,gDAAoC;QACjD,KAAK,EAAE;YACL,EAAE,IAAI,EAAE,oBAAoB,EAAE;YAC9B,EAAE,IAAI,EAAE,oBAAoB,EAAE;YAC9B,EAAE,IAAI,EAAE,oBAAoB,EAAE;SAC/B;KACF;CACF,CAAC,CACH,CACJ,EAA4B,CAAC;AAE9B,mHAyD0D;AAdxD,2IAAA,SAAS,OAAA;AAaT,qJAAA,mBAAmB,OAAA"}
|
|
@@ -0,0 +1,446 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A tax region uses a location to define a specific tax treatment.
|
|
3
|
+
* A location is defined by `country` and `subdivision`. The tax region also
|
|
4
|
+
* dictates whether or not tax is included in the displayed price.
|
|
5
|
+
*/
|
|
6
|
+
export interface TaxRegion {
|
|
7
|
+
/**
|
|
8
|
+
* Tax region ID.
|
|
9
|
+
* @format GUID
|
|
10
|
+
* @readonly
|
|
11
|
+
*/
|
|
12
|
+
id?: string | null;
|
|
13
|
+
/**
|
|
14
|
+
* 2-letter country code in [ISO-3166 alpha-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format.
|
|
15
|
+
* @format COUNTRY
|
|
16
|
+
* @minLength 2
|
|
17
|
+
*/
|
|
18
|
+
country?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Subdivision (such as state, prefecture, or province) in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-2) format.
|
|
21
|
+
* @maxLength 50
|
|
22
|
+
*/
|
|
23
|
+
subdivision?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The tax calculator ID to use to calculate tax for this region.
|
|
26
|
+
*
|
|
27
|
+
* Call List Tax Calculators to retrieve a list of available calculators for a site.
|
|
28
|
+
* @format GUID
|
|
29
|
+
*/
|
|
30
|
+
appId?: string;
|
|
31
|
+
/** Whether tax is included in the price. */
|
|
32
|
+
taxIncludedInPrice?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Revision number, which increments by 1 each time the tax region is updated.
|
|
35
|
+
* To prevent conflicting changes, the current revision must be passed when updating the tax region.
|
|
36
|
+
*
|
|
37
|
+
* Ignored when creating a tax region.
|
|
38
|
+
* @readonly
|
|
39
|
+
*/
|
|
40
|
+
revision?: string | null;
|
|
41
|
+
/**
|
|
42
|
+
* Date and time the tax region was created.
|
|
43
|
+
* @readonly
|
|
44
|
+
*/
|
|
45
|
+
createdDate?: Date | null;
|
|
46
|
+
/**
|
|
47
|
+
* Date and time the tax region was last updated.
|
|
48
|
+
* @readonly
|
|
49
|
+
*/
|
|
50
|
+
updatedDate?: Date | null;
|
|
51
|
+
}
|
|
52
|
+
export interface CreateTaxRegionRequest {
|
|
53
|
+
/** Tax region to create. */
|
|
54
|
+
taxRegion: TaxRegion;
|
|
55
|
+
}
|
|
56
|
+
export interface CreateTaxRegionResponse {
|
|
57
|
+
/** Created tax region. */
|
|
58
|
+
taxRegion?: TaxRegion;
|
|
59
|
+
}
|
|
60
|
+
export interface ConflictErrorDetails {
|
|
61
|
+
/**
|
|
62
|
+
* Conflict details.
|
|
63
|
+
* @maxLength 1000
|
|
64
|
+
*/
|
|
65
|
+
reasonForConflict?: string;
|
|
66
|
+
}
|
|
67
|
+
export interface BulkCreateTaxRegionRequest {
|
|
68
|
+
/**
|
|
69
|
+
* Tax regions to create.
|
|
70
|
+
* @minSize 1
|
|
71
|
+
* @maxSize 100
|
|
72
|
+
*/
|
|
73
|
+
taxRegions?: TaxRegion[];
|
|
74
|
+
/**
|
|
75
|
+
* Whether to return the full tax region objects in the response.
|
|
76
|
+
*
|
|
77
|
+
* Default: `true`
|
|
78
|
+
*/
|
|
79
|
+
returnEntity?: boolean;
|
|
80
|
+
}
|
|
81
|
+
export interface BulkCreateTaxRegionResponse {
|
|
82
|
+
/**
|
|
83
|
+
* Tax regions created by bulk action.
|
|
84
|
+
* @minSize 1
|
|
85
|
+
* @maxSize 100
|
|
86
|
+
*/
|
|
87
|
+
results?: BulkCreateTaxRegionResult[];
|
|
88
|
+
/** Bulk action metadata. */
|
|
89
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
90
|
+
}
|
|
91
|
+
export interface BulkCreateTaxRegionResult {
|
|
92
|
+
/** Item metadata. */
|
|
93
|
+
itemMetadata?: ItemMetadata;
|
|
94
|
+
/**
|
|
95
|
+
* Tax region.
|
|
96
|
+
*
|
|
97
|
+
* This field is returned if the operation was successful and
|
|
98
|
+
* `returnEntity` is set to `true`.
|
|
99
|
+
*/
|
|
100
|
+
item?: TaxRegion;
|
|
101
|
+
}
|
|
102
|
+
export interface ItemMetadata {
|
|
103
|
+
/** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
|
|
104
|
+
id?: string | null;
|
|
105
|
+
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
106
|
+
originalIndex?: number;
|
|
107
|
+
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
108
|
+
success?: boolean;
|
|
109
|
+
/** Details about the error in case of failure. */
|
|
110
|
+
error?: ApplicationError;
|
|
111
|
+
}
|
|
112
|
+
export interface ApplicationError {
|
|
113
|
+
/** Error code. */
|
|
114
|
+
code?: string;
|
|
115
|
+
/** Description of the error. */
|
|
116
|
+
description?: string;
|
|
117
|
+
/** Data related to the error. */
|
|
118
|
+
data?: Record<string, any> | null;
|
|
119
|
+
}
|
|
120
|
+
export interface BulkActionMetadata {
|
|
121
|
+
/** Number of items that were successfully processed. */
|
|
122
|
+
totalSuccesses?: number;
|
|
123
|
+
/** Number of items that couldn't be processed. */
|
|
124
|
+
totalFailures?: number;
|
|
125
|
+
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
126
|
+
undetailedFailures?: number;
|
|
127
|
+
}
|
|
128
|
+
export interface GetTaxRegionRequest {
|
|
129
|
+
/**
|
|
130
|
+
* ID of the tax region to retrieve.
|
|
131
|
+
* @format GUID
|
|
132
|
+
*/
|
|
133
|
+
taxRegionId: string;
|
|
134
|
+
}
|
|
135
|
+
export interface GetTaxRegionResponse {
|
|
136
|
+
/** Retrieved tax region. */
|
|
137
|
+
taxRegion?: TaxRegion;
|
|
138
|
+
}
|
|
139
|
+
export interface UpdateTaxRegionRequest {
|
|
140
|
+
/** Tax region info to update. */
|
|
141
|
+
taxRegion: TaxRegion;
|
|
142
|
+
}
|
|
143
|
+
export interface UpdateTaxRegionResponse {
|
|
144
|
+
/** Updated tax region. */
|
|
145
|
+
taxRegion?: TaxRegion;
|
|
146
|
+
}
|
|
147
|
+
export interface DeleteTaxRegionRequest {
|
|
148
|
+
/**
|
|
149
|
+
* ID of the tax region to delete.
|
|
150
|
+
* @format GUID
|
|
151
|
+
*/
|
|
152
|
+
taxRegionId: string;
|
|
153
|
+
}
|
|
154
|
+
export interface DeleteTaxRegionResponse {
|
|
155
|
+
}
|
|
156
|
+
export interface QueryTaxRegionsRequest {
|
|
157
|
+
/** Query options. */
|
|
158
|
+
query?: CursorQuery;
|
|
159
|
+
}
|
|
160
|
+
export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
161
|
+
/**
|
|
162
|
+
* Cursor paging options.
|
|
163
|
+
*
|
|
164
|
+
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
165
|
+
*/
|
|
166
|
+
cursorPaging?: CursorPaging;
|
|
167
|
+
/**
|
|
168
|
+
* Filter object.
|
|
169
|
+
*
|
|
170
|
+
* Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
|
|
171
|
+
*/
|
|
172
|
+
filter?: Record<string, any> | null;
|
|
173
|
+
/**
|
|
174
|
+
* Sort object.
|
|
175
|
+
*
|
|
176
|
+
* Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
|
|
177
|
+
* @maxSize 5
|
|
178
|
+
*/
|
|
179
|
+
sort?: Sorting[];
|
|
180
|
+
}
|
|
181
|
+
/** @oneof */
|
|
182
|
+
export interface CursorQueryPagingMethodOneOf {
|
|
183
|
+
/**
|
|
184
|
+
* Cursor paging options.
|
|
185
|
+
*
|
|
186
|
+
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
187
|
+
*/
|
|
188
|
+
cursorPaging?: CursorPaging;
|
|
189
|
+
}
|
|
190
|
+
export interface Sorting {
|
|
191
|
+
/**
|
|
192
|
+
* Name of the field to sort by.
|
|
193
|
+
* @maxLength 512
|
|
194
|
+
*/
|
|
195
|
+
fieldName?: string;
|
|
196
|
+
/** Sort order. */
|
|
197
|
+
order?: SortOrder;
|
|
198
|
+
}
|
|
199
|
+
export declare enum SortOrder {
|
|
200
|
+
ASC = "ASC",
|
|
201
|
+
DESC = "DESC"
|
|
202
|
+
}
|
|
203
|
+
export interface CursorPaging {
|
|
204
|
+
/**
|
|
205
|
+
* Maximum number of items to return in the results.
|
|
206
|
+
* @max 100
|
|
207
|
+
*/
|
|
208
|
+
limit?: number | null;
|
|
209
|
+
/**
|
|
210
|
+
* Pointer to the next or previous page in the list of results.
|
|
211
|
+
*
|
|
212
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
213
|
+
* Not relevant for the first request.
|
|
214
|
+
* @maxLength 16000
|
|
215
|
+
*/
|
|
216
|
+
cursor?: string | null;
|
|
217
|
+
}
|
|
218
|
+
export interface QueryTaxRegionsResponse {
|
|
219
|
+
/** Retrieved tax regions. */
|
|
220
|
+
taxRegions?: TaxRegion[];
|
|
221
|
+
/** Paging metadata. */
|
|
222
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
223
|
+
}
|
|
224
|
+
export interface CursorPagingMetadata {
|
|
225
|
+
/** Number of items returned in current page. */
|
|
226
|
+
count?: number | null;
|
|
227
|
+
/** Cursor strings that point to the next page, previous page, or both. */
|
|
228
|
+
cursors?: Cursors;
|
|
229
|
+
/**
|
|
230
|
+
* Whether there are more pages to retrieve following the current page.
|
|
231
|
+
*
|
|
232
|
+
* + `true`: Another page of results can be retrieved.
|
|
233
|
+
* + `false`: This is the last page.
|
|
234
|
+
*/
|
|
235
|
+
hasNext?: boolean | null;
|
|
236
|
+
}
|
|
237
|
+
export interface Cursors {
|
|
238
|
+
/**
|
|
239
|
+
* Cursor string pointing to the next page in the list of results.
|
|
240
|
+
* @maxLength 16000
|
|
241
|
+
*/
|
|
242
|
+
next?: string | null;
|
|
243
|
+
/**
|
|
244
|
+
* Cursor pointing to the previous page in the list of results.
|
|
245
|
+
* @maxLength 16000
|
|
246
|
+
*/
|
|
247
|
+
prev?: string | null;
|
|
248
|
+
}
|
|
249
|
+
export interface CreateOrGetTaxRegionWithoutValidationRequest {
|
|
250
|
+
/** Tax region to create. */
|
|
251
|
+
taxRegion?: TaxRegion;
|
|
252
|
+
}
|
|
253
|
+
export interface CreateOrGetTaxRegionWithoutValidationResponse {
|
|
254
|
+
/** Created tax region. */
|
|
255
|
+
taxRegion?: TaxRegion;
|
|
256
|
+
}
|
|
257
|
+
export interface DeleteTaxRegionWithoutDomainEventsRequest {
|
|
258
|
+
/**
|
|
259
|
+
* ID of the tax region to delete.
|
|
260
|
+
* @format GUID
|
|
261
|
+
*/
|
|
262
|
+
taxRegionId?: string;
|
|
263
|
+
}
|
|
264
|
+
export interface DeleteTaxRegionWithoutDomainEventsResponse {
|
|
265
|
+
}
|
|
266
|
+
export interface BulkRestoreTaxRegionsRequest {
|
|
267
|
+
/**
|
|
268
|
+
* Tax region IDs to restore.
|
|
269
|
+
* @format GUID
|
|
270
|
+
* @minSize 1
|
|
271
|
+
* @maxSize 200
|
|
272
|
+
*/
|
|
273
|
+
taxRegionIds?: string[];
|
|
274
|
+
}
|
|
275
|
+
export interface BulkRestoreTaxRegionsResponse {
|
|
276
|
+
/**
|
|
277
|
+
* Restored tax regions result
|
|
278
|
+
* @minSize 1
|
|
279
|
+
* @maxSize 200
|
|
280
|
+
*/
|
|
281
|
+
results?: BulkRestoreTaxRegionsResult[];
|
|
282
|
+
}
|
|
283
|
+
export interface BulkRestoreTaxRegionsResult {
|
|
284
|
+
itemMetadata?: ItemMetadata;
|
|
285
|
+
}
|
|
286
|
+
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
287
|
+
createdEvent?: EntityCreatedEvent;
|
|
288
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
289
|
+
deletedEvent?: EntityDeletedEvent;
|
|
290
|
+
actionEvent?: ActionEvent;
|
|
291
|
+
/**
|
|
292
|
+
* Unique event ID.
|
|
293
|
+
* Allows clients to ignore duplicate webhooks.
|
|
294
|
+
*/
|
|
295
|
+
id?: string;
|
|
296
|
+
/**
|
|
297
|
+
* Assumes actions are also always typed to an entity_type
|
|
298
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
299
|
+
*/
|
|
300
|
+
entityFqdn?: string;
|
|
301
|
+
/**
|
|
302
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
303
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
304
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
305
|
+
*/
|
|
306
|
+
slug?: string;
|
|
307
|
+
/** ID of the entity associated with the event. */
|
|
308
|
+
entityId?: string;
|
|
309
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
310
|
+
eventTime?: Date | null;
|
|
311
|
+
/**
|
|
312
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
313
|
+
* (for example, GDPR).
|
|
314
|
+
*/
|
|
315
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
316
|
+
/** If present, indicates the action that triggered the event. */
|
|
317
|
+
originatedFrom?: string | null;
|
|
318
|
+
/**
|
|
319
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
320
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
321
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
322
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
323
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
324
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
325
|
+
*/
|
|
326
|
+
entityEventSequence?: string | null;
|
|
327
|
+
}
|
|
328
|
+
/** @oneof */
|
|
329
|
+
export interface DomainEventBodyOneOf {
|
|
330
|
+
createdEvent?: EntityCreatedEvent;
|
|
331
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
332
|
+
deletedEvent?: EntityDeletedEvent;
|
|
333
|
+
actionEvent?: ActionEvent;
|
|
334
|
+
}
|
|
335
|
+
export interface EntityCreatedEvent {
|
|
336
|
+
entityAsJson?: string;
|
|
337
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
338
|
+
restoreInfo?: RestoreInfo;
|
|
339
|
+
}
|
|
340
|
+
export interface RestoreInfo {
|
|
341
|
+
deletedDate?: Date | null;
|
|
342
|
+
}
|
|
343
|
+
export interface EntityUpdatedEvent {
|
|
344
|
+
/**
|
|
345
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
346
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
347
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
348
|
+
*/
|
|
349
|
+
currentEntityAsJson?: string;
|
|
350
|
+
}
|
|
351
|
+
export interface EntityDeletedEvent {
|
|
352
|
+
/** Entity that was deleted */
|
|
353
|
+
deletedEntityAsJson?: string | null;
|
|
354
|
+
}
|
|
355
|
+
export interface ActionEvent {
|
|
356
|
+
bodyAsJson?: string;
|
|
357
|
+
}
|
|
358
|
+
export interface MessageEnvelope {
|
|
359
|
+
/**
|
|
360
|
+
* App instance ID.
|
|
361
|
+
* @format GUID
|
|
362
|
+
*/
|
|
363
|
+
instanceId?: string | null;
|
|
364
|
+
/**
|
|
365
|
+
* Event type.
|
|
366
|
+
* @maxLength 150
|
|
367
|
+
*/
|
|
368
|
+
eventType?: string;
|
|
369
|
+
/** The identification type and identity data. */
|
|
370
|
+
identity?: IdentificationData;
|
|
371
|
+
/** Stringify payload. */
|
|
372
|
+
data?: string;
|
|
373
|
+
}
|
|
374
|
+
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
375
|
+
/**
|
|
376
|
+
* ID of a site visitor that has not logged in to the site.
|
|
377
|
+
* @format GUID
|
|
378
|
+
*/
|
|
379
|
+
anonymousVisitorId?: string;
|
|
380
|
+
/**
|
|
381
|
+
* ID of a site visitor that has logged in to the site.
|
|
382
|
+
* @format GUID
|
|
383
|
+
*/
|
|
384
|
+
memberId?: string;
|
|
385
|
+
/**
|
|
386
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
387
|
+
* @format GUID
|
|
388
|
+
*/
|
|
389
|
+
wixUserId?: string;
|
|
390
|
+
/**
|
|
391
|
+
* ID of an app.
|
|
392
|
+
* @format GUID
|
|
393
|
+
*/
|
|
394
|
+
appId?: string;
|
|
395
|
+
/** @readonly */
|
|
396
|
+
identityType?: WebhookIdentityType;
|
|
397
|
+
}
|
|
398
|
+
/** @oneof */
|
|
399
|
+
export interface IdentificationDataIdOneOf {
|
|
400
|
+
/**
|
|
401
|
+
* ID of a site visitor that has not logged in to the site.
|
|
402
|
+
* @format GUID
|
|
403
|
+
*/
|
|
404
|
+
anonymousVisitorId?: string;
|
|
405
|
+
/**
|
|
406
|
+
* ID of a site visitor that has logged in to the site.
|
|
407
|
+
* @format GUID
|
|
408
|
+
*/
|
|
409
|
+
memberId?: string;
|
|
410
|
+
/**
|
|
411
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
412
|
+
* @format GUID
|
|
413
|
+
*/
|
|
414
|
+
wixUserId?: string;
|
|
415
|
+
/**
|
|
416
|
+
* ID of an app.
|
|
417
|
+
* @format GUID
|
|
418
|
+
*/
|
|
419
|
+
appId?: string;
|
|
420
|
+
}
|
|
421
|
+
export declare enum WebhookIdentityType {
|
|
422
|
+
UNKNOWN = "UNKNOWN",
|
|
423
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
424
|
+
MEMBER = "MEMBER",
|
|
425
|
+
WIX_USER = "WIX_USER",
|
|
426
|
+
APP = "APP"
|
|
427
|
+
}
|
|
428
|
+
interface TaxRegionNonNullableFields {
|
|
429
|
+
country: string;
|
|
430
|
+
subdivision: string;
|
|
431
|
+
appId: string;
|
|
432
|
+
taxIncludedInPrice: boolean;
|
|
433
|
+
}
|
|
434
|
+
export interface CreateTaxRegionResponseNonNullableFields {
|
|
435
|
+
taxRegion?: TaxRegionNonNullableFields;
|
|
436
|
+
}
|
|
437
|
+
export interface GetTaxRegionResponseNonNullableFields {
|
|
438
|
+
taxRegion?: TaxRegionNonNullableFields;
|
|
439
|
+
}
|
|
440
|
+
export interface UpdateTaxRegionResponseNonNullableFields {
|
|
441
|
+
taxRegion?: TaxRegionNonNullableFields;
|
|
442
|
+
}
|
|
443
|
+
export interface QueryTaxRegionsResponseNonNullableFields {
|
|
444
|
+
taxRegions: TaxRegionNonNullableFields[];
|
|
445
|
+
}
|
|
446
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebhookIdentityType = exports.SortOrder = void 0;
|
|
4
|
+
var SortOrder;
|
|
5
|
+
(function (SortOrder) {
|
|
6
|
+
SortOrder["ASC"] = "ASC";
|
|
7
|
+
SortOrder["DESC"] = "DESC";
|
|
8
|
+
})(SortOrder || (exports.SortOrder = SortOrder = {}));
|
|
9
|
+
var WebhookIdentityType;
|
|
10
|
+
(function (WebhookIdentityType) {
|
|
11
|
+
WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
|
|
12
|
+
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
13
|
+
WebhookIdentityType["MEMBER"] = "MEMBER";
|
|
14
|
+
WebhookIdentityType["WIX_USER"] = "WIX_USER";
|
|
15
|
+
WebhookIdentityType["APP"] = "APP";
|
|
16
|
+
})(WebhookIdentityType || (exports.WebhookIdentityType = WebhookIdentityType = {}));
|
|
17
|
+
//# sourceMappingURL=billing-v1-tax-region-tax-regions.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"billing-v1-tax-region-tax-regions.types.js","sourceRoot":"","sources":["../../../src/billing-v1-tax-region-tax-regions.types.ts"],"names":[],"mappings":";;;AAyNA,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AAgPD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}
|