@jugarhoy/api 1.1.26 → 1.1.27

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.
Files changed (72) hide show
  1. package/apis/AdminPaymentConfigsApi.ts +37 -0
  2. package/apis/AdminSubscriptionBillingApi.ts +357 -1
  3. package/apis/AdminSubscriptionsApi.ts +215 -0
  4. package/apis/AdminUsersApi.ts +69 -0
  5. package/apis/AppPlayRegistrationApi.ts +10 -3
  6. package/apis/BackgroundApi.ts +35 -0
  7. package/apis/ClubApi.ts +185 -0
  8. package/apis/ClubPlacesApi.ts +75 -0
  9. package/apis/TeamsApi.ts +145 -0
  10. package/apis/index.ts +1 -0
  11. package/models/ApiAdminPlayPricesPostRequest.ts +2 -3
  12. package/models/BankCard.ts +109 -0
  13. package/models/BillingSummaryItemDto.ts +120 -0
  14. package/models/BulkImportResult.ts +119 -0
  15. package/models/BulkImportRowError.ts +81 -0
  16. package/models/BulkMarkBillsPaid200Response.ts +81 -0
  17. package/models/BulkMarkBillsPaid200ResponseErrorsInner.ts +81 -0
  18. package/models/ClubMySubscriptionDto.ts +205 -0
  19. package/models/ClubPlaceRegistrationStatus.ts +91 -0
  20. package/models/ClubProfileDto.ts +105 -0
  21. package/models/ClubProfileDtoProfile.ts +227 -0
  22. package/models/ClubProfileNextMatchDto.ts +128 -0
  23. package/models/ClubSubscriptionOfferingDto.ts +148 -0
  24. package/models/CreateCustomerPaymentConfigDto.ts +34 -0
  25. package/models/CreatePlaySearchRequest.ts +16 -0
  26. package/models/CreateRecurringGameRequest.ts +8 -0
  27. package/models/CreateTeamRequest.ts +55 -0
  28. package/models/CustomerPaymentConfig.ts +35 -0
  29. package/models/CustomerPaymentConfigDto.ts +35 -0
  30. package/models/Frequency.ts +3 -1
  31. package/models/GenerateRecurringGames200Response.ts +73 -0
  32. package/models/GenerateSubscriptionBillsRequest.ts +14 -5
  33. package/models/LocationDto.ts +8 -0
  34. package/models/MarkBillAsPaidRequest.ts +99 -0
  35. package/models/MyClubClubPlace.ts +128 -0
  36. package/models/MyClubDefaultLocation.ts +84 -0
  37. package/models/MyClubDto.ts +177 -0
  38. package/models/PaymentMethod.ts +2 -1
  39. package/models/PlayPrice.ts +3 -4
  40. package/models/PlayRegistrationDTO.ts +15 -0
  41. package/models/PlayRegistrationDTOPlaySearch.ts +137 -0
  42. package/models/PlayRegistrationDTOPlaySearchClubPlace.ts +81 -0
  43. package/models/PlaySearchDTO.ts +8 -0
  44. package/models/PlaySearchDetailDTO.ts +8 -0
  45. package/models/PlaySubscription.ts +48 -0
  46. package/models/PlaySubscriptionCreateDto.ts +48 -0
  47. package/models/PlaySubscriptionListDto.ts +8 -0
  48. package/models/PlaySubscriptionType.ts +2 -1
  49. package/models/RecurringGame.ts +8 -0
  50. package/models/RecurringGameResponse.ts +16 -0
  51. package/models/RegisterClubParams.ts +16 -0
  52. package/models/RegisterForPlaySearchRequest.ts +73 -0
  53. package/models/Sport.ts +8 -0
  54. package/models/SubscriptionBill.ts +84 -1
  55. package/models/SubscriptionBillItemDto.ts +308 -0
  56. package/models/SubscriptionBillPageDto.ts +101 -0
  57. package/models/SubscriptionMemberDto.ts +134 -0
  58. package/models/SubscriptionMembersPageDto.ts +101 -0
  59. package/models/TeamFeedItemResponse.ts +8 -0
  60. package/models/TeamMemberResponse.ts +16 -0
  61. package/models/TeamPreviewResponse.ts +209 -0
  62. package/models/TeamPreviewResponseCoachesInner.ts +73 -0
  63. package/models/TeamResponse.ts +32 -0
  64. package/models/TeamType.ts +3 -2
  65. package/models/UpdateMemberPaymentConfigRequest.ts +65 -0
  66. package/models/UpdateRecurringGameRequest.ts +8 -0
  67. package/models/UpdateTeamRequest.ts +32 -0
  68. package/models/UploadBillReceipt200Response.ts +65 -0
  69. package/models/UserDto.ts +3 -4
  70. package/models/index.ts +28 -0
  71. package/package.json +1 -1
  72. package/runtime.ts +1 -1
