@compassdigital/sdk.typescript 4.964.0 → 4.966.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
@@ -378,6 +378,9 @@ import {
378
378
 
379
379
  import {
380
380
  GetConfigAppconfigResponse,
381
+ GetConfigAppconfigsResponse,
382
+ PatchConfigAppconfigsBody,
383
+ PatchConfigAppconfigsResponse,
381
384
  GetConfigAppClientsResponse,
382
385
  PutConfigAppClientsBody,
383
386
  PutConfigAppClientsResponse,
@@ -1655,6 +1658,22 @@ import {
1655
1658
  PostLoyaltyVouchersValidateResponse,
1656
1659
  PostLoyaltyVouchersRedeemBody,
1657
1660
  PostLoyaltyVouchersRedeemResponse,
1661
+ GetLoyaltyRewardsQuery,
1662
+ GetLoyaltyRewardsResponse,
1663
+ PostLoyaltyRewardBody,
1664
+ PostLoyaltyRewardResponse,
1665
+ GetLoyaltyRewardResponse,
1666
+ PutLoyaltyRewardBody,
1667
+ PutLoyaltyRewardResponse,
1668
+ PatchLoyaltyRewardStatusBody,
1669
+ PatchLoyaltyRewardStatusResponse,
1670
+ GetLoyaltyRewardCardsQuery,
1671
+ GetLoyaltyRewardCardsResponse,
1672
+ GetLoyaltyRewardCardResponse,
1673
+ PostLoyaltyRewardCardAdjustBody,
1674
+ PostLoyaltyRewardCardAdjustResponse,
1675
+ PostLoyaltyRewardOrderEarnBody,
1676
+ PostLoyaltyRewardOrderEarnResponse,
1658
1677
  GetLoyaltySegmentsQuery,
1659
1678
  GetLoyaltySegmentsResponse,
1660
1679
  PostLoyaltySegmentBody,
@@ -1674,22 +1693,6 @@ import {
1674
1693
  DeleteLoyaltySegmentMembersResponse,
1675
1694
  PostLoyaltyRedemptionRollbackBody,
1676
1695
  PostLoyaltyRedemptionRollbackResponse,
1677
- GetLoyaltyRewardsQuery,
1678
- GetLoyaltyRewardsResponse,
1679
- PostLoyaltyRewardBody,
1680
- PostLoyaltyRewardResponse,
1681
- GetLoyaltyRewardResponse,
1682
- PutLoyaltyRewardBody,
1683
- PutLoyaltyRewardResponse,
1684
- PatchLoyaltyRewardStatusBody,
1685
- PatchLoyaltyRewardStatusResponse,
1686
- GetLoyaltyRewardCardsQuery,
1687
- GetLoyaltyRewardCardsResponse,
1688
- GetLoyaltyRewardCardResponse,
1689
- PostLoyaltyRewardCardAdjustBody,
1690
- PostLoyaltyRewardCardAdjustResponse,
1691
- PostLoyaltyRewardOrderEarnBody,
1692
- PostLoyaltyRewardOrderEarnResponse,
1693
1696
  } from './interface/loyalty';
1694
1697
 
1695
1698
  import {
@@ -5371,6 +5374,42 @@ export class ServiceClient extends BaseServiceClient {
5371
5374
  );
5372
5375
  }
5373
5376
 
5377
+ /**
5378
+ * GET /config/appconfigs - Get the minimum app versions and app store links for every platform and app
5379
+ *
5380
+ * @param options - additional request options
5381
+ */
5382
+ get_config_appconfigs(options?: RequestOptions): ResponsePromise<GetConfigAppconfigsResponse> {
5383
+ return this.request(
5384
+ 'config',
5385
+ '/config/appconfigs',
5386
+ 'GET',
5387
+ `/config/appconfigs`,
5388
+ null,
5389
+ options,
5390
+ );
5391
+ }
5392
+
5393
+ /**
5394
+ * PATCH /config/appconfigs - Update the minimum app versions and app store links of the apps sent
5395
+ *
5396
+ * @param body
5397
+ * @param options - additional request options
5398
+ */
5399
+ patch_config_appconfigs(
5400
+ body: PatchConfigAppconfigsBody,
5401
+ options?: RequestOptions,
5402
+ ): ResponsePromise<PatchConfigAppconfigsResponse> {
5403
+ return this.request(
5404
+ 'config',
5405
+ '/config/appconfigs',
5406
+ 'PATCH',
5407
+ `/config/appconfigs`,
5408
+ body,
5409
+ options,
5410
+ );
5411
+ }
5412
+
5374
5413
  /**
5375
5414
  * GET /config/app-clients - Get the per-client exclusive access settings
5376
5415
  *
@@ -19285,418 +19324,418 @@ export class ServiceClient extends BaseServiceClient {
19285
19324
  }
19286
19325
 
19287
19326
  /**
19288
- * GET /loyalty/segments - List segments with optional filters
19327
+ * GET /loyalty/rewards - List rewards with filters and pagination
19289
19328
  *
19290
19329
  * @param options - additional request options
19291
19330
  */
19292
- get_loyalty_segments(
19331
+ get_loyalty_rewards(
19293
19332
  options?: {
19294
- query?: GetLoyaltySegmentsQuery;
19333
+ query?: GetLoyaltyRewardsQuery;
19295
19334
  } & RequestOptions,
19296
- ): ResponsePromise<GetLoyaltySegmentsResponse> {
19335
+ ): ResponsePromise<GetLoyaltyRewardsResponse> {
19297
19336
  return this.request(
19298
19337
  'loyalty',
19299
- '/loyalty/segments',
19338
+ '/loyalty/rewards',
19300
19339
  'GET',
19301
- `/loyalty/segments`,
19340
+ `/loyalty/rewards`,
19302
19341
  null,
19303
19342
  options,
19304
19343
  );
19305
19344
  }
19306
19345
 
19307
19346
  /**
19308
- * POST /loyalty/segments - Create a new segment
19347
+ * POST /loyalty/rewards - Create a reward with earning rules and milestones
19309
19348
  *
19310
19349
  * @param body
19311
19350
  * @param options - additional request options
19312
19351
  */
19313
- post_loyalty_segment(
19314
- body: PostLoyaltySegmentBody,
19352
+ post_loyalty_reward(
19353
+ body: PostLoyaltyRewardBody,
19315
19354
  options?: RequestOptions,
19316
- ): ResponsePromise<PostLoyaltySegmentResponse> {
19355
+ ): ResponsePromise<PostLoyaltyRewardResponse> {
19317
19356
  return this.request(
19318
19357
  'loyalty',
19319
- '/loyalty/segments',
19358
+ '/loyalty/rewards',
19320
19359
  'POST',
19321
- `/loyalty/segments`,
19360
+ `/loyalty/rewards`,
19322
19361
  body,
19323
19362
  options,
19324
19363
  );
19325
19364
  }
19326
19365
 
19327
19366
  /**
19328
- * GET /loyalty/segments/attributes - List available attributes for rule-based segments
19367
+ * GET /loyalty/rewards/{id} - Get reward detail with earning rules and milestones
19329
19368
  *
19369
+ * @param id
19330
19370
  * @param options - additional request options
19331
19371
  */
19332
- get_loyalty_segment_attributes(
19372
+ get_loyalty_reward(
19373
+ id: string,
19333
19374
  options?: RequestOptions,
19334
- ): ResponsePromise<GetLoyaltySegmentAttributesResponse> {
19375
+ ): ResponsePromise<GetLoyaltyRewardResponse> {
19335
19376
  return this.request(
19336
19377
  'loyalty',
19337
- '/loyalty/segments/attributes',
19378
+ '/loyalty/rewards/{id}',
19338
19379
  'GET',
19339
- `/loyalty/segments/attributes`,
19380
+ `/loyalty/rewards/${id}`,
19340
19381
  null,
19341
19382
  options,
19342
19383
  );
19343
19384
  }
19344
19385
 
19345
19386
  /**
19346
- * POST /loyalty/segments/preview-count - Preview how many customers match a segment rule
19387
+ * PUT /loyalty/rewards/{id} - Update a reward and replace its earning rules and milestones
19347
19388
  *
19389
+ * @param id
19348
19390
  * @param body
19349
19391
  * @param options - additional request options
19350
19392
  */
19351
- post_loyalty_segment_preview_count(
19352
- body: PostLoyaltySegmentPreviewCountBody,
19393
+ put_loyalty_reward(
19394
+ id: string,
19395
+ body: PutLoyaltyRewardBody,
19353
19396
  options?: RequestOptions,
19354
- ): ResponsePromise<PostLoyaltySegmentPreviewCountResponse> {
19397
+ ): ResponsePromise<PutLoyaltyRewardResponse> {
19355
19398
  return this.request(
19356
19399
  'loyalty',
19357
- '/loyalty/segments/preview-count',
19358
- 'POST',
19359
- `/loyalty/segments/preview-count`,
19400
+ '/loyalty/rewards/{id}',
19401
+ 'PUT',
19402
+ `/loyalty/rewards/${id}`,
19360
19403
  body,
19361
19404
  options,
19362
19405
  );
19363
19406
  }
19364
19407
 
19365
19408
  /**
19366
- * GET /loyalty/segments/{id} - Get segment by ID
19409
+ * PATCH /loyalty/rewards/{id}/status - Transition reward status
19367
19410
  *
19368
19411
  * @param id
19412
+ * @param body
19369
19413
  * @param options - additional request options
19370
19414
  */
19371
- get_loyalty_segment(
19415
+ patch_loyalty_reward_status(
19372
19416
  id: string,
19417
+ body: PatchLoyaltyRewardStatusBody,
19373
19418
  options?: RequestOptions,
19374
- ): ResponsePromise<GetLoyaltySegmentResponse> {
19419
+ ): ResponsePromise<PatchLoyaltyRewardStatusResponse> {
19375
19420
  return this.request(
19376
19421
  'loyalty',
19377
- '/loyalty/segments/{id}',
19378
- 'GET',
19379
- `/loyalty/segments/${id}`,
19380
- null,
19422
+ '/loyalty/rewards/{id}/status',
19423
+ 'PATCH',
19424
+ `/loyalty/rewards/${id}/status`,
19425
+ body,
19381
19426
  options,
19382
19427
  );
19383
19428
  }
19384
19429
 
19385
19430
  /**
19386
- * PATCH /loyalty/segments/{id} - Update a segment
19431
+ * GET /loyalty/rewards/{id}/cards - List enrolled customer cards for a reward
19387
19432
  *
19388
19433
  * @param id
19389
- * @param body
19390
19434
  * @param options - additional request options
19391
19435
  */
19392
- patch_loyalty_segment(
19436
+ get_loyalty_reward_cards(
19393
19437
  id: string,
19394
- body: PatchLoyaltySegmentBody,
19395
- options?: RequestOptions,
19396
- ): ResponsePromise<PatchLoyaltySegmentResponse> {
19438
+ options?: {
19439
+ query?: GetLoyaltyRewardCardsQuery;
19440
+ } & RequestOptions,
19441
+ ): ResponsePromise<GetLoyaltyRewardCardsResponse> {
19397
19442
  return this.request(
19398
19443
  'loyalty',
19399
- '/loyalty/segments/{id}',
19400
- 'PATCH',
19401
- `/loyalty/segments/${id}`,
19402
- body,
19444
+ '/loyalty/rewards/{id}/cards',
19445
+ 'GET',
19446
+ `/loyalty/rewards/${id}/cards`,
19447
+ null,
19403
19448
  options,
19404
19449
  );
19405
19450
  }
19406
19451
 
19407
19452
  /**
19408
- * DELETE /loyalty/segments/{id} - Soft-delete a segment
19453
+ * GET /loyalty/rewards/{id}/cards/{customerId} - Get card detail with transaction event history
19409
19454
  *
19410
19455
  * @param id
19456
+ * @param customerId
19411
19457
  * @param options - additional request options
19412
19458
  */
19413
- delete_loyalty_segment(
19459
+ get_loyalty_reward_card(
19414
19460
  id: string,
19461
+ customerId: string,
19415
19462
  options?: RequestOptions,
19416
- ): ResponsePromise<DeleteLoyaltySegmentResponse> {
19463
+ ): ResponsePromise<GetLoyaltyRewardCardResponse> {
19417
19464
  return this.request(
19418
19465
  'loyalty',
19419
- '/loyalty/segments/{id}',
19420
- 'DELETE',
19421
- `/loyalty/segments/${id}`,
19466
+ '/loyalty/rewards/{id}/cards/{customerId}',
19467
+ 'GET',
19468
+ `/loyalty/rewards/${id}/cards/${customerId}`,
19422
19469
  null,
19423
19470
  options,
19424
19471
  );
19425
19472
  }
19426
19473
 
19427
19474
  /**
19428
- * GET /loyalty/segments/{id}/members - List members of a static_list segment
19475
+ * POST /loyalty/rewards/cards/{cardId}/adjust - Manual point adjustment on a reward card
19429
19476
  *
19430
- * @param id
19477
+ * @param cardId
19478
+ * @param body
19431
19479
  * @param options - additional request options
19432
19480
  */
19433
- get_loyalty_segment_members(
19434
- id: string,
19435
- options?: {
19436
- query?: GetLoyaltySegmentMembersQuery;
19437
- } & RequestOptions,
19438
- ): ResponsePromise<GetLoyaltySegmentMembersResponse> {
19481
+ post_loyalty_reward_card_adjust(
19482
+ cardId: string,
19483
+ body: PostLoyaltyRewardCardAdjustBody,
19484
+ options?: RequestOptions,
19485
+ ): ResponsePromise<PostLoyaltyRewardCardAdjustResponse> {
19439
19486
  return this.request(
19440
19487
  'loyalty',
19441
- '/loyalty/segments/{id}/members',
19442
- 'GET',
19443
- `/loyalty/segments/${id}/members`,
19444
- null,
19488
+ '/loyalty/rewards/cards/{cardId}/adjust',
19489
+ 'POST',
19490
+ `/loyalty/rewards/cards/${cardId}/adjust`,
19491
+ body,
19445
19492
  options,
19446
19493
  );
19447
19494
  }
19448
19495
 
19449
19496
  /**
19450
- * POST /loyalty/segments/{id}/members - Add members to a segment
19497
+ * POST /loyalty/rewards/orders/earn - Evaluate an order against active reward rules and award points idempotently
19451
19498
  *
19452
- * @param id
19453
19499
  * @param body
19454
19500
  * @param options - additional request options
19455
19501
  */
19456
- post_loyalty_segment_members(
19457
- id: string,
19458
- body: PostLoyaltySegmentMembersBody,
19502
+ post_loyalty_reward_order_earn(
19503
+ body: PostLoyaltyRewardOrderEarnBody,
19459
19504
  options?: RequestOptions,
19460
- ): ResponsePromise<PostLoyaltySegmentMembersResponse> {
19505
+ ): ResponsePromise<PostLoyaltyRewardOrderEarnResponse> {
19461
19506
  return this.request(
19462
19507
  'loyalty',
19463
- '/loyalty/segments/{id}/members',
19508
+ '/loyalty/rewards/orders/earn',
19464
19509
  'POST',
19465
- `/loyalty/segments/${id}/members`,
19510
+ `/loyalty/rewards/orders/earn`,
19466
19511
  body,
19467
19512
  options,
19468
19513
  );
19469
19514
  }
19470
19515
 
19471
19516
  /**
19472
- * DELETE /loyalty/segments/{id}/members - Remove members from a segment
19517
+ * GET /loyalty/segments - List segments with optional filters
19473
19518
  *
19474
- * @param id
19475
- * @param body
19476
19519
  * @param options - additional request options
19477
19520
  */
19478
- delete_loyalty_segment_members(
19479
- id: string,
19480
- body: DeleteLoyaltySegmentMembersBody,
19481
- options?: RequestOptions,
19482
- ): ResponsePromise<DeleteLoyaltySegmentMembersResponse> {
19521
+ get_loyalty_segments(
19522
+ options?: {
19523
+ query?: GetLoyaltySegmentsQuery;
19524
+ } & RequestOptions,
19525
+ ): ResponsePromise<GetLoyaltySegmentsResponse> {
19483
19526
  return this.request(
19484
19527
  'loyalty',
19485
- '/loyalty/segments/{id}/members',
19486
- 'DELETE',
19487
- `/loyalty/segments/${id}/members`,
19488
- body,
19528
+ '/loyalty/segments',
19529
+ 'GET',
19530
+ `/loyalty/segments`,
19531
+ null,
19489
19532
  options,
19490
19533
  );
19491
19534
  }
19492
19535
 
19493
19536
  /**
19494
- * POST /loyalty/redemptions/{id}/rollback - Roll back a redemption and restore the voucher
19537
+ * POST /loyalty/segments - Create a new segment
19495
19538
  *
19496
- * @param id
19497
19539
  * @param body
19498
19540
  * @param options - additional request options
19499
19541
  */
19500
- post_loyalty_redemption_rollback(
19501
- id: string,
19502
- body: PostLoyaltyRedemptionRollbackBody,
19542
+ post_loyalty_segment(
19543
+ body: PostLoyaltySegmentBody,
19503
19544
  options?: RequestOptions,
19504
- ): ResponsePromise<PostLoyaltyRedemptionRollbackResponse> {
19545
+ ): ResponsePromise<PostLoyaltySegmentResponse> {
19505
19546
  return this.request(
19506
19547
  'loyalty',
19507
- '/loyalty/redemptions/{id}/rollback',
19548
+ '/loyalty/segments',
19508
19549
  'POST',
19509
- `/loyalty/redemptions/${id}/rollback`,
19550
+ `/loyalty/segments`,
19510
19551
  body,
19511
19552
  options,
19512
19553
  );
19513
19554
  }
19514
19555
 
19515
19556
  /**
19516
- * GET /loyalty/rewards - List rewards with filters and pagination
19557
+ * GET /loyalty/segments/attributes - List available attributes for rule-based segments
19517
19558
  *
19518
19559
  * @param options - additional request options
19519
19560
  */
19520
- get_loyalty_rewards(
19521
- options?: {
19522
- query?: GetLoyaltyRewardsQuery;
19523
- } & RequestOptions,
19524
- ): ResponsePromise<GetLoyaltyRewardsResponse> {
19561
+ get_loyalty_segment_attributes(
19562
+ options?: RequestOptions,
19563
+ ): ResponsePromise<GetLoyaltySegmentAttributesResponse> {
19525
19564
  return this.request(
19526
19565
  'loyalty',
19527
- '/loyalty/rewards',
19566
+ '/loyalty/segments/attributes',
19528
19567
  'GET',
19529
- `/loyalty/rewards`,
19568
+ `/loyalty/segments/attributes`,
19530
19569
  null,
19531
19570
  options,
19532
19571
  );
19533
19572
  }
19534
19573
 
19535
19574
  /**
19536
- * POST /loyalty/rewards - Create a reward with earning rules and milestones
19575
+ * POST /loyalty/segments/preview-count - Preview how many customers match a segment rule
19537
19576
  *
19538
19577
  * @param body
19539
19578
  * @param options - additional request options
19540
19579
  */
19541
- post_loyalty_reward(
19542
- body: PostLoyaltyRewardBody,
19580
+ post_loyalty_segment_preview_count(
19581
+ body: PostLoyaltySegmentPreviewCountBody,
19543
19582
  options?: RequestOptions,
19544
- ): ResponsePromise<PostLoyaltyRewardResponse> {
19583
+ ): ResponsePromise<PostLoyaltySegmentPreviewCountResponse> {
19545
19584
  return this.request(
19546
19585
  'loyalty',
19547
- '/loyalty/rewards',
19586
+ '/loyalty/segments/preview-count',
19548
19587
  'POST',
19549
- `/loyalty/rewards`,
19588
+ `/loyalty/segments/preview-count`,
19550
19589
  body,
19551
19590
  options,
19552
19591
  );
19553
19592
  }
19554
19593
 
19555
19594
  /**
19556
- * GET /loyalty/rewards/{id} - Get reward detail with earning rules and milestones
19595
+ * GET /loyalty/segments/{id} - Get segment by ID
19557
19596
  *
19558
19597
  * @param id
19559
19598
  * @param options - additional request options
19560
19599
  */
19561
- get_loyalty_reward(
19600
+ get_loyalty_segment(
19562
19601
  id: string,
19563
19602
  options?: RequestOptions,
19564
- ): ResponsePromise<GetLoyaltyRewardResponse> {
19603
+ ): ResponsePromise<GetLoyaltySegmentResponse> {
19565
19604
  return this.request(
19566
19605
  'loyalty',
19567
- '/loyalty/rewards/{id}',
19606
+ '/loyalty/segments/{id}',
19568
19607
  'GET',
19569
- `/loyalty/rewards/${id}`,
19608
+ `/loyalty/segments/${id}`,
19570
19609
  null,
19571
19610
  options,
19572
19611
  );
19573
19612
  }
19574
19613
 
19575
19614
  /**
19576
- * PUT /loyalty/rewards/{id} - Update a reward and replace its earning rules and milestones
19615
+ * PATCH /loyalty/segments/{id} - Update a segment
19577
19616
  *
19578
19617
  * @param id
19579
19618
  * @param body
19580
19619
  * @param options - additional request options
19581
19620
  */
19582
- put_loyalty_reward(
19621
+ patch_loyalty_segment(
19583
19622
  id: string,
19584
- body: PutLoyaltyRewardBody,
19623
+ body: PatchLoyaltySegmentBody,
19585
19624
  options?: RequestOptions,
19586
- ): ResponsePromise<PutLoyaltyRewardResponse> {
19625
+ ): ResponsePromise<PatchLoyaltySegmentResponse> {
19587
19626
  return this.request(
19588
19627
  'loyalty',
19589
- '/loyalty/rewards/{id}',
19590
- 'PUT',
19591
- `/loyalty/rewards/${id}`,
19628
+ '/loyalty/segments/{id}',
19629
+ 'PATCH',
19630
+ `/loyalty/segments/${id}`,
19592
19631
  body,
19593
19632
  options,
19594
19633
  );
19595
19634
  }
19596
19635
 
19597
19636
  /**
19598
- * PATCH /loyalty/rewards/{id}/status - Transition reward status
19637
+ * DELETE /loyalty/segments/{id} - Soft-delete a segment
19599
19638
  *
19600
19639
  * @param id
19601
- * @param body
19602
19640
  * @param options - additional request options
19603
19641
  */
19604
- patch_loyalty_reward_status(
19642
+ delete_loyalty_segment(
19605
19643
  id: string,
19606
- body: PatchLoyaltyRewardStatusBody,
19607
19644
  options?: RequestOptions,
19608
- ): ResponsePromise<PatchLoyaltyRewardStatusResponse> {
19645
+ ): ResponsePromise<DeleteLoyaltySegmentResponse> {
19609
19646
  return this.request(
19610
19647
  'loyalty',
19611
- '/loyalty/rewards/{id}/status',
19612
- 'PATCH',
19613
- `/loyalty/rewards/${id}/status`,
19614
- body,
19648
+ '/loyalty/segments/{id}',
19649
+ 'DELETE',
19650
+ `/loyalty/segments/${id}`,
19651
+ null,
19615
19652
  options,
19616
19653
  );
19617
19654
  }
19618
19655
 
19619
19656
  /**
19620
- * GET /loyalty/rewards/{id}/cards - List enrolled customer cards for a reward
19657
+ * GET /loyalty/segments/{id}/members - List members of a static_list segment
19621
19658
  *
19622
19659
  * @param id
19623
19660
  * @param options - additional request options
19624
19661
  */
19625
- get_loyalty_reward_cards(
19662
+ get_loyalty_segment_members(
19626
19663
  id: string,
19627
19664
  options?: {
19628
- query?: GetLoyaltyRewardCardsQuery;
19665
+ query?: GetLoyaltySegmentMembersQuery;
19629
19666
  } & RequestOptions,
19630
- ): ResponsePromise<GetLoyaltyRewardCardsResponse> {
19667
+ ): ResponsePromise<GetLoyaltySegmentMembersResponse> {
19631
19668
  return this.request(
19632
19669
  'loyalty',
19633
- '/loyalty/rewards/{id}/cards',
19670
+ '/loyalty/segments/{id}/members',
19634
19671
  'GET',
19635
- `/loyalty/rewards/${id}/cards`,
19672
+ `/loyalty/segments/${id}/members`,
19636
19673
  null,
19637
19674
  options,
19638
19675
  );
19639
19676
  }
19640
19677
 
19641
19678
  /**
19642
- * GET /loyalty/rewards/{id}/cards/{customerId} - Get card detail with transaction event history
19679
+ * POST /loyalty/segments/{id}/members - Add members to a segment
19643
19680
  *
19644
19681
  * @param id
19645
- * @param customerId
19682
+ * @param body
19646
19683
  * @param options - additional request options
19647
19684
  */
19648
- get_loyalty_reward_card(
19685
+ post_loyalty_segment_members(
19649
19686
  id: string,
19650
- customerId: string,
19687
+ body: PostLoyaltySegmentMembersBody,
19651
19688
  options?: RequestOptions,
19652
- ): ResponsePromise<GetLoyaltyRewardCardResponse> {
19689
+ ): ResponsePromise<PostLoyaltySegmentMembersResponse> {
19653
19690
  return this.request(
19654
19691
  'loyalty',
19655
- '/loyalty/rewards/{id}/cards/{customerId}',
19656
- 'GET',
19657
- `/loyalty/rewards/${id}/cards/${customerId}`,
19658
- null,
19692
+ '/loyalty/segments/{id}/members',
19693
+ 'POST',
19694
+ `/loyalty/segments/${id}/members`,
19695
+ body,
19659
19696
  options,
19660
19697
  );
19661
19698
  }
19662
19699
 
19663
19700
  /**
19664
- * POST /loyalty/rewards/cards/{cardId}/adjust - Manual point adjustment on a reward card
19701
+ * DELETE /loyalty/segments/{id}/members - Remove members from a segment
19665
19702
  *
19666
- * @param cardId
19703
+ * @param id
19667
19704
  * @param body
19668
19705
  * @param options - additional request options
19669
19706
  */
19670
- post_loyalty_reward_card_adjust(
19671
- cardId: string,
19672
- body: PostLoyaltyRewardCardAdjustBody,
19707
+ delete_loyalty_segment_members(
19708
+ id: string,
19709
+ body: DeleteLoyaltySegmentMembersBody,
19673
19710
  options?: RequestOptions,
19674
- ): ResponsePromise<PostLoyaltyRewardCardAdjustResponse> {
19711
+ ): ResponsePromise<DeleteLoyaltySegmentMembersResponse> {
19675
19712
  return this.request(
19676
19713
  'loyalty',
19677
- '/loyalty/rewards/cards/{cardId}/adjust',
19678
- 'POST',
19679
- `/loyalty/rewards/cards/${cardId}/adjust`,
19714
+ '/loyalty/segments/{id}/members',
19715
+ 'DELETE',
19716
+ `/loyalty/segments/${id}/members`,
19680
19717
  body,
19681
19718
  options,
19682
19719
  );
19683
19720
  }
19684
19721
 
19685
19722
  /**
19686
- * POST /loyalty/rewards/orders/earn - Evaluate an order against active reward rules and award points idempotently
19723
+ * POST /loyalty/redemptions/{id}/rollback - Roll back a redemption and restore the voucher
19687
19724
  *
19725
+ * @param id
19688
19726
  * @param body
19689
19727
  * @param options - additional request options
19690
19728
  */
19691
- post_loyalty_reward_order_earn(
19692
- body: PostLoyaltyRewardOrderEarnBody,
19729
+ post_loyalty_redemption_rollback(
19730
+ id: string,
19731
+ body: PostLoyaltyRedemptionRollbackBody,
19693
19732
  options?: RequestOptions,
19694
- ): ResponsePromise<PostLoyaltyRewardOrderEarnResponse> {
19733
+ ): ResponsePromise<PostLoyaltyRedemptionRollbackResponse> {
19695
19734
  return this.request(
19696
19735
  'loyalty',
19697
- '/loyalty/rewards/orders/earn',
19736
+ '/loyalty/redemptions/{id}/rollback',
19698
19737
  'POST',
19699
- `/loyalty/rewards/orders/earn`,
19738
+ `/loyalty/redemptions/${id}/rollback`,
19700
19739
  body,
19701
19740
  options,
19702
19741
  );