@munchi_oy/core 1.4.2 → 1.4.4

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.
@@ -4227,6 +4227,97 @@ export interface ExternalBusinessConfigResponseDto {
4227
4227
  */
4228
4228
  'config': ExternalBusinessConfigDto;
4229
4229
  }
4230
+ /**
4231
+ *
4232
+ * @export
4233
+ * @interface FeeAmountDto
4234
+ */
4235
+ export interface FeeAmountDto {
4236
+ /**
4237
+ * Amount in cents
4238
+ * @type {number}
4239
+ * @memberof FeeAmountDto
4240
+ */
4241
+ 'amount': number;
4242
+ /**
4243
+ *
4244
+ * @type {CurrencyCode}
4245
+ * @memberof FeeAmountDto
4246
+ */
4247
+ 'currency': CurrencyCode;
4248
+ }
4249
+ /**
4250
+ *
4251
+ * @export
4252
+ * @interface FeePartDto
4253
+ */
4254
+ export interface FeePartDto {
4255
+ /**
4256
+ *
4257
+ * @type {FeePartDtoTotal}
4258
+ * @memberof FeePartDto
4259
+ */
4260
+ 'total': FeePartDtoTotal;
4261
+ /**
4262
+ *
4263
+ * @type {FeeType}
4264
+ * @memberof FeePartDto
4265
+ */
4266
+ 'type': FeeType;
4267
+ /**
4268
+ * VAT percentage
4269
+ * @type {number}
4270
+ * @memberof FeePartDto
4271
+ */
4272
+ 'vatPercentage': number;
4273
+ /**
4274
+ * Tax amount in cents
4275
+ * @type {number}
4276
+ * @memberof FeePartDto
4277
+ */
4278
+ 'taxAmount': number;
4279
+ }
4280
+ /**
4281
+ * Total fee amount including tax
4282
+ * @export
4283
+ * @interface FeePartDtoTotal
4284
+ */
4285
+ export interface FeePartDtoTotal {
4286
+ /**
4287
+ * Amount in cents
4288
+ * @type {number}
4289
+ * @memberof FeePartDtoTotal
4290
+ */
4291
+ 'amount': number;
4292
+ /**
4293
+ *
4294
+ * @type {CurrencyCode}
4295
+ * @memberof FeePartDtoTotal
4296
+ */
4297
+ 'currency': CurrencyCode;
4298
+ }
4299
+ /**
4300
+ *
4301
+ * @export
4302
+ * @enum {string}
4303
+ */
4304
+ export declare const FeeType: {
4305
+ readonly TipAmount: "TIP_AMOUNT";
4306
+ };
4307
+ export type FeeType = typeof FeeType[keyof typeof FeeType];
4308
+ /**
4309
+ *
4310
+ * @export
4311
+ * @interface FeesDto
4312
+ */
4313
+ export interface FeesDto {
4314
+ /**
4315
+ * Fee breakdown parts
4316
+ * @type {Array<FeePartDto>}
4317
+ * @memberof FeesDto
4318
+ */
4319
+ 'parts': Array<FeePartDto>;
4320
+ }
4230
4321
  /**
4231
4322
  *
4232
4323
  * @export
@@ -9110,6 +9201,12 @@ export interface PaymentStatusDtoTransaction {
9110
9201
  * @memberof PaymentStatusDtoTransaction
9111
9202
  */
9112
9203
  'label': string | null;
9204
+ /**
9205
+ *
9206
+ * @type {TransactionDtoFees}
9207
+ * @memberof PaymentStatusDtoTransaction
9208
+ */
9209
+ 'fees'?: TransactionDtoFees | null;
9113
9210
  }
9114
9211
  /**
9115
9212
  *
@@ -9536,7 +9633,32 @@ export interface PosDiscountDto {
9536
9633
  * @memberof PosDiscountDto
9537
9634
  */
9538
9635
  'appliedAmount'?: MoneyDto;
9636
+ /**
9637
+ *
9638
+ * @type {PosDiscountTargetType}
9639
+ * @memberof PosDiscountDto
9640
+ */
9641
+ 'targetType'?: PosDiscountTargetType | null;
9642
+ /**
9643
+ *
9644
+ * @type {string}
9645
+ * @memberof PosDiscountDto
9646
+ */
9647
+ 'targetId'?: string | null;
9539
9648
  }
