@wix/auto_sdk_ecom_tax-regions 1.0.13 → 1.0.15
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/{internal/cjs/src/billing-v1-tax-region-tax-regions.universal.d.ts → billing-v1-tax-region-tax-regions.universal-BXT3KsX3.d.mts} +55 -247
- package/build/{cjs/src/billing-v1-tax-region-tax-regions.universal.d.ts → billing-v1-tax-region-tax-regions.universal-BXT3KsX3.d.ts} +55 -247
- package/build/index.d.mts +93 -0
- package/build/index.d.ts +93 -0
- package/build/index.js +496 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +463 -0
- package/build/index.mjs.map +1 -0
- package/build/{es/src/billing-v1-tax-region-tax-regions.universal.d.ts → internal/billing-v1-tax-region-tax-regions.universal-BXT3KsX3.d.mts} +55 -247
- package/build/internal/{es/src/billing-v1-tax-region-tax-regions.universal.d.ts → billing-v1-tax-region-tax-regions.universal-BXT3KsX3.d.ts} +55 -247
- package/build/internal/index.d.mts +93 -0
- package/build/internal/index.d.ts +93 -0
- package/build/internal/index.js +496 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +463 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +208 -0
- package/build/internal/meta.d.ts +208 -0
- package/build/internal/meta.js +312 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +281 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/meta.d.mts +208 -0
- package/build/meta.d.ts +208 -0
- package/build/meta.js +312 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +281 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +12 -11
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/billing-v1-tax-region-tax-regions.context.d.ts +0 -23
- package/build/cjs/src/billing-v1-tax-region-tax-regions.context.js +0 -28
- package/build/cjs/src/billing-v1-tax-region-tax-regions.context.js.map +0 -1
- package/build/cjs/src/billing-v1-tax-region-tax-regions.http.d.ts +0 -44
- package/build/cjs/src/billing-v1-tax-region-tax-regions.http.js +0 -227
- package/build/cjs/src/billing-v1-tax-region-tax-regions.http.js.map +0 -1
- package/build/cjs/src/billing-v1-tax-region-tax-regions.meta.d.ts +0 -23
- package/build/cjs/src/billing-v1-tax-region-tax-regions.meta.js +0 -123
- package/build/cjs/src/billing-v1-tax-region-tax-regions.meta.js.map +0 -1
- package/build/cjs/src/billing-v1-tax-region-tax-regions.public.d.ts +0 -77
- package/build/cjs/src/billing-v1-tax-region-tax-regions.public.js +0 -73
- package/build/cjs/src/billing-v1-tax-region-tax-regions.public.js.map +0 -1
- package/build/cjs/src/billing-v1-tax-region-tax-regions.types.d.ts +0 -423
- package/build/cjs/src/billing-v1-tax-region-tax-regions.types.js +0 -17
- package/build/cjs/src/billing-v1-tax-region-tax-regions.types.js.map +0 -1
- package/build/cjs/src/billing-v1-tax-region-tax-regions.universal.js +0 -313
- package/build/cjs/src/billing-v1-tax-region-tax-regions.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/billing-v1-tax-region-tax-regions.context.d.ts +0 -23
- package/build/es/src/billing-v1-tax-region-tax-regions.context.js +0 -23
- package/build/es/src/billing-v1-tax-region-tax-regions.context.js.map +0 -1
- package/build/es/src/billing-v1-tax-region-tax-regions.http.d.ts +0 -44
- package/build/es/src/billing-v1-tax-region-tax-regions.http.js +0 -219
- package/build/es/src/billing-v1-tax-region-tax-regions.http.js.map +0 -1
- package/build/es/src/billing-v1-tax-region-tax-regions.meta.d.ts +0 -23
- package/build/es/src/billing-v1-tax-region-tax-regions.meta.js +0 -92
- package/build/es/src/billing-v1-tax-region-tax-regions.meta.js.map +0 -1
- package/build/es/src/billing-v1-tax-region-tax-regions.public.d.ts +0 -77
- package/build/es/src/billing-v1-tax-region-tax-regions.public.js +0 -63
- package/build/es/src/billing-v1-tax-region-tax-regions.public.js.map +0 -1
- package/build/es/src/billing-v1-tax-region-tax-regions.types.d.ts +0 -423
- package/build/es/src/billing-v1-tax-region-tax-regions.types.js +0 -14
- package/build/es/src/billing-v1-tax-region-tax-regions.types.js.map +0 -1
- package/build/es/src/billing-v1-tax-region-tax-regions.universal.js +0 -282
- package/build/es/src/billing-v1-tax-region-tax-regions.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/billing-v1-tax-region-tax-regions.context.d.ts +0 -23
- package/build/internal/cjs/src/billing-v1-tax-region-tax-regions.context.js +0 -28
- package/build/internal/cjs/src/billing-v1-tax-region-tax-regions.context.js.map +0 -1
- package/build/internal/cjs/src/billing-v1-tax-region-tax-regions.http.d.ts +0 -44
- package/build/internal/cjs/src/billing-v1-tax-region-tax-regions.http.js +0 -227
- package/build/internal/cjs/src/billing-v1-tax-region-tax-regions.http.js.map +0 -1
- package/build/internal/cjs/src/billing-v1-tax-region-tax-regions.meta.d.ts +0 -23
- package/build/internal/cjs/src/billing-v1-tax-region-tax-regions.meta.js +0 -123
- package/build/internal/cjs/src/billing-v1-tax-region-tax-regions.meta.js.map +0 -1
- package/build/internal/cjs/src/billing-v1-tax-region-tax-regions.public.d.ts +0 -77
- package/build/internal/cjs/src/billing-v1-tax-region-tax-regions.public.js +0 -73
- package/build/internal/cjs/src/billing-v1-tax-region-tax-regions.public.js.map +0 -1
- package/build/internal/cjs/src/billing-v1-tax-region-tax-regions.types.d.ts +0 -423
- package/build/internal/cjs/src/billing-v1-tax-region-tax-regions.types.js +0 -17
- package/build/internal/cjs/src/billing-v1-tax-region-tax-regions.types.js.map +0 -1
- package/build/internal/cjs/src/billing-v1-tax-region-tax-regions.universal.js +0 -313
- package/build/internal/cjs/src/billing-v1-tax-region-tax-regions.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/billing-v1-tax-region-tax-regions.context.d.ts +0 -23
- package/build/internal/es/src/billing-v1-tax-region-tax-regions.context.js +0 -23
- package/build/internal/es/src/billing-v1-tax-region-tax-regions.context.js.map +0 -1
- package/build/internal/es/src/billing-v1-tax-region-tax-regions.http.d.ts +0 -44
- package/build/internal/es/src/billing-v1-tax-region-tax-regions.http.js +0 -219
- package/build/internal/es/src/billing-v1-tax-region-tax-regions.http.js.map +0 -1
- package/build/internal/es/src/billing-v1-tax-region-tax-regions.meta.d.ts +0 -23
- package/build/internal/es/src/billing-v1-tax-region-tax-regions.meta.js +0 -92
- package/build/internal/es/src/billing-v1-tax-region-tax-regions.meta.js.map +0 -1
- package/build/internal/es/src/billing-v1-tax-region-tax-regions.public.d.ts +0 -77
- package/build/internal/es/src/billing-v1-tax-region-tax-regions.public.js +0 -63
- package/build/internal/es/src/billing-v1-tax-region-tax-regions.public.js.map +0 -1
- package/build/internal/es/src/billing-v1-tax-region-tax-regions.types.d.ts +0 -423
- package/build/internal/es/src/billing-v1-tax-region-tax-regions.types.js +0 -14
- package/build/internal/es/src/billing-v1-tax-region-tax-regions.types.js.map +0 -1
- package/build/internal/es/src/billing-v1-tax-region-tax-regions.universal.js +0 -282
- package/build/internal/es/src/billing-v1-tax-region-tax-regions.universal.js.map +0 -1
package/build/meta.d.mts
ADDED
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import { C as CreateTaxRegionRequest$1, e as CreateTaxRegionResponse$1, G as GetTaxRegionRequest$1, j as GetTaxRegionResponse$1, k as UpdateTaxRegionRequest$1, l as UpdateTaxRegionResponse$1, D as DeleteTaxRegionRequest$1, m as DeleteTaxRegionResponse$1, Q as QueryTaxRegionsRequest$1, r as QueryTaxRegionsResponse$1 } from './billing-v1-tax-region-tax-regions.universal-BXT3KsX3.mjs';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* A tax region uses a location to define a specific tax treatment.
|
|
5
|
+
* A location is defined by `country` and `subdivision`. The tax region also
|
|
6
|
+
* dictates whether or not tax is included in the displayed price.
|
|
7
|
+
*/
|
|
8
|
+
interface TaxRegion {
|
|
9
|
+
/**
|
|
10
|
+
* Tax region ID.
|
|
11
|
+
* @format GUID
|
|
12
|
+
* @readonly
|
|
13
|
+
*/
|
|
14
|
+
id?: string | null;
|
|
15
|
+
/**
|
|
16
|
+
* 2-letter country code in [ISO-3166 alpha-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format.
|
|
17
|
+
* @format COUNTRY
|
|
18
|
+
* @minLength 2
|
|
19
|
+
*/
|
|
20
|
+
country?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Subdivision (such as state, prefecture, or province) in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-2) format.
|
|
23
|
+
* @maxLength 50
|
|
24
|
+
*/
|
|
25
|
+
subdivision?: string;
|
|
26
|
+
/**
|
|
27
|
+
* The tax calculator ID to use to calculate tax for this region.
|
|
28
|
+
*
|
|
29
|
+
* Call List Tax Calculators to retrieve a list of available calculators for a site.
|
|
30
|
+
* @format GUID
|
|
31
|
+
*/
|
|
32
|
+
appId?: string;
|
|
33
|
+
/** Whether tax is included in the price. */
|
|
34
|
+
taxIncludedInPrice?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Revision number, which increments by 1 each time the tax region is updated.
|
|
37
|
+
* To prevent conflicting changes, the current revision must be passed when updating the tax region.
|
|
38
|
+
*
|
|
39
|
+
* Ignored when creating a tax region.
|
|
40
|
+
* @readonly
|
|
41
|
+
*/
|
|
42
|
+
revision?: string | null;
|
|
43
|
+
/**
|
|
44
|
+
* Date and time the tax region was created.
|
|
45
|
+
* @readonly
|
|
46
|
+
*/
|
|
47
|
+
createdDate?: Date | null;
|
|
48
|
+
/**
|
|
49
|
+
* Date and time the tax region was last updated.
|
|
50
|
+
* @readonly
|
|
51
|
+
*/
|
|
52
|
+
updatedDate?: Date | null;
|
|
53
|
+
}
|
|
54
|
+
interface CreateTaxRegionRequest {
|
|
55
|
+
/** Tax region to create. */
|
|
56
|
+
taxRegion: TaxRegion;
|
|
57
|
+
}
|
|
58
|
+
interface CreateTaxRegionResponse {
|
|
59
|
+
/** Created tax region. */
|
|
60
|
+
taxRegion?: TaxRegion;
|
|
61
|
+
}
|
|
62
|
+
interface GetTaxRegionRequest {
|
|
63
|
+
/**
|
|
64
|
+
* ID of the tax region to retrieve.
|
|
65
|
+
* @format GUID
|
|
66
|
+
*/
|
|
67
|
+
taxRegionId: string;
|
|
68
|
+
}
|
|
69
|
+
interface GetTaxRegionResponse {
|
|
70
|
+
/** Retrieved tax region. */
|
|
71
|
+
taxRegion?: TaxRegion;
|
|
72
|
+
}
|
|
73
|
+
interface UpdateTaxRegionRequest {
|
|
74
|
+
/** Tax region info to update. */
|
|
75
|
+
taxRegion: TaxRegion;
|
|
76
|
+
}
|
|
77
|
+
interface UpdateTaxRegionResponse {
|
|
78
|
+
/** Updated tax region. */
|
|
79
|
+
taxRegion?: TaxRegion;
|
|
80
|
+
}
|
|
81
|
+
interface DeleteTaxRegionRequest {
|
|
82
|
+
/**
|
|
83
|
+
* ID of the tax region to delete.
|
|
84
|
+
* @format GUID
|
|
85
|
+
*/
|
|
86
|
+
taxRegionId: string;
|
|
87
|
+
}
|
|
88
|
+
interface DeleteTaxRegionResponse {
|
|
89
|
+
}
|
|
90
|
+
interface QueryTaxRegionsRequest {
|
|
91
|
+
/** Query options. */
|
|
92
|
+
query?: CursorQuery;
|
|
93
|
+
}
|
|
94
|
+
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
95
|
+
/**
|
|
96
|
+
* Cursor paging options.
|
|
97
|
+
*
|
|
98
|
+
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
99
|
+
*/
|
|
100
|
+
cursorPaging?: CursorPaging;
|
|
101
|
+
/**
|
|
102
|
+
* Filter object.
|
|
103
|
+
*
|
|
104
|
+
* Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
|
|
105
|
+
*/
|
|
106
|
+
filter?: Record<string, any> | null;
|
|
107
|
+
/**
|
|
108
|
+
* Sort object.
|
|
109
|
+
*
|
|
110
|
+
* Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
|
|
111
|
+
* @maxSize 5
|
|
112
|
+
*/
|
|
113
|
+
sort?: Sorting[];
|
|
114
|
+
}
|
|
115
|
+
/** @oneof */
|
|
116
|
+
interface CursorQueryPagingMethodOneOf {
|
|
117
|
+
/**
|
|
118
|
+
* Cursor paging options.
|
|
119
|
+
*
|
|
120
|
+
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
121
|
+
*/
|
|
122
|
+
cursorPaging?: CursorPaging;
|
|
123
|
+
}
|
|
124
|
+
interface Sorting {
|
|
125
|
+
/**
|
|
126
|
+
* Name of the field to sort by.
|
|
127
|
+
* @maxLength 512
|
|
128
|
+
*/
|
|
129
|
+
fieldName?: string;
|
|
130
|
+
/** Sort order. */
|
|
131
|
+
order?: SortOrderWithLiterals;
|
|
132
|
+
}
|
|
133
|
+
declare enum SortOrder {
|
|
134
|
+
ASC = "ASC",
|
|
135
|
+
DESC = "DESC"
|
|
136
|
+
}
|
|
137
|
+
/** @enumType */
|
|
138
|
+
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
139
|
+
interface CursorPaging {
|
|
140
|
+
/**
|
|
141
|
+
* Maximum number of items to return in the results.
|
|
142
|
+
* @max 100
|
|
143
|
+
*/
|
|
144
|
+
limit?: number | null;
|
|
145
|
+
/**
|
|
146
|
+
* Pointer to the next or previous page in the list of results.
|
|
147
|
+
*
|
|
148
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
149
|
+
* Not relevant for the first request.
|
|
150
|
+
* @maxLength 16000
|
|
151
|
+
*/
|
|
152
|
+
cursor?: string | null;
|
|
153
|
+
}
|
|
154
|
+
interface QueryTaxRegionsResponse {
|
|
155
|
+
/** Retrieved tax regions. */
|
|
156
|
+
taxRegions?: TaxRegion[];
|
|
157
|
+
/** Paging metadata. */
|
|
158
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
159
|
+
}
|
|
160
|
+
interface CursorPagingMetadata {
|
|
161
|
+
/** Number of items returned in current page. */
|
|
162
|
+
count?: number | null;
|
|
163
|
+
/** Cursor strings that point to the next page, previous page, or both. */
|
|
164
|
+
cursors?: Cursors;
|
|
165
|
+
/**
|
|
166
|
+
* Whether there are more pages to retrieve following the current page.
|
|
167
|
+
*
|
|
168
|
+
* + `true`: Another page of results can be retrieved.
|
|
169
|
+
* + `false`: This is the last page.
|
|
170
|
+
*/
|
|
171
|
+
hasNext?: boolean | null;
|
|
172
|
+
}
|
|
173
|
+
interface Cursors {
|
|
174
|
+
/**
|
|
175
|
+
* Cursor string pointing to the next page in the list of results.
|
|
176
|
+
* @maxLength 16000
|
|
177
|
+
*/
|
|
178
|
+
next?: string | null;
|
|
179
|
+
/**
|
|
180
|
+
* Cursor pointing to the previous page in the list of results.
|
|
181
|
+
* @maxLength 16000
|
|
182
|
+
*/
|
|
183
|
+
prev?: string | null;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
187
|
+
getUrl: (context: any) => string;
|
|
188
|
+
httpMethod: K;
|
|
189
|
+
path: string;
|
|
190
|
+
pathParams: M;
|
|
191
|
+
__requestType: T;
|
|
192
|
+
__originalRequestType: S;
|
|
193
|
+
__responseType: Q;
|
|
194
|
+
__originalResponseType: R;
|
|
195
|
+
};
|
|
196
|
+
declare function createTaxRegion(): __PublicMethodMetaInfo<'POST', {}, CreateTaxRegionRequest$1, CreateTaxRegionRequest, CreateTaxRegionResponse$1, CreateTaxRegionResponse>;
|
|
197
|
+
declare function getTaxRegion(): __PublicMethodMetaInfo<'GET', {
|
|
198
|
+
taxRegionId: string;
|
|
199
|
+
}, GetTaxRegionRequest$1, GetTaxRegionRequest, GetTaxRegionResponse$1, GetTaxRegionResponse>;
|
|
200
|
+
declare function updateTaxRegion(): __PublicMethodMetaInfo<'PATCH', {
|
|
201
|
+
taxRegionId: string;
|
|
202
|
+
}, UpdateTaxRegionRequest$1, UpdateTaxRegionRequest, UpdateTaxRegionResponse$1, UpdateTaxRegionResponse>;
|
|
203
|
+
declare function deleteTaxRegion(): __PublicMethodMetaInfo<'DELETE', {
|
|
204
|
+
taxRegionId: string;
|
|
205
|
+
}, DeleteTaxRegionRequest$1, DeleteTaxRegionRequest, DeleteTaxRegionResponse$1, DeleteTaxRegionResponse>;
|
|
206
|
+
declare function queryTaxRegions(): __PublicMethodMetaInfo<'POST', {}, QueryTaxRegionsRequest$1, QueryTaxRegionsRequest, QueryTaxRegionsResponse$1, QueryTaxRegionsResponse>;
|
|
207
|
+
|
|
208
|
+
export { type __PublicMethodMetaInfo, createTaxRegion, deleteTaxRegion, getTaxRegion, queryTaxRegions, updateTaxRegion };
|
package/build/meta.d.ts
ADDED
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import { C as CreateTaxRegionRequest$1, e as CreateTaxRegionResponse$1, G as GetTaxRegionRequest$1, j as GetTaxRegionResponse$1, k as UpdateTaxRegionRequest$1, l as UpdateTaxRegionResponse$1, D as DeleteTaxRegionRequest$1, m as DeleteTaxRegionResponse$1, Q as QueryTaxRegionsRequest$1, r as QueryTaxRegionsResponse$1 } from './billing-v1-tax-region-tax-regions.universal-BXT3KsX3.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* A tax region uses a location to define a specific tax treatment.
|
|
5
|
+
* A location is defined by `country` and `subdivision`. The tax region also
|
|
6
|
+
* dictates whether or not tax is included in the displayed price.
|
|
7
|
+
*/
|
|
8
|
+
interface TaxRegion {
|
|
9
|
+
/**
|
|
10
|
+
* Tax region ID.
|
|
11
|
+
* @format GUID
|
|
12
|
+
* @readonly
|
|
13
|
+
*/
|
|
14
|
+
id?: string | null;
|
|
15
|
+
/**
|
|
16
|
+
* 2-letter country code in [ISO-3166 alpha-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format.
|
|
17
|
+
* @format COUNTRY
|
|
18
|
+
* @minLength 2
|
|
19
|
+
*/
|
|
20
|
+
country?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Subdivision (such as state, prefecture, or province) in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-2) format.
|
|
23
|
+
* @maxLength 50
|
|
24
|
+
*/
|
|
25
|
+
subdivision?: string;
|
|
26
|
+
/**
|
|
27
|
+
* The tax calculator ID to use to calculate tax for this region.
|
|
28
|
+
*
|
|
29
|
+
* Call List Tax Calculators to retrieve a list of available calculators for a site.
|
|
30
|
+
* @format GUID
|
|
31
|
+
*/
|
|
32
|
+
appId?: string;
|
|
33
|
+
/** Whether tax is included in the price. */
|
|
34
|
+
taxIncludedInPrice?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Revision number, which increments by 1 each time the tax region is updated.
|
|
37
|
+
* To prevent conflicting changes, the current revision must be passed when updating the tax region.
|
|
38
|
+
*
|
|
39
|
+
* Ignored when creating a tax region.
|
|
40
|
+
* @readonly
|
|
41
|
+
*/
|
|
42
|
+
revision?: string | null;
|
|
43
|
+
/**
|
|
44
|
+
* Date and time the tax region was created.
|
|
45
|
+
* @readonly
|
|
46
|
+
*/
|
|
47
|
+
createdDate?: Date | null;
|
|
48
|
+
/**
|
|
49
|
+
* Date and time the tax region was last updated.
|
|
50
|
+
* @readonly
|
|
51
|
+
*/
|
|
52
|
+
updatedDate?: Date | null;
|
|
53
|
+
}
|
|
54
|
+
interface CreateTaxRegionRequest {
|
|
55
|
+
/** Tax region to create. */
|
|
56
|
+
taxRegion: TaxRegion;
|
|
57
|
+
}
|
|
58
|
+
interface CreateTaxRegionResponse {
|
|
59
|
+
/** Created tax region. */
|
|
60
|
+
taxRegion?: TaxRegion;
|
|
61
|
+
}
|
|
62
|
+
interface GetTaxRegionRequest {
|
|
63
|
+
/**
|
|
64
|
+
* ID of the tax region to retrieve.
|
|
65
|
+
* @format GUID
|
|
66
|
+
*/
|
|
67
|
+
taxRegionId: string;
|
|
68
|
+
}
|
|
69
|
+
interface GetTaxRegionResponse {
|
|
70
|
+
/** Retrieved tax region. */
|
|
71
|
+
taxRegion?: TaxRegion;
|
|
72
|
+
}
|
|
73
|
+
interface UpdateTaxRegionRequest {
|
|
74
|
+
/** Tax region info to update. */
|
|
75
|
+
taxRegion: TaxRegion;
|
|
76
|
+
}
|
|
77
|
+
interface UpdateTaxRegionResponse {
|
|
78
|
+
/** Updated tax region. */
|
|
79
|
+
taxRegion?: TaxRegion;
|
|
80
|
+
}
|
|
81
|
+
interface DeleteTaxRegionRequest {
|
|
82
|
+
/**
|
|
83
|
+
* ID of the tax region to delete.
|
|
84
|
+
* @format GUID
|
|
85
|
+
*/
|
|
86
|
+
taxRegionId: string;
|
|
87
|
+
}
|
|
88
|
+
interface DeleteTaxRegionResponse {
|
|
89
|
+
}
|
|
90
|
+
interface QueryTaxRegionsRequest {
|
|
91
|
+
/** Query options. */
|
|
92
|
+
query?: CursorQuery;
|
|
93
|
+
}
|
|
94
|
+
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
95
|
+
/**
|
|
96
|
+
* Cursor paging options.
|
|
97
|
+
*
|
|
98
|
+
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
99
|
+
*/
|
|
100
|
+
cursorPaging?: CursorPaging;
|
|
101
|
+
/**
|
|
102
|
+
* Filter object.
|
|
103
|
+
*
|
|
104
|
+
* Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
|
|
105
|
+
*/
|
|
106
|
+
filter?: Record<string, any> | null;
|
|
107
|
+
/**
|
|
108
|
+
* Sort object.
|
|
109
|
+
*
|
|
110
|
+
* Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
|
|
111
|
+
* @maxSize 5
|
|
112
|
+
*/
|
|
113
|
+
sort?: Sorting[];
|
|
114
|
+
}
|
|
115
|
+
/** @oneof */
|
|
116
|
+
interface CursorQueryPagingMethodOneOf {
|
|
117
|
+
/**
|
|
118
|
+
* Cursor paging options.
|
|
119
|
+
*
|
|
120
|
+
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
121
|
+
*/
|
|
122
|
+
cursorPaging?: CursorPaging;
|
|
123
|
+
}
|
|
124
|
+
interface Sorting {
|
|
125
|
+
/**
|
|
126
|
+
* Name of the field to sort by.
|
|
127
|
+
* @maxLength 512
|
|
128
|
+
*/
|
|
129
|
+
fieldName?: string;
|
|
130
|
+
/** Sort order. */
|
|
131
|
+
order?: SortOrderWithLiterals;
|
|
132
|
+
}
|
|
133
|
+
declare enum SortOrder {
|
|
134
|
+
ASC = "ASC",
|
|
135
|
+
DESC = "DESC"
|
|
136
|
+
}
|
|
137
|
+
/** @enumType */
|
|
138
|
+
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
139
|
+
interface CursorPaging {
|
|
140
|
+
/**
|
|
141
|
+
* Maximum number of items to return in the results.
|
|
142
|
+
* @max 100
|
|
143
|
+
*/
|
|
144
|
+
limit?: number | null;
|
|
145
|
+
/**
|
|
146
|
+
* Pointer to the next or previous page in the list of results.
|
|
147
|
+
*
|
|
148
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
149
|
+
* Not relevant for the first request.
|
|
150
|
+
* @maxLength 16000
|
|
151
|
+
*/
|
|
152
|
+
cursor?: string | null;
|
|
153
|
+
}
|
|
154
|
+
interface QueryTaxRegionsResponse {
|
|
155
|
+
/** Retrieved tax regions. */
|
|
156
|
+
taxRegions?: TaxRegion[];
|
|
157
|
+
/** Paging metadata. */
|
|
158
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
159
|
+
}
|
|
160
|
+
interface CursorPagingMetadata {
|
|
161
|
+
/** Number of items returned in current page. */
|
|
162
|
+
count?: number | null;
|
|
163
|
+
/** Cursor strings that point to the next page, previous page, or both. */
|
|
164
|
+
cursors?: Cursors;
|
|
165
|
+
/**
|
|
166
|
+
* Whether there are more pages to retrieve following the current page.
|
|
167
|
+
*
|
|
168
|
+
* + `true`: Another page of results can be retrieved.
|
|
169
|
+
* + `false`: This is the last page.
|
|
170
|
+
*/
|
|
171
|
+
hasNext?: boolean | null;
|
|
172
|
+
}
|
|
173
|
+
interface Cursors {
|
|
174
|
+
/**
|
|
175
|
+
* Cursor string pointing to the next page in the list of results.
|
|
176
|
+
* @maxLength 16000
|
|
177
|
+
*/
|
|
178
|
+
next?: string | null;
|
|
179
|
+
/**
|
|
180
|
+
* Cursor pointing to the previous page in the list of results.
|
|
181
|
+
* @maxLength 16000
|
|
182
|
+
*/
|
|
183
|
+
prev?: string | null;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
187
|
+
getUrl: (context: any) => string;
|
|
188
|
+
httpMethod: K;
|
|
189
|
+
path: string;
|
|
190
|
+
pathParams: M;
|
|
191
|
+
__requestType: T;
|
|
192
|
+
__originalRequestType: S;
|
|
193
|
+
__responseType: Q;
|
|
194
|
+
__originalResponseType: R;
|
|
195
|
+
};
|
|
196
|
+
declare function createTaxRegion(): __PublicMethodMetaInfo<'POST', {}, CreateTaxRegionRequest$1, CreateTaxRegionRequest, CreateTaxRegionResponse$1, CreateTaxRegionResponse>;
|
|
197
|
+
declare function getTaxRegion(): __PublicMethodMetaInfo<'GET', {
|
|
198
|
+
taxRegionId: string;
|
|
199
|
+
}, GetTaxRegionRequest$1, GetTaxRegionRequest, GetTaxRegionResponse$1, GetTaxRegionResponse>;
|
|
200
|
+
declare function updateTaxRegion(): __PublicMethodMetaInfo<'PATCH', {
|
|
201
|
+
taxRegionId: string;
|
|
202
|
+
}, UpdateTaxRegionRequest$1, UpdateTaxRegionRequest, UpdateTaxRegionResponse$1, UpdateTaxRegionResponse>;
|
|
203
|
+
declare function deleteTaxRegion(): __PublicMethodMetaInfo<'DELETE', {
|
|
204
|
+
taxRegionId: string;
|
|
205
|
+
}, DeleteTaxRegionRequest$1, DeleteTaxRegionRequest, DeleteTaxRegionResponse$1, DeleteTaxRegionResponse>;
|
|
206
|
+
declare function queryTaxRegions(): __PublicMethodMetaInfo<'POST', {}, QueryTaxRegionsRequest$1, QueryTaxRegionsRequest, QueryTaxRegionsResponse$1, QueryTaxRegionsResponse>;
|
|
207
|
+
|
|
208
|
+
export { type __PublicMethodMetaInfo, createTaxRegion, deleteTaxRegion, getTaxRegion, queryTaxRegions, updateTaxRegion };
|