@munchi_oy/core 1.9.125 → 1.9.127

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.
@@ -727,6 +727,12 @@ export interface BusinessConfigResponseDtoBusiness {
727
727
  * @memberof BusinessConfigResponseDtoBusiness
728
728
  */
729
729
  'merchantId'?: string;
730
+ /**
731
+ * Weekly operating schedule (7 elements for 7 days)
732
+ * @type {Array<ScheduleDto>}
733
+ * @memberof BusinessConfigResponseDtoBusiness
734
+ */
735
+ 'schedule'?: Array<ScheduleDto>;
730
736
  }
731
737
  /**
732
738
  *
@@ -898,6 +904,12 @@ export interface BusinessDto {
898
904
  * @memberof BusinessDto
899
905
  */
900
906
  'merchantId'?: string;
907
+ /**
908
+ * Weekly operating schedule (7 elements for 7 days)
909
+ * @type {Array<ScheduleDto>}
910
+ * @memberof BusinessDto
911
+ */
912
+ 'schedule'?: Array<ScheduleDto>;
901
913
  }
902
914
  /**
903
915
  *
@@ -3822,6 +3834,12 @@ export interface CreateManualSessionDtoOrder {
3822
3834
  * @memberof CreateManualSessionDtoOrder
3823
3835
  */
3824
3836
  'tableGroupId'?: string | null;
3837
+ /**
3838
+ *
3839
+ * @type {PosOrderDtoLoyalty}
3840
+ * @memberof CreateManualSessionDtoOrder
3841
+ */
3842
+ 'loyalty'?: PosOrderDtoLoyalty | null;
3825
3843
  }
3826
3844
  /**
3827
3845
  * Split context. Omit for a full-cart payment, or send { mode, partId|seatId } for a split. Must match the order\'s checkoutModel.
@@ -6111,6 +6129,12 @@ export interface ExternalBusinessConfigResponseDto {
6111
6129
  * @memberof ExternalBusinessConfigResponseDto
6112
6130
  */
6113
6131
  'merchantId'?: string;
6132
+ /**
6133
+ * Weekly operating schedule (7 elements for 7 days)
6134
+ * @type {Array<ScheduleDto>}
6135
+ * @memberof ExternalBusinessConfigResponseDto
6136
+ */
6137
+ 'schedule'?: Array<ScheduleDto>;
6114
6138
  /**
6115
6139
  *
6116
6140
  * @type {ExternalBusinessConfigDto}
@@ -9176,6 +9200,162 @@ export declare const LoyaltyActionKey: {
9176
9200
  readonly GetAdminHistory: "getAdminHistory";
9177
9201
  };
9178
9202
  export type LoyaltyActionKey = typeof LoyaltyActionKey[keyof typeof LoyaltyActionKey];
9203
+ /**
9204
+ *
9205
+ * @export
9206
+ * @interface LoyaltyActionOverrideDto
9207
+ */
9208
+ export interface LoyaltyActionOverrideDto {
9209
+ /**
9210
+ *
9211
+ * @type {number}
9212
+ * @memberof LoyaltyActionOverrideDto
9213
+ */
9214
+ 'value'?: number;
9215
+ /**
9216
+ *
9217
+ * @type {string}
9218
+ * @memberof LoyaltyActionOverrideDto
9219
+ */
9220
+ 'currency'?: string | null;
9221
+ /**
9222
+ *
9223
+ * @type {number}
9224
+ * @memberof LoyaltyActionOverrideDto
9225
+ */
9226
+ 'max_units'?: number | null;
9227
+ /**
9228
+ *
9229
+ * @type {number}
9230
+ * @memberof LoyaltyActionOverrideDto
9231
+ */
9232
+ 'max_applications'?: number | null;
9233
+ }
9234
+ /**
9235
+ *
9236
+ * @export
9237
+ * @interface LoyaltyActionTargetDto
9238
+ */
9239
+ export interface LoyaltyActionTargetDto {
9240
+ /**
9241
+ *
9242
+ * @type {Array<number>}
9243
+ * @memberof LoyaltyActionTargetDto
9244
+ */
9245
+ 'product_ids': Array<number>;
9246
+ /**
9247
+ *
9248
+ * @type {Array<number>}
9249
+ * @memberof LoyaltyActionTargetDto
9250
+ */
9251
+ 'category_ids': Array<number>;
9252
+ /**
9253
+ *
9254
+ * @type {Array<number>}
9255
+ * @memberof LoyaltyActionTargetDto
9256
+ */
9257
+ 'exclude_product_ids': Array<number>;
9258
+ /**
9259
+ *
9260
+ * @type {Array<number>}
9261
+ * @memberof LoyaltyActionTargetDto
9262
+ */
9263
+ 'exclude_category_ids': Array<number>;
9264
+ /**
9265
+ *
9266
+ * @type {boolean}
9267
+ * @memberof LoyaltyActionTargetDto
9268
+ */
9269
+ 'exclude_alcohol': boolean;
9270
+ }
9271
+ /**
9272
+ *
9273
+ * @export
9274
+ * @interface LoyaltyBusinessScopeDto
9275
+ */
9276
+ export interface LoyaltyBusinessScopeDto {
9277
+ /**
9278
+ *
9279
+ * @type {number}
9280
+ * @memberof LoyaltyBusinessScopeDto
9281
+ */
9282
+ 'business_id': number;
9283
+ /**
9284
+ *
9285
+ * @type {Array<LoyaltyConditionBindingDto>}
9286
+ * @memberof LoyaltyBusinessScopeDto
9287
+ */
9288
+ 'condition_bindings': Array<LoyaltyConditionBindingDto>;
9289
+ /**
9290
+ *
9291
+ * @type {LoyaltyActionTargetDto}
9292
+ * @memberof LoyaltyBusinessScopeDto
9293
+ */
9294
+ 'action_target': LoyaltyActionTargetDto;
9295
+ /**
9296
+ *
9297
+ * @type {LoyaltyActionOverrideDto}
9298
+ * @memberof LoyaltyBusinessScopeDto
9299
+ */
9300
+ 'action_override'?: LoyaltyActionOverrideDto | null;
9301
+ }
9302
+ /**
9303
+ *
9304
+ * @export
9305
+ * @enum {string}
9306
+ */
9307
+ export declare const LoyaltyCatalogType: {
9308
+ readonly Product: "product";
9309
+ readonly Coupon: "coupon";
9310
+ };
9311
+ export type LoyaltyCatalogType = typeof LoyaltyCatalogType[keyof typeof LoyaltyCatalogType];
9312
+ /**
9313
+ *
9314
+ * @export
9315
+ * @enum {string}
9316
+ */
9317
+ export declare const LoyaltyChannel: {
9318
+ readonly Kiosk: "kiosk";
9319
+ readonly Pos: "pos";
9320
+ readonly Online: "online";
9321
+ readonly Mobile: "mobile";
9322
+ };
9323
+ export type LoyaltyChannel = typeof LoyaltyChannel[keyof typeof LoyaltyChannel];
9324
+ /**
9325
+ *
9326
+ * @export
9327
+ * @enum {string}
9328
+ */
9329
+ export declare const LoyaltyCommerceMode: {
9330
+ readonly Legacy: "legacy";
9331
+ readonly Structured: "structured";
9332
+ };
9333
+ export type LoyaltyCommerceMode = typeof LoyaltyCommerceMode[keyof typeof LoyaltyCommerceMode];
9334
+ /**
9335
+ *
9336
+ * @export
9337
+ * @interface LoyaltyConditionBindingDto
9338
+ */
9339
+ export interface LoyaltyConditionBindingDto {
9340
+ /**
9341
+ *
9342
+ * @type {string}
9343
+ * @memberof LoyaltyConditionBindingDto
9344
+ */
9345
+ 'condition_id': string;
9346
+ /**
9347
+ *
9348
+ * @type {Array<number>}
9349
+ * @memberof LoyaltyConditionBindingDto
9350
+ */
9351
+ 'product_ids': Array<number>;
9352
+ /**
9353
+ *
9354
+ * @type {Array<number>}
9355
+ * @memberof LoyaltyConditionBindingDto
9356
+ */
9357
+ 'category_ids': Array<number>;
9358
+ }
9179
9359
  /**
9180
9360
  *
9181
9361
  * @export
@@ -9327,6 +9507,17 @@ export interface LoyaltyLinkMetadataDto {
9327
9507
  */
