@munchi_oy/core 1.9.128 → 1.9.130

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
 
@@ -13599,6 +14335,19 @@ export interface PayTerminalLockStatusResponseDto {
13599
14335
  */
13600
14336
  'hasLock': boolean;
13601
14337
  }
14338
+ /**
14339
+ *
14340
+ * @export
14341
+ * @interface PayTerminalPresenceResponseDto
14342
+ */
14343
+ export interface PayTerminalPresenceResponseDto {
14344
+ /**
14345
+ * True if the paired terminal is currently present on the session channel.
14346
+ * @type {boolean}
14347
+ * @memberof PayTerminalPresenceResponseDto
14348
+ */
14349
+ 'online': boolean;
14350
+ }
13602
14351
  /**
13603
14352
  *
13604
14353
  * @export
@@ -15914,6 +16663,36 @@ export interface PosDiscountDto {
15914
16663
  * @memberof PosDiscountDto
15915
16664
  */
15916
16665
  'isAutomatic': boolean;
16666
+ /**
16667
+ * 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.
16668
+ * @type {number}
16669
+ * @memberof PosDiscountDto
16670
+ */
16671
+ 'sequence'?: number;
16672
+ /**
16673
+ * Payable amount this application was measured against, in minor units.
16674
+ * @type {number}
16675
+ * @memberof PosDiscountDto
16676
+ */
16677
+ 'baseAmount'?: number;
16678
+ /**
16679
+ * Amount the configured discount asked for, in minor units, before it was clamped to what was still payable.
16680
+ * @type {number}
16681
+ * @memberof PosDiscountDto
16682
+ */
16683
+ 'requestedAmount'?: number;
16684
+ /**
16685
+ * Part of requestedAmount that could not be taken because nothing payable was left, in minor units. Never cashback.
16686
+ * @type {number}
16687
+ * @memberof PosDiscountDto
16688
+ */
16689
+ 'forfeitedAmount'?: number;
16690
+ /**
16691
+ * Number of line units this application covers. Absent means it covers the whole line.
16692
+ * @type {number}
16693
+ * @memberof PosDiscountDto
16694
+ */
16695
+ 'units'?: number;
15917
16696
  }
15918
16697
 
15919
16698
 
@@ -17134,6 +17913,12 @@ export interface PosOrderDto {
17134
17913
  * @memberof PosOrderDto
17135
17914
  */
17136
17915
  'tableGroupId'?: string | null;
17916
+ /**
17917
+ *
17918
+ * @type {PosOrderDtoLoyalty}
17919
+ * @memberof PosOrderDto
17920
+ */
17921
+ 'loyalty'?: PosOrderDtoLoyalty | null;
17137
17922
  }
17138
17923
 
17139
17924
 
@@ -17223,6 +18008,19 @@ export interface PosOrderDtoInvoiceCompany {
17223
18008
  */
17224
18009
  'updatedAt': string;
17225
18010
  }
18011
+ /**
18012
+ * Loyalty rewards committed to this order. Absent on orders that used none.
18013
+ * @export
18014
+ * @interface PosOrderDtoLoyalty
18015
+ */
18016
+ export interface PosOrderDtoLoyalty {
18017
+ /**
18018
+ * Redemptions on this order, keyed by loyalty entry id.
18019
+ * @type {{ [key: string]: OrderLoyaltyRedemptionDto; }}
18020
+ * @memberof PosOrderDtoLoyalty
18021
+ */
18022
+ 'redemptions': { [key: string]: OrderLoyaltyRedemptionDto; };
18023
+ }
17226
18024
  /**
17227
18025
  * Fine dining table service metadata
17228
18026
  * @export
@@ -17438,6 +18236,12 @@ export interface PosOrderItemDto {
17438
18236
  * @memberof PosOrderItemDto
17439
18237
  */
17440
18238
  'discount': PosDiscountDto | null;
18239
+ /**
18240
+ * Every item-scope discount application on this line, in cascade order — including when there is only one.
18241
+ * @type {Array<PosDiscountDto>}
18242
+ * @memberof PosOrderItemDto
18243
+ */
18244
+ 'discountApplications'?: Array<PosDiscountDto>;
17441
18245
  /**
17442
18246
  *
17443
18247
  * @type {boolean}
@@ -17956,6 +18760,12 @@ export interface PosOrderPayloadDtoOrder {
17956
18760
  * @memberof PosOrderPayloadDtoOrder
17957
18761
  */
17958
18762
  'tableGroupId'?: string | null;
18763
+ /**
18764
+ *
18765
+ * @type {PosOrderDtoLoyalty}
18766
+ * @memberof PosOrderPayloadDtoOrder
18767
+ */
18768
+ 'loyalty'?: PosOrderDtoLoyalty | null;
17959
18769
  }
17960
18770
 
17961
18771
 
@@ -18915,6 +19725,12 @@ export interface ProcessOrderActionsResponseDtoOrder {
18915
19725
  * @memberof ProcessOrderActionsResponseDtoOrder
18916
19726
  */
18917
19727
  'tableGroupId'?: string | null;
19728
+ /**
19729
+ *
19730
+ * @type {PosOrderDtoLoyalty}
19731
+ * @memberof ProcessOrderActionsResponseDtoOrder
19732
+ */
19733
+ 'loyalty'?: PosOrderDtoLoyalty | null;
18918
19734
  }
18919
19735
 
18920
19736
 
