@zenglobal/api-client 1.0.0 → 2.0.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.
@@ -21,7 +21,7 @@ import { client } from './client.gen.js';
21
21
  */
22
22
  export const smsSendSms = (options) => (options.client ?? client).post({
23
23
  security: [{ scheme: 'basic', type: 'http' }],
24
- url: '/SMS',
24
+ url: '/v1/SMS',
25
25
  ...options,
26
26
  headers: {
27
27
  'Content-Type': 'application/json',
@@ -42,7 +42,7 @@ export const smsSendSms = (options) => (options.client ?? client).post({
42
42
  */
43
43
  export const smsGetSmsBalance = (options) => (options.client ?? client).get({
44
44
  security: [{ scheme: 'basic', type: 'http' }],
45
- url: '/SMS/balance/{site}',
45
+ url: '/v1/SMS/balance/{site}',
46
46
  ...options
47
47
  });
48
48
  /**
@@ -60,7 +60,7 @@ export const smsGetSmsBalance = (options) => (options.client ?? client).get({
60
60
  */
61
61
  export const smsGetSmsReplies = (options) => (options.client ?? client).get({
62
62
  security: [{ scheme: 'basic', type: 'http' }],
63
- url: '/SMS/replies/{site}',
63
+ url: '/v1/SMS/replies/{site}',
64
64
  ...options
65
65
  });
66
66
  /**
@@ -79,7 +79,7 @@ export const smsGetSmsReplies = (options) => (options.client ?? client).get({
79
79
  */
80
80
  export const smsGetSmsResponses = (options) => (options.client ?? client).get({
81
81
  security: [{ scheme: 'basic', type: 'http' }],
82
- url: '/SMS/response/{site}',
82
+ url: '/v1/SMS/response/{site}',
83
83
  ...options
84
84
  });
85
85
  /**
@@ -98,7 +98,7 @@ export const smsGetSmsResponses = (options) => (options.client ?? client).get({
98
98
  */
99
99
  export const smsGetSentSmsList = (options) => (options.client ?? client).get({
100
100
  security: [{ scheme: 'basic', type: 'http' }],
101
- url: '/SMS/sent/{mobile}',
101
+ url: '/v1/SMS/sent/{mobile}',
102
102
  ...options
103
103
  });
104
104
  /**
@@ -119,7 +119,7 @@ export const smsGetSentSmsList = (options) => (options.client ?? client).get({
119
119
  */
120
120
  export const eventsProcessEvent = (options) => (options.client ?? client).post({
121
121
  security: [{ scheme: 'basic', type: 'http' }],
122
- url: '/events',
122
+ url: '/v1/events',
123
123
  ...options,
124
124
  headers: {
125
125
  'Content-Type': 'application/json',
@@ -138,7 +138,7 @@ export const eventsProcessEvent = (options) => (options.client ?? client).post({
138
138
  */
139
139
  export const gatewayGetGatewayConfig = (options) => (options?.client ?? client).get({
140
140
  security: [{ scheme: 'basic', type: 'http' }],
141
- url: '/gateway',
141
+ url: '/v1/gateway',
142
142
  ...options
143
143
  });
144
144
  /**
@@ -157,7 +157,7 @@ export const gatewayGetGatewayConfig = (options) => (options?.client ?? client).
157
157
  */
158
158
  export const inventoryGetDepartmentItems = (options) => (options.client ?? client).get({
159
159
  security: [{ scheme: 'basic', type: 'http' }],
160
- url: '/inventory/{siteCode}/department/{departmentId}',
160
+ url: '/v1/inventory/{siteCode}/department/{departmentId}',
161
161
  ...options
162
162
  });
163
163
  /**
@@ -177,7 +177,7 @@ export const inventoryGetDepartmentItems = (options) => (options.client ?? clien
177
177
  */
178
178
  export const inventoryGetItem = (options) => (options.client ?? client).get({
179
179
  security: [{ scheme: 'basic', type: 'http' }],
180
- url: '/inventory/{siteCode}/item/{itemNumber}',
180
+ url: '/v1/inventory/{siteCode}/item/{itemNumber}',
181
181
  ...options
182
182
  });
183
183
  /**
@@ -210,7 +210,7 @@ export const inventoryGetItem = (options) => (options.client ?? client).get({
210
210
  */
211
211
  export const inventorySearchInventory = (options) => (options.client ?? client).get({
212
212
  security: [{ scheme: 'basic', type: 'http' }],
213
- url: '/inventory/{siteCode}/search/{command}',
213
+ url: '/v1/inventory/{siteCode}/search/{command}',
214
214
  ...options
215
215
  });
216
216
  /**
@@ -232,7 +232,7 @@ export const inventorySearchInventory = (options) => (options.client ?? client).
232
232
  */
233
233
  export const inventoryBulkInventory = (options) => (options.client ?? client).post({
234
234
  security: [{ scheme: 'basic', type: 'http' }],
235
- url: '/inventory/{siteId}/bulk_inventory',
235
+ url: '/v1/inventory/{siteId}/bulk_inventory',
236
236
  ...options,
237
237
  headers: {
238
238
  'Content-Type': 'application/json',
@@ -253,7 +253,7 @@ export const inventoryBulkInventory = (options) => (options.client ?? client).po
253
253
  */
254
254
  export const jackpotsList = (options) => (options?.client ?? client).get({
255
255
  security: [{ scheme: 'basic', type: 'http' }],
256
- url: '/jackpots',
256
+ url: '/v1/jackpots',
257
257
  ...options
258
258
  });
259
259
  /**
@@ -270,7 +270,7 @@ export const jackpotsList = (options) => (options?.client ?? client).get({
270
270
  */
271
271
  export const jackpotsListWinners = (options) => (options?.client ?? client).get({
272
272
  security: [{ scheme: 'basic', type: 'http' }],
273
- url: '/jackpots/winners',
273
+ url: '/v1/jackpots/winners',
274
274
  ...options
275
275
  });
276
276
  /**
@@ -292,7 +292,7 @@ export const jackpotsListWinners = (options) => (options?.client ?? client).get(
292
292
  */
293
293
  export const listsDeleteList = (options) => (options.client ?? client).delete({
294
294
  security: [{ scheme: 'basic', type: 'http' }],
295
- url: '/lists',
295
+ url: '/v1/lists',
296
296
  ...options,
297
297
  headers: {
298
298
  'Content-Type': 'application/json',
@@ -316,7 +316,7 @@ export const listsDeleteList = (options) => (options.client ?? client).delete({
316
316
  */
317
317
  export const listsGetAllLists = (options) => (options?.client ?? client).get({
318
318
  security: [{ scheme: 'basic', type: 'http' }],
319
- url: '/lists',
319
+ url: '/v1/lists',
320
320
  ...options
321
321
  });
322
322
  /**
@@ -339,7 +339,7 @@ export const listsGetAllLists = (options) => (options?.client ?? client).get({
339
339
  */
340
340
  export const listsCreateList = (options) => (options.client ?? client).post({
341
341
  security: [{ scheme: 'basic', type: 'http' }],
342
- url: '/lists',
342
+ url: '/v1/lists',
343
343
  ...options,
344
344
  headers: {
345
345
  'Content-Type': 'application/json',
@@ -365,7 +365,7 @@ export const listsCreateList = (options) => (options.client ?? client).post({
365
365
  */
366
366
  export const listsUpdateList = (options) => (options.client ?? client).put({
367
367
  security: [{ scheme: 'basic', type: 'http' }],
368
- url: '/lists',
368
+ url: '/v1/lists',
369
369
  ...options,
370
370
  headers: {
371
371
  'Content-Type': 'application/json',
@@ -392,7 +392,7 @@ export const listsUpdateList = (options) => (options.client ?? client).put({
392
392
  */
393
393
  export const listsRemoveCardFromList = (options) => (options.client ?? client).delete({
394
394
  security: [{ scheme: 'basic', type: 'http' }],
395
- url: '/lists/{cardNumber}',
395
+ url: '/v1/lists/{cardNumber}',
396
396
  ...options,
397
397
  headers: {
398
398
  'Content-Type': 'application/json',
@@ -417,7 +417,7 @@ export const listsRemoveCardFromList = (options) => (options.client ?? client).d
417
417
  */
418
418
  export const listsGetCardLists = (options) => (options.client ?? client).get({
419
419
  security: [{ scheme: 'basic', type: 'http' }],
420
- url: '/lists/{cardNumber}',
420
+ url: '/v1/lists/{cardNumber}',
421
421
  ...options
422
422
  });
423
423
  /**
@@ -441,7 +441,7 @@ export const listsGetCardLists = (options) => (options.client ?? client).get({
441
441
  */
442
442
  export const listsCreateListWithCard = (options) => (options.client ?? client).post({
443
443
  security: [{ scheme: 'basic', type: 'http' }],
444
- url: '/lists/{cardNumber}',
444
+ url: '/v1/lists/{cardNumber}',
445
445
  ...options,
446
446
  headers: {
447
447
  'Content-Type': 'application/json',
@@ -468,7 +468,7 @@ export const listsCreateListWithCard = (options) => (options.client ?? client).p
468
468
  */
469
469
  export const listsUpdateListWithCard = (options) => (options.client ?? client).put({
470
470
  security: [{ scheme: 'basic', type: 'http' }],
471
- url: '/lists/{cardNumber}',
471
+ url: '/v1/lists/{cardNumber}',
472
472
  ...options,
473
473
  headers: {
474
474
  'Content-Type': 'application/json',
@@ -485,7 +485,7 @@ export const listsUpdateListWithCard = (options) => (options.client ?? client).p
485
485
  */
486
486
  export const loyaltyGetAllowedFunctions = (options) => (options?.client ?? client).get({
487
487
  security: [{ scheme: 'basic', type: 'http' }],
488
- url: '/loyalty/allowedFunctions',
488
+ url: '/v1/loyalty/allowedFunctions',
489
489
  ...options
490
490
  });
491
491
  /**
@@ -498,7 +498,7 @@ export const loyaltyGetAllowedFunctions = (options) => (options?.client ?? clien
498
498
  */
499
499
  export const loyaltyCreateCard = (options) => (options.client ?? client).post({
500
500
  security: [{ scheme: 'basic', type: 'http' }],
501
- url: '/loyalty/card',
501
+ url: '/v1/loyalty/card',
502
502
  ...options,
503
503
  headers: {
504
504
  'Content-Type': 'application/json',
@@ -524,7 +524,7 @@ export const loyaltyCreateCard = (options) => (options.client ?? client).post({
524
524
  */
525
525
  export const loyaltyGetCard = (options) => (options.client ?? client).get({
526
526
  security: [{ scheme: 'basic', type: 'http' }],
527
- url: '/loyalty/card/{cardNumber}',
527
+ url: '/v1/loyalty/card/{cardNumber}',
528
528
  ...options
529
529
  });
530
530
  /**
@@ -539,7 +539,7 @@ export const loyaltyGetCard = (options) => (options.client ?? client).get({
539
539
  */
540
540
  export const loyaltyUpdateCard = (options) => (options.client ?? client).put({
541
541
  security: [{ scheme: 'basic', type: 'http' }],
542
- url: '/loyalty/card/{cardNumber}',
542
+ url: '/v1/loyalty/card/{cardNumber}',
543
543
  ...options,
544
544
  headers: {
545
545
  'Content-Type': 'application/json',
@@ -556,7 +556,7 @@ export const loyaltyUpdateCard = (options) => (options.client ?? client).put({
556
556
  */
557
557
  export const loyaltyActivateCard = (options) => (options.client ?? client).put({
558
558
  security: [{ scheme: 'basic', type: 'http' }],
559
- url: '/loyalty/card/{cardNumber}/activate',
559
+ url: '/v1/loyalty/card/{cardNumber}/activate',
560
560
  ...options
561
561
  });
562
562
  /**
@@ -569,7 +569,7 @@ export const loyaltyActivateCard = (options) => (options.client ?? client).put({
569
569
  */
570
570
  export const loyaltyUpdateAddress = (options) => (options.client ?? client).put({
571
571
  security: [{ scheme: 'basic', type: 'http' }],
572
- url: '/loyalty/card/{cardNumber}/address',
572
+ url: '/v1/loyalty/card/{cardNumber}/address',
573
573
  ...options,
574
574
  headers: {
575
575
  'Content-Type': 'application/json',
@@ -585,7 +585,7 @@ export const loyaltyUpdateAddress = (options) => (options.client ?? client).put(
585
585
  */
586
586
  export const loyaltyUpdateBillingAddress = (options) => (options.client ?? client).put({
587
587
  security: [{ scheme: 'basic', type: 'http' }],
588
- url: '/loyalty/card/{cardNumber}/billingaddress',
588
+ url: '/v1/loyalty/card/{cardNumber}/billingaddress',
589
589
  ...options,
590
590
  headers: {
591
591
  'Content-Type': 'application/json',
@@ -602,7 +602,7 @@ export const loyaltyUpdateBillingAddress = (options) => (options.client ?? clien
602
602
  */
603
603
  export const loyaltyDeactivateCard = (options) => (options.client ?? client).put({
604
604
  security: [{ scheme: 'basic', type: 'http' }],
605
- url: '/loyalty/card/{cardNumber}/deactivate',
605
+ url: '/v1/loyalty/card/{cardNumber}/deactivate',
606
606
  ...options
607
607
  });
608
608
  /**
@@ -615,7 +615,7 @@ export const loyaltyDeactivateCard = (options) => (options.client ?? client).put
615
615
  */
616
616
  export const loyaltyUpdateGroups = (options) => (options.client ?? client).put({
617
617
  security: [{ scheme: 'basic', type: 'http' }],
618
- url: '/loyalty/card/{cardNumber}/groups',
618
+ url: '/v1/loyalty/card/{cardNumber}/groups',
619
619
  ...options,
620
620
  headers: {
621
621
  'Content-Type': 'application/json',
@@ -631,7 +631,7 @@ export const loyaltyUpdateGroups = (options) => (options.client ?? client).put({
631
631
  */
632
632
  export const loyaltyUpdateExternalUserId = (options) => (options.client ?? client).put({
633
633
  security: [{ scheme: 'basic', type: 'http' }],
634
- url: '/loyalty/card/{cardNumber}/idchange',
634
+ url: '/v1/loyalty/card/{cardNumber}/idchange',
635
635
  ...options,
636
636
  headers: {
637
637
  'Content-Type': 'application/json',
@@ -645,6 +645,10 @@ export const loyaltyUpdateExternalUserId = (options) => (options.client ?? clien
645
645
  * The site code determines which offers are available. Includes both
646
646
  * available offers and recently redeemed offers in the response.
647
647
  *
648
+ * Pass the string `homesite` as the siteCode to automatically resolve
649
+ * the card's home site. If the card has no home site set, offers will
650
+ * be returned as an empty array.
651
+ *
648
652
  * **Required scope:** `READ_LOYALTY`
649
653
  *
650
654
  * **Error codes:**
@@ -652,7 +656,7 @@ export const loyaltyUpdateExternalUserId = (options) => (options.client ?? clien
652
656
  */
653
657
  export const loyaltyGetCardWithOffers = (options) => (options.client ?? client).get({
654
658
  security: [{ scheme: 'basic', type: 'http' }],
655
- url: '/loyalty/card/{cardNumber}/includeoffers/{siteCode}',
659
+ url: '/v1/loyalty/card/{cardNumber}/includeoffers/{siteCode}',
656
660
  ...options
657
661
  });
658
662
  /**
@@ -665,7 +669,7 @@ export const loyaltyGetCardWithOffers = (options) => (options.client ?? client).
665
669
  */
666
670
  export const loyaltyUpdateMemberGroups = (options) => (options.client ?? client).put({
667
671
  security: [{ scheme: 'basic', type: 'http' }],
668
- url: '/loyalty/card/{cardNumber}/membergroups',
672
+ url: '/v1/loyalty/card/{cardNumber}/membergroups',
669
673
  ...options,
670
674
  headers: {
671
675
  'Content-Type': 'application/json',
@@ -681,7 +685,7 @@ export const loyaltyUpdateMemberGroups = (options) => (options.client ?? client)
681
685
  */
682
686
  export const loyaltyUpdateCardPin = (options) => (options.client ?? client).put({
683
687
  security: [{ scheme: 'basic', type: 'http' }],
684
- url: '/loyalty/card/{cardNumber}/pin',
688
+ url: '/v1/loyalty/card/{cardNumber}/pin',
685
689
  ...options,
686
690
  headers: {
687
691
  'Content-Type': 'application/json',
@@ -698,7 +702,7 @@ export const loyaltyUpdateCardPin = (options) => (options.client ?? client).put(
698
702
  */
699
703
  export const loyaltyUpdatePoints = (options) => (options.client ?? client).put({
700
704
  security: [{ scheme: 'basic', type: 'http' }],
701
- url: '/loyalty/card/{cardNumber}/points',
705
+ url: '/v1/loyalty/card/{cardNumber}/points',
702
706
  ...options,
703
707
  headers: {
704
708
  'Content-Type': 'application/json',
@@ -715,7 +719,7 @@ export const loyaltyUpdatePoints = (options) => (options.client ?? client).put({
715
719
  */
716
720
  export const loyaltyRenewCard = (options) => (options.client ?? client).put({
717
721
  security: [{ scheme: 'basic', type: 'http' }],
718
- url: '/loyalty/card/{cardNumber}/renewal',
722
+ url: '/v1/loyalty/card/{cardNumber}/renewal',
719
723
  ...options,
720
724
  headers: {
721
725
  'Content-Type': 'application/json',
@@ -731,7 +735,7 @@ export const loyaltyRenewCard = (options) => (options.client ?? client).put({
731
735
  */
732
736
  export const loyaltyUpdateShippingAddress = (options) => (options.client ?? client).put({
733
737
  security: [{ scheme: 'basic', type: 'http' }],
734
- url: '/loyalty/card/{cardNumber}/shippingaddress',
738
+ url: '/v1/loyalty/card/{cardNumber}/shippingaddress',
735
739
  ...options,
736
740
  headers: {
737
741
  'Content-Type': 'application/json',
@@ -748,7 +752,7 @@ export const loyaltyUpdateShippingAddress = (options) => (options.client ?? clie
748
752
  */
749
753
  export const loyaltyGenerateShortCode = (options) => (options.client ?? client).put({
750
754
  security: [{ scheme: 'basic', type: 'http' }],
751
- url: '/loyalty/card/{cardNumber}/shortcode',
755
+ url: '/v1/loyalty/card/{cardNumber}/shortcode',
752
756
  ...options
753
757
  });
754
758
  /**
@@ -761,7 +765,7 @@ export const loyaltyGenerateShortCode = (options) => (options.client ?? client).
761
765
  */
762
766
  export const loyaltyUpdateCardToken = (options) => (options.client ?? client).put({
763
767
  security: [{ scheme: 'basic', type: 'http' }],
764
- url: '/loyalty/card/{cardNumber}/token',
768
+ url: '/v1/loyalty/card/{cardNumber}/token',
765
769
  ...options,
766
770
  headers: {
767
771
  'Content-Type': 'application/json',
@@ -780,7 +784,7 @@ export const loyaltyUpdateCardToken = (options) => (options.client ?? client).pu
780
784
  */
781
785
  export const loyaltyGetCardTypes = (options) => (options?.client ?? client).get({
782
786
  security: [{ scheme: 'basic', type: 'http' }],
783
- url: '/loyalty/cardtypes',
787
+ url: '/v1/loyalty/cardtypes',
784
788
  ...options
785
789
  });
786
790
  /**
@@ -799,7 +803,7 @@ export const loyaltyGetCardTypes = (options) => (options?.client ?? client).get(
799
803
  */
800
804
  export const loyaltyGetCoffeeCardStats = (options) => (options.client ?? client).get({
801
805
  security: [{ scheme: 'basic', type: 'http' }],
802
- url: '/loyalty/coffeecard/{cardNumber}',
806
+ url: '/v1/loyalty/coffeecard/{cardNumber}',
803
807
  ...options
804
808
  });
805
809
  /**
@@ -812,7 +816,7 @@ export const loyaltyGetCoffeeCardStats = (options) => (options.client ?? client)
812
816
  */
813
817
  export const loyaltyGetCompulsoryFields = (options) => (options?.client ?? client).get({
814
818
  security: [{ scheme: 'basic', type: 'http' }],
815
- url: '/loyalty/compulsory',
819
+ url: '/v1/loyalty/compulsory',
816
820
  ...options
817
821
  });
818
822
  /**
@@ -830,7 +834,7 @@ export const loyaltyGetCompulsoryFields = (options) => (options?.client ?? clien
830
834
  */
831
835
  export const loyaltyGetGroups = (options) => (options?.client ?? client).get({
832
836
  security: [{ scheme: 'basic', type: 'http' }],
833
- url: '/loyalty/groups',
837
+ url: '/v1/loyalty/groups',
834
838
  ...options
835
839
  });
836
840
  /**
@@ -844,7 +848,7 @@ export const loyaltyGetGroups = (options) => (options?.client ?? client).get({
844
848
  */
845
849
  export const loyaltyGetCardImage = (options) => (options.client ?? client).get({
846
850
  security: [{ scheme: 'basic', type: 'http' }],
847
- url: '/loyalty/image/{cardNumber}',
851
+ url: '/v1/loyalty/image/{cardNumber}',
848
852
  ...options
849
853
  });
850
854
  /**
@@ -862,7 +866,7 @@ export const loyaltyGetCardImage = (options) => (options.client ?? client).get({
862
866
  */
863
867
  export const loyaltyGetMemberGroups = (options) => (options?.client ?? client).get({
864
868
  security: [{ scheme: 'basic', type: 'http' }],
865
- url: '/loyalty/membergroups',
869
+ url: '/v1/loyalty/membergroups',
866
870
  ...options
867
871
  });
868
872
  /**
@@ -876,7 +880,7 @@ export const loyaltyGetMemberGroups = (options) => (options?.client ?? client).g
876
880
  */
877
881
  export const loyaltyCreatePointsTransaction = (options) => (options.client ?? client).post({
878
882
  security: [{ scheme: 'basic', type: 'http' }],
879
- url: '/loyalty/points',
883
+ url: '/v1/loyalty/points',
880
884
  ...options,
881
885
  headers: {
882
886
  'Content-Type': 'application/json',
@@ -898,7 +902,7 @@ export const loyaltyCreatePointsTransaction = (options) => (options.client ?? cl
898
902
  */
899
903
  export const loyaltyGetCardRecovery = (options) => (options.client ?? client).get({
900
904
  security: [{ scheme: 'basic', type: 'http' }],
901
- url: '/loyalty/recover/{cardNumber}',
905
+ url: '/v1/loyalty/recover/{cardNumber}',
902
906
  ...options
903
907
  });
904
908
  /**
@@ -947,7 +951,7 @@ export const loyaltyGetCardRecovery = (options) => (options.client ?? client).ge
947
951
  */
948
952
  export const loyaltySearchCards = (options) => (options.client ?? client).get({
949
953
  security: [{ scheme: 'basic', type: 'http' }],
950
- url: '/loyalty/search/{command}',
954
+ url: '/v1/loyalty/search/{command}',
951
955
  ...options
952
956
  });
953
957
  /**
@@ -960,7 +964,7 @@ export const loyaltySearchCards = (options) => (options.client ?? client).get({
960
964
  */
961
965
  export const loyaltyGetSettings = (options) => (options?.client ?? client).get({
962
966
  security: [{ scheme: 'basic', type: 'http' }],
963
- url: '/loyalty/settings',
967
+ url: '/v1/loyalty/settings',
964
968
  ...options
965
969
  });
966
970
  /**
@@ -979,7 +983,7 @@ export const loyaltyGetSettings = (options) => (options?.client ?? client).get({
979
983
  */
980
984
  export const loyaltyGetSyncList = (options) => (options?.client ?? client).get({
981
985
  security: [{ scheme: 'basic', type: 'http' }],
982
- url: '/loyalty/syncList',
986
+ url: '/v1/loyalty/syncList',
983
987
  ...options
984
988
  });
985
989
  /**
@@ -991,7 +995,7 @@ export const loyaltyGetSyncList = (options) => (options?.client ?? client).get({
991
995
  */
992
996
  export const loyaltyUpdateSyncList = (options) => (options.client ?? client).put({
993
997
  security: [{ scheme: 'basic', type: 'http' }],
994
- url: '/loyalty/syncList',
998
+ url: '/v1/loyalty/syncList',
995
999
  ...options,
996
1000
  headers: {
997
1001
  'Content-Type': 'application/json',
@@ -1007,7 +1011,7 @@ export const loyaltyUpdateSyncList = (options) => (options.client ?? client).put
1007
1011
  */
1008
1012
  export const loyaltyGetSyncListByCommand = (options) => (options.client ?? client).get({
1009
1013
  security: [{ scheme: 'basic', type: 'http' }],
1010
- url: '/loyalty/syncList/{command}',
1014
+ url: '/v1/loyalty/syncList/{command}',
1011
1015
  ...options
1012
1016
  });
1013
1017
  /**
@@ -1023,7 +1027,7 @@ export const loyaltyGetSyncListByCommand = (options) => (options.client ?? clien
1023
1027
  */
1024
1028
  export const loyaltyVerifyCard = (options) => (options.client ?? client).post({
1025
1029
  security: [{ scheme: 'basic', type: 'http' }],
1026
- url: '/loyalty/verify',
1030
+ url: '/v1/loyalty/verify',
1027
1031
  ...options,
1028
1032
  headers: {
1029
1033
  'Content-Type': 'application/json',
@@ -1037,7 +1041,7 @@ export const loyaltyVerifyCard = (options) => (options.client ?? client).post({
1037
1041
  */
1038
1042
  export const loyaltyGetWalletLink = (options) => (options.client ?? client).get({
1039
1043
  security: [{ scheme: 'basic', type: 'http' }],
1040
- url: '/loyalty/wallet/{cardNumber}',
1044
+ url: '/v1/loyalty/wallet/{cardNumber}',
1041
1045
  ...options
1042
1046
  });
1043
1047
  /**
@@ -1071,7 +1075,7 @@ export const loyaltyGetWalletLink = (options) => (options.client ?? client).get(
1071
1075
  */
1072
1076
  export const membershipCreateMember = (options) => (options.client ?? client).post({
1073
1077
  security: [{ scheme: 'basic', type: 'http' }],
1074
- url: '/membership',
1078
+ url: '/v1/membership',
1075
1079
  ...options,
1076
1080
  headers: {
1077
1081
  'Content-Type': 'application/json',
@@ -1092,7 +1096,7 @@ export const membershipCreateMember = (options) => (options.client ?? client).po
1092
1096
  */
1093
1097
  export const membershipGetAllowedFunctions = (options) => (options?.client ?? client).get({
1094
1098
  security: [{ scheme: 'basic', type: 'http' }],
1095
- url: '/membership/allowedFunctions',
1099
+ url: '/v1/membership/allowedFunctions',
1096
1100
  ...options
1097
1101
  });
1098
1102
  /**
@@ -1110,7 +1114,7 @@ export const membershipGetAllowedFunctions = (options) => (options?.client ?? cl
1110
1114
  */
1111
1115
  export const membershipGetMemberByCard = (options) => (options.client ?? client).get({
1112
1116
  security: [{ scheme: 'basic', type: 'http' }],
1113
- url: '/membership/card/{cardNumber}',
1117
+ url: '/v1/membership/card/{cardNumber}',
1114
1118
  ...options
1115
1119
  });
1116
1120
  /**
@@ -1127,7 +1131,7 @@ export const membershipGetMemberByCard = (options) => (options.client ?? client)
1127
1131
  */
1128
1132
  export const membershipUpdateMemberByCard = (options) => (options.client ?? client).put({
1129
1133
  security: [{ scheme: 'basic', type: 'http' }],
1130
- url: '/membership/card/{cardNumber}',
1134
+ url: '/v1/membership/card/{cardNumber}',
1131
1135
  ...options,
1132
1136
  headers: {
1133
1137
  'Content-Type': 'application/json',
@@ -1152,7 +1156,7 @@ export const membershipUpdateMemberByCard = (options) => (options.client ?? clie
1152
1156
  */
1153
1157
  export const membershipGetMemberGroups = (options) => (options?.client ?? client).get({
1154
1158
  security: [{ scheme: 'basic', type: 'http' }],
1155
- url: '/membership/groups',
1159
+ url: '/v1/membership/groups',
1156
1160
  ...options
1157
1161
  });
1158
1162
  /**
@@ -1176,7 +1180,7 @@ export const membershipGetMemberGroups = (options) => (options?.client ?? client
1176
1180
  */
1177
1181
  export const membershipGetMember = (options) => (options.client ?? client).get({
1178
1182
  security: [{ scheme: 'basic', type: 'http' }],
1179
- url: '/membership/member/{memberNumber}',
1183
+ url: '/v1/membership/member/{memberNumber}',
1180
1184
  ...options
1181
1185
  });
1182
1186
  /**
@@ -1207,7 +1211,7 @@ export const membershipGetMember = (options) => (options.client ?? client).get({
1207
1211
  */
1208
1212
  export const membershipUpdateMember = (options) => (options.client ?? client).put({
1209
1213
  security: [{ scheme: 'basic', type: 'http' }],
1210
- url: '/membership/member/{memberNumber}',
1214
+ url: '/v1/membership/member/{memberNumber}',
1211
1215
  ...options,
1212
1216
  headers: {
1213
1217
  'Content-Type': 'application/json',
@@ -1232,7 +1236,7 @@ export const membershipUpdateMember = (options) => (options.client ?? client).pu
1232
1236
  */
1233
1237
  export const membershipActivateMember = (options) => (options.client ?? client).put({
1234
1238
  security: [{ scheme: 'basic', type: 'http' }],
1235
- url: '/membership/member/{memberNumber}/activate',
1239
+ url: '/v1/membership/member/{memberNumber}/activate',
1236
1240
  ...options
1237
1241
  });
1238
1242
  /**
@@ -1255,7 +1259,7 @@ export const membershipActivateMember = (options) => (options.client ?? client).
1255
1259
  */
1256
1260
  export const membershipUpdateMemberAddress = (options) => (options.client ?? client).put({
1257
1261
  security: [{ scheme: 'basic', type: 'http' }],
1258
- url: '/membership/member/{memberNumber}/address',
1262
+ url: '/v1/membership/member/{memberNumber}/address',
1259
1263
  ...options,
1260
1264
  headers: {
1261
1265
  'Content-Type': 'application/json',
@@ -1280,7 +1284,7 @@ export const membershipUpdateMemberAddress = (options) => (options.client ?? cli
1280
1284
  */
1281
1285
  export const membershipUpdateBillingAddress = (options) => (options.client ?? client).put({
1282
1286
  security: [{ scheme: 'basic', type: 'http' }],
1283
- url: '/membership/member/{memberNumber}/billingaddress',
1287
+ url: '/v1/membership/member/{memberNumber}/billingaddress',
1284
1288
  ...options,
1285
1289
  headers: {
1286
1290
  'Content-Type': 'application/json',
@@ -1305,7 +1309,7 @@ export const membershipUpdateBillingAddress = (options) => (options.client ?? cl
1305
1309
  */
1306
1310
  export const membershipCancelMember = (options) => (options.client ?? client).put({
1307
1311
  security: [{ scheme: 'basic', type: 'http' }],
1308
- url: '/membership/member/{memberNumber}/cancel',
1312
+ url: '/v1/membership/member/{memberNumber}/cancel',
1309
1313
  ...options
1310
1314
  });
1311
1315
  /**
@@ -1327,7 +1331,7 @@ export const membershipCancelMember = (options) => (options.client ?? client).pu
1327
1331
  */
1328
1332
  export const membershipReplaceCreditCard = (options) => (options.client ?? client).put({
1329
1333
  security: [{ scheme: 'basic', type: 'http' }],
1330
- url: '/membership/member/{memberNumber}/replacecreditcard',
1334
+ url: '/v1/membership/member/{memberNumber}/replacecreditcard',
1331
1335
  ...options,
1332
1336
  headers: {
1333
1337
  'Content-Type': 'application/json',
@@ -1352,7 +1356,7 @@ export const membershipReplaceCreditCard = (options) => (options.client ?? clien
1352
1356
  */
1353
1357
  export const membershipUpdateShippingAddress = (options) => (options.client ?? client).put({
1354
1358
  security: [{ scheme: 'basic', type: 'http' }],
1355
- url: '/membership/member/{memberNumber}/shippingaddress',
1359
+ url: '/v1/membership/member/{memberNumber}/shippingaddress',
1356
1360
  ...options,
1357
1361
  headers: {
1358
1362
  'Content-Type': 'application/json',
@@ -1377,7 +1381,7 @@ export const membershipUpdateShippingAddress = (options) => (options.client ?? c
1377
1381
  */
1378
1382
  export const membershipSuspendMember = (options) => (options.client ?? client).put({
1379
1383
  security: [{ scheme: 'basic', type: 'http' }],
1380
- url: '/membership/member/{memberNumber}/suspend',
1384
+ url: '/v1/membership/member/{memberNumber}/suspend',
1381
1385
  ...options
1382
1386
  });
1383
1387
  /**
@@ -1399,7 +1403,7 @@ export const membershipSuspendMember = (options) => (options.client ?? client).p
1399
1403
  */
1400
1404
  export const membershipUpdateMemberToken = (options) => (options.client ?? client).put({
1401
1405
  security: [{ scheme: 'basic', type: 'http' }],
1402
- url: '/membership/member/{memberNumber}/token',
1406
+ url: '/v1/membership/member/{memberNumber}/token',
1403
1407
  ...options,
1404
1408
  headers: {
1405
1409
  'Content-Type': 'application/json',
@@ -1416,7 +1420,7 @@ export const membershipUpdateMemberToken = (options) => (options.client ?? clien
1416
1420
  */
1417
1421
  export const membershipGetMemberGroupsAlt = (options) => (options?.client ?? client).get({
1418
1422
  security: [{ scheme: 'basic', type: 'http' }],
1419
- url: '/membership/membergroups',
1423
+ url: '/v1/membership/membergroups',
1420
1424
  ...options
1421
1425
  });
1422
1426
  /**
@@ -1447,7 +1451,7 @@ export const membershipGetMemberGroupsAlt = (options) => (options?.client ?? cli
1447
1451
  */
1448
1452
  export const membershipSearchMembers = (options) => (options.client ?? client).get({
1449
1453
  security: [{ scheme: 'basic', type: 'http' }],
1450
- url: '/membership/search/{command}',
1454
+ url: '/v1/membership/search/{command}',
1451
1455
  ...options
1452
1456
  });
1453
1457
  /**
@@ -1459,7 +1463,7 @@ export const membershipSearchMembers = (options) => (options.client ?? client).g
1459
1463
  */
1460
1464
  export const offerCreate = (options) => (options.client ?? client).post({
1461
1465
  security: [{ scheme: 'basic', type: 'http' }],
1462
- url: '/offer',
1466
+ url: '/v1/offer',
1463
1467
  ...options,
1464
1468
  headers: {
1465
1469
  'Content-Type': 'application/json',
@@ -1476,7 +1480,7 @@ export const offerCreate = (options) => (options.client ?? client).post({
1476
1480
  */
1477
1481
  export const offerRedemptionsList = (options) => (options?.client ?? client).get({
1478
1482
  security: [{ scheme: 'basic', type: 'http' }],
1479
- url: '/offer-redemptions',
1483
+ url: '/v1/offer-redemptions',
1480
1484
  ...options
1481
1485
  });
1482
1486
  /**
@@ -1486,7 +1490,7 @@ export const offerRedemptionsList = (options) => (options?.client ?? client).get
1486
1490
  */
1487
1491
  export const offerGetCoffeeCardStats = (options) => (options.client ?? client).get({
1488
1492
  security: [{ scheme: 'basic', type: 'http' }],
1489
- url: '/offer/coffeecard/{cardNumber}',
1493
+ url: '/v1/offer/coffeecard/{cardNumber}',
1490
1494
  ...options
1491
1495
  });
1492
1496
  /**
@@ -1498,7 +1502,7 @@ export const offerGetCoffeeCardStats = (options) => (options.client ?? client).g
1498
1502
  */
1499
1503
  export const offerList = (options) => (options.client ?? client).get({
1500
1504
  security: [{ scheme: 'basic', type: 'http' }],
1501
- url: '/offer/list/{cardNumber}',
1505
+ url: '/v1/offer/list/{cardNumber}',
1502
1506
  ...options
1503
1507
  });
1504
1508
  /**
@@ -1510,7 +1514,7 @@ export const offerList = (options) => (options.client ?? client).get({
1510
1514
  */
1511
1515
  export const offerDelete = (options) => (options.client ?? client).delete({
1512
1516
  security: [{ scheme: 'basic', type: 'http' }],
1513
- url: '/offer/{offerId}',
1517
+ url: '/v1/offer/{offerId}',
1514
1518
  ...options
1515
1519
  });
1516
1520
  /**
@@ -1523,7 +1527,7 @@ export const offerDelete = (options) => (options.client ?? client).delete({
1523
1527
  */
1524
1528
  export const offerUpdate = (options) => (options.client ?? client).put({
1525
1529
  security: [{ scheme: 'basic', type: 'http' }],
1526
- url: '/offer/{offerId}',
1530
+ url: '/v1/offer/{offerId}',
1527
1531
  ...options,
1528
1532
  headers: {
1529
1533
  'Content-Type': 'application/json',
@@ -1550,7 +1554,7 @@ export const offerUpdate = (options) => (options.client ?? client).put({
1550
1554
  */
1551
1555
  export const orderDeleteOrder = (options) => (options.client ?? client).delete({
1552
1556
  security: [{ scheme: 'basic', type: 'http' }],
1553
- url: '/order',
1557
+ url: '/v1/order',
1554
1558
  ...options,
1555
1559
  headers: {
1556
1560
  'Content-Type': 'application/json',
@@ -1582,7 +1586,7 @@ export const orderDeleteOrder = (options) => (options.client ?? client).delete({
1582
1586
  */
1583
1587
  export const orderCreateOrder = (options) => (options.client ?? client).post({
1584
1588
  security: [{ scheme: 'basic', type: 'http' }],
1585
- url: '/order',
1589
+ url: '/v1/order',
1586
1590
  ...options,
1587
1591
  headers: {
1588
1592
  'Content-Type': 'application/json',
@@ -1604,7 +1608,7 @@ export const orderCreateOrder = (options) => (options.client ?? client).post({
1604
1608
  */
1605
1609
  export const orderGetAllowedFunctions = (options) => (options?.client ?? client).get({
1606
1610
  security: [{ scheme: 'basic', type: 'http' }],
1607
- url: '/order/allowedFunctions',
1611
+ url: '/v1/order/allowedFunctions',
1608
1612
  ...options
1609
1613
  });
1610
1614
  /**
@@ -1639,7 +1643,7 @@ export const orderGetAllowedFunctions = (options) => (options?.client ?? client)
1639
1643
  */
1640
1644
  export const orderSearchOrders = (options) => (options.client ?? client).get({
1641
1645
  security: [{ scheme: 'basic', type: 'http' }],
1642
- url: '/order/search/{command}/{query}/{site}',
1646
+ url: '/v1/order/search/{command}/{query}/{site}',
1643
1647
  ...options
1644
1648
  });
1645
1649
  /**
@@ -1659,7 +1663,7 @@ export const orderSearchOrders = (options) => (options.client ?? client).get({
1659
1663
  */
1660
1664
  export const orderGetOrder = (options) => (options.client ?? client).get({
1661
1665
  security: [{ scheme: 'basic', type: 'http' }],
1662
- url: '/order/{orderNumber}/{site}',
1666
+ url: '/v1/order/{orderNumber}/{site}',
1663
1667
  ...options
1664
1668
  });
1665
1669
  /**
@@ -1670,7 +1674,7 @@ export const orderGetOrder = (options) => (options.client ?? client).get({
1670
1674
  */
1671
1675
  export const pingPing = (options) => (options?.client ?? client).get({
1672
1676
  security: [{ scheme: 'basic', type: 'http' }],
1673
- url: '/ping',
1677
+ url: '/v1/ping',
1674
1678
  ...options
1675
1679
  });
1676
1680
  /**
@@ -1689,7 +1693,7 @@ export const pingPing = (options) => (options?.client ?? client).get({
1689
1693
  */
1690
1694
  export const sitesGetSites = (options) => (options?.client ?? client).get({
1691
1695
  security: [{ scheme: 'basic', type: 'http' }],
1692
- url: '/sites',
1696
+ url: '/v1/sites',
1693
1697
  ...options
1694
1698
  });
1695
1699
  /**
@@ -1703,7 +1707,7 @@ export const sitesGetSites = (options) => (options?.client ?? client).get({
1703
1707
  */
1704
1708
  export const stripeGetStripeConfig = (options) => (options?.client ?? client).get({
1705
1709
  security: [{ scheme: 'basic', type: 'http' }],
1706
- url: '/stripe',
1710
+ url: '/v1/stripe',
1707
1711
  ...options
1708
1712
  });
1709
1713
  /**
@@ -1731,7 +1735,7 @@ export const stripeGetStripeConfig = (options) => (options?.client ?? client).ge
1731
1735
  */
1732
1736
  export const transactionGetTransaction = (options) => (options.client ?? client).get({
1733
1737
  security: [{ scheme: 'basic', type: 'http' }],
1734
- url: '/transaction',
1738
+ url: '/v1/transaction',
1735
1739
  ...options
1736
1740
  });
1737
1741
  /**
@@ -1755,13 +1759,59 @@ export const transactionGetTransaction = (options) => (options.client ?? client)
1755
1759
  */
1756
1760
  export const transactionCreateTransaction = (options) => (options.client ?? client).post({
1757
1761
  security: [{ scheme: 'basic', type: 'http' }],
1758
- url: '/transaction',
1762
+ url: '/v1/transaction',
1759
1763
  ...options,
1760
1764
  headers: {
1761
1765
  'Content-Type': 'application/json',
1762
1766
  ...options.headers
1763
1767
  }
1764
1768
  });
1769
+ /**
1770
+ * Search Journals by Number
1771
+ *
1772
+ * Search for journals by journal number across all sites in the company.
1773
+ *
1774
+ * Returns an array of matching journal summaries. Journal numbers are not globally
1775
+ * unique — the same number can appear across different sites and dates. Results are
1776
+ * automatically filtered to sites belonging to the API key's company.
1777
+ *
1778
+ * Use the returned `id` field to fetch full journal details via the detail endpoint.
1779
+ *
1780
+ * Maximum 100 results returned, ordered by transaction date descending.
1781
+ *
1782
+ * **Required scope:** `read:transaction`
1783
+ *
1784
+ * **Error codes:**
1785
+ * - `8` (Missing Data) - `journal` parameter is required
1786
+ * - `12` (Invalid Site) - Specified site not part of company
1787
+ */
1788
+ export const transactionLookupSearchJournals = (options) => (options.client ?? client).get({
1789
+ security: [{ scheme: 'basic', type: 'http' }],
1790
+ url: '/v1/transaction-lookup',
1791
+ ...options
1792
+ });
1793
+ /**
1794
+ * Get Journal by ID
1795
+ *
1796
+ * Get full journal details by ID in the specified format.
1797
+ *
1798
+ * Retrieves a journal found via the search endpoint. The response format depends
1799
+ * on the `format` parameter:
1800
+ *
1801
+ * - `json` (default): Standard transaction response matching the existing GET /transaction format
1802
+ * - `event`: JournalCreatedEvent serialization (same as existing `?format=event`)
1803
+ * - `xml`: Raw transaction XML from S3 storage with sensitive nodes stripped
1804
+ *
1805
+ * **Required scope:** `read:transaction`
1806
+ *
1807
+ * **Error codes:**
1808
+ * - `4` (Not Found) - Journal not found, or raw XML not available (xml format)
1809
+ */
1810
+ export const transactionLookupDetailGetJournalById = (options) => (options.client ?? client).get({
1811
+ security: [{ scheme: 'basic', type: 'http' }],
1812
+ url: '/v1/transaction-lookup/{id}',
1813
+ ...options
1814
+ });
1765
1815
  /**
1766
1816
  * Validate Email Address
1767
1817
  *
@@ -1777,7 +1827,7 @@ export const transactionCreateTransaction = (options) => (options.client ?? clie
1777
1827
  */
1778
1828
  export const emailValidationValidateEmail = (options) => (options.client ?? client).post({
1779
1829
  security: [{ scheme: 'basic', type: 'http' }],
1780
- url: '/validate-email',
1830
+ url: '/v1/validate-email',
1781
1831
  ...options,
1782
1832
  headers: {
1783
1833
  'Content-Type': 'application/json',
@@ -1791,7 +1841,7 @@ export const emailValidationValidateEmail = (options) => (options.client ?? clie
1791
1841
  */
1792
1842
  export const versionGetVersion = (options) => (options?.client ?? client).get({
1793
1843
  security: [{ scheme: 'basic', type: 'http' }],
1794
- url: '/version',
1844
+ url: '/v1/version',
1795
1845
  ...options
1796
1846
  });
1797
1847
  /**
@@ -1816,7 +1866,7 @@ export const versionGetVersion = (options) => (options?.client ?? client).get({
1816
1866
  */
1817
1867
  export const voucherDeleteVoucher = (options) => (options.client ?? client).delete({
1818
1868
  security: [{ scheme: 'basic', type: 'http' }],
1819
- url: '/voucher/{voucherType}',
1869
+ url: '/v1/voucher/{voucherType}',
1820
1870
  ...options,
1821
1871
  headers: {
1822
1872
  'Content-Type': 'application/json',
@@ -1839,7 +1889,7 @@ export const voucherDeleteVoucher = (options) => (options.client ?? client).dele
1839
1889
  */
1840
1890
  export const voucherGetVoucherType = (options) => (options.client ?? client).get({
1841
1891
  security: [{ scheme: 'basic', type: 'http' }],
1842
- url: '/voucher/{voucherType}',
1892
+ url: '/v1/voucher/{voucherType}',
1843
1893
  ...options
1844
1894
  });
1845
1895
  /**
@@ -1865,7 +1915,7 @@ export const voucherGetVoucherType = (options) => (options.client ?? client).get
1865
1915
  */
1866
1916
  export const voucherCreateVoucher = (options) => (options.client ?? client).post({
1867
1917
  security: [{ scheme: 'basic', type: 'http' }],
1868
- url: '/voucher/{voucherType}/create',
1918
+ url: '/v1/voucher/{voucherType}/create',
1869
1919
  ...options,
1870
1920
  headers: {
1871
1921
  'Content-Type': 'application/json',
@@ -1910,7 +1960,7 @@ export const voucherCreateVoucher = (options) => (options.client ?? client).post
1910
1960
  */
1911
1961
  export const voucherEnquireVoucher = (options) => (options.client ?? client).post({
1912
1962
  security: [{ scheme: 'basic', type: 'http' }],
1913
- url: '/voucher/{voucherType}/enquire',
1963
+ url: '/v1/voucher/{voucherType}/enquire',
1914
1964
  ...options,
1915
1965
  headers: {
1916
1966
  'Content-Type': 'application/json',
@@ -1934,7 +1984,7 @@ export const voucherEnquireVoucher = (options) => (options.client ?? client).pos
1934
1984
  */
1935
1985
  export const voucherGetVoucherImage = (options) => (options.client ?? client).get({
1936
1986
  security: [{ scheme: 'basic', type: 'http' }],
1937
- url: '/voucher/{voucherType}/image/{serialNumber}',
1987
+ url: '/v1/voucher/{voucherType}/image/{serialNumber}',
1938
1988
  ...options
1939
1989
  });
1940
1990
  /**
@@ -1968,7 +2018,7 @@ export const voucherGetVoucherImage = (options) => (options.client ?? client).ge
1968
2018
  */
1969
2019
  export const voucherRechargeVoucher = (options) => (options.client ?? client).post({
1970
2020
  security: [{ scheme: 'basic', type: 'http' }],
1971
- url: '/voucher/{voucherType}/recharge',
2021
+ url: '/v1/voucher/{voucherType}/recharge',
1972
2022
  ...options,
1973
2023
  headers: {
1974
2024
  'Content-Type': 'application/json',
@@ -1999,7 +2049,7 @@ export const voucherRechargeVoucher = (options) => (options.client ?? client).po
1999
2049
  */
2000
2050
  export const voucherRedeemVoucher = (options) => (options.client ?? client).post({
2001
2051
  security: [{ scheme: 'basic', type: 'http' }],
2002
- url: '/voucher/{voucherType}/redeem',
2052
+ url: '/v1/voucher/{voucherType}/redeem',
2003
2053
  ...options,
2004
2054
  headers: {
2005
2055
  'Content-Type': 'application/json',
@@ -2027,7 +2077,7 @@ export const voucherRedeemVoucher = (options) => (options.client ?? client).post
2027
2077
  */
2028
2078
  export const voucherReleaseVoucher = (options) => (options.client ?? client).post({
2029
2079
  security: [{ scheme: 'basic', type: 'http' }],
2030
- url: '/voucher/{voucherType}/release',
2080
+ url: '/v1/voucher/{voucherType}/release',
2031
2081
  ...options,
2032
2082
  headers: {
2033
2083
  'Content-Type': 'application/json',
@@ -2057,7 +2107,7 @@ export const voucherReleaseVoucher = (options) => (options.client ?? client).pos
2057
2107
  */
2058
2108
  export const voucherReserveVoucher = (options) => (options.client ?? client).post({
2059
2109
  security: [{ scheme: 'basic', type: 'http' }],
2060
- url: '/voucher/{voucherType}/reserve',
2110
+ url: '/v1/voucher/{voucherType}/reserve',
2061
2111
  ...options,
2062
2112
  headers: {
2063
2113
  'Content-Type': 'application/json',
@@ -2086,7 +2136,7 @@ export const voucherReserveVoucher = (options) => (options.client ?? client).pos
2086
2136
  */
2087
2137
  export const voucherSearchVouchers = (options) => (options.client ?? client).get({
2088
2138
  security: [{ scheme: 'basic', type: 'http' }],
2089
- url: '/voucher/{voucherType}/search/{searchBy}',
2139
+ url: '/v1/voucher/{voucherType}/search/{searchBy}',
2090
2140
  ...options
2091
2141
  });
2092
2142
  /**
@@ -2105,7 +2155,36 @@ export const voucherSearchVouchers = (options) => (options.client ?? client).get
2105
2155
  */
2106
2156
  export const voucherSearchVouchersFlat = (options) => (options.client ?? client).get({
2107
2157
  security: [{ scheme: 'basic', type: 'http' }],
2108
- url: '/voucher/{voucherType}/search2/{searchBy}',
2158
+ url: '/v1/voucher/{voucherType}/search2/{searchBy}',
2159
+ ...options
2160
+ });
2161
+ /**
2162
+ * Delete Customer
2163
+ *
2164
+ * You can completly remove a Zen customer record and all it's related `loyalty`, `orders` and `debtor` records.
2165
+ *
2166
+ * > info
2167
+ * > This command is run asynchronous and may take some time to complete for customer records with larger history
2168
+ *
2169
+ * > warn
2170
+ * > This process is not reversible and will result in an unrecovrable removal of the customer record and its related
2171
+ * > entities.
2172
+ * > Proceed with care.
2173
+ */
2174
+ export const customerDelete = (options) => (options.client ?? client).delete({
2175
+ security: [{ scheme: 'basic', type: 'http' }],
2176
+ url: '/v2/customer/{customer_id}',
2177
+ ...options
2178
+ });
2179
+ /**
2180
+ * Ping (v2)
2181
+ *
2182
+ * Use this endpoint to verify your connection and credentials to the
2183
+ * Zen server.
2184
+ */
2185
+ export const pingV2Show = (options) => (options?.client ?? client).get({
2186
+ security: [{ scheme: 'basic', type: 'http' }],
2187
+ url: '/v2/ping',
2109
2188
  ...options
2110
2189
  });
2111
2190
  //# sourceMappingURL=sdk.gen.js.map