9328
9508
  'venueId': number;
9329
9509
  }
9510
+ /**
9511
+ *
9512
+ * @export
9513
+ * @enum {string}
9514
+ */
9515
+ export declare const LoyaltyRedemptionStatus: {
9516
+ readonly Pending: "pending";
9517
+ readonly Redeemed: "redeemed";
9518
+ readonly Reversed: "reversed";
9519
+ };
9520
+ export type LoyaltyRedemptionStatus = typeof LoyaltyRedemptionStatus[keyof typeof LoyaltyRedemptionStatus];
9330
9521
  /**
9331
9522
  *
9332
9523
  * @export
@@ -9371,6 +9562,362 @@ export interface LoyaltyResolveResponseDto {
9371
9562
  */
9372
9563
  'perks': Array<ResolvedPerkDto>;
9373
9564
  }
9565
+ /**
9566
+ *
9567
+ * @export
9568
+ * @enum {string}
9569
+ */
9570
+ export declare const LoyaltyRestoreRequestStatus: {
9571
+ readonly Requested: "REQUESTED";
9572
+ readonly AlreadyReversed: "ALREADY_REVERSED";
9573
+ };
9574
+ export type LoyaltyRestoreRequestStatus = typeof LoyaltyRestoreRequestStatus[keyof typeof LoyaltyRestoreRequestStatus];
9575
+ /**
9576
+ *
9577
+ * @export
9578
+ * @enum {string}
9579
+ */
9580
+ export declare const LoyaltyRewardType: {
9581
+ readonly Product: "product";
9582
+ readonly Coupon: "coupon";
9583
+ };
9584
+ export type LoyaltyRewardType = typeof LoyaltyRewardType[keyof typeof LoyaltyRewardType];
9585
+ /**
9586
+ *
9587
+ * @export
9588
+ * @interface LoyaltyRuleActionDto
9589
+ */
9590
+ export interface LoyaltyRuleActionDto {
9591
+ /**
9592
+ *
9593
+ * @type {LoyaltyRuleActionType}
9594
+ * @memberof LoyaltyRuleActionDto
9595
+ */
9596
+ 'type': LoyaltyRuleActionType;
9597
+ /**
9598
+ * Plain percentage for a percentage action — 10 is 10% and 100 is a free item — or minor units for a fixed one. Never basis points.
9599
+ * @type {number}
9600
+ * @memberof LoyaltyRuleActionDto
9601
+ */
9602
+ 'value': number;
9603
+ /**
9604
+ *
9605
+ * @type {string}
9606
+ * @memberof LoyaltyRuleActionDto
9607
+ */
9608
+ 'currency'?: string | null;
9609
+ /**
9610
+ *
9611
+ * @type {LoyaltyRuleTargetType}
9612
+ * @memberof LoyaltyRuleActionDto
9613
+ */
9614
+ 'target_type': LoyaltyRuleTargetType;
9615
+ /**
9616
+ *
9617
+ * @type {LoyaltyRuleSelection}
9618
+ * @memberof LoyaltyRuleActionDto
9619
+ */
9620
+ 'selection': LoyaltyRuleSelection;
9621
+ /**
9622
+ *
9623
+ * @type {number}
9624
+ * @memberof LoyaltyRuleActionDto
9625
+ */
9626
+ 'units_per_application': number;
9627
+ /**
9628
+ *
9629
+ * @type {number}
9630
+ * @memberof LoyaltyRuleActionDto
9631
+ */
9632
+ 'max_units'?: number | null;
9633
+ /**
9634
+ *
9635
+ * @type {LoyaltyRuleFulfillmentMode}
9636
+ * @memberof LoyaltyRuleActionDto
9637
+ */
9638
+ 'fulfillment_mode': LoyaltyRuleFulfillmentMode;
9639
+ }
9640
+ /**
9641
+ *
9642
+ * @export
9643
+ * @enum {string}
9644
+ */
9645
+ export declare const LoyaltyRuleActionType: {
9646
+ readonly Percentage: "percentage";
9647
+ readonly Fixed: "fixed";
9648
+ };
9649
+ export type LoyaltyRuleActionType = typeof LoyaltyRuleActionType[keyof typeof LoyaltyRuleActionType];
9650
+ /**
9651
+ *
9652
+ * @export
9653
+ * @enum {string}
9654
+ */
9655
+ export declare const LoyaltyRuleApplicationMode: {
9656
+ readonly Manual: "manual";
9657
+ readonly Automatic: "automatic";
9658
+ };
9659
+ export type LoyaltyRuleApplicationMode = typeof LoyaltyRuleApplicationMode[keyof typeof LoyaltyRuleApplicationMode];
9660
+ /**
9661
+ *
9662
+ * @export
9663
+ * @interface LoyaltyRuleConditionDto
9664
+ */
9665
+ export interface LoyaltyRuleConditionDto {
9666
+ /**
9667
+ *
9668
+ * @type {string}
9669
+ * @memberof LoyaltyRuleConditionDto
9670
+ */
9671
+ 'condition_id': string;
9672
+ /**
9673
+ *
9674
+ * @type {LoyaltyRuleConditionType}
9675
+ * @memberof LoyaltyRuleConditionDto
9676
+ */
9677
+ 'type': LoyaltyRuleConditionType;
9678
+ /**
9679
+ *
9680
+ * @type {number}
9681
+ * @memberof LoyaltyRuleConditionDto
9682
+ */
9683
+ 'required_quantity'?: number | null;
9684
+ /**
9685
+ *
9686
+ * @type {number}
9687
+ * @memberof LoyaltyRuleConditionDto
9688
+ */
9689
+ 'value'?: number | null;
9690
+ }
9691
+ /**
9692
+ *
9693
+ * @export
9694
+ * @enum {string}
9695
+ */
9696
+ export declare const LoyaltyRuleConditionType: {
9697
+ readonly Always: "always";
9698
+ readonly ProductInCart: "product_in_cart";
9699
+ readonly CategoryInCart: "category_in_cart";
9700
+ readonly ProductQuantityInCart: "product_quantity_in_cart";
9701
+ readonly CategoryQuantityInCart: "category_quantity_in_cart";
9702
+ readonly CartMinValue: "cart_min_value";
9703
+ readonly CartMaxValue: "cart_max_value";
9704
+ };
9705
+ export type LoyaltyRuleConditionType = typeof LoyaltyRuleConditionType[keyof typeof LoyaltyRuleConditionType];
9706
+ /**
9707
+ *
9708
+ * @export
9709
+ * @enum {string}
9710
+ */
9711
+ export declare const LoyaltyRuleFulfillmentMode: {
9712
+ readonly RequireInCart: "require_in_cart";
9713
+ readonly ConfigureTarget: "configure_target";
9714
+ };
9715
+ export type LoyaltyRuleFulfillmentMode = typeof LoyaltyRuleFulfillmentMode[keyof typeof LoyaltyRuleFulfillmentMode];
9716
+ /**
9717
+ *
9718
+ * @export
9719
+ * @enum {string}
9720
+ */
9721
+ export declare const LoyaltyRuleSelection: {
9722
+ readonly All: "all";
9723
+ readonly Cheapest: "cheapest";
9724
+ readonly MostExpensive: "most_expensive";
9725
+ };
9726
+ export type LoyaltyRuleSelection = typeof LoyaltyRuleSelection[keyof typeof LoyaltyRuleSelection];
9727
+ /**
9728
+ *
9729
+ * @export
9730
+ * @enum {string}
9731
+ */
9732
+ export declare const LoyaltyRuleStackingMode: {
9733
+ readonly ExclusiveBestForCustomer: "exclusive_best_for_customer";
9734
+ readonly Stackable: "stackable";
9735
+ };
9736
+ export type LoyaltyRuleStackingMode = typeof LoyaltyRuleStackingMode[keyof typeof LoyaltyRuleStackingMode];
9737
+ /**
9738
+ *
9739
+ * @export
9740
+ * @enum {string}
9741
+ */
9742
+ export declare const LoyaltyRuleTargetType: {
9743
+ readonly ConditionMatch: "condition_match";
9744
+ readonly Product: "product";
9745
+ readonly Category: "category";
9746
+ readonly Order: "order";
9747
+ };
9748
+ export type LoyaltyRuleTargetType = typeof LoyaltyRuleTargetType[keyof typeof LoyaltyRuleTargetType];
9749
+ /**
9750
+ *
9751
+ * @export
9752
+ * @interface LoyaltyRuntimeContextDto
9753
+ */
9754
+ export interface LoyaltyRuntimeContextDto {
9755
+ /**
9756
+ * Loyalty user id the runtime was resolved for
9757
+ * @type {number}
9758
+ * @memberof LoyaltyRuntimeContextDto
9759
+ */
9760
+ 'user_id': number;
9761
+ /**
9762
+ * Business the runtime was resolved for
9763
+ * @type {number}
9764
+ * @memberof LoyaltyRuntimeContextDto
9765
+ */
9766
+ 'business_id': number;
9767
+ /**
9768
+ *
9769
+ * @type {LoyaltyChannel}
9770
+ * @memberof LoyaltyRuntimeContextDto
9771
+ */
9772
+ 'channel': LoyaltyChannel;
9773
+ /**
9774
+ * Points the member can still spend, excluding expired batches
9775
+ * @type {number}
9776
+ * @memberof LoyaltyRuntimeContextDto
9777
+ */
9778
+ 'points_balance': number;
9779
+ /**
9780
+ * Rewards available to this member on this channel
9781
+ * @type {Array<LoyaltyRuntimeRewardDto>}
9782
+ * @memberof LoyaltyRuntimeContextDto
9783
+ */
9784
+ 'rewards': Array<LoyaltyRuntimeRewardDto>;
9785
+ }
9786
+ /**
9787
+ *
9788
+ * @export
9789
+ * @interface LoyaltyRuntimeContextRequestDto
9790
+ */
9791
+ export interface LoyaltyRuntimeContextRequestDto {
9792
+ /**
9793
+ * Loyalty user id the context is resolved for
9794
+ * @type {number}
9795
+ * @memberof LoyaltyRuntimeContextRequestDto
9796
+ */
9797
+ 'user_id': number;
9798
+ /**
9799
+ * Business the caller is asking about
9800
+ * @type {number}
9801
+ * @memberof LoyaltyRuntimeContextRequestDto
9802
+ */
9803
+ 'business_id': number;
9804
+ /**
9805
+ *
9806
+ * @type {LoyaltyChannel}
9807
+ * @memberof LoyaltyRuntimeContextRequestDto
9808
+ */
9809
+ 'channel': LoyaltyChannel;
9810
+ }
9811
+ /**
9812
+ *
9813
+ * @export
9814
+ * @interface LoyaltyRuntimeRewardDto
9815
+ */
9816
+ export interface LoyaltyRuntimeRewardDto {
9817
+ /**
9818
+ *
9819
+ * @type {number}
9820
+ * @memberof LoyaltyRuntimeRewardDto
9821
+ */
9822
+ 'catalog_id': number;
9823
+ /**
9824
+ *
9825
+ * @type {LoyaltyRewardType}
9826
+ * @memberof LoyaltyRuntimeRewardDto
9827
+ */
9828
+ 'type': LoyaltyRewardType;
9829
+ /**
9830
+ *
9831
+ * @type {string}
9832
+ * @memberof LoyaltyRuntimeRewardDto
9833
+ */
9834
+ 'name': string;
9835
+ /**
9836
+ *
9837
+ * @type {string}
9838
+ * @memberof LoyaltyRuntimeRewardDto
9839
+ */
9840
+ 'description'?: string | null;
9841
+ /**
9842
+ * Points a member spends; always null for a coupon
9843
+ * @type {number}
9844
+ * @memberof LoyaltyRuntimeRewardDto
9845
+ */
9846
+ 'points_cost': number | null;
9847
+ /**
9848
+ *
9849
+ * @type {LoyaltyCommerceMode}
9850
+ * @memberof LoyaltyRuntimeRewardDto
9851
+ */
9852
+ 'commerce_mode': LoyaltyCommerceMode;
9853
+ /**
9854
+ *
9855
+ * @type {Array<LoyaltyRuntimeRuleDto>}
9856
+ * @memberof LoyaltyRuntimeRewardDto
9857
+ */
9858
+ 'rules': Array<LoyaltyRuntimeRuleDto>;
9859
+ }
9860
+ /**
9861
+ *
9862
+ * @export
9863
+ * @interface LoyaltyRuntimeRuleDto
9864
+ */
9865
+ export interface LoyaltyRuntimeRuleDto {
9866
+ /**
9867
+ *
9868
+ * @type {number}
9869
+ * @memberof LoyaltyRuntimeRuleDto
9870
+ */
9871
+ 'rule_id': number;
9872
+ /**
9873
+ *
9874
+ * @type {number}
9875
+ * @memberof LoyaltyRuntimeRuleDto
9876
+ */
9877
+ 'revision': number;
9878
+ /**
9879
+ *
9880
+ * @type {LoyaltyRuleApplicationMode}
9881
+ * @memberof LoyaltyRuntimeRuleDto
9882
+ */
9883
+ 'application_mode': LoyaltyRuleApplicationMode;
9884
+ /**
9885
+ *
9886
+ * @type {LoyaltyRuleStackingMode}
9887
+ * @memberof LoyaltyRuntimeRuleDto
9888
+ */
9889
+ 'stacking_mode': LoyaltyRuleStackingMode;
9890
+ /**
9891
+ *
9892
+ * @type {Array<LoyaltyRuleConditionDto>}
9893
+ * @memberof LoyaltyRuntimeRuleDto
9894
+ */
9895
+ 'conditions': Array<LoyaltyRuleConditionDto>;
9896
+ /**
9897
+ *
9898
+ * @type {boolean}
9899
+ * @memberof LoyaltyRuntimeRuleDto
9900
+ */
9901
+ 'repeatable': boolean;
9902
+ /**
9903
+ *
9904
+ * @type {number}
9905
+ * @memberof LoyaltyRuntimeRuleDto
9906
+ */
9907
+ 'max_applications': number | null;
9908
+ /**
9909
+ *
9910
+ * @type {LoyaltyRuleActionDto}
9911
+ * @memberof LoyaltyRuntimeRuleDto
9912
+ */
9913
+ 'action': LoyaltyRuleActionDto;
9914
+ /**
9915
+ *
9916
+ * @type {LoyaltyBusinessScopeDto}
9917
+ * @memberof LoyaltyRuntimeRuleDto
9918
+ */
9919
+ 'business_scope': LoyaltyBusinessScopeDto;
9920
+ }
9374
9921
  /**
9375
9922
  *
9376
9923
  * @export
@@ -11329,6 +11876,118 @@ export interface OrderHistoryResponseDtoSummary {
11329
11876
  */
