@jugarhoy/api 1.0.3 → 1.0.4
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 +57 -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/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 +24 -0
- package/package.json +1 -1
|
@@ -0,0 +1,65 @@
|
|
|
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 RequestPasswordReset200Response
|
|
20
|
+
*/
|
|
21
|
+
export interface RequestPasswordReset200Response {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof RequestPasswordReset200Response
|
|
26
|
+
*/
|
|
27
|
+
success?: boolean;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the RequestPasswordReset200Response interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfRequestPasswordReset200Response(value: object): value is RequestPasswordReset200Response {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function RequestPasswordReset200ResponseFromJSON(json: any): RequestPasswordReset200Response {
|
|
38
|
+
return RequestPasswordReset200ResponseFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function RequestPasswordReset200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RequestPasswordReset200Response {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'success': json['success'] == null ? undefined : json['success'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function RequestPasswordReset200ResponseToJSON(json: any): RequestPasswordReset200Response {
|
|
52
|
+
return RequestPasswordReset200ResponseToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function RequestPasswordReset200ResponseToJSONTyped(value?: RequestPasswordReset200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'success': value['success'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
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 RequestPasswordReset500Response
|
|
20
|
+
*/
|
|
21
|
+
export interface RequestPasswordReset500Response {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof RequestPasswordReset500Response
|
|
26
|
+
*/
|
|
27
|
+
error?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the RequestPasswordReset500Response interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfRequestPasswordReset500Response(value: object): value is RequestPasswordReset500Response {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function RequestPasswordReset500ResponseFromJSON(json: any): RequestPasswordReset500Response {
|
|
38
|
+
return RequestPasswordReset500ResponseFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function RequestPasswordReset500ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RequestPasswordReset500Response {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function RequestPasswordReset500ResponseToJSON(json: any): RequestPasswordReset500Response {
|
|
52
|
+
return RequestPasswordReset500ResponseToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function RequestPasswordReset500ResponseToJSONTyped(value?: RequestPasswordReset500Response | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'error': value['error'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -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 RequestPasswordResetRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface RequestPasswordResetRequest {
|
|
22
|
+
/**
|
|
23
|
+
* Email address of the user requesting password reset
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof RequestPasswordResetRequest
|
|
26
|
+
*/
|
|
27
|
+
email: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the RequestPasswordResetRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfRequestPasswordResetRequest(value: object): value is RequestPasswordResetRequest {
|
|
34
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function RequestPasswordResetRequestFromJSON(json: any): RequestPasswordResetRequest {
|
|
39
|
+
return RequestPasswordResetRequestFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function RequestPasswordResetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RequestPasswordResetRequest {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'email': json['email'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function RequestPasswordResetRequestToJSON(json: any): RequestPasswordResetRequest {
|
|
53
|
+
return RequestPasswordResetRequestToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function RequestPasswordResetRequestToJSONTyped(value?: RequestPasswordResetRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'email': value['email'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
package/models/Reserve.ts
CHANGED
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
PlayPriceToJSON,
|
|
21
21
|
PlayPriceToJSONTyped,
|
|
22
22
|
} from './PlayPrice';
|
|
23
|
+
import type { PaymentDetail } from './PaymentDetail';
|
|
24
|
+
import {
|
|
25
|
+
PaymentDetailFromJSON,
|
|
26
|
+
PaymentDetailFromJSONTyped,
|
|
27
|
+
PaymentDetailToJSON,
|
|
28
|
+
PaymentDetailToJSONTyped,
|
|
29
|
+
} from './PaymentDetail';
|
|
23
30
|
import type { PaymentMethod } from './PaymentMethod';
|
|
24
31
|
import {
|
|
25
32
|
PaymentMethodFromJSON,
|
|
@@ -186,6 +193,12 @@ export interface Reserve {
|
|
|
186
193
|
* @memberof Reserve
|
|
187
194
|
*/
|
|
188
195
|
notes?: string | null;
|
|
196
|
+
/**
|
|
197
|
+
*
|
|
198
|
+
* @type {PaymentDetail}
|
|
199
|
+
* @memberof Reserve
|
|
200
|
+
*/
|
|
201
|
+
paymentDetail?: PaymentDetail;
|
|
189
202
|
}
|
|
190
203
|
|
|
191
204
|
|
|
@@ -248,6 +261,7 @@ export function ReserveFromJSONTyped(json: any, ignoreDiscriminator: boolean): R
|
|
|
248
261
|
'subscriptionId': json['subscriptionId'] == null ? undefined : json['subscriptionId'],
|
|
249
262
|
'paymentMethod': PaymentMethodFromJSON(json['paymentMethod']),
|
|
250
263
|
'notes': json['notes'] == null ? undefined : json['notes'],
|
|
264
|
+
'paymentDetail': json['paymentDetail'] == null ? undefined : PaymentDetailFromJSON(json['paymentDetail']),
|
|
251
265
|
};
|
|
252
266
|
}
|
|
253
267
|
|
|
@@ -285,6 +299,7 @@ export function ReserveToJSONTyped(value?: Reserve | null, ignoreDiscriminator:
|
|
|
285
299
|
'subscriptionId': value['subscriptionId'],
|
|
286
300
|
'paymentMethod': PaymentMethodToJSON(value['paymentMethod']),
|
|
287
301
|
'notes': value['notes'],
|
|
302
|
+
'paymentDetail': PaymentDetailToJSON(value['paymentDetail']),
|
|
288
303
|
};
|
|
289
304
|
}
|
|
290
305
|
|
package/models/ReserveType.ts
CHANGED
package/models/Sport.ts
CHANGED
|
@@ -18,15 +18,24 @@
|
|
|
18
18
|
* @export
|
|
19
19
|
*/
|
|
20
20
|
export const Sport = {
|
|
21
|
-
|
|
22
|
-
TableTennis: 'TABLE_TENNIS',
|
|
21
|
+
Soccer: 'SOCCER',
|
|
23
22
|
Paddle: 'PADDLE',
|
|
23
|
+
Tennis: 'TENNIS',
|
|
24
24
|
Football: 'FOOTBALL',
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
Basketball: 'BASKETBALL',
|
|
25
|
+
Hockey: 'HOCKEY',
|
|
26
|
+
TableTennis: 'TABLE_TENNIS',
|
|
28
27
|
Volleyball: 'VOLLEYBALL',
|
|
29
|
-
|
|
28
|
+
Basketball: 'BASKETBALL',
|
|
29
|
+
Squash: 'SQUASH',
|
|
30
|
+
CarRacing: 'CAR_RACING',
|
|
31
|
+
Baseball: 'BASEBALL',
|
|
32
|
+
Pool: 'POOL',
|
|
33
|
+
Chess: 'CHESS',
|
|
34
|
+
Rugby: 'RUGBY',
|
|
35
|
+
Handball: 'HANDBALL',
|
|
36
|
+
Golf: 'GOLF',
|
|
37
|
+
Swimming: 'SWIMMING',
|
|
38
|
+
Gym: 'GYM',
|
|
30
39
|
Other: 'OTHER'
|
|
31
40
|
} as const;
|
|
32
41
|
export type Sport = typeof Sport[keyof typeof Sport];
|
|
@@ -0,0 +1,198 @@
|
|
|
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 { Frequency } from './Frequency';
|
|
17
|
+
import {
|
|
18
|
+
FrequencyFromJSON,
|
|
19
|
+
FrequencyFromJSONTyped,
|
|
20
|
+
FrequencyToJSON,
|
|
21
|
+
FrequencyToJSONTyped,
|
|
22
|
+
} from './Frequency';
|
|
23
|
+
import type { PaymentStatus } from './PaymentStatus';
|
|
24
|
+
import {
|
|
25
|
+
PaymentStatusFromJSON,
|
|
26
|
+
PaymentStatusFromJSONTyped,
|
|
27
|
+
PaymentStatusToJSON,
|
|
28
|
+
PaymentStatusToJSONTyped,
|
|
29
|
+
} from './PaymentStatus';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface SubscriptionBill
|
|
35
|
+
*/
|
|
36
|
+
export interface SubscriptionBill {
|
|
37
|
+
/**
|
|
38
|
+
* Unique identifier for the bill
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof SubscriptionBill
|
|
41
|
+
*/
|
|
42
|
+
id: string;
|
|
43
|
+
/**
|
|
44
|
+
* ID of the subscription this bill belongs to
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof SubscriptionBill
|
|
47
|
+
*/
|
|
48
|
+
subscriptionId: string;
|
|
49
|
+
/**
|
|
50
|
+
* ID of the member being billed
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof SubscriptionBill
|
|
53
|
+
*/
|
|
54
|
+
userId: string;
|
|
55
|
+
/**
|
|
56
|
+
* Start date of the billing period
|
|
57
|
+
* @type {Date}
|
|
58
|
+
* @memberof SubscriptionBill
|
|
59
|
+
*/
|
|
60
|
+
billingPeriodStart: Date;
|
|
61
|
+
/**
|
|
62
|
+
* End date of the billing period
|
|
63
|
+
* @type {Date}
|
|
64
|
+
* @memberof SubscriptionBill
|
|
65
|
+
*/
|
|
66
|
+
billingPeriodEnd: Date;
|
|
67
|
+
/**
|
|
68
|
+
* Due date for payment (typically period end + 5 days)
|
|
69
|
+
* @type {Date}
|
|
70
|
+
* @memberof SubscriptionBill
|
|
71
|
+
*/
|
|
72
|
+
dueDate: Date;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {Frequency}
|
|
76
|
+
* @memberof SubscriptionBill
|
|
77
|
+
*/
|
|
78
|
+
frequency: Frequency;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {PaymentStatus}
|
|
82
|
+
* @memberof SubscriptionBill
|
|
83
|
+
*/
|
|
84
|
+
status: PaymentStatus;
|
|
85
|
+
/**
|
|
86
|
+
* Amount to be paid
|
|
87
|
+
* @type {number}
|
|
88
|
+
* @memberof SubscriptionBill
|
|
89
|
+
*/
|
|
90
|
+
amount: number;
|
|
91
|
+
/**
|
|
92
|
+
* Currency code (e.g., ARS, USD)
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof SubscriptionBill
|
|
95
|
+
*/
|
|
96
|
+
currency: string;
|
|
97
|
+
/**
|
|
98
|
+
* ID of the payment detail when bill is paid
|
|
99
|
+
* @type {string}
|
|
100
|
+
* @memberof SubscriptionBill
|
|
101
|
+
*/
|
|
102
|
+
paymentDetailId?: string | null;
|
|
103
|
+
/**
|
|
104
|
+
* Additional notes or comments about the bill
|
|
105
|
+
* @type {string}
|
|
106
|
+
* @memberof SubscriptionBill
|
|
107
|
+
*/
|
|
108
|
+
notes?: string | null;
|
|
109
|
+
/**
|
|
110
|
+
* When the bill was created
|
|
111
|
+
* @type {Date}
|
|
112
|
+
* @memberof SubscriptionBill
|
|
113
|
+
*/
|
|
114
|
+
createdAt: Date;
|
|
115
|
+
/**
|
|
116
|
+
* When the bill was last updated
|
|
117
|
+
* @type {Date}
|
|
118
|
+
* @memberof SubscriptionBill
|
|
119
|
+
*/
|
|
120
|
+
updatedAt: Date;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Check if a given object implements the SubscriptionBill interface.
|
|
127
|
+
*/
|
|
128
|
+
export function instanceOfSubscriptionBill(value: object): value is SubscriptionBill {
|
|
129
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
130
|
+
if (!('subscriptionId' in value) || value['subscriptionId'] === undefined) return false;
|
|
131
|
+
if (!('userId' in value) || value['userId'] === undefined) return false;
|
|
132
|
+
if (!('billingPeriodStart' in value) || value['billingPeriodStart'] === undefined) return false;
|
|
133
|
+
if (!('billingPeriodEnd' in value) || value['billingPeriodEnd'] === undefined) return false;
|
|
134
|
+
if (!('dueDate' in value) || value['dueDate'] === undefined) return false;
|
|
135
|
+
if (!('frequency' in value) || value['frequency'] === undefined) return false;
|
|
136
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
137
|
+
if (!('amount' in value) || value['amount'] === undefined) return false;
|
|
138
|
+
if (!('currency' in value) || value['currency'] === undefined) return false;
|
|
139
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
140
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
141
|
+
return true;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export function SubscriptionBillFromJSON(json: any): SubscriptionBill {
|
|
145
|
+
return SubscriptionBillFromJSONTyped(json, false);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export function SubscriptionBillFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionBill {
|
|
149
|
+
if (json == null) {
|
|
150
|
+
return json;
|
|
151
|
+
}
|
|
152
|
+
return {
|
|
153
|
+
|
|
154
|
+
'id': json['id'],
|
|
155
|
+
'subscriptionId': json['subscriptionId'],
|
|
156
|
+
'userId': json['userId'],
|
|
157
|
+
'billingPeriodStart': (new Date(json['billingPeriodStart'])),
|
|
158
|
+
'billingPeriodEnd': (new Date(json['billingPeriodEnd'])),
|
|
159
|
+
'dueDate': (new Date(json['dueDate'])),
|
|
160
|
+
'frequency': FrequencyFromJSON(json['frequency']),
|
|
161
|
+
'status': PaymentStatusFromJSON(json['status']),
|
|
162
|
+
'amount': json['amount'],
|
|
163
|
+
'currency': json['currency'],
|
|
164
|
+
'paymentDetailId': json['paymentDetailId'] == null ? undefined : json['paymentDetailId'],
|
|
165
|
+
'notes': json['notes'] == null ? undefined : json['notes'],
|
|
166
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
167
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export function SubscriptionBillToJSON(json: any): SubscriptionBill {
|
|
172
|
+
return SubscriptionBillToJSONTyped(json, false);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export function SubscriptionBillToJSONTyped(value?: SubscriptionBill | null, ignoreDiscriminator: boolean = false): any {
|
|
176
|
+
if (value == null) {
|
|
177
|
+
return value;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
return {
|
|
181
|
+
|
|
182
|
+
'id': value['id'],
|
|
183
|
+
'subscriptionId': value['subscriptionId'],
|
|
184
|
+
'userId': value['userId'],
|
|
185
|
+
'billingPeriodStart': ((value['billingPeriodStart']).toISOString()),
|
|
186
|
+
'billingPeriodEnd': ((value['billingPeriodEnd']).toISOString()),
|
|
187
|
+
'dueDate': ((value['dueDate']).toISOString()),
|
|
188
|
+
'frequency': FrequencyToJSON(value['frequency']),
|
|
189
|
+
'status': PaymentStatusToJSON(value['status']),
|
|
190
|
+
'amount': value['amount'],
|
|
191
|
+
'currency': value['currency'],
|
|
192
|
+
'paymentDetailId': value['paymentDetailId'],
|
|
193
|
+
'notes': value['notes'],
|
|
194
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
195
|
+
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
|
|
@@ -0,0 +1,91 @@
|
|
|
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 { PaymentStatus } from './PaymentStatus';
|
|
17
|
+
import {
|
|
18
|
+
PaymentStatusFromJSON,
|
|
19
|
+
PaymentStatusFromJSONTyped,
|
|
20
|
+
PaymentStatusToJSON,
|
|
21
|
+
PaymentStatusToJSONTyped,
|
|
22
|
+
} from './PaymentStatus';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface UpdateBillRequest
|
|
28
|
+
*/
|
|
29
|
+
export interface UpdateBillRequest {
|
|
30
|
+
/**
|
|
31
|
+
* Additional notes for the bill
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof UpdateBillRequest
|
|
34
|
+
*/
|
|
35
|
+
notes?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {PaymentStatus}
|
|
39
|
+
* @memberof UpdateBillRequest
|
|
40
|
+
*/
|
|
41
|
+
status?: PaymentStatus;
|
|
42
|
+
/**
|
|
43
|
+
* Bill amount
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof UpdateBillRequest
|
|
46
|
+
*/
|
|
47
|
+
amount?: number;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the UpdateBillRequest interface.
|
|
54
|
+
*/
|
|
55
|
+
export function instanceOfUpdateBillRequest(value: object): value is UpdateBillRequest {
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function UpdateBillRequestFromJSON(json: any): UpdateBillRequest {
|
|
60
|
+
return UpdateBillRequestFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function UpdateBillRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateBillRequest {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'notes': json['notes'] == null ? undefined : json['notes'],
|
|
70
|
+
'status': json['status'] == null ? undefined : PaymentStatusFromJSON(json['status']),
|
|
71
|
+
'amount': json['amount'] == null ? undefined : json['amount'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function UpdateBillRequestToJSON(json: any): UpdateBillRequest {
|
|
76
|
+
return UpdateBillRequestToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function UpdateBillRequestToJSONTyped(value?: UpdateBillRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'notes': value['notes'],
|
|
87
|
+
'status': PaymentStatusToJSON(value['status']),
|
|
88
|
+
'amount': value['amount'],
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
@@ -0,0 +1,91 @@
|
|
|
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 { Sport } from './Sport';
|
|
17
|
+
import {
|
|
18
|
+
SportFromJSON,
|
|
19
|
+
SportFromJSONTyped,
|
|
20
|
+
SportToJSON,
|
|
21
|
+
SportToJSONTyped,
|
|
22
|
+
} from './Sport';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Note - code field is not updatable
|
|
26
|
+
* @export
|
|
27
|
+
* @interface UpdateFeatureRequest
|
|
28
|
+
*/
|
|
29
|
+
export interface UpdateFeatureRequest {
|
|
30
|
+
/**
|
|
31
|
+
* Name of the feature
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof UpdateFeatureRequest
|
|
34
|
+
*/
|
|
35
|
+
name?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Description of the feature
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof UpdateFeatureRequest
|
|
40
|
+
*/
|
|
41
|
+
description?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Sport}
|
|
45
|
+
* @memberof UpdateFeatureRequest
|
|
46
|
+
*/
|
|
47
|
+
sport?: Sport;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the UpdateFeatureRequest interface.
|
|
54
|
+
*/
|
|
55
|
+
export function instanceOfUpdateFeatureRequest(value: object): value is UpdateFeatureRequest {
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function UpdateFeatureRequestFromJSON(json: any): UpdateFeatureRequest {
|
|
60
|
+
return UpdateFeatureRequestFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function UpdateFeatureRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateFeatureRequest {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
70
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
71
|
+
'sport': json['sport'] == null ? undefined : SportFromJSON(json['sport']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function UpdateFeatureRequestToJSON(json: any): UpdateFeatureRequest {
|
|
76
|
+
return UpdateFeatureRequestToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function UpdateFeatureRequestToJSONTyped(value?: UpdateFeatureRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'name': value['name'],
|
|
87
|
+
'description': value['description'],
|
|
88
|
+
'sport': SportToJSON(value['sport']),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
@@ -39,6 +39,12 @@ export interface UpdateReservationAdminRequest {
|
|
|
39
39
|
* @memberof UpdateReservationAdminRequest
|
|
40
40
|
*/
|
|
41
41
|
notes?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* Set to true to manually confirm a pending reservation and bypass payment verification
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof UpdateReservationAdminRequest
|
|
46
|
+
*/
|
|
47
|
+
forceConfirm?: boolean;
|
|
42
48
|
}
|
|
43
49
|
|
|
44
50
|
|
|
@@ -62,6 +68,7 @@ export function UpdateReservationAdminRequestFromJSONTyped(json: any, ignoreDisc
|
|
|
62
68
|
|
|
63
69
|
'paymentMethod': json['paymentMethod'] == null ? undefined : PaymentMethodFromJSON(json['paymentMethod']),
|
|
64
70
|
'notes': json['notes'] == null ? undefined : json['notes'],
|
|
71
|
+
'forceConfirm': json['forceConfirm'] == null ? undefined : json['forceConfirm'],
|
|
65
72
|
};
|
|
66
73
|
}
|
|
67
74
|
|
|
@@ -78,6 +85,7 @@ export function UpdateReservationAdminRequestToJSONTyped(value?: UpdateReservati
|
|
|
78
85
|
|
|
79
86
|
'paymentMethod': PaymentMethodToJSON(value['paymentMethod']),
|
|
80
87
|
'notes': value['notes'],
|
|
88
|
+
'forceConfirm': value['forceConfirm'],
|
|
81
89
|
};
|
|
82
90
|
}
|
|
83
91
|
|