@compassdigital/sdk.typescript 4.971.0 → 4.973.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
@@ -1300,6 +1300,8 @@ import {
1300
1300
  GetPaymentCashlessConsumerResponse,
1301
1301
  PostPaymentCashlessConsumerBody,
1302
1302
  PostPaymentCashlessConsumerResponse,
1303
+ DeleteConsumerPaymentCashlessBody$0,
1304
+ DeleteConsumerPaymentCashlessResponse$0,
1303
1305
  GetPaymentClienttokenConsumerQuery,
1304
1306
  GetPaymentClienttokenConsumerResponse,
1305
1307
  GetPaymentHpcConsumerQuery,
@@ -1308,6 +1310,8 @@ import {
1308
1310
  GetPaymentTokenConsumerResponse,
1309
1311
  PostConsumerPaymentTokenBody$0,
1310
1312
  PostConsumerPaymentTokenResponse$0,
1313
+ DeleteConsumerPaymentTokenBody$0,
1314
+ DeleteConsumerPaymentTokenResponse$0,
1311
1315
  GetConsumerShoppingcartResponse,
1312
1316
  PutConsumerShoppingcartBody,
1313
1317
  PutConsumerShoppingcartResponse,
@@ -4821,7 +4825,7 @@ export class ServiceClient extends BaseServiceClient {
4821
4825
  */
4822
4826
  post_mealplan_authorize(
4823
4827
  id: string,
4824
- body?: PostMealplanAuthorizeBody,
4828
+ body: PostMealplanAuthorizeBody,
4825
4829
  options?: RequestOptions,
4826
4830
  ): ResponsePromise<PostMealplanAuthorizeResponse> {
4827
4831
  return this.request(
@@ -15282,6 +15286,28 @@ export class ServiceClient extends BaseServiceClient {
15282
15286
  );
15283
15287
  }
15284
15288
 
15289
+ /**
15290
+ * DELETE /consumer/payment/{id}/cashless - Delete payment cashless tenders
15291
+ *
15292
+ * @param id - Payment ID
15293
+ * @param body - Delete Payment Cashless Body
15294
+ * @param options - additional request options
15295
+ */
15296
+ delete_consumer_payment_cashless(
15297
+ id: string,
15298
+ body?: DeleteConsumerPaymentCashlessBody$0,
15299
+ options?: RequestOptions,
15300
+ ): ResponsePromise<DeleteConsumerPaymentCashlessResponse$0> {
15301
+ return this.request(
15302
+ 'consumer',
15303
+ '/consumer/payment/{id}/cashless',
15304
+ 'DELETE',
15305
+ `/consumer/payment/${id}/cashless`,
15306
+ body,
15307
+ options,
15308
+ );
15309
+ }
15310
+
15285
15311
  /**
15286
15312
  * GET /consumer/payment/{id}/clienttoken - get payment client token
15287
15313
  *
@@ -15364,6 +15390,26 @@ export class ServiceClient extends BaseServiceClient {
15364
15390
  );
15365
15391
  }
15366
15392
 
15393
+ /**
15394
+ * DELETE /consumer/payment/token - Delete a saved payment token from the user profile
15395
+ *
15396
+ * @param body
15397
+ * @param options - additional request options
15398
+ */
15399
+ delete_consumer_payment_token(
15400
+ body: DeleteConsumerPaymentTokenBody$0,
15401
+ options?: RequestOptions,
15402
+ ): ResponsePromise<DeleteConsumerPaymentTokenResponse$0> {
15403
+ return this.request(
15404
+ 'consumer',
15405
+ '/consumer/payment/token',
15406
+ 'DELETE',
15407
+ `/consumer/payment/token`,
15408
+ body,
15409
+ options,
15410
+ );
15411
+ }
15412
+
15367
15413
  /**
15368
15414
  * GET /consumer/shoppingcart/{id} - Get a shopping cart by ID
15369
15415
  *
@@ -4858,6 +4858,28 @@ export interface ConsumerPostPaymentCashlessBody {
4858
4858
  token: string;
4859
4859
  }
4860
4860
 
4861
+ export interface DeleteConsumerPaymentTokenBody {
4862
+ // Payment token to delete
4863
+ token: string;
4864
+ // CDL Site Id
4865
+ siteId: string;
4866
+ }
4867
+
4868
+ export interface DeleteConsumerPaymentTokenResponse {
4869
+ // Whether the payment token was deleted
4870
+ success?: boolean;
4871
+ }
4872
+
4873
+ export interface DeleteConsumerPaymentCashlessBody {
4874
+ // IDs of the cashless tenders to delete
4875
+ tenders?: string[];
4876
+ }
4877
+
4878
+ export interface DeleteConsumerPaymentCashlessResponse {
4879
+ // Cashless tenders remaining after the delete
4880
+ tenders?: ConsumerCashlessTender[];
4881
+ }
4882
+
4861
4883
  export interface ReviewDTO {
4862
4884
  taxonomy?: Record<string, any>;
4863
4885
  id: string;
@@ -5534,6 +5556,17 @@ export type PostPaymentCashlessConsumerBody = ConsumerPostPaymentCashlessBody;
5534
5556
 
5535
5557
  export type PostPaymentCashlessConsumerResponse = ConsumerGetPaymentCashlessResponse;
5536
5558
 
5559
+ // DELETE /consumer/payment/{id}/cashless - Delete payment cashless tenders
5560
+
5561
+ export interface DeleteConsumerPaymentCashlessPath {
5562
+ // Payment ID
5563
+ id: string;
5564
+ }
5565
+
5566
+ export type DeleteConsumerPaymentCashlessBody$0 = DeleteConsumerPaymentCashlessBody;
5567
+
5568
+ export type DeleteConsumerPaymentCashlessResponse$0 = DeleteConsumerPaymentCashlessResponse;
5569
+
5537
5570
  // GET /consumer/payment/{id}/clienttoken - get payment client token
5538
5571
 
5539
5572
  export interface GetPaymentClienttokenConsumerPath {
@@ -5586,6 +5619,12 @@ export type PostConsumerPaymentTokenBody$0 = PostConsumerPaymentTokenBody;
5586
5619
 
5587
5620
  export type PostConsumerPaymentTokenResponse$0 = PostConsumerPaymentTokenResponse;
5588
5621
 
5622
+ // DELETE /consumer/payment/token - Delete a saved payment token from the user profile
5623
+
5624
+ export type DeleteConsumerPaymentTokenBody$0 = DeleteConsumerPaymentTokenBody;
5625
+
5626
+ export type DeleteConsumerPaymentTokenResponse$0 = DeleteConsumerPaymentTokenResponse;
5627
+
5589
5628
  // GET /consumer/shoppingcart/{id} - Get a shopping cart by ID
5590
5629
 
5591
5630
  export interface GetConsumerShoppingcartPath {
@@ -470,7 +470,7 @@ export interface PostMealplanAuthorizeResponse {
470
470
  }
471
471
 
472
472
  export interface PostMealplanAuthorizeRequest extends BaseRequest, PostMealplanAuthorizePath {
473
- body?: PostMealplanAuthorizeBody;
473
+ body: PostMealplanAuthorizeBody;
474
474
  }
475
475
 
476
476
  // POST /mealplan/{id}/internal/tenders - Check the user's tender balance