@wix/auto_sdk_ecom_tax-regions 1.0.3 → 1.0.4

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.
Files changed (134) hide show
  1. package/build/{internal/cjs/src/billing-v1-tax-region-tax-regions.universal.d.ts → billing-v1-tax-region-tax-regions.universal-0Nssv7EX.d.mts} +53 -245
  2. package/build/{cjs/src/billing-v1-tax-region-tax-regions.universal.d.ts → billing-v1-tax-region-tax-regions.universal-0Nssv7EX.d.ts} +53 -245
  3. package/build/index.d.mts +91 -0
  4. package/build/index.d.ts +91 -0
  5. package/build/index.js +493 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +460 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/{es/src/billing-v1-tax-region-tax-regions.universal.d.ts → internal/billing-v1-tax-region-tax-regions.universal-0Nssv7EX.d.mts} +53 -245
  10. package/build/internal/{es/src/billing-v1-tax-region-tax-regions.universal.d.ts → billing-v1-tax-region-tax-regions.universal-0Nssv7EX.d.ts} +53 -245
  11. package/build/internal/index.d.mts +91 -0
  12. package/build/internal/index.d.ts +91 -0
  13. package/build/internal/index.js +493 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +460 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/internal/meta.d.mts +206 -0
  18. package/build/internal/meta.d.ts +206 -0
  19. package/build/internal/meta.js +312 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +281 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/meta.d.mts +206 -0
  24. package/build/meta.d.ts +206 -0
  25. package/build/meta.js +312 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +281 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +13 -12
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/billing-v1-tax-region-tax-regions.context.d.ts +0 -23
  40. package/build/cjs/src/billing-v1-tax-region-tax-regions.context.js +0 -28
  41. package/build/cjs/src/billing-v1-tax-region-tax-regions.context.js.map +0 -1
  42. package/build/cjs/src/billing-v1-tax-region-tax-regions.http.d.ts +0 -44
  43. package/build/cjs/src/billing-v1-tax-region-tax-regions.http.js +0 -227
  44. package/build/cjs/src/billing-v1-tax-region-tax-regions.http.js.map +0 -1
  45. package/build/cjs/src/billing-v1-tax-region-tax-regions.meta.d.ts +0 -23
  46. package/build/cjs/src/billing-v1-tax-region-tax-regions.meta.js +0 -123
  47. package/build/cjs/src/billing-v1-tax-region-tax-regions.meta.js.map +0 -1
  48. package/build/cjs/src/billing-v1-tax-region-tax-regions.public.d.ts +0 -77
  49. package/build/cjs/src/billing-v1-tax-region-tax-regions.public.js +0 -73
  50. package/build/cjs/src/billing-v1-tax-region-tax-regions.public.js.map +0 -1
  51. package/build/cjs/src/billing-v1-tax-region-tax-regions.types.d.ts +0 -427
  52. package/build/cjs/src/billing-v1-tax-region-tax-regions.types.js +0 -17
  53. package/build/cjs/src/billing-v1-tax-region-tax-regions.types.js.map +0 -1
  54. package/build/cjs/src/billing-v1-tax-region-tax-regions.universal.js +0 -311
  55. package/build/cjs/src/billing-v1-tax-region-tax-regions.universal.js.map +0 -1
  56. package/build/es/index.d.ts +0 -1
  57. package/build/es/index.js +0 -2
  58. package/build/es/index.js.map +0 -1
  59. package/build/es/index.typings.d.ts +0 -1
  60. package/build/es/index.typings.js +0 -2
  61. package/build/es/index.typings.js.map +0 -1
  62. package/build/es/meta.d.ts +0 -1
  63. package/build/es/meta.js +0 -2
  64. package/build/es/meta.js.map +0 -1
  65. package/build/es/package.json +0 -3
  66. package/build/es/src/billing-v1-tax-region-tax-regions.context.d.ts +0 -23
  67. package/build/es/src/billing-v1-tax-region-tax-regions.context.js +0 -23
  68. package/build/es/src/billing-v1-tax-region-tax-regions.context.js.map +0 -1
  69. package/build/es/src/billing-v1-tax-region-tax-regions.http.d.ts +0 -44
  70. package/build/es/src/billing-v1-tax-region-tax-regions.http.js +0 -219
  71. package/build/es/src/billing-v1-tax-region-tax-regions.http.js.map +0 -1
  72. package/build/es/src/billing-v1-tax-region-tax-regions.meta.d.ts +0 -23
  73. package/build/es/src/billing-v1-tax-region-tax-regions.meta.js +0 -92
  74. package/build/es/src/billing-v1-tax-region-tax-regions.meta.js.map +0 -1
  75. package/build/es/src/billing-v1-tax-region-tax-regions.public.d.ts +0 -77
  76. package/build/es/src/billing-v1-tax-region-tax-regions.public.js +0 -63
  77. package/build/es/src/billing-v1-tax-region-tax-regions.public.js.map +0 -1
  78. package/build/es/src/billing-v1-tax-region-tax-regions.types.d.ts +0 -427
  79. package/build/es/src/billing-v1-tax-region-tax-regions.types.js +0 -14
  80. package/build/es/src/billing-v1-tax-region-tax-regions.types.js.map +0 -1
  81. package/build/es/src/billing-v1-tax-region-tax-regions.universal.js +0 -280
  82. package/build/es/src/billing-v1-tax-region-tax-regions.universal.js.map +0 -1
  83. package/build/internal/cjs/index.d.ts +0 -1
  84. package/build/internal/cjs/index.js +0 -18
  85. package/build/internal/cjs/index.js.map +0 -1
  86. package/build/internal/cjs/index.typings.d.ts +0 -1
  87. package/build/internal/cjs/index.typings.js +0 -18
  88. package/build/internal/cjs/index.typings.js.map +0 -1
  89. package/build/internal/cjs/meta.d.ts +0 -1
  90. package/build/internal/cjs/meta.js +0 -18
  91. package/build/internal/cjs/meta.js.map +0 -1
  92. package/build/internal/cjs/src/billing-v1-tax-region-tax-regions.context.d.ts +0 -23
  93. package/build/internal/cjs/src/billing-v1-tax-region-tax-regions.context.js +0 -28
  94. package/build/internal/cjs/src/billing-v1-tax-region-tax-regions.context.js.map +0 -1
  95. package/build/internal/cjs/src/billing-v1-tax-region-tax-regions.http.d.ts +0 -44
  96. package/build/internal/cjs/src/billing-v1-tax-region-tax-regions.http.js +0 -227
  97. package/build/internal/cjs/src/billing-v1-tax-region-tax-regions.http.js.map +0 -1
  98. package/build/internal/cjs/src/billing-v1-tax-region-tax-regions.meta.d.ts +0 -23
  99. package/build/internal/cjs/src/billing-v1-tax-region-tax-regions.meta.js +0 -123
  100. package/build/internal/cjs/src/billing-v1-tax-region-tax-regions.meta.js.map +0 -1
  101. package/build/internal/cjs/src/billing-v1-tax-region-tax-regions.public.d.ts +0 -77
  102. package/build/internal/cjs/src/billing-v1-tax-region-tax-regions.public.js +0 -73
  103. package/build/internal/cjs/src/billing-v1-tax-region-tax-regions.public.js.map +0 -1
  104. package/build/internal/cjs/src/billing-v1-tax-region-tax-regions.types.d.ts +0 -427
  105. package/build/internal/cjs/src/billing-v1-tax-region-tax-regions.types.js +0 -17
  106. package/build/internal/cjs/src/billing-v1-tax-region-tax-regions.types.js.map +0 -1
  107. package/build/internal/cjs/src/billing-v1-tax-region-tax-regions.universal.js +0 -311
  108. package/build/internal/cjs/src/billing-v1-tax-region-tax-regions.universal.js.map +0 -1
  109. package/build/internal/es/index.d.ts +0 -1
  110. package/build/internal/es/index.js +0 -2
  111. package/build/internal/es/index.js.map +0 -1
  112. package/build/internal/es/index.typings.d.ts +0 -1
  113. package/build/internal/es/index.typings.js +0 -2
  114. package/build/internal/es/index.typings.js.map +0 -1
  115. package/build/internal/es/meta.d.ts +0 -1
  116. package/build/internal/es/meta.js +0 -2
  117. package/build/internal/es/meta.js.map +0 -1
  118. package/build/internal/es/src/billing-v1-tax-region-tax-regions.context.d.ts +0 -23
  119. package/build/internal/es/src/billing-v1-tax-region-tax-regions.context.js +0 -23
  120. package/build/internal/es/src/billing-v1-tax-region-tax-regions.context.js.map +0 -1
  121. package/build/internal/es/src/billing-v1-tax-region-tax-regions.http.d.ts +0 -44
  122. package/build/internal/es/src/billing-v1-tax-region-tax-regions.http.js +0 -219
  123. package/build/internal/es/src/billing-v1-tax-region-tax-regions.http.js.map +0 -1
  124. package/build/internal/es/src/billing-v1-tax-region-tax-regions.meta.d.ts +0 -23
  125. package/build/internal/es/src/billing-v1-tax-region-tax-regions.meta.js +0 -92
  126. package/build/internal/es/src/billing-v1-tax-region-tax-regions.meta.js.map +0 -1
  127. package/build/internal/es/src/billing-v1-tax-region-tax-regions.public.d.ts +0 -77
  128. package/build/internal/es/src/billing-v1-tax-region-tax-regions.public.js +0 -63
  129. package/build/internal/es/src/billing-v1-tax-region-tax-regions.public.js.map +0 -1
  130. package/build/internal/es/src/billing-v1-tax-region-tax-regions.types.d.ts +0 -427
  131. package/build/internal/es/src/billing-v1-tax-region-tax-regions.types.js +0 -14
  132. package/build/internal/es/src/billing-v1-tax-region-tax-regions.types.js.map +0 -1
  133. package/build/internal/es/src/billing-v1-tax-region-tax-regions.universal.js +0 -280
  134. package/build/internal/es/src/billing-v1-tax-region-tax-regions.universal.js.map +0 -1
