@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 @@
|
|
|
1
|
+
export * from './src/billing-v1-tax-region-tax-regions.context.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./src/billing-v1-tax-region-tax-regions.context.js"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qFAAmE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/billing-v1-tax-region-tax-regions.universal.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./src/billing-v1-tax-region-tax-regions.universal.js"), exports);
|
|
18
|
+
//# sourceMappingURL=index.typings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../index.typings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uFAAqE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/billing-v1-tax-region-tax-regions.meta.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./src/billing-v1-tax-region-tax-regions.meta.js"), exports);
|
|
18
|
+
//# sourceMappingURL=meta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kFAAgE"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { createTaxRegion as publicCreateTaxRegion, getTaxRegion as publicGetTaxRegion, updateTaxRegion as publicUpdateTaxRegion, deleteTaxRegion as publicDeleteTaxRegion, queryTaxRegions as publicQueryTaxRegions } from './billing-v1-tax-region-tax-regions.public.js';
|
|
2
|
+
import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
|
|
3
|
+
import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
|
|
4
|
+
import { onTaxRegionCreated as publicOnTaxRegionCreated } from './billing-v1-tax-region-tax-regions.public.js';
|
|
5
|
+
import { onTaxRegionDeleted as publicOnTaxRegionDeleted } from './billing-v1-tax-region-tax-regions.public.js';
|
|
6
|
+
import { onTaxRegionUpdated as publicOnTaxRegionUpdated } from './billing-v1-tax-region-tax-regions.public.js';
|
|
7
|
+
export declare const createTaxRegion: MaybeContext<BuildRESTFunction<typeof publicCreateTaxRegion> & typeof publicCreateTaxRegion>;
|
|
8
|
+
export declare const getTaxRegion: MaybeContext<BuildRESTFunction<typeof publicGetTaxRegion> & typeof publicGetTaxRegion>;
|
|
9
|
+
export declare const updateTaxRegion: MaybeContext<BuildRESTFunction<typeof publicUpdateTaxRegion> & typeof publicUpdateTaxRegion>;
|
|
10
|
+
export declare const deleteTaxRegion: MaybeContext<BuildRESTFunction<typeof publicDeleteTaxRegion> & typeof publicDeleteTaxRegion>;
|
|
11
|
+
export declare const queryTaxRegions: MaybeContext<BuildRESTFunction<typeof publicQueryTaxRegions> & typeof publicQueryTaxRegions>;
|
|
12
|
+
/** */
|
|
13
|
+
export declare const onTaxRegionCreated: ReturnType<typeof createEventModule<typeof publicOnTaxRegionCreated>>;
|
|
14
|
+
/**
|
|
15
|
+
* Triggered when a tax region is deleted.
|
|
16
|
+
*/
|
|
17
|
+
export declare const onTaxRegionDeleted: ReturnType<typeof createEventModule<typeof publicOnTaxRegionDeleted>>;
|
|
18
|
+
/**
|
|
19
|
+
* Triggered when a tax region is updated.
|
|
20
|
+
*/
|
|
21
|
+
export declare const onTaxRegionUpdated: ReturnType<typeof createEventModule<typeof publicOnTaxRegionUpdated>>;
|
|
22
|
+
export { SortOrder, WebhookIdentityType, } from './billing-v1-tax-region-tax-regions.universal.js';
|
|
23
|
+
export { TaxRegion, CreateTaxRegionRequest, CreateTaxRegionResponse, ConflictErrorDetails, BulkCreateTaxRegionRequest, BulkCreateTaxRegionResponse, BulkCreateTaxRegionResult, ItemMetadata, ApplicationError, BulkActionMetadata, GetTaxRegionRequest, GetTaxRegionResponse, UpdateTaxRegionRequest, UpdateTaxRegionResponse, DeleteTaxRegionRequest, DeleteTaxRegionResponse, QueryTaxRegionsRequest, CursorQuery, CursorQueryPagingMethodOneOf, Sorting, CursorPaging, QueryTaxRegionsResponse, CursorPagingMetadata, Cursors, CreateOrGetTaxRegionWithoutValidationRequest, CreateOrGetTaxRegionWithoutValidationResponse, DeleteTaxRegionWithoutDomainEventsRequest, DeleteTaxRegionWithoutDomainEventsResponse, BulkRestoreTaxRegionsRequest, BulkRestoreTaxRegionsResponse, BulkRestoreTaxRegionsResult, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, TaxRegionNonNullableFields, CreateTaxRegionResponseNonNullableFields, GetTaxRegionResponseNonNullableFields, UpdateTaxRegionResponseNonNullableFields, QueryTaxRegionsResponseNonNullableFields, BaseEventMetadata, EventMetadata, TaxRegionCreatedEnvelope, TaxRegionDeletedEnvelope, TaxRegionUpdatedEnvelope, UpdateTaxRegion, TaxRegionsQueryResult, TaxRegionsQueryBuilder, } from './billing-v1-tax-region-tax-regions.universal.js';
|
|
@@ -0,0 +1,28 @@
|
|
|
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 = void 0;
|
|
4
|
+
const billing_v1_tax_region_tax_regions_public_js_1 = require("./billing-v1-tax-region-tax-regions.public.js");
|
|
5
|
+
const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
|
|
6
|
+
const event_definition_modules_1 = require("@wix/sdk-runtime/event-definition-modules");
|
|
7
|
+
const billing_v1_tax_region_tax_regions_public_js_2 = require("./billing-v1-tax-region-tax-regions.public.js");
|
|
8
|
+
const billing_v1_tax_region_tax_regions_public_js_3 = require("./billing-v1-tax-region-tax-regions.public.js");
|
|
9
|
+
const billing_v1_tax_region_tax_regions_public_js_4 = require("./billing-v1-tax-region-tax-regions.public.js");
|
|
10
|
+
exports.createTaxRegion = (0, rest_modules_1.createRESTModule)(billing_v1_tax_region_tax_regions_public_js_1.createTaxRegion);
|
|
11
|
+
exports.getTaxRegion = (0, rest_modules_1.createRESTModule)(billing_v1_tax_region_tax_regions_public_js_1.getTaxRegion);
|
|
12
|
+
exports.updateTaxRegion = (0, rest_modules_1.createRESTModule)(billing_v1_tax_region_tax_regions_public_js_1.updateTaxRegion);
|
|
13
|
+
exports.deleteTaxRegion = (0, rest_modules_1.createRESTModule)(billing_v1_tax_region_tax_regions_public_js_1.deleteTaxRegion);
|
|
14
|
+
exports.queryTaxRegions = (0, rest_modules_1.createRESTModule)(billing_v1_tax_region_tax_regions_public_js_1.queryTaxRegions);
|
|
15
|
+
/** */
|
|
16
|
+
exports.onTaxRegionCreated = (0, event_definition_modules_1.createEventModule)(billing_v1_tax_region_tax_regions_public_js_2.onTaxRegionCreated);
|
|
17
|
+
/**
|
|
18
|
+
* Triggered when a tax region is deleted.
|
|
19
|
+
*/
|
|
20
|
+
exports.onTaxRegionDeleted = (0, event_definition_modules_1.createEventModule)(billing_v1_tax_region_tax_regions_public_js_3.onTaxRegionDeleted);
|
|
21
|
+
/**
|
|
22
|
+
* Triggered when a tax region is updated.
|
|
23
|
+
*/
|
|
24
|
+
exports.onTaxRegionUpdated = (0, event_definition_modules_1.createEventModule)(billing_v1_tax_region_tax_regions_public_js_4.onTaxRegionUpdated);
|
|
25
|
+
var billing_v1_tax_region_tax_regions_universal_js_1 = require("./billing-v1-tax-region-tax-regions.universal.js");
|
|
26
|
+
Object.defineProperty(exports, "SortOrder", { enumerable: true, get: function () { return billing_v1_tax_region_tax_regions_universal_js_1.SortOrder; } });
|
|
27
|
+
Object.defineProperty(exports, "WebhookIdentityType", { enumerable: true, get: function () { return billing_v1_tax_region_tax_regions_universal_js_1.WebhookIdentityType; } });
|
|
28
|
+
//# sourceMappingURL=billing-v1-tax-region-tax-regions.context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"billing-v1-tax-region-tax-regions.context.js","sourceRoot":"","sources":["../../../src/billing-v1-tax-region-tax-regions.context.ts"],"names":[],"mappings":";;;AAAA,+GAMuD;AACvD,gEAAiE;AACjE,wFAA8E;AAE9E,+GAA+G;AAC/G,+GAA+G;AAC/G,+GAA+G;AAElG,QAAA,eAAe,GAEV,IAAA,+BAAgB,EAAC,6DAAqB,CAAC,CAAC;AAC7C,QAAA,YAAY,GAEP,IAAA,+BAAgB,EAAC,0DAAkB,CAAC,CAAC;AAC1C,QAAA,eAAe,GAEV,IAAA,+BAAgB,EAAC,6DAAqB,CAAC,CAAC;AAC7C,QAAA,eAAe,GAEV,IAAA,+BAAgB,EAAC,6DAAqB,CAAC,CAAC;AAC7C,QAAA,eAAe,GAEV,IAAA,+BAAgB,EAAC,6DAAqB,CAAC,CAAC;AAC1D,MAAM;AACO,QAAA,kBAAkB,GAE3B,IAAA,4CAAiB,EAAC,gEAAwB,CAAC,CAAC;AAChD;;GAEG;AACU,QAAA,kBAAkB,GAE3B,IAAA,4CAAiB,EAAC,gEAAwB,CAAC,CAAC;AAChD;;GAEG;AACU,QAAA,kBAAkB,GAE3B,IAAA,4CAAiB,EAAC,gEAAwB,CAAC,CAAC;AAEhD,mHAG0D;AAFxD,2IAAA,SAAS,OAAA;AACT,qJAAA,mBAAmB,OAAA"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a tax region.
|
|
4
|
+
*
|
|
5
|
+
* Tax regions require a tax calculator `appId`. Call List Tax Calculators to retrieve a list of available calculators for a site.
|
|
6
|
+
*
|
|
7
|
+
* Wix uses tax regions to calculate tax.
|
|
8
|
+
* <!-- Subdivisions are supported for the following countries: `AU`, `BR`, `CA`, `FR`, `DE`, `IN`, `IT`, `MX`, `NL`, `ES`, `AE`, `GB`, `US` -->
|
|
9
|
+
*/
|
|
10
|
+
export declare function createTaxRegion(payload: object): RequestOptionsFactory<any>;
|
|
11
|
+
/** Retrieves a tax region. */
|
|
12
|
+
export declare function getTaxRegion(payload: object): RequestOptionsFactory<any>;
|
|
13
|
+
/**
|
|
14
|
+
* Updates a tax region.
|
|
15
|
+
*
|
|
16
|
+
* Each time the tax region is updated, `revision` increments by 1.
|
|
17
|
+
* The current `revision` must be passed when updating the tax region.
|
|
18
|
+
* This ensures you're working with the latest tax region and prevents
|
|
19
|
+
* unintended overwrites.
|
|
20
|
+
*/
|
|
21
|
+
export declare function updateTaxRegion(payload: object): RequestOptionsFactory<any>;
|
|
22
|
+
/**
|
|
23
|
+
* Deletes a tax region.
|
|
24
|
+
*
|
|
25
|
+
* When a tax region is deleted, tax is not calculated and zero tax will be returned for addresses in this region.
|
|
26
|
+
*/
|
|
27
|
+
export declare function deleteTaxRegion(payload: object): RequestOptionsFactory<any>;
|
|
28
|
+
/**
|
|
29
|
+
* Creates a query to retrieve a list of tax regions.
|
|
30
|
+
*
|
|
31
|
+
* The `queryTaxRegions()` function builds a query to retrieve a list of tax regions and returns a `TaxRegionsQueryBuilder` object.
|
|
32
|
+
*
|
|
33
|
+
* The returned object contains the query definition, which is typically used to run the query using the `find()` function.
|
|
34
|
+
*
|
|
35
|
+
* 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.
|
|
36
|
+
*
|
|
37
|
+
* `queryTaxRegions()` runs with the following `TaxRegionsQueryBuilder` default that you can override:
|
|
38
|
+
* + `ascending("_id")`
|
|
39
|
+
*
|
|
40
|
+
* 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"`.
|
|
41
|
+
*
|
|
42
|
+
* 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`.
|
|
43
|
+
*/
|
|
44
|
+
export declare function queryTaxRegions(payload: object): RequestOptionsFactory<any>;
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.queryTaxRegions = exports.deleteTaxRegion = exports.updateTaxRegion = exports.getTaxRegion = exports.createTaxRegion = void 0;
|
|
4
|
+
const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
|
|
5
|
+
const timestamp_1 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
6
|
+
const timestamp_2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
7
|
+
const field_mask_1 = require("@wix/sdk-runtime/transformations/field-mask");
|
|
8
|
+
const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
9
|
+
const rest_modules_2 = require("@wix/sdk-runtime/rest-modules");
|
|
10
|
+
function resolveWixBillingV1TaxRegionsServiceUrl(opts) {
|
|
11
|
+
const domainToMappings = {
|
|
12
|
+
'www.wixapis.com': [
|
|
13
|
+
{
|
|
14
|
+
srcPath: '/billing/v1/tax-regions',
|
|
15
|
+
destPath: '/v1/tax-regions',
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
srcPath: '/billing/v1/bulk/tax-regions',
|
|
19
|
+
destPath: '/v1/bulk/tax-regions',
|
|
20
|
+
},
|
|
21
|
+
],
|
|
22
|
+
'manage._base_domain_': [
|
|
23
|
+
{
|
|
24
|
+
srcPath: '/billing/v1/tax-regions',
|
|
25
|
+
destPath: '/v1/tax-regions',
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
srcPath: '/billing/v1/bulk/tax-regions',
|
|
29
|
+
destPath: '/v1/bulk/tax-regions',
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
};
|
|
33
|
+
return (0, rest_modules_2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
34
|
+
}
|
|
35
|
+
const PACKAGE_NAME = '@wix/auto_sdk_ecom_tax-regions';
|
|
36
|
+
/**
|
|
37
|
+
* Creates a tax region.
|
|
38
|
+
*
|
|
39
|
+
* Tax regions require a tax calculator `appId`. Call List Tax Calculators to retrieve a list of available calculators for a site.
|
|
40
|
+
*
|
|
41
|
+
* Wix uses tax regions to calculate tax.
|
|
42
|
+
* <!-- Subdivisions are supported for the following countries: `AU`, `BR`, `CA`, `FR`, `DE`, `IN`, `IT`, `MX`, `NL`, `ES`, `AE`, `GB`, `US` -->
|
|
43
|
+
*/
|
|
44
|
+
function createTaxRegion(payload) {
|
|
45
|
+
function __createTaxRegion({ host }) {
|
|
46
|
+
const serializedData = (0, transform_paths_1.transformPaths)(payload, [
|
|
47
|
+
{
|
|
48
|
+
transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
|
|
49
|
+
paths: [
|
|
50
|
+
{ path: 'taxRegion.createdDate' },
|
|
51
|
+
{ path: 'taxRegion.updatedDate' },
|
|
52
|
+
],
|
|
53
|
+
},
|
|
54
|
+
]);
|
|
55
|
+
const metadata = {
|
|
56
|
+
entityFqdn: 'wix.billing.v1.tax_region',
|
|
57
|
+
method: 'POST',
|
|
58
|
+
methodFqn: 'wix.billing.v1.TaxRegionsService.CreateTaxRegion',
|
|
59
|
+
packageName: PACKAGE_NAME,
|
|
60
|
+
url: resolveWixBillingV1TaxRegionsServiceUrl({
|
|
61
|
+
protoPath: '/v1/tax-regions',
|
|
62
|
+
data: serializedData,
|
|
63
|
+
host,
|
|
64
|
+
}),
|
|
65
|
+
data: serializedData,
|
|
66
|
+
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
67
|
+
{
|
|
68
|
+
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
69
|
+
paths: [
|
|
70
|
+
{ path: 'taxRegion.createdDate' },
|
|
71
|
+
{ path: 'taxRegion.updatedDate' },
|
|
72
|
+
],
|
|
73
|
+
},
|
|
74
|
+
]),
|
|
75
|
+
};
|
|
76
|
+
return metadata;
|
|
77
|
+
}
|
|
78
|
+
return __createTaxRegion;
|
|
79
|
+
}
|
|
80
|
+
exports.createTaxRegion = createTaxRegion;
|
|
81
|
+
/** Retrieves a tax region. */
|
|
82
|
+
function getTaxRegion(payload) {
|
|
83
|
+
function __getTaxRegion({ host }) {
|
|
84
|
+
const metadata = {
|
|
85
|
+
entityFqdn: 'wix.billing.v1.tax_region',
|
|
86
|
+
method: 'GET',
|
|
87
|
+
methodFqn: 'wix.billing.v1.TaxRegionsService.GetTaxRegion',
|
|
88
|
+
packageName: PACKAGE_NAME,
|
|
89
|
+
url: resolveWixBillingV1TaxRegionsServiceUrl({
|
|
90
|
+
protoPath: '/v1/tax-regions/{taxRegionId}',
|
|
91
|
+
data: payload,
|
|
92
|
+
host,
|
|
93
|
+
}),
|
|
94
|
+
params: (0, rest_modules_1.toURLSearchParams)(payload),
|
|
95
|
+
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
96
|
+
{
|
|
97
|
+
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
98
|
+
paths: [
|
|
99
|
+
{ path: 'taxRegion.createdDate' },
|
|
100
|
+
{ path: 'taxRegion.updatedDate' },
|
|
101
|
+
],
|
|
102
|
+
},
|
|
103
|
+
]),
|
|
104
|
+
};
|
|
105
|
+
return metadata;
|
|
106
|
+
}
|
|
107
|
+
return __getTaxRegion;
|
|
108
|
+
}
|
|
109
|
+
exports.getTaxRegion = getTaxRegion;
|
|
110
|
+
/**
|
|
111
|
+
* Updates a tax region.
|
|
112
|
+
*
|
|
113
|
+
* Each time the tax region is updated, `revision` increments by 1.
|
|
114
|
+
* The current `revision` must be passed when updating the tax region.
|
|
115
|
+
* This ensures you're working with the latest tax region and prevents
|
|
116
|
+
* unintended overwrites.
|
|
117
|
+
*/
|
|
118
|
+
function updateTaxRegion(payload) {
|
|
119
|
+
function __updateTaxRegion({ host }) {
|
|
120
|
+
const serializedData = (0, transform_paths_1.transformPaths)(payload, [
|
|
121
|
+
{
|
|
122
|
+
transformFn: field_mask_1.transformSDKFieldMaskToRESTFieldMask,
|
|
123
|
+
paths: [{ path: 'fieldMask' }],
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
|
|
127
|
+
paths: [
|
|
128
|
+
{ path: 'taxRegion.createdDate' },
|
|
129
|
+
{ path: 'taxRegion.updatedDate' },
|
|
130
|
+
],
|
|
131
|
+
},
|
|
132
|
+
]);
|
|
133
|
+
const metadata = {
|
|
134
|
+
entityFqdn: 'wix.billing.v1.tax_region',
|
|
135
|
+
method: 'PATCH',
|
|
136
|
+
methodFqn: 'wix.billing.v1.TaxRegionsService.UpdateTaxRegion',
|
|
137
|
+
packageName: PACKAGE_NAME,
|
|
138
|
+
url: resolveWixBillingV1TaxRegionsServiceUrl({
|
|
139
|
+
protoPath: '/v1/tax-regions/{taxRegion.id}',
|
|
140
|
+
data: serializedData,
|
|
141
|
+
host,
|
|
142
|
+
}),
|
|
143
|
+
data: serializedData,
|
|
144
|
+
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
145
|
+
{
|
|
146
|
+
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
147
|
+
paths: [
|
|
148
|
+
{ path: 'taxRegion.createdDate' },
|
|
149
|
+
{ path: 'taxRegion.updatedDate' },
|
|
150
|
+
],
|
|
151
|
+
},
|
|
152
|
+
]),
|
|
153
|
+
};
|
|
154
|
+
return metadata;
|
|
155
|
+
}
|
|
156
|
+
return __updateTaxRegion;
|
|
157
|
+
}
|
|
158
|
+
exports.updateTaxRegion = updateTaxRegion;
|
|
159
|
+
/**
|
|
160
|
+
* Deletes a tax region.
|
|
161
|
+
*
|
|
162
|
+
* When a tax region is deleted, tax is not calculated and zero tax will be returned for addresses in this region.
|
|
163
|
+
*/
|
|
164
|
+
function deleteTaxRegion(payload) {
|
|
165
|
+
function __deleteTaxRegion({ host }) {
|
|
166
|
+
const metadata = {
|
|
167
|
+
entityFqdn: 'wix.billing.v1.tax_region',
|
|
168
|
+
method: 'DELETE',
|
|
169
|
+
methodFqn: 'wix.billing.v1.TaxRegionsService.DeleteTaxRegion',
|
|
170
|
+
packageName: PACKAGE_NAME,
|
|
171
|
+
url: resolveWixBillingV1TaxRegionsServiceUrl({
|
|
172
|
+
protoPath: '/v1/tax-regions/{taxRegionId}',
|
|
173
|
+
data: payload,
|
|
174
|
+
host,
|
|
175
|
+
}),
|
|
176
|
+
params: (0, rest_modules_1.toURLSearchParams)(payload),
|
|
177
|
+
};
|
|
178
|
+
return metadata;
|
|
179
|
+
}
|
|
180
|
+
return __deleteTaxRegion;
|
|
181
|
+
}
|
|
182
|
+
exports.deleteTaxRegion = deleteTaxRegion;
|
|
183
|
+
/**
|
|
184
|
+
* Creates a query to retrieve a list of tax regions.
|
|
185
|
+
*
|
|
186
|
+
* The `queryTaxRegions()` function builds a query to retrieve a list of tax regions and returns a `TaxRegionsQueryBuilder` object.
|
|
187
|
+
*
|
|
188
|
+
* The returned object contains the query definition, which is typically used to run the query using the `find()` function.
|
|
189
|
+
*
|
|
190
|
+
* 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.
|
|
191
|
+
*
|
|
192
|
+
* `queryTaxRegions()` runs with the following `TaxRegionsQueryBuilder` default that you can override:
|
|
193
|
+
* + `ascending("_id")`
|
|
194
|
+
*
|
|
195
|
+
* 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"`.
|
|
196
|
+
*
|
|
197
|
+
* 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`.
|
|
198
|
+
*/
|
|
199
|
+
function queryTaxRegions(payload) {
|
|
200
|
+
function __queryTaxRegions({ host }) {
|
|
201
|
+
const metadata = {
|
|
202
|
+
entityFqdn: 'wix.billing.v1.tax_region',
|
|
203
|
+
method: 'POST',
|
|
204
|
+
methodFqn: 'wix.billing.v1.TaxRegionsService.QueryTaxRegions',
|
|
205
|
+
packageName: PACKAGE_NAME,
|
|
206
|
+
url: resolveWixBillingV1TaxRegionsServiceUrl({
|
|
207
|
+
protoPath: '/v1/tax-regions/query',
|
|
208
|
+
data: payload,
|
|
209
|
+
host,
|
|
210
|
+
}),
|
|
211
|
+
data: payload,
|
|
212
|
+
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
213
|
+
{
|
|
214
|
+
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
215
|
+
paths: [
|
|
216
|
+
{ path: 'taxRegions.createdDate' },
|
|
217
|
+
{ path: 'taxRegions.updatedDate' },
|
|
218
|
+
],
|
|
219
|
+
},
|
|
220
|
+
]),
|
|
221
|
+
};
|
|
222
|
+
return metadata;
|
|
223
|
+
}
|
|
224
|
+
return __queryTaxRegions;
|
|
225
|
+
}
|
|
226
|
+
exports.queryTaxRegions = queryTaxRegions;
|
|
227
|
+
//# sourceMappingURL=billing-v1-tax-region-tax-regions.http.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"billing-v1-tax-region-tax-regions.http.js","sourceRoot":"","sources":["../../../src/billing-v1-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,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,iBAAiB,CAAC;AAC3B,CAAC;AAnBD,0CAmBC;AAED;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,eAAe,CAAC,OAAe;IAC7C,SAAS,iBAAiB,CAAC,EAAE,IAAI,EAAO;QACtC,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,2BAA2B;YACvC,MAAM,EAAE,MAAa;YACrB,SAAS,EAAE,kDAAkD;YAC7D,WAAW,EAAE,YAAY;YACzB,GAAG,EAAE,uCAAuC,CAAC;gBAC3C,SAAS,EAAE,uBAAuB;gBAClC,IAAI,EAAE,OAAO;gBACb,IAAI;aACL,CAAC;YACF,IAAI,EAAE,OAAO;YACb,iBAAiB,EAAE,CAAC,OAAY,EAAE,EAAE,CAClC,IAAA,gCAAc,EAAC,OAAO,EAAE;gBACtB;oBACE,WAAW,EAAE,gDAAoC;oBACjD,KAAK,EAAE;wBACL,EAAE,IAAI,EAAE,wBAAwB,EAAE;wBAClC,EAAE,IAAI,EAAE,wBAAwB,EAAE;qBACnC;iBACF;aACF,CAAC;SACL,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,iBAAiB,CAAC;AAC3B,CAAC;AA7BD,0CA6BC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as ambassadorWixBillingV1TaxRegionTypes from './billing-v1-tax-region-tax-regions.types.js';
|
|
2
|
+
import * as ambassadorWixBillingV1TaxRegionUniversalTypes from './billing-v1-tax-region-tax-regions.universal.js';
|
|
3
|
+
export type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
4
|
+
getUrl: (context: any) => string;
|
|
5
|
+
httpMethod: K;
|
|
6
|
+
path: string;
|
|
7
|
+
pathParams: M;
|
|
8
|
+
__requestType: T;
|
|
9
|
+
__originalRequestType: S;
|
|
10
|
+
__responseType: Q;
|
|
11
|
+
__originalResponseType: R;
|
|
12
|
+
};
|
|
13
|
+
export declare function createTaxRegion(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixBillingV1TaxRegionUniversalTypes.CreateTaxRegionRequest, ambassadorWixBillingV1TaxRegionTypes.CreateTaxRegionRequest, ambassadorWixBillingV1TaxRegionUniversalTypes.CreateTaxRegionResponse & ambassadorWixBillingV1TaxRegionUniversalTypes.CreateTaxRegionResponseNonNullableFields, ambassadorWixBillingV1TaxRegionTypes.CreateTaxRegionResponse & ambassadorWixBillingV1TaxRegionTypes.CreateTaxRegionResponseNonNullableFields>;
|
|
14
|
+
export declare function getTaxRegion(): __PublicMethodMetaInfo<'GET', {
|
|
15
|
+
taxRegionId: string;
|
|
16
|
+
}, ambassadorWixBillingV1TaxRegionUniversalTypes.GetTaxRegionRequest, ambassadorWixBillingV1TaxRegionTypes.GetTaxRegionRequest, ambassadorWixBillingV1TaxRegionUniversalTypes.GetTaxRegionResponse & ambassadorWixBillingV1TaxRegionUniversalTypes.GetTaxRegionResponseNonNullableFields, ambassadorWixBillingV1TaxRegionTypes.GetTaxRegionResponse & ambassadorWixBillingV1TaxRegionTypes.GetTaxRegionResponseNonNullableFields>;
|
|
17
|
+
export declare function updateTaxRegion(): __PublicMethodMetaInfo<'PATCH', {
|
|
18
|
+
taxRegionId: string;
|
|
19
|
+
}, ambassadorWixBillingV1TaxRegionUniversalTypes.UpdateTaxRegionRequest, ambassadorWixBillingV1TaxRegionTypes.UpdateTaxRegionRequest, ambassadorWixBillingV1TaxRegionUniversalTypes.UpdateTaxRegionResponse & ambassadorWixBillingV1TaxRegionUniversalTypes.UpdateTaxRegionResponseNonNullableFields, ambassadorWixBillingV1TaxRegionTypes.UpdateTaxRegionResponse & ambassadorWixBillingV1TaxRegionTypes.UpdateTaxRegionResponseNonNullableFields>;
|
|
20
|
+
export declare function deleteTaxRegion(): __PublicMethodMetaInfo<'DELETE', {
|
|
21
|
+
taxRegionId: string;
|
|
22
|
+
}, ambassadorWixBillingV1TaxRegionUniversalTypes.DeleteTaxRegionRequest, ambassadorWixBillingV1TaxRegionTypes.DeleteTaxRegionRequest, ambassadorWixBillingV1TaxRegionUniversalTypes.DeleteTaxRegionResponse, ambassadorWixBillingV1TaxRegionTypes.DeleteTaxRegionResponse>;
|
|
23
|
+
export declare function queryTaxRegions(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixBillingV1TaxRegionUniversalTypes.QueryTaxRegionsRequest, ambassadorWixBillingV1TaxRegionTypes.QueryTaxRegionsRequest, ambassadorWixBillingV1TaxRegionUniversalTypes.QueryTaxRegionsResponse & ambassadorWixBillingV1TaxRegionUniversalTypes.QueryTaxRegionsResponseNonNullableFields, ambassadorWixBillingV1TaxRegionTypes.QueryTaxRegionsResponse & ambassadorWixBillingV1TaxRegionTypes.QueryTaxRegionsResponseNonNullableFields>;
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.queryTaxRegions = exports.deleteTaxRegion = exports.updateTaxRegion = exports.getTaxRegion = exports.createTaxRegion = void 0;
|
|
27
|
+
const ambassadorWixBillingV1TaxRegion = __importStar(require("./billing-v1-tax-region-tax-regions.http.js"));
|
|
28
|
+
function createTaxRegion() {
|
|
29
|
+
const payload = {};
|
|
30
|
+
const getRequestOptions = ambassadorWixBillingV1TaxRegion.createTaxRegion(payload);
|
|
31
|
+
const getUrl = (context) => {
|
|
32
|
+
const { url } = getRequestOptions(context);
|
|
33
|
+
return url;
|
|
34
|
+
};
|
|
35
|
+
return {
|
|
36
|
+
getUrl,
|
|
37
|
+
httpMethod: 'POST',
|
|
38
|
+
path: '/v1/tax-regions',
|
|
39
|
+
pathParams: {},
|
|
40
|
+
__requestType: null,
|
|
41
|
+
__originalRequestType: null,
|
|
42
|
+
__responseType: null,
|
|
43
|
+
__originalResponseType: null,
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
exports.createTaxRegion = createTaxRegion;
|
|
47
|
+
function getTaxRegion() {
|
|
48
|
+
const payload = { taxRegionId: ':taxRegionId' };
|
|
49
|
+
const getRequestOptions = ambassadorWixBillingV1TaxRegion.getTaxRegion(payload);
|
|
50
|
+
const getUrl = (context) => {
|
|
51
|
+
const { url } = getRequestOptions(context);
|
|
52
|
+
return url;
|
|
53
|
+
};
|
|
54
|
+
return {
|
|
55
|
+
getUrl,
|
|
56
|
+
httpMethod: 'GET',
|
|
57
|
+
path: '/v1/tax-regions/{taxRegionId}',
|
|
58
|
+
pathParams: { taxRegionId: 'taxRegionId' },
|
|
59
|
+
__requestType: null,
|
|
60
|
+
__originalRequestType: null,
|
|
61
|
+
__responseType: null,
|
|
62
|
+
__originalResponseType: null,
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
exports.getTaxRegion = getTaxRegion;
|
|
66
|
+
function updateTaxRegion() {
|
|
67
|
+
const payload = { taxRegion: { id: ':taxRegionId' } };
|
|
68
|
+
const getRequestOptions = ambassadorWixBillingV1TaxRegion.updateTaxRegion(payload);
|
|
69
|
+
const getUrl = (context) => {
|
|
70
|
+
const { url } = getRequestOptions(context);
|
|
71
|
+
return url;
|
|
72
|
+
};
|
|
73
|
+
return {
|
|
74
|
+
getUrl,
|
|
75
|
+
httpMethod: 'PATCH',
|
|
76
|
+
path: '/v1/tax-regions/{taxRegion.id}',
|
|
77
|
+
pathParams: { taxRegionId: 'taxRegionId' },
|
|
78
|
+
__requestType: null,
|
|
79
|
+
__originalRequestType: null,
|
|
80
|
+
__responseType: null,
|
|
81
|
+
__originalResponseType: null,
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
exports.updateTaxRegion = updateTaxRegion;
|
|
85
|
+
function deleteTaxRegion() {
|
|
86
|
+
const payload = { taxRegionId: ':taxRegionId' };
|
|
87
|
+
const getRequestOptions = ambassadorWixBillingV1TaxRegion.deleteTaxRegion(payload);
|
|
88
|
+
const getUrl = (context) => {
|
|
89
|
+
const { url } = getRequestOptions(context);
|
|
90
|
+
return url;
|
|
91
|
+
};
|
|
92
|
+
return {
|
|
93
|
+
getUrl,
|
|
94
|
+
httpMethod: 'DELETE',
|
|
95
|
+
path: '/v1/tax-regions/{taxRegionId}',
|
|
96
|
+
pathParams: { taxRegionId: 'taxRegionId' },
|
|
97
|
+
__requestType: null,
|
|
98
|
+
__originalRequestType: null,
|
|
99
|
+
__responseType: null,
|
|
100
|
+
__originalResponseType: null,
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
exports.deleteTaxRegion = deleteTaxRegion;
|
|
104
|
+
function queryTaxRegions() {
|
|
105
|
+
const payload = {};
|
|
106
|
+
const getRequestOptions = ambassadorWixBillingV1TaxRegion.queryTaxRegions(payload);
|
|
107
|
+
const getUrl = (context) => {
|
|
108
|
+
const { url } = getRequestOptions(context);
|
|
109
|
+
return url;
|
|
110
|
+
};
|
|
111
|
+
return {
|
|
112
|
+
getUrl,
|
|
113
|
+
httpMethod: 'POST',
|
|
114
|
+
path: '/v1/tax-regions/query',
|
|
115
|
+
pathParams: {},
|
|
116
|
+
__requestType: null,
|
|
117
|
+
__originalRequestType: null,
|
|
118
|
+
__responseType: null,
|
|
119
|
+
__originalResponseType: null,
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
exports.queryTaxRegions = queryTaxRegions;
|
|
123
|
+
//# sourceMappingURL=billing-v1-tax-region-tax-regions.meta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"billing-v1-tax-region-tax-regions.meta.js","sourceRoot":"","sources":["../../../src/billing-v1-tax-region-tax-regions.meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6GAA+F;AAsB/F,SAAgB,eAAe;IAU7B,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,+BAA+B,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;IAE3D,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,iBAAiB;QACvB,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AA9BD,0CA8BC;AAED,SAAgB,YAAY;IAU1B,MAAM,OAAO,GAAG,EAAE,WAAW,EAAE,cAAc,EAAS,CAAC;IAEvD,MAAM,iBAAiB,GACr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