@jugarhoy/api 1.1.25 → 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 (73) 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 +41 -1
  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/PlaySearchType.ts +3 -1
  46. package/models/PlaySubscription.ts +48 -0
  47. package/models/PlaySubscriptionCreateDto.ts +48 -0
  48. package/models/PlaySubscriptionListDto.ts +8 -0
  49. package/models/PlaySubscriptionType.ts +2 -1
  50. package/models/RecurringGame.ts +8 -0
  51. package/models/RecurringGameResponse.ts +16 -0
  52. package/models/RegisterClubParams.ts +16 -0
  53. package/models/RegisterForPlaySearchRequest.ts +73 -0
  54. package/models/Sport.ts +8 -0
  55. package/models/SubscriptionBill.ts +84 -1
  56. package/models/SubscriptionBillItemDto.ts +308 -0
  57. package/models/SubscriptionBillPageDto.ts +101 -0
  58. package/models/SubscriptionMemberDto.ts +134 -0
  59. package/models/SubscriptionMembersPageDto.ts +101 -0
  60. package/models/TeamFeedItemResponse.ts +8 -0
  61. package/models/TeamMemberResponse.ts +16 -0
  62. package/models/TeamPreviewResponse.ts +209 -0
  63. package/models/TeamPreviewResponseCoachesInner.ts +73 -0
  64. package/models/TeamResponse.ts +32 -0
  65. package/models/TeamType.ts +3 -2
  66. package/models/UpdateMemberPaymentConfigRequest.ts +65 -0
  67. package/models/UpdateRecurringGameRequest.ts +8 -0
  68. package/models/UpdateTeamRequest.ts +32 -0
  69. package/models/UploadBillReceipt200Response.ts +65 -0
  70. package/models/UserDto.ts +3 -4
  71. package/models/index.ts +28 -0
  72. package/package.json +1 -1
  73. package/runtime.ts +1 -1
