@compassdigital/sdk.typescript 4.598.0 → 4.600.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
@@ -1438,6 +1438,81 @@ import {
1438
1438
  PutDiscountPublishResponse,
1439
1439
  } from './interface/discount';
1440
1440
 
1441
+ import {
1442
+ GetLoyaltyBundlesQuery,
1443
+ GetLoyaltyBundlesResponse,
1444
+ PostLoyaltyBundleBody,
1445
+ PostLoyaltyBundleResponse,
1446
+ GetLoyaltyBundleResponse,
1447
+ PatchLoyaltyBundleBody,
1448
+ PatchLoyaltyBundleResponse,
1449
+ DeleteLoyaltyBundleResponse,
1450
+ GetLoyaltyCampaignsQuery,
1451
+ GetLoyaltyCampaignsResponse,
1452
+ PostLoyaltyCampaignBody,
1453
+ PostLoyaltyCampaignResponse,
1454
+ GetLoyaltyCampaignResponse,
1455
+ PutLoyaltyCampaignBody,
1456
+ PutLoyaltyCampaignResponse,
1457
+ DeleteLoyaltyCampaignResponse,
1458
+ PatchLoyaltyCampaignStatusBody,
1459
+ PatchLoyaltyCampaignStatusResponse,
1460
+ PostLoyaltyCampaignCloneResponse,
1461
+ GetLoyaltyVouchersQuery,
1462
+ GetLoyaltyVouchersResponse,
1463
+ PostLoyaltyVoucherBody,
1464
+ PostLoyaltyVoucherResponse,
1465
+ GetLoyaltyVoucherResponse,
1466
+ PutLoyaltyVoucherBody,
1467
+ PutLoyaltyVoucherResponse,
1468
+ DeleteLoyaltyVoucherResponse,
1469
+ PostLoyaltyVoucherRevokeBody,
1470
+ PostLoyaltyVoucherRevokeResponse,
1471
+ PostLoyaltyVouchersBatchBody,
1472
+ PostLoyaltyVouchersBatchResponse,
1473
+ GetLoyaltyVoucherRedemptionsQuery,
1474
+ GetLoyaltyVoucherRedemptionsResponse,
1475
+ PostLoyaltyVouchersValidateBody,
1476
+ PostLoyaltyVouchersValidateResponse,
1477
+ PostLoyaltyVouchersRedeemBody,
1478
+ PostLoyaltyVouchersRedeemResponse,
1479
+ GetLoyaltySegmentsQuery,
1480
+ GetLoyaltySegmentsResponse,
1481
+ PostLoyaltySegmentBody,
1482
+ PostLoyaltySegmentResponse,
1483
+ GetLoyaltySegmentAttributesResponse,
1484
+ PostLoyaltySegmentPreviewCountBody,
1485
+ PostLoyaltySegmentPreviewCountResponse,
1486
+ GetLoyaltySegmentResponse,
1487
+ PatchLoyaltySegmentBody,
1488
+ PatchLoyaltySegmentResponse,
1489
+ DeleteLoyaltySegmentResponse,
1490
+ GetLoyaltySegmentMembersQuery,
1491
+ GetLoyaltySegmentMembersResponse,
1492
+ PostLoyaltySegmentMembersBody,
1493
+ PostLoyaltySegmentMembersResponse,
1494
+ DeleteLoyaltySegmentMembersBody,
1495
+ DeleteLoyaltySegmentMembersResponse,
1496
+ PostLoyaltyRedemptionRollbackBody,
1497
+ PostLoyaltyRedemptionRollbackResponse,
1498
+ GetLoyaltyRewardsQuery,
1499
+ GetLoyaltyRewardsResponse,
1500
+ PostLoyaltyRewardBody,
1501
+ PostLoyaltyRewardResponse,
1502
+ GetLoyaltyRewardResponse,
1503
+ PutLoyaltyRewardBody,
1504
+ PutLoyaltyRewardResponse,
1505
+ PatchLoyaltyRewardStatusBody,
1506
+ PatchLoyaltyRewardStatusResponse,
1507
+ GetLoyaltyRewardCardsQuery,
1508
+ GetLoyaltyRewardCardsResponse,
1509
+ GetLoyaltyRewardCardResponse,
1510
+ PostLoyaltyRewardCardAdjustBody,
1511
+ PostLoyaltyRewardCardAdjustResponse,
1512
+ PostLoyaltyRewardOrderEarnBody,
1513
+ PostLoyaltyRewardOrderEarnResponse,
1514
+ } from './interface/loyalty';
1515
+
1441
1516
  import {
1442
1517
  GetTimeslotsBrandQuery,
1443
1518
  GetTimeslotsBrandResponse,
@@ -16251,6 +16326,876 @@ export class ServiceClient extends BaseServiceClient {
16251
16326
  );
16252
16327
  }
