@munchi_oy/core 1.4.2 → 1.4.3

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.
@@ -9536,7 +9536,32 @@ export interface PosDiscountDto {
9536
9536
  * @memberof PosDiscountDto
9537
9537
  */
9538
9538
  'appliedAmount'?: MoneyDto;
9539
+ /**
9540
+ *
9541
+ * @type {PosDiscountTargetType}
9542
+ * @memberof PosDiscountDto
9543
+ */
9544
+ 'targetType'?: PosDiscountTargetType | null;
9545
+ /**
9546
+ *
9547
+ * @type {string}
9548
+ * @memberof PosDiscountDto
9549
+ */
9550
+ 'targetId'?: string | null;
9539
9551
  }
9552
+ /**
9553
+ *
9554
+ * @export
9555
+ * @enum {string}
9556
+ */
9557
+ export declare const PosDiscountTargetType: {
9558
+ readonly Order: "ORDER";
9559
+ readonly LineItem: "LINE_ITEM";
9560
+ readonly ItemSplitSeat: "ITEM_SPLIT_SEAT";
9561
+ readonly ItemSplitAssignment: "ITEM_SPLIT_ASSIGNMENT";
9562
+ readonly EqualSplitPart: "EQUAL_SPLIT_PART";
9563
+ };
9564
+ export type PosDiscountTargetType = typeof PosDiscountTargetType[keyof typeof PosDiscountTargetType];
9540
9565
  /**
9541
9566
  *
9542
9567
  * @export
@@ -9916,6 +9941,12 @@ export interface PosOrderDto {
9916
9941
  * @memberof PosOrderDto
9917
9942
  */
9918
9943
  'tableService'?: PosOrderDtoTableService | null;
9944
+ /**
9945
+ *
9946
+ * @type {PosOrderDtoEqualSplitState}
9947
+ * @memberof PosOrderDto
9948
+ */
9949
+ 'equalSplitState'?: PosOrderDtoEqualSplitState | null;
9919
9950
  /**
9920
9951
  * Id of the staff in shift
9921
9952
  * @type {string}
@@ -10025,6 +10056,25 @@ export interface PosOrderDto {
10025
10056
  */
10026
10057
  'lastPaymentError'?: object;
10027
10058
  }
10059
+ /**
10060
+ * Equal split state persisted for the order
10061
+ * @export
10062
+ * @interface PosOrderDtoEqualSplitState
10063
+ */
10064
+ export interface PosOrderDtoEqualSplitState {
10065
+ /**
10066
+ * Number of equal split parts for the order
10067
+ * @type {number}
10068
+ * @memberof PosOrderDtoEqualSplitState
10069
+ */
10070
+ 'partCount': number;
10071
+ /**
10072
+ * Equal split parts persisted for the order
10073
+ * @type {Array<PosOrderEqualSplitPartDto>}
10074
+ * @memberof PosOrderDtoEqualSplitState
10075
+ */
10076
+ 'parts': Array<PosOrderEqualSplitPartDto>;
10077
+ }
10028
10078
  /**
10029
10079
  * Invoice company information for this order
10030
10080
  * @export
@@ -10098,12 +10148,24 @@ export interface PosOrderDtoInvoiceCompany {
10098
10148
  * @interface PosOrderDtoTableService
10099
10149
  */
10100
10150
  export interface PosOrderDtoTableService {
10151
+ /**
10152
+ * Table name
10153
+ * @type {string}
10154
+ * @memberof PosOrderDtoTableService
10155
+ */
10156
+ 'name': string | null;
10101
10157
  /**
10102
10158
  * Number of guests for the table
10103
10159
  * @type {number}
10104
10160
  * @memberof PosOrderDtoTableService
10105
10161
  */
10106
- 'seats'?: number | null;
10162
+ 'seats': number;
10163
+ /**
10164
+ * Seat-level split assignments for the table
10165
+ * @type {Array<PosOrderItemSplitSeatDto>}
10166
+ * @memberof PosOrderDtoTableService
10167
+ */
10168
+ 'itemSplitSeats': Array<PosOrderItemSplitSeatDto>;
10107
10169
  }
