@compassdigital/sdk.typescript 4.107.0 → 4.109.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
@@ -296,8 +296,12 @@ import {
296
296
  GetPromoCompanyLocationGroupResponse,
297
297
  PostPromoValidateVoucherBody,
298
298
  PostPromoValidateVoucherResponse,
299
+ PostPromoValidateVouchersBody,
300
+ PostPromoValidateVouchersResponse,
299
301
  PostPromoRedeemVoucherBody,
300
302
  PostPromoRedeemVoucherResponse,
303
+ PostPromoRedeemVouchersBody,
304
+ PostPromoRedeemVouchersResponse,
301
305
  PostPromoVoucherBody,
302
306
  PostPromoVoucherResponse,
303
307
  PutPromoVoucherBody,
@@ -1054,17 +1058,6 @@ import {
1054
1058
  PostFrictionlessAmazonJwoConnectorV1OrderPurchasesResponse,
1055
1059
  } from './interface/frictionless';
1056
1060
 
1057
- import {
1058
- HealthCheckControllerExecuteQuery,
1059
- HealthCheckControllerExecuteResponse,
1060
- GetPaymentListByBrandQuery,
1061
- GetPaymentListByBrandResponse,
1062
- GetCustomerOrdersQuery,
1063
- GetCustomerOrdersResponse,
1064
- PostReviewOrderItemsBody,
1065
- PostReviewOrderItemsResponse,
1066
- } from './interface/consumer';
1067
-
1068
1061
  import {
1069
1062
  PostAiLanguageGenerateBody,
1070
1063
  PostAiLanguageGenerateResponse,
@@ -1094,14 +1087,18 @@ import {
1094
1087
  GetSiteDevicesResponse,
1095
1088
  GetCentricosSitesQuery,
1096
1089
  GetCentricosSitesResponse,
1090
+ GetSitesFromPriceLevelQuery,
1091
+ GetSitesFromPriceLevelResponse,
1097
1092
  GetReviewOrderItemsQuery,
1098
1093
  GetReviewOrderItemsResponse,
1099
1094
  GetCentricosStationQuery,
1100
1095
  GetCentricosStationResponse,
1101
- PutDiscountVoucherifyBody,
1102
- PutDiscountVoucherifyResponse,
1103
- PutDiscountVoucherifyPublishBody,
1104
- PutDiscountVoucherifyPublishResponse,
1096
+ PutCentricosDiscountVoucherifyBody,
1097
+ PutCentricosDiscountVoucherifyResponse,
1098
+ PutCentricosDiscountVoucherifyPublishResponse,
1099
+ DeleteCentricosDiscountsVoucherifyResponse,
1100
+ GetCentricosDiscountQuery,
1101
+ GetCentricosDiscountResponse,
1105
1102
  } from './interface/centricos';
1106
1103
 
1107
1104
  import {
@@ -3706,6 +3703,26 @@ export class ServiceClient extends BaseServiceClient {
3706
3703
  );
3707
3704
  }
3708
3705
 
3706
+ /**
3707
+ * POST /promo/validate/vouchers - Validate multiple promo vouchers
3708
+ *
3709
+ * @param body
3710
+ * @param options - additional request options
3711
+ */
3712
+ post_promo_validate_vouchers(
3713
+ body: PostPromoValidateVouchersBody,
3714
+ options?: RequestOptions,
3715
+ ): ResponsePromise<PostPromoValidateVouchersResponse> {
3716
+ return this.request(
3717
+ 'promo',
3718
+ '/promo/validate/vouchers',
3719
+ 'post',
3720
+ `/promo/validate/vouchers`,
3721
+ body,
3722
+ options,
3723
+ );
3724
+ }
3725
+
3709
3726
  /**
3710
3727
  * POST /promo/redeem/voucher - Redeem a promo voucher
3711
3728
  *
@@ -3726,6 +3743,26 @@ export class ServiceClient extends BaseServiceClient {
3726
3743
  );
3727
3744
  }
3728
3745
 
3746
+ /**
3747
+ * POST /promo/redeem/vouchers - Redeem multiple promo vouchers
3748
+ *
3749
+ * @param body
3750
+ * @param options - additional request options
3751
+ */
3752
+ post_promo_redeem_vouchers(
3753
+ body: PostPromoRedeemVouchersBody,
3754
+ options?: RequestOptions,
3755
+ ): ResponsePromise<PostPromoRedeemVouchersResponse> {
3756
+ return this.request(
3757
+ 'promo',
3758
+ '/promo/redeem/vouchers',
3759
+ 'post',
3760
+ `/promo/redeem/vouchers`,
3761
+ body,
3762
+ options,
3763
+ );
3764
+ }
3765
+
3729
3766
  /**
3730
3767
  * POST /promo/voucher - Create new voucher
3731
3768
  *
@@ -11165,88 +11202,6 @@ export class ServiceClient extends BaseServiceClient {
11165
11202
  );
11166
11203
  }
11167
11204
 
11168
- /**
11169
- * GET /consumer/v1/health-check
11170
- *
11171
- * @param options - additional request options
11172
- */
11173
- HealthCheckController_execute(
11174
- options?: {
11175
- query?: HealthCheckControllerExecuteQuery;
11176
- } & RequestOptions,
11177
- ): ResponsePromise<HealthCheckControllerExecuteResponse> {
11178
- return this.request(
11179
- 'consumer',
11180
- '/consumer/v1/health-check',
11181
- 'get',
11182
- `/consumer/v1/health-check`,
11183
- null,
11184
- options,
11185
- );
11186
- }
11187
-
11188
- /**
11189
- * GET /consumer/v1/payment-methods - List payment methods available in a given brand
11190
- *
11191
- * @param options - additional request options
11192
- */
11193
- get_payment_list_by_brand(
11194
- options?: {
11195
- query?: GetPaymentListByBrandQuery;
11196
- } & RequestOptions,
11197
- ): ResponsePromise<GetPaymentListByBrandResponse> {
11198
- return this.request(
11199
- 'consumer',
11200
- '/consumer/v1/payment-methods',
11201
- 'get',
11202
- `/consumer/v1/payment-methods`,
11203
- null,
11204
- options,
11205
- );
11206
- }
11207
-
11208
- /**
11209
- * GET /consumer/customer-orders/{userId} - Get customer orders
11210
- *
11211
- * @param userId - a valid CDL user id
11212
- * @param options - additional request options
11213
- */
11214
- get_customer_orders(
11215
- userId: string,
11216
- options?: {
11217
- query?: GetCustomerOrdersQuery;
11218
- } & RequestOptions,
11219
- ): ResponsePromise<GetCustomerOrdersResponse> {
11220
- return this.request(
11221
- 'consumer',
11222
- '/consumer/customer-orders/{userId}',
11223
- 'get',
11224
- `/consumer/customer-orders/${userId}`,
11225
- null,
11226
- options,
11227
- );
11228
- }
11229
-
11230
- /**
11231
- * POST /consumer/review/order-items - Submit reviews for order items
11232
- *
11233
- * @param body
11234
- * @param options - additional request options
11235
- */
11236
- post_review_order_items(
11237
- body: PostReviewOrderItemsBody,
11238
- options?: RequestOptions,
11239
- ): ResponsePromise<PostReviewOrderItemsResponse> {
11240
- return this.request(
11241
- 'consumer',
11242
- '/consumer/review/order-items',
11243
- 'post',
11244
- `/consumer/review/order-items`,
11245
- body,
11246
- options,
11247
- );
11248
- }
11249
-
11250
11205
  /**
11251
11206
  * POST /ai/language/generate - Generate text from a given prompt
11252
11207
  *
@@ -11356,7 +11311,7 @@ export class ServiceClient extends BaseServiceClient {
11356
11311
  /**
11357
11312
  * GET /centricos/report/group/{location_group}/config - Get report configuration for a location group. Times are in site's local timezone.
11358
11313
  *
11359
- * @param location_group - TODO: add parameter to swagger.json
11314
+ * @param location_group - TODO: cannot use CompassLongID as path parameter
11360
11315
  * @param options - additional request options
11361
11316
  */
11362
11317
  get_centricos_report_group_config(
@@ -11378,7 +11333,7 @@ export class ServiceClient extends BaseServiceClient {
11378
11333
  /**
11379
11334
  * PUT /centricos/report/group/{location_group}/config - Update report configuration for a location group. Times are in site's local timezone.
11380
11335
  *
11381
- * @param location_group - TODO: add parameter to swagger.json
11336
+ * @param location_group - TODO: cannot use CompassLongID as path parameter
11382
11337
  * @param body
11383
11338
  * @param options - additional request options
11384
11339
  */
@@ -11400,7 +11355,7 @@ export class ServiceClient extends BaseServiceClient {
11400
11355
  /**
11401
11356
  * DELETE /centricos/report/group/{location_group}/config - Delete report configuration for a location group. Times are in site's local timezone.
11402
11357
  *
11403
- * @param location_group - TODO: add parameter to swagger.json
11358
+ * @param location_group - TODO: cannot use CompassLongID as path parameter
11404
11359
  * @param options - additional request options
11405
11360
  */
11406
11361
  delete_centricos_report_group_config(
@@ -11420,7 +11375,7 @@ export class ServiceClient extends BaseServiceClient {
11420
11375
  /**
11421
11376
  * GET /centricos/report/group/{location_group}/config/default - Get default report configuration. Times are in site's local timezone.
11422
11377
  *
11423
- * @param location_group - TODO: add parameter to swagger.json
11378
+ * @param location_group - TODO: cannot use CompassLongID as path parameter
11424
11379
  * @param options - additional request options
11425
11380
  */
11426
11381
  get_centricos_report_config_default(
@@ -11494,6 +11449,28 @@ export class ServiceClient extends BaseServiceClient {
11494
11449
  return this.request('centricos', '/centricos/sites', 'get', `/centricos/sites`, null, options);
11495
11450
  }
11496
11451
 
11452
+ /**
11453
+ * GET /centricos/sites/price-level/{price_level} - This returns specific properties from sites, locations, and stations connected to a menu price level. This does not support pagination, filtering, sorting, or searching.
11454
+ *
11455
+ * @param price_level - TODO: cannot use CompassLongID as path parameter
11456
+ * @param options - additional request options
11457
+ */
11458
+ get_sites_from_price_level(
11459
+ price_level: string,
11460
+ options?: {
11461
+ query?: GetSitesFromPriceLevelQuery;
11462
+ } & RequestOptions,
11463
+ ): ResponsePromise<GetSitesFromPriceLevelResponse> {
11464
+ return this.request(
11465
+ 'centricos',
11466
+ '/centricos/sites/price-level/{price_level}',
11467
+ 'get',
11468
+ `/centricos/sites/price-level/${price_level}`,
11469
+ null,
11470
+ options,
11471
+ );
11472
+ }
11473
+
11497
11474
  /**
11498
11475
  * GET /centricos/review/{orderId}/order-items - Get reviews for items in a given order in an array format
11499
11476
  *
@@ -11519,7 +11496,7 @@ export class ServiceClient extends BaseServiceClient {
11519
11496
  /**
11520
11497
  * GET /centricos/station/{station_id} - Get station details
11521
11498
  *
11522
- * @param station_id - TODO: add parameter to swagger.json
11499
+ * @param station_id - TODO: cannot use CompassLongID as path parameter
11523
11500
  * @param options - additional request options
11524
11501
  */
11525
11502
  get_centricos_station(
@@ -11544,10 +11521,10 @@ export class ServiceClient extends BaseServiceClient {
11544
11521
  * @param body
11545
11522
  * @param options - additional request options
11546
11523
  */
11547
- put_discount_voucherify(
11548
- body: PutDiscountVoucherifyBody,
11524
+ put_centricos_discount_voucherify(
11525
+ body: PutCentricosDiscountVoucherifyBody,
11549
11526
  options?: RequestOptions,
11550
- ): ResponsePromise<PutDiscountVoucherifyResponse> {
11527
+ ): ResponsePromise<PutCentricosDiscountVoucherifyResponse> {
11551
11528
  return this.request(
11552
11529
  'centricos',
11553
11530
  '/centricos/discount/voucherify',
@@ -11562,20 +11539,60 @@ export class ServiceClient extends BaseServiceClient {
11562
11539
  * PUT /centricos/discount/{id}/voucherify/publish - Update and publish a voucherify discount and assign it to multiple sites
11563
11540
  *
11564
11541
  * @param id - Discount ID
11565
- * @param body
11566
11542
  * @param options - additional request options
11567
11543
  */
11568
- put_discount_voucherify_publish(
11544
+ put_centricos_discount_voucherify_publish(
11569
11545
  id: string,
11570
- body: PutDiscountVoucherifyPublishBody,
11571
11546
  options?: RequestOptions,
11572
- ): ResponsePromise<PutDiscountVoucherifyPublishResponse> {
11547
+ ): ResponsePromise<PutCentricosDiscountVoucherifyPublishResponse> {
11573
11548
  return this.request(
11574
11549
  'centricos',
11575
11550
  '/centricos/discount/{id}/voucherify/publish',
11576
11551
  'put',
11577
11552
  `/centricos/discount/${id}/voucherify/publish`,
11578
- body,
11553
+ null,
11554
+ options,
11555
+ );
11556
+ }
11557
+
11558
+ /**
11559
+ * DELETE /centricos/discount/{id}/voucherify - Delete a discount from voucherify and all of its entity associations
11560
+ *
11561
+ * @param id - Discount ID
11562
+ * @param options - additional request options
11563
+ */
11564
+ delete_centricos_discounts_voucherify(
11565
+ id: string,
11566
+ options?: RequestOptions,
11567
+ ): ResponsePromise<DeleteCentricosDiscountsVoucherifyResponse> {
11568
+ return this.request(
11569
+ 'centricos',
11570
+ '/centricos/discount/{id}/voucherify',
11571
+ 'delete',
11572
+ `/centricos/discount/${id}/voucherify`,
11573
+ null,
11574
+ options,
11575
+ );
11576
+ }
11577
+
11578
+ /**
11579
+ * GET /centricos/discount/{id} - Get discount information by ID
11580
+ *
11581
+ * @param id - ID of the discount to retrieve
11582
+ * @param options - additional request options
11583
+ */
11584
+ get_centricos_discount(
11585
+ id: string,
11586
+ options?: {
11587
+ query?: GetCentricosDiscountQuery;
11588
+ } & RequestOptions,
11589
+ ): ResponsePromise<GetCentricosDiscountResponse> {
11590
+ return this.request(
11591
+ 'centricos',
11592
+ '/centricos/discount/{id}',
11593
+ 'get',
11594
+ `/centricos/discount/${id}`,
11595
+ null,
11579
11596
  options,
11580
11597
  );
11581
11598
  }
@@ -11794,7 +11811,7 @@ export class ServiceClient extends BaseServiceClient {
11794
11811
  /**
11795
11812
  * GET /discount/{id} - Get a discount
11796
11813
  *
11797
- * @param id
11814
+ * @param id - a discount id
11798
11815
  * @param options - additional request options
11799
11816
  */
11800
11817
  get_discount(
@@ -19,6 +19,12 @@ export interface SSOFlowResponseDTO {
19
19
  oidc?: OIDC;
20
20
  }
21
21
 
22
+ export interface UnauthorizedErrorDTO {
23
+ message: string;
24
+ code: number;
25
+ data: Record<string, any>;
26
+ }
27
+
22
28
  export interface SSOMapping {
23
29
  id: string;
24
30
  given_name: string;
@@ -50,6 +50,8 @@ export interface OrdersExportResponse {
50
50
  fileName: string;
51
51
  }
52
52
 
53
+ export type CompassLongID = Record<string, any>;
54
+
53
55
  export interface DayPart {
54
56
  label: string;
55
57
  start: string;
@@ -107,6 +109,28 @@ export interface GetSitesResponse {
107
109
  results: Site[];
108
110
  }
109
111
 
112
+ export interface PriceLevelStation {
113
+ id: string;
114
+ name: string;
115
+ }
116
+
117
+ export interface PriceLevelBusinessUnit {
118
+ id: string;
119
+ name: string;
120
+ unit_number: number;
121
+ stations: PriceLevelStation[];
122
+ }
123
+
124
+ export interface PriceLevelSite {
125
+ id: string;
126
+ name: string;
127
+ business_units: PriceLevelBusinessUnit[];
128
+ }
129
+
130
+ export interface GetPriceLevelSitesResponse {
131
+ sites: PriceLevelSite[];
132
+ }
133
+
110
134
  export interface ReviewOrderItem {
111
135
  // Order id
112
136
  id: string;
@@ -190,76 +214,107 @@ export interface GetStationResponse {
190
214
  closure_schedules: ClosureSchedule[];
191
215
  }
192
216
 
193
- export interface VoucherifyDiscountDTO {
217
+ export interface DiscountRequestDTO {
218
+ // name of the discount
219
+ name: string;
220
+ // status of the discount
221
+ status?: Record<string, any>;
222
+ // user is of discount creator
223
+ createdBy?: string;
224
+ // last user who updated the discount
225
+ updatedBy?: string;
226
+ // creation timestamp
227
+ createdAt?: string;
228
+ // last update timestamp
229
+ updatedAt?: string;
230
+ // Voucherify metadata
231
+ meta?: Record<string, any>;
194
232
  id?: string;
195
- type?: string;
196
- amountOff?: number;
197
- percentOff?: number;
198
- }
199
-
200
- export interface VoucherifyMetaDataDTO {
201
- code?: string;
202
- discount?: VoucherifyDiscountDTO;
233
+ is?: Record<string, any>;
203
234
  }
204
235
 
205
- export interface DiscountStatus {
206
- live?: boolean;
207
- scheduled?: boolean;
208
- archived?: boolean;
209
- }
210
-
211
- export interface DiscountIs {
212
- badgepayPromo?: boolean;
213
- mealplanPromo?: boolean;
214
- decliningBalancePromo?: boolean;
215
- voucherPromo?: boolean;
216
- }
217
-
218
- export interface DiscountRequestDTO {
219
- meta?: {
220
- [index: string]: any;
221
- } & VoucherifyMetaDataDTO;
222
- id?: string;
223
- createdBy?: string;
224
- name?: string;
225
- status?: DiscountStatus;
226
- is?: DiscountIs;
227
- app?: string;
236
+ export interface SiteDTO {
237
+ // The ID of the site
238
+ id: string;
239
+ // The name of the site
240
+ name: string;
228
241
  }
229
242
 
230
243
  export interface PutDiscountVoucherifyRequestDTO {
231
244
  discount: DiscountRequestDTO;
232
- sites?: string[];
245
+ sites?: SiteDTO[];
233
246
  }
234
247
 
235
248
  export interface DiscountResponseDTO {
236
249
  // user is of discount creator
237
250
  createdBy: string;
238
- meta?: {
239
- [index: string]: any;
240
- } & VoucherifyMetaDataDTO;
251
+ // last user who updated the discount
252
+ updatedBy: string;
253
+ // name of the discount
254
+ name: string;
255
+ // status of the discount
256
+ status?: Record<string, any>;
257
+ // Voucherify metadata
258
+ meta?: Record<string, any>;
241
259
  id: string;
242
260
  createdAt: string;
243
261
  updatedAt: string;
244
- name?: string;
245
- status?: DiscountStatus;
246
- is?: DiscountIs;
247
- app?: string;
262
+ is?: Record<string, any>;
248
263
  }
249
264
 
250
265
  export interface PutDiscountVoucherifyResponseDTO {
251
266
  discount: DiscountResponseDTO;
252
- sites?: string[];
267
+ sites?: SiteDTO[];
253
268
  }
254
269
 
255
- export interface PutDiscountVoucherifyPublishRequestDTO {
256
- discount: DiscountRequestDTO;
257
- sites?: string[];
258
- }
270
+ export type DiscountValidationError = Record<string, any>;
271
+
272
+ export type DiscountCreateError = Record<string, any>;
259
273
 
260
274
  export interface PutDiscountVoucherifyPublishResponseDTO {
261
- discount: DiscountResponseDTO;
262
- sites?: string[];
275
+ // user is of discount creator
276
+ createdBy: string;
277
+ // last user who updated the discount
278
+ updatedBy: string;
279
+ // name of the discount
280
+ name: string;
281
+ // status of the discount
282
+ status?: Record<string, any>;
283
+ // Voucherify metadata
284
+ meta?: Record<string, any>;
285
+ // List of sites where discount is published
286
+ sites?: SiteDTO[];
287
+ id: string;
288
+ createdAt: string;
289
+ updatedAt: string;
290
+ is?: Record<string, any>;
291
+ }
292
+
293
+ export type DiscountPublishError = Record<string, any>;
294
+
295
+ export interface DeleteDiscountsVoucherifyResponseDTO {
296
+ success: boolean;
297
+ }
298
+
299
+ export type DiscountDeleteError = Record<string, any>;
300
+
301
+ export interface DiscountDTO {
302
+ // user is of discount creator
303
+ createdBy: string;
304
+ // last user who updated the discount
305
+ updatedBy: string;
306
+ // name of the discount
307
+ name: string;
308
+ // status of the discount
309
+ status?: Record<string, any>;
310
+ id: string;
311
+ createdAt: string;
312
+ updatedAt: string;
313
+ is?: Record<string, any>;
314
+ }
315
+
316
+ export interface GetDiscountResponseDTO {
317
+ discount: DiscountDTO;
263
318
  }
264
319
 
265
320
  // POST /centricos/ai/item/description - Generate item description
@@ -338,7 +393,7 @@ export interface PostCentricosOrdersExportRequest
338
393
  // GET /centricos/report/group/{location_group}/config - Get report configuration for a location group. Times are in site's local timezone.
339
394
 
340
395
  export interface GetCentricosReportGroupConfigPath {
341
- // TODO: add parameter to swagger.json
396
+ // TODO: cannot use CompassLongID as path parameter
342
397
  location_group: string;
343
398
  }
344
399
 
@@ -357,7 +412,7 @@ export interface GetCentricosReportGroupConfigRequest
357
412
  // PUT /centricos/report/group/{location_group}/config - Update report configuration for a location group. Times are in site's local timezone.
358
413
 
359
414
  export interface PutCentricosReportGroupConfigPath {
360
- // TODO: add parameter to swagger.json
415
+ // TODO: cannot use CompassLongID as path parameter
361
416
  location_group: string;
362
417
  }
363
418
 
@@ -374,7 +429,7 @@ export interface PutCentricosReportGroupConfigRequest
374
429
  // DELETE /centricos/report/group/{location_group}/config - Delete report configuration for a location group. Times are in site's local timezone.
375
430
 
376
431
  export interface DeleteCentricosReportGroupConfigPath {
377
- // TODO: add parameter to swagger.json
432
+ // TODO: cannot use CompassLongID as path parameter
378
433
  location_group: string;
379
434
  }
380
435
 
@@ -387,7 +442,7 @@ export interface DeleteCentricosReportGroupConfigRequest
387
442
  // GET /centricos/report/group/{location_group}/config/default - Get default report configuration. Times are in site's local timezone.
388
443
 
389
444
  export interface GetCentricosReportConfigDefaultPath {
390
- // TODO: add parameter to swagger.json
445
+ // TODO: cannot use CompassLongID as path parameter
391
446
  location_group: string;
392
447
  }
393
448
 
@@ -455,6 +510,26 @@ export interface GetCentricosSitesRequest
455
510
  extends BaseRequest,
456
511
  RequestQuery<GetCentricosSitesQuery> {}
457
512
 
513
+ // GET /centricos/sites/price-level/{price_level} - This returns specific properties from sites, locations, and stations connected to a menu price level. This does not support pagination, filtering, sorting, or searching.
514
+
515
+ export interface GetSitesFromPriceLevelPath {
516
+ // TODO: cannot use CompassLongID as path parameter
517
+ price_level: string;
518
+ }
519
+
520
+ export interface GetSitesFromPriceLevelQuery {
521
+ local_menu_group?: string;
522
+ // Graphql query string
523
+ _query?: string;
524
+ }
525
+
526
+ export type GetSitesFromPriceLevelResponse = GetPriceLevelSitesResponse;
527
+
528
+ export interface GetSitesFromPriceLevelRequest
529
+ extends BaseRequest,
530
+ RequestQuery<GetSitesFromPriceLevelQuery>,
531
+ GetSitesFromPriceLevelPath {}
532
+
458
533
  // GET /centricos/review/{orderId}/order-items - Get reviews for items in a given order in an array format
459
534
 
460
535
  export interface GetReviewOrderItemsPath {
@@ -476,7 +551,7 @@ export interface GetReviewOrderItemsRequest
476
551
  // GET /centricos/station/{station_id} - Get station details
477
552
 
478
553
  export interface GetCentricosStationPath {
479
- // TODO: add parameter to swagger.json
554
+ // TODO: cannot use CompassLongID as path parameter
480
555
  station_id: string;
481
556
  }
482
557
 
@@ -494,27 +569,55 @@ export interface GetCentricosStationRequest
494
569
 
495
570
  // PUT /centricos/discount/voucherify - Add or Update a voucherify discount and assign it to multiple sites
496
571
 
497
- export type PutDiscountVoucherifyBody = PutDiscountVoucherifyRequestDTO;
572
+ export type PutCentricosDiscountVoucherifyBody = PutDiscountVoucherifyRequestDTO;
498
573
 
499
- export type PutDiscountVoucherifyResponse = PutDiscountVoucherifyResponseDTO;
574
+ export type PutCentricosDiscountVoucherifyResponse = PutDiscountVoucherifyResponseDTO;
500
575
 
501
- export interface PutDiscountVoucherifyRequest extends BaseRequest {
502
- body: PutDiscountVoucherifyBody;
576
+ export interface PutCentricosDiscountVoucherifyRequest extends BaseRequest {
577
+ body: PutCentricosDiscountVoucherifyBody;
503
578
  }
504
579
 
505
580
  // PUT /centricos/discount/{id}/voucherify/publish - Update and publish a voucherify discount and assign it to multiple sites
506
581
 
507
- export interface PutDiscountVoucherifyPublishPath {
582
+ export interface PutCentricosDiscountVoucherifyPublishPath {
508
583
  // Discount ID
509
584
  id: string;
510
585
  }
511
586
 
512
- export type PutDiscountVoucherifyPublishBody = PutDiscountVoucherifyPublishRequestDTO;
587
+ export type PutCentricosDiscountVoucherifyPublishResponse = PutDiscountVoucherifyPublishResponseDTO;
588
+
589
+ export interface PutCentricosDiscountVoucherifyPublishRequest
590
+ extends BaseRequest,
591
+ PutCentricosDiscountVoucherifyPublishPath {}
592
+
593
+ // DELETE /centricos/discount/{id}/voucherify - Delete a discount from voucherify and all of its entity associations
594
+
595
+ export interface DeleteCentricosDiscountsVoucherifyPath {
596
+ // Discount ID
597
+ id: string;
598
+ }
513
599
 
514
- export type PutDiscountVoucherifyPublishResponse = PutDiscountVoucherifyPublishResponseDTO;
600
+ export type DeleteCentricosDiscountsVoucherifyResponse = DeleteDiscountsVoucherifyResponseDTO;
515
601
 
516
- export interface PutDiscountVoucherifyPublishRequest
602
+ export interface DeleteCentricosDiscountsVoucherifyRequest
517
603
  extends BaseRequest,
518
- PutDiscountVoucherifyPublishPath {
519
- body: PutDiscountVoucherifyPublishBody;
604
+ DeleteCentricosDiscountsVoucherifyPath {}
605
+
606
+ // GET /centricos/discount/{id} - Get discount information by ID
607
+
608
+ export interface GetCentricosDiscountPath {
609
+ // ID of the discount to retrieve
610
+ id: string;
611
+ }
612
+
613
+ export interface GetCentricosDiscountQuery {
614
+ // Graphql query string
615
+ _query?: string;
520
616
  }
617
+
618
+ export type GetCentricosDiscountResponse = GetDiscountResponseDTO;
619
+
620
+ export interface GetCentricosDiscountRequest
621
+ extends BaseRequest,
622
+ RequestQuery<GetCentricosDiscountQuery>,
623
+ GetCentricosDiscountPath {}