@drttix/drt-sdk 1.2.5 → 1.3.3
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/dist/cjs/src/generated/portal/core/OpenAPI.js +1 -1
- package/dist/cjs/src/generated/portal/services/ShowsService.d.ts +4 -2
- package/dist/cjs/src/generated/portal/services/ShowsService.js +10 -4
- package/dist/cjs/src/generated/shopper/core/OpenAPI.js +1 -1
- package/dist/cjs/src/generated/shopper/index.d.ts +8 -0
- package/dist/cjs/src/generated/shopper/models/Account.d.ts +10 -0
- package/dist/cjs/src/generated/shopper/models/CartHashResponse.d.ts +6 -0
- package/dist/cjs/src/generated/shopper/models/CartHashResponse.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CartItemCounts.d.ts +10 -0
- package/dist/cjs/src/generated/shopper/models/CartItemCounts.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CartSummary.d.ts +26 -0
- package/dist/cjs/src/generated/shopper/models/CartSummary.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CashPaymentDetail.d.ts +18 -0
- package/dist/cjs/src/generated/shopper/models/CashPaymentDetail.js +2 -0
- package/dist/cjs/src/generated/shopper/models/DonateOrderRequest.d.ts +4 -0
- package/dist/cjs/src/generated/shopper/models/DonateOrderRequest.js +2 -0
- package/dist/cjs/src/generated/shopper/models/ExchangeRequest.d.ts +11 -0
- package/dist/cjs/src/generated/shopper/models/ExchangeRequest.js +2 -0
- package/dist/cjs/src/generated/shopper/models/SeatIdInput.d.ts +4 -0
- package/dist/cjs/src/generated/shopper/models/SeatIdInput.js +2 -0
- package/dist/cjs/src/generated/shopper/models/SeatsByShow.d.ts +18 -0
- package/dist/cjs/src/generated/shopper/models/SeatsByShow.js +2 -0
- package/dist/cjs/src/generated/shopper/models/SessionInfoDto.d.ts +9 -0
- package/dist/cjs/src/generated/shopper/services/CartService.d.ts +24 -0
- package/dist/cjs/src/generated/shopper/services/CartService.js +51 -0
- package/dist/cjs/src/generated/shopper/services/OrderService.d.ts +18 -0
- package/dist/cjs/src/generated/shopper/services/OrderService.js +40 -0
- package/dist/cjs/src/generated/shopper/types.d.ts +8 -0
- package/dist/esm/src/generated/portal/core/OpenAPI.js +1 -1
- package/dist/esm/src/generated/portal/services/ShowsService.d.ts +4 -2
- package/dist/esm/src/generated/portal/services/ShowsService.js +10 -4
- package/dist/esm/src/generated/shopper/core/OpenAPI.js +1 -1
- package/dist/esm/src/generated/shopper/index.d.ts +8 -0
- package/dist/esm/src/generated/shopper/models/Account.d.ts +10 -0
- package/dist/esm/src/generated/shopper/models/CartHashResponse.d.ts +6 -0
- package/dist/esm/src/generated/shopper/models/CartHashResponse.js +1 -0
- package/dist/esm/src/generated/shopper/models/CartItemCounts.d.ts +10 -0
- package/dist/esm/src/generated/shopper/models/CartItemCounts.js +1 -0
- package/dist/esm/src/generated/shopper/models/CartSummary.d.ts +26 -0
- package/dist/esm/src/generated/shopper/models/CartSummary.js +1 -0
- package/dist/esm/src/generated/shopper/models/CashPaymentDetail.d.ts +18 -0
- package/dist/esm/src/generated/shopper/models/CashPaymentDetail.js +1 -0
- package/dist/esm/src/generated/shopper/models/DonateOrderRequest.d.ts +4 -0
- package/dist/esm/src/generated/shopper/models/DonateOrderRequest.js +1 -0
- package/dist/esm/src/generated/shopper/models/ExchangeRequest.d.ts +11 -0
- package/dist/esm/src/generated/shopper/models/ExchangeRequest.js +1 -0
- package/dist/esm/src/generated/shopper/models/SeatIdInput.d.ts +4 -0
- package/dist/esm/src/generated/shopper/models/SeatIdInput.js +1 -0
- package/dist/esm/src/generated/shopper/models/SeatsByShow.d.ts +18 -0
- package/dist/esm/src/generated/shopper/models/SeatsByShow.js +1 -0
- package/dist/esm/src/generated/shopper/models/SessionInfoDto.d.ts +9 -0
- package/dist/esm/src/generated/shopper/services/CartService.d.ts +24 -0
- package/dist/esm/src/generated/shopper/services/CartService.js +51 -0
- package/dist/esm/src/generated/shopper/services/OrderService.d.ts +18 -0
- package/dist/esm/src/generated/shopper/services/OrderService.js +40 -0
- package/dist/esm/src/generated/shopper/types.d.ts +8 -0
- package/package.json +1 -1
- package/src/generated/portal/core/OpenAPI.ts +1 -1
- package/src/generated/portal/services/ShowsService.ts +11 -3
- package/src/generated/shopper/core/OpenAPI.ts +1 -1
- package/src/generated/shopper/index.ts +8 -0
- package/src/generated/shopper/models/Account.ts +10 -0
- package/src/generated/shopper/models/CartHashResponse.ts +11 -0
- package/src/generated/shopper/models/CartItemCounts.ts +15 -0
- package/src/generated/shopper/models/CartSummary.ts +31 -0
- package/src/generated/shopper/models/CashPaymentDetail.ts +23 -0
- package/src/generated/shopper/models/DonateOrderRequest.ts +9 -0
- package/src/generated/shopper/models/ExchangeRequest.ts +16 -0
- package/src/generated/shopper/models/SeatIdInput.ts +9 -0
- package/src/generated/shopper/models/SeatsByShow.ts +23 -0
- package/src/generated/shopper/models/SessionInfoDto.ts +9 -0
- package/src/generated/shopper/services/CartService.ts +57 -0
- package/src/generated/shopper/services/OrderService.ts +46 -0
- package/src/generated/shopper/types.ts +8 -0
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
|
+
import type { CartHashResponse } from '../models/CartHashResponse';
|
|
6
|
+
import type { CartSummary } from '../models/CartSummary';
|
|
5
7
|
import type { CartWithTime } from '../models/CartWithTime';
|
|
8
|
+
import type { CashPaymentDetail } from '../models/CashPaymentDetail';
|
|
6
9
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
7
10
|
import { OpenAPI } from '../core/OpenAPI';
|
|
8
11
|
import { request as __request } from '../core/request';
|
|
@@ -43,4 +46,58 @@ export class CartService {
|
|
|
43
46
|
},
|
|
44
47
|
});
|
|
45
48
|
}
|
|
49
|
+
/**
|
|
50
|
+
* Get Cart Summary
|
|
51
|
+
* Returns a consolidated summary of the shopper's current cart, including: products in session, donations in session, held seats grouped by show, the count of available shows, and the count of available products and donation funds for the account based on the session date.
|
|
52
|
+
* @returns CartSummary Cart summary retrieved successfully.
|
|
53
|
+
* @throws ApiError
|
|
54
|
+
*/
|
|
55
|
+
public static getCartSummary(
|
|
56
|
+
): CancelablePromise<CartSummary> {
|
|
57
|
+
return __request(OpenAPI, {
|
|
58
|
+
method: 'GET',
|
|
59
|
+
url: '/cart/summary',
|
|
60
|
+
errors: {
|
|
61
|
+
400: `Bad Request error with error details.`,
|
|
62
|
+
404: `Not found error with error details.`,
|
|
63
|
+
500: `Internal Server Error, please contact developers.`,
|
|
64
|
+
},
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Get Cart Hash
|
|
69
|
+
* Returns the computed cart hash for the current shopper session.
|
|
70
|
+
* @returns CartHashResponse Cart hash retrieved successfully.
|
|
71
|
+
* @throws ApiError
|
|
72
|
+
*/
|
|
73
|
+
public static getCartHash(
|
|
74
|
+
): CancelablePromise<CartHashResponse> {
|
|
75
|
+
return __request(OpenAPI, {
|
|
76
|
+
method: 'GET',
|
|
77
|
+
url: '/cart/hash',
|
|
78
|
+
errors: {
|
|
79
|
+
400: `Bad Request error with error details.`,
|
|
80
|
+
404: `Not found error with error details.`,
|
|
81
|
+
500: `Internal Server Error, please contact developers.`,
|
|
82
|
+
},
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Get Cash Payment Detail
|
|
87
|
+
* Returns cash payment details for the current shopper session, including order total, payments total, and house card credentials.
|
|
88
|
+
* @returns CashPaymentDetail Cash payment detail retrieved successfully.
|
|
89
|
+
* @throws ApiError
|
|
90
|
+
*/
|
|
91
|
+
public static getCashPaymentDetail(
|
|
92
|
+
): CancelablePromise<CashPaymentDetail> {
|
|
93
|
+
return __request(OpenAPI, {
|
|
94
|
+
method: 'GET',
|
|
95
|
+
url: '/cart/cash-payment-detail',
|
|
96
|
+
errors: {
|
|
97
|
+
400: `Bad Request error with error details.`,
|
|
98
|
+
404: `Not found error with error details.`,
|
|
99
|
+
500: `Internal Server Error, please contact developers.`,
|
|
100
|
+
},
|
|
101
|
+
});
|
|
102
|
+
}
|
|
46
103
|
}
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
import type { AssignNamesReturn } from '../models/AssignNamesReturn';
|
|
6
|
+
import type { DonateOrderRequest } from '../models/DonateOrderRequest';
|
|
6
7
|
import type { EmailUpdate } from '../models/EmailUpdate';
|
|
8
|
+
import type { ExchangeRequest } from '../models/ExchangeRequest';
|
|
7
9
|
import type { GuidReturn } from '../models/GuidReturn';
|
|
8
10
|
import type { LinkWithSuccess } from '../models/LinkWithSuccess';
|
|
9
11
|
import type { NameUpdate } from '../models/NameUpdate';
|
|
@@ -312,6 +314,28 @@ export class OrderService {
|
|
|
312
314
|
},
|
|
313
315
|
});
|
|
314
316
|
}
|
|
317
|
+
/**
|
|
318
|
+
* Donate order in lieu of refund
|
|
319
|
+
* Marks an order as donated in lieu of refund using the provided order guid and donated IP address.
|
|
320
|
+
* @param requestBody Donate order payload containing guid and donatedIpAddress.
|
|
321
|
+
* @returns SuccessResponse Returns success status after donating the order.
|
|
322
|
+
* @throws ApiError
|
|
323
|
+
*/
|
|
324
|
+
public static postDonateOrder(
|
|
325
|
+
requestBody: DonateOrderRequest,
|
|
326
|
+
): CancelablePromise<SuccessResponse> {
|
|
327
|
+
return __request(OpenAPI, {
|
|
328
|
+
method: 'POST',
|
|
329
|
+
url: '/order/donate-order',
|
|
330
|
+
body: requestBody,
|
|
331
|
+
mediaType: 'application/json',
|
|
332
|
+
errors: {
|
|
333
|
+
400: `Bad Request error with error details.`,
|
|
334
|
+
404: `Not found error with error details.`,
|
|
335
|
+
500: `Internal Server Error, please contact developers.`,
|
|
336
|
+
},
|
|
337
|
+
});
|
|
338
|
+
}
|
|
315
339
|
/**
|
|
316
340
|
* Register a stream for a shopper
|
|
317
341
|
* Registers a stream for the specified shopper and account using the provided stream registration details.
|
|
@@ -356,4 +380,26 @@ export class OrderService {
|
|
|
356
380
|
},
|
|
357
381
|
});
|
|
358
382
|
}
|
|
383
|
+
/**
|
|
384
|
+
* Execute a seat exchange for an order
|
|
385
|
+
* Swaps seats held in the cart for the seats specified in seatIds on an existing order.
|
|
386
|
+
* @param requestBody Exchange request containing the order GUID and seat IDs to exchange out.
|
|
387
|
+
* @returns SuccessResponse Returns success after completing the exchange.
|
|
388
|
+
* @throws ApiError
|
|
389
|
+
*/
|
|
390
|
+
public static postExchange(
|
|
391
|
+
requestBody: ExchangeRequest,
|
|
392
|
+
): CancelablePromise<SuccessResponse> {
|
|
393
|
+
return __request(OpenAPI, {
|
|
394
|
+
method: 'POST',
|
|
395
|
+
url: '/order/exchange',
|
|
396
|
+
body: requestBody,
|
|
397
|
+
mediaType: 'application/json',
|
|
398
|
+
errors: {
|
|
399
|
+
400: `Bad Request error with error details.`,
|
|
400
|
+
404: `Not found error with error details.`,
|
|
401
|
+
500: `Internal Server Error, please contact developers.`,
|
|
402
|
+
},
|
|
403
|
+
});
|
|
404
|
+
}
|
|
359
405
|
}
|
|
@@ -10,7 +10,11 @@ export type { BAHold } from './models/BAHold';
|
|
|
10
10
|
export type { BlockOfTickets } from './models/BlockOfTickets';
|
|
11
11
|
export type { Cart } from './models/Cart';
|
|
12
12
|
export type { CartCounts } from './models/CartCounts';
|
|
13
|
+
export type { CartHashResponse } from './models/CartHashResponse';
|
|
14
|
+
export type { CartItemCounts } from './models/CartItemCounts';
|
|
15
|
+
export type { CartSummary } from './models/CartSummary';
|
|
13
16
|
export type { CartWithTime } from './models/CartWithTime';
|
|
17
|
+
export type { CashPaymentDetail } from './models/CashPaymentDetail';
|
|
14
18
|
export type { Chart } from './models/Chart';
|
|
15
19
|
export type { CheckoutDonation } from './models/CheckoutDonation';
|
|
16
20
|
export type { CheckoutFailResponse } from './models/CheckoutFailResponse';
|
|
@@ -26,6 +30,7 @@ export type { CompleteBody } from './models/CompleteBody';
|
|
|
26
30
|
export type { CreateCustomerResponse } from './models/CreateCustomerResponse';
|
|
27
31
|
export type { CreateSessionDto } from './models/CreateSessionDto';
|
|
28
32
|
export type { DigitalAsset } from './models/DigitalAsset';
|
|
33
|
+
export type { DonateOrderRequest } from './models/DonateOrderRequest';
|
|
29
34
|
export type { DonationContribution } from './models/DonationContribution';
|
|
30
35
|
export type { DonationFund } from './models/DonationFund';
|
|
31
36
|
export type { DonationInCart } from './models/DonationInCart';
|
|
@@ -36,6 +41,7 @@ export type { EmailUpdate } from './models/EmailUpdate';
|
|
|
36
41
|
export type { EngineSeat } from './models/EngineSeat';
|
|
37
42
|
export type { EventDetails } from './models/EventDetails';
|
|
38
43
|
export type { EventGroup } from './models/EventGroup';
|
|
44
|
+
export type { ExchangeRequest } from './models/ExchangeRequest';
|
|
39
45
|
export type { ExistingRefundDetails } from './models/ExistingRefundDetails';
|
|
40
46
|
export type { FullEventDetails } from './models/FullEventDetails';
|
|
41
47
|
export type { GAHold } from './models/GAHold';
|
|
@@ -93,8 +99,10 @@ export type { SaveDetailsBody } from './models/SaveDetailsBody';
|
|
|
93
99
|
export type { SaveNonceBody } from './models/SaveNonceBody';
|
|
94
100
|
export type { SeatData } from './models/SeatData';
|
|
95
101
|
export type { SeatHoldReturn } from './models/SeatHoldReturn';
|
|
102
|
+
export type { SeatIdInput } from './models/SeatIdInput';
|
|
96
103
|
export type { SeatInCart } from './models/SeatInCart';
|
|
97
104
|
export type { SeatingTier } from './models/SeatingTier';
|
|
105
|
+
export type { SeatsByShow } from './models/SeatsByShow';
|
|
98
106
|
export type { Section } from './models/Section';
|
|
99
107
|
export type { SectionRule } from './models/SectionRule';
|
|
100
108
|
export type { SessionHeartbeatDto } from './models/SessionHeartbeatDto';
|