9649
+ /**
9650
+ *
9651
+ * @export
9652
+ * @enum {string}
9653
+ */
9654
+ export declare const PosDiscountTargetType: {
9655
+ readonly Order: "ORDER";
9656
+ readonly LineItem: "LINE_ITEM";
9657
+ readonly ItemSplitSeat: "ITEM_SPLIT_SEAT";
9658
+ readonly ItemSplitAssignment: "ITEM_SPLIT_ASSIGNMENT";
9659
+ readonly EqualSplitPart: "EQUAL_SPLIT_PART";
9660
+ };
9661
+ export type PosDiscountTargetType = typeof PosDiscountTargetType[keyof typeof PosDiscountTargetType];
9540
9662
  /**
9541
9663
  *
9542
9664
  * @export
@@ -9916,6 +10038,12 @@ export interface PosOrderDto {
9916
10038
  * @memberof PosOrderDto
9917
10039
  */
9918
10040
  'tableService'?: PosOrderDtoTableService | null;
10041
+ /**
10042
+ *
10043
+ * @type {PosOrderDtoEqualSplitState}
10044
+ * @memberof PosOrderDto
10045
+ */
10046
+ 'equalSplitState'?: PosOrderDtoEqualSplitState | null;
9919
10047
  /**
9920
10048
  * Id of the staff in shift
9921
10049
  * @type {string}
@@ -10024,6 +10152,44 @@ export interface PosOrderDto {
10024
10152
  * @memberof PosOrderDto
10025
10153
  */
10026
10154
  'lastPaymentError'?: object;
10155
+ /**
10156
+ *
10157
+ * @type {PosOrderDtoFees}
10158
+ * @memberof PosOrderDto
10159
+ */
10160
+ 'fees'?: PosOrderDtoFees | null;
10161
+ }
10162
+ /**
10163
+ * Equal split state persisted for the order
10164
+ * @export
10165
+ * @interface PosOrderDtoEqualSplitState
10166
+ */
10167
+ export interface PosOrderDtoEqualSplitState {
10168
+ /**
10169
+ * Number of equal split parts for the order
10170
+ * @type {number}
10171
+ * @memberof PosOrderDtoEqualSplitState
10172
+ */
10173
+ 'partCount': number;
10174
+ /**
10175
+ * Equal split parts persisted for the order
10176
+ * @type {Array<PosOrderEqualSplitPartDto>}
10177
+ * @memberof PosOrderDtoEqualSplitState
10178
+ */
10179
+ 'parts': Array<PosOrderEqualSplitPartDto>;
10180
+ }
10181
+ /**
10182
+ * Fees breakdown including tips
10183
+ * @export
10184
+ * @interface PosOrderDtoFees
10185
+ */
10186
+ export interface PosOrderDtoFees {
10187
+ /**
10188
+ * Fee breakdown parts
10189
+ * @type {Array<FeePartDto>}
10190
+ * @memberof PosOrderDtoFees
10191
+ */
10192
+ 'parts': Array<FeePartDto>;
10027
10193
  }
10028
10194
  /**
10029
10195
  * Invoice company information for this order
@@ -10098,12 +10264,24 @@ export interface PosOrderDtoInvoiceCompany {
10098
10264
  * @interface PosOrderDtoTableService
10099
10265
  */
10100
10266
  export interface PosOrderDtoTableService {
10267
+ /**
10268
+ * Table name
10269
+ * @type {string}
10270
+ * @memberof PosOrderDtoTableService
10271
+ */
10272
+ 'name': string | null;
10101
10273
  /**
10102
10274
  * Number of guests for the table
10103
10275
  * @type {number}
10104
10276
  * @memberof PosOrderDtoTableService
10105
10277
  */
10106
- 'seats'?: number | null;
10278
+ 'seats': number;
10279
+ /**
10280
+ * Seat-level split assignments for the table
10281
+ * @type {Array<PosOrderItemSplitSeatDto>}
10282
+ * @memberof PosOrderDtoTableService
10283
+ */
10284
+ 'itemSplitSeats': Array<PosOrderItemSplitSeatDto>;
10107
10285
  }
10108
10286
  /**
10109
10287
  * Tax breakdown for this order
@@ -10136,6 +10314,62 @@ export interface PosOrderDtoTaxSummary {
10136
10314
  */
10137
10315
  'grandTotal': number;
10138
10316
  }
