@compassdigital/sdk.typescript 4.881.0 → 4.883.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/src/index.ts CHANGED
@@ -1354,6 +1354,7 @@ import {
1354
1354
  DeleteConsumerShoppingcartPromoResponse,
1355
1355
  PutConsumerShoppingcartCheckoutResponse,
1356
1356
  GetConsumerStationDiscountsResponse,
1357
+ GetConsumerStationDiscountsV2Response,
1357
1358
  PostConsumerShoppingcartCloneBody,
1358
1359
  PostConsumerShoppingcartCloneResponse,
1359
1360
  GetConsumerLocationBrandQuery,
@@ -15928,6 +15929,26 @@ export class ServiceClient extends BaseServiceClient {
15928
15929
  );
15929
15930
  }
15930
15931
 
15932
+ /**
15933
+ * GET /consumer/v2/discounts/{siteId} - Provide the front end all the data required to render the station discounts (v2 with FIXED_PRICE support)
15934
+ *
15935
+ * @param siteId - Site ID as Encoded CDL ID
15936
+ * @param options - additional request options
15937
+ */
15938
+ get_consumer_station_discounts_v2(
15939
+ siteId: string,
15940
+ options?: RequestOptions,
15941
+ ): ResponsePromise<GetConsumerStationDiscountsV2Response> {
15942
+ return this.request(
15943
+ 'consumer',
15944
+ '/consumer/v2/discounts/{siteId}',
15945
+ 'GET',
15946
+ `/consumer/v2/discounts/${siteId}`,
15947
+ null,
15948
+ options,
15949
+ );
15950
+ }
15951
+
15931
15952
  /**
15932
15953
  * POST /consumer/shoppingcart/{id}/clone - clone a shopping cart
15933
15954
  *
@@ -5631,6 +5631,15 @@ export interface GetConsumerStationDiscountsPath {
5631
5631
 
5632
5632
  export type GetConsumerStationDiscountsResponse = ConsumerGroup;
5633
5633
 
5634
+ // GET /consumer/v2/discounts/{siteId} - Provide the front end all the data required to render the station discounts (v2 with FIXED_PRICE support)
5635
+
5636
+ export interface GetConsumerStationDiscountsV2Path {
5637
+ // Site ID as Encoded CDL ID
5638
+ siteId: string;
5639
+ }
5640
+
5641
+ export type GetConsumerStationDiscountsV2Response = ConsumerGroup;
5642
+
5634
5643
  // POST /consumer/shoppingcart/{id}/clone - clone a shopping cart
5635
5644
 
5636
5645
  export interface PostConsumerShoppingcartClonePath {
@@ -609,7 +609,21 @@ export interface PostUserAddSecretPath {
609
609
  key: string;
610
610
  }
611
611
 
612
- export type PostUserAddSecretBody = Record<string, any>;
612
+ export interface PostUserAddSecretBody {
613
+ fcm_token?: string;
614
+ sso_data?: {
615
+ employee_id?: string;
616
+ };
617
+ track2?: string;
618
+ username_value?: string;
619
+ tenders?: string[];
620
+ deleted_tenders?: string[];
621
+ account_id?: string;
622
+ validated?: boolean;
623
+ verified?: boolean;
624
+ should_validate?: boolean;
625
+ verification_nonce?: string;
626
+ }
613
627
 
614
628
  export type PostUserAddSecretResponse = Key;
615
629