10108
10170
  /**
10109
10171
  * Tax breakdown for this order
@@ -10136,6 +10198,62 @@ export interface PosOrderDtoTaxSummary {
10136
10198
  */
10137
10199
  'grandTotal': number;
10138
10200
  }
10201
+ /**
10202
+ *
10203
+ * @export
10204
+ * @interface PosOrderEqualSplitPartDto
10205
+ */
10206
+ export interface PosOrderEqualSplitPartDto {
10207
+ /**
10208
+ * Stable equal split part id
10209
+ * @type {string}
10210
+ * @memberof PosOrderEqualSplitPartDto
10211
+ */
10212
+ 'id': string;
10213
+ /**
10214
+ * Display name of the equal split part
10215
+ * @type {string}
10216
+ * @memberof PosOrderEqualSplitPartDto
10217
+ */
10218
+ 'name': string | null;
10219
+ /**
10220
+ * Loyalty program id linked to this equal split part
10221
+ * @type {string}
10222
+ * @memberof PosOrderEqualSplitPartDto
10223
+ */
10224
+ 'loyaltyId': string | null;
10225
+ /**
10226
+ * Loyalty user name linked to this equal split part
10227
+ * @type {string}
10228
+ * @memberof PosOrderEqualSplitPartDto
10229
+ */
10230
+ 'loyaltyUserName': string | null;
10231
+ /**
10232
+ * Applied discount ids for this equal split part
10233
+ * @type {Array<string>}
10234
+ * @memberof PosOrderEqualSplitPartDto
10235
+ */
10236
+ 'appliedDiscountIds': Array<string>;
10237
+ }
10238
+ /**
10239
+ *
10240
+ * @export
10241
+ * @interface PosOrderEqualSplitStateDto
10242
+ */
10243
+ export interface PosOrderEqualSplitStateDto {
10244
+ /**
10245
+ * Number of equal split parts for the order
10246
+ * @type {number}
10247
+ * @memberof PosOrderEqualSplitStateDto
10248
+ */
10249
+ 'partCount': number;
10250
+ /**
10251
+ * Equal split parts persisted for the order
10252
+ * @type {Array<PosOrderEqualSplitPartDto>}
10253
+ * @memberof PosOrderEqualSplitStateDto
10254
+ */
10255
+ 'parts': Array<PosOrderEqualSplitPartDto>;
10256
+ }
10139
10257
  /**
10140
10258
  *
10141
10259
  * @export
@@ -10306,6 +10424,92 @@ export interface PosOrderItemDtoReportingCategory {
10306
10424
  */
10307
10425
  'updated_at': string;
10308
10426
  }