10317
+ /**
10318
+ *
10319
+ * @export
10320
+ * @interface PosOrderEqualSplitPartDto
10321
+ */
10322
+ export interface PosOrderEqualSplitPartDto {
10323
+ /**
10324
+ * Stable equal split part id
10325
+ * @type {string}
10326
+ * @memberof PosOrderEqualSplitPartDto
10327
+ */
10328
+ 'id': string;
10329
+ /**
10330
+ * Display name of the equal split part
10331
+ * @type {string}
10332
+ * @memberof PosOrderEqualSplitPartDto
10333
+ */
10334
+ 'name': string | null;
10335
+ /**
10336
+ * Loyalty program id linked to this equal split part
10337
+ * @type {string}
10338
+ * @memberof PosOrderEqualSplitPartDto
10339
+ */
10340
+ 'loyaltyId': string | null;
10341
+ /**
10342
+ * Loyalty user name linked to this equal split part
10343
+ * @type {string}
10344
+ * @memberof PosOrderEqualSplitPartDto
10345
+ */
10346
+ 'loyaltyUserName': string | null;
10347
+ /**
10348
+ * Applied discount ids for this equal split part
10349
+ * @type {Array<string>}
10350
+ * @memberof PosOrderEqualSplitPartDto
10351
+ */
10352
+ 'appliedDiscountIds': Array<string>;
10353
+ }
10354
+ /**
10355
+ *
10356
+ * @export
10357
+ * @interface PosOrderEqualSplitStateDto
10358
+ */
10359
+ export interface PosOrderEqualSplitStateDto {
10360
+ /**
10361
+ * Number of equal split parts for the order
10362
+ * @type {number}
10363
+ * @memberof PosOrderEqualSplitStateDto
10364
+ */
10365
+ 'partCount': number;
10366
+ /**
10367
+ * Equal split parts persisted for the order
10368
+ * @type {Array<PosOrderEqualSplitPartDto>}
10369
+ * @memberof PosOrderEqualSplitStateDto
10370
+ */
10371
+ 'parts': Array<PosOrderEqualSplitPartDto>;
10372
+ }
10139
10373
  /**
10140
10374
  *
10141
10375
  * @export
@@ -10306,6 +10540,92 @@ export interface PosOrderItemDtoReportingCategory {
10306
10540
  */
10307
10541
  'updated_at': string;
10308
10542
  }
10543
+ /**
10544
+ *
10545
+ * @export
10546
+ * @interface PosOrderItemSplitSeatAssignmentDto
10547
+ */
10548
+ export interface PosOrderItemSplitSeatAssignmentDto {
10549
+ /**
10550
+ * Stable assignment id
10551
+ * @type {string}
10552
+ * @memberof PosOrderItemSplitSeatAssignmentDto
10553
+ */
10554
+ 'id': string;
10555
+ /**
10556
+ * Related cart line item id
10557
+ * @type {string}
10558
+ * @memberof PosOrderItemSplitSeatAssignmentDto
10559
+ */
10560
+ 'lineItemId': string;
10561
+ /**
10562
+ * Assigned quantity for this seat
10563
+ * @type {number}
10564
+ * @memberof PosOrderItemSplitSeatAssignmentDto
10565
+ */
10566
+ 'quantity': number;
10567
+ /**
10568
+ * Assigned amount for this seat
10569
+ * @type {number}
10570
+ * @memberof PosOrderItemSplitSeatAssignmentDto
10571
+ */
10572
+ 'amount': number;
10573
+ /**
10574
+ * Applied discount ids for this assignment
10575
+ * @type {Array<string>}
10576
+ * @memberof PosOrderItemSplitSeatAssignmentDto
10577
+ */
10578
+ 'appliedDiscountIds': Array<string>;
10579
+ }
10580
+ /**
10581
+ *
10582
+ * @export
10583
+ * @interface PosOrderItemSplitSeatDto
10584
+ */
10585
+ export interface PosOrderItemSplitSeatDto {
10586
+ /**
10587
+ * Stable seat id
10588
+ * @type {string}
10589
+ * @memberof PosOrderItemSplitSeatDto
10590
+ */
10591
+ 'id': string;
10592
+ /**
10593
+ * Display name of the seat
10594
+ * @type {string}
10595
+ * @memberof PosOrderItemSplitSeatDto
10596
+ */
10597
+ 'name': string | null;
10598
+ /**
10599
+ * Seat note
10600
+ * @type {string}
10601
+ * @memberof PosOrderItemSplitSeatDto
10602
+ */
10603
+ 'note': string;
10604
+ /**
10605
+ * Loyalty program id linked to this seat
10606
+ * @type {string}
10607
+ * @memberof PosOrderItemSplitSeatDto
10608
+ */
10609
+ 'loyaltyId': string | null;
10610
+ /**
10611
+ * Loyalty user name linked to this seat
10612
+ * @type {string}
10613
+ * @memberof PosOrderItemSplitSeatDto
10614
+ */
10615
+ 'loyaltyUserName': string | null;
10616
+ /**
10617
+ * Applied discount ids for this seat
10618
+ * @type {Array<string>}
10619
+ * @memberof PosOrderItemSplitSeatDto
10620
+ */
10621
+ 'appliedDiscountIds': Array<string>;
10622
+ /**
10623
+ * Line item assignments for this seat
10624
+ * @type {Array<PosOrderItemSplitSeatAssignmentDto>}
10625
+ * @memberof PosOrderItemSplitSeatDto
10626
+ */
10627
+ 'assignments': Array<PosOrderItemSplitSeatAssignmentDto>;
10628
+ }
10309
10629
  /**
10310
10630
  *
10311
10631
  * @export
@@ -10464,6 +10784,12 @@ export interface PosOrderPayloadDtoOrder {
10464
10784
  * @memberof PosOrderPayloadDtoOrder
10465
10785
  */
