@compassdigital/sdk.typescript 4.972.0 → 4.974.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compassdigital/sdk.typescript",
3
- "version": "4.972.0",
3
+ "version": "4.974.0",
4
4
  "description": "Compass Digital Labs TypeScript SDK",
5
5
  "type": "commonjs",
6
6
  "main": "./lib/index.js",
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,
@@ -1742,6 +1746,7 @@ import {
1742
1746
  PostCentricPosRegisterBody,
1743
1747
  PostCentricPosRegisterResponse,
1744
1748
  GetCentricPosSiteResponse,
1749
+ GetCentricPosDeviceSiteResponse,
1745
1750
  PostCentricPosAuthBody,
1746
1751
  PostCentricPosAuthResponse,
1747
1752
  PostCentricPosOrderBody,
@@ -15282,6 +15287,28 @@ export class ServiceClient extends BaseServiceClient {
15282
15287
  );
15283
15288
  }
15284
15289
 
15290
+ /**
15291
+ * DELETE /consumer/payment/{id}/cashless - Delete payment cashless tenders
15292
+ *
15293
+ * @param id - Payment ID
15294
+ * @param body - Delete Payment Cashless Body
15295
+ * @param options - additional request options
15296
+ */
15297
+ delete_consumer_payment_cashless(
15298
+ id: string,
15299
+ body?: DeleteConsumerPaymentCashlessBody$0,
15300
+ options?: RequestOptions,
15301
+ ): ResponsePromise<DeleteConsumerPaymentCashlessResponse$0> {
15302
+ return this.request(
15303
+ 'consumer',
15304
+ '/consumer/payment/{id}/cashless',
15305
+ 'DELETE',
15306
+ `/consumer/payment/${id}/cashless`,
15307
+ body,
15308
+ options,
15309
+ );
15310
+ }
15311
+
15285
15312
  /**
15286
15313
  * GET /consumer/payment/{id}/clienttoken - get payment client token
15287
15314
  *
@@ -15364,6 +15391,26 @@ export class ServiceClient extends BaseServiceClient {
15364
15391
  );
15365
15392
  }
15366
15393
 
15394
+ /**
15395
+ * DELETE /consumer/payment/token - Delete a saved payment token from the user profile
15396
+ *
15397
+ * @param body
15398
+ * @param options - additional request options
15399
+ */
15400
+ delete_consumer_payment_token(
15401
+ body: DeleteConsumerPaymentTokenBody$0,
15402
+ options?: RequestOptions,
15403
+ ): ResponsePromise<DeleteConsumerPaymentTokenResponse$0> {
15404
+ return this.request(
15405
+ 'consumer',
15406
+ '/consumer/payment/token',
15407
+ 'DELETE',
15408
+ `/consumer/payment/token`,
15409
+ body,
15410
+ options,
15411
+ );
15412
+ }
15413
+
15367
15414
  /**
15368
15415
  * GET /consumer/shoppingcart/{id} - Get a shopping cart by ID
15369
15416
  *
@@ -20215,6 +20262,24 @@ export class ServiceClient extends BaseServiceClient {
20215
20262
  );
20216
20263
  }
20217
20264
 
20265
+ /**
20266
+ * GET /centric-pos/v1/device/site - Get the calling device's site, location, merchant name and orderable stations
20267
+ *
20268
+ * @param options - additional request options
20269
+ */
20270
+ get_centric_pos_device_site(
20271
+ options?: RequestOptions,
20272
+ ): ResponsePromise<GetCentricPosDeviceSiteResponse> {
20273
+ return this.request(
20274
+ 'centric-pos',
20275
+ '/centric-pos/v1/device/site',
20276
+ 'GET',
20277
+ `/centric-pos/v1/device/site`,
20278
+ null,
20279
+ options,
20280
+ );
20281
+ }
20282
+
20218
20283
  /**
20219
20284
  * POST /centric-pos/v1/auth - Authenticate with serial number and long-term token to get short-term token
20220
20285
  *
@@ -92,6 +92,69 @@ export interface GetSiteResponse {
92
92
  stations: BrandDTO[];
93
93
  }
94
94
 
95
+ export interface CentricPOSDeviceSiteAddress {
96
+ suite?: string;
97
+ address?: string;
98
+ city?: string;
99
+ state?: string;
100
+ country?: string;
101
+ zip?: string;
102
+ }
103
+
104
+ export interface CentricPOSDeviceSiteSite {
105
+ // Site (location group) ID
106
+ id: string;
107
+ name?: string;
108
+ address?: CentricPOSDeviceSiteAddress;
109
+ }
110
+
111
+ export interface CentricPOSDeviceSiteLocation {
112
+ // Location ID
113
+ id: string;
114
+ name?: string;
115
+ // Merchant name to show on the device, blank when none is set
116
+ merchant_name: string;
117
+ }
118
+
119
+ export interface CentricPOSLabel {
120
+ en?: string;
121
+ fr?: string;
122
+ }
123
+
124
+ export interface CentricPOSDeviceSiteStationIs {
125
+ scan_and_go_supported?: boolean;
126
+ }
127
+
128
+ export interface CentricPOSDeviceSiteMenu {
129
+ id?: string;
130
+ is_pickup?: boolean;
131
+ is_delivery?: boolean;
132
+ }
133
+
134
+ export interface CentricPOSDeviceSiteStation {
135
+ // Station (brand) ID
136
+ id: string;
137
+ label?: CentricPOSLabel;
138
+ // ID of the station's location
139
+ location?: string;
140
+ address?: CentricPOSDeviceSiteAddress;
141
+ timezone?: string;
142
+ // Whether the station has any KDS: Centric's, Nextep, Agilysys or Volante
143
+ hasKds: boolean;
144
+ is: CentricPOSDeviceSiteStationIs;
145
+ menus: CentricPOSDeviceSiteMenu[];
146
+ }
147
+
148
+ export interface CentricPOSGetDeviceSiteResponse {
149
+ site: CentricPOSDeviceSiteSite;
150
+ // Location the device orders for
151
+ location: CentricPOSDeviceSiteLocation;
152
+ // Orderable Centric POS stations the device shows
153
+ stations: CentricPOSDeviceSiteStation[];
154
+ // Stations left out because their configuration could not be loaded
155
+ failedStationIds: string[];
156
+ }
157
+
95
158
  export interface CentricPOSAuthPostBody {
96
159
  // Serial number of the device
97
160
  serialNumber: string;
@@ -344,6 +407,10 @@ export interface GetCentricPosSitePath {
344
407
 
345
408
  export type GetCentricPosSiteResponse = GetSiteResponse;
346
409
 
410
+ // GET /centric-pos/v1/device/site - Get the calling device's site, location, merchant name and orderable stations
411
+
412
+ export type GetCentricPosDeviceSiteResponse = CentricPOSGetDeviceSiteResponse;
413
+
347
414
  // POST /centric-pos/v1/auth - Authenticate with serial number and long-term token to get short-term token
348
415
 
349
416
  export type PostCentricPosAuthBody = CentricPOSAuthPostBody;
@@ -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 {