@drttix/drt-sdk 0.9.7 → 0.9.9

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