@@ -20269,6 +21085,12 @@ export interface RecordManualPaymentResultDtoOrder {
20269
21085
  * @memberof RecordManualPaymentResultDtoOrder
20270
21086
  */
20271
21087
  'tableGroupId'?: string | null;
21088
+ /**
21089
+ *
21090
+ * @type {PosOrderDtoLoyalty}
21091
+ * @memberof RecordManualPaymentResultDtoOrder
21092
+ */
21093
+ 'loyalty'?: PosOrderDtoLoyalty | null;
20272
21094
  }
20273
21095
 
20274
21096
 
@@ -21297,6 +22119,58 @@ export const ScopeEnum = {
21297
22119
 
21298
22120
  export type ScopeEnum = typeof ScopeEnum[keyof typeof ScopeEnum];
21299
22121
 
22122
+ /**
22123
+ *
22124
+ * @export
22125
+ * @interface RestoreLoyaltyRedemptionDto
22126
+ */
22127
+ export interface RestoreLoyaltyRedemptionDto {
22128
+ /**
22129
+ * Business the order belongs to
22130
+ * @type {number}
22131
+ * @memberof RestoreLoyaltyRedemptionDto
22132
+ */
22133
+ 'businessId': number;
22134
+ /**
22135
+ * POS or kiosk order carrying the redemption
22136
+ * @type {string}
22137
+ * @memberof RestoreLoyaltyRedemptionDto
22138
+ */
22139
+ 'orderId': string;
22140
+ /**
22141
+ * Loyalty entry to restore
22142
+ * @type {string}
22143
+ * @memberof RestoreLoyaltyRedemptionDto
22144
+ */
22145
+ 'loyaltyEntryId': string;
22146
+ }
22147
+ /**
22148
+ *
22149
+ * @export
22150
+ * @interface RestoreLoyaltyRedemptionResponseDto
22151
+ */
22152
+ export interface RestoreLoyaltyRedemptionResponseDto {
22153
+ /**
22154
+ *
22155
+ * @type {LoyaltyRestoreRequestStatus}
22156
+ * @memberof RestoreLoyaltyRedemptionResponseDto
22157
+ */
22158
+ 'status': LoyaltyRestoreRequestStatus;
22159
+ /**
22160
+ * Loyalty transaction the restore was asked against
22161
+ * @type {string}
22162
+ * @memberof RestoreLoyaltyRedemptionResponseDto
22163
+ */
22164
+ 'transactionId': string | null;
22165
+ /**
22166
+ * Reversal already recorded against the entry, when there is one
22167
+ * @type {string}
22168
+ * @memberof RestoreLoyaltyRedemptionResponseDto
22169
+ */
22170
+ 'reversalTransactionId': string | null;
22171
+ }
22172
+
22173
+
21300
22174
  /**
21301
22175
  *
21302
22176
  * @export
@@ -22637,6 +23511,12 @@ export interface SyncKioskOrderDtoOrder {
22637
23511
  * @memberof SyncKioskOrderDtoOrder
22638
23512
  */
22639
23513
  'tableGroupId'?: string | null;
23514
+ /**
23515
+ *
23516
+ * @type {PosOrderDtoLoyalty}
23517
+ * @memberof SyncKioskOrderDtoOrder
23518
+ */
23519
+ 'loyalty'?: PosOrderDtoLoyalty | null;
22640
23520
  }
22641
23521
 
22642
23522
 
@@ -22968,6 +23848,12 @@ export interface SyncPosOrderDtoOrder {
22968
23848
  * @memberof SyncPosOrderDtoOrder
22969
23849
  */
22970
23850
  'tableGroupId'?: string | null;
23851
+ /**
23852
+ *
23853
+ * @type {PosOrderDtoLoyalty}
23854
+ * @memberof SyncPosOrderDtoOrder
23855
+ */
23856
+ 'loyalty'?: PosOrderDtoLoyalty | null;
22971
23857
  }
22972
23858
 
22973
23859
 