11330
11877
  'totalTipAmount'?: number;
11331
11878
  }
11879
+ /**
11880
+ *
11881
+ * @export
11882
+ * @interface OrderLoyaltyDto
11883
+ */
11884
+ export interface OrderLoyaltyDto {
11885
+ /**
11886
+ * Redemptions on this order, keyed by loyalty entry id.
11887
+ * @type {{ [key: string]: OrderLoyaltyRedemptionDto; }}
11888
+ * @memberof OrderLoyaltyDto
11889
+ */
11890
+ 'redemptions': {
11891
+ [key: string]: OrderLoyaltyRedemptionDto;
11892
+ };
11893
+ }
11894
+ /**
11895
+ *
11896
+ * @export
11897
+ * @interface OrderLoyaltyRedemptionDto
11898
+ */
11899
+ export interface OrderLoyaltyRedemptionDto {
11900
+ /**
11901
+ * Loyalty entry id, and the key this entry is stored under
11902
+ * @type {string}
11903
+ * @memberof OrderLoyaltyRedemptionDto
11904
+ */
11905
+ 'id': string;
11906
+ /**
11907
+ *
11908
+ * @type {Array<string>}
11909
+ * @memberof OrderLoyaltyRedemptionDto
11910
+ */
11911
+ 'discountApplicationIds': Array<string>;
11912
+ /**
11913
+ *
11914
+ * @type {number}
11915
+ * @memberof OrderLoyaltyRedemptionDto
11916
+ */
11917
+ 'catalogId': number;
11918
+ /**
11919
+ *
11920
+ * @type {LoyaltyCatalogType}
11921
+ * @memberof OrderLoyaltyRedemptionDto
11922
+ */
11923
+ 'catalogType': LoyaltyCatalogType;
11924
+ /**
11925
+ *
11926
+ * @type {string}
11927
+ * @memberof OrderLoyaltyRedemptionDto
11928
+ */
11929
+ 'rewardName': string;
11930
+ /**
11931
+ *
11932
+ * @type {number}
11933
+ * @memberof OrderLoyaltyRedemptionDto
11934
+ */
11935
+ 'ruleId': number;
11936
+ /**
11937
+ *
11938
+ * @type {number}
11939
+ * @memberof OrderLoyaltyRedemptionDto
11940
+ */
11941
+ 'ruleRevision': number;
11942
+ /**
11943
+ *
11944
+ * @type {number}
11945
+ * @memberof OrderLoyaltyRedemptionDto
11946
+ */
11947
+ 'quantity': number;
11948
+ /**
11949
+ * Points spent, in points.
11950
+ * @type {number}
11951
+ * @memberof OrderLoyaltyRedemptionDto
11952
+ */
11953
+ 'pointsCost': number | null;
11954
+ /**
11955
+ *
11956
+ * @type {LoyaltyRedemptionStatus}
11957
+ * @memberof OrderLoyaltyRedemptionDto
11958
+ */
11959
+ 'status': LoyaltyRedemptionStatus;
11960
+ /**
11961
+ *
11962
+ * @type {string}
11963
+ * @memberof OrderLoyaltyRedemptionDto
11964
+ */
11965
+ 'transactionId': string | null;
11966
+ /**
11967
+ *
11968
+ * @type {string}
11969
+ * @memberof OrderLoyaltyRedemptionDto
11970
+ */
11971
+ 'walletId': string | null;
11972
+ /**
11973
+ *
11974
+ * @type {string}
11975
+ * @memberof OrderLoyaltyRedemptionDto
11976
+ */
11977
+ 'settledAt': string | null;
11978
+ /**
11979
+ *
11980
+ * @type {string}
11981
+ * @memberof OrderLoyaltyRedemptionDto
11982
+ */
11983
+ 'reversalTransactionId': string | null;
11984
+ /**
11985
+ *
11986
+ * @type {string}
11987
+ * @memberof OrderLoyaltyRedemptionDto
11988
+ */
11989
+ 'reversedAt': string | null;
11990
+ }
11332
11991
  /**
11333
11992
  *
11334
11993
  * @export
@@ -11621,6 +12280,12 @@ export interface OrderResponseDtoBusiness {
11621
12280
  * @memberof OrderResponseDtoBusiness
11622
12281
  */