@@ -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
+ /**
17
+ *
18
+ * @export
19
+ * @interface ClubPlaceRegistrationStatus
20
+ */
21
+ export interface ClubPlaceRegistrationStatus {
22
+ /**
23
+ * Whether this Google Place is registered in the platform
24
+ * @type {boolean}
25
+ * @memberof ClubPlaceRegistrationStatus
26
+ */
27
+ registered: boolean;
28
+ /**
29
+ * Whether the registered club place has a verified owner
30
+ * @type {boolean}
31
+ * @memberof ClubPlaceRegistrationStatus
32
+ */
33
+ hasOwner: boolean;
34
+ /**
35
+ * Platform ID of the club place (only present when registered)
36
+ * @type {string}
37
+ * @memberof ClubPlaceRegistrationStatus
38
+ */
39
+ clubPlaceId?: string;
40
+ /**
41
+ * Name of the club place (only present when registered)
42
+ * @type {string}
43
+ * @memberof ClubPlaceRegistrationStatus
44
+ */
45
+ name?: string;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the ClubPlaceRegistrationStatus interface.
50
+ */
51
+ export function instanceOfClubPlaceRegistrationStatus(value: object): value is ClubPlaceRegistrationStatus {
52
+ if (!('registered' in value) || value['registered'] === undefined) return false;
53
+ if (!('hasOwner' in value) || value['hasOwner'] === undefined) return false;
54
+ return true;
55
+ }
56
+
57
+ export function ClubPlaceRegistrationStatusFromJSON(json: any): ClubPlaceRegistrationStatus {
58
+ return ClubPlaceRegistrationStatusFromJSONTyped(json, false);
59
+ }
60
+
61
+ export function ClubPlaceRegistrationStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClubPlaceRegistrationStatus {
62
+ if (json == null) {
63
+ return json;
64
+ }
65
+ return {
66
+
67
+ 'registered': json['registered'],
68
+ 'hasOwner': json['hasOwner'],
69
+ 'clubPlaceId': json['clubPlaceId'] == null ? undefined : json['clubPlaceId'],
70
+ 'name': json['name'] == null ? undefined : json['name'],
71
+ };
72
+ }
73
+
74
+ export function ClubPlaceRegistrationStatusToJSON(json: any): ClubPlaceRegistrationStatus {
75
+ return ClubPlaceRegistrationStatusToJSONTyped(json, false);
76
+ }
77
+
78
+ export function ClubPlaceRegistrationStatusToJSONTyped(value?: ClubPlaceRegistrationStatus | null, ignoreDiscriminator: boolean = false): any {
79
+ if (value == null) {
80
+ return value;
81
+ }
82
+
83
+ return {
84
+
85
+ 'registered': value['registered'],
86
+ 'hasOwner': value['hasOwner'],
87
+ 'clubPlaceId': value['clubPlaceId'],
88
+ 'name': value['name'],
89
+ };
90
+ }
91
+
@@ -0,0 +1,105 @@
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 { ClubProfileDtoProfile } from './ClubProfileDtoProfile';
17
+ import {
18
+ ClubProfileDtoProfileFromJSON,
19
+ ClubProfileDtoProfileFromJSONTyped,
20
+ ClubProfileDtoProfileToJSON,
21
+ ClubProfileDtoProfileToJSONTyped,
22
+ } from './ClubProfileDtoProfile';
23
+ import type { ClubProfileNextMatchDto } from './ClubProfileNextMatchDto';
24
+ import {
25
+ ClubProfileNextMatchDtoFromJSON,
26
+ ClubProfileNextMatchDtoFromJSONTyped,
27
+ ClubProfileNextMatchDtoToJSON,
28
+ ClubProfileNextMatchDtoToJSONTyped,
29
+ } from './ClubProfileNextMatchDto';
30
+ import type { ClubSubscriptionOfferingDto } from './ClubSubscriptionOfferingDto';
31
+ import {
32
+ ClubSubscriptionOfferingDtoFromJSON,
33
+ ClubSubscriptionOfferingDtoFromJSONTyped,
34
+ ClubSubscriptionOfferingDtoToJSON,
35
+ ClubSubscriptionOfferingDtoToJSONTyped,
36
+ } from './ClubSubscriptionOfferingDto';
37
+
38
+ /**
39
+ *
40
+ * @export
41
+ * @interface ClubProfileDto
42
+ */
43
+ export interface ClubProfileDto {
44
+ /**
45
+ *
46
+ * @type {ClubProfileDtoProfile}
47
+ * @memberof ClubProfileDto
48
+ */
49
+ profile: ClubProfileDtoProfile;
50
+ /**
51
+ *
52
+ * @type {Array<ClubSubscriptionOfferingDto>}
53
+ * @memberof ClubProfileDto
54
+ */
55
+ availableSubscriptions: Array<ClubSubscriptionOfferingDto>;
56
+ /**
57
+ *
58
+ * @type {ClubProfileNextMatchDto}
59
+ * @memberof ClubProfileDto
60
+ */
61
+ nextMatch?: ClubProfileNextMatchDto;
62
+ }
63
+
64
+ /**
65
+ * Check if a given object implements the ClubProfileDto interface.
66
+ */
67
+ export function instanceOfClubProfileDto(value: object): value is ClubProfileDto {
68
+ if (!('profile' in value) || value['profile'] === undefined) return false;
69
+ if (!('availableSubscriptions' in value) || value['availableSubscriptions'] === undefined) return false;
70
+ return true;
71
+ }
72
+
73
+ export function ClubProfileDtoFromJSON(json: any): ClubProfileDto {
74
+ return ClubProfileDtoFromJSONTyped(json, false);
75
+ }
76
+
77
+ export function ClubProfileDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClubProfileDto {
78
+ if (json == null) {
79
+ return json;
80
+ }
81
+ return {
82
+
83
+ 'profile': ClubProfileDtoProfileFromJSON(json['profile']),
84
+ 'availableSubscriptions': ((json['availableSubscriptions'] as Array<any>).map(ClubSubscriptionOfferingDtoFromJSON)),
85
+ 'nextMatch': json['nextMatch'] == null ? undefined : ClubProfileNextMatchDtoFromJSON(json['nextMatch']),
86
+ };
87
+ }
88
+
89
+ export function ClubProfileDtoToJSON(json: any): ClubProfileDto {
90
+ return ClubProfileDtoToJSONTyped(json, false);
91
+ }
92
+
93
+ export function ClubProfileDtoToJSONTyped(value?: ClubProfileDto | null, ignoreDiscriminator: boolean = false): any {
94
+ if (value == null) {
95
+ return value;
96
+ }
97
+
98
+ return {
99
+
100
+ 'profile': ClubProfileDtoProfileToJSON(value['profile']),
101
+ 'availableSubscriptions': ((value['availableSubscriptions'] as Array<any>).map(ClubSubscriptionOfferingDtoToJSON)),
102
+ 'nextMatch': ClubProfileNextMatchDtoToJSON(value['nextMatch']),
103
+ };
104
+ }
105
+
@@ -0,0 +1,227 @@
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
+ *
26
+ * @export
27
+ * @interface ClubProfileDtoProfile
28
+ */
29
+ export interface ClubProfileDtoProfile {
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ClubProfileDtoProfile
34
+ */
35
+ customerId: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ClubProfileDtoProfile
40
+ */
41
+ customerCode: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof ClubProfileDtoProfile
46
+ */
47
+ customerName: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof ClubProfileDtoProfile
52
+ */
53
+ avatarUrl?: string | null;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof ClubProfileDtoProfile
58
+ */
59
+ headerUrl?: string | null;
60
+ /**
61
+ *
62
+ * @type {Array<Sport>}
63
+ * @memberof ClubProfileDtoProfile
64
+ */
65
+ sports: Array<Sport>;
66
+ /**
67
+ *
68
+ * @type {string}
69
+ * @memberof ClubProfileDtoProfile
70
+ */
71
+ address?: string | null;
72
+ /**
73
+ *
74
+ * @type {string}
75
+ * @memberof ClubProfileDtoProfile
76
+ */
77
+ phone?: string | null;
78
+ /**
79
+ *
80
+ * @type {string}
81
+ * @memberof ClubProfileDtoProfile
82
+ */
83
+ website?: string | null;
84
+ /**
85
+ *
86
+ * @type {number}
87
+ * @memberof ClubProfileDtoProfile
88
+ */
89
+ latitude?: number | null;
90
+ /**
91
+ *
92
+ * @type {number}
93
+ * @memberof ClubProfileDtoProfile
94
+ */
95
+ longitude?: number | null;
96
+ /**
97
+ *
98
+ * @type {Array<string>}
99
+ * @memberof ClubProfileDtoProfile
100
+ */
101
+ photoUrls: Array<string>;
102
+ /**
103
+ *
104
+ * @type {string}
105
+ * @memberof ClubProfileDtoProfile
106
+ */
107
+ memberSince?: string | null;
108
+ /**
109
+ *
110
+ * @type {string}
111
+ * @memberof ClubProfileDtoProfile
112
+ */
113
+ membershipLabel?: string | null;
114
+ /**
115
+ *
116
+ * @type {string}
117
+ * @memberof ClubProfileDtoProfile
118
+ */
119
+ userRole: ClubProfileDtoProfileUserRoleEnum;
120
+ /**
121
+ *
122
+ * @type {string}
123
+ * @memberof ClubProfileDtoProfile
124
+ */
125
+ defaultLocationId?: string | null;
126
+ /**
127
+ *
128
+ * @type {string}
129
+ * @memberof ClubProfileDtoProfile
130
+ */
131
+ defaultLocationCode?: string | null;
132
+ /**
133
+ *
134
+ * @type {string}
135
+ * @memberof ClubProfileDtoProfile
136
+ */
137
+ defaultLocationName?: string | null;
138
+ }
139
+
140
+
141
+ /**
142
+ * @export
143
+ */
144
+ export const ClubProfileDtoProfileUserRoleEnum = {
145
+ Admin: 'ADMIN',
146
+ Coach: 'COACH',
147
+ Member: 'MEMBER'
148
+ } as const;
149
+ export type ClubProfileDtoProfileUserRoleEnum = typeof ClubProfileDtoProfileUserRoleEnum[keyof typeof ClubProfileDtoProfileUserRoleEnum];
150
+
151
+
152
+ /**
153
+ * Check if a given object implements the ClubProfileDtoProfile interface.
154
+ */
155
+ export function instanceOfClubProfileDtoProfile(value: object): value is ClubProfileDtoProfile {
156
+ if (!('customerId' in value) || value['customerId'] === undefined) return false;
157
+ if (!('customerCode' in value) || value['customerCode'] === undefined) return false;
158
+ if (!('customerName' in value) || value['customerName'] === undefined) return false;
159
+ if (!('sports' in value) || value['sports'] === undefined) return false;
160
+ if (!('photoUrls' in value) || value['photoUrls'] === undefined) return false;
161
+ if (!('userRole' in value) || value['userRole'] === undefined) return false;
162
+ return true;
163
+ }
164
+
165
+ export function ClubProfileDtoProfileFromJSON(json: any): ClubProfileDtoProfile {
166
+ return ClubProfileDtoProfileFromJSONTyped(json, false);
167
+ }
168
+
169
+ export function ClubProfileDtoProfileFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClubProfileDtoProfile {
170
+ if (json == null) {
171
+ return json;
172
+ }
173
+ return {
174
+
175
+ 'customerId': json['customerId'],
176
+ 'customerCode': json['customerCode'],
177
+ 'customerName': json['customerName'],
178
+ 'avatarUrl': json['avatarUrl'] == null ? undefined : json['avatarUrl'],
179
+ 'headerUrl': json['headerUrl'] == null ? undefined : json['headerUrl'],
180
+ 'sports': ((json['sports'] as Array<any>).map(SportFromJSON)),
181
+ 'address': json['address'] == null ? undefined : json['address'],
182
+ 'phone': json['phone'] == null ? undefined : json['phone'],
183
+ 'website': json['website'] == null ? undefined : json['website'],
184
+ 'latitude': json['latitude'] == null ? undefined : json['latitude'],
185
+ 'longitude': json['longitude'] == null ? undefined : json['longitude'],
186
+ 'photoUrls': json['photoUrls'],
187
+ 'memberSince': json['memberSince'] == null ? undefined : json['memberSince'],
188
+ 'membershipLabel': json['membershipLabel'] == null ? undefined : json['membershipLabel'],
189
+ 'userRole': json['userRole'],
190
+ 'defaultLocationId': json['defaultLocationId'] == null ? undefined : json['defaultLocationId'],
191
+ 'defaultLocationCode': json['defaultLocationCode'] == null ? undefined : json['defaultLocationCode'],
192
+ 'defaultLocationName': json['defaultLocationName'] == null ? undefined : json['defaultLocationName'],
193
+ };
194
+ }
195
+
196
+ export function ClubProfileDtoProfileToJSON(json: any): ClubProfileDtoProfile {
197
+ return ClubProfileDtoProfileToJSONTyped(json, false);
198
+ }
199
+
200
+ export function ClubProfileDtoProfileToJSONTyped(value?: ClubProfileDtoProfile | null, ignoreDiscriminator: boolean = false): any {
201
+ if (value == null) {
202
+ return value;
203
+ }
204
+
205
+ return {
206
+
207
+ 'customerId': value['customerId'],
208
+ 'customerCode': value['customerCode'],
209
+ 'customerName': value['customerName'],
210
+ 'avatarUrl': value['avatarUrl'],
211
+ 'headerUrl': value['headerUrl'],
212
+ 'sports': ((value['sports'] as Array<any>).map(SportToJSON)),
213
+ 'address': value['address'],
214
+ 'phone': value['phone'],
215
+ 'website': value['website'],
216
+ 'latitude': value['latitude'],
217
+ 'longitude': value['longitude'],
218
+ 'photoUrls': value['photoUrls'],
219
+ 'memberSince': value['memberSince'],
220
+ 'membershipLabel': value['membershipLabel'],
221
+ 'userRole': value['userRole'],
222
+ 'defaultLocationId': value['defaultLocationId'],
223
+ 'defaultLocationCode': value['defaultLocationCode'],
224
+ 'defaultLocationName': value['defaultLocationName'],
225
+ };
226
+ }
227
+
@@ -0,0 +1,128 @@
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 ClubProfileNextMatchDto
20
+ */
21
+ export interface ClubProfileNextMatchDto {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ClubProfileNextMatchDto
26
+ */
27
+ id: string;
28
+ /**
29
+ *
30
+ * @type {Date}
31
+ * @memberof ClubProfileNextMatchDto
32
+ */
33
+ date: Date;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof ClubProfileNextMatchDto
38
+ */
39
+ time: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof ClubProfileNextMatchDto
44
+ */
45
+ canchaName: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof ClubProfileNextMatchDto
50
+ */
51
+ sport: string;
52
+ /**
53
+ *
54
+ * @type {number}
55
+ * @memberof ClubProfileNextMatchDto
56
+ */
57
+ pricePerPerson?: number | null;
58
+ /**
59
+ *
60
+ * @type {number}
61
+ * @memberof ClubProfileNextMatchDto
62
+ */
63
+ confirmedPlayers: number;
64
+ /**
65
+ *
66
+ * @type {number}
67
+ * @memberof ClubProfileNextMatchDto
68
+ */
69
+ totalPlayers: number;
70
+ }
71
+
72
+ /**
73
+ * Check if a given object implements the ClubProfileNextMatchDto interface.
74
+ */
75
+ export function instanceOfClubProfileNextMatchDto(value: object): value is ClubProfileNextMatchDto {
76
+ if (!('id' in value) || value['id'] === undefined) return false;
77
+ if (!('date' in value) || value['date'] === undefined) return false;
78
+ if (!('time' in value) || value['time'] === undefined) return false;
79
+ if (!('canchaName' in value) || value['canchaName'] === undefined) return false;
80
+ if (!('sport' in value) || value['sport'] === undefined) return false;
81
+ if (!('confirmedPlayers' in value) || value['confirmedPlayers'] === undefined) return false;
82
+ if (!('totalPlayers' in value) || value['totalPlayers'] === undefined) return false;
83
+ return true;
84
+ }
85
+
86
+ export function ClubProfileNextMatchDtoFromJSON(json: any): ClubProfileNextMatchDto {
87
+ return ClubProfileNextMatchDtoFromJSONTyped(json, false);
88
+ }
89
+
90
+ export function ClubProfileNextMatchDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClubProfileNextMatchDto {
91
+ if (json == null) {
92
+ return json;
93
+ }
94
+ return {
95
+
96
+ 'id': json['id'],
97
+ 'date': (new Date(json['date'])),
98
+ 'time': json['time'],
99
+ 'canchaName': json['canchaName'],
100
+ 'sport': json['sport'],
101
+ 'pricePerPerson': json['pricePerPerson'] == null ? undefined : json['pricePerPerson'],
102
+ 'confirmedPlayers': json['confirmedPlayers'],
103
+ 'totalPlayers': json['totalPlayers'],
104
+ };
105
+ }
106
+
107
+ export function ClubProfileNextMatchDtoToJSON(json: any): ClubProfileNextMatchDto {
108
+ return ClubProfileNextMatchDtoToJSONTyped(json, false);
109
+ }
110
+
111
+ export function ClubProfileNextMatchDtoToJSONTyped(value?: ClubProfileNextMatchDto | null, ignoreDiscriminator: boolean = false): any {
112
+ if (value == null) {
113
+ return value;
114
+ }
115
+
116
+ return {
117
+
118
+ 'id': value['id'],
119
+ 'date': ((value['date']).toISOString()),
120
+ 'time': value['time'],
121
+ 'canchaName': value['canchaName'],
122
+ 'sport': value['sport'],
123
+ 'pricePerPerson': value['pricePerPerson'],
124
+ 'confirmedPlayers': value['confirmedPlayers'],
125
+ 'totalPlayers': value['totalPlayers'],
126
+ };
127
+ }
128
+
@@ -0,0 +1,148 @@
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 ClubSubscriptionOfferingDto
20
+ */
21
+ export interface ClubSubscriptionOfferingDto {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ClubSubscriptionOfferingDto
26
+ */
27
+ id: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ClubSubscriptionOfferingDto
32
+ */
33
+ name: string;
34
+ /**
35
+ * Subscription type (training, coach, membership, etc.)
36
+ * @type {string}
37
+ * @memberof ClubSubscriptionOfferingDto
38
+ */
39
+ type: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof ClubSubscriptionOfferingDto
44
+ */
45
+ coachName?: string | null;
46
+ /**
47
+ * Formatted day list e.g. "Lun, Mié, Vie"
48
+ * @type {string}
49
+ * @memberof ClubSubscriptionOfferingDto
50
+ */
51
+ days?: string | null;
52
+ /**
53
+ * Formatted time range e.g. "17:00 - 18:30"
54
+ * @type {string}
55
+ * @memberof ClubSubscriptionOfferingDto
56
+ */
57
+ time?: string | null;
58
+ /**
59
+ *
60
+ * @type {number}
61
+ * @memberof ClubSubscriptionOfferingDto
62
+ */
63
+ price?: number | null;
64
+ /**
65
+ *
66
+ * @type {string}
67
+ * @memberof ClubSubscriptionOfferingDto
68
+ */
69
+ period?: string | null;
70
+ /**
71
+ *
72
+ * @type {number}
73
+ * @memberof ClubSubscriptionOfferingDto
74
+ */
75
+ spotsAvailable?: number | null;
76
+ /**
77
+ *
78
+ * @type {string}
79
+ * @memberof ClubSubscriptionOfferingDto
80
+ */
81
+ sport?: string | null;
82
+ /**
83
+ *
84
+ * @type {string}
85
+ * @memberof ClubSubscriptionOfferingDto
86
+ */
87
+ bio?: string | null;
88
+ }
89
+
90
+ /**
91
+ * Check if a given object implements the ClubSubscriptionOfferingDto interface.
92
+ */
93
+ export function instanceOfClubSubscriptionOfferingDto(value: object): value is ClubSubscriptionOfferingDto {
94
+ if (!('id' in value) || value['id'] === undefined) return false;
95
+ if (!('name' in value) || value['name'] === undefined) return false;
96
+ if (!('type' in value) || value['type'] === undefined) return false;
97
+ return true;
98
+ }
99
+
100
+ export function ClubSubscriptionOfferingDtoFromJSON(json: any): ClubSubscriptionOfferingDto {
101
+ return ClubSubscriptionOfferingDtoFromJSONTyped(json, false);
102
+ }
103
+
104
+ export function ClubSubscriptionOfferingDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClubSubscriptionOfferingDto {
105
+ if (json == null) {
106
+ return json;
107
+ }
108
+ return {
109
+
110
+ 'id': json['id'],
111
+ 'name': json['name'],
112
+ 'type': json['type'],
113
+ 'coachName': json['coachName'] == null ? undefined : json['coachName'],
114
+ 'days': json['days'] == null ? undefined : json['days'],
115
+ 'time': json['time'] == null ? undefined : json['time'],
116
+ 'price': json['price'] == null ? undefined : json['price'],
117
+ 'period': json['period'] == null ? undefined : json['period'],
118
+ 'spotsAvailable': json['spotsAvailable'] == null ? undefined : json['spotsAvailable'],
119
+ 'sport': json['sport'] == null ? undefined : json['sport'],
120
+ 'bio': json['bio'] == null ? undefined : json['bio'],
121
+ };
122
+ }
123
+
124
+ export function ClubSubscriptionOfferingDtoToJSON(json: any): ClubSubscriptionOfferingDto {
125
+ return ClubSubscriptionOfferingDtoToJSONTyped(json, false);
126
+ }
127
+
128
+ export function ClubSubscriptionOfferingDtoToJSONTyped(value?: ClubSubscriptionOfferingDto | null, ignoreDiscriminator: boolean = false): any {
129
+ if (value == null) {
130
+ return value;
131
+ }
132
+
133
+ return {
134
+
135
+ 'id': value['id'],
136
+ 'name': value['name'],
137
+ 'type': value['type'],
138
+ 'coachName': value['coachName'],
139
+ 'days': value['days'],
140
+ 'time': value['time'],
141
+ 'price': value['price'],
142
+ 'period': value['period'],
143
+ 'spotsAvailable': value['spotsAvailable'],
144
+ 'sport': value['sport'],
145
+ 'bio': value['bio'],
146
+ };
147
+ }
148
+