@munchi_oy/core 1.9.127 → 1.9.129
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/api.d.ts +524 -213
- 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 +724 -240
- package/package.json +13 -15
- package/src/version.ts +1 -1
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
|
|
@@ -9623,20 +9668,6 @@ export const LoyaltyChannel = {
|
|
|
9623
9668
|
export type LoyaltyChannel = typeof LoyaltyChannel[keyof typeof LoyaltyChannel];
|
|
9624
9669
|
|
|
9625
9670
|
|
|
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
9671
|
/**
|
|
9641
9672
|
*
|
|
9642
9673
|
* @export
|
|
@@ -9811,6 +9842,180 @@ export interface LoyaltyLinkMetadataDto {
|
|
|
9811
9842
|
*/
|
|
9812
9843
|
'venueId': number;
|
|
9813
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
|
+
|
|
9814
10019
|
/**
|
|
9815
10020
|
*
|
|
9816
10021
|
* @export
|
|
@@ -10094,186 +10299,6 @@ export const LoyaltyRuleTargetType = {
|
|
|
10094
10299
|
export type LoyaltyRuleTargetType = typeof LoyaltyRuleTargetType[keyof typeof LoyaltyRuleTargetType];
|
|
10095
10300
|
|
|
10096
10301
|
|
|
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
|
-
|
|
10277
10302
|
/**
|
|
10278
10303
|
*
|
|
10279
10304
|
* @export
|
|
@@ -20702,6 +20727,60 @@ export interface ReceiptDetailsDto {
|
|
|
20702
20727
|
*/
|
|
20703
20728
|
'transactionStatusInformation': string;
|
|
20704
20729
|
}
|
|
20730
|
+
/**
|
|
20731
|
+
*
|
|
20732
|
+
* @export
|
|
20733
|
+
* @interface ReceiptFooterConfigDto
|
|
20734
|
+
*/
|
|
20735
|
+
export interface ReceiptFooterConfigDto {
|
|
20736
|
+
/**
|
|
20737
|
+
*
|
|
20738
|
+
* @type {number}
|
|
20739
|
+
* @memberof ReceiptFooterConfigDto
|
|
20740
|
+
*/
|
|
20741
|
+
'businessId': number;
|
|
20742
|
+
/**
|
|
20743
|
+
*
|
|
20744
|
+
* @type {ProviderEnum}
|
|
20745
|
+
* @memberof ReceiptFooterConfigDto
|
|
20746
|
+
*/
|
|
20747
|
+
'channel': ProviderEnum;
|
|
20748
|
+
/**
|
|
20749
|
+
*
|
|
20750
|
+
* @type {Array<ReceiptFooterDocumentType>}
|
|
20751
|
+
* @memberof ReceiptFooterConfigDto
|
|
20752
|
+
*/
|
|
20753
|
+
'appliesTo': Array<ReceiptFooterDocumentType>;
|
|
20754
|
+
/**
|
|
20755
|
+
*
|
|
20756
|
+
* @type {Array<object>}
|
|
20757
|
+
* @memberof ReceiptFooterConfigDto
|
|
20758
|
+
*/
|
|
20759
|
+
'blocks': Array<object>;
|
|
20760
|
+
/**
|
|
20761
|
+
*
|
|
20762
|
+
* @type {string}
|
|
20763
|
+
* @memberof ReceiptFooterConfigDto
|
|
20764
|
+
*/
|
|
20765
|
+
'updatedAt': string;
|
|
20766
|
+
}
|
|
20767
|
+
|
|
20768
|
+
|
|
20769
|
+
/**
|
|
20770
|
+
*
|
|
20771
|
+
* @export
|
|
20772
|
+
* @enum {string}
|
|
20773
|
+
*/
|
|
20774
|
+
|
|
20775
|
+
export const ReceiptFooterDocumentType = {
|
|
20776
|
+
ReceiptFinal: 'RECEIPT_FINAL',
|
|
20777
|
+
ReceiptPrebill: 'RECEIPT_PREBILL',
|
|
20778
|
+
Refund: 'REFUND'
|
|
20779
|
+
} as const;
|
|
20780
|
+
|
|
20781
|
+
export type ReceiptFooterDocumentType = typeof ReceiptFooterDocumentType[keyof typeof ReceiptFooterDocumentType];
|
|
20782
|
+
|
|
20783
|
+
|
|
20705
20784
|
/**
|
|
20706
20785
|
*
|
|
20707
20786
|
* @export
|
|
@@ -22040,7 +22119,7 @@ export interface RestoreLoyaltyRedemptionDto {
|
|
|
22040
22119
|
*/
|
|
22041
22120
|
'businessId': number;
|
|
22042
22121
|
/**
|
|
22043
|
-
* POS order carrying the redemption
|
|
22122
|
+
* POS or kiosk order carrying the redemption
|
|
22044
22123
|
* @type {string}
|
|
22045
22124
|
* @memberof RestoreLoyaltyRedemptionDto
|
|
22046
22125
|
*/
|
|
@@ -22128,7 +22207,8 @@ export const SYNCKEY = {
|
|
|
22128
22207
|
InvoiceCompanies: 'INVOICE_COMPANIES',
|
|
22129
22208
|
BusinessTax: 'BUSINESS_TAX',
|
|
22130
22209
|
Transaction: 'TRANSACTION',
|
|
22131
|
-
PaymentMethods: 'PAYMENT_METHODS'
|
|
22210
|
+
PaymentMethods: 'PAYMENT_METHODS',
|
|
22211
|
+
ReceiptFooter: 'RECEIPT_FOOTER'
|
|
22132
22212
|
} as const;
|
|
22133
22213
|
|
|
22134
22214
|
export type SYNCKEY = typeof SYNCKEY[keyof typeof SYNCKEY];
|
|
@@ -27250,6 +27330,25 @@ export interface UpsertProvidersDto {
|
|
|
27250
27330
|
}
|
|
27251
27331
|
|
|
27252
27332
|
|
|
27333
|
+
/**
|
|
27334
|
+
*
|
|
27335
|
+
* @export
|
|
27336
|
+
* @interface UpsertReceiptFooterDto
|
|
27337
|
+
*/
|
|
27338
|
+
export interface UpsertReceiptFooterDto {
|
|
27339
|
+
/**
|
|
27340
|
+
* Document types this footer applies to. Empty array = all types.
|
|
27341
|
+
* @type {Array<ReceiptFooterDocumentType>}
|
|
27342
|
+
* @memberof UpsertReceiptFooterDto
|
|
27343
|
+
*/
|
|
27344
|
+
'appliesTo': Array<ReceiptFooterDocumentType>;
|
|
27345
|
+
/**
|
|
27346
|
+
* Ordered footer content blocks (text/image/qr/barcode), rendered before Munchi\'s own branding footer.
|
|
27347
|
+
* @type {Array<object>}
|
|
27348
|
+
* @memberof UpsertReceiptFooterDto
|
|
27349
|
+
*/
|
|
27350
|
+
'blocks': Array<object>;
|
|
27351
|
+
}
|
|
27253
27352
|
/**
|
|
27254
27353
|
*
|
|
27255
27354
|
* @export
|
|
@@ -40420,15 +40519,15 @@ export const LoyaltyIntegerationsApiAxiosParamCreator = function (configuration?
|
|
|
40420
40519
|
},
|
|
40421
40520
|
/**
|
|
40422
40521
|
*
|
|
40423
|
-
* @summary Resolve
|
|
40424
|
-
* @param {
|
|
40522
|
+
* @summary Resolve the loyalty member context for a member on a till surface
|
|
40523
|
+
* @param {LoyaltyMemberContextRequestDto} loyaltyMemberContextRequestDto
|
|
40425
40524
|
* @param {*} [options] Override http request option.
|
|
40426
40525
|
* @throws {RequiredError}
|
|
40427
40526
|
*/
|
|
40428
|
-
|
|
40429
|
-
// verify required parameter '
|
|
40430
|
-
assertParamExists('
|
|
40431
|
-
const localVarPath = `/api/v1/loyalty/
|
|
40527
|
+
memberContext: async (loyaltyMemberContextRequestDto: LoyaltyMemberContextRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
40528
|
+
// verify required parameter 'loyaltyMemberContextRequestDto' is not null or undefined
|
|
40529
|
+
assertParamExists('memberContext', 'loyaltyMemberContextRequestDto', loyaltyMemberContextRequestDto)
|
|
40530
|
+
const localVarPath = `/api/v1/loyalty/member-context`;
|
|
40432
40531
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
40433
40532
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
40434
40533
|
let baseOptions;
|
|
@@ -40451,7 +40550,7 @@ export const LoyaltyIntegerationsApiAxiosParamCreator = function (configuration?
|
|
|
40451
40550
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
40452
40551
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
40453
40552
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
40454
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
40553
|
+
localVarRequestOptions.data = serializeDataIfNeeded(loyaltyMemberContextRequestDto, localVarRequestOptions, configuration)
|
|
40455
40554
|
|
|
40456
40555
|
return {
|
|
40457
40556
|
url: toPathString(localVarUrlObj),
|
|
@@ -40460,15 +40559,15 @@ export const LoyaltyIntegerationsApiAxiosParamCreator = function (configuration?
|
|
|
40460
40559
|
},
|
|
40461
40560
|
/**
|
|
40462
40561
|
*
|
|
40463
|
-
* @summary Resolve
|
|
40464
|
-
* @param {
|
|
40562
|
+
* @summary Resolve applicable loyalty perks for the current cart (AI)
|
|
40563
|
+
* @param {LoyaltyResolveRequestDto} loyaltyResolveRequestDto
|
|
40465
40564
|
* @param {*} [options] Override http request option.
|
|
40466
40565
|
* @throws {RequiredError}
|
|
40467
40566
|
*/
|
|
40468
|
-
|
|
40469
|
-
// verify required parameter '
|
|
40470
|
-
assertParamExists('
|
|
40471
|
-
const localVarPath = `/api/v1/loyalty/
|
|
40567
|
+
resolvePerks: async (loyaltyResolveRequestDto: LoyaltyResolveRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
40568
|
+
// verify required parameter 'loyaltyResolveRequestDto' is not null or undefined
|
|
40569
|
+
assertParamExists('resolvePerks', 'loyaltyResolveRequestDto', loyaltyResolveRequestDto)
|
|
40570
|
+
const localVarPath = `/api/v1/loyalty/resolve`;
|
|
40472
40571
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
40473
40572
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
40474
40573
|
let baseOptions;
|
|
@@ -40491,7 +40590,7 @@ export const LoyaltyIntegerationsApiAxiosParamCreator = function (configuration?
|
|
|
40491
40590
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
40492
40591
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
40493
40592
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
40494
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
40593
|
+
localVarRequestOptions.data = serializeDataIfNeeded(loyaltyResolveRequestDto, localVarRequestOptions, configuration)
|
|
40495
40594
|
|
|
40496
40595
|
return {
|
|
40497
40596
|
url: toPathString(localVarUrlObj),
|
|
@@ -40762,24 +40861,24 @@ export const LoyaltyIntegerationsApiFp = function(configuration?: Configuration)
|
|
|
40762
40861
|
},
|
|
40763
40862
|
/**
|
|
40764
40863
|
*
|
|
40765
|
-
* @summary Resolve
|
|
40766
|
-
* @param {
|
|
40864
|
+
* @summary Resolve the loyalty member context for a member on a till surface
|
|
40865
|
+
* @param {LoyaltyMemberContextRequestDto} loyaltyMemberContextRequestDto
|
|
40767
40866
|
* @param {*} [options] Override http request option.
|
|
40768
40867
|
* @throws {RequiredError}
|
|
40769
40868
|
*/
|
|
40770
|
-
async
|
|
40771
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
40869
|
+
async memberContext(loyaltyMemberContextRequestDto: LoyaltyMemberContextRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoyaltyMemberContextDto>> {
|
|
40870
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.memberContext(loyaltyMemberContextRequestDto, options);
|
|
40772
40871
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
40773
40872
|
},
|
|
40774
40873
|
/**
|
|
40775
40874
|
*
|
|
40776
|
-
* @summary Resolve
|
|
40777
|
-
* @param {
|
|
40875
|
+
* @summary Resolve applicable loyalty perks for the current cart (AI)
|
|
40876
|
+
* @param {LoyaltyResolveRequestDto} loyaltyResolveRequestDto
|
|
40778
40877
|
* @param {*} [options] Override http request option.
|
|
40779
40878
|
* @throws {RequiredError}
|
|
40780
40879
|
*/
|
|
40781
|
-
async
|
|
40782
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
40880
|
+
async resolvePerks(loyaltyResolveRequestDto: LoyaltyResolveRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoyaltyResolveResponseDto>> {
|
|
40881
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.resolvePerks(loyaltyResolveRequestDto, options);
|
|
40783
40882
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
40784
40883
|
},
|
|
40785
40884
|
/**
|
|
@@ -40919,23 +41018,23 @@ export const LoyaltyIntegerationsApiFactory = function (configuration?: Configur
|
|
|
40919
41018
|
},
|
|
40920
41019
|
/**
|
|
40921
41020
|
*
|
|
40922
|
-
* @summary Resolve
|
|
40923
|
-
* @param {
|
|
41021
|
+
* @summary Resolve the loyalty member context for a member on a till surface
|
|
41022
|
+
* @param {LoyaltyMemberContextRequestDto} loyaltyMemberContextRequestDto
|
|
40924
41023
|
* @param {*} [options] Override http request option.
|
|
40925
41024
|
* @throws {RequiredError}
|
|
40926
41025
|
*/
|
|
40927
|
-
|
|
40928
|
-
return localVarFp.
|
|
41026
|
+
memberContext(loyaltyMemberContextRequestDto: LoyaltyMemberContextRequestDto, options?: any): AxiosPromise<LoyaltyMemberContextDto> {
|
|
41027
|
+
return localVarFp.memberContext(loyaltyMemberContextRequestDto, options).then((request) => request(axios, basePath));
|
|
40929
41028
|
},
|
|
40930
41029
|
/**
|
|
40931
41030
|
*
|
|
40932
|
-
* @summary Resolve
|
|
40933
|
-
* @param {
|
|
41031
|
+
* @summary Resolve applicable loyalty perks for the current cart (AI)
|
|
41032
|
+
* @param {LoyaltyResolveRequestDto} loyaltyResolveRequestDto
|
|
40934
41033
|
* @param {*} [options] Override http request option.
|
|
40935
41034
|
* @throws {RequiredError}
|
|
40936
41035
|
*/
|
|
40937
|
-
|
|
40938
|
-
return localVarFp.
|
|
41036
|
+
resolvePerks(loyaltyResolveRequestDto: LoyaltyResolveRequestDto, options?: any): AxiosPromise<LoyaltyResolveResponseDto> {
|
|
41037
|
+
return localVarFp.resolvePerks(loyaltyResolveRequestDto, options).then((request) => request(axios, basePath));
|
|
40939
41038
|
},
|
|
40940
41039
|
/**
|
|
40941
41040
|
*
|
|
@@ -41070,23 +41169,23 @@ export interface LoyaltyIntegerationsApiInterface {
|
|
|
41070
41169
|
|
|
41071
41170
|
/**
|
|
41072
41171
|
*
|
|
41073
|
-
* @summary Resolve
|
|
41074
|
-
* @param {
|
|
41172
|
+
* @summary Resolve the loyalty member context for a member on a till surface
|
|
41173
|
+
* @param {LoyaltyMemberContextRequestDto} loyaltyMemberContextRequestDto
|
|
41075
41174
|
* @param {*} [options] Override http request option.
|
|
41076
41175
|
* @throws {RequiredError}
|
|
41077
41176
|
* @memberof LoyaltyIntegerationsApiInterface
|
|
41078
41177
|
*/
|
|
41079
|
-
|
|
41178
|
+
memberContext(loyaltyMemberContextRequestDto: LoyaltyMemberContextRequestDto, options?: AxiosRequestConfig): AxiosPromise<LoyaltyMemberContextDto>;
|
|
41080
41179
|
|
|
41081
41180
|
/**
|
|
41082
41181
|
*
|
|
41083
|
-
* @summary Resolve
|
|
41084
|
-
* @param {
|
|
41182
|
+
* @summary Resolve applicable loyalty perks for the current cart (AI)
|
|
41183
|
+
* @param {LoyaltyResolveRequestDto} loyaltyResolveRequestDto
|
|
41085
41184
|
* @param {*} [options] Override http request option.
|
|
41086
41185
|
* @throws {RequiredError}
|
|
41087
41186
|
* @memberof LoyaltyIntegerationsApiInterface
|
|
41088
41187
|
*/
|
|
41089
|
-
|
|
41188
|
+
resolvePerks(loyaltyResolveRequestDto: LoyaltyResolveRequestDto, options?: AxiosRequestConfig): AxiosPromise<LoyaltyResolveResponseDto>;
|
|
41090
41189
|
|
|
41091
41190
|
/**
|
|
41092
41191
|
*
|
|
@@ -41237,26 +41336,26 @@ export class LoyaltyIntegerationsApi extends BaseAPI implements LoyaltyIntegerat
|
|
|
41237
41336
|
|
|
41238
41337
|
/**
|
|
41239
41338
|
*
|
|
41240
|
-
* @summary Resolve
|
|
41241
|
-
* @param {
|
|
41339
|
+
* @summary Resolve the loyalty member context for a member on a till surface
|
|
41340
|
+
* @param {LoyaltyMemberContextRequestDto} loyaltyMemberContextRequestDto
|
|
41242
41341
|
* @param {*} [options] Override http request option.
|
|
41243
41342
|
* @throws {RequiredError}
|
|
41244
41343
|
* @memberof LoyaltyIntegerationsApi
|
|
41245
41344
|
*/
|
|
41246
|
-
public
|
|
41247
|
-
return LoyaltyIntegerationsApiFp(this.configuration).
|
|
41345
|
+
public memberContext(loyaltyMemberContextRequestDto: LoyaltyMemberContextRequestDto, options?: AxiosRequestConfig) {
|
|
41346
|
+
return LoyaltyIntegerationsApiFp(this.configuration).memberContext(loyaltyMemberContextRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
41248
41347
|
}
|
|
41249
41348
|
|
|
41250
41349
|
/**
|
|
41251
41350
|
*
|
|
41252
|
-
* @summary Resolve
|
|
41253
|
-
* @param {
|
|
41351
|
+
* @summary Resolve applicable loyalty perks for the current cart (AI)
|
|
41352
|
+
* @param {LoyaltyResolveRequestDto} loyaltyResolveRequestDto
|
|
41254
41353
|
* @param {*} [options] Override http request option.
|
|
41255
41354
|
* @throws {RequiredError}
|
|
41256
41355
|
* @memberof LoyaltyIntegerationsApi
|
|
41257
41356
|
*/
|
|
41258
|
-
public
|
|
41259
|
-
return LoyaltyIntegerationsApiFp(this.configuration).
|
|
41357
|
+
public resolvePerks(loyaltyResolveRequestDto: LoyaltyResolveRequestDto, options?: AxiosRequestConfig) {
|
|
41358
|
+
return LoyaltyIntegerationsApiFp(this.configuration).resolvePerks(loyaltyResolveRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
41260
41359
|
}
|
|
41261
41360
|
|
|
41262
41361
|
/**
|
|
@@ -42721,6 +42820,151 @@ export class NotificationApi extends BaseAPI implements NotificationApiInterface
|
|
|
42721
42820
|
}
|
|
42722
42821
|
|
|
42723
42822
|
|
|
42823
|
+
/**
|
|
42824
|
+
* OrderCompletionApi - axios parameter creator
|
|
42825
|
+
* @export
|
|
42826
|
+
*/
|
|
42827
|
+
export const OrderCompletionApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
42828
|
+
return {
|
|
42829
|
+
/**
|
|
42830
|
+
*
|
|
42831
|
+
* @summary Complete an order that has nothing left to pay
|
|
42832
|
+
* @param {string} businessId The unique ID of the business the order belongs to.
|
|
42833
|
+
* @param {string} orderId The unique ID of the order.
|
|
42834
|
+
* @param {CompleteOrderDto} completeOrderDto
|
|
42835
|
+
* @param {*} [options] Override http request option.
|
|
42836
|
+
* @throws {RequiredError}
|
|
42837
|
+
*/
|
|
42838
|
+
completeOrder: async (businessId: string, orderId: string, completeOrderDto: CompleteOrderDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
42839
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
42840
|
+
assertParamExists('completeOrder', 'businessId', businessId)
|
|
42841
|
+
// verify required parameter 'orderId' is not null or undefined
|
|
42842
|
+
assertParamExists('completeOrder', 'orderId', orderId)
|
|
42843
|
+
// verify required parameter 'completeOrderDto' is not null or undefined
|
|
42844
|
+
assertParamExists('completeOrder', 'completeOrderDto', completeOrderDto)
|
|
42845
|
+
const localVarPath = `/api/v1/businesses/{businessId}/orders/{orderId}/complete`
|
|
42846
|
+
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
|
|
42847
|
+
.replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
|
|
42848
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42849
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
42850
|
+
let baseOptions;
|
|
42851
|
+
if (configuration) {
|
|
42852
|
+
baseOptions = configuration.baseOptions;
|
|
42853
|
+
}
|
|
42854
|
+
|
|
42855
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
42856
|
+
const localVarHeaderParameter = {} as any;
|
|
42857
|
+
const localVarQueryParameter = {} as any;
|
|
42858
|
+
|
|
42859
|
+
// authentication JWT-auth required
|
|
42860
|
+
// http bearer authentication required
|
|
42861
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
42862
|
+
|
|
42863
|
+
|
|
42864
|
+
|
|
42865
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
42866
|
+
|
|
42867
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
42868
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
42869
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
42870
|
+
localVarRequestOptions.data = serializeDataIfNeeded(completeOrderDto, localVarRequestOptions, configuration)
|
|
42871
|
+
|
|
42872
|
+
return {
|
|
42873
|
+
url: toPathString(localVarUrlObj),
|
|
42874
|
+
options: localVarRequestOptions,
|
|
42875
|
+
};
|
|
42876
|
+
},
|
|
42877
|
+
}
|
|
42878
|
+
};
|
|
42879
|
+
|
|
42880
|
+
/**
|
|
42881
|
+
* OrderCompletionApi - functional programming interface
|
|
42882
|
+
* @export
|
|
42883
|
+
*/
|
|
42884
|
+
export const OrderCompletionApiFp = function(configuration?: Configuration) {
|
|
42885
|
+
const localVarAxiosParamCreator = OrderCompletionApiAxiosParamCreator(configuration)
|
|
42886
|
+
return {
|
|
42887
|
+
/**
|
|
42888
|
+
*
|
|
42889
|
+
* @summary Complete an order that has nothing left to pay
|
|
42890
|
+
* @param {string} businessId The unique ID of the business the order belongs to.
|
|
42891
|
+
* @param {string} orderId The unique ID of the order.
|
|
42892
|
+
* @param {CompleteOrderDto} completeOrderDto
|
|
42893
|
+
* @param {*} [options] Override http request option.
|
|
42894
|
+
* @throws {RequiredError}
|
|
42895
|
+
*/
|
|
42896
|
+
async completeOrder(businessId: string, orderId: string, completeOrderDto: CompleteOrderDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompleteOrderResponseDto>> {
|
|
42897
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.completeOrder(businessId, orderId, completeOrderDto, options);
|
|
42898
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
42899
|
+
},
|
|
42900
|
+
}
|
|
42901
|
+
};
|
|
42902
|
+
|
|
42903
|
+
/**
|
|
42904
|
+
* OrderCompletionApi - factory interface
|
|
42905
|
+
* @export
|
|
42906
|
+
*/
|
|
42907
|
+
export const OrderCompletionApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
42908
|
+
const localVarFp = OrderCompletionApiFp(configuration)
|
|
42909
|
+
return {
|
|
42910
|
+
/**
|
|
42911
|
+
*
|
|
42912
|
+
* @summary Complete an order that has nothing left to pay
|
|
42913
|
+
* @param {string} businessId The unique ID of the business the order belongs to.
|
|
42914
|
+
* @param {string} orderId The unique ID of the order.
|
|
42915
|
+
* @param {CompleteOrderDto} completeOrderDto
|
|
42916
|
+
* @param {*} [options] Override http request option.
|
|
42917
|
+
* @throws {RequiredError}
|
|
42918
|
+
*/
|
|
42919
|
+
completeOrder(businessId: string, orderId: string, completeOrderDto: CompleteOrderDto, options?: any): AxiosPromise<CompleteOrderResponseDto> {
|
|
42920
|
+
return localVarFp.completeOrder(businessId, orderId, completeOrderDto, options).then((request) => request(axios, basePath));
|
|
42921
|
+
},
|
|
42922
|
+
};
|
|
42923
|
+
};
|
|
42924
|
+
|
|
42925
|
+
/**
|
|
42926
|
+
* OrderCompletionApi - interface
|
|
42927
|
+
* @export
|
|
42928
|
+
* @interface OrderCompletionApi
|
|
42929
|
+
*/
|
|
42930
|
+
export interface OrderCompletionApiInterface {
|
|
42931
|
+
/**
|
|
42932
|
+
*
|
|
42933
|
+
* @summary Complete an order that has nothing left to pay
|
|
42934
|
+
* @param {string} businessId The unique ID of the business the order belongs to.
|
|
42935
|
+
* @param {string} orderId The unique ID of the order.
|
|
42936
|
+
* @param {CompleteOrderDto} completeOrderDto
|
|
42937
|
+
* @param {*} [options] Override http request option.
|
|
42938
|
+
* @throws {RequiredError}
|
|
42939
|
+
* @memberof OrderCompletionApiInterface
|
|
42940
|
+
*/
|
|
42941
|
+
completeOrder(businessId: string, orderId: string, completeOrderDto: CompleteOrderDto, options?: AxiosRequestConfig): AxiosPromise<CompleteOrderResponseDto>;
|
|
42942
|
+
|
|
42943
|
+
}
|
|
42944
|
+
|
|
42945
|
+
/**
|
|
42946
|
+
* OrderCompletionApi - object-oriented interface
|
|
42947
|
+
* @export
|
|
42948
|
+
* @class OrderCompletionApi
|
|
42949
|
+
* @extends {BaseAPI}
|
|
42950
|
+
*/
|
|
42951
|
+
export class OrderCompletionApi extends BaseAPI implements OrderCompletionApiInterface {
|
|
42952
|
+
/**
|
|
42953
|
+
*
|
|
42954
|
+
* @summary Complete an order that has nothing left to pay
|
|
42955
|
+
* @param {string} businessId The unique ID of the business the order belongs to.
|
|
42956
|
+
* @param {string} orderId The unique ID of the order.
|
|
42957
|
+
* @param {CompleteOrderDto} completeOrderDto
|
|
42958
|
+
* @param {*} [options] Override http request option.
|
|
42959
|
+
* @throws {RequiredError}
|
|
42960
|
+
* @memberof OrderCompletionApi
|
|
42961
|
+
*/
|
|
42962
|
+
public completeOrder(businessId: string, orderId: string, completeOrderDto: CompleteOrderDto, options?: AxiosRequestConfig) {
|
|
42963
|
+
return OrderCompletionApiFp(this.configuration).completeOrder(businessId, orderId, completeOrderDto, options).then((request) => request(this.axios, this.basePath));
|
|
42964
|
+
}
|
|
42965
|
+
}
|
|
42966
|
+
|
|
42967
|
+
|
|
42724
42968
|
/**
|
|
42725
42969
|
* OrderInternalApi - axios parameter creator
|
|
42726
42970
|
* @export
|
|
@@ -50530,6 +50774,246 @@ export class ProviderApi extends BaseAPI implements ProviderApiInterface {
|
|
|
50530
50774
|
}
|
|
50531
50775
|
|
|
50532
50776
|
|
|
50777
|
+
/**
|
|
50778
|
+
* ReceiptFooterApi - axios parameter creator
|
|
50779
|
+
* @export
|
|
50780
|
+
*/
|
|
50781
|
+
export const ReceiptFooterApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
50782
|
+
return {
|
|
50783
|
+
/**
|
|
50784
|
+
*
|
|
50785
|
+
* @summary Get the receipt footer config for a business + channel
|
|
50786
|
+
* @param {number} businessId
|
|
50787
|
+
* @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront' | 'MunchiPay'} xAppX
|
|
50788
|
+
* @param {*} [options] Override http request option.
|
|
50789
|
+
* @throws {RequiredError}
|
|
50790
|
+
*/
|
|
50791
|
+
receiptFooterGetConfig: async (businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront' | 'MunchiPay', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
50792
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
50793
|
+
assertParamExists('receiptFooterGetConfig', 'businessId', businessId)
|
|
50794
|
+
// verify required parameter 'xAppX' is not null or undefined
|
|
50795
|
+
assertParamExists('receiptFooterGetConfig', 'xAppX', xAppX)
|
|
50796
|
+
const localVarPath = `/api/v1/receipt-footer/business/{businessId}`
|
|
50797
|
+
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
|
|
50798
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
50799
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
50800
|
+
let baseOptions;
|
|
50801
|
+
if (configuration) {
|
|
50802
|
+
baseOptions = configuration.baseOptions;
|
|
50803
|
+
}
|
|
50804
|
+
|
|
50805
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
50806
|
+
const localVarHeaderParameter = {} as any;
|
|
50807
|
+
const localVarQueryParameter = {} as any;
|
|
50808
|
+
|
|
50809
|
+
// authentication JWT-auth required
|
|
50810
|
+
// http bearer authentication required
|
|
50811
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
50812
|
+
|
|
50813
|
+
if (xAppX != null) {
|
|
50814
|
+
localVarHeaderParameter['x-app-x'] = String(xAppX);
|
|
50815
|
+
}
|
|
50816
|
+
|
|
50817
|
+
|
|
50818
|
+
|
|
50819
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
50820
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
50821
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
50822
|
+
|
|
50823
|
+
return {
|
|
50824
|
+
url: toPathString(localVarUrlObj),
|
|
50825
|
+
options: localVarRequestOptions,
|
|
50826
|
+
};
|
|
50827
|
+
},
|
|
50828
|
+
/**
|
|
50829
|
+
*
|
|
50830
|
+
* @summary Create or update the receipt footer config for a business + channel
|
|
50831
|
+
* @param {number} businessId
|
|
50832
|
+
* @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront' | 'MunchiPay'} xAppX
|
|
50833
|
+
* @param {UpsertReceiptFooterDto} upsertReceiptFooterDto
|
|
50834
|
+
* @param {*} [options] Override http request option.
|
|
50835
|
+
* @throws {RequiredError}
|
|
50836
|
+
*/
|
|
50837
|
+
receiptFooterUpsertConfig: async (businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront' | 'MunchiPay', upsertReceiptFooterDto: UpsertReceiptFooterDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
50838
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
50839
|
+
assertParamExists('receiptFooterUpsertConfig', 'businessId', businessId)
|
|
50840
|
+
// verify required parameter 'xAppX' is not null or undefined
|
|
50841
|
+
assertParamExists('receiptFooterUpsertConfig', 'xAppX', xAppX)
|
|
50842
|
+
// verify required parameter 'upsertReceiptFooterDto' is not null or undefined
|
|
50843
|
+
assertParamExists('receiptFooterUpsertConfig', 'upsertReceiptFooterDto', upsertReceiptFooterDto)
|
|
50844
|
+
const localVarPath = `/api/v1/receipt-footer/business/{businessId}`
|
|
50845
|
+
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
|
|
50846
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
50847
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
50848
|
+
let baseOptions;
|
|
50849
|
+
if (configuration) {
|
|
50850
|
+
baseOptions = configuration.baseOptions;
|
|
50851
|
+
}
|
|
50852
|
+
|
|
50853
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
50854
|
+
const localVarHeaderParameter = {} as any;
|
|
50855
|
+
const localVarQueryParameter = {} as any;
|
|
50856
|
+
|
|
50857
|
+
// authentication JWT-auth required
|
|
50858
|
+
// http bearer authentication required
|
|
50859
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
50860
|
+
|
|
50861
|
+
if (xAppX != null) {
|
|
50862
|
+
localVarHeaderParameter['x-app-x'] = String(xAppX);
|
|
50863
|
+
}
|
|
50864
|
+
|
|
50865
|
+
|
|
50866
|
+
|
|
50867
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
50868
|
+
|
|
50869
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
50870
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
50871
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
50872
|
+
localVarRequestOptions.data = serializeDataIfNeeded(upsertReceiptFooterDto, localVarRequestOptions, configuration)
|
|
50873
|
+
|
|
50874
|
+
return {
|
|
50875
|
+
url: toPathString(localVarUrlObj),
|
|
50876
|
+
options: localVarRequestOptions,
|
|
50877
|
+
};
|
|
50878
|
+
},
|
|
50879
|
+
}
|
|
50880
|
+
};
|
|
50881
|
+
|
|
50882
|
+
/**
|
|
50883
|
+
* ReceiptFooterApi - functional programming interface
|
|
50884
|
+
* @export
|
|
50885
|
+
*/
|
|
50886
|
+
export const ReceiptFooterApiFp = function(configuration?: Configuration) {
|
|
50887
|
+
const localVarAxiosParamCreator = ReceiptFooterApiAxiosParamCreator(configuration)
|
|
50888
|
+
return {
|
|
50889
|
+
/**
|
|
50890
|
+
*
|
|
50891
|
+
* @summary Get the receipt footer config for a business + channel
|
|
50892
|
+
* @param {number} businessId
|
|
50893
|
+
* @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront' | 'MunchiPay'} xAppX
|
|
50894
|
+
* @param {*} [options] Override http request option.
|
|
50895
|
+
* @throws {RequiredError}
|
|
50896
|
+
*/
|
|
50897
|
+
async receiptFooterGetConfig(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront' | 'MunchiPay', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReceiptFooterConfigDto>> {
|
|
50898
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.receiptFooterGetConfig(businessId, xAppX, options);
|
|
50899
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
50900
|
+
},
|
|
50901
|
+
/**
|
|
50902
|
+
*
|
|
50903
|
+
* @summary Create or update the receipt footer config for a business + channel
|
|
50904
|
+
* @param {number} businessId
|
|
50905
|
+
* @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront' | 'MunchiPay'} xAppX
|
|
50906
|
+
* @param {UpsertReceiptFooterDto} upsertReceiptFooterDto
|
|
50907
|
+
* @param {*} [options] Override http request option.
|
|
50908
|
+
* @throws {RequiredError}
|
|
50909
|
+
*/
|
|
50910
|
+
async receiptFooterUpsertConfig(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront' | 'MunchiPay', upsertReceiptFooterDto: UpsertReceiptFooterDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReceiptFooterConfigDto>> {
|
|
50911
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.receiptFooterUpsertConfig(businessId, xAppX, upsertReceiptFooterDto, options);
|
|
50912
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
50913
|
+
},
|
|
50914
|
+
}
|
|
50915
|
+
};
|
|
50916
|
+
|
|
50917
|
+
/**
|
|
50918
|
+
* ReceiptFooterApi - factory interface
|
|
50919
|
+
* @export
|
|
50920
|
+
*/
|
|
50921
|
+
export const ReceiptFooterApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
50922
|
+
const localVarFp = ReceiptFooterApiFp(configuration)
|
|
50923
|
+
return {
|
|
50924
|
+
/**
|
|
50925
|
+
*
|
|
50926
|
+
* @summary Get the receipt footer config for a business + channel
|
|
50927
|
+
* @param {number} businessId
|
|
50928
|
+
* @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront' | 'MunchiPay'} xAppX
|
|
50929
|
+
* @param {*} [options] Override http request option.
|
|
50930
|
+
* @throws {RequiredError}
|
|
50931
|
+
*/
|
|
50932
|
+
receiptFooterGetConfig(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront' | 'MunchiPay', options?: any): AxiosPromise<ReceiptFooterConfigDto> {
|
|
50933
|
+
return localVarFp.receiptFooterGetConfig(businessId, xAppX, options).then((request) => request(axios, basePath));
|
|
50934
|
+
},
|
|
50935
|
+
/**
|
|
50936
|
+
*
|
|
50937
|
+
* @summary Create or update the receipt footer config for a business + channel
|
|
50938
|
+
* @param {number} businessId
|
|
50939
|
+
* @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront' | 'MunchiPay'} xAppX
|
|
50940
|
+
* @param {UpsertReceiptFooterDto} upsertReceiptFooterDto
|
|
50941
|
+
* @param {*} [options] Override http request option.
|
|
50942
|
+
* @throws {RequiredError}
|
|
50943
|
+
*/
|
|
50944
|
+
receiptFooterUpsertConfig(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront' | 'MunchiPay', upsertReceiptFooterDto: UpsertReceiptFooterDto, options?: any): AxiosPromise<ReceiptFooterConfigDto> {
|
|
50945
|
+
return localVarFp.receiptFooterUpsertConfig(businessId, xAppX, upsertReceiptFooterDto, options).then((request) => request(axios, basePath));
|
|
50946
|
+
},
|
|
50947
|
+
};
|
|
50948
|
+
};
|
|
50949
|
+
|
|
50950
|
+
/**
|
|
50951
|
+
* ReceiptFooterApi - interface
|
|
50952
|
+
* @export
|
|
50953
|
+
* @interface ReceiptFooterApi
|
|
50954
|
+
*/
|
|
50955
|
+
export interface ReceiptFooterApiInterface {
|
|
50956
|
+
/**
|
|
50957
|
+
*
|
|
50958
|
+
* @summary Get the receipt footer config for a business + channel
|
|
50959
|
+
* @param {number} businessId
|
|
50960
|
+
* @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront' | 'MunchiPay'} xAppX
|
|
50961
|
+
* @param {*} [options] Override http request option.
|
|
50962
|
+
* @throws {RequiredError}
|
|
50963
|
+
* @memberof ReceiptFooterApiInterface
|
|
50964
|
+
*/
|
|
50965
|
+
receiptFooterGetConfig(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront' | 'MunchiPay', options?: AxiosRequestConfig): AxiosPromise<ReceiptFooterConfigDto>;
|
|
50966
|
+
|
|
50967
|
+
/**
|
|
50968
|
+
*
|
|
50969
|
+
* @summary Create or update the receipt footer config for a business + channel
|
|
50970
|
+
* @param {number} businessId
|
|
50971
|
+
* @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront' | 'MunchiPay'} xAppX
|
|
50972
|
+
* @param {UpsertReceiptFooterDto} upsertReceiptFooterDto
|
|
50973
|
+
* @param {*} [options] Override http request option.
|
|
50974
|
+
* @throws {RequiredError}
|
|
50975
|
+
* @memberof ReceiptFooterApiInterface
|
|
50976
|
+
*/
|
|
50977
|
+
receiptFooterUpsertConfig(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront' | 'MunchiPay', upsertReceiptFooterDto: UpsertReceiptFooterDto, options?: AxiosRequestConfig): AxiosPromise<ReceiptFooterConfigDto>;
|
|
50978
|
+
|
|
50979
|
+
}
|
|
50980
|
+
|
|
50981
|
+
/**
|
|
50982
|
+
* ReceiptFooterApi - object-oriented interface
|
|
50983
|
+
* @export
|
|
50984
|
+
* @class ReceiptFooterApi
|
|
50985
|
+
* @extends {BaseAPI}
|
|
50986
|
+
*/
|
|
50987
|
+
export class ReceiptFooterApi extends BaseAPI implements ReceiptFooterApiInterface {
|
|
50988
|
+
/**
|
|
50989
|
+
*
|
|
50990
|
+
* @summary Get the receipt footer config for a business + channel
|
|
50991
|
+
* @param {number} businessId
|
|
50992
|
+
* @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront' | 'MunchiPay'} xAppX
|
|
50993
|
+
* @param {*} [options] Override http request option.
|
|
50994
|
+
* @throws {RequiredError}
|
|
50995
|
+
* @memberof ReceiptFooterApi
|
|
50996
|
+
*/
|
|
50997
|
+
public receiptFooterGetConfig(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront' | 'MunchiPay', options?: AxiosRequestConfig) {
|
|
50998
|
+
return ReceiptFooterApiFp(this.configuration).receiptFooterGetConfig(businessId, xAppX, options).then((request) => request(this.axios, this.basePath));
|
|
50999
|
+
}
|
|
51000
|
+
|
|
51001
|
+
/**
|
|
51002
|
+
*
|
|
51003
|
+
* @summary Create or update the receipt footer config for a business + channel
|
|
51004
|
+
* @param {number} businessId
|
|
51005
|
+
* @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront' | 'MunchiPay'} xAppX
|
|
51006
|
+
* @param {UpsertReceiptFooterDto} upsertReceiptFooterDto
|
|
51007
|
+
* @param {*} [options] Override http request option.
|
|
51008
|
+
* @throws {RequiredError}
|
|
51009
|
+
* @memberof ReceiptFooterApi
|
|
51010
|
+
*/
|
|
51011
|
+
public receiptFooterUpsertConfig(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront' | 'MunchiPay', upsertReceiptFooterDto: UpsertReceiptFooterDto, options?: AxiosRequestConfig) {
|
|
51012
|
+
return ReceiptFooterApiFp(this.configuration).receiptFooterUpsertConfig(businessId, xAppX, upsertReceiptFooterDto, options).then((request) => request(this.axios, this.basePath));
|
|
51013
|
+
}
|
|
51014
|
+
}
|
|
51015
|
+
|
|
51016
|
+
|
|
50533
51017
|
/**
|
|
50534
51018
|
* RefundsApi - axios parameter creator
|
|
50535
51019
|
* @export
|