@@ -0,0 +1,206 @@
1
+ import { C as CreateTaxRegionRequest$1, b as CreateTaxRegionResponse$1, G as GetTaxRegionRequest$1, g as GetTaxRegionResponse$1, h as UpdateTaxRegionRequest$1, i as UpdateTaxRegionResponse$1, D as DeleteTaxRegionRequest$1, j as DeleteTaxRegionResponse$1, Q as QueryTaxRegionsRequest$1, o as QueryTaxRegionsResponse$1 } from './billing-v1-tax-region-tax-regions.universal-0Nssv7EX.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?: SortOrder;
132
+ }
133
+ declare enum SortOrder {
134
+ ASC = "ASC",
135
+ DESC = "DESC"
136
+ }
137
+ interface CursorPaging {
138
+ /**
139
+ * Maximum number of items to return in the results.
140
+ * @max 100
141
+ */
142
+ limit?: number | null;
143
+ /**
144
+ * Pointer to the next or previous page in the list of results.
145
+ *
146
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
147
+ * Not relevant for the first request.
148
+ * @maxLength 16000
149
+ */
150
+ cursor?: string | null;
151
+ }
152
+ interface QueryTaxRegionsResponse {
153
+ /** Retrieved tax regions. */
154
+ taxRegions?: TaxRegion[];
155
+ /** Paging metadata. */
156
+ pagingMetadata?: CursorPagingMetadata;
157
+ }
158
+ interface CursorPagingMetadata {
159
+ /** Number of items returned in current page. */
160
+ count?: number | null;
161
+ /** Cursor strings that point to the next page, previous page, or both. */
162
+ cursors?: Cursors;
163
+ /**
164
+ * Whether there are more pages to retrieve following the current page.
165
+ *
166
+ * + `true`: Another page of results can be retrieved.
167
+ * + `false`: This is the last page.
168
+ */
169
+ hasNext?: boolean | null;
170
+ }
171
+ interface Cursors {
172
+ /**
173
+ * Cursor string pointing to the next page in the list of results.
174
+ * @maxLength 16000
175
+ */
176
+ next?: string | null;
177
+ /**
178
+ * Cursor pointing to the previous page in the list of results.
179
+ * @maxLength 16000
180
+ */
181
+ prev?: string | null;
182
+ }
183
+
184
+ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
185
+ getUrl: (context: any) => string;
186
+ httpMethod: K;
187
+ path: string;
188
+ pathParams: M;
189
+ __requestType: T;
190
+ __originalRequestType: S;
191
+ __responseType: Q;
192
+ __originalResponseType: R;
193
+ };
194
+ declare function createTaxRegion(): __PublicMethodMetaInfo<'POST', {}, CreateTaxRegionRequest$1, CreateTaxRegionRequest, CreateTaxRegionResponse$1, CreateTaxRegionResponse>;
195
+ declare function getTaxRegion(): __PublicMethodMetaInfo<'GET', {
196
+ taxRegionId: string;
197
+ }, GetTaxRegionRequest$1, GetTaxRegionRequest, GetTaxRegionResponse$1, GetTaxRegionResponse>;
198
+ declare function updateTaxRegion(): __PublicMethodMetaInfo<'PATCH', {
199
+ taxRegionId: string;
200
+ }, UpdateTaxRegionRequest$1, UpdateTaxRegionRequest, UpdateTaxRegionResponse$1, UpdateTaxRegionResponse>;
201
+ declare function deleteTaxRegion(): __PublicMethodMetaInfo<'DELETE', {
202
+ taxRegionId: string;
203
+ }, DeleteTaxRegionRequest$1, DeleteTaxRegionRequest, DeleteTaxRegionResponse$1, DeleteTaxRegionResponse>;
204
+ declare function queryTaxRegions(): __PublicMethodMetaInfo<'POST', {}, QueryTaxRegionsRequest$1, QueryTaxRegionsRequest, QueryTaxRegionsResponse$1, QueryTaxRegionsResponse>;
205
+
206
+ export { type __PublicMethodMetaInfo, createTaxRegion, deleteTaxRegion, getTaxRegion, queryTaxRegions, updateTaxRegion };
@@ -0,0 +1,206 @@
1
+ import { C as CreateTaxRegionRequest$1, b as CreateTaxRegionResponse$1, G as GetTaxRegionRequest$1, g as GetTaxRegionResponse$1, h as UpdateTaxRegionRequest$1, i as UpdateTaxRegionResponse$1, D as DeleteTaxRegionRequest$1, j as DeleteTaxRegionResponse$1, Q as QueryTaxRegionsRequest$1, o as QueryTaxRegionsResponse$1 } from './billing-v1-tax-region-tax-regions.universal-0Nssv7EX.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?: SortOrder;
132
+ }
133
+ declare enum SortOrder {
134
+ ASC = "ASC",
135
+ DESC = "DESC"
136
+ }
137
+ interface CursorPaging {
138
+ /**
139
+ * Maximum number of items to return in the results.
140
+ * @max 100
141
+ */
142
+ limit?: number | null;
143
+ /**
144
+ * Pointer to the next or previous page in the list of results.
145
+ *
146
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
147
+ * Not relevant for the first request.
148
+ * @maxLength 16000
149
+ */
150
+ cursor?: string | null;
151
+ }
152
+ interface QueryTaxRegionsResponse {
153
+ /** Retrieved tax regions. */
154
+ taxRegions?: TaxRegion[];
155
+ /** Paging metadata. */
156
+ pagingMetadata?: CursorPagingMetadata;
157
+ }
158
+ interface CursorPagingMetadata {
159
+ /** Number of items returned in current page. */
160
+ count?: number | null;
161
+ /** Cursor strings that point to the next page, previous page, or both. */
162
+ cursors?: Cursors;
163
+ /**
164
+ * Whether there are more pages to retrieve following the current page.
165
+ *
166
+ * + `true`: Another page of results can be retrieved.
167
+ * + `false`: This is the last page.
168
+ */
169
+ hasNext?: boolean | null;
170
+ }
171
+ interface Cursors {
172
+ /**
173
+ * Cursor string pointing to the next page in the list of results.
174
+ * @maxLength 16000
175
+ */
176
+ next?: string | null;
177
+ /**
178
+ * Cursor pointing to the previous page in the list of results.
179
+ * @maxLength 16000
180
+ */
181
+ prev?: string | null;
182
+ }
183
+
184
+ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
185
+ getUrl: (context: any) => string;
186
+ httpMethod: K;
187
+ path: string;
188
+ pathParams: M;
189
+ __requestType: T;
190
+ __originalRequestType: S;
191
+ __responseType: Q;
192
+ __originalResponseType: R;
193
+ };
194
+ declare function createTaxRegion(): __PublicMethodMetaInfo<'POST', {}, CreateTaxRegionRequest$1, CreateTaxRegionRequest, CreateTaxRegionResponse$1, CreateTaxRegionResponse>;
195
+ declare function getTaxRegion(): __PublicMethodMetaInfo<'GET', {
196
+ taxRegionId: string;
197
+ }, GetTaxRegionRequest$1, GetTaxRegionRequest, GetTaxRegionResponse$1, GetTaxRegionResponse>;
198
+ declare function updateTaxRegion(): __PublicMethodMetaInfo<'PATCH', {
199
+ taxRegionId: string;
200
+ }, UpdateTaxRegionRequest$1, UpdateTaxRegionRequest, UpdateTaxRegionResponse$1, UpdateTaxRegionResponse>;
201
+ declare function deleteTaxRegion(): __PublicMethodMetaInfo<'DELETE', {
202
+ taxRegionId: string;
203
+ }, DeleteTaxRegionRequest$1, DeleteTaxRegionRequest, DeleteTaxRegionResponse$1, DeleteTaxRegionResponse>;
204
+ declare function queryTaxRegions(): __PublicMethodMetaInfo<'POST', {}, QueryTaxRegionsRequest$1, QueryTaxRegionsRequest, QueryTaxRegionsResponse$1, QueryTaxRegionsResponse>;
205
+
206
+ export { type __PublicMethodMetaInfo, createTaxRegion, deleteTaxRegion, getTaxRegion, queryTaxRegions, updateTaxRegion };