@munchi_oy/core 1.9.128 → 1.9.129

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.
package/generated/api.ts CHANGED
@@ -2907,6 +2907,51 @@ export interface ClockOutRequestDto {
2907
2907
  */
2908
2908
  'employeeId': string;
2909
2909
  }
2910
+ /**
2911
+ *
2912
+ * @export
2913
+ * @interface CompleteOrderDto
2914
+ */
2915
+ export interface CompleteOrderDto {
2916
+ /**
2917
+ * Collection the order is stored in
2918
+ * @type {string}
2919
+ * @memberof CompleteOrderDto
2920
+ */
2921
+ 'orderCollection': OrderCollectionEnum;
2922
+ }
2923
+
2924
+ export const OrderCollectionEnum = {
2925
+ Kiosk: 'kiosk'
2926
+ } as const;
2927
+
2928
+ export type OrderCollectionEnum = typeof OrderCollectionEnum[keyof typeof OrderCollectionEnum];
2929
+
2930
+ /**
2931
+ *
2932
+ * @export
2933
+ * @interface CompleteOrderResponseDto
2934
+ */
2935
+ export interface CompleteOrderResponseDto {
2936
+ /**
2937
+ * Id of the completed order
2938
+ * @type {string}
2939
+ * @memberof CompleteOrderResponseDto
2940
+ */
2941
+ 'orderId': string;
2942
+ /**
2943
+ * The order is completed whenever this answers 200
2944
+ * @type {boolean}
2945
+ * @memberof CompleteOrderResponseDto
2946
+ */
2947
+ 'completed': boolean;
2948
+ /**
2949
+ * True when an earlier call already completed the order, so this call only announced its completion again
2950
+ * @type {boolean}
2951
+ * @memberof CompleteOrderResponseDto
2952
+ */
2953
+ 'alreadyCompleted': boolean;
2954
+ }
2910
2955
  /**
2911
2956
  *
2912
2957
  * @export
@@ -3960,6 +4005,12 @@ export interface CreateManualSessionDtoOrder {
3960
4005
  * @memberof CreateManualSessionDtoOrder
3961
4006
  */
3962
4007
  'tableGroupId'?: string | null;
4008
+ /**
4009
+ *
4010
+ * @type {PosOrderDtoLoyalty}
4011
+ * @memberof CreateManualSessionDtoOrder
4012
+ */
4013
+ 'loyalty'?: PosOrderDtoLoyalty | null;
3963
4014
  }
3964
4015
 
3965
4016
 
@@ -9488,6 +9539,160 @@ export const LoyaltyActionKey = {
9488
9539
  export type LoyaltyActionKey = typeof LoyaltyActionKey[keyof typeof LoyaltyActionKey];
9489
9540
 
9490
9541
 
9542
+ /**
9543
+ *
9544
+ * @export
9545
+ * @interface LoyaltyActionOverrideDto
9546
+ */
9547
+ export interface LoyaltyActionOverrideDto {
9548
+ /**
9549
+ *
9550
+ * @type {number}
9551
+ * @memberof LoyaltyActionOverrideDto
9552
+ */
9553
+ 'value'?: number;
9554
+ /**
9555
+ *
9556
+ * @type {string}
9557
+ * @memberof LoyaltyActionOverrideDto
9558
+ */
9559
+ 'currency'?: string | null;
9560
+ /**
9561
+ *
9562
+ * @type {number}
9563
+ * @memberof LoyaltyActionOverrideDto
9564
+ */
9565
+ 'max_units'?: number | null;
9566
+ /**
9567
+ *
9568
+ * @type {number}
9569
+ * @memberof LoyaltyActionOverrideDto
9570
+ */
9571
+ 'max_applications'?: number | null;
9572
+ }
9573
+ /**
9574
+ *
9575
+ * @export
9576
+ * @interface LoyaltyActionTargetDto
9577
+ */
9578
+ export interface LoyaltyActionTargetDto {
9579
+ /**
9580
+ *
9581
+ * @type {Array<number>}
9582
+ * @memberof LoyaltyActionTargetDto
9583
+ */
9584
+ 'product_ids': Array<number>;
9585
+ /**
9586
+ *
9587
+ * @type {Array<number>}
9588
+ * @memberof LoyaltyActionTargetDto
9589
+ */
9590
+ 'category_ids': Array<number>;
9591
+ /**
9592
+ *
9593
+ * @type {Array<number>}
9594
+ * @memberof LoyaltyActionTargetDto
9595
+ */
9596
+ 'exclude_product_ids': Array<number>;
9597
+ /**
9598
+ *
9599
+ * @type {Array<number>}
9600
+ * @memberof LoyaltyActionTargetDto
9601
+ */
9602
+ 'exclude_category_ids': Array<number>;
9603
+ /**
9604
+ *
9605
+ * @type {boolean}
9606
+ * @memberof LoyaltyActionTargetDto
9607
+ */
9608
+ 'exclude_alcohol': boolean;
9609
+ }
9610
+ /**
9611
+ *
9612
+ * @export
9613
+ * @interface LoyaltyBusinessScopeDto
9614
+ */
9615
+ export interface LoyaltyBusinessScopeDto {
9616
+ /**
9617
+ *
9618
+ * @type {number}
9619
+ * @memberof LoyaltyBusinessScopeDto
9620
+ */
9621
+ 'business_id': number;
9622
+ /**
9623
+ *
9624
+ * @type {Array<LoyaltyConditionBindingDto>}
9625
+ * @memberof LoyaltyBusinessScopeDto
9626
+ */
9627
+ 'condition_bindings': Array<LoyaltyConditionBindingDto>;
9628
+ /**
9629
+ *
9630
+ * @type {LoyaltyActionTargetDto}
9631
+ * @memberof LoyaltyBusinessScopeDto
9632
+ */
9633
+ 'action_target': LoyaltyActionTargetDto;
9634
+ /**
9635
+ *
9636
+ * @type {LoyaltyActionOverrideDto}
9637
+ * @memberof LoyaltyBusinessScopeDto
9638
+ */
9639
+ 'action_override'?: LoyaltyActionOverrideDto | null;
9640
+ }
9641
+ /**
9642
+ *
9643
+ * @export
9644
+ * @enum {string}
9645
+ */
9646
+
9647
+ export const LoyaltyCatalogType = {
9648
+ Product: 'product',
9649
+ Coupon: 'coupon'
9650
+ } as const;
9651
+
9652
+ export type LoyaltyCatalogType = typeof LoyaltyCatalogType[keyof typeof LoyaltyCatalogType];
9653
+
9654
+
9655
+ /**
9656
+ *
9657
+ * @export
9658
+ * @enum {string}
9659
+ */
9660
+
9661
+ export const LoyaltyChannel = {
9662
+ Kiosk: 'kiosk',
9663
+ Pos: 'pos',
9664
+ Online: 'online',
9665
+ Mobile: 'mobile'
9666
+ } as const;
9667
+
9668
+ export type LoyaltyChannel = typeof LoyaltyChannel[keyof typeof LoyaltyChannel];
9669
+
9670
+
9671
+ /**
9672
+ *
9673
+ * @export
9674
+ * @interface LoyaltyConditionBindingDto
9675
+ */
9676
+ export interface LoyaltyConditionBindingDto {
9677
+ /**
9678
+ *
9679
+ * @type {string}
9680
+ * @memberof LoyaltyConditionBindingDto
9681
+ */
9682
+ 'condition_id': string;
9683
+ /**
9684
+ *
9685
+ * @type {Array<number>}
9686
+ * @memberof LoyaltyConditionBindingDto
9687
+ */
9688
+ 'product_ids': Array<number>;
9689
+ /**
9690
+ *
9691
+ * @type {Array<number>}
9692
+ * @memberof LoyaltyConditionBindingDto
9693
+ */
9694
+ 'category_ids': Array<number>;
9695
+ }
9491
9696
  /**
9492
9697
  *
9493
9698
  * @export
@@ -9637,6 +9842,195 @@ export interface LoyaltyLinkMetadataDto {
9637
9842
  */
9638
9843
  'venueId': number;
9639
9844
  }
