@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
|
@@ -121,11 +121,13 @@ export declare class ShowsService {
|
|
|
121
121
|
/**
|
|
122
122
|
* Fetch the show virtual stream details
|
|
123
123
|
* To fetch the virtual stream details of the show
|
|
124
|
-
* @param guid
|
|
124
|
+
* @param guid
|
|
125
|
+
* @param shopperGuid Unique identifier for an shopper.
|
|
126
|
+
* @param showId The ID of the show
|
|
125
127
|
* @returns VirtualStreamResponseDto Virtual stream details fetched successfully
|
|
126
128
|
* @throws ApiError
|
|
127
129
|
*/
|
|
128
|
-
static getShowVirtualStream(guid: string): CancelablePromise<VirtualStreamResponseDto>;
|
|
130
|
+
static getShowVirtualStream(guid: string, shopperGuid: any, showId: string): CancelablePromise<VirtualStreamResponseDto>;
|
|
129
131
|
/**
|
|
130
132
|
* Fetch the migrate ticket details
|
|
131
133
|
* To fetch the migrate ticket details of the show
|
|
@@ -202,16 +202,22 @@ class ShowsService {
|
|
|
202
202
|
/**
|
|
203
203
|
* Fetch the show virtual stream details
|
|
204
204
|
* To fetch the virtual stream details of the show
|
|
205
|
-
* @param guid
|
|
205
|
+
* @param guid
|
|
206
|
+
* @param shopperGuid Unique identifier for an shopper.
|
|
207
|
+
* @param showId The ID of the show
|
|
206
208
|
* @returns VirtualStreamResponseDto Virtual stream details fetched successfully
|
|
207
209
|
* @throws ApiError
|
|
208
210
|
*/
|
|
209
|
-
static getShowVirtualStream(guid) {
|
|
211
|
+
static getShowVirtualStream(guid, shopperGuid, showId) {
|
|
210
212
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
211
213
|
method: 'GET',
|
|
212
|
-
url: '/shows/{
|
|
214
|
+
url: '/shows/{showId}/virtual-stream',
|
|
213
215
|
path: {
|
|
216
|
+
'showId': showId,
|
|
217
|
+
},
|
|
218
|
+
query: {
|
|
214
219
|
'guid': guid,
|
|
220
|
+
'shopperGuid': shopperGuid,
|
|
215
221
|
},
|
|
216
222
|
});
|
|
217
223
|
}
|
|
@@ -344,7 +350,7 @@ class ShowsService {
|
|
|
344
350
|
static createShow(xStudioId, requestBody) {
|
|
345
351
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
346
352
|
method: 'POST',
|
|
347
|
-
url: '/shows/
|
|
353
|
+
url: '/shows/new',
|
|
348
354
|
headers: {
|
|
349
355
|
'x-studio-id': xStudioId,
|
|
350
356
|
},
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.OpenAPI = void 0;
|
|
4
4
|
exports.OpenAPI = {
|
|
5
5
|
BASE: 'https://api.drttix.com/shopper',
|
|
6
|
-
VERSION: '
|
|
6
|
+
VERSION: '20260622.1',
|
|
7
7
|
WITH_CREDENTIALS: false,
|
|
8
8
|
CREDENTIALS: 'include',
|
|
9
9
|
TOKEN: undefined,
|
|
@@ -11,7 +11,11 @@ export type { BAHold } from './models/BAHold';
|
|
|
11
11
|
export type { BlockOfTickets } from './models/BlockOfTickets';
|
|
12
12
|
export type { Cart } from './models/Cart';
|
|
13
13
|
export type { CartCounts } from './models/CartCounts';
|
|
14
|
+
export type { CartHashResponse } from './models/CartHashResponse';
|
|
15
|
+
export type { CartItemCounts } from './models/CartItemCounts';
|
|
16
|
+
export type { CartSummary } from './models/CartSummary';
|
|
14
17
|
export type { CartWithTime } from './models/CartWithTime';
|
|
18
|
+
export type { CashPaymentDetail } from './models/CashPaymentDetail';
|
|
15
19
|
export type { Chart } from './models/Chart';
|
|
16
20
|
export type { CheckoutDonation } from './models/CheckoutDonation';
|
|
17
21
|
export type { CheckoutFailResponse } from './models/CheckoutFailResponse';
|
|
@@ -27,6 +31,7 @@ export type { CompleteBody } from './models/CompleteBody';
|
|
|
27
31
|
export type { CreateCustomerResponse } from './models/CreateCustomerResponse';
|
|
28
32
|
export type { CreateSessionDto } from './models/CreateSessionDto';
|
|
29
33
|
export type { DigitalAsset } from './models/DigitalAsset';
|
|
34
|
+
export type { DonateOrderRequest } from './models/DonateOrderRequest';
|
|
30
35
|
export type { DonationContribution } from './models/DonationContribution';
|
|
31
36
|
export type { DonationFund } from './models/DonationFund';
|
|
32
37
|
export type { DonationInCart } from './models/DonationInCart';
|
|
@@ -37,6 +42,7 @@ export type { EmailUpdate } from './models/EmailUpdate';
|
|
|
37
42
|
export type { EngineSeat } from './models/EngineSeat';
|
|
38
43
|
export type { EventDetails } from './models/EventDetails';
|
|
39
44
|
export type { EventGroup } from './models/EventGroup';
|
|
45
|
+
export type { ExchangeRequest } from './models/ExchangeRequest';
|
|
40
46
|
export type { ExistingRefundDetails } from './models/ExistingRefundDetails';
|
|
41
47
|
export type { FullEventDetails } from './models/FullEventDetails';
|
|
42
48
|
export type { GAHold } from './models/GAHold';
|
|
@@ -94,8 +100,10 @@ export type { SaveDetailsBody } from './models/SaveDetailsBody';
|
|
|
94
100
|
export type { SaveNonceBody } from './models/SaveNonceBody';
|
|
95
101
|
export type { SeatData } from './models/SeatData';
|
|
96
102
|
export type { SeatHoldReturn } from './models/SeatHoldReturn';
|
|
103
|
+
export type { SeatIdInput } from './models/SeatIdInput';
|
|
97
104
|
export type { SeatInCart } from './models/SeatInCart';
|
|
98
105
|
export type { SeatingTier } from './models/SeatingTier';
|
|
106
|
+
export type { SeatsByShow } from './models/SeatsByShow';
|
|
99
107
|
export type { Section } from './models/Section';
|
|
100
108
|
export type { SectionRule } from './models/SectionRule';
|
|
101
109
|
export type { SessionHeartbeatDto } from './models/SessionHeartbeatDto';
|
|
@@ -49,4 +49,14 @@ export type Account = {
|
|
|
49
49
|
csPhone: string;
|
|
50
50
|
numCouponAliases: number;
|
|
51
51
|
maxOrderSeats: number;
|
|
52
|
+
receiptFrom: string | null;
|
|
53
|
+
refundExchangePolicy: string | null;
|
|
54
|
+
eTickets: number;
|
|
55
|
+
canAssignTickets: number;
|
|
56
|
+
canEmailTickets: number;
|
|
57
|
+
enableOrderDonation: number;
|
|
58
|
+
obfuscateData: number;
|
|
59
|
+
paymentGatewayId: number | null;
|
|
60
|
+
enableAdjustmentPayment: number;
|
|
61
|
+
groupShows: number;
|
|
52
62
|
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { CartItemCounts } from './CartItemCounts';
|
|
2
|
+
import type { CheckoutDonation } from './CheckoutDonation';
|
|
3
|
+
import type { CheckoutProduct } from './CheckoutProduct';
|
|
4
|
+
import type { SeatsByShow } from './SeatsByShow';
|
|
5
|
+
export type CartSummary = {
|
|
6
|
+
/**
|
|
7
|
+
* Number of shows currently available to the shopper.
|
|
8
|
+
*/
|
|
9
|
+
availableShowCount: number;
|
|
10
|
+
/**
|
|
11
|
+
* Products currently in the session.
|
|
12
|
+
*/
|
|
13
|
+
products: Array<CheckoutProduct>;
|
|
14
|
+
/**
|
|
15
|
+
* Donations currently in the session.
|
|
16
|
+
*/
|
|
17
|
+
donations: Array<CheckoutDonation>;
|
|
18
|
+
/**
|
|
19
|
+
* Held seats grouped by show.
|
|
20
|
+
*/
|
|
21
|
+
seatsGroupedByShow: Array<SeatsByShow>;
|
|
22
|
+
/**
|
|
23
|
+
* Count of available products and donation funds.
|
|
24
|
+
*/
|
|
25
|
+
availableItemCounts: CartItemCounts;
|
|
26
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type CashPaymentDetail = {
|
|
2
|
+
/**
|
|
3
|
+
* The total amount of the order
|
|
4
|
+
*/
|
|
5
|
+
orderTotal: number;
|
|
6
|
+
/**
|
|
7
|
+
* The total amount paid via cash/adjustments
|
|
8
|
+
*/
|
|
9
|
+
paymentsTotal: number;
|
|
10
|
+
/**
|
|
11
|
+
* House card code for cash payment
|
|
12
|
+
*/
|
|
13
|
+
code: string;
|
|
14
|
+
/**
|
|
15
|
+
* House card PIN for cash payment
|
|
16
|
+
*/
|
|
17
|
+
pin: string;
|
|
18
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type SeatsByShow = {
|
|
2
|
+
/**
|
|
3
|
+
* Number of seats held for the show.
|
|
4
|
+
*/
|
|
5
|
+
numSeats: number;
|
|
6
|
+
/**
|
|
7
|
+
* Full name of the show.
|
|
8
|
+
*/
|
|
9
|
+
showName: string;
|
|
10
|
+
/**
|
|
11
|
+
* Short display name of the show.
|
|
12
|
+
*/
|
|
13
|
+
shortName: string;
|
|
14
|
+
/**
|
|
15
|
+
* Title of the show.
|
|
16
|
+
*/
|
|
17
|
+
showTitle: Record<string, any>;
|
|
18
|
+
};
|
|
@@ -14,4 +14,13 @@ export type SessionInfoDto = {
|
|
|
14
14
|
superuser: boolean;
|
|
15
15
|
expireOnUnlock: boolean;
|
|
16
16
|
tierReminderShown: boolean;
|
|
17
|
+
modifyingOrderId: number | null;
|
|
18
|
+
/**
|
|
19
|
+
* Resolved session/cart effective date (legacy cart_sessionDate). Use this for availability/priority checks instead of new Date().
|
|
20
|
+
*/
|
|
21
|
+
effectiveDate: string;
|
|
22
|
+
/**
|
|
23
|
+
* Whether an admin/preview date override is active.
|
|
24
|
+
*/
|
|
25
|
+
usingDateOverride: boolean;
|
|
17
26
|
};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import type { CartHashResponse } from '../models/CartHashResponse';
|
|
2
|
+
import type { CartSummary } from '../models/CartSummary';
|
|
1
3
|
import type { CartWithTime } from '../models/CartWithTime';
|
|
4
|
+
import type { CashPaymentDetail } from '../models/CashPaymentDetail';
|
|
2
5
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
3
6
|
export declare class CartService {
|
|
4
7
|
/**
|
|
@@ -15,4 +18,25 @@ export declare class CartService {
|
|
|
15
18
|
* @throws ApiError
|
|
16
19
|
*/
|
|
17
20
|
static deleteCart(): CancelablePromise<any>;
|
|
21
|
+
/**
|
|
22
|
+
* Get Cart Summary
|
|
23
|
+
* 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.
|
|
24
|
+
* @returns CartSummary Cart summary retrieved successfully.
|
|
25
|
+
* @throws ApiError
|
|
26
|
+
*/
|
|
27
|
+
static getCartSummary(): CancelablePromise<CartSummary>;
|
|
28
|
+
/**
|
|
29
|
+
* Get Cart Hash
|
|
30
|
+
* Returns the computed cart hash for the current shopper session.
|
|
31
|
+
* @returns CartHashResponse Cart hash retrieved successfully.
|
|
32
|
+
* @throws ApiError
|
|
33
|
+
*/
|
|
34
|
+
static getCartHash(): CancelablePromise<CartHashResponse>;
|
|
35
|
+
/**
|
|
36
|
+
* Get Cash Payment Detail
|
|
37
|
+
* Returns cash payment details for the current shopper session, including order total, payments total, and house card credentials.
|
|
38
|
+
* @returns CashPaymentDetail Cash payment detail retrieved successfully.
|
|
39
|
+
* @throws ApiError
|
|
40
|
+
*/
|
|
41
|
+
static getCashPaymentDetail(): CancelablePromise<CashPaymentDetail>;
|
|
18
42
|
}
|
|
@@ -38,5 +38,56 @@ class CartService {
|
|
|
38
38
|
},
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* Get Cart Summary
|
|
43
|
+
* 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.
|
|
44
|
+
* @returns CartSummary Cart summary retrieved successfully.
|
|
45
|
+
* @throws ApiError
|
|
46
|
+
*/
|
|
47
|
+
static getCartSummary() {
|
|
48
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
49
|
+
method: 'GET',
|
|
50
|
+
url: '/cart/summary',
|
|
51
|
+
errors: {
|
|
52
|
+
400: `Bad Request error with error details.`,
|
|
53
|
+
404: `Not found error with error details.`,
|
|
54
|
+
500: `Internal Server Error, please contact developers.`,
|
|
55
|
+
},
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Get Cart Hash
|
|
60
|
+
* Returns the computed cart hash for the current shopper session.
|
|
61
|
+
* @returns CartHashResponse Cart hash retrieved successfully.
|
|
62
|
+
* @throws ApiError
|
|
63
|
+
*/
|
|
64
|
+
static getCartHash() {
|
|
65
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
66
|
+
method: 'GET',
|
|
67
|
+
url: '/cart/hash',
|
|
68
|
+
errors: {
|
|
69
|
+
400: `Bad Request error with error details.`,
|
|
70
|
+
404: `Not found error with error details.`,
|
|
71
|
+
500: `Internal Server Error, please contact developers.`,
|
|
72
|
+
},
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Get Cash Payment Detail
|
|
77
|
+
* Returns cash payment details for the current shopper session, including order total, payments total, and house card credentials.
|
|
78
|
+
* @returns CashPaymentDetail Cash payment detail retrieved successfully.
|
|
79
|
+
* @throws ApiError
|
|
80
|
+
*/
|
|
81
|
+
static getCashPaymentDetail() {
|
|
82
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
83
|
+
method: 'GET',
|
|
84
|
+
url: '/cart/cash-payment-detail',
|
|
85
|
+
errors: {
|
|
86
|
+
400: `Bad Request error with error details.`,
|
|
87
|
+
404: `Not found error with error details.`,
|
|
88
|
+
500: `Internal Server Error, please contact developers.`,
|
|
89
|
+
},
|
|
90
|
+
});
|
|
91
|
+
}
|
|
41
92
|
}
|
|
42
93
|
exports.CartService = CartService;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { AssignNamesReturn } from '../models/AssignNamesReturn';
|
|
2
|
+
import type { DonateOrderRequest } from '../models/DonateOrderRequest';
|
|
2
3
|
import type { EmailUpdate } from '../models/EmailUpdate';
|
|
4
|
+
import type { ExchangeRequest } from '../models/ExchangeRequest';
|
|
3
5
|
import type { GuidReturn } from '../models/GuidReturn';
|
|
4
6
|
import type { LinkWithSuccess } from '../models/LinkWithSuccess';
|
|
5
7
|
import type { NameUpdate } from '../models/NameUpdate';
|
|
@@ -114,6 +116,14 @@ export declare class OrderService {
|
|
|
114
116
|
* @throws ApiError
|
|
115
117
|
*/
|
|
116
118
|
static postRecalcOrder(guid: string, requestBody: OrderRecalc): CancelablePromise<RecalcResponse>;
|
|
119
|
+
/**
|
|
120
|
+
* Donate order in lieu of refund
|
|
121
|
+
* Marks an order as donated in lieu of refund using the provided order guid and donated IP address.
|
|
122
|
+
* @param requestBody Donate order payload containing guid and donatedIpAddress.
|
|
123
|
+
* @returns SuccessResponse Returns success status after donating the order.
|
|
124
|
+
* @throws ApiError
|
|
125
|
+
*/
|
|
126
|
+
static postDonateOrder(requestBody: DonateOrderRequest): CancelablePromise<SuccessResponse>;
|
|
117
127
|
/**
|
|
118
128
|
* Register a stream for a shopper
|
|
119
129
|
* Registers a stream for the specified shopper and account using the provided stream registration details.
|
|
@@ -130,4 +140,12 @@ export declare class OrderService {
|
|
|
130
140
|
* @throws ApiError
|
|
131
141
|
*/
|
|
132
142
|
static deleteRegisteredStream(requestBody: RegisterStreamRequest): CancelablePromise<SuccessResponse>;
|
|
143
|
+
/**
|
|
144
|
+
* Execute a seat exchange for an order
|
|
145
|
+
* Swaps seats held in the cart for the seats specified in seatIds on an existing order.
|
|
146
|
+
* @param requestBody Exchange request containing the order GUID and seat IDs to exchange out.
|
|
147
|
+
* @returns SuccessResponse Returns success after completing the exchange.
|
|
148
|
+
* @throws ApiError
|
|
149
|
+
*/
|
|
150
|
+
static postExchange(requestBody: ExchangeRequest): CancelablePromise<SuccessResponse>;
|
|
133
151
|
}
|
|
@@ -268,6 +268,26 @@ class OrderService {
|
|
|
268
268
|
},
|
|
269
269
|
});
|
|
270
270
|
}
|
|
271
|
+
/**
|
|
272
|
+
* Donate order in lieu of refund
|
|
273
|
+
* Marks an order as donated in lieu of refund using the provided order guid and donated IP address.
|
|
274
|
+
* @param requestBody Donate order payload containing guid and donatedIpAddress.
|
|
275
|
+
* @returns SuccessResponse Returns success status after donating the order.
|
|
276
|
+
* @throws ApiError
|
|
277
|
+
*/
|
|
278
|
+
static postDonateOrder(requestBody) {
|
|
279
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
280
|
+
method: 'POST',
|
|
281
|
+
url: '/order/donate-order',
|
|
282
|
+
body: requestBody,
|
|
283
|
+
mediaType: 'application/json',
|
|
284
|
+
errors: {
|
|
285
|
+
400: `Bad Request error with error details.`,
|
|
286
|
+
404: `Not found error with error details.`,
|
|
287
|
+
500: `Internal Server Error, please contact developers.`,
|
|
288
|
+
},
|
|
289
|
+
});
|
|
290
|
+
}
|
|
271
291
|
/**
|
|
272
292
|
* Register a stream for a shopper
|
|
273
293
|
* Registers a stream for the specified shopper and account using the provided stream registration details.
|
|
@@ -308,5 +328,25 @@ class OrderService {
|
|
|
308
328
|
},
|
|
309
329
|
});
|
|
310
330
|
}
|
|
331
|
+
/**
|
|
332
|
+
* Execute a seat exchange for an order
|
|
333
|
+
* Swaps seats held in the cart for the seats specified in seatIds on an existing order.
|
|
334
|
+
* @param requestBody Exchange request containing the order GUID and seat IDs to exchange out.
|
|
335
|
+
* @returns SuccessResponse Returns success after completing the exchange.
|
|
336
|
+
* @throws ApiError
|
|
337
|
+
*/
|
|
338
|
+
static postExchange(requestBody) {
|
|
339
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
340
|
+
method: 'POST',
|
|
341
|
+
url: '/order/exchange',
|
|
342
|
+
body: requestBody,
|
|
343
|
+
mediaType: 'application/json',
|
|
344
|
+
errors: {
|
|
345
|
+
400: `Bad Request error with error details.`,
|
|
346
|
+
404: `Not found error with error details.`,
|
|
347
|
+
500: `Internal Server Error, please contact developers.`,
|
|
348
|
+
},
|
|
349
|
+
});
|
|
350
|
+
}
|
|
311
351
|
}
|
|
312
352
|
exports.OrderService = OrderService;
|
|
@@ -7,7 +7,11 @@ export type { BAHold } from './models/BAHold';
|
|
|
7
7
|
export type { BlockOfTickets } from './models/BlockOfTickets';
|
|
8
8
|
export type { Cart } from './models/Cart';
|
|
9
9
|
export type { CartCounts } from './models/CartCounts';
|
|
10
|
+
export type { CartHashResponse } from './models/CartHashResponse';
|
|
11
|
+
export type { CartItemCounts } from './models/CartItemCounts';
|
|
12
|
+
export type { CartSummary } from './models/CartSummary';
|
|
10
13
|
export type { CartWithTime } from './models/CartWithTime';
|
|
14
|
+
export type { CashPaymentDetail } from './models/CashPaymentDetail';
|
|
11
15
|
export type { Chart } from './models/Chart';
|
|
12
16
|
export type { CheckoutDonation } from './models/CheckoutDonation';
|
|
13
17
|
export type { CheckoutFailResponse } from './models/CheckoutFailResponse';
|
|
@@ -23,6 +27,7 @@ export type { CompleteBody } from './models/CompleteBody';
|
|
|
23
27
|
export type { CreateCustomerResponse } from './models/CreateCustomerResponse';
|
|
24
28
|
export type { CreateSessionDto } from './models/CreateSessionDto';
|
|
25
29
|
export type { DigitalAsset } from './models/DigitalAsset';
|
|
30
|
+
export type { DonateOrderRequest } from './models/DonateOrderRequest';
|
|
26
31
|
export type { DonationContribution } from './models/DonationContribution';
|
|
27
32
|
export type { DonationFund } from './models/DonationFund';
|
|
28
33
|
export type { DonationInCart } from './models/DonationInCart';
|
|
@@ -33,6 +38,7 @@ export type { EmailUpdate } from './models/EmailUpdate';
|
|
|
33
38
|
export type { EngineSeat } from './models/EngineSeat';
|
|
34
39
|
export type { EventDetails } from './models/EventDetails';
|
|
35
40
|
export type { EventGroup } from './models/EventGroup';
|
|
41
|
+
export type { ExchangeRequest } from './models/ExchangeRequest';
|
|
36
42
|
export type { ExistingRefundDetails } from './models/ExistingRefundDetails';
|
|
37
43
|
export type { FullEventDetails } from './models/FullEventDetails';
|
|
38
44
|
export type { GAHold } from './models/GAHold';
|
|
@@ -90,8 +96,10 @@ export type { SaveDetailsBody } from './models/SaveDetailsBody';
|
|
|
90
96
|
export type { SaveNonceBody } from './models/SaveNonceBody';
|
|
91
97
|
export type { SeatData } from './models/SeatData';
|
|
92
98
|
export type { SeatHoldReturn } from './models/SeatHoldReturn';
|
|
99
|
+
export type { SeatIdInput } from './models/SeatIdInput';
|
|
93
100
|
export type { SeatInCart } from './models/SeatInCart';
|
|
94
101
|
export type { SeatingTier } from './models/SeatingTier';
|
|
102
|
+
export type { SeatsByShow } from './models/SeatsByShow';
|
|
95
103
|
export type { Section } from './models/Section';
|
|
96
104
|
export type { SectionRule } from './models/SectionRule';
|
|
97
105
|
export type { SessionHeartbeatDto } from './models/SessionHeartbeatDto';
|
|
@@ -121,11 +121,13 @@ export declare class ShowsService {
|
|
|
121
121
|
/**
|
|
122
122
|
* Fetch the show virtual stream details
|
|
123
123
|
* To fetch the virtual stream details of the show
|
|
124
|
-
* @param guid
|
|
124
|
+
* @param guid
|
|
125
|
+
* @param shopperGuid Unique identifier for an shopper.
|
|
126
|
+
* @param showId The ID of the show
|
|
125
127
|
* @returns VirtualStreamResponseDto Virtual stream details fetched successfully
|
|
126
128
|
* @throws ApiError
|
|
127
129
|
*/
|
|
128
|
-
static getShowVirtualStream(guid: string): CancelablePromise<VirtualStreamResponseDto>;
|
|
130
|
+
static getShowVirtualStream(guid: string, shopperGuid: any, showId: string): CancelablePromise<VirtualStreamResponseDto>;
|
|
129
131
|
/**
|
|
130
132
|
* Fetch the migrate ticket details
|
|
131
133
|
* To fetch the migrate ticket details of the show
|
|
@@ -199,16 +199,22 @@ export class ShowsService {
|
|
|
199
199
|
/**
|
|
200
200
|
* Fetch the show virtual stream details
|
|
201
201
|
* To fetch the virtual stream details of the show
|
|
202
|
-
* @param guid
|
|
202
|
+
* @param guid
|
|
203
|
+
* @param shopperGuid Unique identifier for an shopper.
|
|
204
|
+
* @param showId The ID of the show
|
|
203
205
|
* @returns VirtualStreamResponseDto Virtual stream details fetched successfully
|
|
204
206
|
* @throws ApiError
|
|
205
207
|
*/
|
|
206
|
-
static getShowVirtualStream(guid) {
|
|
208
|
+
static getShowVirtualStream(guid, shopperGuid, showId) {
|
|
207
209
|
return __request(OpenAPI, {
|
|
208
210
|
method: 'GET',
|
|
209
|
-
url: '/shows/{
|
|
211
|
+
url: '/shows/{showId}/virtual-stream',
|
|
210
212
|
path: {
|
|
213
|
+
'showId': showId,
|
|
214
|
+
},
|
|
215
|
+
query: {
|
|
211
216
|
'guid': guid,
|
|
217
|
+
'shopperGuid': shopperGuid,
|
|
212
218
|
},
|
|
213
219
|
});
|
|
214
220
|
}
|
|
@@ -341,7 +347,7 @@ export class ShowsService {
|
|
|
341
347
|
static createShow(xStudioId, requestBody) {
|
|
342
348
|
return __request(OpenAPI, {
|
|
343
349
|
method: 'POST',
|
|
344
|
-
url: '/shows/
|
|
350
|
+
url: '/shows/new',
|
|
345
351
|
headers: {
|
|
346
352
|
'x-studio-id': xStudioId,
|
|
347
353
|
},
|
|
@@ -11,7 +11,11 @@ export type { BAHold } from './models/BAHold';
|
|
|
11
11
|
export type { BlockOfTickets } from './models/BlockOfTickets';
|
|
12
12
|
export type { Cart } from './models/Cart';
|
|
13
13
|
export type { CartCounts } from './models/CartCounts';
|
|
14
|
+
export type { CartHashResponse } from './models/CartHashResponse';
|
|
15
|
+
export type { CartItemCounts } from './models/CartItemCounts';
|
|
16
|
+
export type { CartSummary } from './models/CartSummary';
|
|
14
17
|
export type { CartWithTime } from './models/CartWithTime';
|
|
18
|
+
export type { CashPaymentDetail } from './models/CashPaymentDetail';
|
|
15
19
|
export type { Chart } from './models/Chart';
|
|
16
20
|
export type { CheckoutDonation } from './models/CheckoutDonation';
|
|
17
21
|
export type { CheckoutFailResponse } from './models/CheckoutFailResponse';
|
|
@@ -27,6 +31,7 @@ export type { CompleteBody } from './models/CompleteBody';
|
|
|
27
31
|
export type { CreateCustomerResponse } from './models/CreateCustomerResponse';
|
|
28
32
|
export type { CreateSessionDto } from './models/CreateSessionDto';
|
|
29
33
|
export type { DigitalAsset } from './models/DigitalAsset';
|
|
34
|
+
export type { DonateOrderRequest } from './models/DonateOrderRequest';
|
|
30
35
|
export type { DonationContribution } from './models/DonationContribution';
|
|
31
36
|
export type { DonationFund } from './models/DonationFund';
|
|
32
37
|
export type { DonationInCart } from './models/DonationInCart';
|
|
@@ -37,6 +42,7 @@ export type { EmailUpdate } from './models/EmailUpdate';
|
|
|
37
42
|
export type { EngineSeat } from './models/EngineSeat';
|
|
38
43
|
export type { EventDetails } from './models/EventDetails';
|
|
39
44
|
export type { EventGroup } from './models/EventGroup';
|
|
45
|
+
export type { ExchangeRequest } from './models/ExchangeRequest';
|
|
40
46
|
export type { ExistingRefundDetails } from './models/ExistingRefundDetails';
|
|
41
47
|
export type { FullEventDetails } from './models/FullEventDetails';
|
|
42
48
|
export type { GAHold } from './models/GAHold';
|
|
@@ -94,8 +100,10 @@ export type { SaveDetailsBody } from './models/SaveDetailsBody';
|
|
|
94
100
|
export type { SaveNonceBody } from './models/SaveNonceBody';
|
|
95
101
|
export type { SeatData } from './models/SeatData';
|
|
96
102
|
export type { SeatHoldReturn } from './models/SeatHoldReturn';
|
|
103
|
+
export type { SeatIdInput } from './models/SeatIdInput';
|
|
97
104
|
export type { SeatInCart } from './models/SeatInCart';
|
|
98
105
|
export type { SeatingTier } from './models/SeatingTier';
|
|
106
|
+
export type { SeatsByShow } from './models/SeatsByShow';
|
|
99
107
|
export type { Section } from './models/Section';
|
|
100
108
|
export type { SectionRule } from './models/SectionRule';
|
|
101
109
|
export type { SessionHeartbeatDto } from './models/SessionHeartbeatDto';
|
|
@@ -49,4 +49,14 @@ export type Account = {
|
|
|
49
49
|
csPhone: string;
|
|
50
50
|
numCouponAliases: number;
|
|
51
51
|
maxOrderSeats: number;
|
|
52
|
+
receiptFrom: string | null;
|
|
53
|
+
refundExchangePolicy: string | null;
|
|
54
|
+
eTickets: number;
|
|
55
|
+
canAssignTickets: number;
|
|
56
|
+
canEmailTickets: number;
|
|
57
|
+
enableOrderDonation: number;
|
|
58
|
+
obfuscateData: number;
|
|
59
|
+
paymentGatewayId: number | null;
|
|
60
|
+
enableAdjustmentPayment: number;
|
|
61
|
+
groupShows: number;
|
|
52
62
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|