@drttix/drt-sdk 0.2.8 → 0.2.91
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/index.d.ts +1 -0
- package/dist/cjs/src/generated/portal/models/BulkCreateGiftCardRequestDto.d.ts +2 -2
- package/dist/cjs/src/generated/portal/models/GiftCardResponseDto.d.ts +2 -0
- package/dist/cjs/src/generated/portal/models/OrderEmailBuyersRequestDto.d.ts +2 -0
- package/dist/cjs/src/generated/portal/models/RefundDetailResponseDto.d.ts +3 -0
- package/dist/cjs/src/generated/portal/models/RefundResponseDto.d.ts +2 -0
- package/dist/cjs/src/generated/portal/models/ShowDetailDto.d.ts +2 -0
- package/dist/cjs/src/generated/portal/models/StopShowRequestDto.d.ts +5 -0
- package/dist/cjs/src/generated/portal/models/StopShowRequestDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/TicketResponseDto.d.ts +9 -5
- package/dist/cjs/src/generated/portal/models/UpdateBankingRequestDto.d.ts +5 -5
- package/dist/cjs/src/generated/portal/services/FeaturesGiftCardsService.d.ts +14 -5
- package/dist/cjs/src/generated/portal/services/FeaturesGiftCardsService.js +29 -9
- package/dist/cjs/src/generated/portal/services/ShowsService.d.ts +11 -0
- package/dist/cjs/src/generated/portal/services/ShowsService.js +23 -0
- package/dist/cjs/src/generated/portal/types.d.ts +1 -0
- package/dist/esm/src/generated/portal/core/OpenAPI.js +1 -1
- package/dist/esm/src/generated/portal/index.d.ts +1 -0
- package/dist/esm/src/generated/portal/models/BulkCreateGiftCardRequestDto.d.ts +2 -2
- package/dist/esm/src/generated/portal/models/GiftCardResponseDto.d.ts +2 -0
- package/dist/esm/src/generated/portal/models/OrderEmailBuyersRequestDto.d.ts +2 -0
- package/dist/esm/src/generated/portal/models/RefundDetailResponseDto.d.ts +3 -0
- package/dist/esm/src/generated/portal/models/RefundResponseDto.d.ts +2 -0
- package/dist/esm/src/generated/portal/models/ShowDetailDto.d.ts +2 -0
- package/dist/esm/src/generated/portal/models/StopShowRequestDto.d.ts +5 -0
- package/dist/esm/src/generated/portal/models/StopShowRequestDto.js +1 -0
- package/dist/esm/src/generated/portal/models/TicketResponseDto.d.ts +9 -5
- package/dist/esm/src/generated/portal/models/UpdateBankingRequestDto.d.ts +5 -5
- package/dist/esm/src/generated/portal/services/FeaturesGiftCardsService.d.ts +14 -5
- package/dist/esm/src/generated/portal/services/FeaturesGiftCardsService.js +29 -9
- package/dist/esm/src/generated/portal/services/ShowsService.d.ts +11 -0
- package/dist/esm/src/generated/portal/services/ShowsService.js +23 -0
- package/dist/esm/src/generated/portal/types.d.ts +1 -0
- package/package.json +4 -1
- package/src/generated/portal/core/OpenAPI.ts +1 -1
- package/src/generated/portal/index.ts +1 -0
- package/src/generated/portal/models/BulkCreateGiftCardRequestDto.ts +2 -2
- package/src/generated/portal/models/GiftCardResponseDto.ts +2 -0
- package/src/generated/portal/models/OrderEmailBuyersRequestDto.ts +2 -0
- package/src/generated/portal/models/RefundDetailResponseDto.ts +3 -0
- package/src/generated/portal/models/RefundResponseDto.ts +2 -0
- package/src/generated/portal/models/ShowDetailDto.ts +2 -0
- package/src/generated/portal/models/StopShowRequestDto.ts +10 -0
- package/src/generated/portal/models/TicketResponseDto.ts +9 -5
- package/src/generated/portal/models/UpdateBankingRequestDto.ts +5 -5
- package/src/generated/portal/services/FeaturesGiftCardsService.ts +34 -11
- package/src/generated/portal/services/ShowsService.ts +28 -0
- package/src/generated/portal/types.ts +1 -0
|
@@ -244,6 +244,7 @@ export type { SinglePerformerRequestDto } from './models/SinglePerformerRequestD
|
|
|
244
244
|
export type { SoldTicketsResponseDto } from './models/SoldTicketsResponseDto';
|
|
245
245
|
export type { StartImageUploadRequestDto } from './models/StartImageUploadRequestDto';
|
|
246
246
|
export type { StartImageUploadResponseDto } from './models/StartImageUploadResponseDto';
|
|
247
|
+
export type { StopShowRequestDto } from './models/StopShowRequestDto';
|
|
247
248
|
export type { StringValidation } from './models/StringValidation';
|
|
248
249
|
export type { StripeResponseDto } from './models/StripeResponseDto';
|
|
249
250
|
export type { StripeSettingsResponseDto } from './models/StripeSettingsResponseDto';
|
|
@@ -2,10 +2,10 @@ export type BulkCreateGiftCardRequestDto = {
|
|
|
2
2
|
balance: string;
|
|
3
3
|
numCodes: number;
|
|
4
4
|
emailName: string;
|
|
5
|
-
emails: Array<
|
|
5
|
+
emails: Array<string>;
|
|
6
6
|
errorOnCollisionEmail: number;
|
|
7
7
|
errorOnCollisionName: number;
|
|
8
|
-
names: Array<
|
|
8
|
+
names: Array<string>;
|
|
9
9
|
message: string;
|
|
10
10
|
sendWhen: string;
|
|
11
11
|
dateSend: string;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { OrderDetails } from './OrderDetails';
|
|
2
2
|
export type RefundResponseDto = {
|
|
3
3
|
orderId: number;
|
|
4
|
+
id: number;
|
|
4
5
|
amountReqested?: number;
|
|
5
6
|
amountApproved?: number;
|
|
7
|
+
amountRefunded: number;
|
|
6
8
|
dateCreated: string;
|
|
7
9
|
dateApprovedClient?: string;
|
|
8
10
|
dateApprovedInternal?: string;
|
|
@@ -54,6 +54,8 @@ export type ShowDetailDto = {
|
|
|
54
54
|
numResSections: number;
|
|
55
55
|
chargebackProtectionEnabled: number;
|
|
56
56
|
receiptMessage: string;
|
|
57
|
+
repName: string;
|
|
58
|
+
repEmail: string;
|
|
57
59
|
dateMaxOrderSeatsEnd: string;
|
|
58
60
|
autoDiscounts: Array<AutoDiscounts>;
|
|
59
61
|
refundSetting: Array<RefundSetting>;
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
export type TicketResponseDto = {
|
|
2
2
|
year: string;
|
|
3
3
|
date: string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
value_orders: number;
|
|
5
|
+
num_orders: number;
|
|
6
|
+
num_seats: number;
|
|
7
|
+
value_seats: number;
|
|
8
|
+
value_tax: number;
|
|
9
|
+
total_service_charge: number;
|
|
10
|
+
net_amount: number;
|
|
11
|
+
includes_sales_tax: number;
|
|
12
|
+
product_tax: number;
|
|
9
13
|
distro: number;
|
|
10
14
|
};
|
|
@@ -6,10 +6,10 @@ export type UpdateBankingRequestDto = {
|
|
|
6
6
|
account: string;
|
|
7
7
|
accountNumber: string;
|
|
8
8
|
routingNumber: string;
|
|
9
|
-
checkName:
|
|
10
|
-
echeckEmail:
|
|
11
|
-
checkAddress:
|
|
12
|
-
checkCity:
|
|
13
|
-
checkState:
|
|
9
|
+
checkName: string;
|
|
10
|
+
echeckEmail: string;
|
|
11
|
+
checkAddress: string;
|
|
12
|
+
checkCity: string;
|
|
13
|
+
checkState: string;
|
|
14
14
|
checkPostal: number;
|
|
15
15
|
};
|
|
@@ -33,14 +33,14 @@ export declare class FeaturesGiftCardsService {
|
|
|
33
33
|
*/
|
|
34
34
|
static getTransactions(xStudioId: string, giftCardId: string): CancelablePromise<GiftCardTransactionsResponseDto>;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
37
|
-
*
|
|
36
|
+
* Fetch the gift card
|
|
37
|
+
* Fetch the gift card for the given studio ID
|
|
38
38
|
* @param xStudioId The ID of the studio
|
|
39
|
-
* @param
|
|
40
|
-
* @returns
|
|
39
|
+
* @param giftCardId The ID of the gift card
|
|
40
|
+
* @returns GiftCardResponseDto Gift card fetched successfully
|
|
41
41
|
* @throws ApiError
|
|
42
42
|
*/
|
|
43
|
-
static
|
|
43
|
+
static getGiftCard(xStudioId: string, giftCardId: string): CancelablePromise<GiftCardResponseDto>;
|
|
44
44
|
/**
|
|
45
45
|
* Update a gift card
|
|
46
46
|
* Update a gift card for the given studio ID
|
|
@@ -60,4 +60,13 @@ export declare class FeaturesGiftCardsService {
|
|
|
60
60
|
* @throws ApiError
|
|
61
61
|
*/
|
|
62
62
|
static deleteGiftCard(xStudioId: string, giftCardId: string): CancelablePromise<SuccessResponse>;
|
|
63
|
+
/**
|
|
64
|
+
* Create new gift cards
|
|
65
|
+
* Create new gift cards for the given studio ID
|
|
66
|
+
* @param xStudioId The ID of the studio
|
|
67
|
+
* @param requestBody Create bulk gift cards payload
|
|
68
|
+
* @returns SuccessResponse Gift cards created successfully
|
|
69
|
+
* @throws ApiError
|
|
70
|
+
*/
|
|
71
|
+
static createGiftCardsBulk(xStudioId: string, requestBody: BulkCreateGiftCardRequestDto): CancelablePromise<SuccessResponse>;
|
|
63
72
|
}
|
|
@@ -64,22 +64,23 @@ class FeaturesGiftCardsService {
|
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
68
|
-
*
|
|
67
|
+
* Fetch the gift card
|
|
68
|
+
* Fetch the gift card for the given studio ID
|
|
69
69
|
* @param xStudioId The ID of the studio
|
|
70
|
-
* @param
|
|
71
|
-
* @returns
|
|
70
|
+
* @param giftCardId The ID of the gift card
|
|
71
|
+
* @returns GiftCardResponseDto Gift card fetched successfully
|
|
72
72
|
* @throws ApiError
|
|
73
73
|
*/
|
|
74
|
-
static
|
|
74
|
+
static getGiftCard(xStudioId, giftCardId) {
|
|
75
75
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
76
|
-
method: '
|
|
77
|
-
url: '/features/gift-cards/
|
|
76
|
+
method: 'GET',
|
|
77
|
+
url: '/features/gift-cards/{giftCardId}',
|
|
78
|
+
path: {
|
|
79
|
+
'giftCardId': giftCardId,
|
|
80
|
+
},
|
|
78
81
|
headers: {
|
|
79
82
|
'x-studio-id': xStudioId,
|
|
80
83
|
},
|
|
81
|
-
body: requestBody,
|
|
82
|
-
mediaType: 'application/json',
|
|
83
84
|
});
|
|
84
85
|
}
|
|
85
86
|
/**
|
|
@@ -125,5 +126,24 @@ class FeaturesGiftCardsService {
|
|
|
125
126
|
},
|
|
126
127
|
});
|
|
127
128
|
}
|
|
129
|
+
/**
|
|
130
|
+
* Create new gift cards
|
|
131
|
+
* Create new gift cards for the given studio ID
|
|
132
|
+
* @param xStudioId The ID of the studio
|
|
133
|
+
* @param requestBody Create bulk gift cards payload
|
|
134
|
+
* @returns SuccessResponse Gift cards created successfully
|
|
135
|
+
* @throws ApiError
|
|
136
|
+
*/
|
|
137
|
+
static createGiftCardsBulk(xStudioId, requestBody) {
|
|
138
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
139
|
+
method: 'POST',
|
|
140
|
+
url: '/features/gift-cards/bulk-create',
|
|
141
|
+
headers: {
|
|
142
|
+
'x-studio-id': xStudioId,
|
|
143
|
+
},
|
|
144
|
+
body: requestBody,
|
|
145
|
+
mediaType: 'application/json',
|
|
146
|
+
});
|
|
147
|
+
}
|
|
128
148
|
}
|
|
129
149
|
exports.FeaturesGiftCardsService = FeaturesGiftCardsService;
|
|
@@ -22,6 +22,7 @@ import type { ShowSectionDetail } from '../models/ShowSectionDetail';
|
|
|
22
22
|
import type { ShowStatDetail } from '../models/ShowStatDetail';
|
|
23
23
|
import type { ShowTicketSectionListResponseDto } from '../models/ShowTicketSectionListResponseDto';
|
|
24
24
|
import type { SinglePerformerRequestDto } from '../models/SinglePerformerRequestDto';
|
|
25
|
+
import type { StopShowRequestDto } from '../models/StopShowRequestDto';
|
|
25
26
|
import type { SuccessResponse } from '../models/SuccessResponse';
|
|
26
27
|
import type { VideoStreamResponseDto } from '../models/VideoStreamResponseDto';
|
|
27
28
|
import type { VirtualStreamResponseDto } from '../models/VirtualStreamResponseDto';
|
|
@@ -251,6 +252,16 @@ export declare class ShowsService {
|
|
|
251
252
|
* @throws ApiError
|
|
252
253
|
*/
|
|
253
254
|
static updatePerformers(xStudioId: string, requestBody: SinglePerformerRequestDto): CancelablePromise<SuccessResponse>;
|
|
255
|
+
/**
|
|
256
|
+
* Stop sale for a show
|
|
257
|
+
* To stop the sale of tickets for a specific show
|
|
258
|
+
* @param xStudioId The ID of the studio
|
|
259
|
+
* @param showId The ID of the show
|
|
260
|
+
* @param requestBody Stop sale for a show
|
|
261
|
+
* @returns SuccessResponse Show sale stopped successfully
|
|
262
|
+
* @throws ApiError
|
|
263
|
+
*/
|
|
264
|
+
static stopSale(xStudioId: string, showId: string, requestBody: StopShowRequestDto): CancelablePromise<SuccessResponse>;
|
|
254
265
|
/**
|
|
255
266
|
* Remove show performer
|
|
256
267
|
* To remove the performer of the show
|
|
@@ -489,6 +489,29 @@ class ShowsService {
|
|
|
489
489
|
mediaType: 'application/json',
|
|
490
490
|
});
|
|
491
491
|
}
|
|
492
|
+
/**
|
|
493
|
+
* Stop sale for a show
|
|
494
|
+
* To stop the sale of tickets for a specific show
|
|
495
|
+
* @param xStudioId The ID of the studio
|
|
496
|
+
* @param showId The ID of the show
|
|
497
|
+
* @param requestBody Stop sale for a show
|
|
498
|
+
* @returns SuccessResponse Show sale stopped successfully
|
|
499
|
+
* @throws ApiError
|
|
500
|
+
*/
|
|
501
|
+
static stopSale(xStudioId, showId, requestBody) {
|
|
502
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
503
|
+
method: 'PUT',
|
|
504
|
+
url: '/shows/{showId}/stop-sale',
|
|
505
|
+
path: {
|
|
506
|
+
'showId': showId,
|
|
507
|
+
},
|
|
508
|
+
headers: {
|
|
509
|
+
'x-studio-id': xStudioId,
|
|
510
|
+
},
|
|
511
|
+
body: requestBody,
|
|
512
|
+
mediaType: 'application/json',
|
|
513
|
+
});
|
|
514
|
+
}
|
|
492
515
|
/**
|
|
493
516
|
* Remove show performer
|
|
494
517
|
* To remove the performer of the show
|
|
@@ -240,6 +240,7 @@ export type { SinglePerformerRequestDto } from './models/SinglePerformerRequestD
|
|
|
240
240
|
export type { SoldTicketsResponseDto } from './models/SoldTicketsResponseDto';
|
|
241
241
|
export type { StartImageUploadRequestDto } from './models/StartImageUploadRequestDto';
|
|
242
242
|
export type { StartImageUploadResponseDto } from './models/StartImageUploadResponseDto';
|
|
243
|
+
export type { StopShowRequestDto } from './models/StopShowRequestDto';
|
|
243
244
|
export type { StringValidation } from './models/StringValidation';
|
|
244
245
|
export type { StripeResponseDto } from './models/StripeResponseDto';
|
|
245
246
|
export type { StripeSettingsResponseDto } from './models/StripeSettingsResponseDto';
|
|
@@ -244,6 +244,7 @@ export type { SinglePerformerRequestDto } from './models/SinglePerformerRequestD
|
|
|
244
244
|
export type { SoldTicketsResponseDto } from './models/SoldTicketsResponseDto';
|
|
245
245
|
export type { StartImageUploadRequestDto } from './models/StartImageUploadRequestDto';
|
|
246
246
|
export type { StartImageUploadResponseDto } from './models/StartImageUploadResponseDto';
|
|
247
|
+
export type { StopShowRequestDto } from './models/StopShowRequestDto';
|
|
247
248
|
export type { StringValidation } from './models/StringValidation';
|
|
248
249
|
export type { StripeResponseDto } from './models/StripeResponseDto';
|
|
249
250
|
export type { StripeSettingsResponseDto } from './models/StripeSettingsResponseDto';
|
|
@@ -2,10 +2,10 @@ export type BulkCreateGiftCardRequestDto = {
|
|
|
2
2
|
balance: string;
|
|
3
3
|
numCodes: number;
|
|
4
4
|
emailName: string;
|
|
5
|
-
emails: Array<
|
|
5
|
+
emails: Array<string>;
|
|
6
6
|
errorOnCollisionEmail: number;
|
|
7
7
|
errorOnCollisionName: number;
|
|
8
|
-
names: Array<
|
|
8
|
+
names: Array<string>;
|
|
9
9
|
message: string;
|
|
10
10
|
sendWhen: string;
|
|
11
11
|
dateSend: string;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { OrderDetails } from './OrderDetails';
|
|
2
2
|
export type RefundResponseDto = {
|
|
3
3
|
orderId: number;
|
|
4
|
+
id: number;
|
|
4
5
|
amountReqested?: number;
|
|
5
6
|
amountApproved?: number;
|
|
7
|
+
amountRefunded: number;
|
|
6
8
|
dateCreated: string;
|
|
7
9
|
dateApprovedClient?: string;
|
|
8
10
|
dateApprovedInternal?: string;
|
|
@@ -54,6 +54,8 @@ export type ShowDetailDto = {
|
|
|
54
54
|
numResSections: number;
|
|
55
55
|
chargebackProtectionEnabled: number;
|
|
56
56
|
receiptMessage: string;
|
|
57
|
+
repName: string;
|
|
58
|
+
repEmail: string;
|
|
57
59
|
dateMaxOrderSeatsEnd: string;
|
|
58
60
|
autoDiscounts: Array<AutoDiscounts>;
|
|
59
61
|
refundSetting: Array<RefundSetting>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
export type TicketResponseDto = {
|
|
2
2
|
year: string;
|
|
3
3
|
date: string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
value_orders: number;
|
|
5
|
+
num_orders: number;
|
|
6
|
+
num_seats: number;
|
|
7
|
+
value_seats: number;
|
|
8
|
+
value_tax: number;
|
|
9
|
+
total_service_charge: number;
|
|
10
|
+
net_amount: number;
|
|
11
|
+
includes_sales_tax: number;
|
|
12
|
+
product_tax: number;
|
|
9
13
|
distro: number;
|
|
10
14
|
};
|
|
@@ -6,10 +6,10 @@ export type UpdateBankingRequestDto = {
|
|
|
6
6
|
account: string;
|
|
7
7
|
accountNumber: string;
|
|
8
8
|
routingNumber: string;
|
|
9
|
-
checkName:
|
|
10
|
-
echeckEmail:
|
|
11
|
-
checkAddress:
|
|
12
|
-
checkCity:
|
|
13
|
-
checkState:
|
|
9
|
+
checkName: string;
|
|
10
|
+
echeckEmail: string;
|
|
11
|
+
checkAddress: string;
|
|
12
|
+
checkCity: string;
|
|
13
|
+
checkState: string;
|
|
14
14
|
checkPostal: number;
|
|
15
15
|
};
|
|
@@ -33,14 +33,14 @@ export declare class FeaturesGiftCardsService {
|
|
|
33
33
|
*/
|
|
34
34
|
static getTransactions(xStudioId: string, giftCardId: string): CancelablePromise<GiftCardTransactionsResponseDto>;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
37
|
-
*
|
|
36
|
+
* Fetch the gift card
|
|
37
|
+
* Fetch the gift card for the given studio ID
|
|
38
38
|
* @param xStudioId The ID of the studio
|
|
39
|
-
* @param
|
|
40
|
-
* @returns
|
|
39
|
+
* @param giftCardId The ID of the gift card
|
|
40
|
+
* @returns GiftCardResponseDto Gift card fetched successfully
|
|
41
41
|
* @throws ApiError
|
|
42
42
|
*/
|
|
43
|
-
static
|
|
43
|
+
static getGiftCard(xStudioId: string, giftCardId: string): CancelablePromise<GiftCardResponseDto>;
|
|
44
44
|
/**
|
|
45
45
|
* Update a gift card
|
|
46
46
|
* Update a gift card for the given studio ID
|
|
@@ -60,4 +60,13 @@ export declare class FeaturesGiftCardsService {
|
|
|
60
60
|
* @throws ApiError
|
|
61
61
|
*/
|
|
62
62
|
static deleteGiftCard(xStudioId: string, giftCardId: string): CancelablePromise<SuccessResponse>;
|
|
63
|
+
/**
|
|
64
|
+
* Create new gift cards
|
|
65
|
+
* Create new gift cards for the given studio ID
|
|
66
|
+
* @param xStudioId The ID of the studio
|
|
67
|
+
* @param requestBody Create bulk gift cards payload
|
|
68
|
+
* @returns SuccessResponse Gift cards created successfully
|
|
69
|
+
* @throws ApiError
|
|
70
|
+
*/
|
|
71
|
+
static createGiftCardsBulk(xStudioId: string, requestBody: BulkCreateGiftCardRequestDto): CancelablePromise<SuccessResponse>;
|
|
63
72
|
}
|
|
@@ -61,22 +61,23 @@ export class FeaturesGiftCardsService {
|
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
63
|
/**
|
|
64
|
-
*
|
|
65
|
-
*
|
|
64
|
+
* Fetch the gift card
|
|
65
|
+
* Fetch the gift card for the given studio ID
|
|
66
66
|
* @param xStudioId The ID of the studio
|
|
67
|
-
* @param
|
|
68
|
-
* @returns
|
|
67
|
+
* @param giftCardId The ID of the gift card
|
|
68
|
+
* @returns GiftCardResponseDto Gift card fetched successfully
|
|
69
69
|
* @throws ApiError
|
|
70
70
|
*/
|
|
71
|
-
static
|
|
71
|
+
static getGiftCard(xStudioId, giftCardId) {
|
|
72
72
|
return __request(OpenAPI, {
|
|
73
|
-
method: '
|
|
74
|
-
url: '/features/gift-cards/
|
|
73
|
+
method: 'GET',
|
|
74
|
+
url: '/features/gift-cards/{giftCardId}',
|
|
75
|
+
path: {
|
|
76
|
+
'giftCardId': giftCardId,
|
|
77
|
+
},
|
|
75
78
|
headers: {
|
|
76
79
|
'x-studio-id': xStudioId,
|
|
77
80
|
},
|
|
78
|
-
body: requestBody,
|
|
79
|
-
mediaType: 'application/json',
|
|
80
81
|
});
|
|
81
82
|
}
|
|
82
83
|
/**
|
|
@@ -122,4 +123,23 @@ export class FeaturesGiftCardsService {
|
|
|
122
123
|
},
|
|
123
124
|
});
|
|
124
125
|
}
|
|
126
|
+
/**
|
|
127
|
+
* Create new gift cards
|
|
128
|
+
* Create new gift cards for the given studio ID
|
|
129
|
+
* @param xStudioId The ID of the studio
|
|
130
|
+
* @param requestBody Create bulk gift cards payload
|
|
131
|
+
* @returns SuccessResponse Gift cards created successfully
|
|
132
|
+
* @throws ApiError
|
|
133
|
+
*/
|
|
134
|
+
static createGiftCardsBulk(xStudioId, requestBody) {
|
|
135
|
+
return __request(OpenAPI, {
|
|
136
|
+
method: 'POST',
|
|
137
|
+
url: '/features/gift-cards/bulk-create',
|
|
138
|
+
headers: {
|
|
139
|
+
'x-studio-id': xStudioId,
|
|
140
|
+
},
|
|
141
|
+
body: requestBody,
|
|
142
|
+
mediaType: 'application/json',
|
|
143
|
+
});
|
|
144
|
+
}
|
|
125
145
|
}
|
|
@@ -22,6 +22,7 @@ import type { ShowSectionDetail } from '../models/ShowSectionDetail';
|
|
|
22
22
|
import type { ShowStatDetail } from '../models/ShowStatDetail';
|
|
23
23
|
import type { ShowTicketSectionListResponseDto } from '../models/ShowTicketSectionListResponseDto';
|
|
24
24
|
import type { SinglePerformerRequestDto } from '../models/SinglePerformerRequestDto';
|
|
25
|
+
import type { StopShowRequestDto } from '../models/StopShowRequestDto';
|
|
25
26
|
import type { SuccessResponse } from '../models/SuccessResponse';
|
|
26
27
|
import type { VideoStreamResponseDto } from '../models/VideoStreamResponseDto';
|
|
27
28
|
import type { VirtualStreamResponseDto } from '../models/VirtualStreamResponseDto';
|
|
@@ -251,6 +252,16 @@ export declare class ShowsService {
|
|
|
251
252
|
* @throws ApiError
|
|
252
253
|
*/
|
|
253
254
|
static updatePerformers(xStudioId: string, requestBody: SinglePerformerRequestDto): CancelablePromise<SuccessResponse>;
|
|
255
|
+
/**
|
|
256
|
+
* Stop sale for a show
|
|
257
|
+
* To stop the sale of tickets for a specific show
|
|
258
|
+
* @param xStudioId The ID of the studio
|
|
259
|
+
* @param showId The ID of the show
|
|
260
|
+
* @param requestBody Stop sale for a show
|
|
261
|
+
* @returns SuccessResponse Show sale stopped successfully
|
|
262
|
+
* @throws ApiError
|
|
263
|
+
*/
|
|
264
|
+
static stopSale(xStudioId: string, showId: string, requestBody: StopShowRequestDto): CancelablePromise<SuccessResponse>;
|
|
254
265
|
/**
|
|
255
266
|
* Remove show performer
|
|
256
267
|
* To remove the performer of the show
|
|
@@ -486,6 +486,29 @@ export class ShowsService {
|
|
|
486
486
|
mediaType: 'application/json',
|
|
487
487
|
});
|
|
488
488
|
}
|
|
489
|
+
/**
|
|
490
|
+
* Stop sale for a show
|
|
491
|
+
* To stop the sale of tickets for a specific show
|
|
492
|
+
* @param xStudioId The ID of the studio
|
|
493
|
+
* @param showId The ID of the show
|
|
494
|
+
* @param requestBody Stop sale for a show
|
|
495
|
+
* @returns SuccessResponse Show sale stopped successfully
|
|
496
|
+
* @throws ApiError
|
|
497
|
+
*/
|
|
498
|
+
static stopSale(xStudioId, showId, requestBody) {
|
|
499
|
+
return __request(OpenAPI, {
|
|
500
|
+
method: 'PUT',
|
|
501
|
+
url: '/shows/{showId}/stop-sale',
|
|
502
|
+
path: {
|
|
503
|
+
'showId': showId,
|
|
504
|
+
},
|
|
505
|
+
headers: {
|
|
506
|
+
'x-studio-id': xStudioId,
|
|
507
|
+
},
|
|
508
|
+
body: requestBody,
|
|
509
|
+
mediaType: 'application/json',
|
|
510
|
+
});
|
|
511
|
+
}
|
|
489
512
|
/**
|
|
490
513
|
* Remove show performer
|
|
491
514
|
* To remove the performer of the show
|
|
@@ -240,6 +240,7 @@ export type { SinglePerformerRequestDto } from './models/SinglePerformerRequestD
|
|
|
240
240
|
export type { SoldTicketsResponseDto } from './models/SoldTicketsResponseDto';
|
|
241
241
|
export type { StartImageUploadRequestDto } from './models/StartImageUploadRequestDto';
|
|
242
242
|
export type { StartImageUploadResponseDto } from './models/StartImageUploadResponseDto';
|
|
243
|
+
export type { StopShowRequestDto } from './models/StopShowRequestDto';
|
|
243
244
|
export type { StringValidation } from './models/StringValidation';
|
|
244
245
|
export type { StripeResponseDto } from './models/StripeResponseDto';
|
|
245
246
|
export type { StripeSettingsResponseDto } from './models/StripeSettingsResponseDto';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@drttix/drt-sdk",
|
|
3
3
|
"description": "DRT SDK",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.91",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
7
7
|
"types": "dist/esm/index.d.ts",
|
|
@@ -23,5 +23,8 @@
|
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/node": "^24.0.4",
|
|
25
25
|
"typescript": "^5.8.3"
|
|
26
|
+
},
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"@drttix/drt-sdk": "^0.2.9"
|
|
26
29
|
}
|
|
27
30
|
}
|
|
@@ -249,6 +249,7 @@ export type { SinglePerformerRequestDto } from './models/SinglePerformerRequestD
|
|
|
249
249
|
export type { SoldTicketsResponseDto } from './models/SoldTicketsResponseDto';
|
|
250
250
|
export type { StartImageUploadRequestDto } from './models/StartImageUploadRequestDto';
|
|
251
251
|
export type { StartImageUploadResponseDto } from './models/StartImageUploadResponseDto';
|
|
252
|
+
export type { StopShowRequestDto } from './models/StopShowRequestDto';
|
|
252
253
|
export type { StringValidation } from './models/StringValidation';
|
|
253
254
|
export type { StripeResponseDto } from './models/StripeResponseDto';
|
|
254
255
|
export type { StripeSettingsResponseDto } from './models/StripeSettingsResponseDto';
|
|
@@ -6,10 +6,10 @@ export type BulkCreateGiftCardRequestDto = {
|
|
|
6
6
|
balance: string;
|
|
7
7
|
numCodes: number;
|
|
8
8
|
emailName: string;
|
|
9
|
-
emails: Array<
|
|
9
|
+
emails: Array<string>;
|
|
10
10
|
errorOnCollisionEmail: number;
|
|
11
11
|
errorOnCollisionName: number;
|
|
12
|
-
names: Array<
|
|
12
|
+
names: Array<string>;
|
|
13
13
|
message: string;
|
|
14
14
|
sendWhen: string;
|
|
15
15
|
dateSend: string;
|
|
@@ -5,8 +5,10 @@
|
|
|
5
5
|
import type { OrderDetails } from './OrderDetails';
|
|
6
6
|
export type RefundResponseDto = {
|
|
7
7
|
orderId: number;
|
|
8
|
+
id: number;
|
|
8
9
|
amountReqested?: number;
|
|
9
10
|
amountApproved?: number;
|
|
11
|
+
amountRefunded: number;
|
|
10
12
|
dateCreated: string;
|
|
11
13
|
dateApprovedClient?: string;
|
|
12
14
|
dateApprovedInternal?: string;
|
|
@@ -58,6 +58,8 @@ export type ShowDetailDto = {
|
|
|
58
58
|
numResSections: number;
|
|
59
59
|
chargebackProtectionEnabled: number;
|
|
60
60
|
receiptMessage: string;
|
|
61
|
+
repName: string;
|
|
62
|
+
repEmail: string;
|
|
61
63
|
dateMaxOrderSeatsEnd: string;
|
|
62
64
|
autoDiscounts: Array<AutoDiscounts>;
|
|
63
65
|
refundSetting: Array<RefundSetting>;
|
|
@@ -5,11 +5,15 @@
|
|
|
5
5
|
export type TicketResponseDto = {
|
|
6
6
|
year: string;
|
|
7
7
|
date: string;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
value_orders: number;
|
|
9
|
+
num_orders: number;
|
|
10
|
+
num_seats: number;
|
|
11
|
+
value_seats: number;
|
|
12
|
+
value_tax: number;
|
|
13
|
+
total_service_charge: number;
|
|
14
|
+
net_amount: number;
|
|
15
|
+
includes_sales_tax: number;
|
|
16
|
+
product_tax: number;
|
|
13
17
|
distro: number;
|
|
14
18
|
};
|
|
15
19
|
|
|
@@ -10,11 +10,11 @@ export type UpdateBankingRequestDto = {
|
|
|
10
10
|
account: string;
|
|
11
11
|
accountNumber: string;
|
|
12
12
|
routingNumber: string;
|
|
13
|
-
checkName:
|
|
14
|
-
echeckEmail:
|
|
15
|
-
checkAddress:
|
|
16
|
-
checkCity:
|
|
17
|
-
checkState:
|
|
13
|
+
checkName: string;
|
|
14
|
+
echeckEmail: string;
|
|
15
|
+
checkAddress: string;
|
|
16
|
+
checkCity: string;
|
|
17
|
+
checkState: string;
|
|
18
18
|
checkPostal: number;
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -80,25 +80,26 @@ export class FeaturesGiftCardsService {
|
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
82
|
/**
|
|
83
|
-
*
|
|
84
|
-
*
|
|
83
|
+
* Fetch the gift card
|
|
84
|
+
* Fetch the gift card for the given studio ID
|
|
85
85
|
* @param xStudioId The ID of the studio
|
|
86
|
-
* @param
|
|
87
|
-
* @returns
|
|
86
|
+
* @param giftCardId The ID of the gift card
|
|
87
|
+
* @returns GiftCardResponseDto Gift card fetched successfully
|
|
88
88
|
* @throws ApiError
|
|
89
89
|
*/
|
|
90
|
-
public static
|
|
90
|
+
public static getGiftCard(
|
|
91
91
|
xStudioId: string,
|
|
92
|
-
|
|
93
|
-
): CancelablePromise<
|
|
92
|
+
giftCardId: string,
|
|
93
|
+
): CancelablePromise<GiftCardResponseDto> {
|
|
94
94
|
return __request(OpenAPI, {
|
|
95
|
-
method: '
|
|
96
|
-
url: '/features/gift-cards/
|
|
95
|
+
method: 'GET',
|
|
96
|
+
url: '/features/gift-cards/{giftCardId}',
|
|
97
|
+
path: {
|
|
98
|
+
'giftCardId': giftCardId,
|
|
99
|
+
},
|
|
97
100
|
headers: {
|
|
98
101
|
'x-studio-id': xStudioId,
|
|
99
102
|
},
|
|
100
|
-
body: requestBody,
|
|
101
|
-
mediaType: 'application/json',
|
|
102
103
|
});
|
|
103
104
|
}
|
|
104
105
|
/**
|
|
@@ -151,4 +152,26 @@ export class FeaturesGiftCardsService {
|
|
|
151
152
|
},
|
|
152
153
|
});
|
|
153
154
|
}
|
|
155
|
+
/**
|
|
156
|
+
* Create new gift cards
|
|
157
|
+
* Create new gift cards for the given studio ID
|
|
158
|
+
* @param xStudioId The ID of the studio
|
|
159
|
+
* @param requestBody Create bulk gift cards payload
|
|
160
|
+
* @returns SuccessResponse Gift cards created successfully
|
|
161
|
+
* @throws ApiError
|
|
162
|
+
*/
|
|
163
|
+
public static createGiftCardsBulk(
|
|
164
|
+
xStudioId: string,
|
|
165
|
+
requestBody: BulkCreateGiftCardRequestDto,
|
|
166
|
+
): CancelablePromise<SuccessResponse> {
|
|
167
|
+
return __request(OpenAPI, {
|
|
168
|
+
method: 'POST',
|
|
169
|
+
url: '/features/gift-cards/bulk-create',
|
|
170
|
+
headers: {
|
|
171
|
+
'x-studio-id': xStudioId,
|
|
172
|
+
},
|
|
173
|
+
body: requestBody,
|
|
174
|
+
mediaType: 'application/json',
|
|
175
|
+
});
|
|
176
|
+
}
|
|
154
177
|
}
|
|
@@ -26,6 +26,7 @@ import type { ShowSectionDetail } from '../models/ShowSectionDetail';
|
|
|
26
26
|
import type { ShowStatDetail } from '../models/ShowStatDetail';
|
|
27
27
|
import type { ShowTicketSectionListResponseDto } from '../models/ShowTicketSectionListResponseDto';
|
|
28
28
|
import type { SinglePerformerRequestDto } from '../models/SinglePerformerRequestDto';
|
|
29
|
+
import type { StopShowRequestDto } from '../models/StopShowRequestDto';
|
|
29
30
|
import type { SuccessResponse } from '../models/SuccessResponse';
|
|
30
31
|
import type { VideoStreamResponseDto } from '../models/VideoStreamResponseDto';
|
|
31
32
|
import type { VirtualStreamResponseDto } from '../models/VirtualStreamResponseDto';
|
|
@@ -592,6 +593,33 @@ export class ShowsService {
|
|
|
592
593
|
mediaType: 'application/json',
|
|
593
594
|
});
|
|
594
595
|
}
|
|
596
|
+
/**
|
|
597
|
+
* Stop sale for a show
|
|
598
|
+
* To stop the sale of tickets for a specific show
|
|
599
|
+
* @param xStudioId The ID of the studio
|
|
600
|
+
* @param showId The ID of the show
|
|
601
|
+
* @param requestBody Stop sale for a show
|
|
602
|
+
* @returns SuccessResponse Show sale stopped successfully
|
|
603
|
+
* @throws ApiError
|
|
604
|
+
*/
|
|
605
|
+
public static stopSale(
|
|
606
|
+
xStudioId: string,
|
|
607
|
+
showId: string,
|
|
608
|
+
requestBody: StopShowRequestDto,
|
|
609
|
+
): CancelablePromise<SuccessResponse> {
|
|
610
|
+
return __request(OpenAPI, {
|
|
611
|
+
method: 'PUT',
|
|
612
|
+
url: '/shows/{showId}/stop-sale',
|
|
613
|
+
path: {
|
|
614
|
+
'showId': showId,
|
|
615
|
+
},
|
|
616
|
+
headers: {
|
|
617
|
+
'x-studio-id': xStudioId,
|
|
618
|
+
},
|
|
619
|
+
body: requestBody,
|
|
620
|
+
mediaType: 'application/json',
|
|
621
|
+
});
|
|
622
|
+
}
|
|
595
623
|
/**
|
|
596
624
|
* Remove show performer
|
|
597
625
|
* To remove the performer of the show
|
|
@@ -243,6 +243,7 @@ export type { SinglePerformerRequestDto } from './models/SinglePerformerRequestD
|
|
|
243
243
|
export type { SoldTicketsResponseDto } from './models/SoldTicketsResponseDto';
|
|
244
244
|
export type { StartImageUploadRequestDto } from './models/StartImageUploadRequestDto';
|
|
245
245
|
export type { StartImageUploadResponseDto } from './models/StartImageUploadResponseDto';
|
|
246
|
+
export type { StopShowRequestDto } from './models/StopShowRequestDto';
|
|
246
247
|
export type { StringValidation } from './models/StringValidation';
|
|
247
248
|
export type { StripeResponseDto } from './models/StripeResponseDto';
|
|
248
249
|
export type { StripeSettingsResponseDto } from './models/StripeSettingsResponseDto';
|