@@ -188,6 +188,12 @@ export interface PlaySearchDTO {
188
188
  * @memberof PlaySearchDTO
189
189
  */
190
190
  status: PlaySearchStatus;
191
+ /**
192
+ * Whether the authenticated user is registered for this play search
193
+ * @type {boolean}
194
+ * @memberof PlaySearchDTO
195
+ */
196
+ isRegistered?: boolean;
191
197
  /**
192
198
  * Distance in meters (only present in nearby searches)
193
199
  * @type {number}
@@ -254,6 +260,7 @@ export function PlaySearchDTOFromJSONTyped(json: any, ignoreDiscriminator: boole
254
260
  'paymentMethod': json['paymentMethod'],
255
261
  'notes': json['notes'] == null ? undefined : json['notes'],
256
262
  'status': PlaySearchStatusFromJSON(json['status']),
263
+ 'isRegistered': json['isRegistered'] == null ? undefined : json['isRegistered'],
257
264
  'distance': json['distance'] == null ? undefined : json['distance'],
258
265
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
259
266
  };
@@ -291,6 +298,7 @@ export function PlaySearchDTOToJSONTyped(value?: PlaySearchDTO | null, ignoreDis
291
298
  'paymentMethod': value['paymentMethod'],
292
299
  'notes': value['notes'],
293
300
  'status': PlaySearchStatusToJSON(value['status']),
301
+ 'isRegistered': value['isRegistered'],
294
302
  'distance': value['distance'],
295
303
  'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
296
304
  };
@@ -202,6 +202,12 @@ export interface PlaySearchDetailDTO {
202
202
  * @memberof PlaySearchDetailDTO
203
203
  */
204
204
  status: PlaySearchStatus;
205
+ /**
206
+ * Whether the authenticated user is registered for this play search
207
+ * @type {boolean}
208
+ * @memberof PlaySearchDetailDTO
209
+ */
210
+ isRegistered?: boolean;
205
211
  /**
206
212
  * Distance in meters (only present in nearby searches)
207
213
  * @type {number}
@@ -286,6 +292,7 @@ export function PlaySearchDetailDTOFromJSONTyped(json: any, ignoreDiscriminator:
286
292
  'paymentMethod': json['paymentMethod'],
287
293
  'notes': json['notes'] == null ? undefined : json['notes'],
288
294
  'status': PlaySearchStatusFromJSON(json['status']),
295
+ 'isRegistered': json['isRegistered'] == null ? undefined : json['isRegistered'],
289
296
  'distance': json['distance'] == null ? undefined : json['distance'],
290
297
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
291
298
  'registrations': json['registrations'] == null ? undefined : ((json['registrations'] as Array<any>).map(PlaySearchDetailDTOAllOfRegistrationsFromJSON)),
@@ -326,6 +333,7 @@ export function PlaySearchDetailDTOToJSONTyped(value?: PlaySearchDetailDTO | nul
326
333
  'paymentMethod': value['paymentMethod'],
327
334
  'notes': value['notes'],
328
335
  'status': PlaySearchStatusToJSON(value['status']),
336
+ 'isRegistered': value['isRegistered'],
329
337
  'distance': value['distance'],
330
338
  'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
331
339
  'registrations': value['registrations'] == null ? undefined : ((value['registrations'] as Array<any>).map(PlaySearchDetailDTOAllOfRegistrationsToJSON)),
@@ -18,13 +18,15 @@
18
18
  * - FALTA1: Partido amateur que necesita jugadores
19
19
  * - CANCHA_ABIERTA: Torneo organizado por coach/jugador abierto a la comunidad
20
20
  * - CLASE_LIBRE: Clase con cupo libre de último momento
21
+ * - PARTIDO_SEMANAL: Partido recurrente semanal creado automáticamente por un equipo
21
22
  *
22
23
  * @export
23
24
  */
24
25
  export const PlaySearchType = {
25
26
  Falta1: 'FALTA1',
26
27
  CanchaAbierta: 'CANCHA_ABIERTA',
27
- ClaseLibre: 'CLASE_LIBRE'
28
+ ClaseLibre: 'CLASE_LIBRE',
29
+ PartidoSemanal: 'PARTIDO_SEMANAL'
28
30
  } as const;
29
31
  export type PlaySearchType = typeof PlaySearchType[keyof typeof PlaySearchType];
30
32
 
@@ -123,6 +123,30 @@ export interface PlaySubscription {
123
123
  * @memberof PlaySubscription
124
124
  */
125
125
  frequency: Frequency;
126
+ /**
127
+ * How many sessions per playFrequency period (e.g. 2 = "2 veces por semana")
128
+ * @type {number}
129
+ * @memberof PlaySubscription
130
+ */
131
+ playFrequencyCount?: number | null;
132
+ /**
133
+ * Play/training session frequency (weekly, biweekly, monthly) — display only, distinct from payment frequency
134
+ * @type {string}
135
+ * @memberof PlaySubscription
136
+ */
137
+ playFrequency?: string | null;
138
+ /**
139
+ * Sport enum value for this subscription
140
+ * @type {string}
141
+ * @memberof PlaySubscription
142
+ */
143
+ sport?: string | null;
144
+ /**
145
+ * Short description shown to members
146
+ * @type {string}
147
+ * @memberof PlaySubscription
148
+ */
149
+ bio?: string | null;
126
150
  /**
127
151
  * Days of the week when the subscription is valid
128
152
  * @type {Array<DayOfWeek>}
@@ -195,6 +219,18 @@ export interface PlaySubscription {
195
219
  * @memberof PlaySubscription
196
220
  */
197
221
  billTitular?: boolean;
222
+ /**
223
+ * Unique code per customer for identifying the subscription
224
+ * @type {string}
225
+ * @memberof PlaySubscription
226
+ */
227
+ code?: string | null;
228
+ /**
229
+ * ID of the customer payment config linked to this subscription
230
+ * @type {string}
231
+ * @memberof PlaySubscription
232
+ */
233
+ customerPaymentConfigId?: string | null;
198
234
  /**
199
235
  * Number of occurrences in the subscription (denormalized for performance)
200
236
  * @type {number}
@@ -272,6 +308,10 @@ export function PlaySubscriptionFromJSONTyped(json: any, ignoreDiscriminator: bo
272
308
  'startDate': (new Date(json['startDate'])),
273
309
  'endDate': json['endDate'] == null ? undefined : (new Date(json['endDate'])),
274
310
  'frequency': FrequencyFromJSON(json['frequency']),
311
+ 'playFrequencyCount': json['playFrequencyCount'] == null ? undefined : json['playFrequencyCount'],
312
+ 'playFrequency': json['playFrequency'] == null ? undefined : json['playFrequency'],
313
+ 'sport': json['sport'] == null ? undefined : json['sport'],
314
+ 'bio': json['bio'] == null ? undefined : json['bio'],
275
315
  'daysOfWeek': ((json['daysOfWeek'] as Array<any>).map(DayOfWeekFromJSON)),
276
316
  'hourFrom': json['hourFrom'],
277
317
  'hourTo': json['hourTo'],
@@ -284,6 +324,8 @@ export function PlaySubscriptionFromJSONTyped(json: any, ignoreDiscriminator: bo
284
324
  'status': ReserveStatusFromJSON(json['status']),
285
325
  'hasConflicts': json['hasConflicts'],
286
326
  'billTitular': json['billTitular'] == null ? undefined : json['billTitular'],
327
+ 'code': json['code'] == null ? undefined : json['code'],
328
+ 'customerPaymentConfigId': json['customerPaymentConfigId'] == null ? undefined : json['customerPaymentConfigId'],
287
329
  'occurrencesCount': json['occurrencesCount'] == null ? undefined : json['occurrencesCount'],
288
330
  'memberCount': json['memberCount'] == null ? undefined : json['memberCount'],
289
331
  'coachesCount': json['coachesCount'] == null ? undefined : json['coachesCount'],
@@ -312,6 +354,10 @@ export function PlaySubscriptionToJSONTyped(value?: PlaySubscription | null, ign
312
354
  'startDate': ((value['startDate']).toISOString()),
313
355
  'endDate': value['endDate'] == null ? undefined : ((value['endDate'] as any).toISOString()),
314
356
  'frequency': FrequencyToJSON(value['frequency']),
357
+ 'playFrequencyCount': value['playFrequencyCount'],
358
+ 'playFrequency': value['playFrequency'],
359
+ 'sport': value['sport'],
360
+ 'bio': value['bio'],
315
361
  'daysOfWeek': ((value['daysOfWeek'] as Array<any>).map(DayOfWeekToJSON)),
316
362
  'hourFrom': value['hourFrom'],
317
363
  'hourTo': value['hourTo'],
@@ -324,6 +370,8 @@ export function PlaySubscriptionToJSONTyped(value?: PlaySubscription | null, ign
324
370
  'status': ReserveStatusToJSON(value['status']),
325
371
  'hasConflicts': value['hasConflicts'],
326
372
  'billTitular': value['billTitular'],
373
+ 'code': value['code'],
374
+ 'customerPaymentConfigId': value['customerPaymentConfigId'],
327
375
  'occurrencesCount': value['occurrencesCount'],
328
376
  'memberCount': value['memberCount'],
329
377
  'coachesCount': value['coachesCount'],
@@ -126,6 +126,42 @@ export interface PlaySubscriptionCreateDto {
126
126
  * @memberof PlaySubscriptionCreateDto
127
127
  */
128
128
  billTitular?: boolean;
129
+ /**
130
+ * Unique code per customer for identifying the subscription
131
+ * @type {string}
132
+ * @memberof PlaySubscriptionCreateDto
133
+ */
134
+ code?: string | null;
135
+ /**
136
+ * ID of the customer payment config linked to this subscription
137
+ * @type {string}
138
+ * @memberof PlaySubscriptionCreateDto
139
+ */
140
+ customerPaymentConfigId?: string | null;
141
+ /**
142
+ * How many sessions per playFrequency period (e.g. 2 = "2 veces por semana")
143
+ * @type {number}
144
+ * @memberof PlaySubscriptionCreateDto
145
+ */
146
+ playFrequencyCount?: number | null;
147
+ /**
148
+ * Play/training session frequency for display (weekly, biweekly, monthly)
149
+ * @type {string}
150
+ * @memberof PlaySubscriptionCreateDto
151
+ */
152
+ playFrequency?: string | null;
153
+ /**
154
+ * Sport enum value for this subscription
155
+ * @type {string}
156
+ * @memberof PlaySubscriptionCreateDto
157
+ */
158
+ sport?: string | null;
159
+ /**
160
+ * Short description shown to members
161
+ * @type {string}
162
+ * @memberof PlaySubscriptionCreateDto
163
+ */
164
+ bio?: string | null;
129
165
  }
130
166
 
131
167
 
@@ -169,6 +205,12 @@ export function PlaySubscriptionCreateDtoFromJSONTyped(json: any, ignoreDiscrimi
169
205
  'coachIds': json['coachIds'] == null ? undefined : json['coachIds'],
170
206
  'paymentTerms': json['paymentTerms'] == null ? undefined : PaymentTermsFromJSON(json['paymentTerms']),
171
207
  'billTitular': json['billTitular'] == null ? undefined : json['billTitular'],
208
+ 'code': json['code'] == null ? undefined : json['code'],
209
+ 'customerPaymentConfigId': json['customerPaymentConfigId'] == null ? undefined : json['customerPaymentConfigId'],
210
+ 'playFrequencyCount': json['playFrequencyCount'] == null ? undefined : json['playFrequencyCount'],
211
+ 'playFrequency': json['playFrequency'] == null ? undefined : json['playFrequency'],
212
+ 'sport': json['sport'] == null ? undefined : json['sport'],
213
+ 'bio': json['bio'] == null ? undefined : json['bio'],
172
214
  };
173
215
  }
