turf-common 1.4.2-beta.32 → 1.4.2-beta.34

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.
@@ -8,6 +8,7 @@ export declare enum BookingHistoryOperationType {
8
8
  PAYMENT = "payment",
9
9
  MERGED = "merged",
10
10
  DELETE_SLOT_EVENT = "delete_slot_event",
11
- EXTENSION = "extension"
11
+ EXTENSION = "extension",
12
+ PENDING_PAYMENT_WRITEOFF = "pending_payment_writeoff"
12
13
  }
13
14
  export declare const OPERATION_TYPES: BookingHistoryOperationType[];
@@ -13,6 +13,7 @@ var BookingHistoryOperationType;
13
13
  BookingHistoryOperationType["MERGED"] = "merged";
14
14
  BookingHistoryOperationType["DELETE_SLOT_EVENT"] = "delete_slot_event";
15
15
  BookingHistoryOperationType["EXTENSION"] = "extension";
16
+ BookingHistoryOperationType["PENDING_PAYMENT_WRITEOFF"] = "pending_payment_writeoff";
16
17
  })(BookingHistoryOperationType || (exports.BookingHistoryOperationType = BookingHistoryOperationType = {}));
17
18
  exports.OPERATION_TYPES = [
18
19
  BookingHistoryOperationType.DELETE,
@@ -0,0 +1,10 @@
1
+ export interface BookingPendingPaymentWriteoffRequest {
2
+ bookingDetailIds: number[];
3
+ totalWriteoffAmount: number;
4
+ remark: string;
5
+ }
6
+ export interface BookingPendingPaymentWriteoffResponse {
7
+ bookingDetailIds: number[];
8
+ totalWriteoffAmount: number;
9
+ remark: string;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -76,3 +76,4 @@ export * from "../api/update-sports-interface";
76
76
  export * from "./get-availability-by-turf.interface";
77
77
  export * from "./get-tournament.interface";
78
78
  export * from "./get-booking-history.interface";
79
+ export * from "./booking-pending-payment-writeoff.interface";
@@ -94,3 +94,4 @@ __exportStar(require("../api/update-sports-interface"), exports);
94
94
  __exportStar(require("./get-availability-by-turf.interface"), exports);
95
95
  __exportStar(require("./get-tournament.interface"), exports);
96
96
  __exportStar(require("./get-booking-history.interface"), exports);
97
+ __exportStar(require("./booking-pending-payment-writeoff.interface"), exports);
@@ -246,7 +246,7 @@ var BookingCode = /** @class */ (function () {
246
246
  if (difference < 0) {
247
247
  throw new app_badrequest_exception_1.AppBadRequestException({
248
248
  key: "slot.".concat(index),
249
- message: ["Booking time should be in future"],
249
+ message: ["Invalid booking time. Booking time should be within ".concat(bookingDelayInMinutes, " minutes from current time")],
250
250
  });
251
251
  }
252
252
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "turf-common",
3
- "version": "1.4.2-beta.32",
3
+ "version": "1.4.2-beta.34",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",