@drttix/drt-sdk 0.9.7 → 0.9.8

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 (67) hide show
  1. package/demo/test.html +1554 -674
  2. package/dist/bundle/drt-sdk.js +1 -1
  3. package/dist/cjs/src/generated/shopper/services/AccountService.d.ts +4 -16
  4. package/dist/cjs/src/generated/shopper/services/AccountService.js +4 -36
  5. package/dist/cjs/src/generated/shopper/services/CartService.d.ts +2 -8
  6. package/dist/cjs/src/generated/shopper/services/CartService.js +2 -18
  7. package/dist/cjs/src/generated/shopper/services/CheckoutService.d.ts +5 -20
  8. package/dist/cjs/src/generated/shopper/services/CheckoutService.js +5 -45
  9. package/dist/cjs/src/generated/shopper/services/CodeService.d.ts +5 -20
  10. package/dist/cjs/src/generated/shopper/services/CodeService.js +5 -45
  11. package/dist/cjs/src/generated/shopper/services/DonationService.d.ts +2 -8
  12. package/dist/cjs/src/generated/shopper/services/DonationService.js +2 -16
  13. package/dist/cjs/src/generated/shopper/services/EventService.d.ts +4 -16
  14. package/dist/cjs/src/generated/shopper/services/EventService.js +4 -36
  15. package/dist/cjs/src/generated/shopper/services/GiftCardService.d.ts +5 -20
  16. package/dist/cjs/src/generated/shopper/services/GiftCardService.js +5 -45
  17. package/dist/cjs/src/generated/shopper/services/OrderService.d.ts +14 -56
  18. package/dist/cjs/src/generated/shopper/services/OrderService.js +14 -126
  19. package/dist/cjs/src/generated/shopper/services/PaymentService.d.ts +3 -12
  20. package/dist/cjs/src/generated/shopper/services/PaymentService.js +3 -27
  21. package/dist/cjs/src/generated/shopper/services/ProductService.d.ts +3 -12
  22. package/dist/cjs/src/generated/shopper/services/ProductService.js +3 -27
  23. package/dist/cjs/src/generated/shopper/services/SeatService.d.ts +6 -24
  24. package/dist/cjs/src/generated/shopper/services/SeatService.js +6 -54
  25. package/dist/cjs/src/generated/shopper/services/SessionService.d.ts +2 -8
  26. package/dist/cjs/src/generated/shopper/services/SessionService.js +2 -18
  27. package/dist/cjs/src/scripts/build-all.js +39 -0
  28. package/dist/esm/src/generated/shopper/services/AccountService.d.ts +4 -16
  29. package/dist/esm/src/generated/shopper/services/AccountService.js +4 -36
  30. package/dist/esm/src/generated/shopper/services/CartService.d.ts +2 -8
  31. package/dist/esm/src/generated/shopper/services/CartService.js +2 -18
  32. package/dist/esm/src/generated/shopper/services/CheckoutService.d.ts +5 -20
  33. package/dist/esm/src/generated/shopper/services/CheckoutService.js +5 -45
  34. package/dist/esm/src/generated/shopper/services/CodeService.d.ts +5 -20
  35. package/dist/esm/src/generated/shopper/services/CodeService.js +5 -45
  36. package/dist/esm/src/generated/shopper/services/DonationService.d.ts +2 -8
  37. package/dist/esm/src/generated/shopper/services/DonationService.js +2 -16
  38. package/dist/esm/src/generated/shopper/services/EventService.d.ts +4 -16
  39. package/dist/esm/src/generated/shopper/services/EventService.js +4 -36
  40. package/dist/esm/src/generated/shopper/services/GiftCardService.d.ts +5 -20
  41. package/dist/esm/src/generated/shopper/services/GiftCardService.js +5 -45
  42. package/dist/esm/src/generated/shopper/services/OrderService.d.ts +14 -56
  43. package/dist/esm/src/generated/shopper/services/OrderService.js +14 -126
  44. package/dist/esm/src/generated/shopper/services/PaymentService.d.ts +3 -12
  45. package/dist/esm/src/generated/shopper/services/PaymentService.js +3 -27
  46. package/dist/esm/src/generated/shopper/services/ProductService.d.ts +3 -12
  47. package/dist/esm/src/generated/shopper/services/ProductService.js +3 -27
  48. package/dist/esm/src/generated/shopper/services/SeatService.d.ts +6 -24
  49. package/dist/esm/src/generated/shopper/services/SeatService.js +6 -54
  50. package/dist/esm/src/generated/shopper/services/SessionService.d.ts +2 -8
  51. package/dist/esm/src/generated/shopper/services/SessionService.js +2 -18
  52. package/dist/esm/src/scripts/build-all.js +39 -0
  53. package/package.json +1 -1
  54. package/public/sdk/latest/drt-sdk.js +1 -1
  55. package/src/generated/shopper/services/AccountService.ts +0 -44
  56. package/src/generated/shopper/services/CartService.ts +0 -22
  57. package/src/generated/shopper/services/CheckoutService.ts +0 -55
  58. package/src/generated/shopper/services/CodeService.ts +0 -55
  59. package/src/generated/shopper/services/DonationService.ts +0 -20
  60. package/src/generated/shopper/services/EventService.ts +0 -44
  61. package/src/generated/shopper/services/GiftCardService.ts +0 -55
  62. package/src/generated/shopper/services/OrderService.ts +0 -154
  63. package/src/generated/shopper/services/PaymentService.ts +0 -33
  64. package/src/generated/shopper/services/ProductService.ts +0 -33
  65. package/src/generated/shopper/services/SeatService.ts +0 -66
  66. package/src/generated/shopper/services/SessionService.ts +0 -22
  67. package/src/scripts/build-all.ts +52 -0