9845
+ /**
9846
+ *
9847
+ * @export
9848
+ * @interface LoyaltyMemberContextDto
9849
+ */
9850
+ export interface LoyaltyMemberContextDto {
9851
+ /**
9852
+ * Loyalty user id the member context was resolved for
9853
+ * @type {number}
9854
+ * @memberof LoyaltyMemberContextDto
9855
+ */
9856
+ 'user_id': number;
9857
+ /**
9858
+ * Business the member context was resolved for
9859
+ * @type {number}
9860
+ * @memberof LoyaltyMemberContextDto
9861
+ */
9862
+ 'business_id': number;
9863
+ /**
9864
+ *
9865
+ * @type {LoyaltyChannel}
9866
+ * @memberof LoyaltyMemberContextDto
9867
+ */
9868
+ 'channel': LoyaltyChannel;
9869
+ /**
9870
+ * Points the member can still spend, excluding expired batches
9871
+ * @type {number}
9872
+ * @memberof LoyaltyMemberContextDto
9873
+ */
9874
+ 'points_balance': number;
9875
+ /**
9876
+ * Rewards available to this member on this channel
9877
+ * @type {Array<LoyaltyMemberContextRewardDto>}
9878
+ * @memberof LoyaltyMemberContextDto
9879
+ */
9880
+ 'rewards': Array<LoyaltyMemberContextRewardDto>;
9881
+ }
9882
+
9883
+
9884
+ /**
9885
+ *
9886
+ * @export
9887
+ * @interface LoyaltyMemberContextRequestDto
9888
+ */
9889
+ export interface LoyaltyMemberContextRequestDto {
9890
+ /**
9891
+ * Loyalty user id the context is resolved for
9892
+ * @type {number}
9893
+ * @memberof LoyaltyMemberContextRequestDto
9894
+ */
9895
+ 'user_id': number;
9896
+ /**
9897
+ * Business the caller is asking about
9898
+ * @type {number}
9899
+ * @memberof LoyaltyMemberContextRequestDto
9900
+ */
9901
+ 'business_id': number;
9902
+ /**
9903
+ *
9904
+ * @type {LoyaltyChannel}
9905
+ * @memberof LoyaltyMemberContextRequestDto
9906
+ */
9907
+ 'channel': LoyaltyChannel;
9908
+ }
9909
+
9910
+
9911
+ /**
9912
+ *
9913
+ * @export
9914
+ * @interface LoyaltyMemberContextRewardDto
9915
+ */
9916
+ export interface LoyaltyMemberContextRewardDto {
9917
+ /**
9918
+ *
9919
+ * @type {number}
9920
+ * @memberof LoyaltyMemberContextRewardDto
9921
+ */
9922
+ 'catalog_id': number;
9923
+ /**
9924
+ *
9925
+ * @type {LoyaltyRewardType}
9926
+ * @memberof LoyaltyMemberContextRewardDto
9927
+ */
9928
+ 'type': LoyaltyRewardType;
9929
+ /**
9930
+ *
9931
+ * @type {string}
9932
+ * @memberof LoyaltyMemberContextRewardDto
9933
+ */
9934
+ 'name': string;
9935
+ /**
9936
+ *
9937
+ * @type {string}
9938
+ * @memberof LoyaltyMemberContextRewardDto
9939
+ */
9940
+ 'description'?: string | null;
9941
+ /**
9942
+ * Points a member spends; always null for a coupon
9943
+ * @type {number}
9944
+ * @memberof LoyaltyMemberContextRewardDto
9945
+ */
9946
+ 'points_cost': number | null;
9947
+ /**
9948
+ *
9949
+ * @type {Array<LoyaltyMemberContextRuleDto>}
9950
+ * @memberof LoyaltyMemberContextRewardDto
9951
+ */
9952
+ 'rules': Array<LoyaltyMemberContextRuleDto>;
9953
+ }
9954
+
9955
+
9956
+ /**
9957
+ *
9958
+ * @export
9959
+ * @interface LoyaltyMemberContextRuleDto
9960
+ */
9961
+ export interface LoyaltyMemberContextRuleDto {
9962
+ /**
9963
+ *
9964
+ * @type {number}
9965
+ * @memberof LoyaltyMemberContextRuleDto
9966
+ */
9967
+ 'rule_id': number;
9968
+ /**
9969
+ *
9970
+ * @type {number}
9971
+ * @memberof LoyaltyMemberContextRuleDto
9972
+ */
9973
+ 'revision': number;
9974
+ /**
9975
+ *
9976
+ * @type {LoyaltyRuleApplicationMode}
9977
+ * @memberof LoyaltyMemberContextRuleDto
9978
+ */
9979
+ 'application_mode': LoyaltyRuleApplicationMode;
9980
+ /**
9981
+ *
9982
+ * @type {LoyaltyRuleStackingMode}
9983
+ * @memberof LoyaltyMemberContextRuleDto
9984
+ */
9985
+ 'stacking_mode': LoyaltyRuleStackingMode;
9986
+ /**
9987
+ *
9988
+ * @type {Array<LoyaltyRuleConditionDto>}
9989
+ * @memberof LoyaltyMemberContextRuleDto
9990
+ */
9991
+ 'conditions': Array<LoyaltyRuleConditionDto>;
9992
+ /**
9993
+ *
9994
+ * @type {boolean}
9995
+ * @memberof LoyaltyMemberContextRuleDto
9996
+ */
9997
+ 'repeatable': boolean;
9998
+ /**
9999
+ *
10000
+ * @type {number}
10001
+ * @memberof LoyaltyMemberContextRuleDto
10002
+ */
10003
+ 'max_applications': number | null;
10004
+ /**
10005
+ *
10006
+ * @type {LoyaltyRuleActionDto}
10007
+ * @memberof LoyaltyMemberContextRuleDto
10008
+ */
10009
+ 'action': LoyaltyRuleActionDto;
10010
+ /**
10011
+ *
10012
+ * @type {LoyaltyBusinessScopeDto}
10013
+ * @memberof LoyaltyMemberContextRuleDto
10014
+ */
10015
+ 'business_scope': LoyaltyBusinessScopeDto;
10016
+ }
10017
+
10018
+
10019
+ /**
10020
+ *
10021
+ * @export
10022
+ * @enum {string}
10023
+ */
10024
+
10025
+ export const LoyaltyRedemptionStatus = {
10026
+ Pending: 'pending',
10027
+ Redeemed: 'redeemed',
10028
+ Reversed: 'reversed'
10029
+ } as const;
10030
+
10031
+ export type LoyaltyRedemptionStatus = typeof LoyaltyRedemptionStatus[keyof typeof LoyaltyRedemptionStatus];
10032
+
10033
+
9640
10034
  /**
9641
10035
  *
9642
10036
  * @export
@@ -9681,6 +10075,230 @@ export interface LoyaltyResolveResponseDto {
9681
10075
  */