11623
12282
  'merchantId'?: string;
12283
+ /**
12284
+ * Weekly operating schedule (7 elements for 7 days)
12285
+ * @type {Array<ScheduleDto>}
12286
+ * @memberof OrderResponseDtoBusiness
12287
+ */
12288
+ 'schedule'?: Array<ScheduleDto>;
11624
12289
  }
11625
12290
  /**
11626
12291
  * Customer details
@@ -13095,6 +13760,12 @@ export interface ParkPosOrderDtoOrder {
13095
13760
  * @memberof ParkPosOrderDtoOrder
13096
13761
  */
13097
13762
  'tableGroupId'?: string | null;
13763
+ /**
13764
+ *
13765
+ * @type {PosOrderDtoLoyalty}
13766
+ * @memberof ParkPosOrderDtoOrder
13767
+ */
13768
+ 'loyalty'?: PosOrderDtoLoyalty | null;
13098
13769
  }
13099
13770
  /**
13100
13771
  *
@@ -15456,6 +16127,36 @@ export interface PosDiscountDto {
15456
16127
  * @memberof PosDiscountDto
15457
16128
  */
15458
16129
  'isAutomatic': boolean;
16130
+ /**
16131
+ * Position of this application in the cascade that produced it. Merchant applications run first, then loyalty; the sequence records the order actually used so a reader never has to re-derive it.
16132
+ * @type {number}
16133
+ * @memberof PosDiscountDto
16134
+ */
16135
+ 'sequence'?: number;
16136
+ /**
16137
+ * Payable amount this application was measured against, in minor units.
16138
+ * @type {number}
16139
+ * @memberof PosDiscountDto
16140
+ */
16141
+ 'baseAmount'?: number;
16142
+ /**
16143
+ * Amount the configured discount asked for, in minor units, before it was clamped to what was still payable.
16144
+ * @type {number}
16145
+ * @memberof PosDiscountDto
16146
+ */
16147
+ 'requestedAmount'?: number;
16148
+ /**
16149
+ * Part of requestedAmount that could not be taken because nothing payable was left, in minor units. Never cashback.
16150
+ * @type {number}
16151
+ * @memberof PosDiscountDto
16152
+ */
16153
+ 'forfeitedAmount'?: number;
16154
+ /**
16155
+ * Number of line units this application covers. Absent means it covers the whole line.
16156
+ * @type {number}
16157
+ * @memberof PosDiscountDto
16158
+ */
16159
+ 'units'?: number;
15459
16160
  }