@@ -24400,6 +25286,12 @@ export interface UnifiedOrderResponseDto {
24400
25286
  * @memberof UnifiedOrderResponseDto
24401
25287
  */
24402
25288
  'posDiscounts'?: Array<PosDiscountDto>;
25289
+ /**
25290
+ *
25291
+ * @type {UnifiedOrderResponseDtoLoyalty}
25292
+ * @memberof UnifiedOrderResponseDto
25293
+ */
25294
+ 'loyalty'?: UnifiedOrderResponseDtoLoyalty | null;
24403
25295
  /**
24404
25296
  * Payment transactions recorded for the POS order. POS only
24405
25297
  * @type {Array<TransactionDto>}
@@ -24738,6 +25630,19 @@ export interface UnifiedOrderResponseDtoLastPaymentError {
24738
25630
  }
24739
25631
 
24740
25632
 
25633
+ /**
25634
+ * Loyalty rewards committed to the POS order, keyed by loyalty entry id. POS only
25635
+ * @export
25636
+ * @interface UnifiedOrderResponseDtoLoyalty
25637
+ */
25638
+ export interface UnifiedOrderResponseDtoLoyalty {
25639
+ /**
25640
+ * Redemptions on this order, keyed by loyalty entry id.
25641
+ * @type {{ [key: string]: OrderLoyaltyRedemptionDto; }}
25642
+ * @memberof UnifiedOrderResponseDtoLoyalty
25643
+ */
25644
+ 'redemptions': { [key: string]: OrderLoyaltyRedemptionDto; };
25645
+ }
24741
25646
  /**
24742
25647
  * Preorder scheduling details. Platform only
24743
25648
  * @export
@@ -39127,6 +40032,135 @@ export class KiosksApi extends BaseAPI implements KiosksApiInterface {
39127
40032
  }
39128
40033
 
39129
40034
 
40035
+ /**
40036
+ * LoyaltyCommerceApi - axios parameter creator
40037
+ * @export
40038
+ */
40039
+ export const LoyaltyCommerceApiAxiosParamCreator = function (configuration?: Configuration) {
40040
+ return {
40041
+ /**
40042
+ *
40043
+ * @summary Ask the loyalty ledger to restore a settled redemption
40044
+ * @param {RestoreLoyaltyRedemptionDto} restoreLoyaltyRedemptionDto
40045
+ * @param {*} [options] Override http request option.
40046
+ * @throws {RequiredError}
40047
+ */
40048
+ restoreRedemption: async (restoreLoyaltyRedemptionDto: RestoreLoyaltyRedemptionDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
40049
+ // verify required parameter 'restoreLoyaltyRedemptionDto' is not null or undefined
40050
+ assertParamExists('restoreRedemption', 'restoreLoyaltyRedemptionDto', restoreLoyaltyRedemptionDto)
40051
+ const localVarPath = `/api/v1/loyalty-commerce/redemptions/restore`;
40052
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
40053
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
40054
+ let baseOptions;
40055
+ if (configuration) {
40056
+ baseOptions = configuration.baseOptions;
40057
+ }
40058
+
40059
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
40060
+ const localVarHeaderParameter = {} as any;
40061
+ const localVarQueryParameter = {} as any;
40062
+
40063
+ // authentication JWT-auth required
40064
+ // http bearer authentication required
40065
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
40066
+
40067
+
40068
+
40069
+ localVarHeaderParameter['Content-Type'] = 'application/json';
40070
+
40071
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
40072
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
40073
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
40074
+ localVarRequestOptions.data = serializeDataIfNeeded(restoreLoyaltyRedemptionDto, localVarRequestOptions, configuration)
40075
+
40076
+ return {
40077
+ url: toPathString(localVarUrlObj),
40078
+ options: localVarRequestOptions,
40079
+ };
40080
+ },
40081
+ }
40082
+ };
40083
+
40084
+ /**
40085
+ * LoyaltyCommerceApi - functional programming interface
40086
+ * @export
40087
+ */
40088
+ export const LoyaltyCommerceApiFp = function(configuration?: Configuration) {
40089
+ const localVarAxiosParamCreator = LoyaltyCommerceApiAxiosParamCreator(configuration)
40090
+ return {
40091
+ /**
40092
+ *
40093
+ * @summary Ask the loyalty ledger to restore a settled redemption
40094
+ * @param {RestoreLoyaltyRedemptionDto} restoreLoyaltyRedemptionDto
40095
+ * @param {*} [options] Override http request option.
40096
+ * @throws {RequiredError}
40097
+ */
40098
+ async restoreRedemption(restoreLoyaltyRedemptionDto: RestoreLoyaltyRedemptionDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RestoreLoyaltyRedemptionResponseDto>> {
40099
+ const localVarAxiosArgs = await localVarAxiosParamCreator.restoreRedemption(restoreLoyaltyRedemptionDto, options);
40100
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
40101
+ },
40102
+ }
40103
+ };
40104
+
40105
+ /**
40106
+ * LoyaltyCommerceApi - factory interface
40107
+ * @export
40108
+ */
40109
+ export const LoyaltyCommerceApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
40110
+ const localVarFp = LoyaltyCommerceApiFp(configuration)
40111
+ return {
40112
+ /**
40113
+ *
40114
+ * @summary Ask the loyalty ledger to restore a settled redemption
40115
+ * @param {RestoreLoyaltyRedemptionDto} restoreLoyaltyRedemptionDto
40116
+ * @param {*} [options] Override http request option.
40117
+ * @throws {RequiredError}
40118
+ */
40119
+ restoreRedemption(restoreLoyaltyRedemptionDto: RestoreLoyaltyRedemptionDto, options?: any): AxiosPromise<RestoreLoyaltyRedemptionResponseDto> {
40120
+ return localVarFp.restoreRedemption(restoreLoyaltyRedemptionDto, options).then((request) => request(axios, basePath));
40121
+ },
40122
+ };
40123
+ };
40124
+
40125
+ /**
40126
+ * LoyaltyCommerceApi - interface
40127
+ * @export
40128
+ * @interface LoyaltyCommerceApi
40129
+ */
40130
+ export interface LoyaltyCommerceApiInterface {
40131
+ /**
40132
+ *
40133
+ * @summary Ask the loyalty ledger to restore a settled redemption
40134
+ * @param {RestoreLoyaltyRedemptionDto} restoreLoyaltyRedemptionDto
40135
+ * @param {*} [options] Override http request option.
40136
+ * @throws {RequiredError}
40137
+ * @memberof LoyaltyCommerceApiInterface
40138
+ */
40139
+ restoreRedemption(restoreLoyaltyRedemptionDto: RestoreLoyaltyRedemptionDto, options?: AxiosRequestConfig): AxiosPromise<RestoreLoyaltyRedemptionResponseDto>;
40140
+
40141
+ }
40142
+
40143
+ /**
40144
+ * LoyaltyCommerceApi - object-oriented interface
40145
+ * @export
40146
+ * @class LoyaltyCommerceApi
40147
+ * @extends {BaseAPI}
40148
+ */
40149
+ export class LoyaltyCommerceApi extends BaseAPI implements LoyaltyCommerceApiInterface {
40150
+ /**
40151
+ *
40152
+ * @summary Ask the loyalty ledger to restore a settled redemption
40153
+ * @param {RestoreLoyaltyRedemptionDto} restoreLoyaltyRedemptionDto
40154
+ * @param {*} [options] Override http request option.
40155
+ * @throws {RequiredError}
40156
+ * @memberof LoyaltyCommerceApi
40157
+ */
40158
+ public restoreRedemption(restoreLoyaltyRedemptionDto: RestoreLoyaltyRedemptionDto, options?: AxiosRequestConfig) {
40159
+ return LoyaltyCommerceApiFp(this.configuration).restoreRedemption(restoreLoyaltyRedemptionDto, options).then((request) => request(this.axios, this.basePath));
40160
+ }
40161
+ }
40162
+
40163
+
39130
40164
  /**
39131
40165
  * LoyaltyIntegerationsApi - axios parameter creator
39132
40166
  * @export
@@ -39402,18 +40436,111 @@ export const LoyaltyIntegerationsApiAxiosParamCreator = function (configuration?
39402
40436
  },
39403
40437
  /**
39404
40438
  *
39405
- * @summary Get raw loyalty perks for a user without AI validation (fast)
39406
- * @param {number} businessId
39407
- * @param {number} userId
40439
+ * @summary Get raw loyalty perks for a user without AI validation (fast)
40440
+ * @param {number} businessId
40441
+ * @param {number} userId
40442
+ * @param {*} [options] Override http request option.
40443
+ * @throws {RequiredError}
40444
+ */
40445
+ getUserPerks: async (businessId: number, userId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
40446
+ // verify required parameter 'businessId' is not null or undefined
40447
+ assertParamExists('getUserPerks', 'businessId', businessId)
40448
+ // verify required parameter 'userId' is not null or undefined
40449
+ assertParamExists('getUserPerks', 'userId', userId)
40450
+ const localVarPath = `/api/v1/loyalty/users/perks`;
40451
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
40452
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
40453
+ let baseOptions;
40454
+ if (configuration) {
40455
+ baseOptions = configuration.baseOptions;
40456
+ }
40457
+
40458
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
40459
+ const localVarHeaderParameter = {} as any;
40460
+ const localVarQueryParameter = {} as any;
40461
+
40462
+ // authentication JWT-auth required
40463
+ // http bearer authentication required
40464
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
40465
+
40466
+ if (businessId !== undefined) {
40467
+ localVarQueryParameter['businessId'] = businessId;
40468
+ }
40469
+
40470
+ if (userId !== undefined) {
40471
+ localVarQueryParameter['userId'] = userId;
40472
+ }
40473
+
40474
+
40475
+
40476
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
40477
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
40478
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
40479
+
40480
+ return {
40481
+ url: toPathString(localVarUrlObj),
40482
+ options: localVarRequestOptions,
40483
+ };
40484
+ },
40485
+ /**
40486
+ *
40487
+ * @summary Get loyalty wallet for a user (kiosk)
40488
+ * @param {number} businessId
40489
+ * @param {number} userId
40490
+ * @param {*} [options] Override http request option.
40491
+ * @throws {RequiredError}
40492
+ */
40493
+ getUserWallet: async (businessId: number, userId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
40494
+ // verify required parameter 'businessId' is not null or undefined
40495
+ assertParamExists('getUserWallet', 'businessId', businessId)
40496
+ // verify required parameter 'userId' is not null or undefined
40497
+ assertParamExists('getUserWallet', 'userId', userId)
40498
+ const localVarPath = `/api/v1/loyalty/users/wallet`;
40499
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
40500
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
40501
+ let baseOptions;
40502
+ if (configuration) {
40503
+ baseOptions = configuration.baseOptions;
40504
+ }
40505
+
40506
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
40507
+ const localVarHeaderParameter = {} as any;
40508
+ const localVarQueryParameter = {} as any;
40509
+
40510
+ // authentication JWT-auth required
40511
+ // http bearer authentication required
40512
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
40513
+
40514
+ if (businessId !== undefined) {
40515
+ localVarQueryParameter['businessId'] = businessId;
40516
+ }
40517
+
40518
+ if (userId !== undefined) {
40519
+ localVarQueryParameter['userId'] = userId;
40520
+ }
40521
+
40522
+
40523
+
40524
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
40525
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
40526
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
40527
+
40528
+ return {
40529
+ url: toPathString(localVarUrlObj),
40530
+ options: localVarRequestOptions,
40531
+ };
40532
+ },
40533
+ /**
40534
+ *
40535
+ * @summary Resolve the loyalty member context for a member on a till surface
40536
+ * @param {LoyaltyMemberContextRequestDto} loyaltyMemberContextRequestDto
39408
40537
  * @param {*} [options] Override http request option.
39409
40538
  * @throws {RequiredError}
39410
40539
  */
39411
- getUserPerks: async (businessId: number, userId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
39412
- // verify required parameter 'businessId' is not null or undefined
39413
- assertParamExists('getUserPerks', 'businessId', businessId)
39414
- // verify required parameter 'userId' is not null or undefined
39415
- assertParamExists('getUserPerks', 'userId', userId)
39416
- const localVarPath = `/api/v1/loyalty/users/perks`;
40540
+ memberContext: async (loyaltyMemberContextRequestDto: LoyaltyMemberContextRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
40541
+ // verify required parameter 'loyaltyMemberContextRequestDto' is not null or undefined
40542
+ assertParamExists('memberContext', 'loyaltyMemberContextRequestDto', loyaltyMemberContextRequestDto)
40543
+ const localVarPath = `/api/v1/loyalty/member-context`;
39417
40544
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
39418
40545
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
39419
40546
  let baseOptions;
@@ -39421,7 +40548,7 @@ export const LoyaltyIntegerationsApiAxiosParamCreator = function (configuration?
39421
40548
  baseOptions = configuration.baseOptions;
39422
40549
  }
39423
40550
 
39424
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
40551
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
39425
40552
  const localVarHeaderParameter = {} as any;
39426
40553
  const localVarQueryParameter = {} as any;
39427
40554
 
@@ -39429,67 +40556,14 @@ export const LoyaltyIntegerationsApiAxiosParamCreator = function (configuration?
39429
40556
  // http bearer authentication required
39430
40557
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
39431
40558
 
39432
- if (businessId !== undefined) {
39433
- localVarQueryParameter['businessId'] = businessId;
39434
- }
39435
-
39436
- if (userId !== undefined) {
39437
- localVarQueryParameter['userId'] = userId;
39438
- }
39439
-
39440
40559
 
39441
40560
 
39442
- setSearchParams(localVarUrlObj, localVarQueryParameter);
39443
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
39444
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
39445
-
39446
- return {
39447
- url: toPathString(localVarUrlObj),
39448
- options: localVarRequestOptions,
39449
- };
39450
- },
39451
- /**
39452
- *
39453
- * @summary Get loyalty wallet for a user (kiosk)
39454
- * @param {number} businessId
39455
- * @param {number} userId
39456
- * @param {*} [options] Override http request option.
39457
- * @throws {RequiredError}
39458
- */
39459
- getUserWallet: async (businessId: number, userId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
39460
- // verify required parameter 'businessId' is not null or undefined
39461
- assertParamExists('getUserWallet', 'businessId', businessId)
39462
- // verify required parameter 'userId' is not null or undefined
39463
- assertParamExists('getUserWallet', 'userId', userId)
39464
- const localVarPath = `/api/v1/loyalty/users/wallet`;
39465
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
39466
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
39467
- let baseOptions;
39468
- if (configuration) {
39469
- baseOptions = configuration.baseOptions;
39470
- }
39471
-
39472
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
39473
- const localVarHeaderParameter = {} as any;
39474
- const localVarQueryParameter = {} as any;
39475
-
39476
- // authentication JWT-auth required
39477
- // http bearer authentication required
39478
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
39479
-
39480
- if (businessId !== undefined) {
39481
- localVarQueryParameter['businessId'] = businessId;
39482
- }
39483
-
39484
- if (userId !== undefined) {
39485
- localVarQueryParameter['userId'] = userId;
39486
- }
39487
-
40561
+ localVarHeaderParameter['Content-Type'] = 'application/json';
39488
40562
 
39489
-
39490
40563
  setSearchParams(localVarUrlObj, localVarQueryParameter);
39491
40564
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
39492
40565
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
40566
+ localVarRequestOptions.data = serializeDataIfNeeded(loyaltyMemberContextRequestDto, localVarRequestOptions, configuration)
39493
40567
 
39494
40568
  return {
39495
40569
  url: toPathString(localVarUrlObj),
@@ -39798,6 +40872,17 @@ export const LoyaltyIntegerationsApiFp = function(configuration?: Configuration)
39798
40872
  const localVarAxiosArgs = await localVarAxiosParamCreator.getUserWallet(businessId, userId, options);
39799
40873
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
39800
40874
  },
40875
+ /**
40876
+ *
40877
+ * @summary Resolve the loyalty member context for a member on a till surface
40878
+ * @param {LoyaltyMemberContextRequestDto} loyaltyMemberContextRequestDto
40879
+ * @param {*} [options] Override http request option.
40880
+ * @throws {RequiredError}
40881
+ */
40882
+ async memberContext(loyaltyMemberContextRequestDto: LoyaltyMemberContextRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoyaltyMemberContextDto>> {
40883
+ const localVarAxiosArgs = await localVarAxiosParamCreator.memberContext(loyaltyMemberContextRequestDto, options);
40884
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
40885
+ },
39801
40886
  /**
39802
40887
  *
39803
40888
  * @summary Resolve applicable loyalty perks for the current cart (AI)
@@ -39944,6 +41029,16 @@ export const LoyaltyIntegerationsApiFactory = function (configuration?: Configur
39944
41029
  getUserWallet(businessId: number, userId: number, options?: any): AxiosPromise<UserWalletResponseDto> {
39945
41030
  return localVarFp.getUserWallet(businessId, userId, options).then((request) => request(axios, basePath));
39946
41031
  },
41032
+ /**
41033
+ *
41034
+ * @summary Resolve the loyalty member context for a member on a till surface
41035
+ * @param {LoyaltyMemberContextRequestDto} loyaltyMemberContextRequestDto
41036
+ * @param {*} [options] Override http request option.
41037
+ * @throws {RequiredError}
41038
+ */
41039
+ memberContext(loyaltyMemberContextRequestDto: LoyaltyMemberContextRequestDto, options?: any): AxiosPromise<LoyaltyMemberContextDto> {
41040
+ return localVarFp.memberContext(loyaltyMemberContextRequestDto, options).then((request) => request(axios, basePath));
41041
+ },
39947
41042
  /**
39948
41043
  *
39949
41044
  * @summary Resolve applicable loyalty perks for the current cart (AI)
@@ -40085,6 +41180,16 @@ export interface LoyaltyIntegerationsApiInterface {
40085
41180
  */
40086
41181
  getUserWallet(businessId: number, userId: number, options?: AxiosRequestConfig): AxiosPromise<UserWalletResponseDto>;
40087
41182
 
41183
+ /**
41184
+ *
41185
+ * @summary Resolve the loyalty member context for a member on a till surface
41186
+ * @param {LoyaltyMemberContextRequestDto} loyaltyMemberContextRequestDto
41187
+ * @param {*} [options] Override http request option.
41188
+ * @throws {RequiredError}
41189
+ * @memberof LoyaltyIntegerationsApiInterface
41190
+ */
41191
+ memberContext(loyaltyMemberContextRequestDto: LoyaltyMemberContextRequestDto, options?: AxiosRequestConfig): AxiosPromise<LoyaltyMemberContextDto>;
41192
+
40088
41193
  /**
40089
41194
  *
40090
41195
  * @summary Resolve applicable loyalty perks for the current cart (AI)
@@ -40242,6 +41347,18 @@ export class LoyaltyIntegerationsApi extends BaseAPI implements LoyaltyIntegerat
40242
41347
  return LoyaltyIntegerationsApiFp(this.configuration).getUserWallet(businessId, userId, options).then((request) => request(this.axios, this.basePath));
40243
41348
  }
40244
41349
 
41350
+ /**
41351
+ *
41352
+ * @summary Resolve the loyalty member context for a member on a till surface
41353
+ * @param {LoyaltyMemberContextRequestDto} loyaltyMemberContextRequestDto
41354
+ * @param {*} [options] Override http request option.
41355
+ * @throws {RequiredError}
41356
+ * @memberof LoyaltyIntegerationsApi
41357
+ */
41358
+ public memberContext(loyaltyMemberContextRequestDto: LoyaltyMemberContextRequestDto, options?: AxiosRequestConfig) {
41359
+ return LoyaltyIntegerationsApiFp(this.configuration).memberContext(loyaltyMemberContextRequestDto, options).then((request) => request(this.axios, this.basePath));
41360
+ }
41361
+
40245
41362
  /**
40246
41363
  *
40247
41364
  * @summary Resolve applicable loyalty perks for the current cart (AI)
@@ -41716,6 +42833,151 @@ export class NotificationApi extends BaseAPI implements NotificationApiInterface
41716
42833
  }
41717
42834
 
41718
42835
 
42836
+ /**
42837
+ * OrderCompletionApi - axios parameter creator
42838
+ * @export
42839
+ */
42840
+ export const OrderCompletionApiAxiosParamCreator = function (configuration?: Configuration) {
42841
+ return {
42842
+ /**
42843
+ *
42844
+ * @summary Complete an order that has nothing left to pay
42845
+ * @param {string} businessId The unique ID of the business the order belongs to.
42846
+ * @param {string} orderId The unique ID of the order.
42847
+ * @param {CompleteOrderDto} completeOrderDto
42848
+ * @param {*} [options] Override http request option.
42849
+ * @throws {RequiredError}
42850
+ */
42851
+ completeOrder: async (businessId: string, orderId: string, completeOrderDto: CompleteOrderDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
42852
+ // verify required parameter 'businessId' is not null or undefined
42853
+ assertParamExists('completeOrder', 'businessId', businessId)
42854
+ // verify required parameter 'orderId' is not null or undefined
42855
+ assertParamExists('completeOrder', 'orderId', orderId)
42856
+ // verify required parameter 'completeOrderDto' is not null or undefined
42857
+ assertParamExists('completeOrder', 'completeOrderDto', completeOrderDto)
42858
+ const localVarPath = `/api/v1/businesses/{businessId}/orders/{orderId}/complete`
42859
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
42860
+ .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
42861
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
42862
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
42863
+ let baseOptions;
42864
+ if (configuration) {
42865
+ baseOptions = configuration.baseOptions;
42866
+ }
42867
+
42868
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
42869
+ const localVarHeaderParameter = {} as any;
42870
+ const localVarQueryParameter = {} as any;
42871
+
42872
+ // authentication JWT-auth required
42873
+ // http bearer authentication required
42874
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
42875
+
42876
+
42877
+
42878
+ localVarHeaderParameter['Content-Type'] = 'application/json';
42879
+
42880
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
42881
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
42882
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
42883
+ localVarRequestOptions.data = serializeDataIfNeeded(completeOrderDto, localVarRequestOptions, configuration)
42884
+
42885
+ return {
42886
+ url: toPathString(localVarUrlObj),
42887
+ options: localVarRequestOptions,
42888
+ };
42889
+ },
42890
+ }
42891
+ };
42892
+
42893
+ /**
42894
+ * OrderCompletionApi - functional programming interface
42895
+ * @export
42896
+ */
42897
+ export const OrderCompletionApiFp = function(configuration?: Configuration) {
42898
+ const localVarAxiosParamCreator = OrderCompletionApiAxiosParamCreator(configuration)
42899
+ return {
42900
+ /**
42901
+ *
42902
+ * @summary Complete an order that has nothing left to pay
42903
+ * @param {string} businessId The unique ID of the business the order belongs to.
42904
+ * @param {string} orderId The unique ID of the order.
42905
+ * @param {CompleteOrderDto} completeOrderDto
42906
+ * @param {*} [options] Override http request option.
42907
+ * @throws {RequiredError}
42908
+ */
42909
+ async completeOrder(businessId: string, orderId: string, completeOrderDto: CompleteOrderDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompleteOrderResponseDto>> {
42910
+ const localVarAxiosArgs = await localVarAxiosParamCreator.completeOrder(businessId, orderId, completeOrderDto, options);
42911
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
42912
+ },
42913
+ }
42914
+ };
42915
+
42916
+ /**
42917
+ * OrderCompletionApi - factory interface
42918
+ * @export
42919
+ */
42920
+ export const OrderCompletionApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
42921
+ const localVarFp = OrderCompletionApiFp(configuration)
42922
+ return {
42923
+ /**
42924
+ *
42925
+ * @summary Complete an order that has nothing left to pay
42926
+ * @param {string} businessId The unique ID of the business the order belongs to.
42927
+ * @param {string} orderId The unique ID of the order.
42928
+ * @param {CompleteOrderDto} completeOrderDto
42929
+ * @param {*} [options] Override http request option.
42930
+ * @throws {RequiredError}
42931
+ */
42932
+ completeOrder(businessId: string, orderId: string, completeOrderDto: CompleteOrderDto, options?: any): AxiosPromise<CompleteOrderResponseDto> {
42933
+ return localVarFp.completeOrder(businessId, orderId, completeOrderDto, options).then((request) => request(axios, basePath));
42934
+ },
42935
+ };
42936
+ };
42937
+
42938
+ /**
42939
+ * OrderCompletionApi - interface
42940
+ * @export
42941
+ * @interface OrderCompletionApi
42942
+ */
42943
+ export interface OrderCompletionApiInterface {
42944
+ /**
42945
+ *
42946
+ * @summary Complete an order that has nothing left to pay
42947
+ * @param {string} businessId The unique ID of the business the order belongs to.
42948
+ * @param {string} orderId The unique ID of the order.
42949
+ * @param {CompleteOrderDto} completeOrderDto
42950
+ * @param {*} [options] Override http request option.
42951
+ * @throws {RequiredError}
42952
+ * @memberof OrderCompletionApiInterface
42953
+ */
42954
+ completeOrder(businessId: string, orderId: string, completeOrderDto: CompleteOrderDto, options?: AxiosRequestConfig): AxiosPromise<CompleteOrderResponseDto>;
42955
+
42956
+ }
42957
+
42958
+ /**
42959
+ * OrderCompletionApi - object-oriented interface
42960
+ * @export
42961
+ * @class OrderCompletionApi
42962
+ * @extends {BaseAPI}
42963
+ */
42964
+ export class OrderCompletionApi extends BaseAPI implements OrderCompletionApiInterface {
42965
+ /**
42966
+ *
42967
+ * @summary Complete an order that has nothing left to pay
42968
+ * @param {string} businessId The unique ID of the business the order belongs to.
42969
+ * @param {string} orderId The unique ID of the order.
42970
+ * @param {CompleteOrderDto} completeOrderDto
42971
+ * @param {*} [options] Override http request option.
42972
+ * @throws {RequiredError}
42973
+ * @memberof OrderCompletionApi
42974
+ */
42975
+ public completeOrder(businessId: string, orderId: string, completeOrderDto: CompleteOrderDto, options?: AxiosRequestConfig) {
42976
+ return OrderCompletionApiFp(this.configuration).completeOrder(businessId, orderId, completeOrderDto, options).then((request) => request(this.axios, this.basePath));
42977
+ }
42978
+ }
42979
+
42980
+
41719
42981
  /**
41720
42982
  * OrderInternalApi - axios parameter creator
41721
42983
  * @export
@@ -43701,6 +44963,42 @@ export const PayTerminalApiAxiosParamCreator = function (configuration?: Configu
43701
44963
  options: localVarRequestOptions,
43702
44964
  };
43703
44965
  },
44966
+ /**
44967
+ *
44968
+ * @summary Check whether the paired terminal is currently present on the session channel.
44969
+ * @param {PayTerminalSessionTokenBodyDto} payTerminalSessionTokenBodyDto
44970
+ * @param {*} [options] Override http request option.
44971
+ * @throws {RequiredError}
44972
+ */
44973
+ payTerminalPresence: async (payTerminalSessionTokenBodyDto: PayTerminalSessionTokenBodyDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
44974
+ // verify required parameter 'payTerminalSessionTokenBodyDto' is not null or undefined
44975
+ assertParamExists('payTerminalPresence', 'payTerminalSessionTokenBodyDto', payTerminalSessionTokenBodyDto)
44976
+ const localVarPath = `/api/v1/pay-terminal/presence`;
44977
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
44978
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
44979
+ let baseOptions;
44980
+ if (configuration) {
44981
+ baseOptions = configuration.baseOptions;
44982
+ }
44983
+
44984
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
44985
+ const localVarHeaderParameter = {} as any;
44986
+ const localVarQueryParameter = {} as any;
44987
+
44988
+
44989
+
44990
+ localVarHeaderParameter['Content-Type'] = 'application/json';
44991
+
44992
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
44993
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
44994
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
44995
+ localVarRequestOptions.data = serializeDataIfNeeded(payTerminalSessionTokenBodyDto, localVarRequestOptions, configuration)
44996
+
44997
+ return {
44998
+ url: toPathString(localVarUrlObj),
44999
+ options: localVarRequestOptions,
45000
+ };
45001
+ },
43704
45002
  /**
43705
45003
  *
43706
45004
  * @summary Mint a session-channel Ably token scoped to the device role.
@@ -43849,6 +45147,17 @@ export const PayTerminalApiFp = function(configuration?: Configuration) {
43849
45147
  const localVarAxiosArgs = await localVarAxiosParamCreator.payTerminalPair(pairPayTerminalBodyDto, options);
43850
45148
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
43851
45149
  },
45150
+ /**
45151
+ *
45152
+ * @summary Check whether the paired terminal is currently present on the session channel.
45153
+ * @param {PayTerminalSessionTokenBodyDto} payTerminalSessionTokenBodyDto
45154
+ * @param {*} [options] Override http request option.
45155
+ * @throws {RequiredError}
45156
+ */
45157
+ async payTerminalPresence(payTerminalSessionTokenBodyDto: PayTerminalSessionTokenBodyDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PayTerminalPresenceResponseDto>> {
45158
+ const localVarAxiosArgs = await localVarAxiosParamCreator.payTerminalPresence(payTerminalSessionTokenBodyDto, options);
45159
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
45160
+ },
43852
45161
  /**
43853
45162
  *
43854
45163
  * @summary Mint a session-channel Ably token scoped to the device role.
@@ -43941,6 +45250,16 @@ export const PayTerminalApiFactory = function (configuration?: Configuration, ba
43941
45250
  payTerminalPair(pairPayTerminalBodyDto: PairPayTerminalBodyDto, options?: any): AxiosPromise<PairPayTerminalResponseDto> {
43942
45251
  return localVarFp.payTerminalPair(pairPayTerminalBodyDto, options).then((request) => request(axios, basePath));
43943
45252
  },
45253
+ /**
45254
+ *
45255
+ * @summary Check whether the paired terminal is currently present on the session channel.
45256
+ * @param {PayTerminalSessionTokenBodyDto} payTerminalSessionTokenBodyDto
45257
+ * @param {*} [options] Override http request option.
45258
+ * @throws {RequiredError}
45259
+ */
45260
+ payTerminalPresence(payTerminalSessionTokenBodyDto: PayTerminalSessionTokenBodyDto, options?: any): AxiosPromise<PayTerminalPresenceResponseDto> {
45261
+ return localVarFp.payTerminalPresence(payTerminalSessionTokenBodyDto, options).then((request) => request(axios, basePath));
45262
+ },
43944
45263
  /**
43945
45264
  *
43946
45265
  * @summary Mint a session-channel Ably token scoped to the device role.
@@ -44030,6 +45349,16 @@ export interface PayTerminalApiInterface {
44030
45349
  */
44031
45350
  payTerminalPair(pairPayTerminalBodyDto: PairPayTerminalBodyDto, options?: AxiosRequestConfig): AxiosPromise<PairPayTerminalResponseDto>;
44032
45351
 
45352
+ /**
45353
+ *
45354
+ * @summary Check whether the paired terminal is currently present on the session channel.
45355
+ * @param {PayTerminalSessionTokenBodyDto} payTerminalSessionTokenBodyDto
45356
+ * @param {*} [options] Override http request option.
45357
+ * @throws {RequiredError}
45358
+ * @memberof PayTerminalApiInterface
45359
+ */
45360
+ payTerminalPresence(payTerminalSessionTokenBodyDto: PayTerminalSessionTokenBodyDto, options?: AxiosRequestConfig): AxiosPromise<PayTerminalPresenceResponseDto>;
45361
+
44033
45362
  /**
44034
45363
  *
44035
45364
  * @summary Mint a session-channel Ably token scoped to the device role.
@@ -44131,6 +45460,18 @@ export class PayTerminalApi extends BaseAPI implements PayTerminalApiInterface {
44131
45460
  return PayTerminalApiFp(this.configuration).payTerminalPair(pairPayTerminalBodyDto, options).then((request) => request(this.axios, this.basePath));
44132
45461
  }
44133
45462
 
45463
+ /**
45464
+ *
45465
+ * @summary Check whether the paired terminal is currently present on the session channel.
45466
+ * @param {PayTerminalSessionTokenBodyDto} payTerminalSessionTokenBodyDto
45467
+ * @param {*} [options] Override http request option.
45468
+ * @throws {RequiredError}
45469
+ * @memberof PayTerminalApi
45470
+ */
45471
+ public payTerminalPresence(payTerminalSessionTokenBodyDto: PayTerminalSessionTokenBodyDto, options?: AxiosRequestConfig) {
45472
+ return PayTerminalApiFp(this.configuration).payTerminalPresence(payTerminalSessionTokenBodyDto, options).then((request) => request(this.axios, this.basePath));
45473
+ }
45474
+
44134
45475
  /**
44135
45476
  *
44136
45477
  * @summary Mint a session-channel Ably token scoped to the device role.