@drttix/drt-sdk 0.2.8 → 0.2.9
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/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/RefundDetailResponseDto.d.ts +3 -0
- package/dist/cjs/src/generated/portal/models/RefundResponseDto.d.ts +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/esm/src/generated/portal/core/OpenAPI.js +1 -1
- 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/RefundDetailResponseDto.d.ts +3 -0
- package/dist/esm/src/generated/portal/models/RefundResponseDto.d.ts +2 -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/package.json +1 -1
- package/src/generated/portal/core/OpenAPI.ts +1 -1
- package/src/generated/portal/models/BulkCreateGiftCardRequestDto.ts +2 -2
- package/src/generated/portal/models/GiftCardResponseDto.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/TicketResponseDto.ts +9 -5
- package/src/generated/portal/models/UpdateBankingRequestDto.ts +5 -5
- package/src/generated/portal/services/FeaturesGiftCardsService.ts +34 -11
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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
|
}
|
package/package.json
CHANGED
|
@@ -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;
|
|
@@ -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
|
}
|