@wix/auto_sdk_ecom_tax-regions 1.0.2 → 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 -261
  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 -261
  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 -261
  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 -261
  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 -446
  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 -446
  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 -446
  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 -446
  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
@@ -1,280 +0,0 @@
1
- import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';
2
- import { queryBuilder } from '@wix/sdk-runtime/query-builder';
3
- import { renameKeysFromSDKRequestToRESTRequest, renameKeysFromRESTResponseToSDKResponse, } from '@wix/sdk-runtime/rename-all-nested-keys';
4
- import * as ambassadorWixBillingV1TaxRegion from './billing-v1-tax-region-tax-regions.http.js';
5
- export var SortOrder;
6
- (function (SortOrder) {
7
- SortOrder["ASC"] = "ASC";
8
- SortOrder["DESC"] = "DESC";
9
- })(SortOrder || (SortOrder = {}));
10
- export var WebhookIdentityType;
11
- (function (WebhookIdentityType) {
12
- WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
13
- WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
14
- WebhookIdentityType["MEMBER"] = "MEMBER";
15
- WebhookIdentityType["WIX_USER"] = "WIX_USER";
16
- WebhookIdentityType["APP"] = "APP";
17
- })(WebhookIdentityType || (WebhookIdentityType = {}));
18
- /**
19
- * Creates a tax region.
20
- *
21
- * Tax regions require a tax calculator `appId`. Call List Tax Calculators to retrieve a list of available calculators for a site.
22
- *
23
- * Wix uses tax regions to calculate tax.
24
- * <!-- Subdivisions are supported for the following countries: `AU`, `BR`, `CA`, `FR`, `DE`, `IN`, `IT`, `MX`, `NL`, `ES`, `AE`, `GB`, `US` -->
25
- * @param taxRegion - Tax region to create.
26
- * @public
27
- * @documentationMaturity preview
28
- * @requiredField taxRegion
29
- * @requiredField taxRegion.appId
30
- * @requiredField taxRegion.country
31
- * @requiredField taxRegion.taxIncludedInPrice
32
- * @permissionId BILLING.TAX_REGION_CREATE
33
- * @permissionScope Manage Stores - all permissions
34
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
35
- * @permissionScope Manage Restaurants - all permissions
36
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
37
- * @permissionScope Picasso private app mega scope
38
- * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
39
- * @permissionScope Manage Orders
40
- * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
41
- * @applicableIdentity APP
42
- * @returns Created tax region.
43
- * @fqn wix.billing.v1.TaxRegionsService.CreateTaxRegion
44
- */
45
- export async function createTaxRegion(taxRegion) {
46
- // @ts-ignore
47
- const { httpClient, sideEffects } = arguments[1];
48
- const payload = renameKeysFromSDKRequestToRESTRequest({
49
- taxRegion: taxRegion,
50
- });
51
- const reqOpts = ambassadorWixBillingV1TaxRegion.createTaxRegion(payload);
52
- sideEffects?.onSiteCall?.();
53
- try {
54
- const result = await httpClient.request(reqOpts);
55
- sideEffects?.onSuccess?.(result);
56
- return renameKeysFromRESTResponseToSDKResponse(result.data)?.taxRegion;
57
- }
58
- catch (err) {
59
- const transformedError = sdkTransformError(err, {
60
- spreadPathsToArguments: {},
61
- explicitPathsToArguments: { taxRegion: '$[0]' },
62
- singleArgumentUnchanged: false,
63
- }, ['taxRegion']);
64
- sideEffects?.onError?.(err);
65
- throw transformedError;
66
- }
67
- }
68
- /**
69
- * Retrieves a tax region.
70
- * @param taxRegionId - ID of the tax region to retrieve.
71
- * @public
72
- * @documentationMaturity preview
73
- * @requiredField taxRegionId
74
- * @permissionId BILLING.TAX_REGION_READ
75
- * @permissionScope Manage Stores - all permissions
76
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
77
- * @permissionScope Manage Restaurants - all permissions
78
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
79
- * @permissionScope Manage eCommerce - all permissions
80
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
81
- * @permissionScope Picasso private app mega scope
82
- * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
83
- * @permissionScope Manage Orders
84
- * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
85
- * @applicableIdentity APP
86
- * @applicableIdentity VISITOR
87
- * @returns Retrieved tax region.
88
- * @fqn wix.billing.v1.TaxRegionsService.GetTaxRegion
89
- */
90
- export async function getTaxRegion(taxRegionId) {
91
- // @ts-ignore
92
- const { httpClient, sideEffects } = arguments[1];
93
- const payload = renameKeysFromSDKRequestToRESTRequest({
94
- taxRegionId: taxRegionId,
95
- });
96
- const reqOpts = ambassadorWixBillingV1TaxRegion.getTaxRegion(payload);
97
- sideEffects?.onSiteCall?.();
98
- try {
99
- const result = await httpClient.request(reqOpts);
100
- sideEffects?.onSuccess?.(result);
101
- return renameKeysFromRESTResponseToSDKResponse(result.data)?.taxRegion;
102
- }
103
- catch (err) {
104
- const transformedError = sdkTransformError(err, {
105
- spreadPathsToArguments: {},
106
- explicitPathsToArguments: { taxRegionId: '$[0]' },
107
- singleArgumentUnchanged: false,
108
- }, ['taxRegionId']);
109
- sideEffects?.onError?.(err);
110
- throw transformedError;
111
- }
112
- }
113
- /**
114
- * Updates a tax region.
115
- *
116
- * Each time the tax region is updated, `revision` increments by 1.
117
- * The current `revision` must be passed when updating the tax region.
118
- * This ensures you're working with the latest tax region and prevents
119
- * unintended overwrites.
120
- * @param _id - Tax region ID.
121
- * @public
122
- * @documentationMaturity preview
123
- * @requiredField _id
124
- * @requiredField taxRegion
125
- * @requiredField taxRegion.revision
126
- * @param taxRegion - Tax region info.
127
- * @permissionId BILLING.TAX_REGION_UPDATE
128
- * @permissionScope Manage Stores - all permissions
129
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
130
- * @permissionScope Manage Restaurants - all permissions
131
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
132
- * @permissionScope Picasso private app mega scope
133
- * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
134
- * @permissionScope Manage Orders
135
- * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
136
- * @applicableIdentity APP
137
- * @returns Updated tax region.
138
- * @fqn wix.billing.v1.TaxRegionsService.UpdateTaxRegion
139
- */
140
- export async function updateTaxRegion(_id, taxRegion) {
141
- // @ts-ignore
142
- const { httpClient, sideEffects } = arguments[2];
143
- const payload = renameKeysFromSDKRequestToRESTRequest({
144
- taxRegion: { ...taxRegion, id: _id },
145
- });
146
- const reqOpts = ambassadorWixBillingV1TaxRegion.updateTaxRegion(payload);
147
- sideEffects?.onSiteCall?.();
148
- try {
149
- const result = await httpClient.request(reqOpts);
150
- sideEffects?.onSuccess?.(result);
151
- return renameKeysFromRESTResponseToSDKResponse(result.data)?.taxRegion;
152
- }
153
- catch (err) {
154
- const transformedError = sdkTransformError(err, {
155
- spreadPathsToArguments: { taxRegion: '$[1]' },
156
- explicitPathsToArguments: { 'taxRegion.id': '$[0]' },
157
- singleArgumentUnchanged: false,
158
- }, ['_id', 'taxRegion']);
159
- sideEffects?.onError?.(err);
160
- throw transformedError;
161
- }
162
- }
163
- /**
164
- * Deletes a tax region.
165
- *
166
- * When a tax region is deleted, tax is not calculated and zero tax will be returned for addresses in this region.
167
- * @param taxRegionId - ID of the tax region to delete.
168
- * @public
169
- * @documentationMaturity preview
170
- * @requiredField taxRegionId
171
- * @permissionId BILLING.TAX_REGION_DELETE
172
- * @permissionScope Manage Stores - all permissions
173
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
174
- * @permissionScope Manage Restaurants - all permissions
175
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
176
- * @permissionScope Picasso private app mega scope
177
- * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
178
- * @permissionScope Manage Orders
179
- * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
180
- * @applicableIdentity APP
181
- * @fqn wix.billing.v1.TaxRegionsService.DeleteTaxRegion
182
- */
183
- export async function deleteTaxRegion(taxRegionId) {
184
- // @ts-ignore
185
- const { httpClient, sideEffects } = arguments[1];
186
- const payload = renameKeysFromSDKRequestToRESTRequest({
187
- taxRegionId: taxRegionId,
188
- });
189
- const reqOpts = ambassadorWixBillingV1TaxRegion.deleteTaxRegion(payload);
190
- sideEffects?.onSiteCall?.();
191
- try {
192
- const result = await httpClient.request(reqOpts);
193
- sideEffects?.onSuccess?.(result);
194
- }
195
- catch (err) {
196
- const transformedError = sdkTransformError(err, {
197
- spreadPathsToArguments: {},
198
- explicitPathsToArguments: { taxRegionId: '$[0]' },
199
- singleArgumentUnchanged: false,
200
- }, ['taxRegionId']);
201
- sideEffects?.onError?.(err);
202
- throw transformedError;
203
- }
204
- }
205
- /**
206
- * Creates a query to retrieve a list of tax regions.
207
- *
208
- * The `queryTaxRegions()` function builds a query to retrieve a list of tax regions and returns a `TaxRegionsQueryBuilder` object.
209
- *
210
- * The returned object contains the query definition, which is typically used to run the query using the `find()` function.
211
- *
212
- * 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.
213
- *
214
- * `queryTaxRegions()` runs with the following `TaxRegionsQueryBuilder` default that you can override:
215
- * + `ascending("_id")`
216
- *
217
- * 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"`.
218
- *
219
- * 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`.
220
- * @public
221
- * @documentationMaturity preview
222
- * @permissionScope Manage Stores - all permissions
223
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
224
- * @permissionScope Manage Restaurants - all permissions
225
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
226
- * @permissionScope Manage eCommerce - all permissions
227
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
228
- * @permissionScope Picasso private app mega scope
229
- * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
230
- * @permissionScope Manage Orders
231
- * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
232
- * @permissionId BILLING.TAX_REGION_READ
233
- * @applicableIdentity APP
234
- * @applicableIdentity VISITOR
235
- * @fqn wix.billing.v1.TaxRegionsService.QueryTaxRegions
236
- */
237
- export function queryTaxRegions() {
238
- // @ts-ignore
239
- const { httpClient, sideEffects } = arguments[0];
240
- return queryBuilder({
241
- func: async (payload) => {
242
- const reqOpts = ambassadorWixBillingV1TaxRegion.queryTaxRegions(payload);
243
- sideEffects?.onSiteCall?.();
244
- try {
245
- const result = await httpClient.request(reqOpts);
246
- sideEffects?.onSuccess?.(result);
247
- return result;
248
- }
249
- catch (err) {
250
- sideEffects?.onError?.(err);
251
- throw err;
252
- }
253
- },
254
- requestTransformer: (query) => {
255
- const args = [query, {}];
256
- return renameKeysFromSDKRequestToRESTRequest({
257
- ...args?.[1],
258
- query: args?.[0],
259
- });
260
- },
261
- responseTransformer: ({ data }) => {
262
- const transformedData = renameKeysFromRESTResponseToSDKResponse(data);
263
- return {
264
- items: transformedData?.taxRegions,
265
- pagingMetadata: transformedData?.pagingMetadata,
266
- };
267
- },
268
- errorTransformer: (err) => {
269
- const transformedError = sdkTransformError(err, {
270
- spreadPathsToArguments: {},
271
- explicitPathsToArguments: { query: '$[0]' },
272
- singleArgumentUnchanged: false,
273
- });
274
- throw transformedError;
275
- },
276
- pagingMethod: 'CURSOR',
277
- transformationPaths: {},
278
- });
279
- }
280
- //# sourceMappingURL=billing-v1-tax-region-tax-regions.universal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"billing-v1-tax-region-tax-regions.universal.js","sourceRoot":"","sources":["../../../src/billing-v1-tax-region-tax-regions.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,+BAA+B,MAAM,6CAA6C,CAAC;AA4N/F,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AA8OD,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B;AAgKD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,SAAoB;IAEpB,aAAa;IACb,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAC;IAEF,MAAM,OAAO,GAAG,qCAAqC,CAAC;QACpD,S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D,YAAY,EAAE,QAAQ;QACtB,mBAAmB,EAAE,EAAE;KACxB,CAAC,CAAC;AACL,CAAC"}
@@ -1 +0,0 @@
1
- export * from './src/billing-v1-tax-region-tax-regions.context.js';
@@ -1,18 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qFAAmE"}
@@ -1 +0,0 @@
1
- export * from './src/billing-v1-tax-region-tax-regions.universal.js';
@@ -1,18 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../../index.typings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uFAAqE"}
@@ -1 +0,0 @@
1
- export * from './src/billing-v1-tax-region-tax-regions.meta.js';
@@ -1,18 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kFAAgE"}
@@ -1,23 +0,0 @@
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';
@@ -1,28 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,44 +0,0 @@
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>;