174
216
 
@@ -196,6 +238,12 @@ export function PlaySubscriptionCreateDtoToJSONTyped(value?: PlaySubscriptionCre
196
238
  'coachIds': value['coachIds'],
197
239
  'paymentTerms': PaymentTermsToJSON(value['paymentTerms']),
198
240
  'billTitular': value['billTitular'],
241
+ 'code': value['code'],
242
+ 'customerPaymentConfigId': value['customerPaymentConfigId'],
243
+ 'playFrequencyCount': value['playFrequencyCount'],
244
+ 'playFrequency': value['playFrequency'],
245
+ 'sport': value['sport'],
246
+ 'bio': value['bio'],
199
247
  };
200
248
  }
201
249
 
@@ -136,6 +136,12 @@ export interface PlaySubscriptionListDto {
136
136
  * @memberof PlaySubscriptionListDto
137
137
  */
138
138
  coachesCount: number;
139
+ /**
140
+ * Unique code per customer for identifying the subscription
141
+ * @type {string}
142
+ * @memberof PlaySubscriptionListDto
143
+ */
144
+ code?: string | null;
139
145
  /**
140
146
  * Date when the subscription was created
141
147
  * @type {Date}
@@ -200,6 +206,7 @@ export function PlaySubscriptionListDtoFromJSONTyped(json: any, ignoreDiscrimina
200
206
  'occurrencesCount': json['occurrencesCount'],
201
207
  'memberCount': json['memberCount'],
202
208
  'coachesCount': json['coachesCount'],
209
+ 'code': json['code'] == null ? undefined : json['code'],
203
210
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
204
211
  'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
205
212
  };
@@ -233,6 +240,7 @@ export function PlaySubscriptionListDtoToJSONTyped(value?: PlaySubscriptionListD
233
240
  'occurrencesCount': value['occurrencesCount'],
234
241
  'memberCount': value['memberCount'],
235
242
  'coachesCount': value['coachesCount'],
243
+ 'code': value['code'],
236
244
  'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
237
245
  'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
238
246
  };
@@ -21,7 +21,8 @@ export const PlaySubscriptionType = {
21
21
  Play: 'play',
22
22
  Coach: 'coach',
23
23
  Training: 'training',
24
- Tournament: 'tournament'
24
+ Tournament: 'tournament',
25
+ Membership: 'membership'
25
26
  } as const;
26
27
  export type PlaySubscriptionType = typeof PlaySubscriptionType[keyof typeof PlaySubscriptionType];
27
28
 
@@ -61,6 +61,12 @@ export interface RecurringGame {
61
61
  * @memberof RecurringGame
62
62
  */
63
63
  precio?: number | null;
64
+ /**
65
+ * Number of players needed per match (0 = no limit)
66
+ * @type {number}
67
+ * @memberof RecurringGame
68
+ */
69
+ quota?: number;
64
70
  /**
65
71
  * How many days before match to create PlaySearch
66
72
  * @type {number}
@@ -130,6 +136,7 @@ export function RecurringGameFromJSONTyped(json: any, ignoreDiscriminator: boole
130
136
  'duration': json['duration'],
131
137
  'clubPlaceId': json['clubPlaceId'],
132
138
  'precio': json['precio'] == null ? undefined : json['precio'],
139
+ 'quota': json['quota'] == null ? undefined : json['quota'],
133
140
  'daysBeforeMatch': json['daysBeforeMatch'],
134
141
  'isActive': json['isActive'],
135
142
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
@@ -155,6 +162,7 @@ export function RecurringGameToJSONTyped(value?: RecurringGame | null, ignoreDis
155
162
  'duration': value['duration'],
156
163
  'clubPlaceId': value['clubPlaceId'],
157
164
  'precio': value['precio'],
165
+ 'quota': value['quota'],
158
166
  'daysBeforeMatch': value['daysBeforeMatch'],
159
167
  'isActive': value['isActive'],
160
168
  'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
@@ -55,12 +55,24 @@ export interface RecurringGameResponse {
55
55
  * @memberof RecurringGameResponse
56
56
  */
57
57
  clubPlaceId: string;
58
+ /**
59
+ * Place name for display
60
+ * @type {string}
61
+ * @memberof RecurringGameResponse
62
+ */
63
+ clubPlaceName?: string | null;
58
64
  /**
59
65
  *
60
66
  * @type {number}
61
67
  * @memberof RecurringGameResponse
62
68
  */
63
69
  precio?: number | null;
70
+ /**
71
+ *
72
+ * @type {number}
73
+ * @memberof RecurringGameResponse
74
+ */
75
+ quota?: number;
64
76
  /**
65
77
  *
66
78
  * @type {number}
@@ -120,7 +132,9 @@ export function RecurringGameResponseFromJSONTyped(json: any, ignoreDiscriminato
120
132
  'time': json['time'],
121
133
  'duration': json['duration'],
122
134
  'clubPlaceId': json['clubPlaceId'],
135
+ 'clubPlaceName': json['clubPlaceName'] == null ? undefined : json['clubPlaceName'],
123
136
  'precio': json['precio'] == null ? undefined : json['precio'],
137
+ 'quota': json['quota'] == null ? undefined : json['quota'],
124
138
  'daysBeforeMatch': json['daysBeforeMatch'],
125
139
  'isActive': json['isActive'],
126
140
  'createdAt': (new Date(json['createdAt'])),
@@ -145,7 +159,9 @@ export function RecurringGameResponseToJSONTyped(value?: RecurringGameResponse |
145
159
  'time': value['time'],
146
160
  'duration': value['duration'],
147
161
  'clubPlaceId': value['clubPlaceId'],
162
+ 'clubPlaceName': value['clubPlaceName'],
148
163
  'precio': value['precio'],
164
+ 'quota': value['quota'],
149
165
  'daysBeforeMatch': value['daysBeforeMatch'],
150
166
  'isActive': value['isActive'],
151
167
  'createdAt': ((value['createdAt']).toISOString()),
@@ -111,6 +111,18 @@ export interface RegisterClubParams {
111
111
  * @memberof RegisterClubParams
112
112
  */
113
113
  placeId: string;
114
+ /**
115
+ * Base64 encoded avatar image (data:image/jpeg;base64,...)
116
+ * @type {string}
117
+ * @memberof RegisterClubParams
118
+ */
119
+ avatarBase64?: string;
120
+ /**
121
+ * Base64 encoded header/banner image (data:image/jpeg;base64,...)
122
+ * @type {string}
123
+ * @memberof RegisterClubParams
124
+ */
125
+ headerBase64?: string;
114
126
  }
