@zinn-digital/sdk 0.1.1941 → 0.1.1942

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.
@@ -41855,6 +41855,29 @@ export interface paths {
41855
41855
  patch?: never;
41856
41856
  trace?: never;
41857
41857
  };
41858
+ "/v1/orders/{orderId}/cancel": {
41859
+ parameters: {
41860
+ query?: never;
41861
+ header?: never;
41862
+ path: {
41863
+ /** @description The order's id. */
41864
+ orderId: components["parameters"]["OrderId"];
41865
+ };
41866
+ cookie?: never;
41867
+ };
41868
+ get?: never;
41869
+ put?: never;
41870
+ /**
41871
+ * Cancel your own unpaid order.
41872
+ * @description DAY-0296. Cancels an order that is still `pending_payment` or `payment_failed` and has no payment captured, refunded or still being confirmed (our record first, then the payment provider is asked). Nothing is charged. Cancelling an order that is already `canceled` returns it unchanged. A payment taken or still confirming is a `409` (`refusal.commerce.orderPaymentConfirmingCancel`); an order in any other state is a `409` (`refusal.commerce.orderNotUnpaidCancel`); another organization's order is a `404`. Requires `billing.payment.manage`. When the platform's unpaid-order expiry is switched on, an unpaid order is also cancelled automatically 7 days after placing, at least 48 hours after the reminder that named that date.
41873
+ */
41874
+ post: operations["cancelUnpaidOrder"];
41875
+ delete?: never;
41876
+ options?: never;
41877
+ head?: never;
41878
+ patch?: never;
41879
+ trace?: never;
41880
+ };
41858
41881
  "/v1/orders/{orderId}/customer-action": {
41859
41882
  parameters: {
41860
41883
  query?: never;
@@ -193203,6 +193226,34 @@ export interface operations {
193203
193226
  429: components["responses"]["TooManyRequests"];
193204
193227
  };
193205
193228
  };
193229
+ cancelUnpaidOrder: {
193230
+ parameters: {
193231
+ query?: never;
193232
+ header?: never;
193233
+ path: {
193234
+ /** @description The order's id. */
193235
+ orderId: components["parameters"]["OrderId"];
193236
+ };
193237
+ cookie?: never;
193238
+ };
193239
+ requestBody?: never;
193240
+ responses: {
193241
+ /** @description The order, now canceled. */
193242
+ 200: {
193243
+ headers: {
193244
+ [name: string]: unknown;
193245
+ };
193246
+ content: {
193247
+ "application/json": components["schemas"]["Order"];
193248
+ };
193249
+ };
193250
+ 401: components["responses"]["Unauthorized"];
193251
+ 403: components["responses"]["Forbidden"];
193252
+ 404: components["responses"]["NotFound"];
193253
+ 409: components["responses"]["Conflict"];
193254
+ 429: components["responses"]["TooManyRequests"];
193255
+ };
193256
+ };
193206
193257
  openOrderCustomerAction: {
193207
193258
  parameters: {
193208
193259
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1941",
3
+ "version": "0.1.1942",
4
4
  "description": "Typed TypeScript client for the Zinn Digital Platform API, generated from its OpenAPI spec.",
5
5
  "license": "MIT",
6
6
  "author": "Neil Lock \u2014 CEO, Zinn Digital\u00ae Ltd <office@zinndigital.com>",