@jugarhoy/api 1.1.34 → 1.1.36

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.
@@ -120,23 +120,23 @@ export interface CreatePlaySearchRequest {
120
120
  */
121
121
  currency?: string | null;
122
122
  /**
123
- *
124
- * @type {string}
123
+ * Accepted payment methods (CASH, TRANSFER, MERCADOPAGO)
124
+ * @type {Array<string>}
125
125
  * @memberof CreatePlaySearchRequest
126
126
  */
127
- paymentMethod: string;
127
+ paymentMethods: Array<string>;
128
128
  /**
129
- *
130
- * @type {string}
129
+ * Whether the owner wants to register as a player
130
+ * @type {boolean}
131
131
  * @memberof CreatePlaySearchRequest
132
132
  */
133
- notes?: string | null;
133
+ isOwnerPlayer?: boolean;
134
134
  /**
135
135
  *
136
136
  * @type {string}
137
137
  * @memberof CreatePlaySearchRequest
138
138
  */
139
- reserveId?: string | null;
139
+ notes?: string | null;
140
140
  /**
141
141
  * If true, not shown in community searches. Visible only from team view.
142
142
  * @type {boolean}
@@ -175,7 +175,7 @@ export function instanceOfCreatePlaySearchRequest(value: object): value is Creat
175
175
  if (!('duration' in value) || value['duration'] === undefined) return false;
176
176
  if (!('quota' in value) || value['quota'] === undefined) return false;
177
177
  if (!('registrationDeadline' in value) || value['registrationDeadline'] === undefined) return false;
178
- if (!('paymentMethod' in value) || value['paymentMethod'] === undefined) return false;
178
+ if (!('paymentMethods' in value) || value['paymentMethods'] === undefined) return false;
179
179
  return true;
180
180
  }
181
181
 
@@ -202,9 +202,9 @@ export function CreatePlaySearchRequestFromJSONTyped(json: any, ignoreDiscrimina
202
202
  'registrationDeadline': (new Date(json['registrationDeadline'])),
203
203
  'price': json['price'] == null ? undefined : json['price'],
204
204
  'currency': json['currency'] == null ? undefined : json['currency'],
205
- 'paymentMethod': json['paymentMethod'],
205
+ 'paymentMethods': json['paymentMethods'],
206
+ 'isOwnerPlayer': json['isOwnerPlayer'] == null ? undefined : json['isOwnerPlayer'],
206
207
  'notes': json['notes'] == null ? undefined : json['notes'],
207
- 'reserveId': json['reserveId'] == null ? undefined : json['reserveId'],
208
208
  'isPrivate': json['isPrivate'] == null ? undefined : json['isPrivate'],
209
209
  'teamId': json['teamId'] == null ? undefined : json['teamId'],
210
210
  };
@@ -234,9 +234,9 @@ export function CreatePlaySearchRequestToJSONTyped(value?: CreatePlaySearchReque
234
234
  'registrationDeadline': ((value['registrationDeadline']).toISOString()),
235
235
  'price': value['price'],
236
236
  'currency': value['currency'],
237
- 'paymentMethod': value['paymentMethod'],
237
+ 'paymentMethods': value['paymentMethods'],
238
+ 'isOwnerPlayer': value['isOwnerPlayer'],
238
239
  'notes': value['notes'],
239
- 'reserveId': value['reserveId'],
240
240
  'isPrivate': value['isPrivate'],
241
241
  'teamId': value['teamId'],
242
242
  };
@@ -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 GetUserMercadoPagoAuthUrl200Response
20
+ */
21
+ export interface GetUserMercadoPagoAuthUrl200Response {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof GetUserMercadoPagoAuthUrl200Response
26
+ */
27
+ authUrl?: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the GetUserMercadoPagoAuthUrl200Response interface.
32
+ */
33
+ export function instanceOfGetUserMercadoPagoAuthUrl200Response(value: object): value is GetUserMercadoPagoAuthUrl200Response {
34
+ return true;
35
+ }
36
+
37
+ export function GetUserMercadoPagoAuthUrl200ResponseFromJSON(json: any): GetUserMercadoPagoAuthUrl200Response {
38
+ return GetUserMercadoPagoAuthUrl200ResponseFromJSONTyped(json, false);
39
+ }
40
+
41
+ export function GetUserMercadoPagoAuthUrl200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetUserMercadoPagoAuthUrl200Response {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+
47
+ 'authUrl': json['authUrl'] == null ? undefined : json['authUrl'],
48
+ };
49
+ }
50
+
51
+ export function GetUserMercadoPagoAuthUrl200ResponseToJSON(json: any): GetUserMercadoPagoAuthUrl200Response {
52
+ return GetUserMercadoPagoAuthUrl200ResponseToJSONTyped(json, false);
53
+ }
54
+
55
+ export function GetUserMercadoPagoAuthUrl200ResponseToJSONTyped(value?: GetUserMercadoPagoAuthUrl200Response | null, ignoreDiscriminator: boolean = false): any {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+
60
+ return {
61
+
62
+ 'authUrl': value['authUrl'],
63
+ };
64
+ }
65
+
@@ -119,6 +119,12 @@ export interface PaymentDetail {
119
119
  * @memberof PaymentDetail
120
120
  */
121
121
  mobile?: boolean;
122
+ /**
123
+ * MercadoPago checkout URL
124
+ * @type {string}
125
+ * @memberof PaymentDetail
126
+ */
127
+ initPoint?: string | null;
122
128
  }
123
129
 
124
130
 
@@ -161,6 +167,7 @@ export function PaymentDetailFromJSONTyped(json: any, ignoreDiscriminator: boole
161
167
  'total': json['total'],
162
168
  'currency': json['currency'],
163
169
  'mobile': json['mobile'] == null ? undefined : json['mobile'],
170
+ 'initPoint': json['initPoint'] == null ? undefined : json['initPoint'],
164
171
  };
165
172
  }
