@usethrottle/api-client 6.3.0 → 6.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/dist/generated/index.d.ts +1 -0
  2. package/dist/generated/index.d.ts.map +1 -1
  3. package/dist/generated/index.js +1 -0
  4. package/dist/generated/index.js.map +1 -1
  5. package/dist/generated/services/CartsService.d.ts +279 -0
  6. package/dist/generated/services/CartsService.d.ts.map +1 -1
  7. package/dist/generated/services/CartsService.js.map +1 -1
  8. package/dist/generated/services/CustomerInvoicesService.d.ts +3 -3
  9. package/dist/generated/services/CustomerInvoicesService.js +3 -3
  10. package/dist/generated/services/DefaultService.d.ts +22 -0
  11. package/dist/generated/services/DefaultService.d.ts.map +1 -1
  12. package/dist/generated/services/DefaultService.js.map +1 -1
  13. package/dist/generated/services/FeesService.d.ts +1023 -0
  14. package/dist/generated/services/FeesService.d.ts.map +1 -0
  15. package/dist/generated/services/FeesService.js +555 -0
  16. package/dist/generated/services/FeesService.js.map +1 -0
  17. package/dist/generated/services/OrdersService.d.ts +485 -0
  18. package/dist/generated/services/OrdersService.d.ts.map +1 -1
  19. package/dist/generated/services/OrdersService.js +1 -0
  20. package/dist/generated/services/OrdersService.js.map +1 -1
  21. package/dist/generated/services/QuotesService.d.ts +241 -0
  22. package/dist/generated/services/QuotesService.d.ts.map +1 -1
  23. package/dist/generated/services/QuotesService.js.map +1 -1
  24. package/dist/generated/services/SubscriptionsService.d.ts +390 -0
  25. package/dist/generated/services/SubscriptionsService.d.ts.map +1 -1
  26. package/dist/generated/services/SubscriptionsService.js.map +1 -1
  27. package/package.json +3 -3
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FeesService.d.ts","sourceRoot":"","sources":["../../../src/generated/services/FeesService.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAGtE,qBAAa,WAAW;IACpB;;;;;OAKG;WACW,YA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AAC;KACL,CAAC;IAqBF;;;;;;;OAOG;WACW,4BAA4B,CACtC,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,EACb,sBAAsB,CAAC,EAAE,MAAM,GAChC,iBAAiB,CAAC;QACjB;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAC3B,IAAI,CAAC,EAAE;YACH;;eAEG;YACH,SAAS,CAAC,EAAE,MAAM,CAAC;YACnB,UAAU,CAAC,EAAE;gBACT,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;gBACvB,OAAO,CAAC,EAAE,OAAO,CAAC;aACrB,CAAC;SACL,CAAC;KACL,CAAC;CAoBL"}
@@ -0,0 +1,555 @@
1
+ import { OpenAPI } from '../core/OpenAPI.js';
2
+ import { request as __request } from '../core/request.js';
3
+ export class FeesService {
4
+ /**
5
+ * List the environment's fee definitions in display order (archived fees excluded).
6
+ * @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
7
+ * @returns any Default Response
8
+ * @throws ApiError
9
+ */
10
+ static getApiV1Fees(xThrottleEnvironmentId) {
11
+ return __request(OpenAPI, {
12
+ method: 'GET',
13
+ url: '/api/v1/fees',
14
+ headers: {
15
+ 'X-Throttle-Environment-Id': xThrottleEnvironmentId,
16
+ },
17
+ });
18
+ }
19
+ /**
20
+ * Create a fee definition: name (1-100), kind (percentage|flat), rateBps (1..10000, percentage only), flatAmounts / minAmounts / maxAmounts / minOrderAmounts (currency code to minor units), taxable, taxCode, appliesToOneTime, appliesToSubscription, customerGroupIds (null or [] = every customer), active. Fees charge only while order fees are enabled (`PUT /api/v1/fees/settings`). Errors: 422 fee_invalid (`details.field` names the input), 400 for an unknown field.
21
+ * @param requestBody
22
+ * @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
23
+ * @returns any Default Response
24
+ * @throws ApiError
25
+ */
26
+ static postApiV1Fees(requestBody, xThrottleEnvironmentId) {
27
+ return __request(OpenAPI, {
28
+ method: 'POST',
29
+ url: '/api/v1/fees',
30
+ headers: {
31
+ 'X-Throttle-Environment-Id': xThrottleEnvironmentId,
32
+ },
33
+ body: requestBody,
34
+ mediaType: 'application/json',
35
+ errors: {
36
+ 422: `\`fee_invalid\`: a value is out of range; \`details.field\` names the input. Unknown fields answer 400 \`validation_error\`.`,
37
+ },
38
+ });
39
+ }
40
+ /**
41
+ * Set the display order. `ids` must list every current fee exactly once, else 422 fee_invalid (`details.field` = `ids`).
42
+ * @param requestBody
43
+ * @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
44
+ * @returns any Default Response
45
+ * @throws ApiError
46
+ */
47
+ static postApiV1FeesReorder(requestBody, xThrottleEnvironmentId) {
48
+ return __request(OpenAPI, {
49
+ method: 'POST',
50
+ url: '/api/v1/fees/reorder',
51
+ headers: {
52
+ 'X-Throttle-Environment-Id': xThrottleEnvironmentId,
53
+ },
54
+ body: requestBody,
55
+ mediaType: 'application/json',
56
+ errors: {
57
+ 422: `\`fee_invalid\`: a value is out of range; \`details.field\` names the input. Unknown fields answer 400 \`validation_error\`.`,
58
+ },
59
+ });
60
+ }
61
+ /**
62
+ * Whether order fees are enabled for this environment. This flag is a kill switch: while it is off nothing is charged, and new orders, carts and quotes read `fees: []` and `feeTotal: 0` (a subscription keeps its stored snapshot; orders, payment links and invoices already created keep their fees). `available` says whether this application may turn fees on yet.
63
+ * @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
64
+ * @returns any Default Response
65
+ * @throws ApiError
66
+ */
67
+ static getApiV1FeesSettings(xThrottleEnvironmentId) {
68
+ return __request(OpenAPI, {
69
+ method: 'GET',
70
+ url: '/api/v1/fees/settings',
71
+ headers: {
72
+ 'X-Throttle-Environment-Id': xThrottleEnvironmentId,
73
+ },
74
+ });
75
+ }
76
+ /**
77
+ * Enable or disable order fees for this environment. Other settings are untouched. Turning fees off stops charging at once, including on already-issued quotes and on renewals; orders, payment links and invoices already created keep their fees. Turning fees on answers 403 `fees_not_available` while fees are not available for the application yet (`available: false` on GET); turning them off is always allowed.
78
+ * @param requestBody
79
+ * @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
80
+ * @returns any Default Response
81
+ * @throws ApiError
82
+ */
83
+ static putApiV1FeesSettings(requestBody, xThrottleEnvironmentId) {
84
+ return __request(OpenAPI, {
85
+ method: 'PUT',
86
+ url: '/api/v1/fees/settings',
87
+ headers: {
88
+ 'X-Throttle-Environment-Id': xThrottleEnvironmentId,
89
+ },
90
+ body: requestBody,
91
+ mediaType: 'application/json',
92
+ errors: {
93
+ 403: `\`fees_not_available\`: order fees are not available for this application yet.`,
94
+ },
95
+ });
96
+ }
97
+ /**
98
+ * Update a fee definition (any subset of the create fields). Documents that already froze the fee keep their rows. Errors: 422 fee_invalid, 404 not_found, 400 for an unknown field.
99
+ * @param id Fee definition id (UUID).
100
+ * @param requestBody
101
+ * @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
102
+ * @returns any Default Response
103
+ * @throws ApiError
104
+ */
105
+ static patchApiV1Fees(id, requestBody, xThrottleEnvironmentId) {
106
+ return __request(OpenAPI, {
107
+ method: 'PATCH',
108
+ url: '/api/v1/fees/{id}',
109
+ path: {
110
+ 'id': id,
111
+ },
112
+ headers: {
113
+ 'X-Throttle-Environment-Id': xThrottleEnvironmentId,
114
+ },
115
+ body: requestBody,
116
+ mediaType: 'application/json',
117
+ errors: {
118
+ 422: `\`fee_invalid\`: a value is out of range; \`details.field\` names the input. Unknown fields answer 400 \`validation_error\`.`,
119
+ },
120
+ });
121
+ }
122
+ /**
123
+ * Archive a fee definition. Documents that already froze it keep their rows. 404 not_found for an unknown or already archived id.
124
+ * @param id Fee definition id (UUID).
125
+ * @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
126
+ * @returns any Default Response
127
+ * @throws ApiError
128
+ */
129
+ static deleteApiV1Fees(id, xThrottleEnvironmentId) {
130
+ return __request(OpenAPI, {
131
+ method: 'DELETE',
132
+ url: '/api/v1/fees/{id}',
133
+ path: {
134
+ 'id': id,
135
+ },
136
+ headers: {
137
+ 'X-Throttle-Environment-Id': xThrottleEnvironmentId,
138
+ },
139
+ });
140
+ }
141
+ /**
142
+ * Add a fee to this cart: `{ feeDefinitionId }` for a global fee, or a custom fee (`name`, `kind`, `rateBps` | `flatAmount`, `taxable`, ...). Returns the cart with its totals recomputed. Merchant credentials only: the route needs `orders:write` plus the `application:orders:write` permission (quote revision routes: `quotes:write` plus `application:quotes:write`; subscription routes: `subscriptions:write` plus `application:orders:write`). Publishable keys, extension sessions and payment-method tokens answer 403 `permission_denied`. Errors: 409 `fees_locked` (money is on the document: an order with a payment, an order that is not draft or awaiting payment, a comped order, a cart that became an order, an issued quote revision), 409 `fee_already_added` (adding a global fee the document already has), 409 `order_has_cart` (the order is priced from a cart whose fees were never frozen, such as a connector snapshot order, so a fee set on it would not survive payment), 409 `fees_disabled` (order fees are turned off; removing a fee is still allowed on an order without a cart and on a subscription), 422 `fee_invalid` (`details.field` names the input; a taxable fee on a direct order), 422 `fee_recalculation_failed` (tax or pricing could not be re-run; nothing changed), 422 for a fee in a different currency than the document, 400 `validation_error` for an unknown field, 404 `not_found`.
143
+ * @param id The cart, order or quote id (UUID).
144
+ * @param requestBody
145
+ * @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
146
+ * @returns any Default Response
147
+ * @throws ApiError
148
+ */
149
+ static postApiV1CartsFees(id, requestBody, xThrottleEnvironmentId) {
150
+ return __request(OpenAPI, {
151
+ method: 'POST',
152
+ url: '/api/v1/carts/{id}/fees',
153
+ path: {
154
+ 'id': id,
155
+ },
156
+ headers: {
157
+ 'X-Throttle-Environment-Id': xThrottleEnvironmentId,
158
+ },
159
+ body: requestBody,
160
+ mediaType: 'application/json',
161
+ errors: {
162
+ 400: `\`validation_error\`: an unknown or malformed field.`,
163
+ 403: `\`permission_denied\`: not a merchant credential.`,
164
+ 404: `\`not_found\`: the document or fee row does not exist in this environment.`,
165
+ 409: `\`fees_locked\`, \`fees_disabled\`, \`fee_already_added\` or \`order_has_cart\`.`,
166
+ 422: `\`fee_invalid\` or \`fee_recalculation_failed\`.`,
167
+ },
168
+ });
169
+ }
170
+ /**
171
+ * Change the rate (`rateBps`) or amount (`flatAmount`) of one fee on this cart only. Returns the cart with totals recomputed. Merchant credentials only: the route needs `orders:write` plus the `application:orders:write` permission (quote revision routes: `quotes:write` plus `application:quotes:write`; subscription routes: `subscriptions:write` plus `application:orders:write`). Publishable keys, extension sessions and payment-method tokens answer 403 `permission_denied`. Errors: 409 `fees_locked` (money is on the document: an order with a payment, an order that is not draft or awaiting payment, a comped order, a cart that became an order, an issued quote revision), 409 `fee_already_added` (adding a global fee the document already has), 409 `order_has_cart` (the order is priced from a cart whose fees were never frozen, such as a connector snapshot order, so a fee set on it would not survive payment), 409 `fees_disabled` (order fees are turned off; removing a fee is still allowed on an order without a cart and on a subscription), 422 `fee_invalid` (`details.field` names the input; a taxable fee on a direct order), 422 `fee_recalculation_failed` (tax or pricing could not be re-run; nothing changed), 422 for a fee in a different currency than the document, 400 `validation_error` for an unknown field, 404 `not_found`.
172
+ * @param id
173
+ * @param feeId The fee row id on this document (the `id` inside `fees`).
174
+ * @param requestBody
175
+ * @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
176
+ * @returns any Default Response
177
+ * @throws ApiError
178
+ */
179
+ static patchApiV1CartsFees(id, feeId, requestBody, xThrottleEnvironmentId) {
180
+ return __request(OpenAPI, {
181
+ method: 'PATCH',
182
+ url: '/api/v1/carts/{id}/fees/{feeId}',
183
+ path: {
184
+ 'id': id,
185
+ 'feeId': feeId,
186
+ },
187
+ headers: {
188
+ 'X-Throttle-Environment-Id': xThrottleEnvironmentId,
189
+ },
190
+ body: requestBody,
191
+ mediaType: 'application/json',
192
+ errors: {
193
+ 400: `\`validation_error\`: an unknown or malformed field.`,
194
+ 403: `\`permission_denied\`: not a merchant credential.`,
195
+ 404: `\`not_found\`: the document or fee row does not exist in this environment.`,
196
+ 409: `\`fees_locked\`, \`fees_disabled\`, \`fee_already_added\` or \`order_has_cart\`.`,
197
+ 422: `\`fee_invalid\` or \`fee_recalculation_failed\`.`,
198
+ },
199
+ });
200
+ }
201
+ /**
202
+ * Remove a fee from this cart (kept as a removed row, so automatic fees do not come back). Returns the cart. Merchant credentials only: the route needs `orders:write` plus the `application:orders:write` permission (quote revision routes: `quotes:write` plus `application:quotes:write`; subscription routes: `subscriptions:write` plus `application:orders:write`). Publishable keys, extension sessions and payment-method tokens answer 403 `permission_denied`. Errors: 409 `fees_locked` (money is on the document: an order with a payment, an order that is not draft or awaiting payment, a comped order, a cart that became an order, an issued quote revision), 409 `fee_already_added` (adding a global fee the document already has), 409 `order_has_cart` (the order is priced from a cart whose fees were never frozen, such as a connector snapshot order, so a fee set on it would not survive payment), 409 `fees_disabled` (order fees are turned off; removing a fee is still allowed on an order without a cart and on a subscription), 422 `fee_invalid` (`details.field` names the input; a taxable fee on a direct order), 422 `fee_recalculation_failed` (tax or pricing could not be re-run; nothing changed), 422 for a fee in a different currency than the document, 400 `validation_error` for an unknown field, 404 `not_found`.
203
+ * @param id
204
+ * @param feeId The fee row id on this document (the `id` inside `fees`).
205
+ * @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
206
+ * @returns any Default Response
207
+ * @throws ApiError
208
+ */
209
+ static deleteApiV1CartsFees(id, feeId, xThrottleEnvironmentId) {
210
+ return __request(OpenAPI, {
211
+ method: 'DELETE',
212
+ url: '/api/v1/carts/{id}/fees/{feeId}',
213
+ path: {
214
+ 'id': id,
215
+ 'feeId': feeId,
216
+ },
217
+ headers: {
218
+ 'X-Throttle-Environment-Id': xThrottleEnvironmentId,
219
+ },
220
+ errors: {
221
+ 400: `\`validation_error\`: an unknown or malformed field.`,
222
+ 403: `\`permission_denied\`: not a merchant credential.`,
223
+ 404: `\`not_found\`: the document or fee row does not exist in this environment.`,
224
+ 409: `\`fees_locked\`, \`fees_disabled\`, \`fee_already_added\` or \`order_has_cart\`.`,
225
+ 422: `\`fee_invalid\` or \`fee_recalculation_failed\`.`,
226
+ },
227
+ });
228
+ }
229
+ /**
230
+ * Bring a removed fee back. Returns the cart. Merchant credentials only: the route needs `orders:write` plus the `application:orders:write` permission (quote revision routes: `quotes:write` plus `application:quotes:write`; subscription routes: `subscriptions:write` plus `application:orders:write`). Publishable keys, extension sessions and payment-method tokens answer 403 `permission_denied`. Errors: 409 `fees_locked` (money is on the document: an order with a payment, an order that is not draft or awaiting payment, a comped order, a cart that became an order, an issued quote revision), 409 `fee_already_added` (adding a global fee the document already has), 409 `order_has_cart` (the order is priced from a cart whose fees were never frozen, such as a connector snapshot order, so a fee set on it would not survive payment), 409 `fees_disabled` (order fees are turned off; removing a fee is still allowed on an order without a cart and on a subscription), 422 `fee_invalid` (`details.field` names the input; a taxable fee on a direct order), 422 `fee_recalculation_failed` (tax or pricing could not be re-run; nothing changed), 422 for a fee in a different currency than the document, 400 `validation_error` for an unknown field, 404 `not_found`.
231
+ * @param id
232
+ * @param feeId The fee row id on this document (the `id` inside `fees`).
233
+ * @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
234
+ * @returns any Default Response
235
+ * @throws ApiError
236
+ */
237
+ static postApiV1CartsFeesRestore(id, feeId, xThrottleEnvironmentId) {
238
+ return __request(OpenAPI, {
239
+ method: 'POST',
240
+ url: '/api/v1/carts/{id}/fees/{feeId}/restore',
241
+ path: {
242
+ 'id': id,
243
+ 'feeId': feeId,
244
+ },
245
+ headers: {
246
+ 'X-Throttle-Environment-Id': xThrottleEnvironmentId,
247
+ },
248
+ errors: {
249
+ 400: `\`validation_error\`: an unknown or malformed field.`,
250
+ 403: `\`permission_denied\`: not a merchant credential.`,
251
+ 404: `\`not_found\`: the document or fee row does not exist in this environment.`,
252
+ 409: `\`fees_locked\`, \`fees_disabled\`, \`fee_already_added\` or \`order_has_cart\`.`,
253
+ 422: `\`fee_invalid\` or \`fee_recalculation_failed\`.`,
254
+ },
255
+ });
256
+ }
257
+ /**
258
+ * Add a fee to this order: `{ feeDefinitionId }` for a global fee, or a custom fee (`name`, `kind`, `rateBps` | `flatAmount`, `taxable`, ...). Returns the order with its totals recomputed. Merchant credentials only: the route needs `orders:write` plus the `application:orders:write` permission (quote revision routes: `quotes:write` plus `application:quotes:write`; subscription routes: `subscriptions:write` plus `application:orders:write`). Publishable keys, extension sessions and payment-method tokens answer 403 `permission_denied`. Errors: 409 `fees_locked` (money is on the document: an order with a payment, an order that is not draft or awaiting payment, a comped order, a cart that became an order, an issued quote revision), 409 `fee_already_added` (adding a global fee the document already has), 409 `order_has_cart` (the order is priced from a cart whose fees were never frozen, such as a connector snapshot order, so a fee set on it would not survive payment), 409 `fees_disabled` (order fees are turned off; removing a fee is still allowed on an order without a cart and on a subscription), 422 `fee_invalid` (`details.field` names the input; a taxable fee on a direct order), 422 `fee_recalculation_failed` (tax or pricing could not be re-run; nothing changed), 422 for a fee in a different currency than the document, 400 `validation_error` for an unknown field, 404 `not_found`.
259
+ * @param id The cart, order or quote id (UUID).
260
+ * @param requestBody
261
+ * @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
262
+ * @returns any Default Response
263
+ * @throws ApiError
264
+ */
265
+ static postApiV1OrdersFees(id, requestBody, xThrottleEnvironmentId) {
266
+ return __request(OpenAPI, {
267
+ method: 'POST',
268
+ url: '/api/v1/orders/{id}/fees',
269
+ path: {
270
+ 'id': id,
271
+ },
272
+ headers: {
273
+ 'X-Throttle-Environment-Id': xThrottleEnvironmentId,
274
+ },
275
+ body: requestBody,
276
+ mediaType: 'application/json',
277
+ errors: {
278
+ 400: `\`validation_error\`: an unknown or malformed field.`,
279
+ 403: `\`permission_denied\`: not a merchant credential.`,
280
+ 404: `\`not_found\`: the document or fee row does not exist in this environment.`,
281
+ 409: `\`fees_locked\`, \`fees_disabled\`, \`fee_already_added\` or \`order_has_cart\`.`,
282
+ 422: `\`fee_invalid\` or \`fee_recalculation_failed\`.`,
283
+ },
284
+ });
285
+ }
286
+ /**
287
+ * Change the rate (`rateBps`) or amount (`flatAmount`) of one fee on this order only. Returns the order with totals recomputed. Merchant credentials only: the route needs `orders:write` plus the `application:orders:write` permission (quote revision routes: `quotes:write` plus `application:quotes:write`; subscription routes: `subscriptions:write` plus `application:orders:write`). Publishable keys, extension sessions and payment-method tokens answer 403 `permission_denied`. Errors: 409 `fees_locked` (money is on the document: an order with a payment, an order that is not draft or awaiting payment, a comped order, a cart that became an order, an issued quote revision), 409 `fee_already_added` (adding a global fee the document already has), 409 `order_has_cart` (the order is priced from a cart whose fees were never frozen, such as a connector snapshot order, so a fee set on it would not survive payment), 409 `fees_disabled` (order fees are turned off; removing a fee is still allowed on an order without a cart and on a subscription), 422 `fee_invalid` (`details.field` names the input; a taxable fee on a direct order), 422 `fee_recalculation_failed` (tax or pricing could not be re-run; nothing changed), 422 for a fee in a different currency than the document, 400 `validation_error` for an unknown field, 404 `not_found`.
288
+ * @param id
289
+ * @param feeId The fee row id on this document (the `id` inside `fees`).
290
+ * @param requestBody
291
+ * @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
292
+ * @returns any Default Response
293
+ * @throws ApiError
294
+ */
295
+ static patchApiV1OrdersFees(id, feeId, requestBody, xThrottleEnvironmentId) {
296
+ return __request(OpenAPI, {
297
+ method: 'PATCH',
298
+ url: '/api/v1/orders/{id}/fees/{feeId}',
299
+ path: {
300
+ 'id': id,
301
+ 'feeId': feeId,
302
+ },
303
+ headers: {
304
+ 'X-Throttle-Environment-Id': xThrottleEnvironmentId,
305
+ },
306
+ body: requestBody,
307
+ mediaType: 'application/json',
308
+ errors: {
309
+ 400: `\`validation_error\`: an unknown or malformed field.`,
310
+ 403: `\`permission_denied\`: not a merchant credential.`,
311
+ 404: `\`not_found\`: the document or fee row does not exist in this environment.`,
312
+ 409: `\`fees_locked\`, \`fees_disabled\`, \`fee_already_added\` or \`order_has_cart\`.`,
313
+ 422: `\`fee_invalid\` or \`fee_recalculation_failed\`.`,
314
+ },
315
+ });
316
+ }
317
+ /**
318
+ * Remove a fee from this order (kept as a removed row, so automatic fees do not come back). Returns the order. Merchant credentials only: the route needs `orders:write` plus the `application:orders:write` permission (quote revision routes: `quotes:write` plus `application:quotes:write`; subscription routes: `subscriptions:write` plus `application:orders:write`). Publishable keys, extension sessions and payment-method tokens answer 403 `permission_denied`. Errors: 409 `fees_locked` (money is on the document: an order with a payment, an order that is not draft or awaiting payment, a comped order, a cart that became an order, an issued quote revision), 409 `fee_already_added` (adding a global fee the document already has), 409 `order_has_cart` (the order is priced from a cart whose fees were never frozen, such as a connector snapshot order, so a fee set on it would not survive payment), 409 `fees_disabled` (order fees are turned off; removing a fee is still allowed on an order without a cart and on a subscription), 422 `fee_invalid` (`details.field` names the input; a taxable fee on a direct order), 422 `fee_recalculation_failed` (tax or pricing could not be re-run; nothing changed), 422 for a fee in a different currency than the document, 400 `validation_error` for an unknown field, 404 `not_found`.
319
+ * @param id
320
+ * @param feeId The fee row id on this document (the `id` inside `fees`).
321
+ * @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
322
+ * @returns any Default Response
323
+ * @throws ApiError
324
+ */
325
+ static deleteApiV1OrdersFees(id, feeId, xThrottleEnvironmentId) {
326
+ return __request(OpenAPI, {
327
+ method: 'DELETE',
328
+ url: '/api/v1/orders/{id}/fees/{feeId}',
329
+ path: {
330
+ 'id': id,
331
+ 'feeId': feeId,
332
+ },
333
+ headers: {
334
+ 'X-Throttle-Environment-Id': xThrottleEnvironmentId,
335
+ },
336
+ errors: {
337
+ 400: `\`validation_error\`: an unknown or malformed field.`,
338
+ 403: `\`permission_denied\`: not a merchant credential.`,
339
+ 404: `\`not_found\`: the document or fee row does not exist in this environment.`,
340
+ 409: `\`fees_locked\`, \`fees_disabled\`, \`fee_already_added\` or \`order_has_cart\`.`,
341
+ 422: `\`fee_invalid\` or \`fee_recalculation_failed\`.`,
342
+ },
343
+ });
344
+ }
345
+ /**
346
+ * Bring a removed fee back. Returns the order. Merchant credentials only: the route needs `orders:write` plus the `application:orders:write` permission (quote revision routes: `quotes:write` plus `application:quotes:write`; subscription routes: `subscriptions:write` plus `application:orders:write`). Publishable keys, extension sessions and payment-method tokens answer 403 `permission_denied`. Errors: 409 `fees_locked` (money is on the document: an order with a payment, an order that is not draft or awaiting payment, a comped order, a cart that became an order, an issued quote revision), 409 `fee_already_added` (adding a global fee the document already has), 409 `order_has_cart` (the order is priced from a cart whose fees were never frozen, such as a connector snapshot order, so a fee set on it would not survive payment), 409 `fees_disabled` (order fees are turned off; removing a fee is still allowed on an order without a cart and on a subscription), 422 `fee_invalid` (`details.field` names the input; a taxable fee on a direct order), 422 `fee_recalculation_failed` (tax or pricing could not be re-run; nothing changed), 422 for a fee in a different currency than the document, 400 `validation_error` for an unknown field, 404 `not_found`.
347
+ * @param id
348
+ * @param feeId The fee row id on this document (the `id` inside `fees`).
349
+ * @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
350
+ * @returns any Default Response
351
+ * @throws ApiError
352
+ */
353
+ static postApiV1OrdersFeesRestore(id, feeId, xThrottleEnvironmentId) {
354
+ return __request(OpenAPI, {
355
+ method: 'POST',
356
+ url: '/api/v1/orders/{id}/fees/{feeId}/restore',
357
+ path: {
358
+ 'id': id,
359
+ 'feeId': feeId,
360
+ },
361
+ headers: {
362
+ 'X-Throttle-Environment-Id': xThrottleEnvironmentId,
363
+ },
364
+ errors: {
365
+ 400: `\`validation_error\`: an unknown or malformed field.`,
366
+ 403: `\`permission_denied\`: not a merchant credential.`,
367
+ 404: `\`not_found\`: the document or fee row does not exist in this environment.`,
368
+ 409: `\`fees_locked\`, \`fees_disabled\`, \`fee_already_added\` or \`order_has_cart\`.`,
369
+ 422: `\`fee_invalid\` or \`fee_recalculation_failed\`.`,
370
+ },
371
+ });
372
+ }
373
+ /**
374
+ * Add a fee to this quote revision: `{ feeDefinitionId }` for a global fee, or a custom fee (`name`, `kind`, `rateBps` | `flatAmount`, `taxable`, ...). Returns the quote revision with its totals recomputed. Merchant credentials only: the route needs `orders:write` plus the `application:orders:write` permission (quote revision routes: `quotes:write` plus `application:quotes:write`; subscription routes: `subscriptions:write` plus `application:orders:write`). Publishable keys, extension sessions and payment-method tokens answer 403 `permission_denied`. Errors: 409 `fees_locked` (money is on the document: an order with a payment, an order that is not draft or awaiting payment, a comped order, a cart that became an order, an issued quote revision), 409 `fee_already_added` (adding a global fee the document already has), 409 `order_has_cart` (the order is priced from a cart whose fees were never frozen, such as a connector snapshot order, so a fee set on it would not survive payment), 409 `fees_disabled` (order fees are turned off; removing a fee is still allowed on an order without a cart and on a subscription), 422 `fee_invalid` (`details.field` names the input; a taxable fee on a direct order), 422 `fee_recalculation_failed` (tax or pricing could not be re-run; nothing changed), 422 for a fee in a different currency than the document, 400 `validation_error` for an unknown field, 404 `not_found`.
375
+ * @param id Quote id.
376
+ * @param revId Revision id (the working revision).
377
+ * @param requestBody
378
+ * @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
379
+ * @returns any Default Response
380
+ * @throws ApiError
381
+ */
382
+ static postApiV1QuotesRevisionsFees(id, revId, requestBody, xThrottleEnvironmentId) {
383
+ return __request(OpenAPI, {
384
+ method: 'POST',
385
+ url: '/api/v1/quotes/{id}/revisions/{revId}/fees',
386
+ path: {
387
+ 'id': id,
388
+ 'revId': revId,
389
+ },
390
+ headers: {
391
+ 'X-Throttle-Environment-Id': xThrottleEnvironmentId,
392
+ },
393
+ body: requestBody,
394
+ mediaType: 'application/json',
395
+ errors: {
396
+ 400: `\`validation_error\`: an unknown or malformed field.`,
397
+ 403: `\`permission_denied\`: not a merchant credential.`,
398
+ 404: `\`not_found\`: the document or fee row does not exist in this environment.`,
399
+ 409: `\`fees_locked\`, \`fees_disabled\`, \`fee_already_added\` or \`order_has_cart\`.`,
400
+ 422: `\`fee_invalid\` or \`fee_recalculation_failed\`.`,
401
+ },
402
+ });
403
+ }
404
+ /**
405
+ * Change the rate (`rateBps`) or amount (`flatAmount`) of one fee on this quote revision only. Returns the quote revision with totals recomputed. Merchant credentials only: the route needs `orders:write` plus the `application:orders:write` permission (quote revision routes: `quotes:write` plus `application:quotes:write`; subscription routes: `subscriptions:write` plus `application:orders:write`). Publishable keys, extension sessions and payment-method tokens answer 403 `permission_denied`. Errors: 409 `fees_locked` (money is on the document: an order with a payment, an order that is not draft or awaiting payment, a comped order, a cart that became an order, an issued quote revision), 409 `fee_already_added` (adding a global fee the document already has), 409 `order_has_cart` (the order is priced from a cart whose fees were never frozen, such as a connector snapshot order, so a fee set on it would not survive payment), 409 `fees_disabled` (order fees are turned off; removing a fee is still allowed on an order without a cart and on a subscription), 422 `fee_invalid` (`details.field` names the input; a taxable fee on a direct order), 422 `fee_recalculation_failed` (tax or pricing could not be re-run; nothing changed), 422 for a fee in a different currency than the document, 400 `validation_error` for an unknown field, 404 `not_found`.
406
+ * @param id Quote id.
407
+ * @param revId Revision id (the working revision).
408
+ * @param feeId The fee row id on this revision.
409
+ * @param requestBody
410
+ * @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
411
+ * @returns any Default Response
412
+ * @throws ApiError
413
+ */
414
+ static patchApiV1QuotesRevisionsFees(id, revId, feeId, requestBody, xThrottleEnvironmentId) {
415
+ return __request(OpenAPI, {
416
+ method: 'PATCH',
417
+ url: '/api/v1/quotes/{id}/revisions/{revId}/fees/{feeId}',
418
+ path: {
419
+ 'id': id,
420
+ 'revId': revId,
421
+ 'feeId': feeId,
422
+ },
423
+ headers: {
424
+ 'X-Throttle-Environment-Id': xThrottleEnvironmentId,
425
+ },
426
+ body: requestBody,
427
+ mediaType: 'application/json',
428
+ errors: {
429
+ 400: `\`validation_error\`: an unknown or malformed field.`,
430
+ 403: `\`permission_denied\`: not a merchant credential.`,
431
+ 404: `\`not_found\`: the document or fee row does not exist in this environment.`,
432
+ 409: `\`fees_locked\`, \`fees_disabled\`, \`fee_already_added\` or \`order_has_cart\`.`,
433
+ 422: `\`fee_invalid\` or \`fee_recalculation_failed\`.`,
434
+ },
435
+ });
436
+ }
437
+ /**
438
+ * Remove a fee from this quote revision (kept as a removed row, so automatic fees do not come back). Returns the quote revision. Merchant credentials only: the route needs `orders:write` plus the `application:orders:write` permission (quote revision routes: `quotes:write` plus `application:quotes:write`; subscription routes: `subscriptions:write` plus `application:orders:write`). Publishable keys, extension sessions and payment-method tokens answer 403 `permission_denied`. Errors: 409 `fees_locked` (money is on the document: an order with a payment, an order that is not draft or awaiting payment, a comped order, a cart that became an order, an issued quote revision), 409 `fee_already_added` (adding a global fee the document already has), 409 `order_has_cart` (the order is priced from a cart whose fees were never frozen, such as a connector snapshot order, so a fee set on it would not survive payment), 409 `fees_disabled` (order fees are turned off; removing a fee is still allowed on an order without a cart and on a subscription), 422 `fee_invalid` (`details.field` names the input; a taxable fee on a direct order), 422 `fee_recalculation_failed` (tax or pricing could not be re-run; nothing changed), 422 for a fee in a different currency than the document, 400 `validation_error` for an unknown field, 404 `not_found`.
439
+ * @param id Quote id.
440
+ * @param revId Revision id (the working revision).
441
+ * @param feeId The fee row id on this revision.
442
+ * @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
443
+ * @returns any Default Response
444
+ * @throws ApiError
445
+ */
446
+ static deleteApiV1QuotesRevisionsFees(id, revId, feeId, xThrottleEnvironmentId) {
447
+ return __request(OpenAPI, {
448
+ method: 'DELETE',
449
+ url: '/api/v1/quotes/{id}/revisions/{revId}/fees/{feeId}',
450
+ path: {
451
+ 'id': id,
452
+ 'revId': revId,
453
+ 'feeId': feeId,
454
+ },
455
+ headers: {
456
+ 'X-Throttle-Environment-Id': xThrottleEnvironmentId,
457
+ },
458
+ errors: {
459
+ 400: `\`validation_error\`: an unknown or malformed field.`,
460
+ 403: `\`permission_denied\`: not a merchant credential.`,
461
+ 404: `\`not_found\`: the document or fee row does not exist in this environment.`,
462
+ 409: `\`fees_locked\`, \`fees_disabled\`, \`fee_already_added\` or \`order_has_cart\`.`,
463
+ 422: `\`fee_invalid\` or \`fee_recalculation_failed\`.`,
464
+ },
465
+ });
466
+ }
467
+ /**
468
+ * Bring a removed fee back. Returns the quote revision. Merchant credentials only: the route needs `orders:write` plus the `application:orders:write` permission (quote revision routes: `quotes:write` plus `application:quotes:write`; subscription routes: `subscriptions:write` plus `application:orders:write`). Publishable keys, extension sessions and payment-method tokens answer 403 `permission_denied`. Errors: 409 `fees_locked` (money is on the document: an order with a payment, an order that is not draft or awaiting payment, a comped order, a cart that became an order, an issued quote revision), 409 `fee_already_added` (adding a global fee the document already has), 409 `order_has_cart` (the order is priced from a cart whose fees were never frozen, such as a connector snapshot order, so a fee set on it would not survive payment), 409 `fees_disabled` (order fees are turned off; removing a fee is still allowed on an order without a cart and on a subscription), 422 `fee_invalid` (`details.field` names the input; a taxable fee on a direct order), 422 `fee_recalculation_failed` (tax or pricing could not be re-run; nothing changed), 422 for a fee in a different currency than the document, 400 `validation_error` for an unknown field, 404 `not_found`.
469
+ * @param id Quote id.
470
+ * @param revId Revision id (the working revision).
471
+ * @param feeId The fee row id on this revision.
472
+ * @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
473
+ * @returns any Default Response
474
+ * @throws ApiError
475
+ */
476
+ static postApiV1QuotesRevisionsFeesRestore(id, revId, feeId, xThrottleEnvironmentId) {
477
+ return __request(OpenAPI, {
478
+ method: 'POST',
479
+ url: '/api/v1/quotes/{id}/revisions/{revId}/fees/{feeId}/restore',
480
+ path: {
481
+ 'id': id,
482
+ 'revId': revId,
483
+ 'feeId': feeId,
484
+ },
485
+ headers: {
486
+ 'X-Throttle-Environment-Id': xThrottleEnvironmentId,
487
+ },
488
+ errors: {
489
+ 400: `\`validation_error\`: an unknown or malformed field.`,
490
+ 403: `\`permission_denied\`: not a merchant credential.`,
491
+ 404: `\`not_found\`: the document or fee row does not exist in this environment.`,
492
+ 409: `\`fees_locked\`, \`fees_disabled\`, \`fee_already_added\` or \`order_has_cart\`.`,
493
+ 422: `\`fee_invalid\` or \`fee_recalculation_failed\`.`,
494
+ },
495
+ });
496
+ }
497
+ /**
498
+ * Add a global fee to this subscription: `{ feeDefinitionId }`. Renewals charge it from the next one; the current period is not charged. Merchant credentials only: the route needs `orders:write` plus the `application:orders:write` permission (quote revision routes: `quotes:write` plus `application:quotes:write`; subscription routes: `subscriptions:write` plus `application:orders:write`). Publishable keys, extension sessions and payment-method tokens answer 403 `permission_denied`. Errors: 404 `not_found`, 409 `fees_disabled` when order fees are off, 409 `fee_already_added`, 422 `fee_invalid` when the fee does not apply to subscriptions. Returns the subscription with its `fees`.
499
+ * @param id The cart, order or quote id (UUID).
500
+ * @param requestBody
501
+ * @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
502
+ * @returns any Default Response
503
+ * @throws ApiError
504
+ */
505
+ static postApiV1SubscriptionsFees(id, requestBody, xThrottleEnvironmentId) {
506
+ return __request(OpenAPI, {
507
+ method: 'POST',
508
+ url: '/api/v1/subscriptions/{id}/fees',
509
+ path: {
510
+ 'id': id,
511
+ },
512
+ headers: {
513
+ 'X-Throttle-Environment-Id': xThrottleEnvironmentId,
514
+ },
515
+ body: requestBody,
516
+ mediaType: 'application/json',
517
+ errors: {
518
+ 400: `\`validation_error\`: an unknown or malformed field.`,
519
+ 403: `\`permission_denied\`: not a merchant credential.`,
520
+ 404: `\`not_found\`: the document or fee row does not exist in this environment.`,
521
+ 409: `\`fees_locked\`, \`fees_disabled\`, \`fee_already_added\` or \`order_has_cart\`.`,
522
+ 422: `\`fee_invalid\` or \`fee_recalculation_failed\`.`,
523
+ },
524
+ });
525
+ }
526
+ /**
527
+ * Remove a fee from this subscription: renewals stop charging it. Allowed with order fees off. Merchant credentials only: the route needs `orders:write` plus the `application:orders:write` permission (quote revision routes: `quotes:write` plus `application:quotes:write`; subscription routes: `subscriptions:write` plus `application:orders:write`). Publishable keys, extension sessions and payment-method tokens answer 403 `permission_denied`. Returns the subscription with its `fees`.
528
+ * @param id
529
+ * @param feeId The fee row id on this document (the `id` inside `fees`).
530
+ * @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
531
+ * @returns any Default Response
532
+ * @throws ApiError
533
+ */
534
+ static deleteApiV1SubscriptionsFees(id, feeId, xThrottleEnvironmentId) {
535
+ return __request(OpenAPI, {
536
+ method: 'DELETE',
537
+ url: '/api/v1/subscriptions/{id}/fees/{feeId}',
538
+ path: {
539
+ 'id': id,
540
+ 'feeId': feeId,
541
+ },
542
+ headers: {
543
+ 'X-Throttle-Environment-Id': xThrottleEnvironmentId,
544
+ },
545
+ errors: {
546
+ 400: `\`validation_error\`: an unknown or malformed field.`,
547
+ 403: `\`permission_denied\`: not a merchant credential.`,
548
+ 404: `\`not_found\`: the document or fee row does not exist in this environment.`,
549
+ 409: `\`fees_locked\`, \`fees_disabled\`, \`fee_already_added\` or \`order_has_cart\`.`,
550
+ 422: `\`fee_invalid\` or \`fee_recalculation_failed\`.`,
551
+ },
552
+ });
553
+ }
554
+ }
555
+ //# sourceMappingURL=FeesService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FeesService.js","sourceRoot":"","sources":["../../../src/generated/services/FeesService.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC1D,MAAM,OAAO,WAAW;IACpB;;;;;OAKG;IACI,MAAM,CAAC,YAAY,CACtB,sBAA+B;QAoE/B,OAAO,SAAS,CAAC,OAAO,EAAE;YACtB,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,cAAc;YACnB,OAAO,EAAE;gBACL,2BAA2B,EAAE,sBAAsB;aACtD;SACJ,CAAC,CAAC;IACP,CAAC;IACD;;;;;;OAMG;IACI,MAAM,CAAC,aAAa,CACvB,WAqDC,EACD,sBAA+B;QAoE/B,OAAO,SAAS,CAAC,OAAO,EAAE;YACtB,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,cAAc;YACnB,OAAO,EAAE;gBACL,2BAA2B,EAAE,sBAAsB;aACtD;YACD,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;YAC7B,MAAM,EAAE;gBACJ,GAAG,EAAE,8HAA8H;aACtI;SACJ,CAAC,CAAC;IACP,CAAC;IACD;;;;;;OAMG;IACI,MAAM,CAAC,oBAAoB,CAC9B,WAKC,EACD,sBAA+B;QAoE/B,OAAO,SAAS,CAAC,OAAO,EAAE;YACtB,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,sBAAsB;YAC3B,OAAO,EAAE;gBACL,2BAA2B,EAAE,sBAAsB;aACtD;YACD,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;YAC7B,MAAM,EAAE;gBACJ,GAAG,EAAE,8HAA8H;aACtI;SACJ,CAAC,CAAC;IACP,CAAC;IACD;;;;;OAKG;IACI,MAAM,C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