@compassdigital/sdk.typescript 4.607.0 → 4.609.0
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/lib/index.d.ts +18 -9
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +19 -10
- package/lib/index.js.map +1 -1
- package/lib/interface/consumer.d.ts +128 -95
- package/lib/interface/consumer.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +4 -4
- package/lib/interface/menu.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +48 -24
- package/src/interface/consumer.ts +192 -142
- package/src/interface/discount.ts +2 -2
- package/src/interface/menu.ts +4 -4
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1237,6 +1237,8 @@ import {
|
|
|
1237
1237
|
DeleteConsumerShoppingcartResponse,
|
|
1238
1238
|
PatchConsumerShoppingcartBody,
|
|
1239
1239
|
PatchConsumerShoppingcartResponse,
|
|
1240
|
+
PutConsumerShoppingcartPaymentBody,
|
|
1241
|
+
PutConsumerShoppingcartPaymentResponse,
|
|
1240
1242
|
PostConsumerShoppingcartRecommendedItemsBody,
|
|
1241
1243
|
PostConsumerShoppingcartRecommendedItemsResponse,
|
|
1242
1244
|
PostConsumerShoppingcartBody,
|
|
@@ -1264,8 +1266,6 @@ import {
|
|
|
1264
1266
|
GetConsumerBrandMenuDeliveryTimeslotsQuery,
|
|
1265
1267
|
GetConsumerBrandMenuDeliveryTimeslotsResponse,
|
|
1266
1268
|
GetConsumerConfigPublicResponse$0,
|
|
1267
|
-
PutConsumerShoppingcartPaymentBody,
|
|
1268
|
-
PutConsumerShoppingcartPaymentResponse,
|
|
1269
1269
|
PutConsumerShoppingcartPromoBody,
|
|
1270
1270
|
PutConsumerShoppingcartPromoResponse,
|
|
1271
1271
|
DeleteConsumerShoppingcartPromoResponse,
|
|
@@ -1297,6 +1297,8 @@ import {
|
|
|
1297
1297
|
ConsumerPostExternalExchangeLoginCodeBody,
|
|
1298
1298
|
ConsumerPostExternalExchangeLoginCodeResponse,
|
|
1299
1299
|
GetConsumerUserMealplanBarcodeResponse,
|
|
1300
|
+
GetConsumerLocationQuery,
|
|
1301
|
+
GetConsumerLocationResponse$0,
|
|
1300
1302
|
} from './interface/consumer';
|
|
1301
1303
|
|
|
1302
1304
|
import {
|
|
@@ -14227,6 +14229,28 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
14227
14229
|
);
|
|
14228
14230
|
}
|
|
14229
14231
|
|
|
14232
|
+
/**
|
|
14233
|
+
* PUT /consumer/shoppingcart/{id}/paymentmethod - Update a shopping cart by ID
|
|
14234
|
+
*
|
|
14235
|
+
* @param id - Shopping Cart ID as Encaded CDL ID; TODO: mark parameter as required in swagger
|
|
14236
|
+
* @param body - Put Shopping Cart Payment Request Body
|
|
14237
|
+
* @param options - additional request options
|
|
14238
|
+
*/
|
|
14239
|
+
put_consumer_shoppingcart_payment(
|
|
14240
|
+
id: string,
|
|
14241
|
+
body: PutConsumerShoppingcartPaymentBody,
|
|
14242
|
+
options?: RequestOptions,
|
|
14243
|
+
): ResponsePromise<PutConsumerShoppingcartPaymentResponse> {
|
|
14244
|
+
return this.request(
|
|
14245
|
+
'consumer',
|
|
14246
|
+
'/consumer/shoppingcart/{id}/paymentmethod',
|
|
14247
|
+
'PUT',
|
|
14248
|
+
`/consumer/shoppingcart/${id}/paymentmethod`,
|
|
14249
|
+
body,
|
|
14250
|
+
options,
|
|
14251
|
+
);
|
|
14252
|
+
}
|
|
14253
|
+
|
|
14230
14254
|
/**
|
|
14231
14255
|
* POST /consumer/shoppingcart/{id}/recommended - Get recommended items for a station or marketplace cart
|
|
14232
14256
|
*
|
|
@@ -14587,28 +14611,6 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
14587
14611
|
);
|
|
14588
14612
|
}
|
|
14589
14613
|
|
|
14590
|
-
/**
|
|
14591
|
-
* PUT /consumer/shoppingcart/{id}/paymentmethod - Update a shopping cart by ID
|
|
14592
|
-
*
|
|
14593
|
-
* @param id - Shopping Cart ID as Encaded CDL ID; TODO: mark parameter as required in swagger
|
|
14594
|
-
* @param body - Put Shopping Cart Payment Request Body
|
|
14595
|
-
* @param options - additional request options
|
|
14596
|
-
*/
|
|
14597
|
-
put_consumer_shoppingcart_payment(
|
|
14598
|
-
id: string,
|
|
14599
|
-
body: PutConsumerShoppingcartPaymentBody,
|
|
14600
|
-
options?: RequestOptions,
|
|
14601
|
-
): ResponsePromise<PutConsumerShoppingcartPaymentResponse> {
|
|
14602
|
-
return this.request(
|
|
14603
|
-
'consumer',
|
|
14604
|
-
'/consumer/shoppingcart/{id}/paymentmethod',
|
|
14605
|
-
'PUT',
|
|
14606
|
-
`/consumer/shoppingcart/${id}/paymentmethod`,
|
|
14607
|
-
body,
|
|
14608
|
-
options,
|
|
14609
|
-
);
|
|
14610
|
-
}
|
|
14611
|
-
|
|
14612
14614
|
/**
|
|
14613
14615
|
* PUT /consumer/shoppingcart/{id}/promo - Add a promo code to a shopping cart
|
|
14614
14616
|
*
|
|
@@ -14965,6 +14967,28 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
14965
14967
|
);
|
|
14966
14968
|
}
|
|
14967
14969
|
|
|
14970
|
+
/**
|
|
14971
|
+
* GET /consumer/location/{id} - Get location
|
|
14972
|
+
*
|
|
14973
|
+
* @param id - Location ID as Encoded CDL ID; TODO: mark parameter as required in swagger
|
|
14974
|
+
* @param options - additional request options
|
|
14975
|
+
*/
|
|
14976
|
+
get_consumer_location(
|
|
14977
|
+
id: string,
|
|
14978
|
+
options?: {
|
|
14979
|
+
query?: GetConsumerLocationQuery;
|
|
14980
|
+
} & RequestOptions,
|
|
14981
|
+
): ResponsePromise<GetConsumerLocationResponse$0> {
|
|
14982
|
+
return this.request(
|
|
14983
|
+
'consumer',
|
|
14984
|
+
'/consumer/location/{id}',
|
|
14985
|
+
'GET',
|
|
14986
|
+
`/consumer/location/${id}`,
|
|
14987
|
+
null,
|
|
14988
|
+
options,
|
|
14989
|
+
);
|
|
14990
|
+
}
|
|
14991
|
+
|
|
14968
14992
|
/**
|
|
14969
14993
|
* POST /ai/language/generate - Generate text from a given prompt
|
|
14970
14994
|
*
|
|
@@ -2484,67 +2484,86 @@ export interface GetConsumerShoppingCartResponse {
|
|
|
2484
2484
|
incentives?: ConsumerIncentives;
|
|
2485
2485
|
}
|
|
2486
2486
|
|
|
2487
|
-
export interface
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2487
|
+
export interface ConsumerMealplan {
|
|
2488
|
+
// The meal plan ID
|
|
2489
|
+
id?: string;
|
|
2490
|
+
// The meal plan tender
|
|
2491
|
+
tender?: string;
|
|
2492
|
+
// The meal plan total
|
|
2493
|
+
total?: number;
|
|
2494
|
+
// The meal plan type
|
|
2495
|
+
type?: string;
|
|
2496
2496
|
}
|
|
2497
2497
|
|
|
2498
|
-
export interface
|
|
2499
|
-
|
|
2498
|
+
export interface ConsumerCreditCard {
|
|
2499
|
+
// The credit card type
|
|
2500
|
+
card_type?: string;
|
|
2501
|
+
// The last 4 digits of the card number
|
|
2502
|
+
last4?: string;
|
|
2503
|
+
// The credit card total
|
|
2504
|
+
total?: number;
|
|
2505
|
+
// The credit card type
|
|
2506
|
+
type?: string;
|
|
2500
2507
|
}
|
|
2501
2508
|
|
|
2502
|
-
export interface
|
|
2503
|
-
|
|
2509
|
+
export interface ConsumerDigitalWalletPay {
|
|
2510
|
+
// The digital wallet type
|
|
2511
|
+
wallet_type?: string;
|
|
2512
|
+
// The digital wallet total
|
|
2513
|
+
total: number;
|
|
2514
|
+
// The digital wallet type
|
|
2515
|
+
type: string;
|
|
2504
2516
|
}
|
|
2505
2517
|
|
|
2506
|
-
export interface
|
|
2518
|
+
export interface ConsumerMealSwipes {
|
|
2519
|
+
// The meal swipes ID
|
|
2507
2520
|
id?: string;
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2521
|
+
// The meal swipes tender
|
|
2522
|
+
tender?: string;
|
|
2523
|
+
// The meal swipes tender type
|
|
2524
|
+
tender_type?: string;
|
|
2525
|
+
// The meal swipes tender name
|
|
2526
|
+
tender_name?: string;
|
|
2527
|
+
// The meal swipes swipes
|
|
2528
|
+
swipes?: number;
|
|
2529
|
+
// The meal swipes rate
|
|
2530
|
+
rate?: number;
|
|
2531
|
+
// The meal swipes total
|
|
2532
|
+
total?: number;
|
|
2533
|
+
// The meal swipes type
|
|
2534
|
+
type?: string;
|
|
2516
2535
|
}
|
|
2517
2536
|
|
|
2518
|
-
export interface
|
|
2519
|
-
|
|
2537
|
+
export interface ConsumerMealExchange {
|
|
2538
|
+
// The meal exchange ID
|
|
2520
2539
|
id?: string;
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
brand?: string;
|
|
2526
|
-
brand_label?: ConsumerLabel;
|
|
2527
|
-
menu?: string;
|
|
2528
|
-
barcodes?: string[];
|
|
2529
|
-
plu?: string;
|
|
2530
|
-
}
|
|
2531
|
-
|
|
2532
|
-
export interface ConsumerItemRequest {
|
|
2533
|
-
id: string;
|
|
2534
|
-
quantity: number;
|
|
2535
|
-
quantity_by_weight?: {
|
|
2536
|
-
unit?: string;
|
|
2537
|
-
value?: number;
|
|
2538
|
-
};
|
|
2539
|
-
options?: ConsumerModifierGroupRequest[];
|
|
2540
|
-
_index?: string;
|
|
2541
|
-
special_instructions?: string;
|
|
2542
|
-
meta?: ConsumerItemRequestMeta;
|
|
2543
|
-
amount_off_exclusions?: Record<string, any>[];
|
|
2540
|
+
// The meal exchange tender
|
|
2541
|
+
tender?: string;
|
|
2542
|
+
// The meal exchange type
|
|
2543
|
+
type?: string;
|
|
2544
2544
|
}
|
|
2545
2545
|
|
|
2546
|
-
export interface
|
|
2547
|
-
|
|
2546
|
+
export interface PutConsumerShoppingCartPaymentRequestDto {
|
|
2547
|
+
// The email to apply to the shopping cart
|
|
2548
|
+
email?: string;
|
|
2549
|
+
// The meal plan to apply to the shopping cart
|
|
2550
|
+
mealplan?: ConsumerMealplan;
|
|
2551
|
+
// The credit card to apply to the shopping cart
|
|
2552
|
+
credit_card?: ConsumerCreditCard;
|
|
2553
|
+
// The digital wallet pay to apply to the shopping cart
|
|
2554
|
+
digital_wallet_pay?: ConsumerDigitalWalletPay;
|
|
2555
|
+
// The meal swipes to apply to the shopping cart
|
|
2556
|
+
meal_swipes?: ConsumerMealSwipes;
|
|
2557
|
+
// The meal exchange to apply to the shopping cart
|
|
2558
|
+
meal_exchange?: ConsumerMealExchange;
|
|
2559
|
+
// The badge pay to apply to the shopping cart
|
|
2560
|
+
badge_pay?: ConsumerCashlessTender;
|
|
2561
|
+
// The stipend to apply to the shopping cart
|
|
2562
|
+
voucher?: ConsumerCashlessTender;
|
|
2563
|
+
// The coupon voucher to apply to the shopping cart
|
|
2564
|
+
coupon_voucher?: ConsumerCashlessTender;
|
|
2565
|
+
// The stipend to apply to the shopping cart
|
|
2566
|
+
stipend?: ConsumerCashlessTender;
|
|
2548
2567
|
}
|
|
2549
2568
|
|
|
2550
2569
|
export interface PutConsumerShoppingCartResponse {
|
|
@@ -2601,6 +2620,69 @@ export interface PutConsumerShoppingCartResponse {
|
|
|
2601
2620
|
incentives?: ConsumerIncentives;
|
|
2602
2621
|
}
|
|
2603
2622
|
|
|
2623
|
+
export interface ConsumerLabel {
|
|
2624
|
+
en?: string;
|
|
2625
|
+
fr?: string;
|
|
2626
|
+
}
|
|
2627
|
+
|
|
2628
|
+
export interface ConsumerModifierSizingInner {
|
|
2629
|
+
name?: string;
|
|
2630
|
+
price?: number;
|
|
2631
|
+
posid?: string;
|
|
2632
|
+
}
|
|
2633
|
+
|
|
2634
|
+
export interface ConsumerModifierRequestMeta {
|
|
2635
|
+
sizing?: ConsumerModifierSizingInner[];
|
|
2636
|
+
}
|
|
2637
|
+
|
|
2638
|
+
export interface ConsumerPrice {
|
|
2639
|
+
amount?: number;
|
|
2640
|
+
}
|
|
2641
|
+
|
|
2642
|
+
export interface ConsumerModifierRequest {
|
|
2643
|
+
id?: string;
|
|
2644
|
+
label?: ConsumerLabel;
|
|
2645
|
+
_index?: string;
|
|
2646
|
+
quantity?: number;
|
|
2647
|
+
amount_off_exclusions?: Record<string, any>[];
|
|
2648
|
+
meta?: ConsumerModifierRequestMeta;
|
|
2649
|
+
is_selected?: boolean;
|
|
2650
|
+
parent_label?: ConsumerLabel;
|
|
2651
|
+
price?: ConsumerPrice;
|
|
2652
|
+
}
|
|
2653
|
+
|
|
2654
|
+
export interface ConsumerModifierGroupRequest {
|
|
2655
|
+
label?: ConsumerLabel;
|
|
2656
|
+
id?: string;
|
|
2657
|
+
items?: ConsumerModifierRequest[];
|
|
2658
|
+
}
|
|
2659
|
+
|
|
2660
|
+
export interface ConsumerItemRequestMeta {
|
|
2661
|
+
brand?: string;
|
|
2662
|
+
brand_label?: ConsumerLabel;
|
|
2663
|
+
menu?: string;
|
|
2664
|
+
barcodes?: string[];
|
|
2665
|
+
plu?: string;
|
|
2666
|
+
}
|
|
2667
|
+
|
|
2668
|
+
export interface ConsumerItemRequest {
|
|
2669
|
+
id: string;
|
|
2670
|
+
quantity: number;
|
|
2671
|
+
quantity_by_weight?: {
|
|
2672
|
+
unit?: string;
|
|
2673
|
+
value?: number;
|
|
2674
|
+
};
|
|
2675
|
+
options?: ConsumerModifierGroupRequest[];
|
|
2676
|
+
_index?: string;
|
|
2677
|
+
special_instructions?: string;
|
|
2678
|
+
meta?: ConsumerItemRequestMeta;
|
|
2679
|
+
amount_off_exclusions?: Record<string, any>[];
|
|
2680
|
+
}
|
|
2681
|
+
|
|
2682
|
+
export interface PutConsumerShoppingCartItemsRequest {
|
|
2683
|
+
items?: ConsumerItemRequest[];
|
|
2684
|
+
}
|
|
2685
|
+
|
|
2604
2686
|
export interface PostConsumerRecommendedRequest {
|
|
2605
2687
|
// excluded items
|
|
2606
2688
|
excludedItems: string[];
|
|
@@ -3024,88 +3106,6 @@ export interface ConsumerPutMealplanResponse {
|
|
|
3024
3106
|
tenders?: ConsumerTender[];
|
|
3025
3107
|
}
|
|
3026
3108
|
|
|
3027
|
-
export interface ConsumerMealplan {
|
|
3028
|
-
// The meal plan ID
|
|
3029
|
-
id?: string;
|
|
3030
|
-
// The meal plan tender
|
|
3031
|
-
tender?: string;
|
|
3032
|
-
// The meal plan total
|
|
3033
|
-
total?: number;
|
|
3034
|
-
// The meal plan type
|
|
3035
|
-
type?: string;
|
|
3036
|
-
}
|
|
3037
|
-
|
|
3038
|
-
export interface ConsumerCreditCard {
|
|
3039
|
-
// The credit card type
|
|
3040
|
-
card_type?: string;
|
|
3041
|
-
// The last 4 digits of the card number
|
|
3042
|
-
last4?: string;
|
|
3043
|
-
// The credit card total
|
|
3044
|
-
total?: number;
|
|
3045
|
-
// The credit card type
|
|
3046
|
-
type?: string;
|
|
3047
|
-
}
|
|
3048
|
-
|
|
3049
|
-
export interface ConsumerDigitalWalletPay {
|
|
3050
|
-
// The digital wallet type
|
|
3051
|
-
wallet_type?: string;
|
|
3052
|
-
// The digital wallet total
|
|
3053
|
-
total: number;
|
|
3054
|
-
// The digital wallet type
|
|
3055
|
-
type: string;
|
|
3056
|
-
}
|
|
3057
|
-
|
|
3058
|
-
export interface ConsumerMealSwipes {
|
|
3059
|
-
// The meal swipes ID
|
|
3060
|
-
id?: string;
|
|
3061
|
-
// The meal swipes tender
|
|
3062
|
-
tender?: string;
|
|
3063
|
-
// The meal swipes tender type
|
|
3064
|
-
tender_type?: string;
|
|
3065
|
-
// The meal swipes tender name
|
|
3066
|
-
tender_name?: string;
|
|
3067
|
-
// The meal swipes swipes
|
|
3068
|
-
swipes?: number;
|
|
3069
|
-
// The meal swipes rate
|
|
3070
|
-
rate?: number;
|
|
3071
|
-
// The meal swipes total
|
|
3072
|
-
total?: number;
|
|
3073
|
-
// The meal swipes type
|
|
3074
|
-
type?: string;
|
|
3075
|
-
}
|
|
3076
|
-
|
|
3077
|
-
export interface ConsumerMealExchange {
|
|
3078
|
-
// The meal exchange ID
|
|
3079
|
-
id?: string;
|
|
3080
|
-
// The meal exchange tender
|
|
3081
|
-
tender?: string;
|
|
3082
|
-
// The meal exchange type
|
|
3083
|
-
type?: string;
|
|
3084
|
-
}
|
|
3085
|
-
|
|
3086
|
-
export interface PutConsumerShoppingCartPaymentRequestDto {
|
|
3087
|
-
// The email to apply to the shopping cart
|
|
3088
|
-
email?: string;
|
|
3089
|
-
// The meal plan to apply to the shopping cart
|
|
3090
|
-
mealplan?: ConsumerMealplan;
|
|
3091
|
-
// The credit card to apply to the shopping cart
|
|
3092
|
-
credit_card?: ConsumerCreditCard;
|
|
3093
|
-
// The digital wallet pay to apply to the shopping cart
|
|
3094
|
-
digital_wallet_pay?: ConsumerDigitalWalletPay;
|
|
3095
|
-
// The meal swipes to apply to the shopping cart
|
|
3096
|
-
meal_swipes?: ConsumerMealSwipes;
|
|
3097
|
-
// The meal exchange to apply to the shopping cart
|
|
3098
|
-
meal_exchange?: ConsumerMealExchange;
|
|
3099
|
-
// The badge pay to apply to the shopping cart
|
|
3100
|
-
badge_pay?: ConsumerCashlessTender;
|
|
3101
|
-
// The stipend to apply to the shopping cart
|
|
3102
|
-
voucher?: ConsumerCashlessTender;
|
|
3103
|
-
// The coupon voucher to apply to the shopping cart
|
|
3104
|
-
coupon_voucher?: ConsumerCashlessTender;
|
|
3105
|
-
// The stipend to apply to the shopping cart
|
|
3106
|
-
stipend?: ConsumerCashlessTender;
|
|
3107
|
-
}
|
|
3108
|
-
|
|
3109
3109
|
export interface PutConsumerShoppingCartPromoRequestDto {
|
|
3110
3110
|
// The promo code to apply to the shopping cart
|
|
3111
3111
|
code?: string;
|
|
@@ -3635,6 +3635,36 @@ export interface PostExternalExchangeLoginCodeResponseDTO {
|
|
|
3635
3635
|
profile: ExchangeProfileDTO;
|
|
3636
3636
|
}
|
|
3637
3637
|
|
|
3638
|
+
export interface GetConsumerLocationResponse {
|
|
3639
|
+
// id
|
|
3640
|
+
id: string;
|
|
3641
|
+
date?: {
|
|
3642
|
+
created?: string;
|
|
3643
|
+
modified?: string;
|
|
3644
|
+
};
|
|
3645
|
+
// name
|
|
3646
|
+
name: string;
|
|
3647
|
+
label?: {
|
|
3648
|
+
en?: string;
|
|
3649
|
+
fr?: string;
|
|
3650
|
+
};
|
|
3651
|
+
// distance in meters from the group
|
|
3652
|
+
distance?: number;
|
|
3653
|
+
// meta data
|
|
3654
|
+
meta?: Record<string, any>;
|
|
3655
|
+
style?: {
|
|
3656
|
+
logo?: string | null;
|
|
3657
|
+
main_logo?: string | null;
|
|
3658
|
+
alt_logo?: string | null;
|
|
3659
|
+
};
|
|
3660
|
+
// timezone
|
|
3661
|
+
timezone?: string;
|
|
3662
|
+
// site operational status
|
|
3663
|
+
status?: Record<string, any>;
|
|
3664
|
+
locations?: ConsumerLocation[];
|
|
3665
|
+
address?: ConsumerAddress;
|
|
3666
|
+
}
|
|
3667
|
+
|
|
3638
3668
|
// GET /consumer/v1/health-check
|
|
3639
3669
|
|
|
3640
3670
|
export type HealthCheckControllerExecuteResponse = {};
|
|
@@ -4069,6 +4099,17 @@ export type PatchConsumerShoppingcartBody = PatchConsumerShoppingCartRequest;
|
|
|
4069
4099
|
|
|
4070
4100
|
export type PatchConsumerShoppingcartResponse = PatchConsumerShoppingCartResponse;
|
|
4071
4101
|
|
|
4102
|
+
// PUT /consumer/shoppingcart/{id}/paymentmethod - Update a shopping cart by ID
|
|
4103
|
+
|
|
4104
|
+
export interface PutConsumerShoppingcartPaymentPath {
|
|
4105
|
+
// Shopping Cart ID as Encaded CDL ID; TODO: mark parameter as required in swagger
|
|
4106
|
+
id: string;
|
|
4107
|
+
}
|
|
4108
|
+
|
|
4109
|
+
export type PutConsumerShoppingcartPaymentBody = PutConsumerShoppingCartPaymentRequestDto;
|
|
4110
|
+
|
|
4111
|
+
export type PutConsumerShoppingcartPaymentResponse = PutConsumerShoppingCartResponse;
|
|
4112
|
+
|
|
4072
4113
|
// POST /consumer/shoppingcart/{id}/recommended - Get recommended items for a station or marketplace cart
|
|
4073
4114
|
|
|
4074
4115
|
export interface PostConsumerShoppingcartRecommendedItemsPath {
|
|
@@ -4236,17 +4277,6 @@ export interface GetConsumerConfigPublicPath {
|
|
|
4236
4277
|
|
|
4237
4278
|
export type GetConsumerConfigPublicResponse$0 = GetConsumerConfigPublicResponse;
|
|
4238
4279
|
|
|
4239
|
-
// PUT /consumer/shoppingcart/{id}/paymentmethod - Update a shopping cart by ID
|
|
4240
|
-
|
|
4241
|
-
export interface PutConsumerShoppingcartPaymentPath {
|
|
4242
|
-
// Shopping Cart ID as Encaded CDL ID; TODO: mark parameter as required in swagger
|
|
4243
|
-
id: string;
|
|
4244
|
-
}
|
|
4245
|
-
|
|
4246
|
-
export type PutConsumerShoppingcartPaymentBody = PutConsumerShoppingCartPaymentRequestDto;
|
|
4247
|
-
|
|
4248
|
-
export type PutConsumerShoppingcartPaymentResponse = PutConsumerShoppingCartResponse;
|
|
4249
|
-
|
|
4250
4280
|
// PUT /consumer/shoppingcart/{id}/promo - Add a promo code to a shopping cart
|
|
4251
4281
|
|
|
4252
4282
|
export interface PutConsumerShoppingcartPromoPath {
|
|
@@ -4413,3 +4443,23 @@ export interface GetConsumerUserMealplanBarcodePath {
|
|
|
4413
4443
|
}
|
|
4414
4444
|
|
|
4415
4445
|
export type GetConsumerUserMealplanBarcodeResponse = {};
|
|
4446
|
+
|
|
4447
|
+
// GET /consumer/location/{id} - Get location
|
|
4448
|
+
|
|
4449
|
+
export interface GetConsumerLocationPath {
|
|
4450
|
+
// Location ID as Encoded CDL ID; TODO: mark parameter as required in swagger
|
|
4451
|
+
id: string;
|
|
4452
|
+
}
|
|
4453
|
+
|
|
4454
|
+
export interface GetConsumerLocationQuery {
|
|
4455
|
+
// Show disabled marketplace
|
|
4456
|
+
show_disabled_marketplace?: boolean;
|
|
4457
|
+
// Include brands config
|
|
4458
|
+
include_brands_config?: boolean;
|
|
4459
|
+
// Extended
|
|
4460
|
+
extended?: boolean;
|
|
4461
|
+
// Active cafes
|
|
4462
|
+
active_cafes?: string[];
|
|
4463
|
+
}
|
|
4464
|
+
|
|
4465
|
+
export type GetConsumerLocationResponse$0 = GetConsumerLocationResponse;
|
|
@@ -466,7 +466,7 @@ export interface ItemDiscountContextDTO {
|
|
|
466
466
|
itemDiscountedTotal: number;
|
|
467
467
|
// Single Items: discount amount applied across the affected quantity of this item (itemRegularTotal - itemDiscountedTotal). Bundle: discount amount applied to this item per bundle qualification.
|
|
468
468
|
appliedAmount: number;
|
|
469
|
-
// Bundle only: quantity of this item
|
|
469
|
+
// Bundle only: the minimum quantity of this item's respective bundle group in a bundle.
|
|
470
470
|
bundleGroupMinimum?: number;
|
|
471
471
|
// Bundle only: regular (pre-discount) total of the entire bundle per qualification, this is the sum of every item that participates in the bundle. Omitted for Single Items.
|
|
472
472
|
bundleRegularTotal?: number;
|
|
@@ -490,7 +490,7 @@ export interface PostValidateDiscountsResponseDTO {
|
|
|
490
490
|
stackedTotal: number;
|
|
491
491
|
// List of validated and applied discounts
|
|
492
492
|
stackedDiscounts: StackedDiscountDTO[];
|
|
493
|
-
// Cart items affected by an item-level discount (Single Items or Bundle), one entry per cart item. Each entry references the original cart item by `id` and carries
|
|
493
|
+
// Cart items affected by an item-level discount (Single Items or Bundle), one entry per affected cart item. Each entry references the original cart item by `id` and carries the merged per-discount contexts in `discounts`.
|
|
494
494
|
appliedItems?: AppliedItemResponseDTO[];
|
|
495
495
|
}
|
|
496
496
|
|
package/src/interface/menu.ts
CHANGED
|
@@ -8537,7 +8537,7 @@ export interface GetMenuV4BrandItemsPath {
|
|
|
8537
8537
|
}
|
|
8538
8538
|
|
|
8539
8539
|
export interface GetMenuV4BrandItemsQuery {
|
|
8540
|
-
filter?: string;
|
|
8540
|
+
filter?: string[];
|
|
8541
8541
|
// If specified, only the selected fields will be returned
|
|
8542
8542
|
select?: string[];
|
|
8543
8543
|
// List of relationships to load alongside this entity. Can load nested relationships using the pattern 'children.grand_children.foo'
|
|
@@ -8570,7 +8570,7 @@ export interface GetMenuV4BrandModifierGroupsPath {
|
|
|
8570
8570
|
}
|
|
8571
8571
|
|
|
8572
8572
|
export interface GetMenuV4BrandModifierGroupsQuery {
|
|
8573
|
-
filter?: string;
|
|
8573
|
+
filter?: string[];
|
|
8574
8574
|
// If specified, only the selected fields will be returned
|
|
8575
8575
|
select?: string[];
|
|
8576
8576
|
// List of relationships to load alongside this entity. Can load nested relationships using the pattern 'children.grand_children.foo'
|
|
@@ -8603,7 +8603,7 @@ export interface GetMenuV4BrandModifiersPath {
|
|
|
8603
8603
|
}
|
|
8604
8604
|
|
|
8605
8605
|
export interface GetMenuV4BrandModifiersQuery {
|
|
8606
|
-
filter?: string;
|
|
8606
|
+
filter?: string[];
|
|
8607
8607
|
// If specified, only the selected fields will be returned
|
|
8608
8608
|
select?: string[];
|
|
8609
8609
|
// List of relationships to load alongside this entity. Can load nested relationships using the pattern 'children.grand_children.foo'
|
|
@@ -8637,7 +8637,7 @@ export interface GetMenuV4BrandCategoryItemsPath {
|
|
|
8637
8637
|
}
|
|
8638
8638
|
|
|
8639
8639
|
export interface GetMenuV4BrandCategoryItemsQuery {
|
|
8640
|
-
filter?: string;
|
|
8640
|
+
filter?: string[];
|
|
8641
8641
|
// If specified, only the selected fields will be returned
|
|
8642
8642
|
select?: string[];
|
|
8643
8643
|
// List of relationships to load alongside this entity. Can load nested relationships using the pattern 'children.grand_children.foo'
|