9682
10076
  'perks': Array<ResolvedPerkDto>;
9683
10077
  }
10078
+ /**
10079
+ *
10080
+ * @export
10081
+ * @enum {string}
10082
+ */
10083
+
10084
+ export const LoyaltyRestoreRequestStatus = {
10085
+ Requested: 'REQUESTED',
10086
+ AlreadyReversed: 'ALREADY_REVERSED'
10087
+ } as const;
10088
+
10089
+ export type LoyaltyRestoreRequestStatus = typeof LoyaltyRestoreRequestStatus[keyof typeof LoyaltyRestoreRequestStatus];
10090
+
10091
+
10092
+ /**
10093
+ *
10094
+ * @export
10095
+ * @enum {string}
10096
+ */
10097
+
10098
+ export const LoyaltyRewardType = {
10099
+ Product: 'product',
10100
+ Coupon: 'coupon'
10101
+ } as const;
10102
+
10103
+ export type LoyaltyRewardType = typeof LoyaltyRewardType[keyof typeof LoyaltyRewardType];
10104
+
10105
+
10106
+ /**
10107
+ *
10108
+ * @export
10109
+ * @interface LoyaltyRuleActionDto
10110
+ */
10111
+ export interface LoyaltyRuleActionDto {
10112
+ /**
10113
+ *
10114
+ * @type {LoyaltyRuleActionType}
10115
+ * @memberof LoyaltyRuleActionDto
10116
+ */
10117
+ 'type': LoyaltyRuleActionType;
10118
+ /**
10119
+ * 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.
10120
+ * @type {number}
10121
+ * @memberof LoyaltyRuleActionDto
10122
+ */
10123
+ 'value': number;
10124
+ /**
10125
+ *
10126
+ * @type {string}
10127
+ * @memberof LoyaltyRuleActionDto
10128
+ */
10129
+ 'currency'?: string | null;
10130
+ /**
10131
+ *
10132
+ * @type {LoyaltyRuleTargetType}
10133
+ * @memberof LoyaltyRuleActionDto
10134
+ */
10135
+ 'target_type': LoyaltyRuleTargetType;
10136
+ /**
10137
+ *
10138
+ * @type {LoyaltyRuleSelection}
10139
+ * @memberof LoyaltyRuleActionDto
10140
+ */
10141
+ 'selection': LoyaltyRuleSelection;
10142
+ /**
10143
+ *
10144
+ * @type {number}
10145
+ * @memberof LoyaltyRuleActionDto
10146
+ */
10147
+ 'units_per_application': number;
10148
+ /**
10149
+ *
10150
+ * @type {number}
10151
+ * @memberof LoyaltyRuleActionDto
10152
+ */
10153
+ 'max_units'?: number | null;
10154
+ /**
10155
+ *
10156
+ * @type {LoyaltyRuleFulfillmentMode}
10157
+ * @memberof LoyaltyRuleActionDto
10158
+ */
10159
+ 'fulfillment_mode': LoyaltyRuleFulfillmentMode;
10160
+ }
10161
+
10162
+
10163
+ /**
10164
+ *
10165
+ * @export
10166
+ * @enum {string}
10167
+ */
10168
+
10169
+ export const LoyaltyRuleActionType = {
10170
+ Percentage: 'percentage',
10171
+ Fixed: 'fixed'
10172
+ } as const;
10173
+
10174
+ export type LoyaltyRuleActionType = typeof LoyaltyRuleActionType[keyof typeof LoyaltyRuleActionType];
10175
+
10176
+
10177
+ /**
10178
+ *
10179
+ * @export
10180
+ * @enum {string}
10181
+ */
10182
+
10183
+ export const LoyaltyRuleApplicationMode = {
10184
+ Manual: 'manual',
10185
+ Automatic: 'automatic'
10186
+ } as const;
10187
+
10188
+ export type LoyaltyRuleApplicationMode = typeof LoyaltyRuleApplicationMode[keyof typeof LoyaltyRuleApplicationMode];
10189
+
10190
+
10191
+ /**
10192
+ *
10193
+ * @export
10194
+ * @interface LoyaltyRuleConditionDto
10195
+ */
10196
+ export interface LoyaltyRuleConditionDto {
10197
+ /**
10198
+ *
10199
+ * @type {string}
10200
+ * @memberof LoyaltyRuleConditionDto
10201
+ */
10202
+ 'condition_id': string;
10203
+ /**
10204
+ *
10205
+ * @type {LoyaltyRuleConditionType}
10206
+ * @memberof LoyaltyRuleConditionDto
10207
+ */
10208
+ 'type': LoyaltyRuleConditionType;
10209
+ /**
10210
+ *
10211
+ * @type {number}
10212
+ * @memberof LoyaltyRuleConditionDto
10213
+ */
10214
+ 'required_quantity'?: number | null;
10215
+ /**
10216
+ *
10217
+ * @type {number}
10218
+ * @memberof LoyaltyRuleConditionDto
10219
+ */
10220
+ 'value'?: number | null;
10221
+ }
10222
+
10223
+
10224
+ /**
10225
+ *
10226
+ * @export
10227
+ * @enum {string}
10228
+ */
10229
+
10230
+ export const LoyaltyRuleConditionType = {
10231
+ Always: 'always',
10232
+ ProductInCart: 'product_in_cart',
10233
+ CategoryInCart: 'category_in_cart',
10234
+ ProductQuantityInCart: 'product_quantity_in_cart',
10235
+ CategoryQuantityInCart: 'category_quantity_in_cart',
10236
+ CartMinValue: 'cart_min_value',
10237
+ CartMaxValue: 'cart_max_value'
10238
+ } as const;
10239
+
10240
+ export type LoyaltyRuleConditionType = typeof LoyaltyRuleConditionType[keyof typeof LoyaltyRuleConditionType];
10241
+
10242
+
10243
+ /**
10244
+ *
10245
+ * @export
10246
+ * @enum {string}
10247
+ */
10248
+
10249
+ export const LoyaltyRuleFulfillmentMode = {
10250
+ RequireInCart: 'require_in_cart',
10251
+ ConfigureTarget: 'configure_target'
10252
+ } as const;
10253
+
10254
+ export type LoyaltyRuleFulfillmentMode = typeof LoyaltyRuleFulfillmentMode[keyof typeof LoyaltyRuleFulfillmentMode];
10255
+
10256
+
10257
+ /**
10258
+ *
10259
+ * @export
10260
+ * @enum {string}
10261
+ */
10262
+
10263
+ export const LoyaltyRuleSelection = {
10264
+ All: 'all',
10265
+ Cheapest: 'cheapest',
10266
+ MostExpensive: 'most_expensive'
10267
+ } as const;
10268
+
10269
+ export type LoyaltyRuleSelection = typeof LoyaltyRuleSelection[keyof typeof LoyaltyRuleSelection];
10270
+
10271
+
10272
+ /**
10273
+ *
10274
+ * @export
10275
+ * @enum {string}
10276
+ */
10277
+
10278
+ export const LoyaltyRuleStackingMode = {
10279
+ ExclusiveBestForCustomer: 'exclusive_best_for_customer',
10280
+ Stackable: 'stackable'
10281
+ } as const;
10282
+
10283
+ export type LoyaltyRuleStackingMode = typeof LoyaltyRuleStackingMode[keyof typeof LoyaltyRuleStackingMode];
10284
+
10285
+
10286
+ /**
10287
+ *
10288
+ * @export
10289
+ * @enum {string}
10290
+ */
10291
+
10292
+ export const LoyaltyRuleTargetType = {
10293
+ ConditionMatch: 'condition_match',
10294
+ Product: 'product',
10295
+ Category: 'category',
10296
+ Order: 'order'
10297
+ } as const;
10298
+
10299
+ export type LoyaltyRuleTargetType = typeof LoyaltyRuleTargetType[keyof typeof LoyaltyRuleTargetType];
10300
+
10301
+
9684
10302
  /**
9685
10303
  *
9686
10304
  * @export
@@ -11655,6 +12273,118 @@ export interface OrderHistoryResponseDtoSummary {
11655
12273
  */