15460
16161
  /**
15461
16162
  *
@@ -16658,6 +17359,12 @@ export interface PosOrderDto {
16658
17359
  * @memberof PosOrderDto
16659
17360
  */
16660
17361
  'tableGroupId'?: string | null;
17362
+ /**
17363
+ *
17364
+ * @type {PosOrderDtoLoyalty}
17365
+ * @memberof PosOrderDto
17366
+ */
17367
+ 'loyalty'?: PosOrderDtoLoyalty | null;
16661
17368
  }
16662
17369
  /**
16663
17370
  * Equal split state persisted for the order
@@ -16745,6 +17452,21 @@ export interface PosOrderDtoInvoiceCompany {
16745
17452
  */
16746
17453
  'updatedAt': string;
16747
17454
  }
17455
+ /**
17456
+ * Loyalty rewards committed to this order. Absent on orders that used none.
17457
+ * @export
17458
+ * @interface PosOrderDtoLoyalty
17459
+ */
17460
+ export interface PosOrderDtoLoyalty {
17461
+ /**
17462
+ * Redemptions on this order, keyed by loyalty entry id.
17463
+ * @type {{ [key: string]: OrderLoyaltyRedemptionDto; }}
17464
+ * @memberof PosOrderDtoLoyalty
17465
+ */
17466
+ 'redemptions': {
17467
+ [key: string]: OrderLoyaltyRedemptionDto;
17468
+ };
17469
+ }
16748
17470
  /**
16749
17471
  * Fine dining table service metadata
16750
17472
  * @export
@@ -16960,6 +17682,12 @@ export interface PosOrderItemDto {
16960
17682
  * @memberof PosOrderItemDto
16961
17683
  */
