@munchi_oy/core 1.9.125 → 1.9.127
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/api.d.ts +946 -0
- package/dist/generated/api.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/src/version.d.ts +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/generated/api.ts +1103 -0
- package/package.json +15 -13
- package/src/version.ts +1 -1
package/generated/api.ts
CHANGED
|
@@ -767,6 +767,12 @@ export interface BusinessConfigResponseDtoBusiness {
|
|
|
767
767
|
* @memberof BusinessConfigResponseDtoBusiness
|
|
768
768
|
*/
|
|
769
769
|
'merchantId'?: string;
|
|
770
|
+
/**
|
|
771
|
+
* Weekly operating schedule (7 elements for 7 days)
|
|
772
|
+
* @type {Array<ScheduleDto>}
|
|
773
|
+
* @memberof BusinessConfigResponseDtoBusiness
|
|
774
|
+
*/
|
|
775
|
+
'schedule'?: Array<ScheduleDto>;
|
|
770
776
|
}
|
|
771
777
|
/**
|
|
772
778
|
*
|
|
@@ -940,6 +946,12 @@ export interface BusinessDto {
|
|
|
940
946
|
* @memberof BusinessDto
|
|
941
947
|
*/
|
|
942
948
|
'merchantId'?: string;
|
|
949
|
+
/**
|
|
950
|
+
* Weekly operating schedule (7 elements for 7 days)
|
|
951
|
+
* @type {Array<ScheduleDto>}
|
|
952
|
+
* @memberof BusinessDto
|
|
953
|
+
*/
|
|
954
|
+
'schedule'?: Array<ScheduleDto>;
|
|
943
955
|
}
|
|
944
956
|
/**
|
|
945
957
|
*
|
|
@@ -3948,6 +3960,12 @@ export interface CreateManualSessionDtoOrder {
|
|
|
3948
3960
|
* @memberof CreateManualSessionDtoOrder
|
|
3949
3961
|
*/
|
|
3950
3962
|
'tableGroupId'?: string | null;
|
|
3963
|
+
/**
|
|
3964
|
+
*
|
|
3965
|
+
* @type {PosOrderDtoLoyalty}
|
|
3966
|
+
* @memberof CreateManualSessionDtoOrder
|
|
3967
|
+
*/
|
|
3968
|
+
'loyalty'?: PosOrderDtoLoyalty | null;
|
|
3951
3969
|
}
|
|
3952
3970
|
|
|
3953
3971
|
|
|
@@ -6325,6 +6343,12 @@ export interface ExternalBusinessConfigResponseDto {
|
|
|
6325
6343
|
* @memberof ExternalBusinessConfigResponseDto
|
|
6326
6344
|
*/
|
|
6327
6345
|
'merchantId'?: string;
|
|
6346
|
+
/**
|
|
6347
|
+
* Weekly operating schedule (7 elements for 7 days)
|
|
6348
|
+
* @type {Array<ScheduleDto>}
|
|
6349
|
+
* @memberof ExternalBusinessConfigResponseDto
|
|
6350
|
+
*/
|
|
6351
|
+
'schedule'?: Array<ScheduleDto>;
|
|
6328
6352
|
/**
|
|
6329
6353
|
*
|
|
6330
6354
|
* @type {ExternalBusinessConfigDto}
|
|
@@ -9470,6 +9494,174 @@ export const LoyaltyActionKey = {
|
|
|
9470
9494
|
export type LoyaltyActionKey = typeof LoyaltyActionKey[keyof typeof LoyaltyActionKey];
|
|
9471
9495
|
|
|
9472
9496
|
|
|
9497
|
+
/**
|
|
9498
|
+
*
|
|
9499
|
+
* @export
|
|
9500
|
+
* @interface LoyaltyActionOverrideDto
|
|
9501
|
+
*/
|
|
9502
|
+
export interface LoyaltyActionOverrideDto {
|
|
9503
|
+
/**
|
|
9504
|
+
*
|
|
9505
|
+
* @type {number}
|
|
9506
|
+
* @memberof LoyaltyActionOverrideDto
|
|
9507
|
+
*/
|
|
9508
|
+
'value'?: number;
|
|
9509
|
+
/**
|
|
9510
|
+
*
|
|
9511
|
+
* @type {string}
|
|
9512
|
+
* @memberof LoyaltyActionOverrideDto
|
|
9513
|
+
*/
|
|
9514
|
+
'currency'?: string | null;
|
|
9515
|
+
/**
|
|
9516
|
+
*
|
|
9517
|
+
* @type {number}
|
|
9518
|
+
* @memberof LoyaltyActionOverrideDto
|
|
9519
|
+
*/
|
|
9520
|
+
'max_units'?: number | null;
|
|
9521
|
+
/**
|
|
9522
|
+
*
|
|
9523
|
+
* @type {number}
|
|
9524
|
+
* @memberof LoyaltyActionOverrideDto
|
|
9525
|
+
*/
|
|
9526
|
+
'max_applications'?: number | null;
|
|
9527
|
+
}
|
|
9528
|
+
/**
|
|
9529
|
+
*
|
|
9530
|
+
* @export
|
|
9531
|
+
* @interface LoyaltyActionTargetDto
|
|
9532
|
+
*/
|
|
9533
|
+
export interface LoyaltyActionTargetDto {
|
|
9534
|
+
/**
|
|
9535
|
+
*
|
|
9536
|
+
* @type {Array<number>}
|
|
9537
|
+
* @memberof LoyaltyActionTargetDto
|
|
9538
|
+
*/
|
|
9539
|
+
'product_ids': Array<number>;
|
|
9540
|
+
/**
|
|
9541
|
+
*
|
|
9542
|
+
* @type {Array<number>}
|
|
9543
|
+
* @memberof LoyaltyActionTargetDto
|
|
9544
|
+
*/
|
|
9545
|
+
'category_ids': Array<number>;
|
|
9546
|
+
/**
|
|
9547
|
+
*
|
|
9548
|
+
* @type {Array<number>}
|
|
9549
|
+
* @memberof LoyaltyActionTargetDto
|
|
9550
|
+
*/
|
|
9551
|
+
'exclude_product_ids': Array<number>;
|
|
9552
|
+
/**
|
|
9553
|
+
*
|
|
9554
|
+
* @type {Array<number>}
|
|
9555
|
+
* @memberof LoyaltyActionTargetDto
|
|
9556
|
+
*/
|
|
9557
|
+
'exclude_category_ids': Array<number>;
|
|
9558
|
+
/**
|
|
9559
|
+
*
|
|
9560
|
+
* @type {boolean}
|
|
9561
|
+
* @memberof LoyaltyActionTargetDto
|
|
9562
|
+
*/
|
|
9563
|
+
'exclude_alcohol': boolean;
|
|
9564
|
+
}
|
|
9565
|
+
/**
|
|
9566
|
+
*
|
|
9567
|
+
* @export
|
|
9568
|
+
* @interface LoyaltyBusinessScopeDto
|
|
9569
|
+
*/
|
|
9570
|
+
export interface LoyaltyBusinessScopeDto {
|
|
9571
|
+
/**
|
|
9572
|
+
*
|
|
9573
|
+
* @type {number}
|
|
9574
|
+
* @memberof LoyaltyBusinessScopeDto
|
|
9575
|
+
*/
|
|
9576
|
+
'business_id': number;
|
|
9577
|
+
/**
|
|
9578
|
+
*
|
|
9579
|
+
* @type {Array<LoyaltyConditionBindingDto>}
|
|
9580
|
+
* @memberof LoyaltyBusinessScopeDto
|
|
9581
|
+
*/
|
|
9582
|
+
'condition_bindings': Array<LoyaltyConditionBindingDto>;
|
|
9583
|
+
/**
|
|
9584
|
+
*
|
|
9585
|
+
* @type {LoyaltyActionTargetDto}
|
|
9586
|
+
* @memberof LoyaltyBusinessScopeDto
|
|
9587
|
+
*/
|
|
9588
|
+
'action_target': LoyaltyActionTargetDto;
|
|
9589
|
+
/**
|
|
9590
|
+
*
|
|
9591
|
+
* @type {LoyaltyActionOverrideDto}
|
|
9592
|
+
* @memberof LoyaltyBusinessScopeDto
|
|
9593
|
+
*/
|
|
9594
|
+
'action_override'?: LoyaltyActionOverrideDto | null;
|
|
9595
|
+
}
|
|
9596
|
+
/**
|
|
9597
|
+
*
|
|
9598
|
+
* @export
|
|
9599
|
+
* @enum {string}
|
|
9600
|
+
*/
|
|
9601
|
+
|
|
9602
|
+
export const LoyaltyCatalogType = {
|
|
9603
|
+
Product: 'product',
|
|
9604
|
+
Coupon: 'coupon'
|
|
9605
|
+
} as const;
|
|
9606
|
+
|
|
9607
|
+
export type LoyaltyCatalogType = typeof LoyaltyCatalogType[keyof typeof LoyaltyCatalogType];
|
|
9608
|
+
|
|
9609
|
+
|
|
9610
|
+
/**
|
|
9611
|
+
*
|
|
9612
|
+
* @export
|
|
9613
|
+
* @enum {string}
|
|
9614
|
+
*/
|
|
9615
|
+
|
|
9616
|
+
export const LoyaltyChannel = {
|
|
9617
|
+
Kiosk: 'kiosk',
|
|
9618
|
+
Pos: 'pos',
|
|
9619
|
+
Online: 'online',
|
|
9620
|
+
Mobile: 'mobile'
|
|
9621
|
+
} as const;
|
|
9622
|
+
|
|
9623
|
+
export type LoyaltyChannel = typeof LoyaltyChannel[keyof typeof LoyaltyChannel];
|
|
9624
|
+
|
|
9625
|
+
|
|
9626
|
+
/**
|
|
9627
|
+
*
|
|
9628
|
+
* @export
|
|
9629
|
+
* @enum {string}
|
|
9630
|
+
*/
|
|
9631
|
+
|
|
9632
|
+
export const LoyaltyCommerceMode = {
|
|
9633
|
+
Legacy: 'legacy',
|
|
9634
|
+
Structured: 'structured'
|
|
9635
|
+
} as const;
|
|
9636
|
+
|
|
9637
|
+
export type LoyaltyCommerceMode = typeof LoyaltyCommerceMode[keyof typeof LoyaltyCommerceMode];
|
|
9638
|
+
|
|
9639
|
+
|
|
9640
|
+
/**
|
|
9641
|
+
*
|
|
9642
|
+
* @export
|
|
9643
|
+
* @interface LoyaltyConditionBindingDto
|
|
9644
|
+
*/
|
|
9645
|
+
export interface LoyaltyConditionBindingDto {
|
|
9646
|
+
/**
|
|
9647
|
+
*
|
|
9648
|
+
* @type {string}
|
|
9649
|
+
* @memberof LoyaltyConditionBindingDto
|
|
9650
|
+
*/
|
|
9651
|
+
'condition_id': string;
|
|
9652
|
+
/**
|
|
9653
|
+
*
|
|
9654
|
+
* @type {Array<number>}
|
|
9655
|
+
* @memberof LoyaltyConditionBindingDto
|
|
9656
|
+
*/
|
|
9657
|
+
'product_ids': Array<number>;
|
|
9658
|
+
/**
|
|
9659
|
+
*
|
|
9660
|
+
* @type {Array<number>}
|
|
9661
|
+
* @memberof LoyaltyConditionBindingDto
|
|
9662
|
+
*/
|
|
9663
|
+
'category_ids': Array<number>;
|
|
9664
|
+
}
|
|
9473
9665
|
/**
|
|
9474
9666
|
*
|
|
9475
9667
|
* @export
|
|
@@ -9619,6 +9811,21 @@ export interface LoyaltyLinkMetadataDto {
|
|
|
9619
9811
|
*/
|
|
9620
9812
|
'venueId': number;
|
|
9621
9813
|
}
|
|
9814
|
+
/**
|
|
9815
|
+
*
|
|
9816
|
+
* @export
|
|
9817
|
+
* @enum {string}
|
|
9818
|
+
*/
|
|
9819
|
+
|
|
9820
|
+
export const LoyaltyRedemptionStatus = {
|
|
9821
|
+
Pending: 'pending',
|
|
9822
|
+
Redeemed: 'redeemed',
|
|
9823
|
+
Reversed: 'reversed'
|
|
9824
|
+
} as const;
|
|
9825
|
+
|
|
9826
|
+
export type LoyaltyRedemptionStatus = typeof LoyaltyRedemptionStatus[keyof typeof LoyaltyRedemptionStatus];
|
|
9827
|
+
|
|
9828
|
+
|
|
9622
9829
|
/**
|
|
9623
9830
|
*
|
|
9624
9831
|
* @export
|
|
@@ -9663,6 +9870,410 @@ export interface LoyaltyResolveResponseDto {
|
|
|
9663
9870
|
*/
|
|
9664
9871
|
'perks': Array<ResolvedPerkDto>;
|
|
9665
9872
|
}
|
|
9873
|
+
/**
|
|
9874
|
+
*
|
|
9875
|
+
* @export
|
|
9876
|
+
* @enum {string}
|
|
9877
|
+
*/
|
|
9878
|
+
|
|
9879
|
+
export const LoyaltyRestoreRequestStatus = {
|
|
9880
|
+
Requested: 'REQUESTED',
|
|
9881
|
+
AlreadyReversed: 'ALREADY_REVERSED'
|
|
9882
|
+
} as const;
|
|
9883
|
+
|
|
9884
|
+
export type LoyaltyRestoreRequestStatus = typeof LoyaltyRestoreRequestStatus[keyof typeof LoyaltyRestoreRequestStatus];
|
|
9885
|
+
|
|
9886
|
+
|
|
9887
|
+
/**
|
|
9888
|
+
*
|
|
9889
|
+
* @export
|
|
9890
|
+
* @enum {string}
|
|
9891
|
+
*/
|
|
9892
|
+
|
|
9893
|
+
export const LoyaltyRewardType = {
|
|
9894
|
+
Product: 'product',
|
|
9895
|
+
Coupon: 'coupon'
|
|
9896
|
+
} as const;
|
|
9897
|
+
|
|
9898
|
+
export type LoyaltyRewardType = typeof LoyaltyRewardType[keyof typeof LoyaltyRewardType];
|
|
9899
|
+
|
|
9900
|
+
|
|
9901
|
+
/**
|
|
9902
|
+
*
|
|
9903
|
+
* @export
|
|
9904
|
+
* @interface LoyaltyRuleActionDto
|
|
9905
|
+
*/
|
|
9906
|
+
export interface LoyaltyRuleActionDto {
|
|
9907
|
+
/**
|
|
9908
|
+
*
|
|
9909
|
+
* @type {LoyaltyRuleActionType}
|
|
9910
|
+
* @memberof LoyaltyRuleActionDto
|
|
9911
|
+
*/
|
|
9912
|
+
'type': LoyaltyRuleActionType;
|
|
9913
|
+
/**
|
|
9914
|
+
* 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.
|
|
9915
|
+
* @type {number}
|
|
9916
|
+
* @memberof LoyaltyRuleActionDto
|
|
9917
|
+
*/
|
|
9918
|
+
'value': number;
|
|
9919
|
+
/**
|
|
9920
|
+
*
|
|
9921
|
+
* @type {string}
|
|
9922
|
+
* @memberof LoyaltyRuleActionDto
|
|
9923
|
+
*/
|
|
9924
|
+
'currency'?: string | null;
|
|
9925
|
+
/**
|
|
9926
|
+
*
|
|
9927
|
+
* @type {LoyaltyRuleTargetType}
|
|
9928
|
+
* @memberof LoyaltyRuleActionDto
|
|
9929
|
+
*/
|
|
9930
|
+
'target_type': LoyaltyRuleTargetType;
|
|
9931
|
+
/**
|
|
9932
|
+
*
|
|
9933
|
+
* @type {LoyaltyRuleSelection}
|
|
9934
|
+
* @memberof LoyaltyRuleActionDto
|
|
9935
|
+
*/
|
|
9936
|
+
'selection': LoyaltyRuleSelection;
|
|
9937
|
+
/**
|
|
9938
|
+
*
|
|
9939
|
+
* @type {number}
|
|
9940
|
+
* @memberof LoyaltyRuleActionDto
|
|
9941
|
+
*/
|
|
9942
|
+
'units_per_application': number;
|
|
9943
|
+
/**
|
|
9944
|
+
*
|
|
9945
|
+
* @type {number}
|
|
9946
|
+
* @memberof LoyaltyRuleActionDto
|
|
9947
|
+
*/
|
|
9948
|
+
'max_units'?: number | null;
|
|
9949
|
+
/**
|
|
9950
|
+
*
|
|
9951
|
+
* @type {LoyaltyRuleFulfillmentMode}
|
|
9952
|
+
* @memberof LoyaltyRuleActionDto
|
|
9953
|
+
*/
|
|
9954
|
+
'fulfillment_mode': LoyaltyRuleFulfillmentMode;
|
|
9955
|
+
}
|
|
9956
|
+
|
|
9957
|
+
|
|
9958
|
+
/**
|
|
9959
|
+
*
|
|
9960
|
+
* @export
|
|
9961
|
+
* @enum {string}
|
|
9962
|
+
*/
|
|
9963
|
+
|
|
9964
|
+
export const LoyaltyRuleActionType = {
|
|
9965
|
+
Percentage: 'percentage',
|
|
9966
|
+
Fixed: 'fixed'
|
|
9967
|
+
} as const;
|
|
9968
|
+
|
|
9969
|
+
export type LoyaltyRuleActionType = typeof LoyaltyRuleActionType[keyof typeof LoyaltyRuleActionType];
|
|
9970
|
+
|
|
9971
|
+
|
|
9972
|
+
/**
|
|
9973
|
+
*
|
|
9974
|
+
* @export
|
|
9975
|
+
* @enum {string}
|
|
9976
|
+
*/
|
|
9977
|
+
|
|
9978
|
+
export const LoyaltyRuleApplicationMode = {
|
|
9979
|
+
Manual: 'manual',
|
|
9980
|
+
Automatic: 'automatic'
|
|
9981
|
+
} as const;
|
|
9982
|
+
|
|
9983
|
+
export type LoyaltyRuleApplicationMode = typeof LoyaltyRuleApplicationMode[keyof typeof LoyaltyRuleApplicationMode];
|
|
9984
|
+
|
|
9985
|
+
|
|
9986
|
+
/**
|
|
9987
|
+
*
|
|
9988
|
+
* @export
|
|
9989
|
+
* @interface LoyaltyRuleConditionDto
|
|
9990
|
+
*/
|
|
9991
|
+
export interface LoyaltyRuleConditionDto {
|
|
9992
|
+
/**
|
|
9993
|
+
*
|
|
9994
|
+
* @type {string}
|
|
9995
|
+
* @memberof LoyaltyRuleConditionDto
|
|
9996
|
+
*/
|
|
9997
|
+
'condition_id': string;
|
|
9998
|
+
/**
|
|
9999
|
+
*
|
|
10000
|
+
* @type {LoyaltyRuleConditionType}
|
|
10001
|
+
* @memberof LoyaltyRuleConditionDto
|
|
10002
|
+
*/
|
|
10003
|
+
'type': LoyaltyRuleConditionType;
|
|
10004
|
+
/**
|
|
10005
|
+
*
|
|
10006
|
+
* @type {number}
|
|
10007
|
+
* @memberof LoyaltyRuleConditionDto
|
|
10008
|
+
*/
|
|
10009
|
+
'required_quantity'?: number | null;
|
|
10010
|
+
/**
|
|
10011
|
+
*
|
|
10012
|
+
* @type {number}
|
|
10013
|
+
* @memberof LoyaltyRuleConditionDto
|
|
10014
|
+
*/
|
|
10015
|
+
'value'?: number | null;
|
|
10016
|
+
}
|
|
10017
|
+
|
|
10018
|
+
|
|
10019
|
+
/**
|
|
10020
|
+
*
|
|
10021
|
+
* @export
|
|
10022
|
+
* @enum {string}
|
|
10023
|
+
*/
|
|
10024
|
+
|
|
10025
|
+
export const LoyaltyRuleConditionType = {
|
|
10026
|
+
Always: 'always',
|
|
10027
|
+
ProductInCart: 'product_in_cart',
|
|
10028
|
+
CategoryInCart: 'category_in_cart',
|
|
10029
|
+
ProductQuantityInCart: 'product_quantity_in_cart',
|
|
10030
|
+
CategoryQuantityInCart: 'category_quantity_in_cart',
|
|
10031
|
+
CartMinValue: 'cart_min_value',
|
|
10032
|
+
CartMaxValue: 'cart_max_value'
|
|
10033
|
+
} as const;
|
|
10034
|
+
|
|
10035
|
+
export type LoyaltyRuleConditionType = typeof LoyaltyRuleConditionType[keyof typeof LoyaltyRuleConditionType];
|
|
10036
|
+
|
|
10037
|
+
|
|
10038
|
+
/**
|
|
10039
|
+
*
|
|
10040
|
+
* @export
|
|
10041
|
+
* @enum {string}
|
|
10042
|
+
*/
|
|
10043
|
+
|
|
10044
|
+
export const LoyaltyRuleFulfillmentMode = {
|
|
10045
|
+
RequireInCart: 'require_in_cart',
|
|
10046
|
+
ConfigureTarget: 'configure_target'
|
|
10047
|
+
} as const;
|
|
10048
|
+
|
|
10049
|
+
export type LoyaltyRuleFulfillmentMode = typeof LoyaltyRuleFulfillmentMode[keyof typeof LoyaltyRuleFulfillmentMode];
|
|
10050
|
+
|
|
10051
|
+
|
|
10052
|
+
/**
|
|
10053
|
+
*
|
|
10054
|
+
* @export
|
|
10055
|
+
* @enum {string}
|
|
10056
|
+
*/
|
|
10057
|
+
|
|
10058
|
+
export const LoyaltyRuleSelection = {
|
|
10059
|
+
All: 'all',
|
|
10060
|
+
Cheapest: 'cheapest',
|
|
10061
|
+
MostExpensive: 'most_expensive'
|
|
10062
|
+
} as const;
|
|
10063
|
+
|
|
10064
|
+
export type LoyaltyRuleSelection = typeof LoyaltyRuleSelection[keyof typeof LoyaltyRuleSelection];
|
|
10065
|
+
|
|
10066
|
+
|
|
10067
|
+
/**
|
|
10068
|
+
*
|
|
10069
|
+
* @export
|
|
10070
|
+
* @enum {string}
|
|
10071
|
+
*/
|
|
10072
|
+
|
|
10073
|
+
export const LoyaltyRuleStackingMode = {
|
|
10074
|
+
ExclusiveBestForCustomer: 'exclusive_best_for_customer',
|
|
10075
|
+
Stackable: 'stackable'
|
|
10076
|
+
} as const;
|
|
10077
|
+
|
|
10078
|
+
export type LoyaltyRuleStackingMode = typeof LoyaltyRuleStackingMode[keyof typeof LoyaltyRuleStackingMode];
|
|
10079
|
+
|
|
10080
|
+
|
|
10081
|
+
/**
|
|
10082
|
+
*
|
|
10083
|
+
* @export
|
|
10084
|
+
* @enum {string}
|
|
10085
|
+
*/
|
|
10086
|
+
|
|
10087
|
+
export const LoyaltyRuleTargetType = {
|
|
10088
|
+
ConditionMatch: 'condition_match',
|
|
10089
|
+
Product: 'product',
|
|
10090
|
+
Category: 'category',
|
|
10091
|
+
Order: 'order'
|
|
10092
|
+
} as const;
|
|
10093
|
+
|
|
10094
|
+
export type LoyaltyRuleTargetType = typeof LoyaltyRuleTargetType[keyof typeof LoyaltyRuleTargetType];
|
|
10095
|
+
|
|
10096
|
+
|
|
10097
|
+
/**
|
|
10098
|
+
*
|
|
10099
|
+
* @export
|
|
10100
|
+
* @interface LoyaltyRuntimeContextDto
|
|
10101
|
+
*/
|
|
10102
|
+
export interface LoyaltyRuntimeContextDto {
|
|
10103
|
+
/**
|
|
10104
|
+
* Loyalty user id the runtime was resolved for
|
|
10105
|
+
* @type {number}
|
|
10106
|
+
* @memberof LoyaltyRuntimeContextDto
|
|
10107
|
+
*/
|
|
10108
|
+
'user_id': number;
|
|
10109
|
+
/**
|
|
10110
|
+
* Business the runtime was resolved for
|
|
10111
|
+
* @type {number}
|
|
10112
|
+
* @memberof LoyaltyRuntimeContextDto
|
|
10113
|
+
*/
|
|
10114
|
+
'business_id': number;
|
|
10115
|
+
/**
|
|
10116
|
+
*
|
|
10117
|
+
* @type {LoyaltyChannel}
|
|
10118
|
+
* @memberof LoyaltyRuntimeContextDto
|
|
10119
|
+
*/
|
|
10120
|
+
'channel': LoyaltyChannel;
|
|
10121
|
+
/**
|
|
10122
|
+
* Points the member can still spend, excluding expired batches
|
|
10123
|
+
* @type {number}
|
|
10124
|
+
* @memberof LoyaltyRuntimeContextDto
|
|
10125
|
+
*/
|
|
10126
|
+
'points_balance': number;
|
|
10127
|
+
/**
|
|
10128
|
+
* Rewards available to this member on this channel
|
|
10129
|
+
* @type {Array<LoyaltyRuntimeRewardDto>}
|
|
10130
|
+
* @memberof LoyaltyRuntimeContextDto
|
|
10131
|
+
*/
|
|
10132
|
+
'rewards': Array<LoyaltyRuntimeRewardDto>;
|
|
10133
|
+
}
|
|
10134
|
+
|
|
10135
|
+
|
|
10136
|
+
/**
|
|
10137
|
+
*
|
|
10138
|
+
* @export
|
|
10139
|
+
* @interface LoyaltyRuntimeContextRequestDto
|
|
10140
|
+
*/
|
|
10141
|
+
export interface LoyaltyRuntimeContextRequestDto {
|
|
10142
|
+
/**
|
|
10143
|
+
* Loyalty user id the context is resolved for
|
|
10144
|
+
* @type {number}
|
|
10145
|
+
* @memberof LoyaltyRuntimeContextRequestDto
|
|
10146
|
+
*/
|
|
10147
|
+
'user_id': number;
|
|
10148
|
+
/**
|
|
10149
|
+
* Business the caller is asking about
|
|
10150
|
+
* @type {number}
|
|
10151
|
+
* @memberof LoyaltyRuntimeContextRequestDto
|
|
10152
|
+
*/
|
|
10153
|
+
'business_id': number;
|
|
10154
|
+
/**
|
|
10155
|
+
*
|
|
10156
|
+
* @type {LoyaltyChannel}
|
|
10157
|
+
* @memberof LoyaltyRuntimeContextRequestDto
|
|
10158
|
+
*/
|
|
10159
|
+
'channel': LoyaltyChannel;
|
|
10160
|
+
}
|
|
10161
|
+
|
|
10162
|
+
|
|
10163
|
+
/**
|
|
10164
|
+
*
|
|
10165
|
+
* @export
|
|
10166
|
+
* @interface LoyaltyRuntimeRewardDto
|
|
10167
|
+
*/
|
|
10168
|
+
export interface LoyaltyRuntimeRewardDto {
|
|
10169
|
+
/**
|
|
10170
|
+
*
|
|
10171
|
+
* @type {number}
|
|
10172
|
+
* @memberof LoyaltyRuntimeRewardDto
|
|
10173
|
+
*/
|
|
10174
|
+
'catalog_id': number;
|
|
10175
|
+
/**
|
|
10176
|
+
*
|
|
10177
|
+
* @type {LoyaltyRewardType}
|
|
10178
|
+
* @memberof LoyaltyRuntimeRewardDto
|
|
10179
|
+
*/
|
|
10180
|
+
'type': LoyaltyRewardType;
|
|
10181
|
+
/**
|
|
10182
|
+
*
|
|
10183
|
+
* @type {string}
|
|
10184
|
+
* @memberof LoyaltyRuntimeRewardDto
|
|
10185
|
+
*/
|
|
10186
|
+
'name': string;
|
|
10187
|
+
/**
|
|
10188
|
+
*
|
|
10189
|
+
* @type {string}
|
|
10190
|
+
* @memberof LoyaltyRuntimeRewardDto
|
|
10191
|
+
*/
|
|
10192
|
+
'description'?: string | null;
|
|
10193
|
+
/**
|
|
10194
|
+
* Points a member spends; always null for a coupon
|
|
10195
|
+
* @type {number}
|
|
10196
|
+
* @memberof LoyaltyRuntimeRewardDto
|
|
10197
|
+
*/
|
|
10198
|
+
'points_cost': number | null;
|
|
10199
|
+
/**
|
|
10200
|
+
*
|
|
10201
|
+
* @type {LoyaltyCommerceMode}
|
|
10202
|
+
* @memberof LoyaltyRuntimeRewardDto
|
|
10203
|
+
*/
|
|
10204
|
+
'commerce_mode': LoyaltyCommerceMode;
|
|
10205
|
+
/**
|
|
10206
|
+
*
|
|
10207
|
+
* @type {Array<LoyaltyRuntimeRuleDto>}
|
|
10208
|
+
* @memberof LoyaltyRuntimeRewardDto
|
|
10209
|
+
*/
|
|
10210
|
+
'rules': Array<LoyaltyRuntimeRuleDto>;
|
|
10211
|
+
}
|
|
10212
|
+
|
|
10213
|
+
|
|
10214
|
+
/**
|
|
10215
|
+
*
|
|
10216
|
+
* @export
|
|
10217
|
+
* @interface LoyaltyRuntimeRuleDto
|
|
10218
|
+
*/
|
|
10219
|
+
export interface LoyaltyRuntimeRuleDto {
|
|
10220
|
+
/**
|
|
10221
|
+
*
|
|
10222
|
+
* @type {number}
|
|
10223
|
+
* @memberof LoyaltyRuntimeRuleDto
|
|
10224
|
+
*/
|
|
10225
|
+
'rule_id': number;
|
|
10226
|
+
/**
|
|
10227
|
+
*
|
|
10228
|
+
* @type {number}
|
|
10229
|
+
* @memberof LoyaltyRuntimeRuleDto
|
|
10230
|
+
*/
|
|
10231
|
+
'revision': number;
|
|
10232
|
+
/**
|
|
10233
|
+
*
|
|
10234
|
+
* @type {LoyaltyRuleApplicationMode}
|
|
10235
|
+
* @memberof LoyaltyRuntimeRuleDto
|
|
10236
|
+
*/
|
|
10237
|
+
'application_mode': LoyaltyRuleApplicationMode;
|
|
10238
|
+
/**
|
|
10239
|
+
*
|
|
10240
|
+
* @type {LoyaltyRuleStackingMode}
|
|
10241
|
+
* @memberof LoyaltyRuntimeRuleDto
|
|
10242
|
+
*/
|
|
10243
|
+
'stacking_mode': LoyaltyRuleStackingMode;
|
|
10244
|
+
/**
|
|
10245
|
+
*
|
|
10246
|
+
* @type {Array<LoyaltyRuleConditionDto>}
|
|
10247
|
+
* @memberof LoyaltyRuntimeRuleDto
|
|
10248
|
+
*/
|
|
10249
|
+
'conditions': Array<LoyaltyRuleConditionDto>;
|
|
10250
|
+
/**
|
|
10251
|
+
*
|
|
10252
|
+
* @type {boolean}
|
|
10253
|
+
* @memberof LoyaltyRuntimeRuleDto
|
|
10254
|
+
*/
|
|
10255
|
+
'repeatable': boolean;
|
|
10256
|
+
/**
|
|
10257
|
+
*
|
|
10258
|
+
* @type {number}
|
|
10259
|
+
* @memberof LoyaltyRuntimeRuleDto
|
|
10260
|
+
*/
|
|
10261
|
+
'max_applications': number | null;
|
|
10262
|
+
/**
|
|
10263
|
+
*
|
|
10264
|
+
* @type {LoyaltyRuleActionDto}
|
|
10265
|
+
* @memberof LoyaltyRuntimeRuleDto
|
|
10266
|
+
*/
|
|
10267
|
+
'action': LoyaltyRuleActionDto;
|
|
10268
|
+
/**
|
|
10269
|
+
*
|
|
10270
|
+
* @type {LoyaltyBusinessScopeDto}
|
|
10271
|
+
* @memberof LoyaltyRuntimeRuleDto
|
|
10272
|
+
*/
|
|
10273
|
+
'business_scope': LoyaltyBusinessScopeDto;
|
|
10274
|
+
}
|
|
10275
|
+
|
|
10276
|
+
|
|
9666
10277
|
/**
|
|
9667
10278
|
*
|
|
9668
10279
|
* @export
|
|
@@ -11637,6 +12248,118 @@ export interface OrderHistoryResponseDtoSummary {
|
|
|
11637
12248
|
*/
|
|
11638
12249
|
'totalTipAmount'?: number;
|
|
11639
12250
|
}
|
|
12251
|
+
/**
|
|
12252
|
+
*
|
|
12253
|
+
* @export
|
|
12254
|
+
* @interface OrderLoyaltyDto
|
|
12255
|
+
*/
|
|
12256
|
+
export interface OrderLoyaltyDto {
|
|
12257
|
+
/**
|
|
12258
|
+
* Redemptions on this order, keyed by loyalty entry id.
|
|
12259
|
+
* @type {{ [key: string]: OrderLoyaltyRedemptionDto; }}
|
|
12260
|
+
* @memberof OrderLoyaltyDto
|
|
12261
|
+
*/
|
|
12262
|
+
'redemptions': { [key: string]: OrderLoyaltyRedemptionDto; };
|
|
12263
|
+
}
|
|
12264
|
+
/**
|
|
12265
|
+
*
|
|
12266
|
+
* @export
|
|
12267
|
+
* @interface OrderLoyaltyRedemptionDto
|
|
12268
|
+
*/
|
|
12269
|
+
export interface OrderLoyaltyRedemptionDto {
|
|
12270
|
+
/**
|
|
12271
|
+
* Loyalty entry id, and the key this entry is stored under
|
|
12272
|
+
* @type {string}
|
|
12273
|
+
* @memberof OrderLoyaltyRedemptionDto
|
|
12274
|
+
*/
|
|
12275
|
+
'id': string;
|
|
12276
|
+
/**
|
|
12277
|
+
*
|
|
12278
|
+
* @type {Array<string>}
|
|
12279
|
+
* @memberof OrderLoyaltyRedemptionDto
|
|
12280
|
+
*/
|
|
12281
|
+
'discountApplicationIds': Array<string>;
|
|
12282
|
+
/**
|
|
12283
|
+
*
|
|
12284
|
+
* @type {number}
|
|
12285
|
+
* @memberof OrderLoyaltyRedemptionDto
|
|
12286
|
+
*/
|
|
12287
|
+
'catalogId': number;
|
|
12288
|
+
/**
|
|
12289
|
+
*
|
|
12290
|
+
* @type {LoyaltyCatalogType}
|
|
12291
|
+
* @memberof OrderLoyaltyRedemptionDto
|
|
12292
|
+
*/
|
|
12293
|
+
'catalogType': LoyaltyCatalogType;
|
|
12294
|
+
/**
|
|
12295
|
+
*
|
|
12296
|
+
* @type {string}
|
|
12297
|
+
* @memberof OrderLoyaltyRedemptionDto
|
|
12298
|
+
*/
|
|
12299
|
+
'rewardName': string;
|
|
12300
|
+
/**
|
|
12301
|
+
*
|
|
12302
|
+
* @type {number}
|
|
12303
|
+
* @memberof OrderLoyaltyRedemptionDto
|
|
12304
|
+
*/
|
|
12305
|
+
'ruleId': number;
|
|
12306
|
+
/**
|
|
12307
|
+
*
|
|
12308
|
+
* @type {number}
|
|
12309
|
+
* @memberof OrderLoyaltyRedemptionDto
|
|
12310
|
+
*/
|
|
12311
|
+
'ruleRevision': number;
|
|
12312
|
+
/**
|
|
12313
|
+
*
|
|
12314
|
+
* @type {number}
|
|
12315
|
+
* @memberof OrderLoyaltyRedemptionDto
|
|
12316
|
+
*/
|
|
12317
|
+
'quantity': number;
|
|
12318
|
+
/**
|
|
12319
|
+
* Points spent, in points.
|
|
12320
|
+
* @type {number}
|
|
12321
|
+
* @memberof OrderLoyaltyRedemptionDto
|
|
12322
|
+
*/
|
|
12323
|
+
'pointsCost': number | null;
|
|
12324
|
+
/**
|
|
12325
|
+
*
|
|
12326
|
+
* @type {LoyaltyRedemptionStatus}
|
|
12327
|
+
* @memberof OrderLoyaltyRedemptionDto
|
|
12328
|
+
*/
|
|
12329
|
+
'status': LoyaltyRedemptionStatus;
|
|
12330
|
+
/**
|
|
12331
|
+
*
|
|
12332
|
+
* @type {string}
|
|
12333
|
+
* @memberof OrderLoyaltyRedemptionDto
|
|
12334
|
+
*/
|
|
12335
|
+
'transactionId': string | null;
|
|
12336
|
+
/**
|
|
12337
|
+
*
|
|
12338
|
+
* @type {string}
|
|
12339
|
+
* @memberof OrderLoyaltyRedemptionDto
|
|
12340
|
+
*/
|
|
12341
|
+
'walletId': string | null;
|
|
12342
|
+
/**
|
|
12343
|
+
*
|
|
12344
|
+
* @type {string}
|
|
12345
|
+
* @memberof OrderLoyaltyRedemptionDto
|
|
12346
|
+
*/
|
|
12347
|
+
'settledAt': string | null;
|
|
12348
|
+
/**
|
|
12349
|
+
*
|
|
12350
|
+
* @type {string}
|
|
12351
|
+
* @memberof OrderLoyaltyRedemptionDto
|
|
12352
|
+
*/
|
|
12353
|
+
'reversalTransactionId': string | null;
|
|
12354
|
+
/**
|
|
12355
|
+
*
|
|
12356
|
+
* @type {string}
|
|
12357
|
+
* @memberof OrderLoyaltyRedemptionDto
|
|
12358
|
+
*/
|
|
12359
|
+
'reversedAt': string | null;
|
|
12360
|
+
}
|
|
12361
|
+
|
|
12362
|
+
|
|
11640
12363
|
/**
|
|
11641
12364
|
*
|
|
11642
12365
|
* @export
|
|
@@ -11939,6 +12662,12 @@ export interface OrderResponseDtoBusiness {
|
|
|
11939
12662
|
* @memberof OrderResponseDtoBusiness
|
|
11940
12663
|
*/
|
|
11941
12664
|
'merchantId'?: string;
|
|
12665
|
+
/**
|
|
12666
|
+
* Weekly operating schedule (7 elements for 7 days)
|
|
12667
|
+
* @type {Array<ScheduleDto>}
|
|
12668
|
+
* @memberof OrderResponseDtoBusiness
|
|
12669
|
+
*/
|
|
12670
|
+
'schedule'?: Array<ScheduleDto>;
|
|
11942
12671
|
}
|
|
11943
12672
|
/**
|
|
11944
12673
|
* Customer details
|
|
@@ -13441,6 +14170,12 @@ export interface ParkPosOrderDtoOrder {
|
|
|
13441
14170
|
* @memberof ParkPosOrderDtoOrder
|
|
13442
14171
|
*/
|
|
13443
14172
|
'tableGroupId'?: string | null;
|
|
14173
|
+
/**
|
|
14174
|
+
*
|
|
14175
|
+
* @type {PosOrderDtoLoyalty}
|
|
14176
|
+
* @memberof ParkPosOrderDtoOrder
|
|
14177
|
+
*/
|
|
14178
|
+
'loyalty'?: PosOrderDtoLoyalty | null;
|
|
13444
14179
|
}
|
|
13445
14180
|
|
|
13446
14181
|
|
|
@@ -15890,6 +16625,36 @@ export interface PosDiscountDto {
|
|
|
15890
16625
|
* @memberof PosDiscountDto
|
|
15891
16626
|
*/
|
|
15892
16627
|
'isAutomatic': boolean;
|
|
16628
|
+
/**
|
|
16629
|
+
* 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.
|
|
16630
|
+
* @type {number}
|
|
16631
|
+
* @memberof PosDiscountDto
|
|
16632
|
+
*/
|
|
16633
|
+
'sequence'?: number;
|
|
16634
|
+
/**
|
|
16635
|
+
* Payable amount this application was measured against, in minor units.
|
|
16636
|
+
* @type {number}
|
|
16637
|
+
* @memberof PosDiscountDto
|
|
16638
|
+
*/
|
|
16639
|
+
'baseAmount'?: number;
|
|
16640
|
+
/**
|
|
16641
|
+
* Amount the configured discount asked for, in minor units, before it was clamped to what was still payable.
|
|
16642
|
+
* @type {number}
|
|
16643
|
+
* @memberof PosDiscountDto
|
|
16644
|
+
*/
|
|
16645
|
+
'requestedAmount'?: number;
|
|
16646
|
+
/**
|
|
16647
|
+
* Part of requestedAmount that could not be taken because nothing payable was left, in minor units. Never cashback.
|
|
16648
|
+
* @type {number}
|
|
16649
|
+
* @memberof PosDiscountDto
|
|
16650
|
+
*/
|
|
16651
|
+
'forfeitedAmount'?: number;
|
|
16652
|
+
/**
|
|
16653
|
+
* Number of line units this application covers. Absent means it covers the whole line.
|
|
16654
|
+
* @type {number}
|
|
16655
|
+
* @memberof PosDiscountDto
|
|
16656
|
+
*/
|
|
16657
|
+
'units'?: number;
|
|
15893
16658
|
}
|
|
15894
16659
|
|
|
15895
16660
|
|
|
@@ -17110,6 +17875,12 @@ export interface PosOrderDto {
|
|
|
17110
17875
|
* @memberof PosOrderDto
|
|
17111
17876
|
*/
|
|
17112
17877
|
'tableGroupId'?: string | null;
|
|
17878
|
+
/**
|
|
17879
|
+
*
|
|
17880
|
+
* @type {PosOrderDtoLoyalty}
|
|
17881
|
+
* @memberof PosOrderDto
|
|
17882
|
+
*/
|
|
17883
|
+
'loyalty'?: PosOrderDtoLoyalty | null;
|
|
17113
17884
|
}
|
|
17114
17885
|
|
|
17115
17886
|
|
|
@@ -17199,6 +17970,19 @@ export interface PosOrderDtoInvoiceCompany {
|
|
|
17199
17970
|
*/
|
|
17200
17971
|
'updatedAt': string;
|
|
17201
17972
|
}
|
|
17973
|
+
/**
|
|
17974
|
+
* Loyalty rewards committed to this order. Absent on orders that used none.
|
|
17975
|
+
* @export
|
|
17976
|
+
* @interface PosOrderDtoLoyalty
|
|
17977
|
+
*/
|
|
17978
|
+
export interface PosOrderDtoLoyalty {
|
|
17979
|
+
/**
|
|
17980
|
+
* Redemptions on this order, keyed by loyalty entry id.
|
|
17981
|
+
* @type {{ [key: string]: OrderLoyaltyRedemptionDto; }}
|
|
17982
|
+
* @memberof PosOrderDtoLoyalty
|
|
17983
|
+
*/
|
|
17984
|
+
'redemptions': { [key: string]: OrderLoyaltyRedemptionDto; };
|
|
17985
|
+
}
|
|
17202
17986
|
/**
|
|
17203
17987
|
* Fine dining table service metadata
|
|
17204
17988
|
* @export
|
|
@@ -17414,6 +18198,12 @@ export interface PosOrderItemDto {
|
|
|
17414
18198
|
* @memberof PosOrderItemDto
|
|
17415
18199
|
*/
|
|
17416
18200
|
'discount': PosDiscountDto | null;
|
|
18201
|
+
/**
|
|
18202
|
+
* Every item-scope discount application on this line, in cascade order — including when there is only one.
|
|
18203
|
+
* @type {Array<PosDiscountDto>}
|
|
18204
|
+
* @memberof PosOrderItemDto
|
|
18205
|
+
*/
|
|
18206
|
+
'discountApplications'?: Array<PosDiscountDto>;
|
|
17417
18207
|
/**
|
|
17418
18208
|
*
|
|
17419
18209
|
* @type {boolean}
|
|
@@ -17932,6 +18722,12 @@ export interface PosOrderPayloadDtoOrder {
|
|
|
17932
18722
|
* @memberof PosOrderPayloadDtoOrder
|
|
17933
18723
|
*/
|
|
17934
18724
|
'tableGroupId'?: string | null;
|
|
18725
|
+
/**
|
|
18726
|
+
*
|
|
18727
|
+
* @type {PosOrderDtoLoyalty}
|
|
18728
|
+
* @memberof PosOrderPayloadDtoOrder
|
|
18729
|
+
*/
|
|
18730
|
+
'loyalty'?: PosOrderDtoLoyalty | null;
|
|
17935
18731
|
}
|
|
17936
18732
|
|
|
17937
18733
|
|
|
@@ -18891,6 +19687,12 @@ export interface ProcessOrderActionsResponseDtoOrder {
|
|
|
18891
19687
|
* @memberof ProcessOrderActionsResponseDtoOrder
|
|
18892
19688
|
*/
|
|
18893
19689
|
'tableGroupId'?: string | null;
|
|
19690
|
+
/**
|
|
19691
|
+
*
|
|
19692
|
+
* @type {PosOrderDtoLoyalty}
|
|
19693
|
+
* @memberof ProcessOrderActionsResponseDtoOrder
|
|
19694
|
+
*/
|
|
19695
|
+
'loyalty'?: PosOrderDtoLoyalty | null;
|
|
18894
19696
|
}
|
|
18895
19697
|
|
|
18896
19698
|
|
|
@@ -20191,6 +20993,12 @@ export interface RecordManualPaymentResultDtoOrder {
|
|
|
20191
20993
|
* @memberof RecordManualPaymentResultDtoOrder
|
|
20192
20994
|
*/
|
|
20193
20995
|
'tableGroupId'?: string | null;
|
|
20996
|
+
/**
|
|
20997
|
+
*
|
|
20998
|
+
* @type {PosOrderDtoLoyalty}
|
|
20999
|
+
* @memberof RecordManualPaymentResultDtoOrder
|
|
21000
|
+
*/
|
|
21001
|
+
'loyalty'?: PosOrderDtoLoyalty | null;
|
|
20194
21002
|
}
|
|
20195
21003
|
|
|
20196
21004
|
|
|
@@ -21219,6 +22027,58 @@ export const ScopeEnum = {
|
|
|
21219
22027
|
|
|
21220
22028
|
export type ScopeEnum = typeof ScopeEnum[keyof typeof ScopeEnum];
|
|
21221
22029
|
|
|
22030
|
+
/**
|
|
22031
|
+
*
|
|
22032
|
+
* @export
|
|
22033
|
+
* @interface RestoreLoyaltyRedemptionDto
|
|
22034
|
+
*/
|
|
22035
|
+
export interface RestoreLoyaltyRedemptionDto {
|
|
22036
|
+
/**
|
|
22037
|
+
* Business the order belongs to
|
|
22038
|
+
* @type {number}
|
|
22039
|
+
* @memberof RestoreLoyaltyRedemptionDto
|
|
22040
|
+
*/
|
|
22041
|
+
'businessId': number;
|
|
22042
|
+
/**
|
|
22043
|
+
* POS order carrying the redemption
|
|
22044
|
+
* @type {string}
|
|
22045
|
+
* @memberof RestoreLoyaltyRedemptionDto
|
|
22046
|
+
*/
|
|
22047
|
+
'orderId': string;
|
|
22048
|
+
/**
|
|
22049
|
+
* Loyalty entry to restore
|
|
22050
|
+
* @type {string}
|
|
22051
|
+
* @memberof RestoreLoyaltyRedemptionDto
|
|
22052
|
+
*/
|
|
22053
|
+
'loyaltyEntryId': string;
|
|
22054
|
+
}
|
|
22055
|
+
/**
|
|
22056
|
+
*
|
|
22057
|
+
* @export
|
|
22058
|
+
* @interface RestoreLoyaltyRedemptionResponseDto
|
|
22059
|
+
*/
|
|
22060
|
+
export interface RestoreLoyaltyRedemptionResponseDto {
|
|
22061
|
+
/**
|
|
22062
|
+
*
|
|
22063
|
+
* @type {LoyaltyRestoreRequestStatus}
|
|
22064
|
+
* @memberof RestoreLoyaltyRedemptionResponseDto
|
|
22065
|
+
*/
|
|
22066
|
+
'status': LoyaltyRestoreRequestStatus;
|
|
22067
|
+
/**
|
|
22068
|
+
* Loyalty transaction the restore was asked against
|
|
22069
|
+
* @type {string}
|
|
22070
|
+
* @memberof RestoreLoyaltyRedemptionResponseDto
|
|
22071
|
+
*/
|
|
22072
|
+
'transactionId': string | null;
|
|
22073
|
+
/**
|
|
22074
|
+
* Reversal already recorded against the entry, when there is one
|
|
22075
|
+
* @type {string}
|
|
22076
|
+
* @memberof RestoreLoyaltyRedemptionResponseDto
|
|
22077
|
+
*/
|
|
22078
|
+
'reversalTransactionId': string | null;
|
|
22079
|
+
}
|
|
22080
|
+
|
|
22081
|
+
|
|
21222
22082
|
/**
|
|
21223
22083
|
*
|
|
21224
22084
|
* @export
|
|
@@ -22558,6 +23418,12 @@ export interface SyncKioskOrderDtoOrder {
|
|
|
22558
23418
|
* @memberof SyncKioskOrderDtoOrder
|
|
22559
23419
|
*/
|
|
22560
23420
|
'tableGroupId'?: string | null;
|
|
23421
|
+
/**
|
|
23422
|
+
*
|
|
23423
|
+
* @type {PosOrderDtoLoyalty}
|
|
23424
|
+
* @memberof SyncKioskOrderDtoOrder
|
|
23425
|
+
*/
|
|
23426
|
+
'loyalty'?: PosOrderDtoLoyalty | null;
|
|
22561
23427
|
}
|
|
22562
23428
|
|
|
22563
23429
|
|
|
@@ -22889,6 +23755,12 @@ export interface SyncPosOrderDtoOrder {
|
|
|
22889
23755
|
* @memberof SyncPosOrderDtoOrder
|
|
22890
23756
|
*/
|
|
22891
23757
|
'tableGroupId'?: string | null;
|
|
23758
|
+
/**
|
|
23759
|
+
*
|
|
23760
|
+
* @type {PosOrderDtoLoyalty}
|
|
23761
|
+
* @memberof SyncPosOrderDtoOrder
|
|
23762
|
+
*/
|
|
23763
|
+
'loyalty'?: PosOrderDtoLoyalty | null;
|
|
22892
23764
|
}
|
|
22893
23765
|
|
|
22894
23766
|
|
|
@@ -24321,6 +25193,12 @@ export interface UnifiedOrderResponseDto {
|
|
|
24321
25193
|
* @memberof UnifiedOrderResponseDto
|
|
24322
25194
|
*/
|
|
24323
25195
|
'posDiscounts'?: Array<PosDiscountDto>;
|
|
25196
|
+
/**
|
|
25197
|
+
*
|
|
25198
|
+
* @type {UnifiedOrderResponseDtoLoyalty}
|
|
25199
|
+
* @memberof UnifiedOrderResponseDto
|
|
25200
|
+
*/
|
|
25201
|
+
'loyalty'?: UnifiedOrderResponseDtoLoyalty | null;
|
|
24324
25202
|
/**
|
|
24325
25203
|
* Payment transactions recorded for the POS order. POS only
|
|
24326
25204
|
* @type {Array<TransactionDto>}
|
|
@@ -24659,6 +25537,19 @@ export interface UnifiedOrderResponseDtoLastPaymentError {
|
|
|
24659
25537
|
}
|
|
24660
25538
|
|
|
24661
25539
|
|
|
25540
|
+
/**
|
|
25541
|
+
* Loyalty rewards committed to the POS order, keyed by loyalty entry id. POS only
|
|
25542
|
+
* @export
|
|
25543
|
+
* @interface UnifiedOrderResponseDtoLoyalty
|
|
25544
|
+
*/
|
|
25545
|
+
export interface UnifiedOrderResponseDtoLoyalty {
|
|
25546
|
+
/**
|
|
25547
|
+
* Redemptions on this order, keyed by loyalty entry id.
|
|
25548
|
+
* @type {{ [key: string]: OrderLoyaltyRedemptionDto; }}
|
|
25549
|
+
* @memberof UnifiedOrderResponseDtoLoyalty
|
|
25550
|
+
*/
|
|
25551
|
+
'redemptions': { [key: string]: OrderLoyaltyRedemptionDto; };
|
|
25552
|
+
}
|
|
24662
25553
|
/**
|
|
24663
25554
|
* Preorder scheduling details. Platform only
|
|
24664
25555
|
* @export
|
|
@@ -39029,6 +39920,135 @@ export class KiosksApi extends BaseAPI implements KiosksApiInterface {
|
|
|
39029
39920
|
}
|
|
39030
39921
|
|
|
39031
39922
|
|
|
39923
|
+
/**
|
|
39924
|
+
* LoyaltyCommerceApi - axios parameter creator
|
|
39925
|
+
* @export
|
|
39926
|
+
*/
|
|
39927
|
+
export const LoyaltyCommerceApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
39928
|
+
return {
|
|
39929
|
+
/**
|
|
39930
|
+
*
|
|
39931
|
+
* @summary Ask the loyalty ledger to restore a settled redemption
|
|
39932
|
+
* @param {RestoreLoyaltyRedemptionDto} restoreLoyaltyRedemptionDto
|
|
39933
|
+
* @param {*} [options] Override http request option.
|
|
39934
|
+
* @throws {RequiredError}
|
|
39935
|
+
*/
|
|
39936
|
+
restoreRedemption: async (restoreLoyaltyRedemptionDto: RestoreLoyaltyRedemptionDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
39937
|
+
// verify required parameter 'restoreLoyaltyRedemptionDto' is not null or undefined
|
|
39938
|
+
assertParamExists('restoreRedemption', 'restoreLoyaltyRedemptionDto', restoreLoyaltyRedemptionDto)
|
|
39939
|
+
const localVarPath = `/api/v1/loyalty-commerce/redemptions/restore`;
|
|
39940
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
39941
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
39942
|
+
let baseOptions;
|
|
39943
|
+
if (configuration) {
|
|
39944
|
+
baseOptions = configuration.baseOptions;
|
|
39945
|
+
}
|
|
39946
|
+
|
|
39947
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
39948
|
+
const localVarHeaderParameter = {} as any;
|
|
39949
|
+
const localVarQueryParameter = {} as any;
|
|
39950
|
+
|
|
39951
|
+
// authentication JWT-auth required
|
|
39952
|
+
// http bearer authentication required
|
|
39953
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
39954
|
+
|
|
39955
|
+
|
|
39956
|
+
|
|
39957
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
39958
|
+
|
|
39959
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
39960
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
39961
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
39962
|
+
localVarRequestOptions.data = serializeDataIfNeeded(restoreLoyaltyRedemptionDto, localVarRequestOptions, configuration)
|
|
39963
|
+
|
|
39964
|
+
return {
|
|
39965
|
+
url: toPathString(localVarUrlObj),
|
|
39966
|
+
options: localVarRequestOptions,
|
|
39967
|
+
};
|
|
39968
|
+
},
|
|
39969
|
+
}
|
|
39970
|
+
};
|
|
39971
|
+
|
|
39972
|
+
/**
|
|
39973
|
+
* LoyaltyCommerceApi - functional programming interface
|
|
39974
|
+
* @export
|
|
39975
|
+
*/
|
|
39976
|
+
export const LoyaltyCommerceApiFp = function(configuration?: Configuration) {
|
|
39977
|
+
const localVarAxiosParamCreator = LoyaltyCommerceApiAxiosParamCreator(configuration)
|
|
39978
|
+
return {
|
|
39979
|
+
/**
|
|
39980
|
+
*
|
|
39981
|
+
* @summary Ask the loyalty ledger to restore a settled redemption
|
|
39982
|
+
* @param {RestoreLoyaltyRedemptionDto} restoreLoyaltyRedemptionDto
|
|
39983
|
+
* @param {*} [options] Override http request option.
|
|
39984
|
+
* @throws {RequiredError}
|
|
39985
|
+
*/
|
|
39986
|
+
async restoreRedemption(restoreLoyaltyRedemptionDto: RestoreLoyaltyRedemptionDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RestoreLoyaltyRedemptionResponseDto>> {
|
|
39987
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.restoreRedemption(restoreLoyaltyRedemptionDto, options);
|
|
39988
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
39989
|
+
},
|
|
39990
|
+
}
|
|
39991
|
+
};
|
|
39992
|
+
|
|
39993
|
+
/**
|
|
39994
|
+
* LoyaltyCommerceApi - factory interface
|
|
39995
|
+
* @export
|
|
39996
|
+
*/
|
|
39997
|
+
export const LoyaltyCommerceApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
39998
|
+
const localVarFp = LoyaltyCommerceApiFp(configuration)
|
|
39999
|
+
return {
|
|
40000
|
+
/**
|
|
40001
|
+
*
|
|
40002
|
+
* @summary Ask the loyalty ledger to restore a settled redemption
|
|
40003
|
+
* @param {RestoreLoyaltyRedemptionDto} restoreLoyaltyRedemptionDto
|
|
40004
|
+
* @param {*} [options] Override http request option.
|
|
40005
|
+
* @throws {RequiredError}
|
|
40006
|
+
*/
|
|
40007
|
+
restoreRedemption(restoreLoyaltyRedemptionDto: RestoreLoyaltyRedemptionDto, options?: any): AxiosPromise<RestoreLoyaltyRedemptionResponseDto> {
|
|
40008
|
+
return localVarFp.restoreRedemption(restoreLoyaltyRedemptionDto, options).then((request) => request(axios, basePath));
|
|
40009
|
+
},
|
|
40010
|
+
};
|
|
40011
|
+
};
|
|
40012
|
+
|
|
40013
|
+
/**
|
|
40014
|
+
* LoyaltyCommerceApi - interface
|
|
40015
|
+
* @export
|
|
40016
|
+
* @interface LoyaltyCommerceApi
|
|
40017
|
+
*/
|
|
40018
|
+
export interface LoyaltyCommerceApiInterface {
|
|
40019
|
+
/**
|
|
40020
|
+
*
|
|
40021
|
+
* @summary Ask the loyalty ledger to restore a settled redemption
|
|
40022
|
+
* @param {RestoreLoyaltyRedemptionDto} restoreLoyaltyRedemptionDto
|
|
40023
|
+
* @param {*} [options] Override http request option.
|
|
40024
|
+
* @throws {RequiredError}
|
|
40025
|
+
* @memberof LoyaltyCommerceApiInterface
|
|
40026
|
+
*/
|
|
40027
|
+
restoreRedemption(restoreLoyaltyRedemptionDto: RestoreLoyaltyRedemptionDto, options?: AxiosRequestConfig): AxiosPromise<RestoreLoyaltyRedemptionResponseDto>;
|
|
40028
|
+
|
|
40029
|
+
}
|
|
40030
|
+
|
|
40031
|
+
/**
|
|
40032
|
+
* LoyaltyCommerceApi - object-oriented interface
|
|
40033
|
+
* @export
|
|
40034
|
+
* @class LoyaltyCommerceApi
|
|
40035
|
+
* @extends {BaseAPI}
|
|
40036
|
+
*/
|
|
40037
|
+
export class LoyaltyCommerceApi extends BaseAPI implements LoyaltyCommerceApiInterface {
|
|
40038
|
+
/**
|
|
40039
|
+
*
|
|
40040
|
+
* @summary Ask the loyalty ledger to restore a settled redemption
|
|
40041
|
+
* @param {RestoreLoyaltyRedemptionDto} restoreLoyaltyRedemptionDto
|
|
40042
|
+
* @param {*} [options] Override http request option.
|
|
40043
|
+
* @throws {RequiredError}
|
|
40044
|
+
* @memberof LoyaltyCommerceApi
|
|
40045
|
+
*/
|
|
40046
|
+
public restoreRedemption(restoreLoyaltyRedemptionDto: RestoreLoyaltyRedemptionDto, options?: AxiosRequestConfig) {
|
|
40047
|
+
return LoyaltyCommerceApiFp(this.configuration).restoreRedemption(restoreLoyaltyRedemptionDto, options).then((request) => request(this.axios, this.basePath));
|
|
40048
|
+
}
|
|
40049
|
+
}
|
|
40050
|
+
|
|
40051
|
+
|
|
39032
40052
|
/**
|
|
39033
40053
|
* LoyaltyIntegerationsApi - axios parameter creator
|
|
39034
40054
|
* @export
|
|
@@ -39438,6 +40458,46 @@ export const LoyaltyIntegerationsApiAxiosParamCreator = function (configuration?
|
|
|
39438
40458
|
options: localVarRequestOptions,
|
|
39439
40459
|
};
|
|
39440
40460
|
},
|
|
40461
|
+
/**
|
|
40462
|
+
*
|
|
40463
|
+
* @summary Resolve the loyalty runtime for a member on a till surface
|
|
40464
|
+
* @param {LoyaltyRuntimeContextRequestDto} loyaltyRuntimeContextRequestDto
|
|
40465
|
+
* @param {*} [options] Override http request option.
|
|
40466
|
+
* @throws {RequiredError}
|
|
40467
|
+
*/
|
|
40468
|
+
runtimeContext: async (loyaltyRuntimeContextRequestDto: LoyaltyRuntimeContextRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
40469
|
+
// verify required parameter 'loyaltyRuntimeContextRequestDto' is not null or undefined
|
|
40470
|
+
assertParamExists('runtimeContext', 'loyaltyRuntimeContextRequestDto', loyaltyRuntimeContextRequestDto)
|
|
40471
|
+
const localVarPath = `/api/v1/loyalty/runtime-context`;
|
|
40472
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
40473
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
40474
|
+
let baseOptions;
|
|
40475
|
+
if (configuration) {
|
|
40476
|
+
baseOptions = configuration.baseOptions;
|
|
40477
|
+
}
|
|
40478
|
+
|
|
40479
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
40480
|
+
const localVarHeaderParameter = {} as any;
|
|
40481
|
+
const localVarQueryParameter = {} as any;
|
|
40482
|
+
|
|
40483
|
+
// authentication JWT-auth required
|
|
40484
|
+
// http bearer authentication required
|
|
40485
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
40486
|
+
|
|
40487
|
+
|
|
40488
|
+
|
|
40489
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
40490
|
+
|
|
40491
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
40492
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
40493
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
40494
|
+
localVarRequestOptions.data = serializeDataIfNeeded(loyaltyRuntimeContextRequestDto, localVarRequestOptions, configuration)
|
|
40495
|
+
|
|
40496
|
+
return {
|
|
40497
|
+
url: toPathString(localVarUrlObj),
|
|
40498
|
+
options: localVarRequestOptions,
|
|
40499
|
+
};
|
|
40500
|
+
},
|
|
39441
40501
|
/**
|
|
39442
40502
|
*
|
|
39443
40503
|
* @summary Search user by phone or email
|
|
@@ -39711,6 +40771,17 @@ export const LoyaltyIntegerationsApiFp = function(configuration?: Configuration)
|
|
|
39711
40771
|
const localVarAxiosArgs = await localVarAxiosParamCreator.resolvePerks(loyaltyResolveRequestDto, options);
|
|
39712
40772
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
39713
40773
|
},
|
|
40774
|
+
/**
|
|
40775
|
+
*
|
|
40776
|
+
* @summary Resolve the loyalty runtime for a member on a till surface
|
|
40777
|
+
* @param {LoyaltyRuntimeContextRequestDto} loyaltyRuntimeContextRequestDto
|
|
40778
|
+
* @param {*} [options] Override http request option.
|
|
40779
|
+
* @throws {RequiredError}
|
|
40780
|
+
*/
|
|
40781
|
+
async runtimeContext(loyaltyRuntimeContextRequestDto: LoyaltyRuntimeContextRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoyaltyRuntimeContextDto>> {
|
|
40782
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.runtimeContext(loyaltyRuntimeContextRequestDto, options);
|
|
40783
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
40784
|
+
},
|
|
39714
40785
|
/**
|
|
39715
40786
|
*
|
|
39716
40787
|
* @summary Search user by phone or email
|
|
@@ -39856,6 +40927,16 @@ export const LoyaltyIntegerationsApiFactory = function (configuration?: Configur
|
|
|
39856
40927
|
resolvePerks(loyaltyResolveRequestDto: LoyaltyResolveRequestDto, options?: any): AxiosPromise<LoyaltyResolveResponseDto> {
|
|
39857
40928
|
return localVarFp.resolvePerks(loyaltyResolveRequestDto, options).then((request) => request(axios, basePath));
|
|
39858
40929
|
},
|
|
40930
|
+
/**
|
|
40931
|
+
*
|
|
40932
|
+
* @summary Resolve the loyalty runtime for a member on a till surface
|
|
40933
|
+
* @param {LoyaltyRuntimeContextRequestDto} loyaltyRuntimeContextRequestDto
|
|
40934
|
+
* @param {*} [options] Override http request option.
|
|
40935
|
+
* @throws {RequiredError}
|
|
40936
|
+
*/
|
|
40937
|
+
runtimeContext(loyaltyRuntimeContextRequestDto: LoyaltyRuntimeContextRequestDto, options?: any): AxiosPromise<LoyaltyRuntimeContextDto> {
|
|
40938
|
+
return localVarFp.runtimeContext(loyaltyRuntimeContextRequestDto, options).then((request) => request(axios, basePath));
|
|
40939
|
+
},
|
|
39859
40940
|
/**
|
|
39860
40941
|
*
|
|
39861
40942
|
* @summary Search user by phone or email
|
|
@@ -39997,6 +41078,16 @@ export interface LoyaltyIntegerationsApiInterface {
|
|
|
39997
41078
|
*/
|
|
39998
41079
|
resolvePerks(loyaltyResolveRequestDto: LoyaltyResolveRequestDto, options?: AxiosRequestConfig): AxiosPromise<LoyaltyResolveResponseDto>;
|
|
39999
41080
|
|
|
41081
|
+
/**
|
|
41082
|
+
*
|
|
41083
|
+
* @summary Resolve the loyalty runtime for a member on a till surface
|
|
41084
|
+
* @param {LoyaltyRuntimeContextRequestDto} loyaltyRuntimeContextRequestDto
|
|
41085
|
+
* @param {*} [options] Override http request option.
|
|
41086
|
+
* @throws {RequiredError}
|
|
41087
|
+
* @memberof LoyaltyIntegerationsApiInterface
|
|
41088
|
+
*/
|
|
41089
|
+
runtimeContext(loyaltyRuntimeContextRequestDto: LoyaltyRuntimeContextRequestDto, options?: AxiosRequestConfig): AxiosPromise<LoyaltyRuntimeContextDto>;
|
|
41090
|
+
|
|
40000
41091
|
/**
|
|
40001
41092
|
*
|
|
40002
41093
|
* @summary Search user by phone or email
|
|
@@ -40156,6 +41247,18 @@ export class LoyaltyIntegerationsApi extends BaseAPI implements LoyaltyIntegerat
|
|
|
40156
41247
|
return LoyaltyIntegerationsApiFp(this.configuration).resolvePerks(loyaltyResolveRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
40157
41248
|
}
|
|
40158
41249
|
|
|
41250
|
+
/**
|
|
41251
|
+
*
|
|
41252
|
+
* @summary Resolve the loyalty runtime for a member on a till surface
|
|
41253
|
+
* @param {LoyaltyRuntimeContextRequestDto} loyaltyRuntimeContextRequestDto
|
|
41254
|
+
* @param {*} [options] Override http request option.
|
|
41255
|
+
* @throws {RequiredError}
|
|
41256
|
+
* @memberof LoyaltyIntegerationsApi
|
|
41257
|
+
*/
|
|
41258
|
+
public runtimeContext(loyaltyRuntimeContextRequestDto: LoyaltyRuntimeContextRequestDto, options?: AxiosRequestConfig) {
|
|
41259
|
+
return LoyaltyIntegerationsApiFp(this.configuration).runtimeContext(loyaltyRuntimeContextRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
41260
|
+
}
|
|
41261
|
+
|
|
40159
41262
|
/**
|
|
40160
41263
|
*
|
|
40161
41264
|
* @summary Search user by phone or email
|