16253
16328
 
16329
+ /**
16330
+ * GET /loyalty/bundles - List bundles with optional filters
16331
+ *
16332
+ * @param options - additional request options
16333
+ */
16334
+ get_loyalty_bundles(
16335
+ options?: {
16336
+ query?: GetLoyaltyBundlesQuery;
16337
+ } & RequestOptions,
16338
+ ): ResponsePromise<GetLoyaltyBundlesResponse> {
16339
+ return this.request(
16340
+ 'loyalty',
16341
+ '/loyalty/bundles',
16342
+ 'GET',
16343
+ `/loyalty/bundles`,
16344
+ null,
16345
+ options,
16346
+ );
16347
+ }
16348
+
16349
+ /**
16350
+ * POST /loyalty/bundles - Create a new bundle
16351
+ *
16352
+ * @param body
16353
+ * @param options - additional request options
16354
+ */
16355
+ post_loyalty_bundle(
16356
+ body: PostLoyaltyBundleBody,
16357
+ options?: RequestOptions,
16358
+ ): ResponsePromise<PostLoyaltyBundleResponse> {
16359
+ return this.request(
16360
+ 'loyalty',
16361
+ '/loyalty/bundles',
16362
+ 'POST',
16363
+ `/loyalty/bundles`,
16364
+ body,
16365
+ options,
16366
+ );
16367
+ }
16368
+
16369
+ /**
16370
+ * GET /loyalty/bundles/{id} - Get bundle by ID with groups
16371
+ *
16372
+ * @param id
16373
+ * @param options - additional request options
16374
+ */
16375
+ get_loyalty_bundle(
16376
+ id: string,
16377
+ options?: RequestOptions,
16378
+ ): ResponsePromise<GetLoyaltyBundleResponse> {
16379
+ return this.request(
16380
+ 'loyalty',
16381
+ '/loyalty/bundles/{id}',
16382
+ 'GET',
16383
+ `/loyalty/bundles/${id}`,
16384
+ null,
16385
+ options,
16386
+ );
16387
+ }
16388
+
16389
+ /**
16390
+ * PATCH /loyalty/bundles/{id} - Update a bundle
16391
+ *
16392
+ * @param id
16393
+ * @param body
16394
+ * @param options - additional request options
16395
+ */
16396
+ patch_loyalty_bundle(
16397
+ id: string,
16398
+ body: PatchLoyaltyBundleBody,
16399
+ options?: RequestOptions,
16400
+ ): ResponsePromise<PatchLoyaltyBundleResponse> {
16401
+ return this.request(
16402
+ 'loyalty',
16403
+ '/loyalty/bundles/{id}',
16404
+ 'PATCH',
16405
+ `/loyalty/bundles/${id}`,
16406
+ body,
16407
+ options,
16408
+ );
16409
+ }
16410
+
16411
+ /**
16412
+ * DELETE /loyalty/bundles/{id} - Soft-delete a bundle
16413
+ *
16414
+ * @param id
16415
+ * @param options - additional request options
16416
+ */
16417
+ delete_loyalty_bundle(
16418
+ id: string,
16419
+ options?: RequestOptions,
16420
+ ): ResponsePromise<DeleteLoyaltyBundleResponse> {
16421
+ return this.request(
16422
+ 'loyalty',
16423
+ '/loyalty/bundles/{id}',
16424
+ 'DELETE',
16425
+ `/loyalty/bundles/${id}`,
16426
+ null,
16427
+ options,
16428
+ );
16429
+ }
16430
+
16431
+ /**
16432
+ * GET /loyalty/campaigns - List campaigns with filters and pagination
16433
+ *
16434
+ * @param options - additional request options
16435
+ */
16436
+ get_loyalty_campaigns(
16437
+ options?: {
16438
+ query?: GetLoyaltyCampaignsQuery;
16439
+ } & RequestOptions,
16440
+ ): ResponsePromise<GetLoyaltyCampaignsResponse> {
16441
+ return this.request(
16442
+ 'loyalty',
16443
+ '/loyalty/campaigns',
16444
+ 'GET',
16445
+ `/loyalty/campaigns`,
16446
+ null,
16447
+ options,
16448
+ );
16449
+ }
16450
+
16451
+ /**
16452
+ * POST /loyalty/campaigns - Create a campaign with nested child entities
16453
+ *
16454
+ * @param body
16455
+ * @param options - additional request options
16456
+ */
16457
+ post_loyalty_campaign(
16458
+ body: PostLoyaltyCampaignBody,
16459
+ options?: RequestOptions,
16460
+ ): ResponsePromise<PostLoyaltyCampaignResponse> {
16461
+ return this.request(
16462
+ 'loyalty',
16463
+ '/loyalty/campaigns',
16464
+ 'POST',
16465
+ `/loyalty/campaigns`,
16466
+ body,
16467
+ options,
16468
+ );
16469
+ }
16470
+
16471
+ /**
16472
+ * GET /loyalty/campaigns/{id} - Get campaign detail with all child entities
16473
+ *
16474
+ * @param id
16475
+ * @param options - additional request options
16476
+ */
16477
+ get_loyalty_campaign(
16478
+ id: string,
16479
+ options?: RequestOptions,
16480
+ ): ResponsePromise<GetLoyaltyCampaignResponse> {
16481
+ return this.request(
16482
+ 'loyalty',
16483
+ '/loyalty/campaigns/{id}',
16484
+ 'GET',
16485
+ `/loyalty/campaigns/${id}`,
16486
+ null,
16487
+ options,
16488
+ );
16489
+ }
16490
+
16491
+ /**
16492
+ * PUT /loyalty/campaigns/{id} - Update a campaign and its child entities
16493
+ *
16494
+ * @param id
16495
+ * @param body
16496
+ * @param options - additional request options
16497
+ */
16498
+ put_loyalty_campaign(
16499
+ id: string,
16500
+ body: PutLoyaltyCampaignBody,
16501
+ options?: RequestOptions,
16502
+ ): ResponsePromise<PutLoyaltyCampaignResponse> {
16503
+ return this.request(
16504
+ 'loyalty',
16505
+ '/loyalty/campaigns/{id}',
16506
+ 'PUT',
16507
+ `/loyalty/campaigns/${id}`,
16508
+ body,
16509
+ options,
16510
+ );
16511
+ }
16512
+
16513
+ /**
16514
+ * DELETE /loyalty/campaigns/{id} - Soft-delete a campaign
16515
+ *
16516
+ * @param id
16517
+ * @param options - additional request options
16518
+ */
16519
+ delete_loyalty_campaign(
16520
+ id: string,
16521
+ options?: RequestOptions,
16522
+ ): ResponsePromise<DeleteLoyaltyCampaignResponse> {
16523
+ return this.request(
16524
+ 'loyalty',
16525
+ '/loyalty/campaigns/{id}',
16526
+ 'DELETE',
16527
+ `/loyalty/campaigns/${id}`,
16528
+ null,
16529
+ options,
16530
+ );
16531
+ }
16532
+
16533
+ /**
16534
+ * PATCH /loyalty/campaigns/{id}/status - Transition campaign status
16535
+ *
16536
+ * @param id
16537
+ * @param body
16538
+ * @param options - additional request options
16539
+ */
16540
+ patch_loyalty_campaign_status(
16541
+ id: string,
16542
+ body: PatchLoyaltyCampaignStatusBody,
16543
+ options?: RequestOptions,
16544
+ ): ResponsePromise<PatchLoyaltyCampaignStatusResponse> {
16545
+ return this.request(
16546
+ 'loyalty',
16547
+ '/loyalty/campaigns/{id}/status',
16548
+ 'PATCH',
16549
+ `/loyalty/campaigns/${id}/status`,
16550
+ body,
16551
+ options,
16552
+ );
16553
+ }
16554
+
16555
+ /**
16556
+ * POST /loyalty/campaigns/{id}/clone - Deep clone a campaign and all child entities
16557
+ *
16558
+ * @param id
16559
+ * @param options - additional request options
16560
+ */
16561
+ post_loyalty_campaign_clone(
16562
+ id: string,
16563
+ options?: RequestOptions,
16564
+ ): ResponsePromise<PostLoyaltyCampaignCloneResponse> {
16565
+ return this.request(
16566
+ 'loyalty',
16567
+ '/loyalty/campaigns/{id}/clone',
16568
+ 'POST',
16569
+ `/loyalty/campaigns/${id}/clone`,
16570
+ null,
16571
+ options,
16572
+ );
16573
+ }
16574
+
16575
+ /**
16576
+ * GET /loyalty/vouchers - List vouchers with optional filters
16577
+ *
16578
+ * @param options - additional request options
16579
+ */
16580
+ get_loyalty_vouchers(
16581
+ options?: {
16582
+ query?: GetLoyaltyVouchersQuery;
16583
+ } & RequestOptions,
16584
+ ): ResponsePromise<GetLoyaltyVouchersResponse> {
16585
+ return this.request(
16586
+ 'loyalty',
16587
+ '/loyalty/vouchers',
16588
+ 'GET',
16589
+ `/loyalty/vouchers`,
16590
+ null,
16591
+ options,
16592
+ );
16593
+ }
16594
+
16595
+ /**
16596
+ * POST /loyalty/vouchers - Create a single voucher
16597
+ *
16598
+ * @param body
16599
+ * @param options - additional request options
16600
+ */
16601
+ post_loyalty_voucher(
16602
+ body: PostLoyaltyVoucherBody,
16603
+ options?: RequestOptions,
16604
+ ): ResponsePromise<PostLoyaltyVoucherResponse> {
16605
+ return this.request(
16606
+ 'loyalty',
16607
+ '/loyalty/vouchers',
16608
+ 'POST',
16609
+ `/loyalty/vouchers`,
16610
+ body,
16611
+ options,
16612
+ );
16613
+ }
16614
+
16615
+ /**
16616
+ * GET /loyalty/vouchers/{id} - Get voucher by ID with campaign info and redemption count
16617
+ *
16618
+ * @param id
16619
+ * @param options - additional request options
16620
+ */
16621
+ get_loyalty_voucher(
16622
+ id: string,
16623
+ options?: RequestOptions,
16624
+ ): ResponsePromise<GetLoyaltyVoucherResponse> {
16625
+ return this.request(
16626
+ 'loyalty',
16627
+ '/loyalty/vouchers/{id}',
16628
+ 'GET',
16629
+ `/loyalty/vouchers/${id}`,
16630
+ null,
16631
+ options,
16632
+ );
16633
+ }
16634
+
16635
+ /**
16636
+ * PUT /loyalty/vouchers/{id} - Update a voucher
16637
+ *
16638
+ * @param id
16639
+ * @param body
16640
+ * @param options - additional request options
16641
+ */
16642
+ put_loyalty_voucher(
16643
+ id: string,
16644
+ body: PutLoyaltyVoucherBody,
16645
+ options?: RequestOptions,
16646
+ ): ResponsePromise<PutLoyaltyVoucherResponse> {
16647
+ return this.request(
16648
+ 'loyalty',
16649
+ '/loyalty/vouchers/{id}',
16650
+ 'PUT',
16651
+ `/loyalty/vouchers/${id}`,
16652
+ body,
16653
+ options,
16654
+ );
16655
+ }
16656
+
16657
+ /**
16658
+ * DELETE /loyalty/vouchers/{id} - Soft-delete a voucher
16659
+ *
16660
+ * @param id
16661
+ * @param options - additional request options
16662
+ */
16663
+ delete_loyalty_voucher(
16664
+ id: string,
16665
+ options?: RequestOptions,
16666
+ ): ResponsePromise<DeleteLoyaltyVoucherResponse> {
16667
+ return this.request(
16668
+ 'loyalty',
16669
+ '/loyalty/vouchers/{id}',
16670
+ 'DELETE',
16671
+ `/loyalty/vouchers/${id}`,
16672
+ null,
16673
+ options,
16674
+ );
16675
+ }
16676
+
16677
+ /**
16678
+ * POST /loyalty/vouchers/{id}/revoke - Revoke a voucher with a required reason
16679
+ *
16680
+ * @param id
16681
+ * @param body
16682
+ * @param options - additional request options
16683
+ */
16684
+ post_loyalty_voucher_revoke(
16685
+ id: string,
16686
+ body: PostLoyaltyVoucherRevokeBody,
16687
+ options?: RequestOptions,
16688
+ ): ResponsePromise<PostLoyaltyVoucherRevokeResponse> {
16689
+ return this.request(
16690
+ 'loyalty',
16691
+ '/loyalty/vouchers/{id}/revoke',
16692
+ 'POST',
16693
+ `/loyalty/vouchers/${id}/revoke`,
16694
+ body,
16695
+ options,
16696
+ );
16697
+ }
16698
+
16699
+ /**
16700
+ * POST /loyalty/vouchers/batch - Batch generate voucher codes for a campaign
16701
+ *
16702
+ * @param body
16703
+ * @param options - additional request options
16704
+ */
16705
+ post_loyalty_vouchers_batch(
16706
+ body: PostLoyaltyVouchersBatchBody,
16707
+ options?: RequestOptions,
16708
+ ): ResponsePromise<PostLoyaltyVouchersBatchResponse> {
16709
+ return this.request(
16710
+ 'loyalty',
16711
+ '/loyalty/vouchers/batch',
16712
+ 'POST',
16713
+ `/loyalty/vouchers/batch`,
16714
+ body,
16715
+ options,
16716
+ );
16717
+ }
16718
+
16719
+ /**
16720
+ * GET /loyalty/vouchers/{id}/redemptions - Get redemption history for a voucher
16721
+ *
16722
+ * @param id
16723
+ * @param options - additional request options
16724
+ */
16725
+ get_loyalty_voucher_redemptions(
16726
+ id: string,
16727
+ options?: {
16728
+ query?: GetLoyaltyVoucherRedemptionsQuery;
16729
+ } & RequestOptions,
16730
+ ): ResponsePromise<GetLoyaltyVoucherRedemptionsResponse> {
16731
+ return this.request(
16732
+ 'loyalty',
16733
+ '/loyalty/vouchers/{id}/redemptions',
16734
+ 'GET',
16735
+ `/loyalty/vouchers/${id}/redemptions`,
16736
+ null,
16737
+ options,
16738
+ );
16739
+ }
16740
+
16741
+ /**
16742
+ * POST /loyalty/vouchers/validate - Validate one or more voucher codes
16743
+ *
16744
+ * @param body
16745
+ * @param options - additional request options
16746
+ */
16747
+ post_loyalty_vouchers_validate(
16748
+ body: PostLoyaltyVouchersValidateBody,
16749
+ options?: RequestOptions,
16750
+ ): ResponsePromise<PostLoyaltyVouchersValidateResponse> {
16751
+ return this.request(
16752
+ 'loyalty',
16753
+ '/loyalty/vouchers/validate',
16754
+ 'POST',
16755
+ `/loyalty/vouchers/validate`,
16756
+ body,
16757
+ options,
16758
+ );
16759
+ }
16760
+
16761
+ /**
16762
+ * POST /loyalty/vouchers/redeem - Redeem one or more voucher codes
16763
+ *
16764
+ * @param body
16765
+ * @param options - additional request options
16766
+ */
16767
+ post_loyalty_vouchers_redeem(
16768
+ body: PostLoyaltyVouchersRedeemBody,
16769
+ options?: RequestOptions,
16770
+ ): ResponsePromise<PostLoyaltyVouchersRedeemResponse> {
16771
+ return this.request(
16772
+ 'loyalty',
16773
+ '/loyalty/vouchers/redeem',
16774
+ 'POST',
16775
+ `/loyalty/vouchers/redeem`,
16776
+ body,
16777
+ options,
16778
+ );
16779
+ }
16780
+
16781
+ /**
16782
+ * GET /loyalty/segments - List segments with optional filters
16783
+ *
16784
+ * @param options - additional request options
16785
+ */
16786
+ get_loyalty_segments(
16787
+ options?: {
16788
+ query?: GetLoyaltySegmentsQuery;
16789
+ } & RequestOptions,
16790
+ ): ResponsePromise<GetLoyaltySegmentsResponse> {
16791
+ return this.request(
16792
+ 'loyalty',
16793
+ '/loyalty/segments',
16794
+ 'GET',
16795
+ `/loyalty/segments`,
16796
+ null,
16797
+ options,
16798
+ );
16799
+ }
16800
+
16801
+ /**
16802
+ * POST /loyalty/segments - Create a new segment
16803
+ *
16804
+ * @param body
16805
+ * @param options - additional request options
16806
+ */
16807
+ post_loyalty_segment(
16808
+ body: PostLoyaltySegmentBody,
16809
+ options?: RequestOptions,
16810
+ ): ResponsePromise<PostLoyaltySegmentResponse> {
16811
+ return this.request(
16812
+ 'loyalty',
16813
+ '/loyalty/segments',
16814
+ 'POST',
16815
+ `/loyalty/segments`,
16816
+ body,
16817
+ options,
16818
+ );
16819
+ }
16820
+
16821
+ /**
16822
+ * GET /loyalty/segments/attributes - List available attributes for rule-based segments
16823
+ *
16824
+ * @param options - additional request options
16825
+ */
16826
+ get_loyalty_segment_attributes(
16827
+ options?: RequestOptions,
16828
+ ): ResponsePromise<GetLoyaltySegmentAttributesResponse> {
16829
+ return this.request(
16830
+ 'loyalty',
16831
+ '/loyalty/segments/attributes',
16832
+ 'GET',
16833
+ `/loyalty/segments/attributes`,
16834
+ null,
16835
+ options,
16836
+ );
16837
+ }
16838
+
16839
+ /**
16840
+ * POST /loyalty/segments/preview-count - Preview how many customers match a segment rule
16841
+ *
16842
+ * @param body
16843
+ * @param options - additional request options
16844
+ */
16845
+ post_loyalty_segment_preview_count(
16846
+ body: PostLoyaltySegmentPreviewCountBody,
16847
+ options?: RequestOptions,
16848
+ ): ResponsePromise<PostLoyaltySegmentPreviewCountResponse> {
16849
+ return this.request(
16850
+ 'loyalty',
16851
+ '/loyalty/segments/preview-count',
16852
+ 'POST',
16853
+ `/loyalty/segments/preview-count`,
16854
+ body,
16855
+ options,
16856
+ );
16857
+ }
16858
+
16859
+ /**
16860
+ * GET /loyalty/segments/{id} - Get segment by ID
16861
+ *
16862
+ * @param id
16863
+ * @param options - additional request options
16864
+ */
16865
+ get_loyalty_segment(
16866
+ id: string,
16867
+ options?: RequestOptions,
16868
+ ): ResponsePromise<GetLoyaltySegmentResponse> {
16869
+ return this.request(
16870
+ 'loyalty',
16871
+ '/loyalty/segments/{id}',
16872
+ 'GET',
16873
+ `/loyalty/segments/${id}`,
16874
+ null,
16875
+ options,
16876
+ );
16877
+ }
16878
+
16879
+ /**
16880
+ * PATCH /loyalty/segments/{id} - Update a segment
16881
+ *
16882
+ * @param id
16883
+ * @param body
16884
+ * @param options - additional request options
16885
+ */
16886
+ patch_loyalty_segment(
16887
+ id: string,
16888
+ body: PatchLoyaltySegmentBody,
16889
+ options?: RequestOptions,
16890
+ ): ResponsePromise<PatchLoyaltySegmentResponse> {
16891
+ return this.request(
16892
+ 'loyalty',
16893
+ '/loyalty/segments/{id}',
16894
+ 'PATCH',
16895
+ `/loyalty/segments/${id}`,
16896
+ body,
16897
+ options,
16898
+ );
16899
+ }
16900
+
16901
+ /**
16902
+ * DELETE /loyalty/segments/{id} - Soft-delete a segment
16903
+ *
16904
+ * @param id
16905
+ * @param options - additional request options
16906
+ */
16907
+ delete_loyalty_segment(
16908
+ id: string,
16909
+ options?: RequestOptions,
16910
+ ): ResponsePromise<DeleteLoyaltySegmentResponse> {
16911
+ return this.request(
16912
+ 'loyalty',
16913
+ '/loyalty/segments/{id}',
16914
+ 'DELETE',
16915
+ `/loyalty/segments/${id}`,
16916
+ null,
16917
+ options,
16918
+ );
16919
+ }
16920
+
16921
+ /**
16922
+ * GET /loyalty/segments/{id}/members - List members of a static_list segment
16923
+ *
16924
+ * @param id
16925
+ * @param options - additional request options
16926
+ */
16927
+ get_loyalty_segment_members(
16928
+ id: string,
16929
+ options?: {
16930
+ query?: GetLoyaltySegmentMembersQuery;
16931
+ } & RequestOptions,
16932
+ ): ResponsePromise<GetLoyaltySegmentMembersResponse> {
16933
+ return this.request(
16934
+ 'loyalty',
16935
+ '/loyalty/segments/{id}/members',
16936
+ 'GET',
16937
+ `/loyalty/segments/${id}/members`,
16938
+ null,
16939
+ options,
16940
+ );
16941
+ }
16942
+
16943
+ /**
16944
+ * POST /loyalty/segments/{id}/members - Add members to a segment
16945
+ *
16946
+ * @param id
16947
+ * @param body
16948
+ * @param options - additional request options
16949
+ */
16950
+ post_loyalty_segment_members(
16951
+ id: string,
16952
+ body: PostLoyaltySegmentMembersBody,
16953
+ options?: RequestOptions,
16954
+ ): ResponsePromise<PostLoyaltySegmentMembersResponse> {
16955
+ return this.request(
16956
+ 'loyalty',
16957
+ '/loyalty/segments/{id}/members',
16958
+ 'POST',
16959
+ `/loyalty/segments/${id}/members`,
16960
+ body,
16961
+ options,
16962
+ );
16963
+ }
16964
+
16965
+ /**
16966
+ * DELETE /loyalty/segments/{id}/members - Remove members from a segment
16967
+ *
16968
+ * @param id
16969
+ * @param body
16970
+ * @param options - additional request options
16971
+ */
16972
+ delete_loyalty_segment_members(
16973
+ id: string,
16974
+ body: DeleteLoyaltySegmentMembersBody,
16975
+ options?: RequestOptions,
16976
+ ): ResponsePromise<DeleteLoyaltySegmentMembersResponse> {
16977
+ return this.request(
16978
+ 'loyalty',
16979
+ '/loyalty/segments/{id}/members',
16980
+ 'DELETE',
16981
+ `/loyalty/segments/${id}/members`,
16982
+ body,
16983
+ options,
16984
+ );
16985
+ }
16986
+
16987
+ /**
16988
+ * POST /loyalty/redemptions/{id}/rollback - Roll back a redemption and restore the voucher
16989
+ *
16990
+ * @param id
16991
+ * @param body
16992
+ * @param options - additional request options
16993
+ */
16994
+ post_loyalty_redemption_rollback(
16995
+ id: string,
16996
+ body: PostLoyaltyRedemptionRollbackBody,
16997
+ options?: RequestOptions,
16998
+ ): ResponsePromise<PostLoyaltyRedemptionRollbackResponse> {
16999
+ return this.request(
17000
+ 'loyalty',
17001
+ '/loyalty/redemptions/{id}/rollback',
17002
+ 'POST',
17003
+ `/loyalty/redemptions/${id}/rollback`,
17004
+ body,
17005
+ options,
17006
+ );
17007
+ }
17008
+
17009
+ /**
17010
+ * GET /loyalty/rewards - List rewards with filters and pagination
17011
+ *
17012
+ * @param options - additional request options
17013
+ */
17014
+ get_loyalty_rewards(
17015
+ options?: {
17016
+ query?: GetLoyaltyRewardsQuery;
17017
+ } & RequestOptions,
17018
+ ): ResponsePromise<GetLoyaltyRewardsResponse> {
17019
+ return this.request(
17020
+ 'loyalty',
17021
+ '/loyalty/rewards',
17022
+ 'GET',
17023
+ `/loyalty/rewards`,
17024
+ null,
17025
+ options,
17026
+ );
17027
+ }
17028
+
17029
+ /**
17030
+ * POST /loyalty/rewards - Create a reward with earning rules and milestones
17031
+ *
17032
+ * @param body
17033
+ * @param options - additional request options
17034
+ */
17035
+ post_loyalty_reward(
17036
+ body: PostLoyaltyRewardBody,
17037
+ options?: RequestOptions,
17038
+ ): ResponsePromise<PostLoyaltyRewardResponse> {
17039
+ return this.request(
17040
+ 'loyalty',
17041
+ '/loyalty/rewards',
17042
+ 'POST',
17043
+ `/loyalty/rewards`,
17044
+ body,
17045
+ options,
17046
+ );
17047
+ }
17048
+
17049
+ /**
17050
+ * GET /loyalty/rewards/{id} - Get reward detail with earning rules and milestones
17051
+ *
17052
+ * @param id
17053
+ * @param options - additional request options
17054
+ */
17055
+ get_loyalty_reward(
17056
+ id: string,
17057
+ options?: RequestOptions,
17058
+ ): ResponsePromise<GetLoyaltyRewardResponse> {
17059
+ return this.request(
17060
+ 'loyalty',
17061
+ '/loyalty/rewards/{id}',
17062
+ 'GET',
17063
+ `/loyalty/rewards/${id}`,
17064
+ null,
17065
+ options,
17066
+ );
17067
+ }
17068
+
17069
+ /**
17070
+ * PUT /loyalty/rewards/{id} - Update a reward and replace its earning rules and milestones
17071
+ *
17072
+ * @param id
17073
+ * @param body
17074
+ * @param options - additional request options
17075
+ */
17076
+ put_loyalty_reward(
17077
+ id: string,
17078
+ body: PutLoyaltyRewardBody,
17079
+ options?: RequestOptions,
17080
+ ): ResponsePromise<PutLoyaltyRewardResponse> {
17081
+ return this.request(
17082
+ 'loyalty',
17083
+ '/loyalty/rewards/{id}',
17084
+ 'PUT',
17085
+ `/loyalty/rewards/${id}`,
17086
+ body,
17087
+ options,
17088
+ );
17089
+ }
17090
+
17091
+ /**
17092
+ * PATCH /loyalty/rewards/{id}/status - Transition reward status
17093
+ *
17094
+ * @param id
17095
+ * @param body
17096
+ * @param options - additional request options
17097
+ */
17098
+ patch_loyalty_reward_status(
17099
+ id: string,
17100
+ body: PatchLoyaltyRewardStatusBody,
17101
+ options?: RequestOptions,
17102
+ ): ResponsePromise<PatchLoyaltyRewardStatusResponse> {
17103
+ return this.request(
17104
+ 'loyalty',
17105
+ '/loyalty/rewards/{id}/status',
17106
+ 'PATCH',
17107
+ `/loyalty/rewards/${id}/status`,
17108
+ body,
17109
+ options,
17110
+ );
17111
+ }
17112
+
17113
+ /**
17114
+ * GET /loyalty/rewards/{id}/cards - List enrolled customer cards for a reward
17115
+ *
17116
+ * @param id
17117
+ * @param options - additional request options
17118
+ */
17119
+ get_loyalty_reward_cards(
17120
+ id: string,
17121
+ options?: {
17122
+ query?: GetLoyaltyRewardCardsQuery;
17123
+ } & RequestOptions,
17124
+ ): ResponsePromise<GetLoyaltyRewardCardsResponse> {
17125
+ return this.request(
17126
+ 'loyalty',
17127
+ '/loyalty/rewards/{id}/cards',
17128
+ 'GET',
17129
+ `/loyalty/rewards/${id}/cards`,
17130
+ null,
17131
+ options,
17132
+ );
17133
+ }
17134
+
17135
+ /**
17136
+ * GET /loyalty/rewards/{id}/cards/{customerId} - Get card detail with transaction event history
17137
+ *
17138
+ * @param id
17139
+ * @param customerId
17140
+ * @param options - additional request options
17141
+ */
17142
+ get_loyalty_reward_card(
17143
+ id: string,
17144
+ customerId: string,
17145
+ options?: RequestOptions,
17146
+ ): ResponsePromise<GetLoyaltyRewardCardResponse> {
17147
+ return this.request(
17148
+ 'loyalty',
17149
+ '/loyalty/rewards/{id}/cards/{customerId}',
17150
+ 'GET',
17151
+ `/loyalty/rewards/${id}/cards/${customerId}`,
17152
+ null,
17153
+ options,
17154
+ );
17155
+ }
17156
+
17157
+ /**
17158
+ * POST /loyalty/rewards/cards/{cardId}/adjust - Manual point adjustment on a reward card
17159
+ *
17160
+ * @param cardId
17161
+ * @param body
17162
+ * @param options - additional request options
17163
+ */
17164
+ post_loyalty_reward_card_adjust(
17165
+ cardId: string,
17166
+ body: PostLoyaltyRewardCardAdjustBody,
17167
+ options?: RequestOptions,
17168
+ ): ResponsePromise<PostLoyaltyRewardCardAdjustResponse> {
17169
+ return this.request(
17170
+ 'loyalty',
17171
+ '/loyalty/rewards/cards/{cardId}/adjust',
17172
+ 'POST',
17173
+ `/loyalty/rewards/cards/${cardId}/adjust`,
17174
+ body,
17175
+ options,
17176
+ );
17177
+ }
17178
+
17179
+ /**
17180
+ * POST /loyalty/rewards/orders/earn - Evaluate an order against active reward rules and award points idempotently
17181
+ *
17182
+ * @param body
17183
+ * @param options - additional request options
17184
+ */
17185
+ post_loyalty_reward_order_earn(
17186
+ body: PostLoyaltyRewardOrderEarnBody,
17187
+ options?: RequestOptions,
17188
+ ): ResponsePromise<PostLoyaltyRewardOrderEarnResponse> {
17189
+ return this.request(
17190
+ 'loyalty',
17191
+ '/loyalty/rewards/orders/earn',
17192
+ 'POST',
17193
+ `/loyalty/rewards/orders/earn`,
17194
+ body,
17195
+ options,
17196
+ );
17197
+ }
17198
+
16254
17199
  /**
16255
17200
  * GET /timeslots/brand/{brandId} - Get timeslots for brand
16256
17201
  *