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