@zenglobal/api-client 5.0.9 → 5.0.10

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.
Files changed (32) hide show
  1. package/dist/client/client/client.gen.d.ts.map +1 -1
  2. package/dist/client/client/client.gen.js +150 -115
  3. package/dist/client/client/client.gen.js.map +1 -1
  4. package/dist/client/client/index.d.ts +1 -1
  5. package/dist/client/client/index.d.ts.map +1 -1
  6. package/dist/client/client/index.js.map +1 -1
  7. package/dist/client/client/types.gen.d.ts +11 -34
  8. package/dist/client/client/types.gen.d.ts.map +1 -1
  9. package/dist/client/client/utils.gen.d.ts +5 -1
  10. package/dist/client/client/utils.gen.d.ts.map +1 -1
  11. package/dist/client/client/utils.gen.js.map +1 -1
  12. package/dist/client/core/bodySerializer.gen.d.ts +4 -4
  13. package/dist/client/core/bodySerializer.gen.d.ts.map +1 -1
  14. package/dist/client/core/bodySerializer.gen.js.map +1 -1
  15. package/dist/client/core/params.gen.js +1 -1
  16. package/dist/client/core/params.gen.js.map +1 -1
  17. package/dist/client/core/serverSentEvents.gen.d.ts +1 -1
  18. package/dist/client/core/serverSentEvents.gen.d.ts.map +1 -1
  19. package/dist/client/core/serverSentEvents.gen.js +3 -4
  20. package/dist/client/core/serverSentEvents.gen.js.map +1 -1
  21. package/dist/client/core/types.gen.d.ts +1 -1
  22. package/dist/client/core/utils.gen.js +1 -1
  23. package/dist/client/core/utils.gen.js.map +1 -1
  24. package/dist/client/sdk.gen.d.ts +1 -1
  25. package/dist/client/sdk.gen.d.ts.map +1 -1
  26. package/dist/client/sdk.gen.js +109 -109
  27. package/dist/client/sdk.gen.js.map +1 -1
  28. package/dist/client/types.gen.d.ts +2 -2
  29. package/dist/configure.d.ts.map +1 -1
  30. package/dist/configure.js +18 -0
  31. package/dist/configure.js.map +1 -1
  32. package/package.json +3 -3
@@ -20,7 +20,7 @@ import { client } from './client.gen.js';
20
20
  * - `50` (SMS Error) - SMS sending failed
21
21
  */
