@final-commerce/command-frame 0.7.0-staging.5 → 0.7.0-staging.6

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.
@@ -1,4 +1,3 @@
1
- import { ReservationStatus } from '@final-commerce/common';
2
1
  import { MOCK_CART, MOCK_PRODUCTS, mockPublishEvent } from '../../demo/database';
3
2
  import { mockHoldBooking } from '../hold-booking/mock';
4
3
  export const mockAddBookingToCart = async (params) => {
@@ -27,7 +26,6 @@ export const mockAddBookingToCart = async (params) => {
27
26
  startAt: booking.startAt,
28
27
  endAt: booking.endAt,
29
28
  bufferEndAt: booking.bufferEndAt,
30
- status: ReservationStatus.HELD,
31
29
  expiresAt: booking.expiresAt,
32
30
  };
33
31
  if (!MOCK_CART.reservations)
@@ -916,9 +916,9 @@ export const createOrderFromCart = (paymentType, amount, processor = 'cash') =>
916
916
  bufferEndAt: reservation.bufferEndAt,
917
917
  // The mock computes no tax anywhere — line items ship `taxes: []` too.
918
918
  taxes: [],
919
- // `expiresAt` deliberately does not come along: a paid booking has no
920
- // clock left to run out, which is what CONFIRMED means.
921
- status: ReservationStatus.CONFIRMED,
919
+ // Neither `expiresAt` nor a status comes along: a booking's state lives on its own
920
+ // row which is what `getBookings` reads — and a copy frozen on the order would be
921
+ // wrong from the next moment on.
922
922
  })),
923
923
  customSales: [],
924
924
  balance: 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@final-commerce/command-frame",
3
- "version": "0.7.0-staging.5",
3
+ "version": "0.7.0-staging.6",
4
4
  "description": "Commands Frame library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -57,7 +57,7 @@
57
57
  "ignoreBranchesMissingTickets": true
58
58
  },
59
59
  "dependencies": {
60
- "@final-commerce/common": "2.3.0-staging.4"
60
+ "@final-commerce/common": "2.3.0-staging.5"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@commitlint/cli": "^19.0.0",