16962
17684
  'discount': PosDiscountDto | null;
17685
+ /**
17686
+ * Every item-scope discount application on this line, in cascade order — including when there is only one.
17687
+ * @type {Array<PosDiscountDto>}
17688
+ * @memberof PosOrderItemDto
17689
+ */
17690
+ 'discountApplications'?: Array<PosDiscountDto>;
16963
17691
  /**
16964
17692
  *
16965
17693
  * @type {boolean}
@@ -17476,6 +18204,12 @@ export interface PosOrderPayloadDtoOrder {
17476
18204
  * @memberof PosOrderPayloadDtoOrder
17477
18205
  */
17478
18206
  'tableGroupId'?: string | null;
18207
+ /**
18208
+ *
18209
+ * @type {PosOrderDtoLoyalty}
18210
+ * @memberof PosOrderPayloadDtoOrder
18211
+ */
18212
+ 'loyalty'?: PosOrderDtoLoyalty | null;
17479
18213
  }
17480
18214
  /**
17481
18215
  *
@@ -18391,6 +19125,12 @@ export interface ProcessOrderActionsResponseDtoOrder {
18391
19125
  * @memberof ProcessOrderActionsResponseDtoOrder
18392
19126
  */
18393
19127
  'tableGroupId'?: string | null;
19128
+ /**
19129
+ *
19130
+ * @type {PosOrderDtoLoyalty}
19131
+ * @memberof ProcessOrderActionsResponseDtoOrder
19132
+ */
19133
+ 'loyalty'?: PosOrderDtoLoyalty | null;
18394
19134
  }
18395
19135
  /**
18396
19136
  *
@@ -19655,6 +20395,12 @@ export interface RecordManualPaymentResultDtoOrder {
19655
20395
  * @memberof RecordManualPaymentResultDtoOrder
19656
20396
  */
19657
20397
  'tableGroupId'?: string | null;
20398
+ /**
20399
+ *
20400
+ * @type {PosOrderDtoLoyalty}
20401
+ * @memberof RecordManualPaymentResultDtoOrder
20402
+ */
20403
+ 'loyalty'?: PosOrderDtoLoyalty | null;
19658
20404
  }
19659
20405
  /**
19660
20406
  *
@@ -20628,6 +21374,56 @@ export declare const ScopeEnum: {
20628
21374
  readonly Cart: "CART";
20629
21375
  };
20630
21376
  export type ScopeEnum = typeof ScopeEnum[keyof typeof ScopeEnum];
21377
+ /**
21378
+ *
21379
+ * @export
21380
+ * @interface RestoreLoyaltyRedemptionDto
21381
+ */
21382
+ export interface RestoreLoyaltyRedemptionDto {
21383
+ /**
21384
+ * Business the order belongs to
21385
+ * @type {number}
21386
+ * @memberof RestoreLoyaltyRedemptionDto
21387
+ */
21388
+ 'businessId': number;
21389
+ /**
21390
+ * POS order carrying the redemption
21391
+ * @type {string}
21392
+ * @memberof RestoreLoyaltyRedemptionDto
21393
+ */
21394
+ 'orderId': string;
21395
+ /**
21396
+ * Loyalty entry to restore
21397
+ * @type {string}
21398
+ * @memberof RestoreLoyaltyRedemptionDto
21399
+ */
21400
+ 'loyaltyEntryId': string;
21401
+ }
21402
+ /**
21403
+ *
21404
+ * @export
21405
+ * @interface RestoreLoyaltyRedemptionResponseDto
21406
+ */
21407
+ export interface RestoreLoyaltyRedemptionResponseDto {
21408
+ /**
21409
+ *
21410
+ * @type {LoyaltyRestoreRequestStatus}
21411
+ * @memberof RestoreLoyaltyRedemptionResponseDto
21412
+ */
21413
+ 'status': LoyaltyRestoreRequestStatus;
21414
+ /**
21415
+ * Loyalty transaction the restore was asked against
21416
+ * @type {string}
21417
+ * @memberof RestoreLoyaltyRedemptionResponseDto
21418
+ */
21419
+ 'transactionId': string | null;
21420
+ /**
21421
+ * Reversal already recorded against the entry, when there is one
21422
+ * @type {string}
21423
+ * @memberof RestoreLoyaltyRedemptionResponseDto
21424
+ */
21425
+ 'reversalTransactionId': string | null;
21426
+ }
20631
21427
  /**
20632
21428
  *
20633
21429
  * @export
@@ -21921,6 +22717,12 @@ export interface SyncKioskOrderDtoOrder {
21921
22717
  * @memberof SyncKioskOrderDtoOrder
21922
22718
  */
21923
22719
  'tableGroupId'?: string | null;