11656
12274
  'totalTipAmount'?: number;
11657
12275
  }
12276
+ /**
12277
+ *
12278
+ * @export
12279
+ * @interface OrderLoyaltyDto
12280
+ */
12281
+ export interface OrderLoyaltyDto {
12282
+ /**
12283
+ * Redemptions on this order, keyed by loyalty entry id.
12284
+ * @type {{ [key: string]: OrderLoyaltyRedemptionDto; }}
12285
+ * @memberof OrderLoyaltyDto
12286
+ */
12287
+ 'redemptions': { [key: string]: OrderLoyaltyRedemptionDto; };
12288
+ }
12289
+ /**
12290
+ *
12291
+ * @export
12292
+ * @interface OrderLoyaltyRedemptionDto
12293
+ */
12294
+ export interface OrderLoyaltyRedemptionDto {
12295
+ /**
12296
+ * Loyalty entry id, and the key this entry is stored under
12297
+ * @type {string}
12298
+ * @memberof OrderLoyaltyRedemptionDto
12299
+ */
12300
+ 'id': string;
12301
+ /**
12302
+ *
12303
+ * @type {Array<string>}
12304
+ * @memberof OrderLoyaltyRedemptionDto
12305
+ */
12306
+ 'discountApplicationIds': Array<string>;
12307
+ /**
12308
+ *
12309
+ * @type {number}
12310
+ * @memberof OrderLoyaltyRedemptionDto
12311
+ */
12312
+ 'catalogId': number;
12313
+ /**
12314
+ *
12315
+ * @type {LoyaltyCatalogType}
12316
+ * @memberof OrderLoyaltyRedemptionDto
12317
+ */
12318
+ 'catalogType': LoyaltyCatalogType;
12319
+ /**
12320
+ *
12321
+ * @type {string}
12322
+ * @memberof OrderLoyaltyRedemptionDto
12323
+ */
12324
+ 'rewardName': string;
12325
+ /**
12326
+ *
12327
+ * @type {number}
12328
+ * @memberof OrderLoyaltyRedemptionDto
12329
+ */
12330
+ 'ruleId': number;
12331
+ /**
12332
+ *
12333
+ * @type {number}
12334
+ * @memberof OrderLoyaltyRedemptionDto
12335
+ */
12336
+ 'ruleRevision': number;
12337
+ /**
12338
+ *
12339
+ * @type {number}
12340
+ * @memberof OrderLoyaltyRedemptionDto
12341
+ */
12342
+ 'quantity': number;
12343
+ /**
12344
+ * Points spent, in points.
12345
+ * @type {number}
12346
+ * @memberof OrderLoyaltyRedemptionDto
12347
+ */
12348
+ 'pointsCost': number | null;
12349
+ /**
12350
+ *
12351
+ * @type {LoyaltyRedemptionStatus}
12352
+ * @memberof OrderLoyaltyRedemptionDto
12353
+ */
12354
+ 'status': LoyaltyRedemptionStatus;
12355
+ /**
12356
+ *
12357
+ * @type {string}
12358
+ * @memberof OrderLoyaltyRedemptionDto
12359
+ */
12360
+ 'transactionId': string | null;
12361
+ /**
12362
+ *
12363
+ * @type {string}
12364
+ * @memberof OrderLoyaltyRedemptionDto
12365
+ */
12366
+ 'walletId': string | null;
12367
+ /**
12368
+ *
12369
+ * @type {string}
12370
+ * @memberof OrderLoyaltyRedemptionDto
12371
+ */
12372
+ 'settledAt': string | null;
12373
+ /**
12374
+ *
12375
+ * @type {string}
12376
+ * @memberof OrderLoyaltyRedemptionDto
12377
+ */
12378
+ 'reversalTransactionId': string | null;
12379
+ /**
12380
+ *
12381
+ * @type {string}
12382
+ * @memberof OrderLoyaltyRedemptionDto
12383
+ */
12384
+ 'reversedAt': string | null;
12385
+ }
12386
+
12387
+
11658
12388
  /**
11659
12389
  *
11660
12390
  * @export
@@ -13465,6 +14195,12 @@ export interface ParkPosOrderDtoOrder {
13465
14195
  * @memberof ParkPosOrderDtoOrder
13466
14196
  */
13467
14197
  'tableGroupId'?: string | null;
14198
+ /**
14199
+ *
14200
+ * @type {PosOrderDtoLoyalty}
14201
+ * @memberof ParkPosOrderDtoOrder
14202
+ */
14203
+ 'loyalty'?: PosOrderDtoLoyalty | null;
13468
14204
  }
13469
14205
 
13470
14206
 
@@ -15914,6 +16650,36 @@ export interface PosDiscountDto {
15914
16650
  * @memberof PosDiscountDto
15915
16651
  */
15916
16652
  'isAutomatic': boolean;
16653
+ /**
16654
+ * 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.
16655
+ * @type {number}
16656
+ * @memberof PosDiscountDto
16657
+ */
16658
+ 'sequence'?: number;
16659
+ /**
16660
+ * Payable amount this application was measured against, in minor units.
16661
+ * @type {number}
16662
+ * @memberof PosDiscountDto
16663
+ */
16664
+ 'baseAmount'?: number;
16665
+ /**
16666
+ * Amount the configured discount asked for, in minor units, before it was clamped to what was still payable.
16667
+ * @type {number}
16668
+ * @memberof PosDiscountDto
16669
+ */
16670
+ 'requestedAmount'?: number;
16671
+ /**
16672
+ * Part of requestedAmount that could not be taken because nothing payable was left, in minor units. Never cashback.
16673
+ * @type {number}
16674
+ * @memberof PosDiscountDto
16675
+ */
16676
+ 'forfeitedAmount'?: number;
16677
+ /**
16678
+ * Number of line units this application covers. Absent means it covers the whole line.
16679
+ * @type {number}
16680
+ * @memberof PosDiscountDto
16681
+ */
16682
+ 'units'?: number;
15917
16683
  }
