@mitumba/sdk 5.26.0 → 5.28.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.
package/dist/index.mjs CHANGED
@@ -1168,7 +1168,8 @@ var OrdersModule = class {
1168
1168
  };
1169
1169
  }
1170
1170
  /**
1171
- * Get the order history for the current authenticated user.
1171
+ * Get the order history for the current authenticated user. Each entry carries the order's first
1172
+ * four items and its unit count. With `role: 'seller'`, only orders that have been paid are listed.
1172
1173
  */
1173
1174
  async getHistory(params, options) {
1174
1175
  return this.client.get(
@@ -2517,6 +2518,14 @@ var CheckoutsModule = class {
2517
2518
  async get(checkoutId, options) {
2518
2519
  return this.client.get(`/orders/checkouts/${encodeURIComponent(checkoutId)}`, void 0, options);
2519
2520
  }
2521
+ /**
2522
+ * Cancel one of the buyer's unpaid checkouts: its orders are cancelled and its items freed, while
2523
+ * the cart keeps them. Cancelling again answers the same. A refusal throws an `APIError` whose
2524
+ * `code` is a `CancelCheckoutRefusalCode`.
2525
+ */
2526
+ async cancel(checkoutId, options) {
2527
+ return this.client.post(`/orders/checkouts/${encodeURIComponent(checkoutId)}/cancel`, void 0, options);
2528
+ }
2520
2529
  };
2521
2530
 
2522
2531
  // src/modules/settings.ts