22720
+ /**
22721
+ *
22722
+ * @type {PosOrderDtoLoyalty}
22723
+ * @memberof SyncKioskOrderDtoOrder
22724
+ */
22725
+ 'loyalty'?: PosOrderDtoLoyalty | null;
21924
22726
  }
21925
22727
  /**
21926
22728
  *
@@ -22250,6 +23052,12 @@ export interface SyncPosOrderDtoOrder {
22250
23052
  * @memberof SyncPosOrderDtoOrder
22251
23053
  */
22252
23054
  'tableGroupId'?: string | null;
23055
+ /**
23056
+ *
23057
+ * @type {PosOrderDtoLoyalty}
23058
+ * @memberof SyncPosOrderDtoOrder
23059
+ */
23060
+ 'loyalty'?: PosOrderDtoLoyalty | null;
22253
23061
  }
22254
23062
  /**
22255
23063
  * POS order actions to run in the background after persist (same shape as /pos/actions). Omit to only sync the order.
@@ -23630,6 +24438,12 @@ export interface UnifiedOrderResponseDto {
23630
24438
  * @memberof UnifiedOrderResponseDto
23631
24439
  */
23632
24440
  'posDiscounts'?: Array<PosDiscountDto>;
24441
+ /**
24442
+ *
24443
+ * @type {UnifiedOrderResponseDtoLoyalty}
24444
+ * @memberof UnifiedOrderResponseDto
24445
+ */
24446
+ 'loyalty'?: UnifiedOrderResponseDtoLoyalty | null;
23633
24447
  /**
23634
24448
  * Payment transactions recorded for the POS order. POS only
23635
24449
  * @type {Array<TransactionDto>}
@@ -23962,6 +24776,21 @@ export interface UnifiedOrderResponseDtoLastPaymentError {
23962
24776
  */
23963
24777
  'retryable': boolean;
23964
24778
  }
24779
+ /**
24780
+ * Loyalty rewards committed to the POS order, keyed by loyalty entry id. POS only
24781
+ * @export
24782
+ * @interface UnifiedOrderResponseDtoLoyalty
24783
+ */
24784
+ export interface UnifiedOrderResponseDtoLoyalty {
24785
+ /**
24786
+ * Redemptions on this order, keyed by loyalty entry id.
24787
+ * @type {{ [key: string]: OrderLoyaltyRedemptionDto; }}
24788
+ * @memberof UnifiedOrderResponseDtoLoyalty
24789
+ */
24790
+ 'redemptions': {
24791
+ [key: string]: OrderLoyaltyRedemptionDto;
24792
+ };
24793
+ }
23965
24794
  /**
23966
24795
  * Preorder scheduling details. Platform only
23967
24796
  * @export
@@ -33442,6 +34271,81 @@ export declare class KiosksApi extends BaseAPI implements KiosksApiInterface {
33442
34271
  */
33443
34272
  validate(terminalId: string, provider: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TerminalValidationResponseDto, any, {}>>;
33444
34273
  }