15918
16684
 
15919
16685
 
@@ -17134,6 +17900,12 @@ export interface PosOrderDto {
17134
17900
  * @memberof PosOrderDto
17135
17901
  */
17136
17902
  'tableGroupId'?: string | null;
17903
+ /**
17904
+ *
17905
+ * @type {PosOrderDtoLoyalty}
17906
+ * @memberof PosOrderDto
17907
+ */
17908
+ 'loyalty'?: PosOrderDtoLoyalty | null;
17137
17909
  }
17138
17910
 
17139
17911
 
@@ -17223,6 +17995,19 @@ export interface PosOrderDtoInvoiceCompany {
17223
17995
  */
17224
17996
  'updatedAt': string;
17225
17997
  }
17998
+ /**
17999
+ * Loyalty rewards committed to this order. Absent on orders that used none.
18000
+ * @export
18001
+ * @interface PosOrderDtoLoyalty
18002
+ */
18003
+ export interface PosOrderDtoLoyalty {
18004
+ /**
18005
+ * Redemptions on this order, keyed by loyalty entry id.
18006
+ * @type {{ [key: string]: OrderLoyaltyRedemptionDto; }}
18007
+ * @memberof PosOrderDtoLoyalty
18008
+ */
18009
+ 'redemptions': { [key: string]: OrderLoyaltyRedemptionDto; };
18010
+ }
17226
18011
  /**
17227
18012
  * Fine dining table service metadata
17228
18013
  * @export
@@ -17438,6 +18223,12 @@ export interface PosOrderItemDto {
17438
18223
  * @memberof PosOrderItemDto
17439
18224
  */
17440
18225
  'discount': PosDiscountDto | null;
18226
+ /**
18227
+ * Every item-scope discount application on this line, in cascade order — including when there is only one.
18228
+ * @type {Array<PosDiscountDto>}
18229
+ * @memberof PosOrderItemDto
18230
+ */
18231
+ 'discountApplications'?: Array<PosDiscountDto>;
17441
18232
  /**
17442
18233
  *
17443
18234
  * @type {boolean}
@@ -17956,6 +18747,12 @@ export interface PosOrderPayloadDtoOrder {
17956
18747
  * @memberof PosOrderPayloadDtoOrder
17957
18748
  */
17958
18749
  'tableGroupId'?: string | null;
18750
+ /**
18751
+ *
18752
+ * @type {PosOrderDtoLoyalty}
18753
+ * @memberof PosOrderPayloadDtoOrder
18754
+ */
18755
+ 'loyalty'?: PosOrderDtoLoyalty | null;
17959
18756
  }
17960
18757
 
17961
18758
 
@@ -18915,6 +19712,12 @@ export interface ProcessOrderActionsResponseDtoOrder {
18915
19712
  * @memberof ProcessOrderActionsResponseDtoOrder
18916
19713
  */
18917
19714
  'tableGroupId'?: string | null;
19715
+ /**
19716
+ *
19717
+ * @type {PosOrderDtoLoyalty}
19718
+ * @memberof ProcessOrderActionsResponseDtoOrder
19719
+ */
19720
+ 'loyalty'?: PosOrderDtoLoyalty | null;
18918
19721
  }
18919
19722
 
18920
19723
 
@@ -20269,6 +21072,12 @@ export interface RecordManualPaymentResultDtoOrder {
20269
21072
  * @memberof RecordManualPaymentResultDtoOrder
20270
21073
  */
20271
21074
  'tableGroupId'?: string | null;
21075
+ /**
21076
+ *
21077
+ * @type {PosOrderDtoLoyalty}
21078
+ * @memberof RecordManualPaymentResultDtoOrder
21079
+ */
21080
+ 'loyalty'?: PosOrderDtoLoyalty | null;
20272
21081
  }
20273
21082
 
20274
21083
 
@@ -21297,6 +22106,58 @@ export const ScopeEnum = {
21297
22106
 
21298
22107
  export type ScopeEnum = typeof ScopeEnum[keyof typeof ScopeEnum];
21299
22108
 
22109
+ /**
22110
+ *
22111
+ * @export
22112
+ * @interface RestoreLoyaltyRedemptionDto
22113
+ */
22114
+ export interface RestoreLoyaltyRedemptionDto {
22115
+ /**
22116
+ * Business the order belongs to
22117
+ * @type {number}
22118
+ * @memberof RestoreLoyaltyRedemptionDto
22119
+ */
22120
+ 'businessId': number;
22121
+ /**
22122
+ * POS or kiosk order carrying the redemption
22123
+ * @type {string}
22124
+ * @memberof RestoreLoyaltyRedemptionDto
22125
+ */
22126
+ 'orderId': string;
22127
+ /**
22128
+ * Loyalty entry to restore
22129
+ * @type {string}
22130
+ * @memberof RestoreLoyaltyRedemptionDto
22131
+ */
22132
+ 'loyaltyEntryId': string;
22133
+ }
22134
+ /**
22135
+ *
22136
+ * @export
22137
+ * @interface RestoreLoyaltyRedemptionResponseDto
22138
+ */
22139
+ export interface RestoreLoyaltyRedemptionResponseDto {
22140
+ /**
22141
+ *
22142
+ * @type {LoyaltyRestoreRequestStatus}
22143
+ * @memberof RestoreLoyaltyRedemptionResponseDto
22144
+ */
22145
+ 'status': LoyaltyRestoreRequestStatus;
22146
+ /**
22147
+ * Loyalty transaction the restore was asked against
22148
+ * @type {string}
22149
+ * @memberof RestoreLoyaltyRedemptionResponseDto
22150
+ */
22151
+ 'transactionId': string | null;
22152
+ /**
22153
+ * Reversal already recorded against the entry, when there is one
22154
+ * @type {string}
22155
+ * @memberof RestoreLoyaltyRedemptionResponseDto
22156
+ */
22157
+ 'reversalTransactionId': string | null;
22158
+ }
22159
+
22160
+
21300
22161
  /**
21301
22162
  *
21302
22163
  * @export
@@ -22637,6 +23498,12 @@ export interface SyncKioskOrderDtoOrder {
22637
23498
  * @memberof SyncKioskOrderDtoOrder
22638
23499
  */
22639
23500
  'tableGroupId'?: string | null;
23501
+ /**
23502
+ *
23503
+ * @type {PosOrderDtoLoyalty}
23504
+ * @memberof SyncKioskOrderDtoOrder
23505
+ */
23506
+ 'loyalty'?: PosOrderDtoLoyalty | null;
22640
23507
  }
22641
23508
 
22642
23509
 
@@ -22968,6 +23835,12 @@ export interface SyncPosOrderDtoOrder {
22968
23835
  * @memberof SyncPosOrderDtoOrder
22969
23836
  */
22970
23837
  'tableGroupId'?: string | null;
23838
+ /**
23839
+ *
23840
+ * @type {PosOrderDtoLoyalty}
23841
+ * @memberof SyncPosOrderDtoOrder
23842
+ */
23843
+ 'loyalty'?: PosOrderDtoLoyalty | null;
22971
23844
  }