10466
10786
  'tableService'?: PosOrderDtoTableService | null;
10787
+ /**
10788
+ *
10789
+ * @type {PosOrderDtoEqualSplitState}
10790
+ * @memberof PosOrderPayloadDtoOrder
10791
+ */
10792
+ 'equalSplitState'?: PosOrderDtoEqualSplitState | null;
10467
10793
  /**
10468
10794
  * Id of the staff in shift
10469
10795
  * @type {string}
@@ -10572,6 +10898,12 @@ export interface PosOrderPayloadDtoOrder {
10572
10898
  * @memberof PosOrderPayloadDtoOrder
10573
10899
  */
10574
10900
  'lastPaymentError'?: object;
10901
+ /**
10902
+ *
10903
+ * @type {PosOrderDtoFees}
10904
+ * @memberof PosOrderPayloadDtoOrder
10905
+ */
10906
+ 'fees'?: PosOrderDtoFees | null;
10575
10907
  }
10576
10908
  /**
10577
10909
  *
@@ -10653,12 +10985,24 @@ export interface PosOrderSuboptionDto {
10653
10985
  * @interface PosOrderTableServiceDto
10654
10986
  */
10655
10987
  export interface PosOrderTableServiceDto {
10988
+ /**
10989
+ * Table name
10990
+ * @type {string}
10991
+ * @memberof PosOrderTableServiceDto
10992
+ */
10993
+ 'name': string | null;
10656
10994
  /**
10657
10995
  * Number of guests for the table
10658
10996
  * @type {number}
10659
10997
  * @memberof PosOrderTableServiceDto
10660
10998
  */
10661
- 'seats'?: number | null;
10999
+ 'seats': number;
11000
+ /**
11001
+ * Seat-level split assignments for the table
11002
+ * @type {Array<PosOrderItemSplitSeatDto>}
11003
+ * @memberof PosOrderTableServiceDto
11004
+ */
11005
+ 'itemSplitSeats': Array<PosOrderItemSplitSeatDto>;
10662
11006
  }
10663
11007
  /**
10664
11008
  *
@@ -11164,6 +11508,12 @@ export interface ProcessOrderActionsResponseDtoOrder {
11164
11508
  * @memberof ProcessOrderActionsResponseDtoOrder
11165
11509
  */
11166
11510
  'tableService'?: PosOrderDtoTableService | null;
11511
+ /**
11512
+ *
11513
+ * @type {PosOrderDtoEqualSplitState}
11514
+ * @memberof ProcessOrderActionsResponseDtoOrder
11515
+ */
11516
+ 'equalSplitState'?: PosOrderDtoEqualSplitState | null;
11167
11517
  /**
11168
11518
  * Id of the staff in shift
11169
11519
  * @type {string}
@@ -11272,6 +11622,12 @@ export interface ProcessOrderActionsResponseDtoOrder {
11272
11622
  * @memberof ProcessOrderActionsResponseDtoOrder
11273
11623
  */
11274
11624
  'lastPaymentError'?: object;
11625
+ /**
11626
+ *
11627
+ * @type {PosOrderDtoFees}
11628
+ * @memberof ProcessOrderActionsResponseDtoOrder
11629
+ */
11630
+ 'fees'?: PosOrderDtoFees | null;
11275
11631
  }
11276
11632
  /**
11277
11633
  *
@@ -13776,6 +14132,12 @@ export interface TransactionDto {
13776
14132
  * @memberof TransactionDto
13777
14133
  */
13778
14134
  'label': string | null;
14135
+ /**
14136
+ *
14137
+ * @type {TransactionDtoFees}
14138
+ * @memberof TransactionDto
14139
+ */
14140
+ 'fees'?: TransactionDtoFees | null;
13779
14141
  }
13780
14142
  /**
13781
14143
  * Details about the cart, optional
@@ -13832,6 +14194,19 @@ export interface TransactionDtoCardDetail {
13832
14194
  */
13833
14195
  'issuer': string | null;
13834
14196
  }
14197
+ /**
14198
+ * Fees for this payment
14199
+ * @export
14200
+ * @interface TransactionDtoFees
14201
+ */
14202
+ export interface TransactionDtoFees {
14203
+ /**
14204
+ * Fee breakdown parts
14205
+ * @type {Array<FeePartDto>}
14206
+ * @memberof TransactionDtoFees
14207
+ */
14208
+ 'parts': Array<FeePartDto>;
14209
+ }
13835
14210
  /**
13836
14211
  *
13837
14212
  * @export