34274
+ /**
34275
+ * LoyaltyCommerceApi - axios parameter creator
34276
+ * @export
34277
+ */
34278
+ export declare const LoyaltyCommerceApiAxiosParamCreator: (configuration?: Configuration) => {
34279
+ /**
34280
+ *
34281
+ * @summary Ask the loyalty ledger to restore a settled redemption
34282
+ * @param {RestoreLoyaltyRedemptionDto} restoreLoyaltyRedemptionDto
34283
+ * @param {*} [options] Override http request option.
34284
+ * @throws {RequiredError}
34285
+ */
34286
+ restoreRedemption: (restoreLoyaltyRedemptionDto: RestoreLoyaltyRedemptionDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
34287
+ };
34288
+ /**
34289
+ * LoyaltyCommerceApi - functional programming interface
34290
+ * @export
34291
+ */
34292
+ export declare const LoyaltyCommerceApiFp: (configuration?: Configuration) => {
34293
+ /**
34294
+ *
34295
+ * @summary Ask the loyalty ledger to restore a settled redemption
34296
+ * @param {RestoreLoyaltyRedemptionDto} restoreLoyaltyRedemptionDto
34297
+ * @param {*} [options] Override http request option.
34298
+ * @throws {RequiredError}
34299
+ */
34300
+ restoreRedemption(restoreLoyaltyRedemptionDto: RestoreLoyaltyRedemptionDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RestoreLoyaltyRedemptionResponseDto>>;
34301
+ };
34302
+ /**
34303
+ * LoyaltyCommerceApi - factory interface
34304
+ * @export
34305
+ */
34306
+ export declare const LoyaltyCommerceApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
34307
+ /**
34308
+ *
34309
+ * @summary Ask the loyalty ledger to restore a settled redemption
34310
+ * @param {RestoreLoyaltyRedemptionDto} restoreLoyaltyRedemptionDto
34311
+ * @param {*} [options] Override http request option.
34312
+ * @throws {RequiredError}
34313
+ */
34314
+ restoreRedemption(restoreLoyaltyRedemptionDto: RestoreLoyaltyRedemptionDto, options?: any): AxiosPromise<RestoreLoyaltyRedemptionResponseDto>;
34315
+ };
34316
+ /**
34317
+ * LoyaltyCommerceApi - interface
34318
+ * @export
34319
+ * @interface LoyaltyCommerceApi
34320
+ */
34321
+ export interface LoyaltyCommerceApiInterface {
34322
+ /**
34323
+ *
34324
+ * @summary Ask the loyalty ledger to restore a settled redemption
34325
+ * @param {RestoreLoyaltyRedemptionDto} restoreLoyaltyRedemptionDto
34326
+ * @param {*} [options] Override http request option.
34327
+ * @throws {RequiredError}
34328
+ * @memberof LoyaltyCommerceApiInterface
34329
+ */
34330
+ restoreRedemption(restoreLoyaltyRedemptionDto: RestoreLoyaltyRedemptionDto, options?: AxiosRequestConfig): AxiosPromise<RestoreLoyaltyRedemptionResponseDto>;
34331
+ }
34332
+ /**
34333
+ * LoyaltyCommerceApi - object-oriented interface
34334
+ * @export
34335
+ * @class LoyaltyCommerceApi
34336
+ * @extends {BaseAPI}
34337
+ */
34338
+ export declare class LoyaltyCommerceApi extends BaseAPI implements LoyaltyCommerceApiInterface {
34339
+ /**
34340
+ *
34341
+ * @summary Ask the loyalty ledger to restore a settled redemption
34342
+ * @param {RestoreLoyaltyRedemptionDto} restoreLoyaltyRedemptionDto
34343
+ * @param {*} [options] Override http request option.
34344
+ * @throws {RequiredError}
34345
+ * @memberof LoyaltyCommerceApi
34346
+ */
34347
+ restoreRedemption(restoreLoyaltyRedemptionDto: RestoreLoyaltyRedemptionDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RestoreLoyaltyRedemptionResponseDto, any, {}>>;
34348
+ }
33445
34349
  /**
33446
34350
  * LoyaltyIntegerationsApi - axios parameter creator
33447
34351
  * @export
@@ -33525,6 +34429,14 @@ export declare const LoyaltyIntegerationsApiAxiosParamCreator: (configuration?:
33525
34429
  * @throws {RequiredError}
33526
34430
  */
33527
34431
  resolvePerks: (loyaltyResolveRequestDto: LoyaltyResolveRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
34432
+ /**
34433
+ *
34434
+ * @summary Resolve the loyalty runtime for a member on a till surface
34435
+ * @param {LoyaltyRuntimeContextRequestDto} loyaltyRuntimeContextRequestDto
34436
+ * @param {*} [options] Override http request option.
34437
+ * @throws {RequiredError}
34438
+ */
34439
+ runtimeContext: (loyaltyRuntimeContextRequestDto: LoyaltyRuntimeContextRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
33528
34440
  /**
33529
34441
  *
33530
34442
  * @summary Search user by phone or email
@@ -33639,6 +34551,14 @@ export declare const LoyaltyIntegerationsApiFp: (configuration?: Configuration)
33639
34551
  * @throws {RequiredError}
33640
34552
  */
33641
34553
  resolvePerks(loyaltyResolveRequestDto: LoyaltyResolveRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoyaltyResolveResponseDto>>;
34554
+ /**
34555
+ *
34556
+ * @summary Resolve the loyalty runtime for a member on a till surface
34557
+ * @param {LoyaltyRuntimeContextRequestDto} loyaltyRuntimeContextRequestDto
34558
+ * @param {*} [options] Override http request option.
34559
+ * @throws {RequiredError}
34560
+ */
34561
+ runtimeContext(loyaltyRuntimeContextRequestDto: LoyaltyRuntimeContextRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoyaltyRuntimeContextDto>>;
33642
34562
  /**
33643
34563
  *
33644
34564
  * @summary Search user by phone or email
@@ -33753,6 +34673,14 @@ export declare const LoyaltyIntegerationsApiFactory: (configuration?: Configurat
33753
34673
  * @throws {RequiredError}
33754
34674
  */
33755
34675
  resolvePerks(loyaltyResolveRequestDto: LoyaltyResolveRequestDto, options?: any): AxiosPromise<LoyaltyResolveResponseDto>;
34676
+ /**
34677
+ *
34678
+ * @summary Resolve the loyalty runtime for a member on a till surface
34679
+ * @param {LoyaltyRuntimeContextRequestDto} loyaltyRuntimeContextRequestDto
34680
+ * @param {*} [options] Override http request option.
34681
+ * @throws {RequiredError}
34682
+ */
34683
+ runtimeContext(loyaltyRuntimeContextRequestDto: LoyaltyRuntimeContextRequestDto, options?: any): AxiosPromise<LoyaltyRuntimeContextDto>;
33756
34684
  /**
33757
34685
  *
33758
34686
  * @summary Search user by phone or email
@@ -33877,6 +34805,15 @@ export interface LoyaltyIntegerationsApiInterface {
33877
34805
  * @memberof LoyaltyIntegerationsApiInterface
33878
34806
  */
33879
34807
  resolvePerks(loyaltyResolveRequestDto: LoyaltyResolveRequestDto, options?: AxiosRequestConfig): AxiosPromise<LoyaltyResolveResponseDto>;
34808
+ /**
34809
+ *
34810
+ * @summary Resolve the loyalty runtime for a member on a till surface
34811
+ * @param {LoyaltyRuntimeContextRequestDto} loyaltyRuntimeContextRequestDto
34812
+ * @param {*} [options] Override http request option.
34813
+ * @throws {RequiredError}
34814
+ * @memberof LoyaltyIntegerationsApiInterface
34815
+ */
34816
+ runtimeContext(loyaltyRuntimeContextRequestDto: LoyaltyRuntimeContextRequestDto, options?: AxiosRequestConfig): AxiosPromise<LoyaltyRuntimeContextDto>;
33880
34817
  /**
33881
34818
  *
33882
34819
  * @summary Search user by phone or email
@@ -34005,6 +34942,15 @@ export declare class LoyaltyIntegerationsApi extends BaseAPI implements LoyaltyI
34005
34942
  * @memberof LoyaltyIntegerationsApi
34006
34943
  */
34007
34944
  resolvePerks(loyaltyResolveRequestDto: LoyaltyResolveRequestDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<LoyaltyResolveResponseDto, any, {}>>;
34945
+ /**
34946
+ *
34947
+ * @summary Resolve the loyalty runtime for a member on a till surface
34948
+ * @param {LoyaltyRuntimeContextRequestDto} loyaltyRuntimeContextRequestDto
34949
+ * @param {*} [options] Override http request option.
34950
+ * @throws {RequiredError}
34951
+ * @memberof LoyaltyIntegerationsApi
34952
+ */
34953
+ runtimeContext(loyaltyRuntimeContextRequestDto: LoyaltyRuntimeContextRequestDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<LoyaltyRuntimeContextDto, any, {}>>;
34008
34954
  /**
34009
34955
  *
34010
34956
  * @summary Search user by phone or email