@mitumba/sdk 5.27.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.d.mts +14 -1
- package/dist/index.d.ts +14 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2518,6 +2518,14 @@ var CheckoutsModule = class {
|
|
|
2518
2518
|
async get(checkoutId, options) {
|
|
2519
2519
|
return this.client.get(`/orders/checkouts/${encodeURIComponent(checkoutId)}`, void 0, options);
|
|
2520
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
|
+
}
|
|
2521
2529
|
};
|
|
2522
2530
|
|
|
2523
2531
|
// src/modules/settings.ts
|