115
127
 
116
128
  /**
@@ -158,6 +170,8 @@ export function RegisterClubParamsFromJSONTyped(json: any, ignoreDiscriminator:
158
170
  'latitude': json['latitude'],
159
171
  'longitude': json['longitude'],
160
172
  'placeId': json['placeId'],
173
+ 'avatarBase64': json['avatarBase64'] == null ? undefined : json['avatarBase64'],
174
+ 'headerBase64': json['headerBase64'] == null ? undefined : json['headerBase64'],
161
175
  };
162
176
  }
163
177
 
@@ -186,6 +200,8 @@ export function RegisterClubParamsToJSONTyped(value?: RegisterClubParams | null,
186
200
  'latitude': value['latitude'],
187
201
  'longitude': value['longitude'],
188
202
  'placeId': value['placeId'],
203
+ 'avatarBase64': value['avatarBase64'],
204
+ 'headerBase64': value['headerBase64'],
189
205
  };
190
206
  }
191
207
 
@@ -0,0 +1,73 @@
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 RegisterForPlaySearchRequest
20
+ */
21
+ export interface RegisterForPlaySearchRequest {
22
+ /**
23
+ * Total number of players to register (including yourself)
24
+ * @type {number}
25
+ * @memberof RegisterForPlaySearchRequest
26
+ */
27
+ playersCount?: number;
28
+ /**
29
+ * Names of companions (required if playersCount > 1)
30
+ * @type {Array<string>}
31
+ * @memberof RegisterForPlaySearchRequest
32
+ */
33
+ companionNames?: Array<string>;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the RegisterForPlaySearchRequest interface.
38
+ */
39
+ export function instanceOfRegisterForPlaySearchRequest(value: object): value is RegisterForPlaySearchRequest {
40
+ return true;
41
+ }
42
+
43
+ export function RegisterForPlaySearchRequestFromJSON(json: any): RegisterForPlaySearchRequest {
44
+ return RegisterForPlaySearchRequestFromJSONTyped(json, false);
45
+ }
46
+
47
+ export function RegisterForPlaySearchRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegisterForPlaySearchRequest {
48
+ if (json == null) {
49
+ return json;
50
+ }
51
+ return {
52
+
53
+ 'playersCount': json['playersCount'] == null ? undefined : json['playersCount'],
54
+ 'companionNames': json['companionNames'] == null ? undefined : json['companionNames'],
55
+ };
56
+ }
57
+
58
+ export function RegisterForPlaySearchRequestToJSON(json: any): RegisterForPlaySearchRequest {
59
+ return RegisterForPlaySearchRequestToJSONTyped(json, false);
60
+ }
61
+
62
+ export function RegisterForPlaySearchRequestToJSONTyped(value?: RegisterForPlaySearchRequest | null, ignoreDiscriminator: boolean = false): any {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+
67
+ return {
68
+
69
+ 'playersCount': value['playersCount'],
70
+ 'companionNames': value['companionNames'],
71
+ };
72
+ }
73
+
package/models/Sport.ts CHANGED
@@ -36,6 +36,14 @@ export const Sport = {
36
36
  Golf: 'GOLF',
37
37
  Swimming: 'SWIMMING',
38
38
  Gym: 'GYM',
39
+ Running: 'RUNNING',
40
+ Boxing: 'BOXING',
41
+ Crossfit: 'CROSSFIT',
42
+ Cycling: 'CYCLING',
43
+ Polo: 'POLO',
44
+ Judo: 'JUDO',
45
+ Taekwondo: 'TAEKWONDO',
46
+ Karate: 'KARATE',
39
47
  Other: 'OTHER'
40
48
  } as const;
41
49
  export type Sport = typeof Sport[keyof typeof Sport];
@@ -83,7 +83,7 @@ export interface SubscriptionBill {
83
83
  */
84
84
  status: PaymentStatus;
85
85
  /**
86
- * Amount to be paid
86
+ * Amount to be paid (after discount)
87
87
  * @type {number}
88
88
  * @memberof SubscriptionBill
89
89
  */
@@ -106,6 +106,66 @@ export interface SubscriptionBill {
106
106
  * @memberof SubscriptionBill
107
107
  */
108
108
  notes?: string | null;
109
+ /**
110
+ * Period number (e.g., Week 3, Month 4, Quarter 1)
111
+ * @type {number}
112
+ * @memberof SubscriptionBill
113
+ */
114
+ periodNumber: number;
115
+ /**
116
+ * The year this billing period belongs to
117
+ * @type {number}
118
+ * @memberof SubscriptionBill
119
+ */
120
+ billingYear: number;
121
+ /**
122
+ * Discount percentage applied at generation time
123
+ * @type {number}
124
+ * @memberof SubscriptionBill
125
+ */
126
+ discount: number;
127
+ /**
128
+ * ID of the payment config associated with this bill
129
+ * @type {string}
130
+ * @memberof SubscriptionBill
131
+ */
132
+ customerPaymentConfigId?: string | null;
133
+ /**
134
+ * Name of the payment config (denormalized for display)
135
+ * @type {string}
136
+ * @memberof SubscriptionBill
137
+ */
138
+ customerPaymentConfigName?: string | null;
139
+ /**
140
+ * Actual amount paid
141
+ * @type {number}
142
+ * @memberof SubscriptionBill
143
+ */
144
+ paidAmount?: number | null;
145
+ /**
146
+ * Receipt/comprobante number
147
+ * @type {string}
148
+ * @memberof SubscriptionBill
149
+ */
150
+ receiptNumber?: string | null;
151
+ /**
152
+ * Reference or transfer number
153
+ * @type {string}
154
+ * @memberof SubscriptionBill
155
+ */
156
+ referenceNumber?: string | null;
157
+ /**
158
+ * When payment was made
159
+ * @type {Date}
160
+ * @memberof SubscriptionBill
161
+ */
162
+ paymentDate?: Date | null;
163
+ /**
164
+ * Firebase Storage URL for receipt attachment
165
+ * @type {string}
166
+ * @memberof SubscriptionBill
167
+ */
168
+ receiptUrl?: string | null;
109
169
  /**
110
170
  * When the bill was created
111
171
  * @type {Date}
@@ -136,6 +196,9 @@ export function instanceOfSubscriptionBill(value: object): value is Subscription
136
196
  if (!('status' in value) || value['status'] === undefined) return false;
137
197
  if (!('amount' in value) || value['amount'] === undefined) return false;
138
198
  if (!('currency' in value) || value['currency'] === undefined) return false;
199
+ if (!('periodNumber' in value) || value['periodNumber'] === undefined) return false;
200
+ if (!('billingYear' in value) || value['billingYear'] === undefined) return false;
201
+ if (!('discount' in value) || value['discount'] === undefined) return false;
139
202
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
140
203
  if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
141
204
  return true;
@@ -163,6 +226,16 @@ export function SubscriptionBillFromJSONTyped(json: any, ignoreDiscriminator: bo
163
226
  'currency': json['currency'],
164
227
  'paymentDetailId': json['paymentDetailId'] == null ? undefined : json['paymentDetailId'],
165
228
  'notes': json['notes'] == null ? undefined : json['notes'],
229
+ 'periodNumber': json['periodNumber'],
230
+ 'billingYear': json['billingYear'],
231
+ 'discount': json['discount'],
232
+ 'customerPaymentConfigId': json['customerPaymentConfigId'] == null ? undefined : json['customerPaymentConfigId'],
233
+ 'customerPaymentConfigName': json['customerPaymentConfigName'] == null ? undefined : json['customerPaymentConfigName'],
234
+ 'paidAmount': json['paidAmount'] == null ? undefined : json['paidAmount'],
235
+ 'receiptNumber': json['receiptNumber'] == null ? undefined : json['receiptNumber'],
236
+ 'referenceNumber': json['referenceNumber'] == null ? undefined : json['referenceNumber'],
237
+ 'paymentDate': json['paymentDate'] == null ? undefined : (new Date(json['paymentDate'])),
238
+ 'receiptUrl': json['receiptUrl'] == null ? undefined : json['receiptUrl'],
166
239
  'createdAt': (new Date(json['createdAt'])),
167
240
  'updatedAt': (new Date(json['updatedAt'])),
168
241
  };
@@ -191,6 +264,16 @@ export function SubscriptionBillToJSONTyped(value?: SubscriptionBill | null, ign
191
264
  'currency': value['currency'],
192
265
  'paymentDetailId': value['paymentDetailId'],
193
266
  'notes': value['notes'],
267
+ 'periodNumber': value['periodNumber'],
268
+ 'billingYear': value['billingYear'],
269
+ 'discount': value['discount'],
270
+ 'customerPaymentConfigId': value['customerPaymentConfigId'],
271
+ 'customerPaymentConfigName': value['customerPaymentConfigName'],
272
+ 'paidAmount': value['paidAmount'],
273
+ 'receiptNumber': value['receiptNumber'],
274
+ 'referenceNumber': value['referenceNumber'],
275
+ 'paymentDate': value['paymentDate'] == null ? undefined : ((value['paymentDate'] as any).toISOString()),
276
+ 'receiptUrl': value['receiptUrl'],
194
277
  'createdAt': ((value['createdAt']).toISOString()),
195
278
  'updatedAt': ((value['updatedAt']).toISOString()),
196
279
  };