@jugarhoy/api 1.0.3 → 1.0.5
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/apis/AdminClubsApi.ts +118 -0
- package/apis/AdminFeaturesApi.ts +264 -0
- package/apis/AdminPlaySpotsApi.ts +61 -0
- package/apis/AdminReservationsApi.ts +54 -0
- package/apis/AdminSubscriptionBillingApi.ts +331 -0
- package/apis/AdminSubscriptionsApi.ts +312 -5
- package/apis/AuthApi.ts +117 -0
- package/apis/index.ts +3 -0
- package/models/AddCoachToSubscriptionRequest.ts +66 -0
- package/models/AddPlayerToSubscriptionRequest.ts +66 -0
- package/models/BlockSpotItem.ts +75 -0
- package/models/BlockSpots200Response.ts +73 -0
- package/models/BlockSpotsCommand.ts +109 -0
- package/models/ChargeOn.ts +1 -1
- package/models/ClonePlaySpotRequest.ts +75 -0
- package/models/CreateClubForSuperadminParams.ts +227 -0
- package/models/CreateClubForSuperadminResponse.ts +83 -0
- package/models/CreateClubForSuperadminResponseResult.ts +111 -0
- package/models/CreateClubForSuperadminResponseResultAdminUser.ts +73 -0
- package/models/CreateFeatureRequest.ts +103 -0
- package/models/ExtendSubscriptions200Response.ts +89 -0
- package/models/ExtendSubscriptions200ResponseDetailsInner.ts +81 -0
- package/models/Feature.ts +18 -0
- package/models/GenerateSubscriptionBillsRequest.ts +65 -0
- package/models/GetAllShifts200ResponseInner.ts +8 -0
- package/models/LinkPaymentToBillRequest.ts +66 -0
- package/models/ListAllClubsResponse.ts +83 -0
- package/models/ListAllClubsResponseResult.ts +81 -0
- package/models/PlayPrice.ts +2 -2
- package/models/PlaySpotShift.ts +8 -0
- package/models/PlaySubscription.ts +41 -0
- package/models/PlaySubscriptionCreateDto.ts +37 -3
- package/models/PlaySubscriptionListDto.ts +240 -0
- package/models/RequestPasswordReset200Response.ts +65 -0
- package/models/RequestPasswordReset500Response.ts +65 -0
- package/models/RequestPasswordResetRequest.ts +66 -0
- package/models/Reserve.ts +15 -0
- package/models/ReserveType.ts +1 -0
- package/models/ResetPassword200Response.ts +73 -0
- package/models/ResetPassword400Response.ts +79 -0
- package/models/ResetPassword500Response.ts +65 -0
- package/models/ResetPasswordRequest.ts +75 -0
- package/models/Sport.ts +15 -6
- package/models/SubscriptionBill.ts +198 -0
- package/models/UpdateBillRequest.ts +91 -0
- package/models/UpdateFeatureRequest.ts +91 -0
- package/models/UpdateReservationAdminRequest.ts +8 -0
- package/models/UserRole.ts +2 -1
- package/models/index.ts +28 -0
- package/package.json +1 -1
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Jugar Hoy - API
|
|
5
|
+
* API documentation for Jugar Hoy application
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.5.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface LinkPaymentToBillRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface LinkPaymentToBillRequest {
|
|
22
|
+
/**
|
|
23
|
+
* The payment detail ID to link
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof LinkPaymentToBillRequest
|
|
26
|
+
*/
|
|
27
|
+
paymentDetailId: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the LinkPaymentToBillRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfLinkPaymentToBillRequest(value: object): value is LinkPaymentToBillRequest {
|
|
34
|
+
if (!('paymentDetailId' in value) || value['paymentDetailId'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function LinkPaymentToBillRequestFromJSON(json: any): LinkPaymentToBillRequest {
|
|
39
|
+
return LinkPaymentToBillRequestFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function LinkPaymentToBillRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkPaymentToBillRequest {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'paymentDetailId': json['paymentDetailId'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function LinkPaymentToBillRequestToJSON(json: any): LinkPaymentToBillRequest {
|
|
53
|
+
return LinkPaymentToBillRequestToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function LinkPaymentToBillRequestToJSONTyped(value?: LinkPaymentToBillRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'paymentDetailId': value['paymentDetailId'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Jugar Hoy - API
|
|
5
|
+
* API documentation for Jugar Hoy application
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.5.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ListAllClubsResponseResult } from './ListAllClubsResponseResult';
|
|
17
|
+
import {
|
|
18
|
+
ListAllClubsResponseResultFromJSON,
|
|
19
|
+
ListAllClubsResponseResultFromJSONTyped,
|
|
20
|
+
ListAllClubsResponseResultToJSON,
|
|
21
|
+
ListAllClubsResponseResultToJSONTyped,
|
|
22
|
+
} from './ListAllClubsResponseResult';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ListAllClubsResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface ListAllClubsResponse {
|
|
30
|
+
/**
|
|
31
|
+
* Whether the operation was successful
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof ListAllClubsResponse
|
|
34
|
+
*/
|
|
35
|
+
success: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {ListAllClubsResponseResult}
|
|
39
|
+
* @memberof ListAllClubsResponse
|
|
40
|
+
*/
|
|
41
|
+
result: ListAllClubsResponseResult;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ListAllClubsResponse interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfListAllClubsResponse(value: object): value is ListAllClubsResponse {
|
|
48
|
+
if (!('success' in value) || value['success'] === undefined) return false;
|
|
49
|
+
if (!('result' in value) || value['result'] === undefined) return false;
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function ListAllClubsResponseFromJSON(json: any): ListAllClubsResponse {
|
|
54
|
+
return ListAllClubsResponseFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function ListAllClubsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListAllClubsResponse {
|
|
58
|
+
if (json == null) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'success': json['success'],
|
|
64
|
+
'result': ListAllClubsResponseResultFromJSON(json['result']),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function ListAllClubsResponseToJSON(json: any): ListAllClubsResponse {
|
|
69
|
+
return ListAllClubsResponseToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function ListAllClubsResponseToJSONTyped(value?: ListAllClubsResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'success': value['success'],
|
|
80
|
+
'result': ListAllClubsResponseResultToJSON(value['result']),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Jugar Hoy - API
|
|
5
|
+
* API documentation for Jugar Hoy application
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.5.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { Customer } from './Customer';
|
|
17
|
+
import {
|
|
18
|
+
CustomerFromJSON,
|
|
19
|
+
CustomerFromJSONTyped,
|
|
20
|
+
CustomerToJSON,
|
|
21
|
+
CustomerToJSONTyped,
|
|
22
|
+
} from './Customer';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ListAllClubsResponseResult
|
|
28
|
+
*/
|
|
29
|
+
export interface ListAllClubsResponseResult {
|
|
30
|
+
/**
|
|
31
|
+
* List of all customers/clubs
|
|
32
|
+
* @type {Array<Customer>}
|
|
33
|
+
* @memberof ListAllClubsResponseResult
|
|
34
|
+
*/
|
|
35
|
+
customers?: Array<Customer>;
|
|
36
|
+
/**
|
|
37
|
+
* Total number of customers
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ListAllClubsResponseResult
|
|
40
|
+
*/
|
|
41
|
+
total?: number;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ListAllClubsResponseResult interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfListAllClubsResponseResult(value: object): value is ListAllClubsResponseResult {
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function ListAllClubsResponseResultFromJSON(json: any): ListAllClubsResponseResult {
|
|
52
|
+
return ListAllClubsResponseResultFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function ListAllClubsResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListAllClubsResponseResult {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
|
|
61
|
+
'customers': json['customers'] == null ? undefined : ((json['customers'] as Array<any>).map(CustomerFromJSON)),
|
|
62
|
+
'total': json['total'] == null ? undefined : json['total'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function ListAllClubsResponseResultToJSON(json: any): ListAllClubsResponseResult {
|
|
67
|
+
return ListAllClubsResponseResultToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function ListAllClubsResponseResultToJSONTyped(value?: ListAllClubsResponseResult | null, ignoreDiscriminator: boolean = false): any {
|
|
71
|
+
if (value == null) {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'customers': value['customers'] == null ? undefined : ((value['customers'] as Array<any>).map(CustomerToJSON)),
|
|
78
|
+
'total': value['total'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
package/models/PlayPrice.ts
CHANGED
|
@@ -82,7 +82,7 @@ export interface PlayPrice {
|
|
|
82
82
|
*/
|
|
83
83
|
isSubscription: boolean;
|
|
84
84
|
/**
|
|
85
|
-
* When to charge for this price (per session or
|
|
85
|
+
* When to charge for this price (per session or per subscription)
|
|
86
86
|
* @type {string}
|
|
87
87
|
* @memberof PlayPrice
|
|
88
88
|
*/
|
|
@@ -95,7 +95,7 @@ export interface PlayPrice {
|
|
|
95
95
|
*/
|
|
96
96
|
export const PlayPriceChargeOnEnum = {
|
|
97
97
|
Session: 'session',
|
|
98
|
-
|
|
98
|
+
Subscription: 'subscription'
|
|
99
99
|
} as const;
|
|
100
100
|
export type PlayPriceChargeOnEnum = typeof PlayPriceChargeOnEnum[keyof typeof PlayPriceChargeOnEnum];
|
|
101
101
|
|
package/models/PlaySpotShift.ts
CHANGED
|
@@ -99,6 +99,12 @@ export interface PlaySpotShift {
|
|
|
99
99
|
* @memberof PlaySpotShift
|
|
100
100
|
*/
|
|
101
101
|
durations: Array<number>;
|
|
102
|
+
/**
|
|
103
|
+
* IDs of subscriptions linked to this shift
|
|
104
|
+
* @type {Array<string>}
|
|
105
|
+
* @memberof PlaySpotShift
|
|
106
|
+
*/
|
|
107
|
+
subscriptionIds?: Array<string> | null;
|
|
102
108
|
}
|
|
103
109
|
|
|
104
110
|
|
|
@@ -153,6 +159,7 @@ export function PlaySpotShiftFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
153
159
|
'fromHour': json['fromHour'],
|
|
154
160
|
'toHour': json['toHour'],
|
|
155
161
|
'durations': json['durations'],
|
|
162
|
+
'subscriptionIds': json['subscriptionIds'] == null ? undefined : json['subscriptionIds'],
|
|
156
163
|
};
|
|
157
164
|
}
|
|
158
165
|
|
|
@@ -179,6 +186,7 @@ export function PlaySpotShiftToJSONTyped(value?: PlaySpotShift | null, ignoreDis
|
|
|
179
186
|
'fromHour': value['fromHour'],
|
|
180
187
|
'toHour': value['toHour'],
|
|
181
188
|
'durations': value['durations'],
|
|
189
|
+
'subscriptionIds': value['subscriptionIds'],
|
|
182
190
|
};
|
|
183
191
|
}
|
|
184
192
|
|
|
@@ -87,6 +87,12 @@ export interface PlaySubscription {
|
|
|
87
87
|
* @memberof PlaySubscription
|
|
88
88
|
*/
|
|
89
89
|
type: PlaySubscriptionType;
|
|
90
|
+
/**
|
|
91
|
+
* Name of the subscription for reference
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof PlaySubscription
|
|
94
|
+
*/
|
|
95
|
+
name: string;
|
|
90
96
|
/**
|
|
91
97
|
* ID of the user who owns the subscription
|
|
92
98
|
* @type {string}
|
|
@@ -183,6 +189,30 @@ export interface PlaySubscription {
|
|
|
183
189
|
* @memberof PlaySubscription
|
|
184
190
|
*/
|
|
185
191
|
hasConflicts: boolean;
|
|
192
|
+
/**
|
|
193
|
+
* Whether to include the titular (userId) in billing
|
|
194
|
+
* @type {boolean}
|
|
195
|
+
* @memberof PlaySubscription
|
|
196
|
+
*/
|
|
197
|
+
billTitular?: boolean;
|
|
198
|
+
/**
|
|
199
|
+
* Number of occurrences in the subscription (denormalized for performance)
|
|
200
|
+
* @type {number}
|
|
201
|
+
* @memberof PlaySubscription
|
|
202
|
+
*/
|
|
203
|
+
occurrencesCount?: number;
|
|
204
|
+
/**
|
|
205
|
+
* Number of members in the subscription (denormalized for performance)
|
|
206
|
+
* @type {number}
|
|
207
|
+
* @memberof PlaySubscription
|
|
208
|
+
*/
|
|
209
|
+
memberCount?: number;
|
|
210
|
+
/**
|
|
211
|
+
* Number of coaches in the subscription (denormalized for performance)
|
|
212
|
+
* @type {number}
|
|
213
|
+
* @memberof PlaySubscription
|
|
214
|
+
*/
|
|
215
|
+
coachesCount?: number;
|
|
186
216
|
/**
|
|
187
217
|
* Date when the subscription was created
|
|
188
218
|
* @type {Date}
|
|
@@ -205,6 +235,7 @@ export interface PlaySubscription {
|
|
|
205
235
|
export function instanceOfPlaySubscription(value: object): value is PlaySubscription {
|
|
206
236
|
if (!('customerId' in value) || value['customerId'] === undefined) return false;
|
|
207
237
|
if (!('type' in value) || value['type'] === undefined) return false;
|
|
238
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
208
239
|
if (!('userId' in value) || value['userId'] === undefined) return false;
|
|
209
240
|
if (!('memberIds' in value) || value['memberIds'] === undefined) return false;
|
|
210
241
|
if (!('startDate' in value) || value['startDate'] === undefined) return false;
|
|
@@ -235,6 +266,7 @@ export function PlaySubscriptionFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
235
266
|
'id': json['id'] == null ? undefined : json['id'],
|
|
236
267
|
'customerId': json['customerId'],
|
|
237
268
|
'type': PlaySubscriptionTypeFromJSON(json['type']),
|
|
269
|
+
'name': json['name'],
|
|
238
270
|
'userId': json['userId'],
|
|
239
271
|
'memberIds': json['memberIds'],
|
|
240
272
|
'startDate': (new Date(json['startDate'])),
|
|
@@ -251,6 +283,10 @@ export function PlaySubscriptionFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
251
283
|
'paymentTerms': PaymentTermsFromJSON(json['paymentTerms']),
|
|
252
284
|
'status': ReserveStatusFromJSON(json['status']),
|
|
253
285
|
'hasConflicts': json['hasConflicts'],
|
|
286
|
+
'billTitular': json['billTitular'] == null ? undefined : json['billTitular'],
|
|
287
|
+
'occurrencesCount': json['occurrencesCount'] == null ? undefined : json['occurrencesCount'],
|
|
288
|
+
'memberCount': json['memberCount'] == null ? undefined : json['memberCount'],
|
|
289
|
+
'coachesCount': json['coachesCount'] == null ? undefined : json['coachesCount'],
|
|
254
290
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
255
291
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
256
292
|
};
|
|
@@ -270,6 +306,7 @@ export function PlaySubscriptionToJSONTyped(value?: PlaySubscription | null, ign
|
|
|
270
306
|
'id': value['id'],
|
|
271
307
|
'customerId': value['customerId'],
|
|
272
308
|
'type': PlaySubscriptionTypeToJSON(value['type']),
|
|
309
|
+
'name': value['name'],
|
|
273
310
|
'userId': value['userId'],
|
|
274
311
|
'memberIds': value['memberIds'],
|
|
275
312
|
'startDate': ((value['startDate']).toISOString()),
|
|
@@ -286,6 +323,10 @@ export function PlaySubscriptionToJSONTyped(value?: PlaySubscription | null, ign
|
|
|
286
323
|
'paymentTerms': PaymentTermsToJSON(value['paymentTerms']),
|
|
287
324
|
'status': ReserveStatusToJSON(value['status']),
|
|
288
325
|
'hasConflicts': value['hasConflicts'],
|
|
326
|
+
'billTitular': value['billTitular'],
|
|
327
|
+
'occurrencesCount': value['occurrencesCount'],
|
|
328
|
+
'memberCount': value['memberCount'],
|
|
329
|
+
'coachesCount': value['coachesCount'],
|
|
289
330
|
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
290
331
|
'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
|
|
291
332
|
};
|
|
@@ -54,6 +54,12 @@ export interface PlaySubscriptionCreateDto {
|
|
|
54
54
|
* @memberof PlaySubscriptionCreateDto
|
|
55
55
|
*/
|
|
56
56
|
type: PlaySubscriptionType;
|
|
57
|
+
/**
|
|
58
|
+
* Name of the subscription for reference
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof PlaySubscriptionCreateDto
|
|
61
|
+
*/
|
|
62
|
+
name: string;
|
|
57
63
|
/**
|
|
58
64
|
* Start date of the subscription period
|
|
59
65
|
* @type {Date}
|
|
@@ -90,6 +96,18 @@ export interface PlaySubscriptionCreateDto {
|
|
|
90
96
|
* @memberof PlaySubscriptionCreateDto
|
|
91
97
|
*/
|
|
92
98
|
matchRequirements: MatchRequirements;
|
|
99
|
+
/**
|
|
100
|
+
* User ID of the subscription owner (titular)
|
|
101
|
+
* @type {string}
|
|
102
|
+
* @memberof PlaySubscriptionCreateDto
|
|
103
|
+
*/
|
|
104
|
+
userId: string;
|
|
105
|
+
/**
|
|
106
|
+
* Array of member IDs (players who will use the subscription)
|
|
107
|
+
* @type {Array<string>}
|
|
108
|
+
* @memberof PlaySubscriptionCreateDto
|
|
109
|
+
*/
|
|
110
|
+
memberIds: Array<string>;
|
|
93
111
|
/**
|
|
94
112
|
* Array of coach IDs associated with the subscription
|
|
95
113
|
* @type {Array<string>}
|
|
@@ -101,7 +119,13 @@ export interface PlaySubscriptionCreateDto {
|
|
|
101
119
|
* @type {PaymentTerms}
|
|
102
120
|
* @memberof PlaySubscriptionCreateDto
|
|
103
121
|
*/
|
|
104
|
-
paymentTerms
|
|
122
|
+
paymentTerms?: PaymentTerms;
|
|
123
|
+
/**
|
|
124
|
+
* Whether to include the titular (userId) in billing
|
|
125
|
+
* @type {boolean}
|
|
126
|
+
* @memberof PlaySubscriptionCreateDto
|
|
127
|
+
*/
|
|
128
|
+
billTitular?: boolean;
|
|
105
129
|
}
|
|
106
130
|
|
|
107
131
|
|
|
@@ -111,12 +135,14 @@ export interface PlaySubscriptionCreateDto {
|
|
|
111
135
|
*/
|
|
112
136
|
export function instanceOfPlaySubscriptionCreateDto(value: object): value is PlaySubscriptionCreateDto {
|
|
113
137
|
if (!('type' in value) || value['type'] === undefined) return false;
|
|
138
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
114
139
|
if (!('startDate' in value) || value['startDate'] === undefined) return false;
|
|
115
140
|
if (!('daysOfWeek' in value) || value['daysOfWeek'] === undefined) return false;
|
|
116
141
|
if (!('hourFrom' in value) || value['hourFrom'] === undefined) return false;
|
|
117
142
|
if (!('hourTo' in value) || value['hourTo'] === undefined) return false;
|
|
118
143
|
if (!('matchRequirements' in value) || value['matchRequirements'] === undefined) return false;
|
|
119
|
-
if (!('
|
|
144
|
+
if (!('userId' in value) || value['userId'] === undefined) return false;
|
|
145
|
+
if (!('memberIds' in value) || value['memberIds'] === undefined) return false;
|
|
120
146
|
return true;
|
|
121
147
|
}
|
|
122
148
|
|
|
@@ -131,14 +157,18 @@ export function PlaySubscriptionCreateDtoFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
131
157
|
return {
|
|
132
158
|
|
|
133
159
|
'type': PlaySubscriptionTypeFromJSON(json['type']),
|
|
160
|
+
'name': json['name'],
|
|
134
161
|
'startDate': (new Date(json['startDate'])),
|
|
135
162
|
'endDate': json['endDate'] == null ? undefined : (new Date(json['endDate'])),
|
|
136
163
|
'daysOfWeek': ((json['daysOfWeek'] as Array<any>).map(DayOfWeekFromJSON)),
|
|
137
164
|
'hourFrom': json['hourFrom'],
|
|
138
165
|
'hourTo': json['hourTo'],
|
|
139
166
|
'matchRequirements': MatchRequirementsFromJSON(json['matchRequirements']),
|
|
167
|
+
'userId': json['userId'],
|
|
168
|
+
'memberIds': json['memberIds'],
|
|
140
169
|
'coachIds': json['coachIds'] == null ? undefined : json['coachIds'],
|
|
141
|
-
'paymentTerms': PaymentTermsFromJSON(json['paymentTerms']),
|
|
170
|
+
'paymentTerms': json['paymentTerms'] == null ? undefined : PaymentTermsFromJSON(json['paymentTerms']),
|
|
171
|
+
'billTitular': json['billTitular'] == null ? undefined : json['billTitular'],
|
|
142
172
|
};
|
|
143
173
|
}
|
|
144
174
|
|
|
@@ -154,14 +184,18 @@ export function PlaySubscriptionCreateDtoToJSONTyped(value?: PlaySubscriptionCre
|
|
|
154
184
|
return {
|
|
155
185
|
|
|
156
186
|
'type': PlaySubscriptionTypeToJSON(value['type']),
|
|
187
|
+
'name': value['name'],
|
|
157
188
|
'startDate': ((value['startDate']).toISOString().substring(0,10)),
|
|
158
189
|
'endDate': value['endDate'] == null ? undefined : ((value['endDate'] as any).toISOString().substring(0,10)),
|
|
159
190
|
'daysOfWeek': ((value['daysOfWeek'] as Array<any>).map(DayOfWeekToJSON)),
|
|
160
191
|
'hourFrom': value['hourFrom'],
|
|
161
192
|
'hourTo': value['hourTo'],
|
|
162
193
|
'matchRequirements': MatchRequirementsToJSON(value['matchRequirements']),
|
|
194
|
+
'userId': value['userId'],
|
|
195
|
+
'memberIds': value['memberIds'],
|
|
163
196
|
'coachIds': value['coachIds'],
|
|
164
197
|
'paymentTerms': PaymentTermsToJSON(value['paymentTerms']),
|
|
198
|
+
'billTitular': value['billTitular'],
|
|
165
199
|
};
|
|
166
200
|
}
|
|
167
201
|
|