@@ -9,55 +9,40 @@ export declare class CodeService {
9
9
  * Request access to an event
10
10
  * Allows a shopper to request access to an event using their shopper GUID and account ID.
11
11
  * @param eventId ID of the event for which access is requested
12
- * @param shopperguid Unique identifier for the shopper.
13
- * @param accountid Unique identifier for the account.
14
- * @param apikey API key for authentication.
15
12
  * @returns HasAccessResponse Access request submitted successfully.
16
13
  * @throws ApiError
17
14
  */
18
- static requestEventAccess(eventId: number, shopperguid: string, accountid: string, apikey: string): CancelablePromise<HasAccessResponse>;
15
+ static requestEventAccess(eventId: number): CancelablePromise<HasAccessResponse>;
19
16
  /**
20
17
  * Apply a code to the current shopper session
21
18
  * Applies a code to the current shopper session.
22
- * @param shopperguid Unique identifier for the shopper.
23
- * @param accountid Unique identifier for the account.
24
- * @param apikey API key for authentication.
25
19
  * @param requestBody Code to be applied
26
20
  * @returns SuccessWithTime Code applied successfully.
27
21
  * @throws ApiError
28
22
  */
29
- static applyCode(shopperguid: string, accountid: string, apikey: string, requestBody: CodeDto): CancelablePromise<SuccessWithTime>;
23
+ static applyCode(requestBody: CodeDto): CancelablePromise<SuccessWithTime>;
30
24
  /**
31
25
  * Apply a coupon to the current shopper session
32
26
  * Applies a coupon to the current shopper session.
33
- * @param shopperguid Unique identifier for the shopper.
34
- * @param accountid Unique identifier for the account.
35
- * @param apikey API key for authentication.
36
27
  * @param requestBody Coupon code to be applied
37
28
  * @returns UniversalCodeResponse Coupon applied successfully.
38
29
  * @throws ApiError
39
30
  */
40
- static applyCoupon(shopperguid: string, accountid: string, apikey: string, requestBody: CodeDto): CancelablePromise<UniversalCodeResponse>;
31
+ static applyCoupon(requestBody: CodeDto): CancelablePromise<UniversalCodeResponse>;
41
32
  /**
42
33
  * Remove a coupon from the current shopper session
43
34
  * Removes a coupon from the current shopper session.
44
- * @param shopperguid Unique identifier for the shopper.
45
- * @param accountid Unique identifier for the account.
46
- * @param apikey API key for authentication.
47
35
  * @param requestBody Coupon code to be removed
48
36
  * @returns UniversalCodeResponse Coupon removed successfully.
49
37
  * @throws ApiError
50
38
  */
51
- static removeCoupon(shopperguid: string, accountid: string, apikey: string, requestBody: CodeDto): CancelablePromise<UniversalCodeResponse>;
39
+ static removeCoupon(requestBody: CodeDto): CancelablePromise<UniversalCodeResponse>;
52
40
  /**
53
41
  * Apply Priority Code
54
42
  * Applies a priority code to the cart.
55
- * @param shopperguid Unique identifier for the shopper.
56
- * @param accountid Unique identifier for the account.
57
- * @param apikey API key for authentication.
58
43
  * @param requestBody Priority code data to be applied
59
44
  * @returns SuccessWithTime Priority code applied successfully.
60
45
  * @throws ApiError
61
46
  */
62
- static applyPriorityCode(shopperguid: string, accountid: string, apikey: string, requestBody: PriorityCode): CancelablePromise<SuccessWithTime>;
47
+ static applyPriorityCode(requestBody: PriorityCode): CancelablePromise<SuccessWithTime>;
63
48
  }