166
173
 
@@ -188,6 +195,7 @@ export function PaymentDetailToJSONTyped(value?: PaymentDetail | null, ignoreDis
188
195
  'total': value['total'],
189
196
  'currency': value['currency'],
190
197
  'mobile': value['mobile'],
198
+ 'initPoint': value['initPoint'],
191
199
  };
192
200
  }
193
201
 
@@ -151,11 +151,17 @@ export interface PlaySearch {
151
151
  */
152
152
  currency?: string | null;
153
153
  /**
154
- * Payment method (CASH, TRANSFER, MERCADOPAGO)
155
- * @type {string}
154
+ * Accepted payment methods (CASH, TRANSFER, MERCADOPAGO)
155
+ * @type {Array<string>}
156
+ * @memberof PlaySearch
157
+ */
158
+ paymentMethods: Array<string>;
159
+ /**
160
+ * Whether the owner registered as a player
161
+ * @type {boolean}
156
162
  * @memberof PlaySearch
157
163
  */
158
- paymentMethod: string;
164
+ isOwnerPlayer?: boolean;
159
165
  /**
160
166
  * Additional notes from the creator
161
167
  * @type {string}
@@ -168,12 +174,6 @@ export interface PlaySearch {
168
174
  * @memberof PlaySearch
169
175
  */
170
176
  status: PlaySearchStatus;
171
- /**
172
- * Optional link to a reservation
173
- * @type {string}
174
- * @memberof PlaySearch
175
- */
176
- reserveId?: string | null;
177
177
  /**
178
178
  *
179
179
  * @type {Date}
@@ -252,7 +252,7 @@ export function instanceOfPlaySearch(value: object): value is PlaySearch {
252
252
  if (!('quota' in value) || value['quota'] === undefined) return false;
253
253
  if (!('quotaFilledCount' in value) || value['quotaFilledCount'] === undefined) return false;
254
254
  if (!('registrationDeadline' in value) || value['registrationDeadline'] === undefined) return false;
255
- if (!('paymentMethod' in value) || value['paymentMethod'] === undefined) return false;
255
+ if (!('paymentMethods' in value) || value['paymentMethods'] === undefined) return false;
256
256
  if (!('status' in value) || value['status'] === undefined) return false;
257
257
  return true;
258
258
  }
@@ -284,10 +284,10 @@ export function PlaySearchFromJSONTyped(json: any, ignoreDiscriminator: boolean)
284
284
  'registrationDeadline': (new Date(json['registrationDeadline'])),
285
285
  'price': json['price'] == null ? undefined : json['price'],
286
286
  'currency': json['currency'] == null ? undefined : json['currency'],
287
- 'paymentMethod': json['paymentMethod'],
287
+ 'paymentMethods': json['paymentMethods'],
288
+ 'isOwnerPlayer': json['isOwnerPlayer'] == null ? undefined : json['isOwnerPlayer'],
288
289
  'notes': json['notes'] == null ? undefined : json['notes'],
289
290
  'status': PlaySearchStatusFromJSON(json['status']),
290
- 'reserveId': json['reserveId'] == null ? undefined : json['reserveId'],
291
291
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
292
292
  'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
293
293
  'alertSentDate': json['alertSentDate'] == null ? undefined : (new Date(json['alertSentDate'])),
@@ -329,10 +329,10 @@ export function PlaySearchToJSONTyped(value?: PlaySearch | null, ignoreDiscrimin
329
329
  'registrationDeadline': ((value['registrationDeadline']).toISOString()),
330
330
  'price': value['price'],
331
331
  'currency': value['currency'],
332
- 'paymentMethod': value['paymentMethod'],
332
+ 'paymentMethods': value['paymentMethods'],
333
+ 'isOwnerPlayer': value['isOwnerPlayer'],
333
334
  'notes': value['notes'],
334
335
  'status': PlaySearchStatusToJSON(value['status']),
335
- 'reserveId': value['reserveId'],
336
336
  'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
337
337
  'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
338
338
  'alertSentDate': value['alertSentDate'] == null ? undefined : ((value['alertSentDate'] as any).toISOString()),
@@ -171,11 +171,11 @@ export interface PlaySearchDTO {
171
171
  */
172
172
  currency?: string | null;
173
173
  /**
174
- *
175
- * @type {string}
174
+ * Accepted payment methods (CASH, TRANSFER, MERCADOPAGO)
175
+ * @type {Array<string>}
176
176
  * @memberof PlaySearchDTO
177
177
  */
178
- paymentMethod: string;
178
+ paymentMethods: Array<string>;
179
179
  /**
180
180
  *
181
181
  * @type {string}
@@ -224,7 +224,7 @@ export function instanceOfPlaySearchDTO(value: object): value is PlaySearchDTO {
224
224
  if (!('quota' in value) || value['quota'] === undefined) return false;
225
225
  if (!('quotaFilledCount' in value) || value['quotaFilledCount'] === undefined) return false;
226
226
  if (!('registrationDeadline' in value) || value['registrationDeadline'] === undefined) return false;
227
- if (!('paymentMethod' in value) || value['paymentMethod'] === undefined) return false;
227
+ if (!('paymentMethods' in value) || value['paymentMethods'] === undefined) return false;
228
228
  if (!('status' in value) || value['status'] === undefined) return false;
229
229
  return true;
230
230
  }
@@ -257,7 +257,7 @@ export function PlaySearchDTOFromJSONTyped(json: any, ignoreDiscriminator: boole
257
257
  'registrationDeadline': (new Date(json['registrationDeadline'])),
258
258
  'price': json['price'] == null ? undefined : json['price'],
259
259
  'currency': json['currency'] == null ? undefined : json['currency'],
260
- 'paymentMethod': json['paymentMethod'],
260
+ 'paymentMethods': json['paymentMethods'],
261
261
  'notes': json['notes'] == null ? undefined : json['notes'],
262
262
  'status': PlaySearchStatusFromJSON(json['status']),
263
263
  'isRegistered': json['isRegistered'] == null ? undefined : json['isRegistered'],
@@ -295,7 +295,7 @@ export function PlaySearchDTOToJSONTyped(value?: PlaySearchDTO | null, ignoreDis
295
295
  'registrationDeadline': ((value['registrationDeadline']).toISOString()),
296
296
  'price': value['price'],
297
297
  'currency': value['currency'],
298
- 'paymentMethod': value['paymentMethod'],
298
+ 'paymentMethods': value['paymentMethods'],
299
299
  'notes': value['notes'],
300
300
  'status': PlaySearchStatusToJSON(value['status']),
301
301
  'isRegistered': value['isRegistered'],
@@ -185,11 +185,11 @@ export interface PlaySearchDetailDTO {
185
185
  */
186
186
  currency?: string | null;
187
187
  /**
188
- *
189
- * @type {string}
188
+ * Accepted payment methods (CASH, TRANSFER, MERCADOPAGO)
189
+ * @type {Array<string>}
190
190
  * @memberof PlaySearchDetailDTO
191
191
  */
192
- paymentMethod: string;
192
+ paymentMethods: Array<string>;
193
193
  /**
194
194
  *
195
195
  * @type {string}
@@ -256,7 +256,7 @@ export function instanceOfPlaySearchDetailDTO(value: object): value is PlaySearc
256
256
  if (!('quota' in value) || value['quota'] === undefined) return false;
257
257
  if (!('quotaFilledCount' in value) || value['quotaFilledCount'] === undefined) return false;
258
258
  if (!('registrationDeadline' in value) || value['registrationDeadline'] === undefined) return false;
259
- if (!('paymentMethod' in value) || value['paymentMethod'] === undefined) return false;
259
+ if (!('paymentMethods' in value) || value['paymentMethods'] === undefined) return false;
260
260
  if (!('status' in value) || value['status'] === undefined) return false;
261
261
  return true;
262
262
  }
@@ -289,7 +289,7 @@ export function PlaySearchDetailDTOFromJSONTyped(json: any, ignoreDiscriminator:
289
289
  'registrationDeadline': (new Date(json['registrationDeadline'])),
290
290
  'price': json['price'] == null ? undefined : json['price'],
291
291
  'currency': json['currency'] == null ? undefined : json['currency'],
292
- 'paymentMethod': json['paymentMethod'],
292
+ 'paymentMethods': json['paymentMethods'],
293
293
  'notes': json['notes'] == null ? undefined : json['notes'],
294
294
  'status': PlaySearchStatusFromJSON(json['status']),
295
295
  'isRegistered': json['isRegistered'] == null ? undefined : json['isRegistered'],
@@ -330,7 +330,7 @@ export function PlaySearchDetailDTOToJSONTyped(value?: PlaySearchDetailDTO | nul
330
330
  'registrationDeadline': ((value['registrationDeadline']).toISOString()),
331
331
  'price': value['price'],
332
332
  'currency': value['currency'],
333
- 'paymentMethod': value['paymentMethod'],
333
+ 'paymentMethods': value['paymentMethods'],
334
334
  'notes': value['notes'],
335
335
  'status': PlaySearchStatusToJSON(value['status']),
336
336
  'isRegistered': value['isRegistered'],
@@ -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 { PlaySearchManagementDtoRegistrationsInner } from './PlaySearchManagementDtoRegistrationsInner';
17
+ import {
18
+ PlaySearchManagementDtoRegistrationsInnerFromJSON,
19
+ PlaySearchManagementDtoRegistrationsInnerFromJSONTyped,
20
+ PlaySearchManagementDtoRegistrationsInnerToJSON,
21
+ PlaySearchManagementDtoRegistrationsInnerToJSONTyped,
22
+ } from './PlaySearchManagementDtoRegistrationsInner';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface PlaySearchManagementDto
28
+ */
29
+ export interface PlaySearchManagementDto {
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof PlaySearchManagementDto
34
+ */
35
+ playSearchId?: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof PlaySearchManagementDto
40
+ */
41
+ status?: string;
42
+ /**
43
+ *
44
+ * @type {Array<PlaySearchManagementDtoRegistrationsInner>}
45
+ * @memberof PlaySearchManagementDto
46
+ */
47
+ registrations?: Array<PlaySearchManagementDtoRegistrationsInner>;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof PlaySearchManagementDto
52
+ */
53
+ confirmedCount?: number;
54
+ /**
55
+ *
56
+ * @type {number}
57
+ * @memberof PlaySearchManagementDto
58
+ */
59
+ totalCount?: number;
60
+ }
61
+
62
+ /**
63
+ * Check if a given object implements the PlaySearchManagementDto interface.
64
+ */
65
+ export function instanceOfPlaySearchManagementDto(value: object): value is PlaySearchManagementDto {
66
+ return true;
67
+ }
68
+
69
+ export function PlaySearchManagementDtoFromJSON(json: any): PlaySearchManagementDto {
70
+ return PlaySearchManagementDtoFromJSONTyped(json, false);
71
+ }
72
+
73
+ export function PlaySearchManagementDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlaySearchManagementDto {
74
+ if (json == null) {
75
+ return json;
76
+ }
77
+ return {
78
+
79
+ 'playSearchId': json['playSearchId'] == null ? undefined : json['playSearchId'],
80
+ 'status': json['status'] == null ? undefined : json['status'],
81
+ 'registrations': json['registrations'] == null ? undefined : ((json['registrations'] as Array<any>).map(PlaySearchManagementDtoRegistrationsInnerFromJSON)),
82
+ 'confirmedCount': json['confirmedCount'] == null ? undefined : json['confirmedCount'],
83
+ 'totalCount': json['totalCount'] == null ? undefined : json['totalCount'],
84
+ };
85
+ }
86
+
87
+ export function PlaySearchManagementDtoToJSON(json: any): PlaySearchManagementDto {
88
+ return PlaySearchManagementDtoToJSONTyped(json, false);
89
+ }
90
+
91
+ export function PlaySearchManagementDtoToJSONTyped(value?: PlaySearchManagementDto | null, ignoreDiscriminator: boolean = false): any {
92
+ if (value == null) {
93
+ return value;
94
+ }
95
+
96
+ return {
97
+
98
+ 'playSearchId': value['playSearchId'],
99
+ 'status': value['status'],
100
+ 'registrations': value['registrations'] == null ? undefined : ((value['registrations'] as Array<any>).map(PlaySearchManagementDtoRegistrationsInnerToJSON)),
101
+ 'confirmedCount': value['confirmedCount'],
102
+ 'totalCount': value['totalCount'],
103
+ };
104
+ }
105
+
@@ -0,0 +1,137 @@
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 { PlaySearchManagementDtoRegistrationsInnerUser } from './PlaySearchManagementDtoRegistrationsInnerUser';
17
+ import {
18
+ PlaySearchManagementDtoRegistrationsInnerUserFromJSON,
19
+ PlaySearchManagementDtoRegistrationsInnerUserFromJSONTyped,
20
+ PlaySearchManagementDtoRegistrationsInnerUserToJSON,
21
+ PlaySearchManagementDtoRegistrationsInnerUserToJSONTyped,
22
+ } from './PlaySearchManagementDtoRegistrationsInnerUser';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface PlaySearchManagementDtoRegistrationsInner
28
+ */
29
+ export interface PlaySearchManagementDtoRegistrationsInner {
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof PlaySearchManagementDtoRegistrationsInner
34
+ */
35
+ id?: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof PlaySearchManagementDtoRegistrationsInner
40
+ */
41
+ userId?: string;
42
+ /**
43
+ *
44
+ * @type {PlaySearchManagementDtoRegistrationsInnerUser}
45
+ * @memberof PlaySearchManagementDtoRegistrationsInner
46
+ */
47
+ user?: PlaySearchManagementDtoRegistrationsInnerUser;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof PlaySearchManagementDtoRegistrationsInner
52
+ */
53
+ playersCount?: number;
54
+ /**
55
+ *
56
+ * @type {Array<string>}
57
+ * @memberof PlaySearchManagementDtoRegistrationsInner
58
+ */
59
+ companionNames?: Array<string>;
60
+ /**
61
+ *
62
+ * @type {string}
63
+ * @memberof PlaySearchManagementDtoRegistrationsInner
64
+ */
65
+ reserveId?: string | null;
66
+ /**
67
+ *
68
+ * @type {string}
69
+ * @memberof PlaySearchManagementDtoRegistrationsInner
70
+ */
71
+ reserveStatus?: string | null;
72
+ /**
73
+ *
74
+ * @type {string}
75
+ * @memberof PlaySearchManagementDtoRegistrationsInner
76
+ */
77
+ paymentStatus?: string | null;
78
+ /**
79
+ *
80
+ * @type {string}
81
+ * @memberof PlaySearchManagementDtoRegistrationsInner
82
+ */
83
+ paymentInitPoint?: string | null;
84
+ }
85
+
86
+ /**
87
+ * Check if a given object implements the PlaySearchManagementDtoRegistrationsInner interface.
88
+ */
89
+ export function instanceOfPlaySearchManagementDtoRegistrationsInner(value: object): value is PlaySearchManagementDtoRegistrationsInner {
90
+ return true;
91
+ }
92
+
93
+ export function PlaySearchManagementDtoRegistrationsInnerFromJSON(json: any): PlaySearchManagementDtoRegistrationsInner {
94
+ return PlaySearchManagementDtoRegistrationsInnerFromJSONTyped(json, false);
95
+ }
96
+
97
+ export function PlaySearchManagementDtoRegistrationsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlaySearchManagementDtoRegistrationsInner {
98
+ if (json == null) {
99
+ return json;
100
+ }
101
+ return {
102
+
103
+ 'id': json['id'] == null ? undefined : json['id'],
104
+ 'userId': json['userId'] == null ? undefined : json['userId'],
105
+ 'user': json['user'] == null ? undefined : PlaySearchManagementDtoRegistrationsInnerUserFromJSON(json['user']),
106
+ 'playersCount': json['playersCount'] == null ? undefined : json['playersCount'],
107
+ 'companionNames': json['companionNames'] == null ? undefined : json['companionNames'],
108
+ 'reserveId': json['reserveId'] == null ? undefined : json['reserveId'],
109
+ 'reserveStatus': json['reserveStatus'] == null ? undefined : json['reserveStatus'],
110
+ 'paymentStatus': json['paymentStatus'] == null ? undefined : json['paymentStatus'],
111
+ 'paymentInitPoint': json['paymentInitPoint'] == null ? undefined : json['paymentInitPoint'],
112
+ };
113
+ }
114
+
115
+ export function PlaySearchManagementDtoRegistrationsInnerToJSON(json: any): PlaySearchManagementDtoRegistrationsInner {
116
+ return PlaySearchManagementDtoRegistrationsInnerToJSONTyped(json, false);
117
+ }
118
+
119
+ export function PlaySearchManagementDtoRegistrationsInnerToJSONTyped(value?: PlaySearchManagementDtoRegistrationsInner | null, ignoreDiscriminator: boolean = false): any {
120
+ if (value == null) {
121
+ return value;
122
+ }
123
+
124
+ return {
125
+
126
+ 'id': value['id'],
127
+ 'userId': value['userId'],
128
+ 'user': PlaySearchManagementDtoRegistrationsInnerUserToJSON(value['user']),
129
+ 'playersCount': value['playersCount'],
130
+ 'companionNames': value['companionNames'],
131
+ 'reserveId': value['reserveId'],
132
+ 'reserveStatus': value['reserveStatus'],
133
+ 'paymentStatus': value['paymentStatus'],
134
+ 'paymentInitPoint': value['paymentInitPoint'],
135
+ };
136
+ }
137
+
@@ -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
+ /**
17
+ *
18
+ * @export
19
+ * @interface PlaySearchManagementDtoRegistrationsInnerUser
20
+ */
21
+ export interface PlaySearchManagementDtoRegistrationsInnerUser {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof PlaySearchManagementDtoRegistrationsInnerUser
26
+ */
27
+ firstName?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof PlaySearchManagementDtoRegistrationsInnerUser
32
+ */
33
+ lastName?: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof PlaySearchManagementDtoRegistrationsInnerUser
38
+ */
39
+ avatarUrl?: string | null;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the PlaySearchManagementDtoRegistrationsInnerUser interface.
44
+ */
45
+ export function instanceOfPlaySearchManagementDtoRegistrationsInnerUser(value: object): value is PlaySearchManagementDtoRegistrationsInnerUser {
46
+ return true;
47
+ }
48
+
49
+ export function PlaySearchManagementDtoRegistrationsInnerUserFromJSON(json: any): PlaySearchManagementDtoRegistrationsInnerUser {
50
+ return PlaySearchManagementDtoRegistrationsInnerUserFromJSONTyped(json, false);
51
+ }
52
+
53
+ export function PlaySearchManagementDtoRegistrationsInnerUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlaySearchManagementDtoRegistrationsInnerUser {
54
+ if (json == null) {
55
+ return json;
56
+ }
57
+ return {
58
+
59
+ 'firstName': json['firstName'] == null ? undefined : json['firstName'],
60
+ 'lastName': json['lastName'] == null ? undefined : json['lastName'],
61
+ 'avatarUrl': json['avatarUrl'] == null ? undefined : json['avatarUrl'],
62
+ };
63
+ }
64
+
65
+ export function PlaySearchManagementDtoRegistrationsInnerUserToJSON(json: any): PlaySearchManagementDtoRegistrationsInnerUser {
66
+ return PlaySearchManagementDtoRegistrationsInnerUserToJSONTyped(json, false);
67
+ }
68
+
69
+ export function PlaySearchManagementDtoRegistrationsInnerUserToJSONTyped(value?: PlaySearchManagementDtoRegistrationsInnerUser | null, ignoreDiscriminator: boolean = false): any {
70
+ if (value == null) {
71
+ return value;
72
+ }
73
+
74
+ return {
75
+
76
+ 'firstName': value['firstName'],
77
+ 'lastName': value['lastName'],
78
+ 'avatarUrl': value['avatarUrl'],
79
+ };
80
+ }
81
+
@@ -20,6 +20,7 @@
20
20
  export const PlaySearchStatus = {
21
21
  Open: 'OPEN',
22
22
  Filled: 'FILLED',
23
+ PendingPayment: 'PENDING_PAYMENT',
23
24
  Confirmed: 'CONFIRMED',
24
25
  Cancelled: 'CANCELLED',
25
26
  Expired: 'EXPIRED'