@compassdigital/sdk.typescript 4.608.0 → 4.610.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.
@@ -1793,7 +1793,7 @@ export interface GetMenuItemPriceConsumer {
1793
1793
  currency?: string;
1794
1794
  }
1795
1795
 
1796
- export interface GetMenuItemCalorieConsumer {
1796
+ export interface GetMenuItemNutritionValueConsumer {
1797
1797
  // Amount
1798
1798
  amount?: number;
1799
1799
  // Unit of measurement
@@ -1804,7 +1804,7 @@ export interface GetMenuItemCalorieConsumer {
1804
1804
 
1805
1805
  export interface GetMenuItemNutritionConsumer {
1806
1806
  // Calories
1807
- calories?: GetMenuItemCalorieConsumer;
1807
+ calories?: GetMenuItemNutritionValueConsumer;
1808
1808
  }
1809
1809
 
1810
1810
  export interface Certified {
@@ -1862,7 +1862,27 @@ export interface Certified {
1862
1862
 
1863
1863
  export interface GetMenuOptionNutritionConsumer {
1864
1864
  // Calories
1865
- calories?: GetMenuItemCalorieConsumer;
1865
+ calories?: GetMenuItemNutritionValueConsumer;
1866
+ // Total fat
1867
+ total_fat?: GetMenuItemNutritionValueConsumer;
1868
+ // Saturated fat
1869
+ saturated_fat?: GetMenuItemNutritionValueConsumer;
1870
+ // Total carbohydrates
1871
+ total_carbohydrate?: GetMenuItemNutritionValueConsumer;
1872
+ // Total sugars
1873
+ total_sugars?: GetMenuItemNutritionValueConsumer;
1874
+ // Protein
1875
+ protein?: GetMenuItemNutritionValueConsumer;
1876
+ // Dietary fiber
1877
+ dietary_fiber?: GetMenuItemNutritionValueConsumer;
1878
+ // Sodium
1879
+ sodium?: GetMenuItemNutritionValueConsumer;
1880
+ // Trans fat
1881
+ trans_fat?: GetMenuItemNutritionValueConsumer;
1882
+ // Cholesterol
1883
+ cholesterol?: GetMenuItemNutritionValueConsumer;
1884
+ // Added sugars
1885
+ added_sugars?: GetMenuItemNutritionValueConsumer;
1866
1886
  }
1867
1887
 
1868
1888
  export interface GetMenuItemOptionSizingConsumer {
@@ -2484,67 +2504,86 @@ export interface GetConsumerShoppingCartResponse {
2484
2504
  incentives?: ConsumerIncentives;
2485
2505
  }
2486
2506
 
2487
- export interface ConsumerLabel {
2488
- en?: string;
2489
- fr?: string;
2490
- }
2491
-
2492
- export interface ConsumerModifierSizingInner {
2493
- name?: string;
2494
- price?: number;
2495
- posid?: string;
2507
+ export interface ConsumerMealplan {
2508
+ // The meal plan ID
2509
+ id?: string;
2510
+ // The meal plan tender
2511
+ tender?: string;
2512
+ // The meal plan total
2513
+ total?: number;
2514
+ // The meal plan type
2515
+ type?: string;
2496
2516
  }
2497
2517
 
2498
- export interface ConsumerModifierRequestMeta {
2499
- sizing?: ConsumerModifierSizingInner[];
2518
+ export interface ConsumerCreditCard {
2519
+ // The credit card type
2520
+ card_type?: string;
2521
+ // The last 4 digits of the card number
2522
+ last4?: string;
2523
+ // The credit card total
2524
+ total?: number;
2525
+ // The credit card type
2526
+ type?: string;
2500
2527
  }
2501
2528
 
2502
- export interface ConsumerPrice {
2503
- amount?: number;
2529
+ export interface ConsumerDigitalWalletPay {
2530
+ // The digital wallet type
2531
+ wallet_type?: string;
2532
+ // The digital wallet total
2533
+ total: number;
2534
+ // The digital wallet type
2535
+ type: string;
2504
2536
  }
2505
2537
 
2506
- export interface ConsumerModifierRequest {
2538
+ export interface ConsumerMealSwipes {
2539
+ // The meal swipes ID
2507
2540
  id?: string;
2508
- label?: ConsumerLabel;
2509
- _index?: string;
2510
- quantity?: number;
2511
- amount_off_exclusions?: Record<string, any>[];
2512
- meta?: ConsumerModifierRequestMeta;
2513
- is_selected?: boolean;
2514
- parent_label?: ConsumerLabel;
2515
- price?: ConsumerPrice;
2541
+ // The meal swipes tender
2542
+ tender?: string;
2543
+ // The meal swipes tender type
2544
+ tender_type?: string;
2545
+ // The meal swipes tender name
2546
+ tender_name?: string;
2547
+ // The meal swipes swipes
2548
+ swipes?: number;
2549
+ // The meal swipes rate
2550
+ rate?: number;
2551
+ // The meal swipes total
2552
+ total?: number;
2553
+ // The meal swipes type
2554
+ type?: string;
2516
2555
  }
2517
2556
 
2518
- export interface ConsumerModifierGroupRequest {
2519
- label?: ConsumerLabel;
2557
+ export interface ConsumerMealExchange {
2558
+ // The meal exchange ID
2520
2559
  id?: string;
2521
- items?: ConsumerModifierRequest[];
2522
- }
2523
-
2524
- export interface ConsumerItemRequestMeta {
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>[];
2560
+ // The meal exchange tender
2561
+ tender?: string;
2562
+ // The meal exchange type
2563
+ type?: string;
2544
2564
  }
2545
2565
 
2546
- export interface PutConsumerShoppingCartItemsRequest {
2547
- items?: ConsumerItemRequest[];
2566
+ export interface PutConsumerShoppingCartPaymentRequestDto {
2567
+ // The email to apply to the shopping cart
2568
+ email?: string;
2569
+ // The meal plan to apply to the shopping cart
2570
+ mealplan?: ConsumerMealplan;
2571
+ // The credit card to apply to the shopping cart
2572
+ credit_card?: ConsumerCreditCard;
2573
+ // The digital wallet pay to apply to the shopping cart
2574
+ digital_wallet_pay?: ConsumerDigitalWalletPay;
2575
+ // The meal swipes to apply to the shopping cart
2576
+ meal_swipes?: ConsumerMealSwipes;
2577
+ // The meal exchange to apply to the shopping cart
2578
+ meal_exchange?: ConsumerMealExchange;
2579
+ // The badge pay to apply to the shopping cart
2580
+ badge_pay?: ConsumerCashlessTender;
2581
+ // The stipend to apply to the shopping cart
2582
+ voucher?: ConsumerCashlessTender;
2583
+ // The coupon voucher to apply to the shopping cart
2584
+ coupon_voucher?: ConsumerCashlessTender;
2585
+ // The stipend to apply to the shopping cart
2586
+ stipend?: ConsumerCashlessTender;
2548
2587
  }
2549
2588
 
2550
2589
  export interface PutConsumerShoppingCartResponse {
@@ -2601,6 +2640,69 @@ export interface PutConsumerShoppingCartResponse {
2601
2640
  incentives?: ConsumerIncentives;
2602
2641
  }
2603
2642
 
2643
+ export interface ConsumerLabel {
2644
+ en?: string;
2645
+ fr?: string;
2646
+ }
2647
+
2648
+ export interface ConsumerModifierSizingInner {
2649
+ name?: string;
2650
+ price?: number;
2651
+ posid?: string;
2652
+ }
2653
+
2654
+ export interface ConsumerModifierRequestMeta {
2655
+ sizing?: ConsumerModifierSizingInner[];
2656
+ }
2657
+
2658
+ export interface ConsumerPrice {
2659
+ amount?: number;
2660
+ }
2661
+
2662
+ export interface ConsumerModifierRequest {
2663
+ id?: string;
2664
+ label?: ConsumerLabel;
2665
+ _index?: string;
2666
+ quantity?: number;
2667
+ amount_off_exclusions?: Record<string, any>[];
2668
+ meta?: ConsumerModifierRequestMeta;
2669
+ is_selected?: boolean;
2670
+ parent_label?: ConsumerLabel;
2671
+ price?: ConsumerPrice;
2672
+ }
2673
+
2674
+ export interface ConsumerModifierGroupRequest {
2675
+ label?: ConsumerLabel;
2676
+ id?: string;
2677
+ items?: ConsumerModifierRequest[];
2678
+ }
2679
+
2680
+ export interface ConsumerItemRequestMeta {
2681
+ brand?: string;
2682
+ brand_label?: ConsumerLabel;
2683
+ menu?: string;
2684
+ barcodes?: string[];
2685
+ plu?: string;
2686
+ }
2687
+
2688
+ export interface ConsumerItemRequest {
2689
+ id: string;
2690
+ quantity: number;
2691
+ quantity_by_weight?: {
2692
+ unit?: string;
2693
+ value?: number;
2694
+ };
2695
+ options?: ConsumerModifierGroupRequest[];
2696
+ _index?: string;
2697
+ special_instructions?: string;
2698
+ meta?: ConsumerItemRequestMeta;
2699
+ amount_off_exclusions?: Record<string, any>[];
2700
+ }
2701
+
2702
+ export interface PutConsumerShoppingCartItemsRequest {
2703
+ items?: ConsumerItemRequest[];
2704
+ }
2705
+
2604
2706
  export interface PostConsumerRecommendedRequest {
2605
2707
  // excluded items
2606
2708
  excludedItems: string[];
@@ -3024,88 +3126,6 @@ export interface ConsumerPutMealplanResponse {
3024
3126
  tenders?: ConsumerTender[];
3025
3127
  }
3026
3128
 
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
3129
  export interface PutConsumerShoppingCartPromoRequestDto {
3110
3130
  // The promo code to apply to the shopping cart
3111
3131
  code?: string;
@@ -3635,6 +3655,36 @@ export interface PostExternalExchangeLoginCodeResponseDTO {
3635
3655
  profile: ExchangeProfileDTO;
3636
3656
  }
3637
3657
 
3658
+ export interface GetConsumerLocationResponse {
3659
+ // id
3660
+ id: string;
3661
+ date?: {
3662
+ created?: string;
3663
+ modified?: string;
3664
+ };
3665
+ // name
3666
+ name: string;
3667
+ label?: {
3668
+ en?: string;
3669
+ fr?: string;
3670
+ };
3671
+ // distance in meters from the group
3672
+ distance?: number;
3673
+ // meta data
3674
+ meta?: Record<string, any>;
3675
+ style?: {
3676
+ logo?: string | null;
3677
+ main_logo?: string | null;
3678
+ alt_logo?: string | null;
3679
+ };
3680
+ // timezone
3681
+ timezone?: string;
3682
+ // site operational status
3683
+ status?: Record<string, any>;
3684
+ locations?: ConsumerLocation[];
3685
+ address?: ConsumerAddress;
3686
+ }
3687
+
3638
3688
  // GET /consumer/v1/health-check
3639
3689
 
3640
3690
  export type HealthCheckControllerExecuteResponse = {};
@@ -4069,6 +4119,17 @@ export type PatchConsumerShoppingcartBody = PatchConsumerShoppingCartRequest;
4069
4119
 
4070
4120
  export type PatchConsumerShoppingcartResponse = PatchConsumerShoppingCartResponse;
4071
4121
 
4122
+ // PUT /consumer/shoppingcart/{id}/paymentmethod - Update a shopping cart by ID
4123
+
4124
+ export interface PutConsumerShoppingcartPaymentPath {
4125
+ // Shopping Cart ID as Encaded CDL ID; TODO: mark parameter as required in swagger
4126
+ id: string;
4127
+ }
4128
+
4129
+ export type PutConsumerShoppingcartPaymentBody = PutConsumerShoppingCartPaymentRequestDto;
4130
+
4131
+ export type PutConsumerShoppingcartPaymentResponse = PutConsumerShoppingCartResponse;
4132
+
4072
4133
  // POST /consumer/shoppingcart/{id}/recommended - Get recommended items for a station or marketplace cart
4073
4134
 
4074
4135
  export interface PostConsumerShoppingcartRecommendedItemsPath {
@@ -4236,17 +4297,6 @@ export interface GetConsumerConfigPublicPath {
4236
4297
 
4237
4298
  export type GetConsumerConfigPublicResponse$0 = GetConsumerConfigPublicResponse;
4238
4299
 
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
4300
  // PUT /consumer/shoppingcart/{id}/promo - Add a promo code to a shopping cart
4251
4301
 
4252
4302
  export interface PutConsumerShoppingcartPromoPath {
@@ -4413,3 +4463,23 @@ export interface GetConsumerUserMealplanBarcodePath {
4413
4463
  }
4414
4464
 
4415
4465
  export type GetConsumerUserMealplanBarcodeResponse = {};
4466
+
4467
+ // GET /consumer/location/{id} - Get location
4468
+
4469
+ export interface GetConsumerLocationPath {
4470
+ // Location ID as Encoded CDL ID; TODO: mark parameter as required in swagger
4471
+ id: string;
4472
+ }
4473
+
4474
+ export interface GetConsumerLocationQuery {
4475
+ // Show disabled marketplace
4476
+ show_disabled_marketplace?: boolean;
4477
+ // Include brands config
4478
+ include_brands_config?: boolean;
4479
+ // Extended
4480
+ extended?: boolean;
4481
+ // Active cafes
4482
+ active_cafes?: string[];
4483
+ }
4484
+
4485
+ 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 consumed per bundle qualification which must be the minimum of the respective bundle group in a bundle.
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 `discounts` pre-merged across every discount that touched the item. Leftover (non-discounted) quantity is not stored and can be derived against the request cart item as: Single Items -> `discountMultiplier`; Bundle -> `discountMultiplier × bundleGroupMinimum`. Combined: `cartItem.quantity - Σ(discountMultiplier × (bundleGroupMinimum ?? 1))`.
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