22972
23845
 
22973
23846
 
@@ -24400,6 +25273,12 @@ export interface UnifiedOrderResponseDto {
24400
25273
  * @memberof UnifiedOrderResponseDto
24401
25274
  */
24402
25275
  'posDiscounts'?: Array<PosDiscountDto>;
25276
+ /**
25277
+ *
25278
+ * @type {UnifiedOrderResponseDtoLoyalty}
25279
+ * @memberof UnifiedOrderResponseDto
25280
+ */
25281
+ 'loyalty'?: UnifiedOrderResponseDtoLoyalty | null;
24403
25282
  /**
24404
25283
  * Payment transactions recorded for the POS order. POS only
24405
25284
  * @type {Array<TransactionDto>}
@@ -24738,6 +25617,19 @@ export interface UnifiedOrderResponseDtoLastPaymentError {
24738
25617
  }
24739
25618
 
24740
25619
 
25620
+ /**
25621
+ * Loyalty rewards committed to the POS order, keyed by loyalty entry id. POS only
25622
+ * @export
25623
+ * @interface UnifiedOrderResponseDtoLoyalty
25624
+ */
25625
+ export interface UnifiedOrderResponseDtoLoyalty {
25626
+ /**
25627
+ * Redemptions on this order, keyed by loyalty entry id.
25628
+ * @type {{ [key: string]: OrderLoyaltyRedemptionDto; }}
25629
+ * @memberof UnifiedOrderResponseDtoLoyalty
25630
+ */
25631
+ 'redemptions': { [key: string]: OrderLoyaltyRedemptionDto; };
25632
+ }
24741
25633
  /**
24742
25634
  * Preorder scheduling details. Platform only
24743
25635
  * @export
@@ -39127,6 +40019,135 @@ export class KiosksApi extends BaseAPI implements KiosksApiInterface {
39127
40019
  }
39128
40020
 
39129
40021
 
40022
+ /**
40023
+ * LoyaltyCommerceApi - axios parameter creator
40024
+ * @export
40025
+ */
40026
+ export const LoyaltyCommerceApiAxiosParamCreator = function (configuration?: Configuration) {
40027
+ return {
40028
+ /**
40029
+ *
40030
+ * @summary Ask the loyalty ledger to restore a settled redemption
40031
+ * @param {RestoreLoyaltyRedemptionDto} restoreLoyaltyRedemptionDto
40032
+ * @param {*} [options] Override http request option.
40033
+ * @throws {RequiredError}
40034
+ */
40035
+ restoreRedemption: async (restoreLoyaltyRedemptionDto: RestoreLoyaltyRedemptionDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
40036
+ // verify required parameter 'restoreLoyaltyRedemptionDto' is not null or undefined
40037
+ assertParamExists('restoreRedemption', 'restoreLoyaltyRedemptionDto', restoreLoyaltyRedemptionDto)
40038
+ const localVarPath = `/api/v1/loyalty-commerce/redemptions/restore`;
40039
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
40040
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
40041
+ let baseOptions;
40042
+ if (configuration) {
40043
+ baseOptions = configuration.baseOptions;
40044
+ }
40045
+
40046
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
40047
+ const localVarHeaderParameter = {} as any;
40048
+ const localVarQueryParameter = {} as any;
40049
+
40050
+ // authentication JWT-auth required
40051
+ // http bearer authentication required
40052
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
40053
+
40054
+
40055
+
40056
+ localVarHeaderParameter['Content-Type'] = 'application/json';
40057
+
40058
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
40059
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
40060
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
40061
+ localVarRequestOptions.data = serializeDataIfNeeded(restoreLoyaltyRedemptionDto, localVarRequestOptions, configuration)
40062
+
40063
+ return {
40064
+ url: toPathString(localVarUrlObj),
40065
+ options: localVarRequestOptions,
40066
+ };
40067
+ },
40068
+ }
40069
+ };
40070
+
40071
+ /**
40072
+ * LoyaltyCommerceApi - functional programming interface
40073
+ * @export
40074
+ */
40075
+ export const LoyaltyCommerceApiFp = function(configuration?: Configuration) {
40076
+ const localVarAxiosParamCreator = LoyaltyCommerceApiAxiosParamCreator(configuration)
40077
+ return {
40078
+ /**
40079
+ *
40080
+ * @summary Ask the loyalty ledger to restore a settled redemption
40081
+ * @param {RestoreLoyaltyRedemptionDto} restoreLoyaltyRedemptionDto
40082
+ * @param {*} [options] Override http request option.
40083
+ * @throws {RequiredError}
40084
+ */
40085
+ async restoreRedemption(restoreLoyaltyRedemptionDto: RestoreLoyaltyRedemptionDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RestoreLoyaltyRedemptionResponseDto>> {
40086
+ const localVarAxiosArgs = await localVarAxiosParamCreator.restoreRedemption(restoreLoyaltyRedemptionDto, options);
40087
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
40088
+ },
40089
+ }
40090
+ };
40091
+
40092
+ /**
40093
+ * LoyaltyCommerceApi - factory interface
40094
+ * @export
40095
+ */
40096
+ export const LoyaltyCommerceApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
40097
+ const localVarFp = LoyaltyCommerceApiFp(configuration)
40098
+ return {
40099
+ /**
40100
+ *
40101
+ * @summary Ask the loyalty ledger to restore a settled redemption
40102
+ * @param {RestoreLoyaltyRedemptionDto} restoreLoyaltyRedemptionDto
40103
+ * @param {*} [options] Override http request option.
40104
+ * @throws {RequiredError}
40105
+ */
40106
+ restoreRedemption(restoreLoyaltyRedemptionDto: RestoreLoyaltyRedemptionDto, options?: any): AxiosPromise<RestoreLoyaltyRedemptionResponseDto> {
40107
+ return localVarFp.restoreRedemption(restoreLoyaltyRedemptionDto, options).then((request) => request(axios, basePath));
40108
+ },
40109
+ };
40110
+ };
40111
+
40112
+ /**
40113
+ * LoyaltyCommerceApi - interface
40114
+ * @export
40115
+ * @interface LoyaltyCommerceApi
40116
+ */
40117
+ export interface LoyaltyCommerceApiInterface {
40118
+ /**
40119
+ *
40120
+ * @summary Ask the loyalty ledger to restore a settled redemption
40121
+ * @param {RestoreLoyaltyRedemptionDto} restoreLoyaltyRedemptionDto
40122
+ * @param {*} [options] Override http request option.
40123
+ * @throws {RequiredError}
40124
+ * @memberof LoyaltyCommerceApiInterface
40125
+ */
40126
+ restoreRedemption(restoreLoyaltyRedemptionDto: RestoreLoyaltyRedemptionDto, options?: AxiosRequestConfig): AxiosPromise<RestoreLoyaltyRedemptionResponseDto>;
40127
+
40128
+ }
40129
+
40130
+ /**
40131
+ * LoyaltyCommerceApi - object-oriented interface
40132
+ * @export
40133
+ * @class LoyaltyCommerceApi
40134
+ * @extends {BaseAPI}
40135
+ */
40136
+ export class LoyaltyCommerceApi extends BaseAPI implements LoyaltyCommerceApiInterface {
40137
+ /**
40138
+ *
40139
+ * @summary Ask the loyalty ledger to restore a settled redemption
40140
+ * @param {RestoreLoyaltyRedemptionDto} restoreLoyaltyRedemptionDto
40141
+ * @param {*} [options] Override http request option.
40142
+ * @throws {RequiredError}
40143
+ * @memberof LoyaltyCommerceApi
40144
+ */
40145
+ public restoreRedemption(restoreLoyaltyRedemptionDto: RestoreLoyaltyRedemptionDto, options?: AxiosRequestConfig) {
40146
+ return LoyaltyCommerceApiFp(this.configuration).restoreRedemption(restoreLoyaltyRedemptionDto, options).then((request) => request(this.axios, this.basePath));
40147
+ }
40148
+ }
40149
+
40150
+
39130
40151
  /**
39131
40152
  * LoyaltyIntegerationsApi - axios parameter creator
39132
40153
  * @export
@@ -39496,6 +40517,46 @@ export const LoyaltyIntegerationsApiAxiosParamCreator = function (configuration?
39496
40517
  options: localVarRequestOptions,
39497
40518
  };
39498
40519
  },
40520
+ /**
40521
+ *
40522
+ * @summary Resolve the loyalty member context for a member on a till surface
40523
+ * @param {LoyaltyMemberContextRequestDto} loyaltyMemberContextRequestDto
40524
+ * @param {*} [options] Override http request option.
40525
+ * @throws {RequiredError}
40526
+ */
40527
+ memberContext: async (loyaltyMemberContextRequestDto: LoyaltyMemberContextRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
40528
+ // verify required parameter 'loyaltyMemberContextRequestDto' is not null or undefined
40529
+ assertParamExists('memberContext', 'loyaltyMemberContextRequestDto', loyaltyMemberContextRequestDto)
40530
+ const localVarPath = `/api/v1/loyalty/member-context`;
40531
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
40532
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
40533
+ let baseOptions;
40534
+ if (configuration) {
40535
+ baseOptions = configuration.baseOptions;
40536
+ }
40537
+
40538
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
40539
+ const localVarHeaderParameter = {} as any;
40540
+ const localVarQueryParameter = {} as any;
40541
+
40542
+ // authentication JWT-auth required
40543
+ // http bearer authentication required
40544
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
40545
+
40546
+
40547
+
40548
+ localVarHeaderParameter['Content-Type'] = 'application/json';
40549
+
40550
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
40551
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
40552
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
40553
+ localVarRequestOptions.data = serializeDataIfNeeded(loyaltyMemberContextRequestDto, localVarRequestOptions, configuration)
40554
+
40555
+ return {
40556
+ url: toPathString(localVarUrlObj),
40557
+ options: localVarRequestOptions,
40558
+ };
40559
+ },
39499
40560
  /**
39500
40561
  *
39501
40562
  * @summary Resolve applicable loyalty perks for the current cart (AI)
@@ -39798,6 +40859,17 @@ export const LoyaltyIntegerationsApiFp = function(configuration?: Configuration)
39798
40859
  const localVarAxiosArgs = await localVarAxiosParamCreator.getUserWallet(businessId, userId, options);
39799
40860
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
39800
40861
  },
40862
+ /**
40863
+ *
40864
+ * @summary Resolve the loyalty member context for a member on a till surface
40865
+ * @param {LoyaltyMemberContextRequestDto} loyaltyMemberContextRequestDto
40866
+ * @param {*} [options] Override http request option.
40867
+ * @throws {RequiredError}
40868
+ */
40869
+ async memberContext(loyaltyMemberContextRequestDto: LoyaltyMemberContextRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoyaltyMemberContextDto>> {
40870
+ const localVarAxiosArgs = await localVarAxiosParamCreator.memberContext(loyaltyMemberContextRequestDto, options);
40871
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
40872
+ },
39801
40873
  /**
39802
40874
  *
39803
40875
  * @summary Resolve applicable loyalty perks for the current cart (AI)
@@ -39944,6 +41016,16 @@ export const LoyaltyIntegerationsApiFactory = function (configuration?: Configur
39944
41016
  getUserWallet(businessId: number, userId: number, options?: any): AxiosPromise<UserWalletResponseDto> {
39945
41017
  return localVarFp.getUserWallet(businessId, userId, options).then((request) => request(axios, basePath));
39946
41018
  },
41019
+ /**
41020
+ *
41021
+ * @summary Resolve the loyalty member context for a member on a till surface
41022
+ * @param {LoyaltyMemberContextRequestDto} loyaltyMemberContextRequestDto
41023
+ * @param {*} [options] Override http request option.
41024
+ * @throws {RequiredError}
41025
+ */
41026
+ memberContext(loyaltyMemberContextRequestDto: LoyaltyMemberContextRequestDto, options?: any): AxiosPromise<LoyaltyMemberContextDto> {
41027
+ return localVarFp.memberContext(loyaltyMemberContextRequestDto, options).then((request) => request(axios, basePath));
41028
+ },
39947
41029
  /**
39948
41030
  *
39949
41031
  * @summary Resolve applicable loyalty perks for the current cart (AI)
@@ -40085,6 +41167,16 @@ export interface LoyaltyIntegerationsApiInterface {
40085
41167
  */
40086
41168
  getUserWallet(businessId: number, userId: number, options?: AxiosRequestConfig): AxiosPromise<UserWalletResponseDto>;
40087
41169
 
41170
+ /**
41171
+ *
41172
+ * @summary Resolve the loyalty member context for a member on a till surface
41173
+ * @param {LoyaltyMemberContextRequestDto} loyaltyMemberContextRequestDto
41174
+ * @param {*} [options] Override http request option.
41175
+ * @throws {RequiredError}
41176
+ * @memberof LoyaltyIntegerationsApiInterface
41177
+ */
41178
+ memberContext(loyaltyMemberContextRequestDto: LoyaltyMemberContextRequestDto, options?: AxiosRequestConfig): AxiosPromise<LoyaltyMemberContextDto>;
41179
+
40088
41180
  /**
40089
41181
  *
40090
41182
  * @summary Resolve applicable loyalty perks for the current cart (AI)
@@ -40242,6 +41334,18 @@ export class LoyaltyIntegerationsApi extends BaseAPI implements LoyaltyIntegerat
40242
41334
  return LoyaltyIntegerationsApiFp(this.configuration).getUserWallet(businessId, userId, options).then((request) => request(this.axios, this.basePath));
40243
41335
  }
40244
41336
 
41337
+ /**
41338
+ *
41339
+ * @summary Resolve the loyalty member context for a member on a till surface
41340
+ * @param {LoyaltyMemberContextRequestDto} loyaltyMemberContextRequestDto
41341
+ * @param {*} [options] Override http request option.
41342
+ * @throws {RequiredError}
41343
+ * @memberof LoyaltyIntegerationsApi
41344
+ */
41345
+ public memberContext(loyaltyMemberContextRequestDto: LoyaltyMemberContextRequestDto, options?: AxiosRequestConfig) {
41346
+ return LoyaltyIntegerationsApiFp(this.configuration).memberContext(loyaltyMemberContextRequestDto, options).then((request) => request(this.axios, this.basePath));
41347
+ }
41348
+
40245
41349
  /**
40246
41350
  *
40247
41351
  * @summary Resolve applicable loyalty perks for the current cart (AI)
@@ -41716,6 +42820,151 @@ export class NotificationApi extends BaseAPI implements NotificationApiInterface
41716
42820
  }
41717
42821
 
41718
42822
 
42823
+ /**
42824
+ * OrderCompletionApi - axios parameter creator
42825
+ * @export
42826
+ */
42827
+ export const OrderCompletionApiAxiosParamCreator = function (configuration?: Configuration) {
42828
+ return {
42829
+ /**
42830
+ *
42831
+ * @summary Complete an order that has nothing left to pay
42832
+ * @param {string} businessId The unique ID of the business the order belongs to.
42833
+ * @param {string} orderId The unique ID of the order.
42834
+ * @param {CompleteOrderDto} completeOrderDto
42835
+ * @param {*} [options] Override http request option.
42836
+ * @throws {RequiredError}
42837
+ */
42838
+ completeOrder: async (businessId: string, orderId: string, completeOrderDto: CompleteOrderDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
42839
+ // verify required parameter 'businessId' is not null or undefined
42840
+ assertParamExists('completeOrder', 'businessId', businessId)
42841
+ // verify required parameter 'orderId' is not null or undefined
42842
+ assertParamExists('completeOrder', 'orderId', orderId)
42843
+ // verify required parameter 'completeOrderDto' is not null or undefined
42844
+ assertParamExists('completeOrder', 'completeOrderDto', completeOrderDto)
42845
+ const localVarPath = `/api/v1/businesses/{businessId}/orders/{orderId}/complete`
42846
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
42847
+ .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
42848
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
42849
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
42850
+ let baseOptions;
42851
+ if (configuration) {
42852
+ baseOptions = configuration.baseOptions;
42853
+ }
42854
+
42855
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
42856
+ const localVarHeaderParameter = {} as any;
42857
+ const localVarQueryParameter = {} as any;
42858
+
42859
+ // authentication JWT-auth required
42860
+ // http bearer authentication required
42861
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
42862
+
42863
+
42864
+
42865
+ localVarHeaderParameter['Content-Type'] = 'application/json';
42866
+
42867
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
42868
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
42869
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
42870
+ localVarRequestOptions.data = serializeDataIfNeeded(completeOrderDto, localVarRequestOptions, configuration)
42871
+
42872
+ return {
42873
+ url: toPathString(localVarUrlObj),
42874
+ options: localVarRequestOptions,
42875
+ };
42876
+ },
42877
+ }
42878
+ };
42879
+
42880
+ /**
42881
+ * OrderCompletionApi - functional programming interface
42882
+ * @export
42883
+ */
42884
+ export const OrderCompletionApiFp = function(configuration?: Configuration) {
42885
+ const localVarAxiosParamCreator = OrderCompletionApiAxiosParamCreator(configuration)
42886
+ return {
42887
+ /**
42888
+ *
42889
+ * @summary Complete an order that has nothing left to pay
42890
+ * @param {string} businessId The unique ID of the business the order belongs to.
42891
+ * @param {string} orderId The unique ID of the order.
42892
+ * @param {CompleteOrderDto} completeOrderDto
42893
+ * @param {*} [options] Override http request option.
42894
+ * @throws {RequiredError}
42895
+ */
42896
+ async completeOrder(businessId: string, orderId: string, completeOrderDto: CompleteOrderDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompleteOrderResponseDto>> {
42897
+ const localVarAxiosArgs = await localVarAxiosParamCreator.completeOrder(businessId, orderId, completeOrderDto, options);
42898
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
42899
+ },
42900
+ }
42901
+ };
42902
+
42903
+ /**
42904
+ * OrderCompletionApi - factory interface
42905
+ * @export
42906
+ */
42907
+ export const OrderCompletionApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
42908
+ const localVarFp = OrderCompletionApiFp(configuration)
42909
+ return {
42910
+ /**
42911
+ *
42912
+ * @summary Complete an order that has nothing left to pay
42913
+ * @param {string} businessId The unique ID of the business the order belongs to.
42914
+ * @param {string} orderId The unique ID of the order.
42915
+ * @param {CompleteOrderDto} completeOrderDto
42916
+ * @param {*} [options] Override http request option.
42917
+ * @throws {RequiredError}
42918
+ */
42919
+ completeOrder(businessId: string, orderId: string, completeOrderDto: CompleteOrderDto, options?: any): AxiosPromise<CompleteOrderResponseDto> {
42920
+ return localVarFp.completeOrder(businessId, orderId, completeOrderDto, options).then((request) => request(axios, basePath));
42921
+ },
42922
+ };
42923
+ };
42924
+
42925
+ /**
42926
+ * OrderCompletionApi - interface
42927
+ * @export
42928
+ * @interface OrderCompletionApi
42929
+ */
42930
+ export interface OrderCompletionApiInterface {
42931
+ /**
42932
+ *
42933
+ * @summary Complete an order that has nothing left to pay
42934
+ * @param {string} businessId The unique ID of the business the order belongs to.
42935
+ * @param {string} orderId The unique ID of the order.
42936
+ * @param {CompleteOrderDto} completeOrderDto
42937
+ * @param {*} [options] Override http request option.
42938
+ * @throws {RequiredError}
42939
+ * @memberof OrderCompletionApiInterface
42940
+ */
42941
+ completeOrder(businessId: string, orderId: string, completeOrderDto: CompleteOrderDto, options?: AxiosRequestConfig): AxiosPromise<CompleteOrderResponseDto>;
42942
+
42943
+ }
42944
+
42945
+ /**
42946
+ * OrderCompletionApi - object-oriented interface
42947
+ * @export
42948
+ * @class OrderCompletionApi
42949
+ * @extends {BaseAPI}
42950
+ */
42951
+ export class OrderCompletionApi extends BaseAPI implements OrderCompletionApiInterface {
42952
+ /**
42953
+ *
42954
+ * @summary Complete an order that has nothing left to pay
42955
+ * @param {string} businessId The unique ID of the business the order belongs to.
42956
+ * @param {string} orderId The unique ID of the order.
42957
+ * @param {CompleteOrderDto} completeOrderDto
42958
+ * @param {*} [options] Override http request option.
42959
+ * @throws {RequiredError}
42960
+ * @memberof OrderCompletionApi
42961
+ */
42962
+ public completeOrder(businessId: string, orderId: string, completeOrderDto: CompleteOrderDto, options?: AxiosRequestConfig) {
42963
+ return OrderCompletionApiFp(this.configuration).completeOrder(businessId, orderId, completeOrderDto, options).then((request) => request(this.axios, this.basePath));
42964
+ }
42965
+ }
42966
+
42967
+
41719
42968
  /**
41720
42969
  * OrderInternalApi - axios parameter creator
41721
42970
  * @export