10427
+ /**
10428
+ *
10429
+ * @export
10430
+ * @interface PosOrderItemSplitSeatAssignmentDto
10431
+ */
10432
+ export interface PosOrderItemSplitSeatAssignmentDto {
10433
+ /**
10434
+ * Stable assignment id
10435
+ * @type {string}
10436
+ * @memberof PosOrderItemSplitSeatAssignmentDto
10437
+ */
10438
+ 'id': string;
10439
+ /**
10440
+ * Related cart line item id
10441
+ * @type {string}
10442
+ * @memberof PosOrderItemSplitSeatAssignmentDto
10443
+ */
10444
+ 'lineItemId': string;
10445
+ /**
10446
+ * Assigned quantity for this seat
10447
+ * @type {number}
10448
+ * @memberof PosOrderItemSplitSeatAssignmentDto
10449
+ */
10450
+ 'quantity': number;
10451
+ /**
10452
+ * Assigned amount for this seat
10453
+ * @type {number}
10454
+ * @memberof PosOrderItemSplitSeatAssignmentDto
10455
+ */
10456
+ 'amount': number;
10457
+ /**
10458
+ * Applied discount ids for this assignment
10459
+ * @type {Array<string>}
10460
+ * @memberof PosOrderItemSplitSeatAssignmentDto
10461
+ */
10462
+ 'appliedDiscountIds': Array<string>;
10463
+ }
10464
+ /**
10465
+ *
10466
+ * @export
10467
+ * @interface PosOrderItemSplitSeatDto
10468
+ */
10469
+ export interface PosOrderItemSplitSeatDto {
10470
+ /**
10471
+ * Stable seat id
10472
+ * @type {string}
10473
+ * @memberof PosOrderItemSplitSeatDto
10474
+ */
10475
+ 'id': string;
10476
+ /**
10477
+ * Display name of the seat
10478
+ * @type {string}
10479
+ * @memberof PosOrderItemSplitSeatDto
10480
+ */
10481
+ 'name': string | null;
10482
+ /**
10483
+ * Seat note
10484
+ * @type {string}
10485
+ * @memberof PosOrderItemSplitSeatDto
10486
+ */
10487
+ 'note': string;
10488
+ /**
10489
+ * Loyalty program id linked to this seat
10490
+ * @type {string}
10491
+ * @memberof PosOrderItemSplitSeatDto
10492
+ */
10493
+ 'loyaltyId': string | null;
10494
+ /**
10495
+ * Loyalty user name linked to this seat
10496
+ * @type {string}
10497
+ * @memberof PosOrderItemSplitSeatDto
10498
+ */
10499
+ 'loyaltyUserName': string | null;
10500
+ /**
10501
+ * Applied discount ids for this seat
10502
+ * @type {Array<string>}
10503
+ * @memberof PosOrderItemSplitSeatDto
10504
+ */
10505
+ 'appliedDiscountIds': Array<string>;
10506
+ /**
10507
+ * Line item assignments for this seat
10508
+ * @type {Array<PosOrderItemSplitSeatAssignmentDto>}
10509
+ * @memberof PosOrderItemSplitSeatDto
10510
+ */
10511
+ 'assignments': Array<PosOrderItemSplitSeatAssignmentDto>;
10512
+ }
10309
10513
  /**
10310
10514
  *
10311
10515
  * @export
@@ -10464,6 +10668,12 @@ export interface PosOrderPayloadDtoOrder {
10464
10668
  * @memberof PosOrderPayloadDtoOrder
10465
10669
  */
10466
10670
  'tableService'?: PosOrderDtoTableService | null;
10671
+ /**
10672
+ *
10673
+ * @type {PosOrderDtoEqualSplitState}
10674
+ * @memberof PosOrderPayloadDtoOrder
10675
+ */
10676
+ 'equalSplitState'?: PosOrderDtoEqualSplitState | null;
10467
10677
  /**
10468
10678
  * Id of the staff in shift
10469
10679
  * @type {string}
@@ -10653,12 +10863,24 @@ export interface PosOrderSuboptionDto {
10653
10863
  * @interface PosOrderTableServiceDto
10654
10864
  */
10655
10865
  export interface PosOrderTableServiceDto {
10866
+ /**
10867
+ * Table name
10868
+ * @type {string}
10869
+ * @memberof PosOrderTableServiceDto
10870
+ */
10871
+ 'name': string | null;
10656
10872
  /**
10657
10873
  * Number of guests for the table
10658
10874
  * @type {number}
10659
10875
  * @memberof PosOrderTableServiceDto
10660
10876
  */
10661
- 'seats'?: number | null;
10877
+ 'seats': number;
10878
+ /**
10879
+ * Seat-level split assignments for the table
10880
+ * @type {Array<PosOrderItemSplitSeatDto>}
10881
+ * @memberof PosOrderTableServiceDto
10882
+ */
10883
+ 'itemSplitSeats': Array<PosOrderItemSplitSeatDto>;
10662
10884
  }
10663
10885
  /**
10664
10886
  *
@@ -11164,6 +11386,12 @@ export interface ProcessOrderActionsResponseDtoOrder {
11164
11386
  * @memberof ProcessOrderActionsResponseDtoOrder
11165
11387
  */
11166
11388
  'tableService'?: PosOrderDtoTableService | null;
11389
+ /**
11390
+ *
11391
+ * @type {PosOrderDtoEqualSplitState}
11392
+ * @memberof ProcessOrderActionsResponseDtoOrder
11393
+ */
11394
+ 'equalSplitState'?: PosOrderDtoEqualSplitState | null;
11167
11395
  /**
11168
11396
  * Id of the staff in shift
11169
11397
  * @type {string}