@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
|
@@ -24,26 +24,15 @@ export class OrderService {
|
|
|
24
24
|
* Get order receipt by guid
|
|
25
25
|
* Fetches the receipt for an order using its unique guid.
|
|
26
26
|
* @param guid Unique identifier for an order.
|
|
27
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
28
|
-
* @param accountid Unique identifier for the account.
|
|
29
|
-
* @param apikey API key for authentication.
|
|
30
27
|
* @returns Receipt Returns the order receipt.
|
|
31
28
|
* @throws ApiError
|
|
32
29
|
*/
|
|
33
30
|
public static getReceipt(
|
|
34
31
|
guid: string,
|
|
35
|
-
shopperguid: string,
|
|
36
|
-
accountid: string,
|
|
37
|
-
apikey: string,
|
|
38
32
|
): CancelablePromise<Receipt> {
|
|
39
33
|
return __request(OpenAPI, {
|
|
40
34
|
method: 'GET',
|
|
41
35
|
url: '/order/receipt',
|
|
42
|
-
headers: {
|
|
43
|
-
'shopperguid': shopperguid,
|
|
44
|
-
'accountid': accountid,
|
|
45
|
-
'apikey': apikey,
|
|
46
|
-
},
|
|
47
36
|
query: {
|
|
48
37
|
'guid': guid,
|
|
49
38
|
},
|
|
@@ -58,26 +47,15 @@ export class OrderService {
|
|
|
58
47
|
* Get Gwallet link by guid
|
|
59
48
|
* Fetches the Gwallet link for an order using its unique guid.
|
|
60
49
|
* @param guid Unique identifier for an order.
|
|
61
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
62
|
-
* @param accountid Unique identifier for the account.
|
|
63
|
-
* @param apikey API key for authentication.
|
|
64
50
|
* @returns LinkWithSuccess Returns the Gwallet link.
|
|
65
51
|
* @throws ApiError
|
|
66
52
|
*/
|
|
67
53
|
public static getGwalletLink(
|
|
68
54
|
guid: string,
|
|
69
|
-
shopperguid: string,
|
|
70
|
-
accountid: string,
|
|
71
|
-
apikey: string,
|
|
72
55
|
): CancelablePromise<LinkWithSuccess> {
|
|
73
56
|
return __request(OpenAPI, {
|
|
74
57
|
method: 'GET',
|
|
75
58
|
url: '/order/gwallet',
|
|
76
|
-
headers: {
|
|
77
|
-
'shopperguid': shopperguid,
|
|
78
|
-
'accountid': accountid,
|
|
79
|
-
'apikey': apikey,
|
|
80
|
-
},
|
|
81
59
|
query: {
|
|
82
60
|
'guid': guid,
|
|
83
61
|
},
|
|
@@ -92,26 +70,15 @@ export class OrderService {
|
|
|
92
70
|
* Get testing guid
|
|
93
71
|
* Fetches a testing guid for development purposes.
|
|
94
72
|
* @param guid Unique identifier for an order.
|
|
95
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
96
|
-
* @param accountid Unique identifier for the account.
|
|
97
|
-
* @param apikey API key for authentication.
|
|
98
73
|
* @returns GuidReturn Returns a testing guid.
|
|
99
74
|
* @throws ApiError
|
|
100
75
|
*/
|
|
101
76
|
public static getTestingGuid(
|
|
102
77
|
guid: string,
|
|
103
|
-
shopperguid: string,
|
|
104
|
-
accountid: string,
|
|
105
|
-
apikey: string,
|
|
106
78
|
): CancelablePromise<GuidReturn> {
|
|
107
79
|
return __request(OpenAPI, {
|
|
108
80
|
method: 'GET',
|
|
109
81
|
url: '/order/testing',
|
|
110
|
-
headers: {
|
|
111
|
-
'shopperguid': shopperguid,
|
|
112
|
-
'accountid': accountid,
|
|
113
|
-
'apikey': apikey,
|
|
114
|
-
},
|
|
115
82
|
query: {
|
|
116
83
|
'guid': guid,
|
|
117
84
|
},
|
|
@@ -126,26 +93,15 @@ export class OrderService {
|
|
|
126
93
|
* Get assign names by guid
|
|
127
94
|
* Fetches the assign names information for an order using its unique guid.
|
|
128
95
|
* @param guid Unique identifier for an order.
|
|
129
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
130
|
-
* @param accountid Unique identifier for the account.
|
|
131
|
-
* @param apikey API key for authentication.
|
|
132
96
|
* @returns AssignNamesReturn Returns the assign names information.
|
|
133
97
|
* @throws ApiError
|
|
134
98
|
*/
|
|
135
99
|
public static getAssignNames(
|
|
136
100
|
guid: string,
|
|
137
|
-
shopperguid: string,
|
|
138
|
-
accountid: string,
|
|
139
|
-
apikey: string,
|
|
140
101
|
): CancelablePromise<AssignNamesReturn> {
|
|
141
102
|
return __request(OpenAPI, {
|
|
142
103
|
method: 'GET',
|
|
143
104
|
url: '/order/assign-names',
|
|
144
|
-
headers: {
|
|
145
|
-
'shopperguid': shopperguid,
|
|
146
|
-
'accountid': accountid,
|
|
147
|
-
'apikey': apikey,
|
|
148
|
-
},
|
|
149
105
|
query: {
|
|
150
106
|
'guid': guid,
|
|
151
107
|
},
|
|
@@ -160,28 +116,17 @@ export class OrderService {
|
|
|
160
116
|
* Post assign names
|
|
161
117
|
* Assigns names to an order using its unique guid and the provided names.
|
|
162
118
|
* @param guid Unique identifier for an order.
|
|
163
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
164
|
-
* @param accountid Unique identifier for the account.
|
|
165
|
-
* @param apikey API key for authentication.
|
|
166
119
|
* @param requestBody Names to be assigned to the order.
|
|
167
120
|
* @returns SuccessResponse Returns success status after assigning names.
|
|
168
121
|
* @throws ApiError
|
|
169
122
|
*/
|
|
170
123
|
public static postAssignNames(
|
|
171
124
|
guid: string,
|
|
172
|
-
shopperguid: string,
|
|
173
|
-
accountid: string,
|
|
174
|
-
apikey: string,
|
|
175
125
|
requestBody: NameUpdate,
|
|
176
126
|
): CancelablePromise<SuccessResponse> {
|
|
177
127
|
return __request(OpenAPI, {
|
|
178
128
|
method: 'POST',
|
|
179
129
|
url: '/order/assign-names',
|
|
180
|
-
headers: {
|
|
181
|
-
'shopperguid': shopperguid,
|
|
182
|
-
'accountid': accountid,
|
|
183
|
-
'apikey': apikey,
|
|
184
|
-
},
|
|
185
130
|
query: {
|
|
186
131
|
'guid': guid,
|
|
187
132
|
},
|
|
@@ -198,28 +143,17 @@ export class OrderService {
|
|
|
198
143
|
* Post email tickets
|
|
199
144
|
* Sends email tickets for an order using its unique guid and the provided email update.
|
|
200
145
|
* @param guid Unique identifier for an order.
|
|
201
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
202
|
-
* @param accountid Unique identifier for the account.
|
|
203
|
-
* @param apikey API key for authentication.
|
|
204
146
|
* @param requestBody Email update containing the email address to send tickets.
|
|
205
147
|
* @returns SuccessResponse Returns success status after sending email tickets.
|
|
206
148
|
* @throws ApiError
|
|
207
149
|
*/
|
|
208
150
|
public static postEmailTickets(
|
|
209
151
|
guid: string,
|
|
210
|
-
shopperguid: string,
|
|
211
|
-
accountid: string,
|
|
212
|
-
apikey: string,
|
|
213
152
|
requestBody: EmailUpdate,
|
|
214
153
|
): CancelablePromise<SuccessResponse> {
|
|
215
154
|
return __request(OpenAPI, {
|
|
216
155
|
method: 'POST',
|
|
217
156
|
url: '/order/email-tickets',
|
|
218
|
-
headers: {
|
|
219
|
-
'shopperguid': shopperguid,
|
|
220
|
-
'accountid': accountid,
|
|
221
|
-
'apikey': apikey,
|
|
222
|
-
},
|
|
223
157
|
query: {
|
|
224
158
|
'guid': guid,
|
|
225
159
|
},
|
|
@@ -236,26 +170,15 @@ export class OrderService {
|
|
|
236
170
|
* Get ticket block by guid
|
|
237
171
|
* Fetches the ticket block for an order using its unique guid.
|
|
238
172
|
* @param guid Unique identifier for an order.
|
|
239
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
240
|
-
* @param accountid Unique identifier for the account.
|
|
241
|
-
* @param apikey API key for authentication.
|
|
242
173
|
* @returns PickupReturn Returns the ticket block for the order.
|
|
243
174
|
* @throws ApiError
|
|
244
175
|
*/
|
|
245
176
|
public static getTicketBlock(
|
|
246
177
|
guid: string,
|
|
247
|
-
shopperguid: string,
|
|
248
|
-
accountid: string,
|
|
249
|
-
apikey: string,
|
|
250
178
|
): CancelablePromise<PickupReturn> {
|
|
251
179
|
return __request(OpenAPI, {
|
|
252
180
|
method: 'GET',
|
|
253
181
|
url: '/order/pickup',
|
|
254
|
-
headers: {
|
|
255
|
-
'shopperguid': shopperguid,
|
|
256
|
-
'accountid': accountid,
|
|
257
|
-
'apikey': apikey,
|
|
258
|
-
},
|
|
259
182
|
query: {
|
|
260
183
|
'guid': guid,
|
|
261
184
|
},
|
|
@@ -270,26 +193,15 @@ export class OrderService {
|
|
|
270
193
|
* Post ticket block by guid
|
|
271
194
|
* Sends the ticket block for an order using its unique guid.
|
|
272
195
|
* @param guid Unique identifier for an order.
|
|
273
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
274
|
-
* @param accountid Unique identifier for the account.
|
|
275
|
-
* @param apikey API key for authentication.
|
|
276
196
|
* @returns SuccessResponse Returns the ticket block for the order.
|
|
277
197
|
* @throws ApiError
|
|
278
198
|
*/
|
|
279
199
|
public static postPickup(
|
|
280
200
|
guid: string,
|
|
281
|
-
shopperguid: string,
|
|
282
|
-
accountid: string,
|
|
283
|
-
apikey: string,
|
|
284
201
|
): CancelablePromise<SuccessResponse> {
|
|
285
202
|
return __request(OpenAPI, {
|
|
286
203
|
method: 'POST',
|
|
287
204
|
url: '/order/pickup',
|
|
288
|
-
headers: {
|
|
289
|
-
'shopperguid': shopperguid,
|
|
290
|
-
'accountid': accountid,
|
|
291
|
-
'apikey': apikey,
|
|
292
|
-
},
|
|
293
205
|
query: {
|
|
294
206
|
'guid': guid,
|
|
295
207
|
},
|
|
@@ -304,26 +216,15 @@ export class OrderService {
|
|
|
304
216
|
* Send order receipt via email
|
|
305
217
|
* Sends the order receipt to the shopper's email address for the specified order guid.
|
|
306
218
|
* @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
219
|
* @returns SuccessResponse Returns success status after emailing the receipt.
|
|
311
220
|
* @throws ApiError
|
|
312
221
|
*/
|
|
313
222
|
public static postEmailReceipt(
|
|
314
223
|
guid: string,
|
|
315
|
-
shopperguid: string,
|
|
316
|
-
accountid: string,
|
|
317
|
-
apikey: string,
|
|
318
224
|
): CancelablePromise<SuccessResponse> {
|
|
319
225
|
return __request(OpenAPI, {
|
|
320
226
|
method: 'POST',
|
|
321
227
|
url: '/order/email-receipt',
|
|
322
|
-
headers: {
|
|
323
|
-
'shopperguid': shopperguid,
|
|
324
|
-
'accountid': accountid,
|
|
325
|
-
'apikey': apikey,
|
|
326
|
-
},
|
|
327
228
|
query: {
|
|
328
229
|
'guid': guid,
|
|
329
230
|
},
|
|
@@ -338,26 +239,15 @@ export class OrderService {
|
|
|
338
239
|
* Get refund request information
|
|
339
240
|
* Fetches the refund request information for an order using its unique guid.
|
|
340
241
|
* @param guid Unique identifier for an order.
|
|
341
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
342
|
-
* @param accountid Unique identifier for the account.
|
|
343
|
-
* @param apikey API key for authentication.
|
|
344
242
|
* @returns RefundRequestInfo Returns the refund request information for the order.
|
|
345
243
|
* @throws ApiError
|
|
346
244
|
*/
|
|
347
245
|
public static getRefundRequest(
|
|
348
246
|
guid: string,
|
|
349
|
-
shopperguid: string,
|
|
350
|
-
accountid: string,
|
|
351
|
-
apikey: string,
|
|
352
247
|
): CancelablePromise<RefundRequestInfo> {
|
|
353
248
|
return __request(OpenAPI, {
|
|
354
249
|
method: 'GET',
|
|
355
250
|
url: '/order/refund-request',
|
|
356
|
-
headers: {
|
|
357
|
-
'shopperguid': shopperguid,
|
|
358
|
-
'accountid': accountid,
|
|
359
|
-
'apikey': apikey,
|
|
360
|
-
},
|
|
361
251
|
query: {
|
|
362
252
|
'guid': guid,
|
|
363
253
|
},
|
|
@@ -372,28 +262,17 @@ export class OrderService {
|
|
|
372
262
|
* Submit a refund request
|
|
373
263
|
* Submits a refund request for an order using its unique guid and the provided refund details.
|
|
374
264
|
* @param guid Unique identifier for an order.
|
|
375
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
376
|
-
* @param accountid Unique identifier for the account.
|
|
377
|
-
* @param apikey API key for authentication.
|
|
378
265
|
* @param requestBody Refund request details.
|
|
379
266
|
* @returns SuccessResponse Returns success status after submitting the refund request.
|
|
380
267
|
* @throws ApiError
|
|
381
268
|
*/
|
|
382
269
|
public static postRefundRequest(
|
|
383
270
|
guid: string,
|
|
384
|
-
shopperguid: string,
|
|
385
|
-
accountid: string,
|
|
386
|
-
apikey: string,
|
|
387
271
|
requestBody: RefundRequest,
|
|
388
272
|
): CancelablePromise<SuccessResponse> {
|
|
389
273
|
return __request(OpenAPI, {
|
|
390
274
|
method: 'POST',
|
|
391
275
|
url: '/order/refund-request',
|
|
392
|
-
headers: {
|
|
393
|
-
'shopperguid': shopperguid,
|
|
394
|
-
'accountid': accountid,
|
|
395
|
-
'apikey': apikey,
|
|
396
|
-
},
|
|
397
276
|
query: {
|
|
398
277
|
'guid': guid,
|
|
399
278
|
},
|
|
@@ -410,28 +289,17 @@ export class OrderService {
|
|
|
410
289
|
* Recalculate order totals
|
|
411
290
|
* Recalculates the totals for an order using the provided recalculation data.
|
|
412
291
|
* @param guid Unique identifier for an order.
|
|
413
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
414
|
-
* @param accountid Unique identifier for the account.
|
|
415
|
-
* @param apikey API key for authentication.
|
|
416
292
|
* @param requestBody Order recalculation data.
|
|
417
293
|
* @returns RecalcResponse Returns the recalculated order totals and success status.
|
|
418
294
|
* @throws ApiError
|
|
419
295
|
*/
|
|
420
296
|
public static postRecalcOrder(
|
|
421
297
|
guid: string,
|
|
422
|
-
shopperguid: string,
|
|
423
|
-
accountid: string,
|
|
424
|
-
apikey: string,
|
|
425
298
|
requestBody: OrderRecalc,
|
|
426
299
|
): CancelablePromise<RecalcResponse> {
|
|
427
300
|
return __request(OpenAPI, {
|
|
428
301
|
method: 'POST',
|
|
429
302
|
url: '/order/recalc',
|
|
430
|
-
headers: {
|
|
431
|
-
'shopperguid': shopperguid,
|
|
432
|
-
'accountid': accountid,
|
|
433
|
-
'apikey': apikey,
|
|
434
|
-
},
|
|
435
303
|
query: {
|
|
436
304
|
'guid': guid,
|
|
437
305
|
},
|
|
@@ -447,27 +315,16 @@ export class OrderService {
|
|
|
447
315
|
/**
|
|
448
316
|
* Register a stream for a shopper
|
|
449
317
|
* Registers a stream for the specified shopper and account using the provided stream registration details.
|
|
450
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
451
|
-
* @param accountid Unique identifier for the account.
|
|
452
|
-
* @param apikey API key for authentication.
|
|
453
318
|
* @param requestBody Stream registration details.
|
|
454
319
|
* @returns RegisterStreamResponse Returns the stream registration response.
|
|
455
320
|
* @throws ApiError
|
|
456
321
|
*/
|
|
457
322
|
public static postRegisterStream(
|
|
458
|
-
shopperguid: string,
|
|
459
|
-
accountid: string,
|
|
460
|
-
apikey: string,
|
|
461
323
|
requestBody: RegisterStreamRequest,
|
|
462
324
|
): CancelablePromise<RegisterStreamResponse> {
|
|
463
325
|
return __request(OpenAPI, {
|
|
464
326
|
method: 'POST',
|
|
465
327
|
url: '/order/stream-register',
|
|
466
|
-
headers: {
|
|
467
|
-
'shopperguid': shopperguid,
|
|
468
|
-
'accountid': accountid,
|
|
469
|
-
'apikey': apikey,
|
|
470
|
-
},
|
|
471
328
|
body: requestBody,
|
|
472
329
|
mediaType: 'application/json',
|
|
473
330
|
errors: {
|
|
@@ -480,27 +337,16 @@ export class OrderService {
|
|
|
480
337
|
/**
|
|
481
338
|
* Deregister a stream for a shopper
|
|
482
339
|
* Removes the stream registration for the specified shopper and account using the provided stream registration details.
|
|
483
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
484
|
-
* @param accountid Unique identifier for the account.
|
|
485
|
-
* @param apikey API key for authentication.
|
|
486
340
|
* @param requestBody Stream registration details to be deregistered.
|
|
487
341
|
* @returns SuccessResponse Returns success status after deregistering the stream.
|
|
488
342
|
* @throws ApiError
|
|
489
343
|
*/
|
|
490
344
|
public static deleteRegisteredStream(
|
|
491
|
-
shopperguid: string,
|
|
492
|
-
accountid: string,
|
|
493
|
-
apikey: string,
|
|
494
345
|
requestBody: RegisterStreamRequest,
|
|
495
346
|
): CancelablePromise<SuccessResponse> {
|
|
496
347
|
return __request(OpenAPI, {
|
|
497
348
|
method: 'DELETE',
|
|
498
349
|
url: '/order/stream-register',
|
|
499
|
-
headers: {
|
|
500
|
-
'shopperguid': shopperguid,
|
|
501
|
-
'accountid': accountid,
|
|
502
|
-
'apikey': apikey,
|
|
503
|
-
},
|
|
504
350
|
body: requestBody,
|
|
505
351
|
mediaType: 'application/json',
|
|
506
352
|
errors: {
|
|
@@ -14,27 +14,16 @@ export class PaymentService {
|
|
|
14
14
|
/**
|
|
15
15
|
* Summarize payment
|
|
16
16
|
* Saves the payment data for the shopper with the provided confirmation token.
|
|
17
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
18
|
-
* @param accountid Unique identifier for the account.
|
|
19
|
-
* @param apikey API key for authentication.
|
|
20
17
|
* @param requestBody Summary request body containing the confirmation token.
|
|
21
18
|
* @returns SuccessResponse Returns a success response.
|
|
22
19
|
* @throws ApiError
|
|
23
20
|
*/
|
|
24
21
|
public static summarizePayment(
|
|
25
|
-
shopperguid: string,
|
|
26
|
-
accountid: string,
|
|
27
|
-
apikey: string,
|
|
28
22
|
requestBody: SummaryBody,
|
|
29
23
|
): CancelablePromise<SuccessResponse> {
|
|
30
24
|
return __request(OpenAPI, {
|
|
31
25
|
method: 'POST',
|
|
32
26
|
url: '/payment/summary',
|
|
33
|
-
headers: {
|
|
34
|
-
'shopperguid': shopperguid,
|
|
35
|
-
'accountid': accountid,
|
|
36
|
-
'apikey': apikey,
|
|
37
|
-
},
|
|
38
27
|
body: requestBody,
|
|
39
28
|
mediaType: 'application/json',
|
|
40
29
|
errors: {
|
|
@@ -47,27 +36,16 @@ export class PaymentService {
|
|
|
47
36
|
/**
|
|
48
37
|
* Complete payment
|
|
49
38
|
* Completes the payment for the shopper using the provided cart hash and IP address.
|
|
50
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
51
|
-
* @param accountid Unique identifier for the account.
|
|
52
|
-
* @param apikey API key for authentication.
|
|
53
39
|
* @param requestBody Payment completion request body containing cart hash and IP address.
|
|
54
40
|
* @returns PaymentSuccess Returns the result of the payment completion.
|
|
55
41
|
* @throws ApiError
|
|
56
42
|
*/
|
|
57
43
|
public static completePayment(
|
|
58
|
-
shopperguid: string,
|
|
59
|
-
accountid: string,
|
|
60
|
-
apikey: string,
|
|
61
44
|
requestBody: CompleteBody,
|
|
62
45
|
): CancelablePromise<PaymentSuccess> {
|
|
63
46
|
return __request(OpenAPI, {
|
|
64
47
|
method: 'POST',
|
|
65
48
|
url: '/payment/complete',
|
|
66
|
-
headers: {
|
|
67
|
-
'shopperguid': shopperguid,
|
|
68
|
-
'accountid': accountid,
|
|
69
|
-
'apikey': apikey,
|
|
70
|
-
},
|
|
71
49
|
body: requestBody,
|
|
72
50
|
mediaType: 'application/json',
|
|
73
51
|
errors: {
|
|
@@ -80,25 +58,14 @@ export class PaymentService {
|
|
|
80
58
|
/**
|
|
81
59
|
* Create payment customer session
|
|
82
60
|
* Creates a new payment customer session for the shopper and account.
|
|
83
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
84
|
-
* @param accountid Unique identifier for the account.
|
|
85
|
-
* @param apikey API key for authentication.
|
|
86
61
|
* @returns CreateCustomerResponse Returns the created customer session.
|
|
87
62
|
* @throws ApiError
|
|
88
63
|
*/
|
|
89
64
|
public static createCustomerSession(
|
|
90
|
-
shopperguid: string,
|
|
91
|
-
accountid: string,
|
|
92
|
-
apikey: string,
|
|
93
65
|
): CancelablePromise<CreateCustomerResponse> {
|
|
94
66
|
return __request(OpenAPI, {
|
|
95
67
|
method: 'POST',
|
|
96
68
|
url: '/payment/customer',
|
|
97
|
-
headers: {
|
|
98
|
-
'shopperguid': shopperguid,
|
|
99
|
-
'accountid': accountid,
|
|
100
|
-
'apikey': apikey,
|
|
101
|
-
},
|
|
102
69
|
errors: {
|
|
103
70
|
400: `Bad Request error with error details.`,
|
|
104
71
|
404: `Not found error with error details.`,
|
|
@@ -14,25 +14,14 @@ export class ProductService {
|
|
|
14
14
|
/**
|
|
15
15
|
* Get all products
|
|
16
16
|
* Retrieves all products available for the specified account.
|
|
17
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
18
|
-
* @param accountid Unique identifier for the account.
|
|
19
|
-
* @param apikey API key for authentication.
|
|
20
17
|
* @returns ProductData Returns a list of products for the account.
|
|
21
18
|
* @throws ApiError
|
|
22
19
|
*/
|
|
23
20
|
public static getProducts(
|
|
24
|
-
shopperguid: string,
|
|
25
|
-
accountid: string,
|
|
26
|
-
apikey: string,
|
|
27
21
|
): CancelablePromise<ProductData> {
|
|
28
22
|
return __request(OpenAPI, {
|
|
29
23
|
method: 'GET',
|
|
30
24
|
url: '/product',
|
|
31
|
-
headers: {
|
|
32
|
-
'shopperguid': shopperguid,
|
|
33
|
-
'accountid': accountid,
|
|
34
|
-
'apikey': apikey,
|
|
35
|
-
},
|
|
36
25
|
errors: {
|
|
37
26
|
400: `Bad Request error with error details.`,
|
|
38
27
|
404: `Not found error with error details.`,
|
|
@@ -43,27 +32,16 @@ export class ProductService {
|
|
|
43
32
|
/**
|
|
44
33
|
* Add a product
|
|
45
34
|
* Adds a new product to the specified account.
|
|
46
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
47
|
-
* @param accountid Unique identifier for the account.
|
|
48
|
-
* @param apikey API key for authentication.
|
|
49
35
|
* @param requestBody Product details to add.
|
|
50
36
|
* @returns ProductAddResponse Returns the result of the product addition.
|
|
51
37
|
* @throws ApiError
|
|
52
38
|
*/
|
|
53
39
|
public static addProduct(
|
|
54
|
-
shopperguid: string,
|
|
55
|
-
accountid: string,
|
|
56
|
-
apikey: string,
|
|
57
40
|
requestBody: ProductBody,
|
|
58
41
|
): CancelablePromise<ProductAddResponse> {
|
|
59
42
|
return __request(OpenAPI, {
|
|
60
43
|
method: 'POST',
|
|
61
44
|
url: '/product',
|
|
62
|
-
headers: {
|
|
63
|
-
'shopperguid': shopperguid,
|
|
64
|
-
'accountid': accountid,
|
|
65
|
-
'apikey': apikey,
|
|
66
|
-
},
|
|
67
45
|
body: requestBody,
|
|
68
46
|
mediaType: 'application/json',
|
|
69
47
|
errors: {
|
|
@@ -76,27 +54,16 @@ export class ProductService {
|
|
|
76
54
|
/**
|
|
77
55
|
* Remove a product
|
|
78
56
|
* Removes a product from the specified account.
|
|
79
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
80
|
-
* @param accountid Unique identifier for the account.
|
|
81
|
-
* @param apikey API key for authentication.
|
|
82
57
|
* @param requestBody Product details to remove.
|
|
83
58
|
* @returns ProductUpdateResponse Returns the result of the product removal.
|
|
84
59
|
* @throws ApiError
|
|
85
60
|
*/
|
|
86
61
|
public static deleteProduct(
|
|
87
|
-
shopperguid: string,
|
|
88
|
-
accountid: string,
|
|
89
|
-
apikey: string,
|
|
90
62
|
requestBody: ProductDeleteBody,
|
|
91
63
|
): CancelablePromise<ProductUpdateResponse> {
|
|
92
64
|
return __request(OpenAPI, {
|
|
93
65
|
method: 'DELETE',
|
|
94
66
|
url: '/product',
|
|
95
|
-
headers: {
|
|
96
|
-
'shopperguid': shopperguid,
|
|
97
|
-
'accountid': accountid,
|
|
98
|
-
'apikey': apikey,
|
|
99
|
-
},
|
|
100
67
|
body: requestBody,
|
|
101
68
|
mediaType: 'application/json',
|
|
102
69
|
errors: {
|