@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.
- package/demo/test.html +1554 -674
- package/dist/bundle/drt-sdk.js +1 -1
- package/dist/cjs/src/generated/shopper/services/AccountService.d.ts +4 -16
- package/dist/cjs/src/generated/shopper/services/AccountService.js +4 -36
- package/dist/cjs/src/generated/shopper/services/CartService.d.ts +2 -8
- package/dist/cjs/src/generated/shopper/services/CartService.js +2 -18
- package/dist/cjs/src/generated/shopper/services/CheckoutService.d.ts +5 -20
- package/dist/cjs/src/generated/shopper/services/CheckoutService.js +5 -45
- package/dist/cjs/src/generated/shopper/services/CodeService.d.ts +5 -20
- package/dist/cjs/src/generated/shopper/services/CodeService.js +5 -45
- package/dist/cjs/src/generated/shopper/services/DonationService.d.ts +2 -8
- package/dist/cjs/src/generated/shopper/services/DonationService.js +2 -16
- package/dist/cjs/src/generated/shopper/services/EventService.d.ts +4 -16
- package/dist/cjs/src/generated/shopper/services/EventService.js +4 -36
- package/dist/cjs/src/generated/shopper/services/GiftCardService.d.ts +5 -20
- package/dist/cjs/src/generated/shopper/services/GiftCardService.js +5 -45
- package/dist/cjs/src/generated/shopper/services/OrderService.d.ts +14 -56
- package/dist/cjs/src/generated/shopper/services/OrderService.js +14 -126
- package/dist/cjs/src/generated/shopper/services/PaymentService.d.ts +3 -12
- package/dist/cjs/src/generated/shopper/services/PaymentService.js +3 -27
- package/dist/cjs/src/generated/shopper/services/ProductService.d.ts +3 -12
- package/dist/cjs/src/generated/shopper/services/ProductService.js +3 -27
- package/dist/cjs/src/generated/shopper/services/SeatService.d.ts +6 -24
- package/dist/cjs/src/generated/shopper/services/SeatService.js +6 -54
- package/dist/cjs/src/generated/shopper/services/SessionService.d.ts +2 -8
- package/dist/cjs/src/generated/shopper/services/SessionService.js +2 -18
- package/dist/cjs/src/scripts/build-all.js +39 -0
- package/dist/esm/src/generated/shopper/services/AccountService.d.ts +4 -16
- package/dist/esm/src/generated/shopper/services/AccountService.js +4 -36
- package/dist/esm/src/generated/shopper/services/CartService.d.ts +2 -8
- package/dist/esm/src/generated/shopper/services/CartService.js +2 -18
- package/dist/esm/src/generated/shopper/services/CheckoutService.d.ts +5 -20
- package/dist/esm/src/generated/shopper/services/CheckoutService.js +5 -45
- package/dist/esm/src/generated/shopper/services/CodeService.d.ts +5 -20
- package/dist/esm/src/generated/shopper/services/CodeService.js +5 -45
- package/dist/esm/src/generated/shopper/services/DonationService.d.ts +2 -8
- package/dist/esm/src/generated/shopper/services/DonationService.js +2 -16
- package/dist/esm/src/generated/shopper/services/EventService.d.ts +4 -16
- package/dist/esm/src/generated/shopper/services/EventService.js +4 -36
- package/dist/esm/src/generated/shopper/services/GiftCardService.d.ts +5 -20
- package/dist/esm/src/generated/shopper/services/GiftCardService.js +5 -45
- package/dist/esm/src/generated/shopper/services/OrderService.d.ts +14 -56
- package/dist/esm/src/generated/shopper/services/OrderService.js +14 -126
- package/dist/esm/src/generated/shopper/services/PaymentService.d.ts +3 -12
- package/dist/esm/src/generated/shopper/services/PaymentService.js +3 -27
- package/dist/esm/src/generated/shopper/services/ProductService.d.ts +3 -12
- package/dist/esm/src/generated/shopper/services/ProductService.js +3 -27
- package/dist/esm/src/generated/shopper/services/SeatService.d.ts +6 -24
- package/dist/esm/src/generated/shopper/services/SeatService.js +6 -54
- package/dist/esm/src/generated/shopper/services/SessionService.d.ts +2 -8
- package/dist/esm/src/generated/shopper/services/SessionService.js +2 -18
- package/dist/esm/src/scripts/build-all.js +39 -0
- package/package.json +1 -1
- package/public/sdk/latest/drt-sdk.js +1 -1
- package/src/generated/shopper/services/AccountService.ts +0 -44
- package/src/generated/shopper/services/CartService.ts +0 -22
- package/src/generated/shopper/services/CheckoutService.ts +0 -55
- package/src/generated/shopper/services/CodeService.ts +0 -55
- package/src/generated/shopper/services/DonationService.ts +0 -20
- package/src/generated/shopper/services/EventService.ts +0 -44
- package/src/generated/shopper/services/GiftCardService.ts +0 -55
- package/src/generated/shopper/services/OrderService.ts +0 -154
- package/src/generated/shopper/services/PaymentService.ts +0 -33
- package/src/generated/shopper/services/ProductService.ts +0 -33
- package/src/generated/shopper/services/SeatService.ts +0 -66
- package/src/generated/shopper/services/SessionService.ts +0 -22
- package/src/scripts/build-all.ts +52 -0
|
@@ -8,21 +8,13 @@ class OrderService {
|
|
|
8
8
|
* Get order receipt by guid
|
|
9
9
|
* Fetches the receipt for an order using its unique guid.
|
|
10
10
|
* @param guid Unique identifier for an order.
|
|
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 Receipt Returns the order receipt.
|
|
15
12
|
* @throws ApiError
|
|
16
13
|
*/
|
|
17
|
-
static getReceipt(guid
|
|
14
|
+
static getReceipt(guid) {
|
|
18
15
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
19
16
|
method: 'GET',
|
|
20
17
|
url: '/order/receipt',
|
|
21
|
-
headers: {
|
|
22
|
-
'shopperguid': shopperguid,
|
|
23
|
-
'accountid': accountid,
|
|
24
|
-
'apikey': apikey,
|
|
25
|
-
},
|
|
26
18
|
query: {
|
|
27
19
|
'guid': guid,
|
|
28
20
|
},
|
|
@@ -37,21 +29,13 @@ class OrderService {
|
|
|
37
29
|
* Get Gwallet link by guid
|
|
38
30
|
* Fetches the Gwallet link for an order using its unique guid.
|
|
39
31
|
* @param guid Unique identifier for an order.
|
|
40
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
41
|
-
* @param accountid Unique identifier for the account.
|
|
42
|
-
* @param apikey API key for authentication.
|
|
43
32
|
* @returns LinkWithSuccess Returns the Gwallet link.
|
|
44
33
|
* @throws ApiError
|
|
45
34
|
*/
|
|
46
|
-
static getGwalletLink(guid
|
|
35
|
+
static getGwalletLink(guid) {
|
|
47
36
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
48
37
|
method: 'GET',
|
|
49
38
|
url: '/order/gwallet',
|
|
50
|
-
headers: {
|
|
51
|
-
'shopperguid': shopperguid,
|
|
52
|
-
'accountid': accountid,
|
|
53
|
-
'apikey': apikey,
|
|
54
|
-
},
|
|
55
39
|
query: {
|
|
56
40
|
'guid': guid,
|
|
57
41
|
},
|
|
@@ -66,21 +50,13 @@ class OrderService {
|
|
|
66
50
|
* Get testing guid
|
|
67
51
|
* Fetches a testing guid for development purposes.
|
|
68
52
|
* @param guid Unique identifier for an order.
|
|
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 GuidReturn Returns a testing guid.
|
|
73
54
|
* @throws ApiError
|
|
74
55
|
*/
|
|
75
|
-
static getTestingGuid(guid
|
|
56
|
+
static getTestingGuid(guid) {
|
|
76
57
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
77
58
|
method: 'GET',
|
|
78
59
|
url: '/order/testing',
|
|
79
|
-
headers: {
|
|
80
|
-
'shopperguid': shopperguid,
|
|
81
|
-
'accountid': accountid,
|
|
82
|
-
'apikey': apikey,
|
|
83
|
-
},
|
|
84
60
|
query: {
|
|
85
61
|
'guid': guid,
|
|
86
62
|
},
|
|
@@ -95,21 +71,13 @@ class OrderService {
|
|
|
95
71
|
* Get assign names by guid
|
|
96
72
|
* Fetches the assign names information for an order using its unique guid.
|
|
97
73
|
* @param guid Unique identifier for an order.
|
|
98
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
99
|
-
* @param accountid Unique identifier for the account.
|
|
100
|
-
* @param apikey API key for authentication.
|
|
101
74
|
* @returns AssignNamesReturn Returns the assign names information.
|
|
102
75
|
* @throws ApiError
|
|
103
76
|
*/
|
|
104
|
-
static getAssignNames(guid
|
|
77
|
+
static getAssignNames(guid) {
|
|
105
78
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
106
79
|
method: 'GET',
|
|
107
80
|
url: '/order/assign-names',
|
|
108
|
-
headers: {
|
|
109
|
-
'shopperguid': shopperguid,
|
|
110
|
-
'accountid': accountid,
|
|
111
|
-
'apikey': apikey,
|
|
112
|
-
},
|
|
113
81
|
query: {
|
|
114
82
|
'guid': guid,
|
|
115
83
|
},
|
|
@@ -124,22 +92,14 @@ class OrderService {
|
|
|
124
92
|
* Post assign names
|
|
125
93
|
* Assigns names to an order using its unique guid and the provided names.
|
|
126
94
|
* @param guid Unique identifier for an order.
|
|
127
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
128
|
-
* @param accountid Unique identifier for the account.
|
|
129
|
-
* @param apikey API key for authentication.
|
|
130
95
|
* @param requestBody Names to be assigned to the order.
|
|
131
96
|
* @returns SuccessResponse Returns success status after assigning names.
|
|
132
97
|
* @throws ApiError
|
|
133
98
|
*/
|
|
134
|
-
static postAssignNames(guid,
|
|
99
|
+
static postAssignNames(guid, requestBody) {
|
|
135
100
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
136
101
|
method: 'POST',
|
|
137
102
|
url: '/order/assign-names',
|
|
138
|
-
headers: {
|
|
139
|
-
'shopperguid': shopperguid,
|
|
140
|
-
'accountid': accountid,
|
|
141
|
-
'apikey': apikey,
|
|
142
|
-
},
|
|
143
103
|
query: {
|
|
144
104
|
'guid': guid,
|
|
145
105
|
},
|
|
@@ -156,22 +116,14 @@ class OrderService {
|
|
|
156
116
|
* Post email tickets
|
|
157
117
|
* Sends email tickets for an order using its unique guid and the provided email update.
|
|
158
118
|
* @param guid Unique identifier for an order.
|
|
159
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
160
|
-
* @param accountid Unique identifier for the account.
|
|
161
|
-
* @param apikey API key for authentication.
|
|
162
119
|
* @param requestBody Email update containing the email address to send tickets.
|
|
163
120
|
* @returns SuccessResponse Returns success status after sending email tickets.
|
|
164
121
|
* @throws ApiError
|
|
165
122
|
*/
|
|
166
|
-
static postEmailTickets(guid,
|
|
123
|
+
static postEmailTickets(guid, requestBody) {
|
|
167
124
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
168
125
|
method: 'POST',
|
|
169
126
|
url: '/order/email-tickets',
|
|
170
|
-
headers: {
|
|
171
|
-
'shopperguid': shopperguid,
|
|
172
|
-
'accountid': accountid,
|
|
173
|
-
'apikey': apikey,
|
|
174
|
-
},
|
|
175
127
|
query: {
|
|
176
128
|
'guid': guid,
|
|
177
129
|
},
|
|
@@ -188,21 +140,13 @@ class OrderService {
|
|
|
188
140
|
* Get ticket block by guid
|
|
189
141
|
* Fetches the ticket block for an order using its unique guid.
|
|
190
142
|
* @param guid Unique identifier for an order.
|
|
191
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
192
|
-
* @param accountid Unique identifier for the account.
|
|
193
|
-
* @param apikey API key for authentication.
|
|
194
143
|
* @returns PickupReturn Returns the ticket block for the order.
|
|
195
144
|
* @throws ApiError
|
|
196
145
|
*/
|
|
197
|
-
static getTicketBlock(guid
|
|
146
|
+
static getTicketBlock(guid) {
|
|
198
147
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
199
148
|
method: 'GET',
|
|
200
149
|
url: '/order/pickup',
|
|
201
|
-
headers: {
|
|
202
|
-
'shopperguid': shopperguid,
|
|
203
|
-
'accountid': accountid,
|
|
204
|
-
'apikey': apikey,
|
|
205
|
-
},
|
|
206
150
|
query: {
|
|
207
151
|
'guid': guid,
|
|
208
152
|
},
|
|
@@ -217,21 +161,13 @@ class OrderService {
|
|
|
217
161
|
* Post ticket block by guid
|
|
218
162
|
* Sends the ticket block for an order using its unique guid.
|
|
219
163
|
* @param guid Unique identifier for an order.
|
|
220
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
221
|
-
* @param accountid Unique identifier for the account.
|
|
222
|
-
* @param apikey API key for authentication.
|
|
223
164
|
* @returns SuccessResponse Returns the ticket block for the order.
|
|
224
165
|
* @throws ApiError
|
|
225
166
|
*/
|
|
226
|
-
static postPickup(guid
|
|
167
|
+
static postPickup(guid) {
|
|
227
168
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
228
169
|
method: 'POST',
|
|
229
170
|
url: '/order/pickup',
|
|
230
|
-
headers: {
|
|
231
|
-
'shopperguid': shopperguid,
|
|
232
|
-
'accountid': accountid,
|
|
233
|
-
'apikey': apikey,
|
|
234
|
-
},
|
|
235
171
|
query: {
|
|
236
172
|
'guid': guid,
|
|
237
173
|
},
|
|
@@ -246,21 +182,13 @@ class OrderService {
|
|
|
246
182
|
* Send order receipt via email
|
|
247
183
|
* Sends the order receipt to the shopper's email address for the specified order guid.
|
|
248
184
|
* @param guid Unique identifier for an order.
|
|
249
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
250
|
-
* @param accountid Unique identifier for the account.
|
|
251
|
-
* @param apikey API key for authentication.
|
|
252
185
|
* @returns SuccessResponse Returns success status after emailing the receipt.
|
|
253
186
|
* @throws ApiError
|
|
254
187
|
*/
|
|
255
|
-
static postEmailReceipt(guid
|
|
188
|
+
static postEmailReceipt(guid) {
|
|
256
189
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
257
190
|
method: 'POST',
|
|
258
191
|
url: '/order/email-receipt',
|
|
259
|
-
headers: {
|
|
260
|
-
'shopperguid': shopperguid,
|
|
261
|
-
'accountid': accountid,
|
|
262
|
-
'apikey': apikey,
|
|
263
|
-
},
|
|
264
192
|
query: {
|
|
265
193
|
'guid': guid,
|
|
266
194
|
},
|
|
@@ -275,21 +203,13 @@ class OrderService {
|
|
|
275
203
|
* Get refund request information
|
|
276
204
|
* Fetches the refund request information for an order using its unique guid.
|
|
277
205
|
* @param guid Unique identifier for an order.
|
|
278
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
279
|
-
* @param accountid Unique identifier for the account.
|
|
280
|
-
* @param apikey API key for authentication.
|
|
281
206
|
* @returns RefundRequestInfo Returns the refund request information for the order.
|
|
282
207
|
* @throws ApiError
|
|
283
208
|
*/
|
|
284
|
-
static getRefundRequest(guid
|
|
209
|
+
static getRefundRequest(guid) {
|
|
285
210
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
286
211
|
method: 'GET',
|
|
287
212
|
url: '/order/refund-request',
|
|
288
|
-
headers: {
|
|
289
|
-
'shopperguid': shopperguid,
|
|
290
|
-
'accountid': accountid,
|
|
291
|
-
'apikey': apikey,
|
|
292
|
-
},
|
|
293
213
|
query: {
|
|
294
214
|
'guid': guid,
|
|
295
215
|
},
|
|
@@ -304,22 +224,14 @@ class OrderService {
|
|
|
304
224
|
* Submit a refund request
|
|
305
225
|
* Submits a refund request for an order using its unique guid and the provided refund details.
|
|
306
226
|
* @param guid Unique identifier for an order.
|
|
307
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
308
|
-
* @param accountid Unique identifier for the account.
|
|
309
|
-
* @param apikey API key for authentication.
|
|
310
227
|
* @param requestBody Refund request details.
|
|
311
228
|
* @returns SuccessResponse Returns success status after submitting the refund request.
|
|
312
229
|
* @throws ApiError
|
|
313
230
|
*/
|
|
314
|
-
static postRefundRequest(guid,
|
|
231
|
+
static postRefundRequest(guid, requestBody) {
|
|
315
232
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
316
233
|
method: 'POST',
|
|
317
234
|
url: '/order/refund-request',
|
|
318
|
-
headers: {
|
|
319
|
-
'shopperguid': shopperguid,
|
|
320
|
-
'accountid': accountid,
|
|
321
|
-
'apikey': apikey,
|
|
322
|
-
},
|
|
323
235
|
query: {
|
|
324
236
|
'guid': guid,
|
|
325
237
|
},
|
|
@@ -336,22 +248,14 @@ class OrderService {
|
|
|
336
248
|
* Recalculate order totals
|
|
337
249
|
* Recalculates the totals for an order using the provided recalculation data.
|
|
338
250
|
* @param guid Unique identifier for an order.
|
|
339
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
340
|
-
* @param accountid Unique identifier for the account.
|
|
341
|
-
* @param apikey API key for authentication.
|
|
342
251
|
* @param requestBody Order recalculation data.
|
|
343
252
|
* @returns RecalcResponse Returns the recalculated order totals and success status.
|
|
344
253
|
* @throws ApiError
|
|
345
254
|
*/
|
|
346
|
-
static postRecalcOrder(guid,
|
|
255
|
+
static postRecalcOrder(guid, requestBody) {
|
|
347
256
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
348
257
|
method: 'POST',
|
|
349
258
|
url: '/order/recalc',
|
|
350
|
-
headers: {
|
|
351
|
-
'shopperguid': shopperguid,
|
|
352
|
-
'accountid': accountid,
|
|
353
|
-
'apikey': apikey,
|
|
354
|
-
},
|
|
355
259
|
query: {
|
|
356
260
|
'guid': guid,
|
|
357
261
|
},
|
|
@@ -367,22 +271,14 @@ class OrderService {
|
|
|
367
271
|
/**
|
|
368
272
|
* Register a stream for a shopper
|
|
369
273
|
* Registers a stream for the specified shopper and account using the provided stream registration details.
|
|
370
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
371
|
-
* @param accountid Unique identifier for the account.
|
|
372
|
-
* @param apikey API key for authentication.
|
|
373
274
|
* @param requestBody Stream registration details.
|
|
374
275
|
* @returns RegisterStreamResponse Returns the stream registration response.
|
|
375
276
|
* @throws ApiError
|
|
376
277
|
*/
|
|
377
|
-
static postRegisterStream(
|
|
278
|
+
static postRegisterStream(requestBody) {
|
|
378
279
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
379
280
|
method: 'POST',
|
|
380
281
|
url: '/order/stream-register',
|
|
381
|
-
headers: {
|
|
382
|
-
'shopperguid': shopperguid,
|
|
383
|
-
'accountid': accountid,
|
|
384
|
-
'apikey': apikey,
|
|
385
|
-
},
|
|
386
282
|
body: requestBody,
|
|
387
283
|
mediaType: 'application/json',
|
|
388
284
|
errors: {
|
|
@@ -395,22 +291,14 @@ class OrderService {
|
|
|
395
291
|
/**
|
|
396
292
|
* Deregister a stream for a shopper
|
|
397
293
|
* Removes the stream registration for the specified shopper and account using the provided stream registration details.
|
|
398
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
399
|
-
* @param accountid Unique identifier for the account.
|
|
400
|
-
* @param apikey API key for authentication.
|
|
401
294
|
* @param requestBody Stream registration details to be deregistered.
|
|
402
295
|
* @returns SuccessResponse Returns success status after deregistering the stream.
|
|
403
296
|
* @throws ApiError
|
|
404
297
|
*/
|
|
405
|
-
static deleteRegisteredStream(
|
|
298
|
+
static deleteRegisteredStream(requestBody) {
|
|
406
299
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
407
300
|
method: 'DELETE',
|
|
408
301
|
url: '/order/stream-register',
|
|
409
|
-
headers: {
|
|
410
|
-
'shopperguid': shopperguid,
|
|
411
|
-
'accountid': accountid,
|
|
412
|
-
'apikey': apikey,
|
|
413
|
-
},
|
|
414
302
|
body: requestBody,
|
|
415
303
|
mediaType: 'application/json',
|
|
416
304
|
errors: {
|
|
@@ -8,33 +8,24 @@ export declare class PaymentService {
|
|
|
8
8
|
/**
|
|
9
9
|
* Summarize payment
|
|
10
10
|
* Saves the payment data for the shopper with the provided confirmation token.
|
|
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
|
* @param requestBody Summary request body containing the confirmation token.
|
|
15
12
|
* @returns SuccessResponse Returns a success response.
|
|
16
13
|
* @throws ApiError
|
|
17
14
|
*/
|
|
18
|
-
static summarizePayment(
|
|
15
|
+
static summarizePayment(requestBody: SummaryBody): CancelablePromise<SuccessResponse>;
|
|
19
16
|
/**
|
|
20
17
|
* Complete payment
|
|
21
18
|
* Completes the payment for the shopper using the provided cart hash and IP address.
|
|
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 Payment completion request body containing cart hash and IP address.
|
|
26
20
|
* @returns PaymentSuccess Returns the result of the payment completion.
|
|
27
21
|
* @throws ApiError
|
|
28
22
|
*/
|
|
29
|
-
static completePayment(
|
|
23
|
+
static completePayment(requestBody: CompleteBody): CancelablePromise<PaymentSuccess>;
|
|
30
24
|
/**
|
|
31
25
|
* Create payment customer session
|
|
32
26
|
* Creates a new payment customer session for the shopper and account.
|
|
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 CreateCustomerResponse Returns the created customer session.
|
|
37
28
|
* @throws ApiError
|
|
38
29
|
*/
|
|
39
|
-
static createCustomerSession(
|
|
30
|
+
static createCustomerSession(): CancelablePromise<CreateCustomerResponse>;
|
|
40
31
|
}
|
|
@@ -7,22 +7,14 @@ class PaymentService {
|
|
|
7
7
|
/**
|
|
8
8
|
* Summarize payment
|
|
9
9
|
* Saves the payment data for the shopper with the provided confirmation token.
|
|
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
|
* @param requestBody Summary request body containing the confirmation token.
|
|
14
11
|
* @returns SuccessResponse Returns a success response.
|
|
15
12
|
* @throws ApiError
|
|
16
13
|
*/
|
|
17
|
-
static summarizePayment(
|
|
14
|
+
static summarizePayment(requestBody) {
|
|
18
15
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
19
16
|
method: 'POST',
|
|
20
17
|
url: '/payment/summary',
|
|
21
|
-
headers: {
|
|
22
|
-
'shopperguid': shopperguid,
|
|
23
|
-
'accountid': accountid,
|
|
24
|
-
'apikey': apikey,
|
|
25
|
-
},
|
|
26
18
|
body: requestBody,
|
|
27
19
|
mediaType: 'application/json',
|
|
28
20
|
errors: {
|
|
@@ -35,22 +27,14 @@ class PaymentService {
|
|
|
35
27
|
/**
|
|
36
28
|
* Complete payment
|
|
37
29
|
* Completes the payment for the shopper using the provided cart hash and IP address.
|
|
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 Payment completion request body containing cart hash and IP address.
|
|
42
31
|
* @returns PaymentSuccess Returns the result of the payment completion.
|
|
43
32
|
* @throws ApiError
|
|
44
33
|
*/
|
|
45
|
-
static completePayment(
|
|
34
|
+
static completePayment(requestBody) {
|
|
46
35
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
47
36
|
method: 'POST',
|
|
48
37
|
url: '/payment/complete',
|
|
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 @@ class PaymentService {
|
|
|
63
47
|
/**
|
|
64
48
|
* Create payment customer session
|
|
65
49
|
* Creates a new payment customer session for the shopper and account.
|
|
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 CreateCustomerResponse Returns the created customer session.
|
|
70
51
|
* @throws ApiError
|
|
71
52
|
*/
|
|
72
|
-
static createCustomerSession(
|
|
53
|
+
static createCustomerSession() {
|
|
73
54
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
74
55
|
method: 'POST',
|
|
75
56
|
url: '/payment/customer',
|
|
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.`,
|
|
@@ -8,33 +8,24 @@ export declare class ProductService {
|
|
|
8
8
|
/**
|
|
9
9
|
* Get all products
|
|
10
10
|
* Retrieves all products available for the specified account.
|
|
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 ProductData Returns a list of products for the account.
|
|
15
12
|
* @throws ApiError
|
|
16
13
|
*/
|
|
17
|
-
static getProducts(
|
|
14
|
+
static getProducts(): CancelablePromise<ProductData>;
|
|
18
15
|
/**
|
|
19
16
|
* Add a product
|
|
20
17
|
* Adds a new product to the specified account.
|
|
21
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
22
|
-
* @param accountid Unique identifier for the account.
|
|
23
|
-
* @param apikey API key for authentication.
|
|
24
18
|
* @param requestBody Product details to add.
|
|
25
19
|
* @returns ProductAddResponse Returns the result of the product addition.
|
|
26
20
|
* @throws ApiError
|
|
27
21
|
*/
|
|
28
|
-
static addProduct(
|
|
22
|
+
static addProduct(requestBody: ProductBody): CancelablePromise<ProductAddResponse>;
|
|
29
23
|
/**
|
|
30
24
|
* Remove a product
|
|
31
25
|
* Removes a product from the specified account.
|
|
32
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
33
|
-
* @param accountid Unique identifier for the account.
|
|
34
|
-
* @param apikey API key for authentication.
|
|
35
26
|
* @param requestBody Product details to remove.
|
|
36
27
|
* @returns ProductUpdateResponse Returns the result of the product removal.
|
|
37
28
|
* @throws ApiError
|
|
38
29
|
*/
|
|
39
|
-
static deleteProduct(
|
|
30
|
+
static deleteProduct(requestBody: ProductDeleteBody): CancelablePromise<ProductUpdateResponse>;
|
|
40
31
|
}
|
|
@@ -7,21 +7,13 @@ class ProductService {
|
|
|
7
7
|
/**
|
|
8
8
|
* Get all products
|
|
9
9
|
* Retrieves all products available for the specified 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 ProductData Returns a list of products for the account.
|
|
14
11
|
* @throws ApiError
|
|
15
12
|
*/
|
|
16
|
-
static getProducts(
|
|
13
|
+
static getProducts() {
|
|
17
14
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
18
15
|
method: 'GET',
|
|
19
16
|
url: '/product',
|
|
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.`,
|
|
@@ -32,22 +24,14 @@ class ProductService {
|
|
|
32
24
|
/**
|
|
33
25
|
* Add a product
|
|
34
26
|
* Adds a new product to the specified account.
|
|
35
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
36
|
-
* @param accountid Unique identifier for the account.
|
|
37
|
-
* @param apikey API key for authentication.
|
|
38
27
|
* @param requestBody Product details to add.
|
|
39
28
|
* @returns ProductAddResponse Returns the result of the product addition.
|
|
40
29
|
* @throws ApiError
|
|
41
30
|
*/
|
|
42
|
-
static addProduct(
|
|
31
|
+
static addProduct(requestBody) {
|
|
43
32
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
44
33
|
method: 'POST',
|
|
45
34
|
url: '/product',
|
|
46
|
-
headers: {
|
|
47
|
-
'shopperguid': shopperguid,
|
|
48
|
-
'accountid': accountid,
|
|
49
|
-
'apikey': apikey,
|
|
50
|
-
},
|
|
51
35
|
body: requestBody,
|
|
52
36
|
mediaType: 'application/json',
|
|
53
37
|
errors: {
|
|
@@ -60,22 +44,14 @@ class ProductService {
|
|
|
60
44
|
/**
|
|
61
45
|
* Remove a product
|
|
62
46
|
* Removes a product from the specified account.
|
|
63
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
64
|
-
* @param accountid Unique identifier for the account.
|
|
65
|
-
* @param apikey API key for authentication.
|
|
66
47
|
* @param requestBody Product details to remove.
|
|
67
48
|
* @returns ProductUpdateResponse Returns the result of the product removal.
|
|
68
49
|
* @throws ApiError
|
|
69
50
|
*/
|
|
70
|
-
static deleteProduct(
|
|
51
|
+
static deleteProduct(requestBody) {
|
|
71
52
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
72
53
|
method: 'DELETE',
|
|
73
54
|
url: '/product',
|
|
74
|
-
headers: {
|
|
75
|
-
'shopperguid': shopperguid,
|
|
76
|
-
'accountid': accountid,
|
|
77
|
-
'apikey': apikey,
|
|
78
|
-
},
|
|
79
55
|
body: requestBody,
|
|
80
56
|
mediaType: 'application/json',
|
|
81
57
|
errors: {
|
|
@@ -17,67 +17,49 @@ export declare class SeatService {
|
|
|
17
17
|
/**
|
|
18
18
|
* Hold a reserved seat
|
|
19
19
|
* Holds a reserved seat for the shopper.
|
|
20
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
21
|
-
* @param accountid Unique identifier for the account.
|
|
22
|
-
* @param apikey API key for authentication.
|
|
23
20
|
* @param requestBody Seat data for holding a reserved seat
|
|
24
21
|
* @returns SeatHoldReturn Successfully held the reserved seat.
|
|
25
22
|
* @throws ApiError
|
|
26
23
|
*/
|
|
27
|
-
static holdReservedSeat(
|
|
24
|
+
static holdReservedSeat(requestBody: SeatData): CancelablePromise<SeatHoldReturn>;
|
|
28
25
|
/**
|
|
29
26
|
* Hold a general admission seat
|
|
30
27
|
* Holds a general admission seat for the shopper.
|
|
31
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
32
|
-
* @param accountid Unique identifier for the account.
|
|
33
|
-
* @param apikey API key for authentication.
|
|
34
28
|
* @param requestBody Seat data for holding a general admission seat
|
|
35
29
|
* @returns GAResponse Successfully held the general admission seat.
|
|
36
30
|
* @throws ApiError
|
|
37
31
|
*/
|
|
38
|
-
static holdGaSeat(
|
|
32
|
+
static holdGaSeat(requestBody: GAHold): CancelablePromise<GAResponse>;
|
|
39
33
|
/**
|
|
40
34
|
* Hold a reserved seat for a BA event
|
|
41
35
|
* Holds a reserved seat for a BA event.
|
|
42
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
43
|
-
* @param accountid Unique identifier for the account.
|
|
44
|
-
* @param apikey API key for authentication.
|
|
45
36
|
* @param requestBody Seat data for holding a reserved seat for a BA event
|
|
46
37
|
* @returns SeatHoldReturn Successfully held the reserved seat for a BA event.
|
|
47
38
|
* @throws ApiError
|
|
48
39
|
*/
|
|
49
|
-
static holdBaSeat(
|
|
40
|
+
static holdBaSeat(requestBody: BAHold): CancelablePromise<SeatHoldReturn>;
|
|
50
41
|
/**
|
|
51
42
|
* Release a reserved seat
|
|
52
43
|
* Releases a reserved seat for the shopper.
|
|
53
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
54
|
-
* @param accountid Unique identifier for the account.
|
|
55
|
-
* @param apikey API key for authentication.
|
|
56
44
|
* @param requestBody Seat data for releasing a reserved seat
|
|
57
45
|
* @returns any Successfully released the reserved seat.
|
|
58
46
|
* @throws ApiError
|
|
59
47
|
*/
|
|
60
|
-
static releaseReservedSeat(
|
|
48
|
+
static releaseReservedSeat(requestBody: SeatData): CancelablePromise<any>;
|
|
61
49
|
/**
|
|
62
50
|
* Release a general admission seat
|
|
63
51
|
* Releases a general admission seat for the shopper.
|
|
64
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
65
|
-
* @param accountid Unique identifier for the account.
|
|
66
|
-
* @param apikey API key for authentication.
|
|
67
52
|
* @param requestBody Seat data for releasing a general admission seat
|
|
68
53
|
* @returns any
|
|
69
54
|
* @throws ApiError
|
|
70
55
|
*/
|
|
71
|
-
static releaseGaSeat(
|
|
56
|
+
static releaseGaSeat(requestBody: GASeatRelease): CancelablePromise<any>;
|
|
72
57
|
/**
|
|
73
58
|
* Update tier information for a seat
|
|
74
59
|
* Updates the tier information for a seat.
|
|
75
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
76
|
-
* @param accountid Unique identifier for the account.
|
|
77
|
-
* @param apikey API key for authentication.
|
|
78
60
|
* @param requestBody Data for updating tier information
|
|
79
61
|
* @returns UpdateTierData Successfully updated the tier information.
|
|
80
62
|
* @throws ApiError
|
|
81
63
|
*/
|
|
82
|
-
static updateTier(
|
|
64
|
+
static updateTier(requestBody: UpdateTierData): CancelablePromise<UpdateTierData>;
|
|
83
65
|
}
|