22
22
  export const smsSendSms = (options) => (options.client ?? client).post({
23
- security: [{ scheme: 'basic', type: 'http' }],
23
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
24
24
  url: '/v1/SMS',
25
25
  ...options,
26
26
  headers: {
@@ -41,7 +41,7 @@ export const smsSendSms = (options) => (options.client ?? client).post({
41
41
  * - `8` (Missing Data) - Invalid Site
42
42
  */
43
43
  export const smsGetSmsBalance = (options) => (options.client ?? client).get({
44
- security: [{ scheme: 'basic', type: 'http' }],
44
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
45
45
  url: '/v1/SMS/balance/{site}',
46
46
  ...options
47
47
  });
@@ -59,7 +59,7 @@ export const smsGetSmsBalance = (options) => (options.client ?? client).get({
59
59
  * - `8` (Missing Data) - Invalid Site
60
60
  */
61
61
  export const smsGetSmsReplies = (options) => (options.client ?? client).get({
62
- security: [{ scheme: 'basic', type: 'http' }],
62
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
63
63
  url: '/v1/SMS/replies/{site}',
64
64
  ...options
65
65
  });
@@ -78,7 +78,7 @@ export const smsGetSmsReplies = (options) => (options.client ?? client).get({
78
78
  * - `8` (Missing Data) - Invalid Site
79
79
  */
80
80
  export const smsGetSmsResponses = (options) => (options.client ?? client).get({
81
- security: [{ scheme: 'basic', type: 'http' }],
81
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
82
82
  url: '/v1/SMS/response/{site}',
83
83
  ...options
84
84
  });
@@ -97,7 +97,7 @@ export const smsGetSmsResponses = (options) => (options.client ?? client).get({
97
97
  * - `4` (Not Found) - missing search string, missing from date, missing to date, missing mobile
98
98
  */
99
99
  export const smsGetSentSmsList = (options) => (options.client ?? client).get({
100
- security: [{ scheme: 'basic', type: 'http' }],
100
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
101
101
  url: '/v1/SMS/sent/{mobile}',
102
102
  ...options
103
103
  });
@@ -118,7 +118,7 @@ export const smsGetSentSmsList = (options) => (options.client ?? client).get({
118
118
  * * `9` (Request Rejected) - Request payload does not contain required fields, unknown event type, or company is disabled
119
119
  */
120
120
  export const eventsProcessEvent = (options) => (options.client ?? client).post({
121
- security: [{ scheme: 'basic', type: 'http' }],
121
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
122
122
  url: '/v1/events',
123
123
  ...options,
124
124
  headers: {
@@ -137,7 +137,7 @@ export const eventsProcessEvent = (options) => (options.client ?? client).post({
137
137
  * Required scope: `read:gateway`
138
138
  */
139
139
  export const gatewayGetGatewayConfig = (options) => (options?.client ?? client).get({
140
- security: [{ scheme: 'basic', type: 'http' }],
140
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
141
141
  url: '/v1/gateway',
142
142
  ...options
143
143
  });
@@ -156,7 +156,7 @@ export const gatewayGetGatewayConfig = (options) => (options?.client ?? client).
156
156
  * - `8` (Missing Data) - Invalid site
157
157
  */
158
158
  export const inventoryGetDepartmentItems = (options) => (options.client ?? client).get({
159
- security: [{ scheme: 'basic', type: 'http' }],
159
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
160
160
  url: '/v1/inventory/{siteCode}/department/{departmentId}',
161
161
  ...options
162
162
  });
@@ -176,7 +176,7 @@ export const inventoryGetDepartmentItems = (options) => (options.client ?? clien
176
176
  * - `8` (Missing Data) - Invalid site
177
177
  */
178
178
  export const inventoryGetItem = (options) => (options.client ?? client).get({
179
- security: [{ scheme: 'basic', type: 'http' }],
179
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
180
180
  url: '/v1/inventory/{siteCode}/item/{itemNumber}',
181
181
  ...options
182
182
  });
@@ -209,7 +209,7 @@ export const inventoryGetItem = (options) => (options.client ?? client).get({
209
209
  * - `9` (Request Rejected) - Unknown search command
210
210
  */
211
211
  export const inventorySearchInventory = (options) => (options.client ?? client).get({
212
- security: [{ scheme: 'basic', type: 'http' }],
212
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
213
213
  url: '/v1/inventory/{siteCode}/search/{command}',
214
214
  ...options
215
215
  });
@@ -231,7 +231,7 @@ export const inventorySearchInventory = (options) => (options.client ?? client).
231
231
  * - `9` (Request Rejected) - Failed to parse JSON or validation errors
232
232
  */
233
233
  export const inventoryBulkInventory = (options) => (options.client ?? client).post({
234
- security: [{ scheme: 'basic', type: 'http' }],
234
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
235
235
  url: '/v1/inventory/{siteId}/bulk_inventory',
236
236
  ...options,
237
237
  headers: {
@@ -252,7 +252,7 @@ export const inventoryBulkInventory = (options) => (options.client ?? client).po
252
252
  * * `9` (Request Rejected) - Company is disabled
253
253
  */
254
254
  export const jackpotsList = (options) => (options?.client ?? client).get({
255
- security: [{ scheme: 'basic', type: 'http' }],
255
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
256
256
  url: '/v1/jackpots',
257
257
  ...options
258
258
  });
@@ -269,7 +269,7 @@ export const jackpotsList = (options) => (options?.client ?? client).get({
269
269
  * * `9` (Request Rejected) - Company is disabled
270
270
  */
271
271
  export const jackpotsListWinners = (options) => (options?.client ?? client).get({
272
- security: [{ scheme: 'basic', type: 'http' }],
272
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
273
273
  url: '/v1/jackpots/winners',
274
274
  ...options
275
275
  });
@@ -291,7 +291,7 @@ export const jackpotsListWinners = (options) => (options?.client ?? client).get(
291
291
  * * `45` (Invalid JSON) - Request body is not valid JSON
292
292
  */
293
293
  export const listsDeleteList = (options) => (options.client ?? client).delete({
294
- security: [{ scheme: 'basic', type: 'http' }],
294
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
295
295
  url: '/v1/lists',
296
296
  ...options,
297
297
  headers: {
@@ -315,7 +315,7 @@ export const listsDeleteList = (options) => (options.client ?? client).delete({
315
315
  * * `1` (Invalid Access Key) - Missing or invalid API key, or missing `read:lists` scope
316
316
  */
317
317
  export const listsGetAllLists = (options) => (options?.client ?? client).get({
318
- security: [{ scheme: 'basic', type: 'http' }],
318
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
319
319
  url: '/v1/lists',
320
320
  ...options
321
321
  });
@@ -338,7 +338,7 @@ export const listsGetAllLists = (options) => (options?.client ?? client).get({
338
338
  * * `45` (Invalid JSON) - Request body is not valid JSON
339
339
  */
340
340
  export const listsCreateList = (options) => (options.client ?? client).post({
341
- security: [{ scheme: 'basic', type: 'http' }],
341
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
342
342
  url: '/v1/lists',
343
343
  ...options,
344
344
  headers: {
@@ -364,7 +364,7 @@ export const listsCreateList = (options) => (options.client ?? client).post({
364
364
  * * `45` (Invalid JSON) - Request body is not valid JSON
365
365
  */
366
366
  export const listsUpdateList = (options) => (options.client ?? client).put({
367
- security: [{ scheme: 'basic', type: 'http' }],
367
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
368
368
  url: '/v1/lists',
369
369
  ...options,
370
370
  headers: {
@@ -391,7 +391,7 @@ export const listsUpdateList = (options) => (options.client ?? client).put({
391
391
  * * `45` (Invalid JSON) - Request body is not valid JSON
392
392
  */
393
393
  export const listsRemoveCardFromList = (options) => (options.client ?? client).delete({
394
- security: [{ scheme: 'basic', type: 'http' }],
394
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
395
395
  url: '/v1/lists/{cardNumber}',
396
396
  ...options,
397
397
  headers: {
@@ -416,7 +416,7 @@ export const listsRemoveCardFromList = (options) => (options.client ?? client).d
416
416
  * * `4` (Not Found) - Card does not exist
417
417
  */
418
418
  export const listsGetCardLists = (options) => (options.client ?? client).get({
419
- security: [{ scheme: 'basic', type: 'http' }],
419
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
420
420
  url: '/v1/lists/{cardNumber}',
421
421
  ...options
422
422
  });
@@ -440,7 +440,7 @@ export const listsGetCardLists = (options) => (options.client ?? client).get({
440
440
  * * `45` (Invalid JSON) - Request body is not valid JSON
441
441
  */
442
442
  export const listsCreateListWithCard = (options) => (options.client ?? client).post({
443
- security: [{ scheme: 'basic', type: 'http' }],
443
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
444
444
  url: '/v1/lists/{cardNumber}',
445
445
  ...options,
446
446
  headers: {
@@ -467,7 +467,7 @@ export const listsCreateListWithCard = (options) => (options.client ?? client).p
467
467
  * * `45` (Invalid JSON) - Request body is not valid JSON
468
468
  */
469
469
  export const listsUpdateListWithCard = (options) => (options.client ?? client).put({
470
- security: [{ scheme: 'basic', type: 'http' }],
470
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
471
471
  url: '/v1/lists/{cardNumber}',
472
472
  ...options,
473
473
  headers: {
@@ -484,7 +484,7 @@ export const listsUpdateListWithCard = (options) => (options.client ?? client).p
484
484
  * **Required scope:** `READ_LOYALTY`
485
485
  */
486
486
  export const loyaltyGetAllowedFunctions = (options) => (options?.client ?? client).get({
487
- security: [{ scheme: 'basic', type: 'http' }],
487
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
488
488
  url: '/v1/loyalty/allowedFunctions',
489
489
  ...options
490
490
  });
@@ -497,7 +497,7 @@ export const loyaltyGetAllowedFunctions = (options) => (options?.client ?? clien
497
497
  * (retrievable via GET /v1/loyalty/compulsory).
498
498
  */
499
499
  export const loyaltyCreateCard = (options) => (options.client ?? client).post({
500
- security: [{ scheme: 'basic', type: 'http' }],
500
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
501
501
  url: '/v1/loyalty/card',
502
502
  ...options,
503
503
  headers: {
@@ -523,7 +523,7 @@ export const loyaltyCreateCard = (options) => (options.client ?? client).post({
523
523
  * - `4` (Not Found) - Card not found or invalid card length
524
524
  */
525
525
  export const loyaltyGetCard = (options) => (options.client ?? client).get({
526
- security: [{ scheme: 'basic', type: 'http' }],
526
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
527
527
  url: '/v1/loyalty/card/{cardNumber}',
528
528
  ...options
529
529
  });
@@ -538,7 +538,7 @@ export const loyaltyGetCard = (options) => (options.client ?? client).get({
538
538
  * **Required scope:** `WRITE_LOYALTY`
539
539
  */
540
540
  export const loyaltyUpdateCard = (options) => (options.client ?? client).put({
541
- security: [{ scheme: 'basic', type: 'http' }],
541
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
542
542
  url: '/v1/loyalty/card/{cardNumber}',
543
543
  ...options,
544
544
  headers: {
@@ -555,7 +555,7 @@ export const loyaltyUpdateCard = (options) => (options.client ?? client).put({
555
555
  * **Required scope:** `WRITE_LOYALTY`
556
556
  */
557
557
  export const loyaltyActivateCard = (options) => (options.client ?? client).put({
558
- security: [{ scheme: 'basic', type: 'http' }],
558
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
559
559
  url: '/v1/loyalty/card/{cardNumber}/activate',
560
560
  ...options
561
561
  });
@@ -568,7 +568,7 @@ export const loyaltyActivateCard = (options) => (options.client ?? client).put({
568
568
  * **Required scope:** `WRITE_LOYALTY`
569
569
  */
570
570
  export const loyaltyUpdateAddress = (options) => (options.client ?? client).put({
571
- security: [{ scheme: 'basic', type: 'http' }],
571
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
572
572
  url: '/v1/loyalty/card/{cardNumber}/address',
573
573
  ...options,
574
574
  headers: {
@@ -584,7 +584,7 @@ export const loyaltyUpdateAddress = (options) => (options.client ?? client).put(
584
584
  * **Required scope:** `WRITE_LOYALTY`
585
585
  */
586
586
  export const loyaltyUpdateBillingAddress = (options) => (options.client ?? client).put({
587
- security: [{ scheme: 'basic', type: 'http' }],
587
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
588
588
  url: '/v1/loyalty/card/{cardNumber}/billingaddress',
589
589
  ...options,
590
590
  headers: {
@@ -601,7 +601,7 @@ export const loyaltyUpdateBillingAddress = (options) => (options.client ?? clien
601
601
  * **Required scope:** `WRITE_LOYALTY`
602
602
  */
603
603
  export const loyaltyDeactivateCard = (options) => (options.client ?? client).put({
604
- security: [{ scheme: 'basic', type: 'http' }],
604
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
605
605
  url: '/v1/loyalty/card/{cardNumber}/deactivate',
606
606
  ...options
607
607
  });
@@ -614,7 +614,7 @@ export const loyaltyDeactivateCard = (options) => (options.client ?? client).put
614
614
  * **Required scope:** `WRITE_LOYALTY`
615
615
  */
616
616
  export const loyaltyUpdateGroups = (options) => (options.client ?? client).put({
617
- security: [{ scheme: 'basic', type: 'http' }],
617
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
618
618
  url: '/v1/loyalty/card/{cardNumber}/groups',
619
619
  ...options,
620
620
  headers: {
@@ -630,7 +630,7 @@ export const loyaltyUpdateGroups = (options) => (options.client ?? client).put({
630
630
  * **Required scope:** `WRITE_LOYALTY`
631
631
  */
632
632
  export const loyaltyUpdateExternalUserId = (options) => (options.client ?? client).put({
633
- security: [{ scheme: 'basic', type: 'http' }],
633
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
634
634
  url: '/v1/loyalty/card/{cardNumber}/idchange',
635
635
  ...options,
636
636
  headers: {
@@ -660,7 +660,7 @@ export const loyaltyUpdateExternalUserId = (options) => (options.client ?? clien
660
660
  * - `4` (Not Found) - Card not found or invalid card length
661
661
  */
662
662
  export const loyaltyGetCardWithOffers = (options) => (options.client ?? client).get({
663
- security: [{ scheme: 'basic', type: 'http' }],
663
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
664
664
  url: '/v1/loyalty/card/{cardNumber}/includeoffers/{siteCode}',
665
665
  ...options
666
666
  });
@@ -683,7 +683,7 @@ export const loyaltyGetCardWithOffers = (options) => (options.client ?? client).
683
683
  * - `4` (Not Found) - Card not found or invalid card length
684
684
  */
685
685
  export const loyaltyGetCardWithOffersAtLocation = (options) => (options.client ?? client).get({
686
- security: [{ scheme: 'basic', type: 'http' }],
686
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
687
687
  url: '/v1/loyalty/card/{cardNumber}/includeoffers/{siteCode}/{locationNumber}',
688
688
  ...options
689
689
  });
@@ -696,7 +696,7 @@ export const loyaltyGetCardWithOffersAtLocation = (options) => (options.client ?
696
696
  * **Required scope:** `WRITE_LOYALTY`
697
697
  */
698
698
  export const loyaltyUpdateMemberGroups = (options) => (options.client ?? client).put({
699
- security: [{ scheme: 'basic', type: 'http' }],
699
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
700
700
  url: '/v1/loyalty/card/{cardNumber}/membergroups',
701
701
  ...options,
702
702
  headers: {
@@ -712,7 +712,7 @@ export const loyaltyUpdateMemberGroups = (options) => (options.client ?? client)
712
712
  * **Required scope:** `WRITE_LOYALTY`
713
713
  */
714
714
  export const loyaltyUpdateCardPin = (options) => (options.client ?? client).put({
715
- security: [{ scheme: 'basic', type: 'http' }],
715
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
716
716
  url: '/v1/loyalty/card/{cardNumber}/pin',
717
717
  ...options,
718
718
  headers: {
@@ -729,7 +729,7 @@ export const loyaltyUpdateCardPin = (options) => (options.client ?? client).put(
729
729
  * **Required scope:** `WRITE_LOYALTY`
730
730
  */
731
731
  export const loyaltyUpdatePoints = (options) => (options.client ?? client).put({
732
- security: [{ scheme: 'basic', type: 'http' }],
732
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
733
733
  url: '/v1/loyalty/card/{cardNumber}/points',
734
734
  ...options,
735
735
  headers: {
@@ -746,7 +746,7 @@ export const loyaltyUpdatePoints = (options) => (options.client ?? client).put({
746
746
  * **Required scope:** `WRITE_LOYALTY`
747
747
  */
748
748
  export const loyaltyRenewCard = (options) => (options.client ?? client).put({
749
- security: [{ scheme: 'basic', type: 'http' }],
749
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
750
750
  url: '/v1/loyalty/card/{cardNumber}/renewal',
751
751
  ...options,
752
752
  headers: {
@@ -762,7 +762,7 @@ export const loyaltyRenewCard = (options) => (options.client ?? client).put({
762
762
  * **Required scope:** `WRITE_LOYALTY`
763
763
  */
764
764
  export const loyaltyUpdateShippingAddress = (options) => (options.client ?? client).put({
765
- security: [{ scheme: 'basic', type: 'http' }],
765
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
766
766
  url: '/v1/loyalty/card/{cardNumber}/shippingaddress',
767
767
  ...options,
768
768
  headers: {
@@ -779,7 +779,7 @@ export const loyaltyUpdateShippingAddress = (options) => (options.client ?? clie
779
779
  * **Required scope:** `WRITE_LOYALTY`
780
780
  */
781
781
  export const loyaltyGenerateShortCode = (options) => (options.client ?? client).put({
782
- security: [{ scheme: 'basic', type: 'http' }],
782
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
783
783
  url: '/v1/loyalty/card/{cardNumber}/shortcode',
784
784
  ...options
785
785
  });
@@ -792,7 +792,7 @@ export const loyaltyGenerateShortCode = (options) => (options.client ?? client).
792
792
  * **Required scope:** `WRITE_LOYALTY`
793
793
  */
794
794
  export const loyaltyUpdateCardToken = (options) => (options.client ?? client).put({
795
- security: [{ scheme: 'basic', type: 'http' }],
795
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
796
796
  url: '/v1/loyalty/card/{cardNumber}/token',
797
797
  ...options,
798
798
  headers: {
@@ -813,7 +813,7 @@ export const loyaltyUpdateCardToken = (options) => (options.client ?? client).pu
813
813
  * **Required scope:** `READ_LOYALTY`
814
814
  */
815
815
  export const loyaltyGetCardTypes = (options) => (options?.client ?? client).get({
816
- security: [{ scheme: 'basic', type: 'http' }],
816
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
817
817
  url: '/v1/loyalty/cardtypes',
818
818
  ...options
819
819
  });
@@ -833,7 +833,7 @@ export const loyaltyGetCardTypes = (options) => (options?.client ?? client).get(
833
833
  * - `9` (Request Rejected) - Card number too short (< 5) or too long (> 25)
834
834
  */
835
835
  export const loyaltyGetCoffeeCardStats = (options) => (options.client ?? client).get({
836
- security: [{ scheme: 'basic', type: 'http' }],
836
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
837
837
  url: '/v1/loyalty/coffeecard/{cardNumber}',
838
838
  ...options
839
839
  });
@@ -846,7 +846,7 @@ export const loyaltyGetCoffeeCardStats = (options) => (options.client ?? client)
846
846
  * **Required scope:** `READ_LOYALTY`
847
847
  */
848
848
  export const loyaltyGetCompulsoryFields = (options) => (options?.client ?? client).get({
849
- security: [{ scheme: 'basic', type: 'http' }],
849
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
850
850
  url: '/v1/loyalty/compulsory',
851
851
  ...options
852
852
  });
@@ -869,7 +869,7 @@ export const loyaltyGetCompulsoryFields = (options) => (options?.client ?? clien
869
869
  * @deprecated
870
870
  */
871
871
  export const loyaltyGetGroups = (options) => (options?.client ?? client).get({
872
- security: [{ scheme: 'basic', type: 'http' }],
872
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
873
873
  url: '/v1/loyalty/groups',
874
874
  ...options
875
875
  });
@@ -883,7 +883,7 @@ export const loyaltyGetGroups = (options) => (options?.client ?? client).get({
883
883
  * **Required scope:** `READ_LOYALTY`
884
884
  */
885
885
  export const loyaltyGetCardImage = (options) => (options.client ?? client).get({
886
- security: [{ scheme: 'basic', type: 'http' }],
886
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
887
887
  url: '/v1/loyalty/image/{cardNumber}',
888
888
  ...options
889
889
  });
@@ -908,7 +908,7 @@ export const loyaltyGetCardImage = (options) => (options.client ?? client).get({
908
908
  * @deprecated
909
909
  */
910
910
  export const loyaltyGetMemberGroups = (options) => (options?.client ?? client).get({
911
- security: [{ scheme: 'basic', type: 'http' }],
911
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
912
912
  url: '/v1/loyalty/membergroups',
913
913
  ...options
914
914
  });
@@ -922,7 +922,7 @@ export const loyaltyGetMemberGroups = (options) => (options?.client ?? client).g
922
922
  * **Required scope:** `WRITE_LOYALTY`
923
923
  */
924
924
  export const loyaltyCreatePointsTransaction = (options) => (options.client ?? client).post({
925
- security: [{ scheme: 'basic', type: 'http' }],
925
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
926
926
  url: '/v1/loyalty/points',
927
927
  ...options,
928
928
  headers: {
@@ -944,7 +944,7 @@ export const loyaltyCreatePointsTransaction = (options) => (options.client ?? cl
944
944
  * - `4` (Not Found) - Card not found, invalid card length, no email on file, or email marked as bad
945
945
  */
946
946
  export const loyaltyGetCardRecovery = (options) => (options.client ?? client).get({
947
- security: [{ scheme: 'basic', type: 'http' }],
947
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
948
948
  url: '/v1/loyalty/recover/{cardNumber}',
949
949
  ...options
950
950
  });
@@ -993,7 +993,7 @@ export const loyaltyGetCardRecovery = (options) => (options.client ?? client).ge
993
993
  * - `4` (Not Found) - No results found, missing search term, or invalid command
994
994
  */
995
995
  export const loyaltySearchCards = (options) => (options.client ?? client).get({
996
- security: [{ scheme: 'basic', type: 'http' }],
996
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
997
997
  url: '/v1/loyalty/search/{command}',
998
998
  ...options
999
999
  });
@@ -1006,7 +1006,7 @@ export const loyaltySearchCards = (options) => (options.client ?? client).get({
1006
1006
  * **Required scope:** `READ_LOYALTY`
1007
1007
  */
1008
1008
  export const loyaltyGetSettings = (options) => (options?.client ?? client).get({
1009
- security: [{ scheme: 'basic', type: 'http' }],
1009
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
1010
1010
  url: '/v1/loyalty/settings',
1011
1011
  ...options
1012
1012
  });
@@ -1025,7 +1025,7 @@ export const loyaltyGetSettings = (options) => (options?.client ?? client).get({
1025
1025
  * - `4` (Not Found) - No cards found
1026
1026
  */
1027
1027
  export const loyaltyGetSyncList = (options) => (options?.client ?? client).get({
1028
- security: [{ scheme: 'basic', type: 'http' }],
1028
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
1029
1029
  url: '/v1/loyalty/syncList',
1030
1030
  ...options
1031
1031
  });
@@ -1037,7 +1037,7 @@ export const loyaltyGetSyncList = (options) => (options?.client ?? client).get({
1037
1037
  * **Required scope:** `WRITE_LOYALTY`
1038
1038
  */
1039
1039
  export const loyaltyUpdateSyncList = (options) => (options.client ?? client).put({
1040
- security: [{ scheme: 'basic', type: 'http' }],
1040
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
1041
1041
  url: '/v1/loyalty/syncList',
1042
1042
  ...options,
1043
1043
  headers: {
@@ -1053,7 +1053,7 @@ export const loyaltyUpdateSyncList = (options) => (options.client ?? client).put
1053
1053
  * **Required scope:** `READ_LOYALTY`
1054
1054
  */
1055
1055
  export const loyaltyGetSyncListByCommand = (options) => (options.client ?? client).get({
1056
- security: [{ scheme: 'basic', type: 'http' }],
1056
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
1057
1057
  url: '/v1/loyalty/syncList/{command}',
1058
1058
  ...options
1059
1059
  });
@@ -1069,7 +1069,7 @@ export const loyaltyGetSyncListByCommand = (options) => (options.client ?? clien
1069
1069
  * **Required scope:** `WRITE_LOYALTY`
1070
1070
  */
1071
1071
  export const loyaltyVerifyCard = (options) => (options.client ?? client).post({
1072
- security: [{ scheme: 'basic', type: 'http' }],
1072
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
1073
1073
  url: '/v1/loyalty/verify',
1074
1074
  ...options,
1075
1075
  headers: {
@@ -1083,7 +1083,7 @@ export const loyaltyVerifyCard = (options) => (options.client ?? client).post({
1083
1083
  * Get digital wallet link for a loyalty card
1084
1084
  */
1085
1085
  export const loyaltyGetWalletLink = (options) => (options.client ?? client).get({
1086
- security: [{ scheme: 'basic', type: 'http' }],
1086
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
1087
1087
  url: '/v1/loyalty/wallet/{cardNumber}',
1088
1088
  ...options
1089
1089
  });
@@ -1117,7 +1117,7 @@ export const loyaltyGetWalletLink = (options) => (options.client ?? client).get(
1117
1117
  * - `48` (Member Exists Same Mobile) - A member with this mobile already exists
1118
1118
  */
1119
1119
  export const membershipCreateMember = (options) => (options.client ?? client).post({
1120
- security: [{ scheme: 'basic', type: 'http' }],
1120
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
1121
1121
  url: '/v1/membership',
1122
1122
  ...options,
1123
1123
  headers: {
@@ -1138,7 +1138,7 @@ export const membershipCreateMember = (options) => (options.client ?? client).po
1138
1138
  * - `3` (Invalid Function) - Invalid sub-function
1139
1139
  */
1140
1140
  export const membershipGetAllowedFunctions = (options) => (options?.client ?? client).get({
1141
- security: [{ scheme: 'basic', type: 'http' }],
1141
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
1142
1142
  url: '/v1/membership/allowedFunctions',
1143
1143
  ...options
1144
1144
  });
@@ -1156,7 +1156,7 @@ export const membershipGetAllowedFunctions = (options) => (options?.client ?? cl
1156
1156
  * - `4` (Not Found) - Card not found or member not found
1157
1157
  */
1158
1158
  export const membershipGetMemberByCard = (options) => (options.client ?? client).get({
1159
- security: [{ scheme: 'basic', type: 'http' }],
1159
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
1160
1160
  url: '/v1/membership/card/{cardNumber}',
1161
1161
  ...options
1162
1162
  });
@@ -1173,7 +1173,7 @@ export const membershipGetMemberByCard = (options) => (options.client ?? client)
1173
1173
  * **Required scope:** `WRITE_MEMBERSHIP`
1174
1174
  */
1175
1175
  export const membershipUpdateMemberByCard = (options) => (options.client ?? client).put({
1176
- security: [{ scheme: 'basic', type: 'http' }],
1176
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
1177
1177
  url: '/v1/membership/card/{cardNumber}',
1178
1178
  ...options,
1179
1179
  headers: {
@@ -1198,7 +1198,7 @@ export const membershipUpdateMemberByCard = (options) => (options.client ?? clie
1198
1198
  * - `4` (Not Found) - No groups found
1199
1199
  */
1200
1200
  export const membershipGetMemberGroups = (options) => (options?.client ?? client).get({
1201
- security: [{ scheme: 'basic', type: 'http' }],
1201
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
1202
1202
  url: '/v1/membership/groups',
1203
1203
  ...options
1204
1204
  });
@@ -1222,7 +1222,7 @@ export const membershipGetMemberGroups = (options) => (options?.client ?? client
1222
1222
  * - `4` (Not Found) - Member not found, or card number invalid (length must be 1-25)
1223
1223
  */
1224
1224
  export const membershipGetMember = (options) => (options.client ?? client).get({
1225
- security: [{ scheme: 'basic', type: 'http' }],
1225
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
1226
1226
  url: '/v1/membership/member/{memberNumber}',
1227
1227
  ...options
1228
1228
  });
@@ -1253,7 +1253,7 @@ export const membershipGetMember = (options) => (options.client ?? client).get({
1253
1253
  * - `45` (Invalid JSON) - Request body is not valid JSON
1254
1254
  */
1255
1255
  export const membershipUpdateMember = (options) => (options.client ?? client).put({
1256
- security: [{ scheme: 'basic', type: 'http' }],
1256
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
1257
1257
  url: '/v1/membership/member/{memberNumber}',
1258
1258
  ...options,
1259
1259
  headers: {
@@ -1278,7 +1278,7 @@ export const membershipUpdateMember = (options) => (options.client ?? client).pu
1278
1278
  * - `11` (Database Error) - Failed to update status
1279
1279
  */
1280
1280
  export const membershipActivateMember = (options) => (options.client ?? client).put({
1281
- security: [{ scheme: 'basic', type: 'http' }],
1281
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
1282
1282
  url: '/v1/membership/member/{memberNumber}/activate',
1283
1283
  ...options
1284
1284
  });
@@ -1301,7 +1301,7 @@ export const membershipActivateMember = (options) => (options.client ?? client).
1301
1301
  * - `45` (Invalid JSON) - Request body is not valid JSON
1302
1302
  */
1303
1303
  export const membershipUpdateMemberAddress = (options) => (options.client ?? client).put({
1304
- security: [{ scheme: 'basic', type: 'http' }],
1304
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
1305
1305
  url: '/v1/membership/member/{memberNumber}/address',
1306
1306
  ...options,
1307
1307
  headers: {
@@ -1326,7 +1326,7 @@ export const membershipUpdateMemberAddress = (options) => (options.client ?? cli
1326
1326
  * - `45` (Invalid JSON) - Request body is not valid JSON
1327
1327
  */
1328
1328
  export const membershipUpdateBillingAddress = (options) => (options.client ?? client).put({
1329
- security: [{ scheme: 'basic', type: 'http' }],
1329
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
1330
1330
  url: '/v1/membership/member/{memberNumber}/billingaddress',
1331
1331
  ...options,
1332
1332
  headers: {
@@ -1351,7 +1351,7 @@ export const membershipUpdateBillingAddress = (options) => (options.client ?? cl
1351
1351
  * - `11` (Database Error) - Failed to update status
1352
1352
  */
1353
1353
  export const membershipCancelMember = (options) => (options.client ?? client).put({
1354
- security: [{ scheme: 'basic', type: 'http' }],
1354
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
1355
1355
  url: '/v1/membership/member/{memberNumber}/cancel',
1356
1356
  ...options
1357
1357
  });
@@ -1373,7 +1373,7 @@ export const membershipCancelMember = (options) => (options.client ?? client).pu
1373
1373
  * - `45` (Invalid JSON) - Request body is not valid JSON
1374
1374
  */
1375
1375
  export const membershipReplaceCreditCard = (options) => (options.client ?? client).put({
1376
- security: [{ scheme: 'basic', type: 'http' }],
1376
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
1377
1377
  url: '/v1/membership/member/{memberNumber}/replacecreditcard',
1378
1378
  ...options,
1379
1379
  headers: {
@@ -1398,7 +1398,7 @@ export const membershipReplaceCreditCard = (options) => (options.client ?? clien
1398
1398
  * - `45` (Invalid JSON) - Request body is not valid JSON
1399
1399
  */
1400
1400
  export const membershipUpdateShippingAddress = (options) => (options.client ?? client).put({
1401
- security: [{ scheme: 'basic', type: 'http' }],
1401
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
1402
1402
  url: '/v1/membership/member/{memberNumber}/shippingaddress',
1403
1403
  ...options,
1404
1404
  headers: {
@@ -1423,7 +1423,7 @@ export const membershipUpdateShippingAddress = (options) => (options.client ?? c
1423
1423
  * - `11` (Database Error) - Failed to update status
1424
1424
  */
1425
1425
  export const membershipSuspendMember = (options) => (options.client ?? client).put({
1426
- security: [{ scheme: 'basic', type: 'http' }],
1426
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
1427
1427
  url: '/v1/membership/member/{memberNumber}/suspend',
1428
1428
  ...options
1429
1429
  });
@@ -1445,7 +1445,7 @@ export const membershipSuspendMember = (options) => (options.client ?? client).p
1445
1445
  * - `45` (Invalid JSON) - Request body is not valid JSON
1446
1446
  */
1447
1447
  export const membershipUpdateMemberToken = (options) => (options.client ?? client).put({
1448
- security: [{ scheme: 'basic', type: 'http' }],
1448
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
1449
1449
  url: '/v1/membership/member/{memberNumber}/token',
1450
1450
  ...options,
1451
1451
  headers: {
@@ -1462,7 +1462,7 @@ export const membershipUpdateMemberToken = (options) => (options.client ?? clien
1462
1462
  * **Required scope:** `READ_MEMBERSHIP`
1463
1463
  */
1464
1464
  export const membershipGetMemberGroupsAlt = (options) => (options?.client ?? client).get({
1465
- security: [{ scheme: 'basic', type: 'http' }],
1465
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
1466
1466
  url: '/v1/membership/membergroups',
1467
1467
  ...options
1468
1468
  });
@@ -1493,7 +1493,7 @@ export const membershipGetMemberGroupsAlt = (options) => (options?.client ?? cli
1493
1493
  * - `4` (Not Found) - Missing search command, missing query string, invalid command, or no results found
1494
1494
  */
1495
1495
  export const membershipSearchMembers = (options) => (options.client ?? client).get({
1496
- security: [{ scheme: 'basic', type: 'http' }],
1496
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
1497
1497
  url: '/v1/membership/search/{command}',
1498
1498
  ...options
1499
1499
  });
@@ -1505,7 +1505,7 @@ export const membershipSearchMembers = (options) => (options.client ?? client).g
1505
1505
  * Requires scope: `write:offers`
1506
1506
  */
1507
1507
  export const offerCreate = (options) => (options.client ?? client).post({
1508
- security: [{ scheme: 'basic', type: 'http' }],
1508
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
1509
1509
  url: '/v1/offer',
1510
1510
  ...options,
1511
1511
  headers: {
@@ -1522,7 +1522,7 @@ export const offerCreate = (options) => (options.client ?? client).post({
1522
1522
  * Requires scope: `read:offers`
1523
1523
  */
1524
1524
  export const offerRedemptionsList = (options) => (options?.client ?? client).get({
1525
- security: [{ scheme: 'basic', type: 'http' }],
1525
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
1526
1526
  url: '/v1/offer-redemptions',
1527
1527
  ...options
1528
1528
  });
@@ -1532,7 +1532,7 @@ export const offerRedemptionsList = (options) => (options?.client ?? client).get
1532
1532
  * Returns coffee card statistics for a specific offer and loyalty card, showing progress towards offer completion
1533
1533
  */
1534
1534
  export const offerGetCoffeeCardStats = (options) => (options.client ?? client).get({
1535
- security: [{ scheme: 'basic', type: 'http' }],
1535
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
1536
1536
  url: '/v1/offer/coffeecard/{cardNumber}',
1537
1537
  ...options
1538
1538
  });
@@ -1544,7 +1544,7 @@ export const offerGetCoffeeCardStats = (options) => (options.client ?? client).g
1544
1544
  * Requires scope: `read:offers`
1545
1545
  */
1546
1546
  export const offerList = (options) => (options.client ?? client).get({
1547
- security: [{ scheme: 'basic', type: 'http' }],
1547
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
1548
1548
  url: '/v1/offer/list/{cardNumber}',
1549
1549
  ...options
1550
1550
  });
@@ -1556,7 +1556,7 @@ export const offerList = (options) => (options.client ?? client).get({
1556
1556
  * Requires scope: `delete:offers`
1557
1557
  */
1558
1558
  export const offerDelete = (options) => (options.client ?? client).delete({
1559
- security: [{ scheme: 'basic', type: 'http' }],
1559
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
1560
1560
  url: '/v1/offer/{offerId}',
1561
1561
  ...options
1562
1562
  });
@@ -1569,7 +1569,7 @@ export const offerDelete = (options) => (options.client ?? client).delete({
1569
1569
  * Requires scope: `write:offers`
1570
1570
  */
1571
1571
  export const offerUpdate = (options) => (options.client ?? client).put({
1572
- security: [{ scheme: 'basic', type: 'http' }],
1572
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
1573
1573
  url: '/v1/offer/{offerId}',
1574
1574
  ...options,
1575
1575
  headers: {
@@ -1585,7 +1585,7 @@ export const offerUpdate = (options) => (options.client ?? client).put({
1585
1585
  * Requires scope: `read:offers`
1586
1586
  */
1587
1587
  export const offersSearch = (options) => (options.client ?? client).get({
1588
- security: [{ scheme: 'basic', type: 'http' }],
1588
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
1589
1589
  url: '/v1/offers/search',
1590
1590
  ...options
1591
1591
  });
@@ -1598,7 +1598,7 @@ export const offersSearch = (options) => (options.client ?? client).get({
1598
1598
  * Requires scope: `read:offers`
1599
1599
  */
1600
1600
  export const offersGetById = (options) => (options.client ?? client).get({
1601
- security: [{ scheme: 'basic', type: 'http' }],
1601
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
1602
1602
  url: '/v1/offers/{id}',
1603
1603
  ...options
1604
1604
  });
@@ -1621,7 +1621,7 @@ export const offersGetById = (options) => (options.client ?? client).get({
1621
1621
  * - `45` (Invalid JSON) - Request body is not valid JSON
1622
1622
  */
1623
1623
  export const orderDeleteOrder = (options) => (options.client ?? client).delete({
1624
- security: [{ scheme: 'basic', type: 'http' }],
1624
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
1625
1625
  url: '/v1/order',
1626
1626
  ...options,
1627
1627
  headers: {
@@ -1653,7 +1653,7 @@ export const orderDeleteOrder = (options) => (options.client ?? client).delete({
1653
1653
  * - `45` (Invalid JSON) - Request body is not valid JSON
1654
1654
  */
1655
1655
  export const orderCreateOrder = (options) => (options.client ?? client).post({
1656
- security: [{ scheme: 'basic', type: 'http' }],
1656
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
1657
1657
  url: '/v1/order',
1658
1658
  ...options,
1659
1659
  headers: {
@@ -1675,7 +1675,7 @@ export const orderCreateOrder = (options) => (options.client ?? client).post({
1675
1675
  * - `1` (Invalid Access Key) - Invalid or missing API key/scope
1676
1676
  */
1677
1677
  export const orderGetAllowedFunctions = (options) => (options?.client ?? client).get({
1678
- security: [{ scheme: 'basic', type: 'http' }],
1678
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
1679
1679
  url: '/v1/order/allowedFunctions',
1680
1680
  ...options
1681
1681
  });
@@ -1710,7 +1710,7 @@ export const orderGetAllowedFunctions = (options) => (options?.client ?? client)
1710
1710
  * - `4` (Not Found) - Missing search criteria or no orders match
1711
1711
  */
1712
1712
  export const orderSearchOrders = (options) => (options.client ?? client).get({
1713
- security: [{ scheme: 'basic', type: 'http' }],
1713
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
1714
1714
  url: '/v1/order/search/{command}/{query}/{site}',
1715
1715
  ...options
1716
1716
  });
@@ -1730,7 +1730,7 @@ export const orderSearchOrders = (options) => (options.client ?? client).get({
1730
1730
  * - `4` (Not Found) - Order not found
1731
1731
  */
1732
1732
  export const orderGetOrder = (options) => (options.client ?? client).get({
1733
- security: [{ scheme: 'basic', type: 'http' }],
1733
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
1734
1734
  url: '/v1/order/{orderNumber}/{site}',
1735
1735
  ...options
1736
1736
  });
@@ -1741,7 +1741,7 @@ export const orderGetOrder = (options) => (options.client ?? client).get({
1741
1741
  * Zen server.
1742
1742
  */
1743
1743
  export const pingPing = (options) => (options?.client ?? client).get({
1744
- security: [{ scheme: 'basic', type: 'http' }],
1744
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
1745
1745
  url: '/v1/ping',
1746
1746
  ...options
1747
1747
  });
@@ -1760,7 +1760,7 @@ export const pingPing = (options) => (options?.client ?? client).get({
1760
1760
  * - `4` (Not Found) - Company or sites not found
1761
1761
  */
1762
1762
  export const sitesGetSites = (options) => (options?.client ?? client).get({
1763
- security: [{ scheme: 'basic', type: 'http' }],
1763
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
1764
1764
  url: '/v1/sites',
1765
1765
  ...options
1766
1766
  });
@@ -1785,7 +1785,7 @@ export const sitesGetSites = (options) => (options?.client ?? client).get({
1785
1785
  * - `sitecode`: exact match (supports comma-separated batch)
1786
1786
  */
1787
1787
  export const sitesSearchSites = (options) => (options.client ?? client).get({
1788
- security: [{ scheme: 'basic', type: 'http' }],
1788
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
1789
1789
  url: '/v1/sites/search',
1790
1790
  ...options
1791
1791
  });
@@ -1799,7 +1799,7 @@ export const sitesSearchSites = (options) => (options.client ?? client).get({
1799
1799
  * Required scope: `read:stripe`
1800
1800
  */
1801
1801
  export const stripeGetStripeConfig = (options) => (options?.client ?? client).get({
1802
- security: [{ scheme: 'basic', type: 'http' }],
1802
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
1803
1803
  url: '/v1/stripe',
1804
1804
  ...options
1805
1805
  });
@@ -1811,7 +1811,7 @@ export const stripeGetStripeConfig = (options) => (options?.client ?? client).ge
1811
1811
  * @deprecated
1812
1812
  */
1813
1813
  export const transactionGetTransaction = (options) => (options.client ?? client).get({
1814
- security: [{ scheme: 'basic', type: 'http' }],
1814
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
1815
1815
  url: '/v1/transaction',
1816
1816
  ...options
1817
1817
  });
@@ -1835,7 +1835,7 @@ export const transactionGetTransaction = (options) => (options.client ?? client)
1835
1835
  * - `45` (Invalid JSON) - Request body is not valid JSON
1836
1836
  */
1837
1837
  export const transactionCreateTransaction = (options) => (options.client ?? client).post({
1838
- security: [{ scheme: 'basic', type: 'http' }],
1838
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
1839
1839
  url: '/v1/transaction',
1840
1840
  ...options,
1841
1841
  headers: {
@@ -1863,7 +1863,7 @@ export const transactionCreateTransaction = (options) => (options.client ?? clie
1863
1863
  * - `12` (Invalid Site) - Specified site not part of company
1864
1864
  */
1865
1865
  export const transactionLookupSearchJournals = (options) => (options.client ?? client).get({
1866
- security: [{ scheme: 'basic', type: 'http' }],
1866
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
1867
1867
  url: '/v1/transaction-lookup',
1868
1868
  ...options
1869
1869
  });
@@ -1885,7 +1885,7 @@ export const transactionLookupSearchJournals = (options) => (options.client ?? c
1885
1885
  * - `4` (Not Found) - Journal not found, or raw XML not available (xml format)
1886
1886
  */
1887
1887
  export const transactionLookupDetailGetJournalById = (options) => (options.client ?? client).get({
1888
- security: [{ scheme: 'basic', type: 'http' }],
1888
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
1889
1889
  url: '/v1/transaction-lookup/{id}',
1890
1890
  ...options
1891
1891
  });
@@ -1903,7 +1903,7 @@ export const transactionLookupDetailGetJournalById = (options) => (options.clien
1903
1903
  * * `3` (Invalid Function) - Request method is not POST
1904
1904
  */
1905
1905
  export const emailValidationValidateEmail = (options) => (options.client ?? client).post({
1906
- security: [{ scheme: 'basic', type: 'http' }],
1906
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
1907
1907
  url: '/v1/validate-email',
1908
1908
  ...options,
1909
1909
  headers: {
@@ -1917,7 +1917,7 @@ export const emailValidationValidateEmail = (options) => (options.client ?? clie
1917
1917
  * Get API version information and available function sections
1918
1918
  */
1919
1919
  export const versionGetVersion = (options) => (options?.client ?? client).get({
1920
- security: [{ scheme: 'basic', type: 'http' }],
1920
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
1921
1921
  url: '/v1/version',
1922
1922
  ...options
1923
1923
  });
@@ -1936,7 +1936,7 @@ export const versionGetVersion = (options) => (options?.client ?? client).get({
1936
1936
  * - `4` (Not Found) - Voucher type not found
1937
1937
  */
1938
1938
  export const voucherGetVoucherType = (options) => (options.client ?? client).get({
1939
- security: [{ scheme: 'basic', type: 'http' }],
1939
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
1940
1940
  url: '/v1/voucher/{voucherType}',
1941
1941
  ...options
1942
1942
  });
@@ -1962,7 +1962,7 @@ export const voucherGetVoucherType = (options) => (options.client ?? client).get
1962
1962
  * - `45` (Invalid JSON) - Request body is not valid JSON
1963
1963
  */
1964
1964
  export const voucherCreateVoucher = (options) => (options.client ?? client).post({
1965
- security: [{ scheme: 'basic', type: 'http' }],
1965
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
1966
1966
  url: '/v1/voucher/{voucherType}/create',
1967
1967
  ...options,
1968
1968
  headers: {
@@ -2007,7 +2007,7 @@ export const voucherCreateVoucher = (options) => (options.client ?? client).post
2007
2007
  * | E | Portal Edit |
2008
2008
  */
2009
2009
  export const voucherEnquireVoucher = (options) => (options.client ?? client).post({
2010
- security: [{ scheme: 'basic', type: 'http' }],
2010
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
2011
2011
  url: '/v1/voucher/{voucherType}/enquire',
2012
2012
  ...options,
2013
2013
  headers: {
@@ -2031,7 +2031,7 @@ export const voucherEnquireVoucher = (options) => (options.client ?? client).pos
2031
2031
  * - `9` (Request Rejected) - Serial number length out of range (4-13 chars)
2032
2032
  */
2033
2033
  export const voucherGetVoucherImage = (options) => (options.client ?? client).get({
2034
- security: [{ scheme: 'basic', type: 'http' }],
2034
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
2035
2035
  url: '/v1/voucher/{voucherType}/image/{serialNumber}',
2036
2036
  ...options
2037
2037
  });
@@ -2065,7 +2065,7 @@ export const voucherGetVoucherImage = (options) => (options.client ?? client).ge
2065
2065
  * - `45` (Invalid JSON) - Request body is not valid JSON
2066
2066
  */
2067
2067
  export const voucherRechargeVoucher = (options) => (options.client ?? client).post({
2068
- security: [{ scheme: 'basic', type: 'http' }],
2068
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
2069
2069
  url: '/v1/voucher/{voucherType}/recharge',
2070
2070
  ...options,
2071
2071
  headers: {
@@ -2096,7 +2096,7 @@ export const voucherRechargeVoucher = (options) => (options.client ?? client).po
2096
2096
  * - `45` (Invalid JSON) - Request body is not valid JSON
2097
2097
  */
2098
2098
  export const voucherRedeemVoucher = (options) => (options.client ?? client).post({
2099
- security: [{ scheme: 'basic', type: 'http' }],
2099
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
2100
2100
  url: '/v1/voucher/{voucherType}/redeem',
2101
2101
  ...options,
2102
2102
  headers: {
@@ -2124,7 +2124,7 @@ export const voucherRedeemVoucher = (options) => (options.client ?? client).post
2124
2124
  * - `45` (Invalid JSON) - Request body is not valid JSON
2125
2125
  */
2126
2126
  export const voucherReleaseVoucher = (options) => (options.client ?? client).post({
2127
- security: [{ scheme: 'basic', type: 'http' }],
2127
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
2128
2128
  url: '/v1/voucher/{voucherType}/release',
2129
2129
  ...options,
2130
2130
  headers: {
@@ -2166,7 +2166,7 @@ export const voucherReleaseVoucher = (options) => (options.client ?? client).pos
2166
2166
  * - `45` (Invalid JSON) - Request body is not valid JSON
2167
2167
  */
2168
2168
  export const voucherReserveVoucher = (options) => (options.client ?? client).post({
2169
- security: [{ scheme: 'basic', type: 'http' }],
2169
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
2170
2170
  url: '/v1/voucher/{voucherType}/reserve',
2171
2171
  ...options,
2172
2172
  headers: {
@@ -2195,7 +2195,7 @@ export const voucherReserveVoucher = (options) => (options.client ?? client).pos
2195
2195
  * - `4` (Not Found) - Missing search criteria or no vouchers found
2196
2196
  */
2197
2197
  export const voucherSearchVouchers = (options) => (options.client ?? client).get({
2198
- security: [{ scheme: 'basic', type: 'http' }],
2198
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
2199
2199
  url: '/v1/voucher/{voucherType}/search/{searchBy}',
2200
2200
  ...options
2201
2201
  });
@@ -2214,7 +2214,7 @@ export const voucherSearchVouchers = (options) => (options.client ?? client).get
2214
2214
  * - `4` (Not Found) - Missing search criteria or no vouchers found
2215
2215
  */
2216
2216
  export const voucherSearchVouchersFlat = (options) => (options.client ?? client).get({
2217
- security: [{ scheme: 'basic', type: 'http' }],
2217
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
2218
2218
  url: '/v1/voucher/{voucherType}/search2/{searchBy}',
2219
2219
  ...options
2220
2220
  });
@@ -2234,7 +2234,7 @@ export const voucherSearchVouchersFlat = (options) => (options.client ?? client)
2234
2234
  * > Proceed with care.
2235
2235
  */
2236
2236
  export const customerDelete = (options) => (options.client ?? client).delete({
2237
- security: [{ scheme: 'basic', type: 'http' }],
2237
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
2238
2238
  url: '/v2/customer/{customer_id}',
2239
2239
  ...options
2240
2240
  });
@@ -2247,7 +2247,7 @@ export const customerDelete = (options) => (options.client ?? client).delete({
2247
2247
  * **Required scope:** `READ_LOYALTY`
2248
2248
  */
2249
2249
  export const loyaltyV2GetGroups = (options) => (options?.client ?? client).get({
2250
- security: [{ scheme: 'basic', type: 'http' }],
2250
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
2251
2251
  url: '/v2/loyalty/groups',
2252
2252
  ...options
2253
2253
  });
@@ -2260,7 +2260,7 @@ export const loyaltyV2GetGroups = (options) => (options?.client ?? client).get({
2260
2260
  * **Required scope:** `READ_LOYALTY`
2261
2261
  */
2262
2262
  export const loyaltyV2GetMemberGroups = (options) => (options?.client ?? client).get({
2263
- security: [{ scheme: 'basic', type: 'http' }],
2263
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
2264
2264
  url: '/v2/loyalty/membergroups',
2265
2265
  ...options
2266
2266
  });
@@ -2271,7 +2271,7 @@ export const loyaltyV2GetMemberGroups = (options) => (options?.client ?? client)
2271
2271
  * Zen server.
2272
2272
  */
2273
2273
  export const pingV2Show = (options) => (options?.client ?? client).get({
2274
- security: [{ scheme: 'basic', type: 'http' }],
2274
+ security: [{ scheme: 'basic', type: 'http' }, { scheme: 'bearer', type: 'http' }],
2275
2275
  url: '/v2/ping',
2276
2276
  ...options
2277
2277
  });