@@ -5,21 +5,13 @@ export class CodeService {
5
5
  * Request access to an event
6
6
  * Allows a shopper to request access to an event using their shopper GUID and account ID.
7
7
  * @param eventId ID of the event for which access is requested
8
- * @param shopperguid Unique identifier for the shopper.
9
- * @param accountid Unique identifier for the account.
10
- * @param apikey API key for authentication.
11
8
  * @returns HasAccessResponse Access request submitted successfully.
12
9
  * @throws ApiError
13
10
  */
14
- static requestEventAccess(eventId, shopperguid, accountid, apikey) {
11
+ static requestEventAccess(eventId) {
15
12
  return __request(OpenAPI, {
16
13
  method: 'GET',
17
14
  url: '/code/access',
18
- headers: {
19
- 'shopperguid': shopperguid,
20
- 'accountid': accountid,
21
- 'apikey': apikey,
22
- },
23
15
  query: {
24
16
  'eventId': eventId,
25
17
  },
@@ -33,22 +25,14 @@ export class CodeService {
33
25
  /**
34
26
  * Apply a code to the current shopper session
35
27
  * Applies a code to the current shopper session.
36
- * @param shopperguid Unique identifier for the shopper.
37
- * @param accountid Unique identifier for the account.
38
- * @param apikey API key for authentication.
39
28
  * @param requestBody Code to be applied
40
29
  * @returns SuccessWithTime Code applied successfully.
41
30
  * @throws ApiError
42
31
  */
43
- static applyCode(shopperguid, accountid, apikey, requestBody) {
32
+ static applyCode(requestBody) {
44
33
  return __request(OpenAPI, {
45
34
  method: 'POST',
46
35
  url: '/code',
47
- headers: {
48
- 'shopperguid': shopperguid,
49
- 'accountid': accountid,
50
- 'apikey': apikey,
51
- },
52
36
  body: requestBody,
53
37
  mediaType: 'application/json',
54
38
  errors: {
@@ -61,22 +45,14 @@ export class CodeService {
61
45
  /**
62
46
  * Apply a coupon to the current shopper session
63
47
  * Applies a coupon to the current shopper session.
64
- * @param shopperguid Unique identifier for the shopper.
65
- * @param accountid Unique identifier for the account.
66
- * @param apikey API key for authentication.
67
48
  * @param requestBody Coupon code to be applied
68
49
  * @returns UniversalCodeResponse Coupon applied successfully.
69
50
  * @throws ApiError
70
51
  */
71
- static applyCoupon(shopperguid, accountid, apikey, requestBody) {
52
+ static applyCoupon(requestBody) {
72
53
  return __request(OpenAPI, {
73
54
  method: 'POST',
74
55
  url: '/code/discount',
75
- headers: {
76
- 'shopperguid': shopperguid,
77
- 'accountid': accountid,
78
- 'apikey': apikey,
79
- },
80
56
  body: requestBody,
81
57
  mediaType: 'application/json',
82
58
  errors: {
@@ -89,22 +65,14 @@ export class CodeService {
89
65
  /**
90
66
  * Remove a coupon from the current shopper session
91
67
  * Removes a coupon from the current shopper session.
92
- * @param shopperguid Unique identifier for the shopper.
93
- * @param accountid Unique identifier for the account.
94
- * @param apikey API key for authentication.
95
68
  * @param requestBody Coupon code to be removed
96
69
  * @returns UniversalCodeResponse Coupon removed successfully.
97
70
  * @throws ApiError
98
71
  */
99
- static removeCoupon(shopperguid, accountid, apikey, requestBody) {
72
+ static removeCoupon(requestBody) {
100
73
  return __request(OpenAPI, {
101
74
  method: 'DELETE',
102
75
  url: '/code/discount',
103
- headers: {
104
- 'shopperguid': shopperguid,
105
- 'accountid': accountid,
106
- 'apikey': apikey,
107
- },
108
76
  body: requestBody,
109
77
  mediaType: 'application/json',
110
78
  errors: {
@@ -117,22 +85,14 @@ export class CodeService {
117
85
  /**
118
86
  * Apply Priority Code
119
87
  * Applies a priority code to the cart.
120
- * @param shopperguid Unique identifier for the shopper.
121
- * @param accountid Unique identifier for the account.
122
- * @param apikey API key for authentication.
123
88
  * @param requestBody Priority code data to be applied
124
89
  * @returns SuccessWithTime Priority code applied successfully.
125
90
  * @throws ApiError
126
91
  */
127
- static applyPriorityCode(shopperguid, accountid, apikey, requestBody) {
92
+ static applyPriorityCode(requestBody) {
128
93
  return __request(OpenAPI, {
129
94
  method: 'POST',
130
95
  url: '/code/priority',
131
- headers: {
132
- 'shopperguid': shopperguid,
133
- 'accountid': accountid,
134
- 'apikey': apikey,
135
- },
136
96
  body: requestBody,
137
97
  mediaType: 'application/json',
138
98
  errors: {
@@ -6,23 +6,17 @@ export declare class DonationService {
6
6
  /**
7
7
  * Get all donations for a shopper
8
8
  * Retrieves all donations and contributions associated with the specified shopper and account.
9
- * @param shopperguid Unique identifier for the shopper.
10
- * @param accountid Unique identifier for the account.
11
- * @param apikey API key for authentication.
12
9
  * @returns DonationsandContributions Returns a list of donations and contributions for the shopper.
13
10
  * @throws ApiError
14
11
  */
15
- static getDonations(shopperguid: string, accountid: string, apikey: string): CancelablePromise<DonationsandContributions>;
12
+ static getDonations(): CancelablePromise<DonationsandContributions>;
16
13
  /**
17
14
  * Add a donation or contribution
18
15
  * Adds a new donation or contribution for the specified shopper and account.
19
16
  * @param ipAddress API key for authentication.
20
- * @param shopperguid Unique identifier for the shopper.
21
- * @param accountid Unique identifier for the account.
22
- * @param apikey API key for authentication.
23
17
  * @param requestBody Donation or contribution details to add.
24
18
  * @returns DonationResult Returns the result of the donation addition.
25
19
  * @throws ApiError
26
20
  */
27
- static postDonation(ipAddress: string, shopperguid: string, accountid: string, apikey: string, requestBody: DonationContribution): CancelablePromise<DonationResult>;
21
+ static postDonation(ipAddress: string, requestBody: DonationContribution): CancelablePromise<DonationResult>;
28
22
  }
@@ -4,21 +4,13 @@ export class DonationService {
4
4
  /**
5
5
  * Get all donations for a shopper
6
6
  * Retrieves all donations and contributions associated with the specified shopper and account.
7
- * @param shopperguid Unique identifier for the shopper.
8
- * @param accountid Unique identifier for the account.
9
- * @param apikey API key for authentication.
10
7
  * @returns DonationsandContributions Returns a list of donations and contributions for the shopper.
11
8
  * @throws ApiError
12
9
  */
13
- static getDonations(shopperguid, accountid, apikey) {
10
+ static getDonations() {
14
11
  return __request(OpenAPI, {
15
12
  method: 'GET',
16
13
  url: '/donation',
17
- headers: {
18
- 'shopperguid': shopperguid,
19
- 'accountid': accountid,
20
- 'apikey': apikey,
21
- },
22
14
  errors: {
23
15
  400: `Bad Request error with error details.`,
24
16
  404: `Not found error with error details.`,
@@ -30,22 +22,16 @@ export class DonationService {
30
22
  * Add a donation or contribution
31
23
  * Adds a new donation or contribution for the specified shopper and account.
32
24
  * @param ipAddress API key for authentication.
33
- * @param shopperguid Unique identifier for the shopper.
34
- * @param accountid Unique identifier for the account.
35
- * @param apikey API key for authentication.
36
25
  * @param requestBody Donation or contribution details to add.
37
26
  * @returns DonationResult Returns the result of the donation addition.
38
27
  * @throws ApiError
39
28
  */
40
- static postDonation(ipAddress, shopperguid, accountid, apikey, requestBody) {
29
+ static postDonation(ipAddress, requestBody) {
41
30
  return __request(OpenAPI, {
42
31
  method: 'POST',
43
32
  url: '/donation',
44
33
  headers: {
45
34
  'ipAddress': ipAddress,
46
- 'shopperguid': shopperguid,
47
- 'accountid': accountid,
48
- 'apikey': apikey,
49
35
  },
50
36
  body: requestBody,
51
37
  mediaType: 'application/json',
@@ -8,44 +8,32 @@ export declare class EventService {
8
8
  /**
9
9
  * Get all events for a shopper
10
10
  * Retrieves all events associated with the shopper.
11
- * @param shopperguid Unique identifier for the shopper.
12
- * @param accountid Unique identifier for the account.
13
- * @param apikey API key for authentication.
14
11
  * @returns GetEventsResponse Returns a list of events and their groups.
15
12
  * @throws ApiError
16
13
  */
17
- static getEvents(shopperguid: string, accountid: string, apikey: string): CancelablePromise<GetEventsResponse>;
14
+ static getEvents(): CancelablePromise<GetEventsResponse>;
18
15
  /**
19
16
  * Get events for a specific performer
20
17
  * Retrieves events associated with a specific performer.
21
18
  * @param performer The name of the performer to filter events by.
22
- * @param shopperguid Unique identifier for the shopper.
23
- * @param accountid Unique identifier for the account.
24
- * @param apikey API key for authentication.
25
19
  * @returns PerformerEventList Returns a list of event IDs and their primary status.
26
20
  * @throws ApiError
27
21
  */
28
- static getPerformers(performer: string, shopperguid: string, accountid: string, apikey: string): CancelablePromise<Array<PerformerEventList>>;
22
+ static getPerformers(performer: string): CancelablePromise<Array<PerformerEventList>>;
29
23
  /**
30
24
  * Get event details by ID
31
25
  * Retrieves detailed information for a specific event.
32
26
  * @param id
33
- * @param shopperguid Unique identifier for the shopper.
34
- * @param accountid Unique identifier for the account.
35
- * @param apikey API key for authentication.
36
27
  * @returns FullEventDetails Returns the event details.
37
28
  * @throws ApiError
38
29
  */
39
- static getEventById(id: number, shopperguid: string, accountid: string, apikey: string): CancelablePromise<FullEventDetails>;
30
+ static getEventById(id: number): CancelablePromise<FullEventDetails>;
40
31
  /**
41
32
  * Assign names to the waitlist
42
33
  * Updates the waitlist with shopper details.
43
- * @param shopperguid Unique identifier for the shopper.
44
- * @param accountid Unique identifier for the account.
45
- * @param apikey API key for authentication.
46
34
  * @param requestBody Details of the waitlist update
47
35
  * @returns WaitlistResponse Returns the result of the waitlist update.
48
36
  * @throws ApiError
49
37
  */
50
- static postWishlist(shopperguid: string, accountid: string, apikey: string, requestBody: WaitlistUpdate): CancelablePromise<WaitlistResponse>;
38
+ static postWishlist(requestBody: WaitlistUpdate): CancelablePromise<WaitlistResponse>;
51
39
  }
@@ -4,21 +4,13 @@ export class EventService {
4
4
  /**
5
5
  * Get all events for a shopper
6
6
  * Retrieves all events associated with the shopper.
7
- * @param shopperguid Unique identifier for the shopper.
8
- * @param accountid Unique identifier for the account.
9
- * @param apikey API key for authentication.
10
7
  * @returns GetEventsResponse Returns a list of events and their groups.
11
8
  * @throws ApiError
12
9
  */
13
- static getEvents(shopperguid, accountid, apikey) {
10
+ static getEvents() {
14
11
  return __request(OpenAPI, {
15
12
  method: 'GET',
16
13
  url: '/event',
17
- headers: {
18
- 'shopperguid': shopperguid,
19
- 'accountid': accountid,
20
- 'apikey': apikey,
21
- },
22
14
  errors: {
23
15
  400: `Bad Request error with error details.`,
24
16
  404: `Not found error with error details.`,
@@ -30,21 +22,13 @@ export class EventService {
30
22
  * Get events for a specific performer
31
23
  * Retrieves events associated with a specific performer.
32
24
  * @param performer The name of the performer to filter events by.
33
- * @param shopperguid Unique identifier for the shopper.
34
- * @param accountid Unique identifier for the account.
35
- * @param apikey API key for authentication.
36
25
  * @returns PerformerEventList Returns a list of event IDs and their primary status.
37
26
  * @throws ApiError
38
27
  */
39
- static getPerformers(performer, shopperguid, accountid, apikey) {
28
+ static getPerformers(performer) {
40
29
  return __request(OpenAPI, {
41
30
  method: 'GET',
42
31
  url: '/event/performer',
43
- headers: {
44
- 'shopperguid': shopperguid,
45
- 'accountid': accountid,
46
- 'apikey': apikey,
47
- },
48
32
  query: {
49
33
  'performer': performer,
50
34
  },
@@ -59,24 +43,16 @@ export class EventService {
59
43
  * Get event details by ID
60
44
  * Retrieves detailed information for a specific event.
61
45
  * @param id
62
- * @param shopperguid Unique identifier for the shopper.
63
- * @param accountid Unique identifier for the account.
64
- * @param apikey API key for authentication.
65
46
  * @returns FullEventDetails Returns the event details.
66
47
  * @throws ApiError
67
48
  */
68
- static getEventById(id, shopperguid, accountid, apikey) {
49
+ static getEventById(id) {
69
50
  return __request(OpenAPI, {
70
51
  method: 'GET',
71
52
  url: '/event/{id}',
72
53
  path: {
73
54
  'id': id,
74
55
  },
75
- headers: {
76
- 'shopperguid': shopperguid,
77
- 'accountid': accountid,
78
- 'apikey': apikey,
79
- },
80
56
  errors: {
81
57
  400: `Bad Request error with error details.`,
82
58
  404: `Not found error with error details.`,
@@ -87,22 +63,14 @@ export class EventService {
87
63
  /**
88
64
  * Assign names to the waitlist
89
65
  * Updates the waitlist with shopper details.
90
- * @param shopperguid Unique identifier for the shopper.
91
- * @param accountid Unique identifier for the account.
92
- * @param apikey API key for authentication.
93
66
  * @param requestBody Details of the waitlist update
94
67
  * @returns WaitlistResponse Returns the result of the waitlist update.
95
68
  * @throws ApiError
96
69
  */
97
- static postWishlist(shopperguid, accountid, apikey, requestBody) {
70
+ static postWishlist(requestBody) {
98
71
  return __request(OpenAPI, {
99
72
  method: 'POST',
100
73
  url: '/event/waitlist',
101
- headers: {
102
- 'shopperguid': shopperguid,
103
- 'accountid': accountid,
104
- 'apikey': apikey,
105
- },
106
74
  body: requestBody,
107
75
  mediaType: 'application/json',
108
76
  errors: {
@@ -11,52 +11,37 @@ export declare class GiftCardService {
11
11
  * Retrieves gift card balance and availability information for the specified code and PIN.
12
12
  * @param code Gift card code
13
13
  * @param pin Gift card PIN
14
- * @param shopperguid Unique identifier for the shopper.
15
- * @param accountid Unique identifier for the account.
16
- * @param apikey API key for authentication.
17
14
  * @returns GiftCardLookupResponse Returns gift card balance and availability information.
18
15
  * @throws ApiError
19
16
  */
20
- static lookupGiftCard(code: string, pin: string, shopperguid: string, accountid: string, apikey: string): CancelablePromise<GiftCardLookupResponse>;
17
+ static lookupGiftCard(code: string, pin: string): CancelablePromise<GiftCardLookupResponse>;
21
18
  /**
22
19
  * Apply a gift card to the current session
23
20
  * Applies a gift card to the current shopper session. Removes any previously applied gift card.
24
- * @param shopperguid Unique identifier for the shopper.
25
- * @param accountid Unique identifier for the account.
26
- * @param apikey API key for authentication.
27
21
  * @param requestBody Gift card details to apply
28
22
  * @returns GiftCardApplyResponse Gift card applied successfully.
29
23
  * @throws ApiError
30
24
  */
31
- static applyGiftCard(shopperguid: string, accountid: string, apikey: string, requestBody: GiftCardApplyDto): CancelablePromise<GiftCardApplyResponse>;
25
+ static applyGiftCard(requestBody: GiftCardApplyDto): CancelablePromise<GiftCardApplyResponse>;
32
26
  /**
33
27
  * Remove the gift card from the current session
34
28
  * Removes all gift cards from the current shopper session and recalculates payment totals.
35
- * @param shopperguid Unique identifier for the shopper.
36
- * @param accountid Unique identifier for the account.
37
- * @param apikey API key for authentication.
38
29
  * @returns GiftCardRemoveResponse Gift card removed successfully.
39
30
  * @throws ApiError
40
31
  */
41
- static removeGiftCard(shopperguid: string, accountid: string, apikey: string): CancelablePromise<GiftCardRemoveResponse>;
32
+ static removeGiftCard(): CancelablePromise<GiftCardRemoveResponse>;
42
33
  /**
43
34
  * Get gift card checkout information
44
35
  * Retrieves gift card information for the checkout page, including applied gift card details and remaining balance.
45
- * @param shopperguid Unique identifier for the shopper.
46
- * @param accountid Unique identifier for the account.
47
- * @param apikey API key for authentication.
48
36
  * @returns GiftCardCheckoutInfo Returns gift card checkout information.
49
37
  * @throws ApiError
50
38
  */
51
- static getGiftCardCheckoutInfo(shopperguid: string, accountid: string, apikey: string): CancelablePromise<GiftCardCheckoutInfo>;
39
+ static getGiftCardCheckoutInfo(): CancelablePromise<GiftCardCheckoutInfo>;
52
40
  /**
53
41
  * Get gift card edit form data
54
42
  * Retrieves the currently applied gift card information for editing purposes.
55
- * @param shopperguid Unique identifier for the shopper.
56
- * @param accountid Unique identifier for the account.
57
- * @param apikey API key for authentication.
58
43
  * @returns GiftCardEditFormResponse Returns the applied gift card code and amount.
59
44
  * @throws ApiError
60
45
  */
61
- static getGiftCardEditForm(shopperguid: string, accountid: string, apikey: string): CancelablePromise<GiftCardEditFormResponse>;
46
+ static getGiftCardEditForm(): CancelablePromise<GiftCardEditFormResponse>;
62
47
  }
@@ -6,21 +6,13 @@ export class GiftCardService {
6
6
  * Retrieves gift card balance and availability information for the specified code and PIN.
7
7
  * @param code Gift card code
8
8
  * @param pin Gift card PIN
9
- * @param shopperguid Unique identifier for the shopper.
10
- * @param accountid Unique identifier for the account.
11
- * @param apikey API key for authentication.
12
9
  * @returns GiftCardLookupResponse Returns gift card balance and availability information.
13
10
  * @throws ApiError
14
11
  */
15
- static lookupGiftCard(code, pin, shopperguid, accountid, apikey) {
12
+ static lookupGiftCard(code, pin) {
16
13
  return __request(OpenAPI, {
17
14
  method: 'GET',
18
15
  url: '/gift-card',
19
- headers: {
20
- 'shopperguid': shopperguid,
21
- 'accountid': accountid,
22
- 'apikey': apikey,
23
- },
24
16
  query: {
25
17
  'code': code,
26
18
  'pin': pin,
@@ -35,22 +27,14 @@ export class GiftCardService {
35
27
  /**
36
28
  * Apply a gift card to the current session
37
29
  * Applies a gift card to the current shopper session. Removes any previously applied gift card.
38
- * @param shopperguid Unique identifier for the shopper.
39
- * @param accountid Unique identifier for the account.
40
- * @param apikey API key for authentication.
41
30
  * @param requestBody Gift card details to apply
42
31
  * @returns GiftCardApplyResponse Gift card applied successfully.
43
32
  * @throws ApiError
44
33
  */
45
- static applyGiftCard(shopperguid, accountid, apikey, requestBody) {
34
+ static applyGiftCard(requestBody) {
46
35
  return __request(OpenAPI, {
47
36
  method: 'POST',
48
37
  url: '/gift-card',
49
- headers: {
50
- 'shopperguid': shopperguid,
51
- 'accountid': accountid,
52
- 'apikey': apikey,
53
- },
54
38
  body: requestBody,
55
39
  mediaType: 'application/json',
56
40
  errors: {
@@ -63,21 +47,13 @@ export class GiftCardService {
63
47
  /**
64
48
  * Remove the gift card from the current session
65
49
  * Removes all gift cards from the current shopper session and recalculates payment totals.
66
- * @param shopperguid Unique identifier for the shopper.
67
- * @param accountid Unique identifier for the account.
68
- * @param apikey API key for authentication.
69
50
  * @returns GiftCardRemoveResponse Gift card removed successfully.
70
51
  * @throws ApiError
71
52
  */
72
- static removeGiftCard(shopperguid, accountid, apikey) {
53
+ static removeGiftCard() {
73
54
  return __request(OpenAPI, {
74
55
  method: 'DELETE',
75
56
  url: '/gift-card',
76
- headers: {
77
- 'shopperguid': shopperguid,
78
- 'accountid': accountid,
79
- 'apikey': apikey,
80
- },
81
57
  errors: {
82
58
  400: `Bad Request error with error details.`,
83
59
  404: `Not found error with error details.`,
@@ -88,21 +64,13 @@ export class GiftCardService {
88
64
  /**
89
65
  * Get gift card checkout information
90
66
  * Retrieves gift card information for the checkout page, including applied gift card details and remaining balance.
91
- * @param shopperguid Unique identifier for the shopper.
92
- * @param accountid Unique identifier for the account.
93
- * @param apikey API key for authentication.
94
67
  * @returns GiftCardCheckoutInfo Returns gift card checkout information.
95
68
  * @throws ApiError
96
69
  */
97
- static getGiftCardCheckoutInfo(shopperguid, accountid, apikey) {
70
+ static getGiftCardCheckoutInfo() {
98
71
  return __request(OpenAPI, {
99
72
  method: 'GET',
100
73
  url: '/gift-card/checkout',
101
- headers: {
102
- 'shopperguid': shopperguid,
103
- 'accountid': accountid,
104
- 'apikey': apikey,
105
- },
106
74
  errors: {
107
75
  400: `Bad Request error with error details.`,
108
76
  404: `Not found error with error details.`,
@@ -113,21 +81,13 @@ export class GiftCardService {
113
81
  /**
114
82
  * Get gift card edit form data
115
83
  * Retrieves the currently applied gift card information for editing purposes.
116
- * @param shopperguid Unique identifier for the shopper.
117
- * @param accountid Unique identifier for the account.
118
- * @param apikey API key for authentication.
119
84
  * @returns GiftCardEditFormResponse Returns the applied gift card code and amount.
120
85
  * @throws ApiError
121
86
  */
122
- static getGiftCardEditForm(shopperguid, accountid, apikey) {
87
+ static getGiftCardEditForm() {
123
88
  return __request(OpenAPI, {
124
89
  method: 'GET',
125
90
  url: '/gift-card/edit',
126
- headers: {
127
- 'shopperguid': shopperguid,
128
- 'accountid': accountid,
129
- 'apikey': apikey,
130
- },
131
91
  errors: {
132
92
  400: `Bad Request error with error details.`,
133
93
  404: `Not found error with error details.`,