@wix/auto_sdk_ecom_manual-tax-mappings 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +101 -0
- package/build/cjs/index.js +651 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +822 -0
- package/build/cjs/index.typings.js +517 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +324 -0
- package/build/cjs/meta.js +405 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/es/index.d.mts +101 -0
- package/build/es/index.mjs +615 -0
- package/build/es/index.mjs.map +1 -0
- package/build/es/index.typings.d.mts +822 -0
- package/build/es/index.typings.mjs +484 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +324 -0
- package/build/es/meta.mjs +372 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/es/package.json +3 -0
- package/build/internal/cjs/index.d.ts +101 -0
- package/build/internal/cjs/index.js +651 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +822 -0
- package/build/internal/cjs/index.typings.js +517 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +324 -0
- package/build/internal/cjs/meta.js +405 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/es/index.d.mts +101 -0
- package/build/internal/es/index.mjs +615 -0
- package/build/internal/es/index.mjs.map +1 -0
- package/build/internal/es/index.typings.d.mts +822 -0
- package/build/internal/es/index.typings.mjs +484 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +324 -0
- package/build/internal/es/meta.mjs +372 -0
- package/build/internal/es/meta.mjs.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +54 -0
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
import { CreateManualTaxMappingRequest as CreateManualTaxMappingRequest$1, CreateManualTaxMappingResponse as CreateManualTaxMappingResponse$1, BulkCreateManualTaxMappingsRequest as BulkCreateManualTaxMappingsRequest$1, BulkCreateManualTaxMappingsResponse as BulkCreateManualTaxMappingsResponse$1, GetManualTaxMappingRequest as GetManualTaxMappingRequest$1, GetManualTaxMappingResponse as GetManualTaxMappingResponse$1, UpdateManualTaxMappingRequest as UpdateManualTaxMappingRequest$1, UpdateManualTaxMappingResponse as UpdateManualTaxMappingResponse$1, DeleteManualTaxMappingRequest as DeleteManualTaxMappingRequest$1, DeleteManualTaxMappingResponse as DeleteManualTaxMappingResponse$1, QueryManualTaxMappingsRequest as QueryManualTaxMappingsRequest$1, QueryManualTaxMappingsResponse as QueryManualTaxMappingsResponse$1, UpdateExtendedFieldsRequest as UpdateExtendedFieldsRequest$1, UpdateExtendedFieldsResponse as UpdateExtendedFieldsResponse$1 } from './index.typings.js';
|
|
2
|
+
import '@wix/sdk-types';
|
|
3
|
+
|
|
4
|
+
interface ManualTaxMapping {
|
|
5
|
+
/**
|
|
6
|
+
* Manual tax mapping ID.
|
|
7
|
+
* @format GUID
|
|
8
|
+
* @readonly
|
|
9
|
+
*/
|
|
10
|
+
id?: string | null;
|
|
11
|
+
/**
|
|
12
|
+
* Revision number, which increments by 1 each time the manual tax mapping is updated.
|
|
13
|
+
* To prevent conflicting changes,
|
|
14
|
+
* the current revision must be passed when updating the manual tax mapping.
|
|
15
|
+
*
|
|
16
|
+
* Ignored when creating a manual tax mapping.
|
|
17
|
+
* @readonly
|
|
18
|
+
*/
|
|
19
|
+
revision?: string | null;
|
|
20
|
+
/**
|
|
21
|
+
* Date and time the manual tax mapping was created.
|
|
22
|
+
* @readonly
|
|
23
|
+
*/
|
|
24
|
+
createdDate?: Date | null;
|
|
25
|
+
/**
|
|
26
|
+
* Date and time the manual tax mapping was last updated.
|
|
27
|
+
* @readonly
|
|
28
|
+
*/
|
|
29
|
+
updatedDate?: Date | null;
|
|
30
|
+
/**
|
|
31
|
+
* Tax group ID.
|
|
32
|
+
* @format GUID
|
|
33
|
+
*/
|
|
34
|
+
taxGroupId?: string | null;
|
|
35
|
+
/**
|
|
36
|
+
* Tax region ID.
|
|
37
|
+
* @format GUID
|
|
38
|
+
*/
|
|
39
|
+
taxRegionId?: string | null;
|
|
40
|
+
/**
|
|
41
|
+
* Tax rate for given tax group, tax region and jurisdiction.
|
|
42
|
+
* @decimalValue options { maxScale:6, gte:0 }
|
|
43
|
+
*/
|
|
44
|
+
taxRate?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Tax group mapping description.
|
|
47
|
+
* @maxLength 1000
|
|
48
|
+
*/
|
|
49
|
+
description?: string | null;
|
|
50
|
+
/**
|
|
51
|
+
* The type of tax that was calculated. Depends on the jurisdiction's tax laws.
|
|
52
|
+
* @maxLength 200
|
|
53
|
+
*/
|
|
54
|
+
taxType?: string;
|
|
55
|
+
/**
|
|
56
|
+
* The name of the tax against which this tax amount was calculated, for example "STATE TAX" for "State Tax" or "GST" for "Goods and Services Tax".
|
|
57
|
+
* @maxLength 200
|
|
58
|
+
*/
|
|
59
|
+
taxName?: string;
|
|
60
|
+
/**
|
|
61
|
+
* The name of the jurisdiction to which this tax detail applies.
|
|
62
|
+
* @maxLength 200
|
|
63
|
+
*/
|
|
64
|
+
jurisdiction?: string;
|
|
65
|
+
/** The type of the jurisdiction in which this tax detail applies. (Country,State,County,City,Special) */
|
|
66
|
+
jurisdictionType?: JurisdictionTypeWithLiterals;
|
|
67
|
+
/** Data Extensions */
|
|
68
|
+
extendedFields?: ExtendedFields;
|
|
69
|
+
}
|
|
70
|
+
/** Type of jurisdiction that taxes were calculated for. For example, `"State"`, `"County"`, `"City"`, `"Special"`, etc. */
|
|
71
|
+
declare enum JurisdictionType {
|
|
72
|
+
UNDEFINED = "UNDEFINED",
|
|
73
|
+
COUNTRY = "COUNTRY",
|
|
74
|
+
STATE = "STATE",
|
|
75
|
+
COUNTY = "COUNTY",
|
|
76
|
+
CITY = "CITY",
|
|
77
|
+
SPECIAL = "SPECIAL"
|
|
78
|
+
}
|
|
79
|
+
/** @enumType */
|
|
80
|
+
type JurisdictionTypeWithLiterals = JurisdictionType | 'UNDEFINED' | 'COUNTRY' | 'STATE' | 'COUNTY' | 'CITY' | 'SPECIAL';
|
|
81
|
+
interface ExtendedFields {
|
|
82
|
+
/**
|
|
83
|
+
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
84
|
+
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
85
|
+
*
|
|
86
|
+
* You can only access fields for which you have the appropriate permissions.
|
|
87
|
+
*
|
|
88
|
+
* Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
|
|
89
|
+
*/
|
|
90
|
+
namespaces?: Record<string, Record<string, any>>;
|
|
91
|
+
}
|
|
92
|
+
interface CreateManualTaxMappingRequest {
|
|
93
|
+
/** Manual tax mapping to create. */
|
|
94
|
+
manualTaxMapping: ManualTaxMapping;
|
|
95
|
+
}
|
|
96
|
+
interface CreateManualTaxMappingResponse {
|
|
97
|
+
/** The created manual tax mapping. */
|
|
98
|
+
manualTaxMapping?: ManualTaxMapping;
|
|
99
|
+
}
|
|
100
|
+
interface BulkCreateManualTaxMappingsRequest {
|
|
101
|
+
/**
|
|
102
|
+
* List of manual tax mappings to be created
|
|
103
|
+
* @minSize 1
|
|
104
|
+
* @maxSize 100
|
|
105
|
+
*/
|
|
106
|
+
manualTaxMappings: ManualTaxMapping[];
|
|
107
|
+
/**
|
|
108
|
+
* Whether to return the manual tax mapping entity in the response.
|
|
109
|
+
*
|
|
110
|
+
* Default: `false`
|
|
111
|
+
*/
|
|
112
|
+
returnEntity?: boolean;
|
|
113
|
+
}
|
|
114
|
+
interface BulkCreateManualTaxMappingsResponse {
|
|
115
|
+
/**
|
|
116
|
+
* List of the bulk create operation results including the manual tax mappings and metadata.
|
|
117
|
+
* @minSize 1
|
|
118
|
+
* @maxSize 100
|
|
119
|
+
*/
|
|
120
|
+
results?: BulkManualTaxMappingResult[];
|
|
121
|
+
/** Metadata regarding the bulk create operation */
|
|
122
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
123
|
+
}
|
|
124
|
+
interface ItemMetadata {
|
|
125
|
+
/**
|
|
126
|
+
* Item ID. Provided only whenever possible. For example, `itemId` can't be provided when item creation has failed.
|
|
127
|
+
* @format GUID
|
|
128
|
+
*/
|
|
129
|
+
id?: string | null;
|
|
130
|
+
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
131
|
+
originalIndex?: number;
|
|
132
|
+
/** Whether the requested action for this item was successful. When `false`, the `error` field is returned. */
|
|
133
|
+
success?: boolean;
|
|
134
|
+
/** Details about the error in case of failure. */
|
|
135
|
+
error?: ApplicationError;
|
|
136
|
+
}
|
|
137
|
+
interface ApplicationError {
|
|
138
|
+
/** Error code. */
|
|
139
|
+
code?: string;
|
|
140
|
+
/** Description of the error. */
|
|
141
|
+
description?: string;
|
|
142
|
+
/** Data related to the error. */
|
|
143
|
+
data?: Record<string, any> | null;
|
|
144
|
+
}
|
|
145
|
+
interface BulkManualTaxMappingResult {
|
|
146
|
+
/** Metadata regarding the specific single create operation */
|
|
147
|
+
itemMetadata?: ItemMetadata;
|
|
148
|
+
/** Only exists if `returnEntity` was set to true in the request */
|
|
149
|
+
item?: ManualTaxMapping;
|
|
150
|
+
}
|
|
151
|
+
interface BulkActionMetadata {
|
|
152
|
+
/** Number of items that were successfully processed. */
|
|
153
|
+
totalSuccesses?: number;
|
|
154
|
+
/** Number of items that couldn't be processed. */
|
|
155
|
+
totalFailures?: number;
|
|
156
|
+
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
157
|
+
undetailedFailures?: number;
|
|
158
|
+
}
|
|
159
|
+
interface GetManualTaxMappingRequest {
|
|
160
|
+
/**
|
|
161
|
+
* Manual tax mapping ID.
|
|
162
|
+
* @format GUID
|
|
163
|
+
*/
|
|
164
|
+
manualTaxMappingId: string;
|
|
165
|
+
}
|
|
166
|
+
interface GetManualTaxMappingResponse {
|
|
167
|
+
/** The requested manual tax mapping. */
|
|
168
|
+
manualTaxMapping?: ManualTaxMapping;
|
|
169
|
+
}
|
|
170
|
+
interface UpdateManualTaxMappingRequest {
|
|
171
|
+
/** Manual tax mapping to update. */
|
|
172
|
+
manualTaxMapping: ManualTaxMapping;
|
|
173
|
+
}
|
|
174
|
+
interface UpdateManualTaxMappingResponse {
|
|
175
|
+
/** Updated manual tax mapping. */
|
|
176
|
+
manualTaxMapping?: ManualTaxMapping;
|
|
177
|
+
}
|
|
178
|
+
interface DeleteManualTaxMappingRequest {
|
|
179
|
+
/**
|
|
180
|
+
* Manual tax mapping ID.
|
|
181
|
+
* @format GUID
|
|
182
|
+
*/
|
|
183
|
+
manualTaxMappingId: string;
|
|
184
|
+
}
|
|
185
|
+
interface DeleteManualTaxMappingResponse {
|
|
186
|
+
}
|
|
187
|
+
interface QueryManualTaxMappingsRequest {
|
|
188
|
+
/** WQL expression. */
|
|
189
|
+
query?: CursorQuery;
|
|
190
|
+
}
|
|
191
|
+
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
192
|
+
/**
|
|
193
|
+
* Cursor paging options.
|
|
194
|
+
*
|
|
195
|
+
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
196
|
+
*/
|
|
197
|
+
cursorPaging?: CursorPaging;
|
|
198
|
+
/**
|
|
199
|
+
* Filter object.
|
|
200
|
+
*
|
|
201
|
+
* Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
|
|
202
|
+
*/
|
|
203
|
+
filter?: Record<string, any> | null;
|
|
204
|
+
/**
|
|
205
|
+
* Sort object.
|
|
206
|
+
*
|
|
207
|
+
* Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
|
|
208
|
+
* @maxSize 5
|
|
209
|
+
*/
|
|
210
|
+
sort?: Sorting[];
|
|
211
|
+
}
|
|
212
|
+
/** @oneof */
|
|
213
|
+
interface CursorQueryPagingMethodOneOf {
|
|
214
|
+
/**
|
|
215
|
+
* Cursor paging options.
|
|
216
|
+
*
|
|
217
|
+
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
218
|
+
*/
|
|
219
|
+
cursorPaging?: CursorPaging;
|
|
220
|
+
}
|
|
221
|
+
interface Sorting {
|
|
222
|
+
/**
|
|
223
|
+
* Name of the field to sort by.
|
|
224
|
+
* @maxLength 512
|
|
225
|
+
*/
|
|
226
|
+
fieldName?: string;
|
|
227
|
+
/** Sort order. */
|
|
228
|
+
order?: SortOrderWithLiterals;
|
|
229
|
+
}
|
|
230
|
+
declare enum SortOrder {
|
|
231
|
+
ASC = "ASC",
|
|
232
|
+
DESC = "DESC"
|
|
233
|
+
}
|
|
234
|
+
/** @enumType */
|
|
235
|
+
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
236
|
+
interface CursorPaging {
|
|
237
|
+
/**
|
|
238
|
+
* Maximum number of items to return in the results.
|
|
239
|
+
* @max 100
|
|
240
|
+
*/
|
|
241
|
+
limit?: number | null;
|
|
242
|
+
/**
|
|
243
|
+
* Pointer to the next or previous page in the list of results.
|
|
244
|
+
*
|
|
245
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
246
|
+
* Not relevant for the first request.
|
|
247
|
+
* @maxLength 16000
|
|
248
|
+
*/
|
|
249
|
+
cursor?: string | null;
|
|
250
|
+
}
|
|
251
|
+
interface QueryManualTaxMappingsResponse {
|
|
252
|
+
/**
|
|
253
|
+
* Query options.
|
|
254
|
+
* @maxSize 100
|
|
255
|
+
*/
|
|
256
|
+
manualTaxMappings?: ManualTaxMapping[];
|
|
257
|
+
/** Paging metadata */
|
|
258
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
259
|
+
}
|
|
260
|
+
interface CursorPagingMetadata {
|
|
261
|
+
/** Number of items returned in current page. */
|
|
262
|
+
count?: number | null;
|
|
263
|
+
/** Cursor strings that point to the next page, previous page, or both. */
|
|
264
|
+
cursors?: Cursors;
|
|
265
|
+
/**
|
|
266
|
+
* Whether there are more pages to retrieve following the current page.
|
|
267
|
+
*
|
|
268
|
+
* + `true`: Another page of results can be retrieved.
|
|
269
|
+
* + `false`: This is the last page.
|
|
270
|
+
*/
|
|
271
|
+
hasNext?: boolean | null;
|
|
272
|
+
}
|
|
273
|
+
interface Cursors {
|
|
274
|
+
/**
|
|
275
|
+
* Cursor string pointing to the next page in the list of results.
|
|
276
|
+
* @maxLength 16000
|
|
277
|
+
*/
|
|
278
|
+
next?: string | null;
|
|
279
|
+
/**
|
|
280
|
+
* Cursor pointing to the previous page in the list of results.
|
|
281
|
+
* @maxLength 16000
|
|
282
|
+
*/
|
|
283
|
+
prev?: string | null;
|
|
284
|
+
}
|
|
285
|
+
interface UpdateExtendedFieldsRequest {
|
|
286
|
+
/** ID of the entity to update. */
|
|
287
|
+
id: string;
|
|
288
|
+
/** Identifier for the app whose extended fields are being updated. */
|
|
289
|
+
namespace: string;
|
|
290
|
+
/** Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields#json-schema-for-extended-fields) defined when the extended fields were configured. */
|
|
291
|
+
namespaceData: Record<string, any> | null;
|
|
292
|
+
}
|
|
293
|
+
interface UpdateExtendedFieldsResponse {
|
|
294
|
+
/** Updated manual tax mapping. */
|
|
295
|
+
manualTaxMapping?: ManualTaxMapping;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
299
|
+
getUrl: (context: any) => string;
|
|
300
|
+
httpMethod: K;
|
|
301
|
+
path: string;
|
|
302
|
+
pathParams: M;
|
|
303
|
+
__requestType: T;
|
|
304
|
+
__originalRequestType: S;
|
|
305
|
+
__responseType: Q;
|
|
306
|
+
__originalResponseType: R;
|
|
307
|
+
};
|
|
308
|
+
declare function createManualTaxMapping(): __PublicMethodMetaInfo<'POST', {}, CreateManualTaxMappingRequest$1, CreateManualTaxMappingRequest, CreateManualTaxMappingResponse$1, CreateManualTaxMappingResponse>;
|
|
309
|
+
declare function bulkCreateManualTaxMappings(): __PublicMethodMetaInfo<'POST', {}, BulkCreateManualTaxMappingsRequest$1, BulkCreateManualTaxMappingsRequest, BulkCreateManualTaxMappingsResponse$1, BulkCreateManualTaxMappingsResponse>;
|
|
310
|
+
declare function getManualTaxMapping(): __PublicMethodMetaInfo<'GET', {
|
|
311
|
+
manualTaxMappingId: string;
|
|
312
|
+
}, GetManualTaxMappingRequest$1, GetManualTaxMappingRequest, GetManualTaxMappingResponse$1, GetManualTaxMappingResponse>;
|
|
313
|
+
declare function updateManualTaxMapping(): __PublicMethodMetaInfo<'PATCH', {
|
|
314
|
+
manualTaxMappingId: string;
|
|
315
|
+
}, UpdateManualTaxMappingRequest$1, UpdateManualTaxMappingRequest, UpdateManualTaxMappingResponse$1, UpdateManualTaxMappingResponse>;
|
|
316
|
+
declare function deleteManualTaxMapping(): __PublicMethodMetaInfo<'DELETE', {
|
|
317
|
+
manualTaxMappingId: string;
|
|
318
|
+
}, DeleteManualTaxMappingRequest$1, DeleteManualTaxMappingRequest, DeleteManualTaxMappingResponse$1, DeleteManualTaxMappingResponse>;
|
|
319
|
+
declare function queryManualTaxMappings(): __PublicMethodMetaInfo<'GET', {}, QueryManualTaxMappingsRequest$1, QueryManualTaxMappingsRequest, QueryManualTaxMappingsResponse$1, QueryManualTaxMappingsResponse>;
|
|
320
|
+
declare function updateExtendedFields(): __PublicMethodMetaInfo<'POST', {
|
|
321
|
+
id: string;
|
|
322
|
+
}, UpdateExtendedFieldsRequest$1, UpdateExtendedFieldsRequest, UpdateExtendedFieldsResponse$1, UpdateExtendedFieldsResponse>;
|
|
323
|
+
|
|
324
|
+
export { type __PublicMethodMetaInfo, bulkCreateManualTaxMappings, createManualTaxMapping, deleteManualTaxMapping, getManualTaxMapping, queryManualTaxMappings, updateExtendedFields, updateManualTaxMapping };
|