@jugarhoy/api 1.0.0

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 (171) hide show
  1. package/apis/AdminCoachesApi.ts +259 -0
  2. package/apis/AdminCustomersApi.ts +374 -0
  3. package/apis/AdminDevicesApi.ts +364 -0
  4. package/apis/AdminLocationsApi.ts +304 -0
  5. package/apis/AdminPaymentConfigsApi.ts +358 -0
  6. package/apis/AdminPlayPricesApi.ts +397 -0
  7. package/apis/AdminPlaySpotShiftsApi.ts +267 -0
  8. package/apis/AdminPlaySpotsApi.ts +307 -0
  9. package/apis/AdminReservationsApi.ts +335 -0
  10. package/apis/AdminSubscriptionsApi.ts +354 -0
  11. package/apis/AdminUsersApi.ts +323 -0
  12. package/apis/AuthApi.ts +196 -0
  13. package/apis/BackgroundApi.ts +66 -0
  14. package/apis/ClubApi.ts +174 -0
  15. package/apis/DevicesApi.ts +136 -0
  16. package/apis/HealthApi.ts +56 -0
  17. package/apis/MercadoPagoApi.ts +111 -0
  18. package/apis/MercadoPagoIPNApi.ts +80 -0
  19. package/apis/PlaySpotsApi.ts +207 -0
  20. package/apis/ReservesApi.ts +366 -0
  21. package/apis/UsersApi.ts +648 -0
  22. package/apis/index.ts +23 -0
  23. package/index.ts +5 -0
  24. package/models/AddMemberToSubscriptionRequest.ts +66 -0
  25. package/models/ApiAdminPlayPricesIdPutRequest.ts +140 -0
  26. package/models/ApiAdminPlayPricesPostRequest.ts +146 -0
  27. package/models/AvailabilityShift.ts +89 -0
  28. package/models/AvailabilityShiftHour.ts +81 -0
  29. package/models/AvailabilityShiftSpot.ts +89 -0
  30. package/models/CancelReservationParams.ts +75 -0
  31. package/models/CancelReservationRequest.ts +66 -0
  32. package/models/CancelReservationResult.ts +89 -0
  33. package/models/ChargeOn.ts +53 -0
  34. package/models/Check200Response.ts +65 -0
  35. package/models/CheckUserExists200Response.ts +73 -0
  36. package/models/ClubDto.ts +164 -0
  37. package/models/ClubSearchParams.ts +119 -0
  38. package/models/ClubSearchParamsGeo.ts +73 -0
  39. package/models/ClubSearchParamsPaging.ts +73 -0
  40. package/models/ClubSearchResponse.ts +88 -0
  41. package/models/ClubSearchResponseDataInner.ts +168 -0
  42. package/models/ClubSearchResponsePagination.ts +89 -0
  43. package/models/Coach.ts +121 -0
  44. package/models/CoachDto.ts +119 -0
  45. package/models/CoachDtoAvailabilityInner.ts +88 -0
  46. package/models/ConfirmReservationParams.ts +74 -0
  47. package/models/ConfirmReservationResponse.ts +83 -0
  48. package/models/ConfirmReservationResponseResult.ts +81 -0
  49. package/models/CreateBasicUserDto.ts +112 -0
  50. package/models/CreateCheckoutPreferenceRequest.ts +104 -0
  51. package/models/CreateCheckoutPreferenceRequestBackUrls.ts +81 -0
  52. package/models/CreateCheckoutPreferenceRequestItemsInner.ts +89 -0
  53. package/models/CreateCustomerPaymentConfigDto.ts +84 -0
  54. package/models/CreateDefault500Response.ts +65 -0
  55. package/models/CreateFromInvite400Response.ts +65 -0
  56. package/models/CreateShiftRequest.ts +153 -0
  57. package/models/CreateUserNotificationDto.ts +93 -0
  58. package/models/Customer.ts +235 -0
  59. package/models/CustomerDocument.ts +128 -0
  60. package/models/CustomerDto.ts +209 -0
  61. package/models/CustomerDtoRefund.ts +103 -0
  62. package/models/CustomerLocationDto.ts +102 -0
  63. package/models/CustomerPaymentConfig.ts +144 -0
  64. package/models/CustomerPaymentConfigDto.ts +85 -0
  65. package/models/CustomerRefund.ts +102 -0
  66. package/models/CustomerStatus.ts +53 -0
  67. package/models/DayOfWeek.ts +58 -0
  68. package/models/DeleteShift200Response.ts +65 -0
  69. package/models/Device.ts +139 -0
  70. package/models/DeviceDto.ts +131 -0
  71. package/models/DeviceState.ts +111 -0
  72. package/models/DeviceType.ts +53 -0
  73. package/models/DominantPlaySide.ts +54 -0
  74. package/models/ErrorResponse.ts +66 -0
  75. package/models/ExpireUnpaidReservationResult.ts +81 -0
  76. package/models/ExpireUnpaidReservations401Response.ts +65 -0
  77. package/models/ExpireUnpaidReservations500Response.ts +65 -0
  78. package/models/Feature.ts +121 -0
  79. package/models/FindOccurrences200Response.ts +91 -0
  80. package/models/Frequency.ts +54 -0
  81. package/models/GenerateCode500Response.ts +65 -0
  82. package/models/GetAllDevices200ResponseInner.ts +154 -0
  83. package/models/GetAllPlaySpots200ResponseInner.ts +213 -0
  84. package/models/GetAllShifts200ResponseInner.ts +199 -0
  85. package/models/GetHourlyReservationStatus200Response.ts +89 -0
  86. package/models/GetHourlyReservationStatus200ResponseHourlyStatusInner.ts +97 -0
  87. package/models/GetMercadoPagoAuthUrl200Response.ts +66 -0
  88. package/models/GetSession401Response.ts +65 -0
  89. package/models/GetSession500Response.ts +65 -0
  90. package/models/HourShiftDetail.ts +81 -0
  91. package/models/InitiateReservationParams.ts +137 -0
  92. package/models/Level.ts +54 -0
  93. package/models/LightControlResponse.ts +83 -0
  94. package/models/Location.ts +209 -0
  95. package/models/LocationDto.ts +204 -0
  96. package/models/ManageLightSwitch200Response.ts +81 -0
  97. package/models/ManageLightSwitch500Response.ts +73 -0
  98. package/models/MatchRequirements.ts +100 -0
  99. package/models/MercadoPagoIPN.ts +135 -0
  100. package/models/NotificationType.ts +55 -0
  101. package/models/Occurrence.ts +84 -0
  102. package/models/PaymentDetail.ts +185 -0
  103. package/models/PaymentMethod.ts +56 -0
  104. package/models/PaymentRefund.ts +111 -0
  105. package/models/PaymentStatus.ts +55 -0
  106. package/models/PaymentTerms.ts +85 -0
  107. package/models/PlayPrice.ts +165 -0
  108. package/models/PlaySpot.ts +197 -0
  109. package/models/PlaySpotAvailabilityDetail.ts +89 -0
  110. package/models/PlaySpotDateSummary.ts +81 -0
  111. package/models/PlaySpotDeviceExecutionState.ts +127 -0
  112. package/models/PlaySpotDto.ts +185 -0
  113. package/models/PlaySpotShift.ts +184 -0
  114. package/models/PlaySpotShortDto.ts +97 -0
  115. package/models/PlaySubscription.ts +293 -0
  116. package/models/PlaySubscriptionCreateDto.ts +167 -0
  117. package/models/PlaySubscriptionParams.ts +114 -0
  118. package/models/PlaySubscriptionType.ts +55 -0
  119. package/models/PlayerCategory.ts +61 -0
  120. package/models/ProcessEmailMessageRequest.ts +66 -0
  121. package/models/ProcessMercadoPagoIPN200Response.ts +73 -0
  122. package/models/ProcessMercadoPagoPaymentParams.ts +83 -0
  123. package/models/ProcessMercadoPagoPaymentResponse.ts +83 -0
  124. package/models/ProcessMercadoPagoPaymentResponseResult.ts +89 -0
  125. package/models/RefundPolicy.ts +54 -0
  126. package/models/RegisterClub400Response.ts +65 -0
  127. package/models/RegisterClub401Response.ts +65 -0
  128. package/models/RegisterClub500Response.ts +65 -0
  129. package/models/RegisterClubParams.ts +191 -0
  130. package/models/RegisterClubResponse.ts +83 -0
  131. package/models/RegisterClubResponseResult.ts +96 -0
  132. package/models/RentHour.ts +73 -0
  133. package/models/ReservationAccessCodeResponse.ts +91 -0
  134. package/models/ReservationAccessCodeResponseResult.ts +107 -0
  135. package/models/ReservationParams.ts +121 -0
  136. package/models/ReservationStatus.ts +55 -0
  137. package/models/Reserve.ts +290 -0
  138. package/models/ReserveDto.ts +207 -0
  139. package/models/ReserveSlotDto.ts +81 -0
  140. package/models/ReserveStatus.ts +57 -0
  141. package/models/ReserveType.ts +58 -0
  142. package/models/SearchClubs400Response.ts +65 -0
  143. package/models/SearchClubs500Response.ts +65 -0
  144. package/models/SetAuthCodeDto.ts +85 -0
  145. package/models/Shift.ts +93 -0
  146. package/models/Sport.ts +61 -0
  147. package/models/SuccessResponse.ts +66 -0
  148. package/models/TimeOfDay.ts +54 -0
  149. package/models/TriggerDeviceAction200Response.ts +81 -0
  150. package/models/TriggerDeviceActionRequest.ts +73 -0
  151. package/models/UpdateReservationAdminRequest.ts +83 -0
  152. package/models/UpdateReserveDto.ts +83 -0
  153. package/models/UpdateUserNotificationDto.ts +73 -0
  154. package/models/User.ts +243 -0
  155. package/models/UserAuth.ts +135 -0
  156. package/models/UserDto.ts +142 -0
  157. package/models/UserNotification.ts +123 -0
  158. package/models/UserNotificationDto.ts +115 -0
  159. package/models/UserRating.ts +75 -0
  160. package/models/UserReserveDto.ts +230 -0
  161. package/models/UserRole.ts +53 -0
  162. package/models/UserSession.ts +129 -0
  163. package/models/UserSessionCustomer.ts +81 -0
  164. package/models/UserSportProfile.ts +117 -0
  165. package/models/UserSportProfileDto.ts +117 -0
  166. package/models/UserType.ts +54 -0
  167. package/models/VerifyPhoneNumber200Response.ts +65 -0
  168. package/models/VerifyPhoneNumberRequest.ts +66 -0
  169. package/models/index.ts +147 -0
  170. package/package.json +35 -0
  171. package/runtime.ts +432 -0
@@ -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 ProcessEmailMessageRequest
20
+ */
21
+ export interface ProcessEmailMessageRequest {
22
+ /**
23
+ * The email message content
24
+ * @type {string}
25
+ * @memberof ProcessEmailMessageRequest
26
+ */
27
+ message: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the ProcessEmailMessageRequest interface.
32
+ */
33
+ export function instanceOfProcessEmailMessageRequest(value: object): value is ProcessEmailMessageRequest {
34
+ if (!('message' in value) || value['message'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function ProcessEmailMessageRequestFromJSON(json: any): ProcessEmailMessageRequest {
39
+ return ProcessEmailMessageRequestFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function ProcessEmailMessageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProcessEmailMessageRequest {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'message': json['message'],
49
+ };
50
+ }
51
+
52
+ export function ProcessEmailMessageRequestToJSON(json: any): ProcessEmailMessageRequest {
53
+ return ProcessEmailMessageRequestToJSONTyped(json, false);
54
+ }
55
+
56
+ export function ProcessEmailMessageRequestToJSONTyped(value?: ProcessEmailMessageRequest | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'message': value['message'],
64
+ };
65
+ }
66
+
@@ -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 ProcessMercadoPagoIPN200Response
20
+ */
21
+ export interface ProcessMercadoPagoIPN200Response {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ProcessMercadoPagoIPN200Response
26
+ */
27
+ status?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ProcessMercadoPagoIPN200Response
32
+ */
33
+ message?: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the ProcessMercadoPagoIPN200Response interface.
38
+ */
39
+ export function instanceOfProcessMercadoPagoIPN200Response(value: object): value is ProcessMercadoPagoIPN200Response {
40
+ return true;
41
+ }
42
+
43
+ export function ProcessMercadoPagoIPN200ResponseFromJSON(json: any): ProcessMercadoPagoIPN200Response {
44
+ return ProcessMercadoPagoIPN200ResponseFromJSONTyped(json, false);
45
+ }
46
+
47
+ export function ProcessMercadoPagoIPN200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProcessMercadoPagoIPN200Response {
48
+ if (json == null) {
49
+ return json;
50
+ }
51
+ return {
52
+
53
+ 'status': json['status'] == null ? undefined : json['status'],
54
+ 'message': json['message'] == null ? undefined : json['message'],
55
+ };
56
+ }
57
+
58
+ export function ProcessMercadoPagoIPN200ResponseToJSON(json: any): ProcessMercadoPagoIPN200Response {
59
+ return ProcessMercadoPagoIPN200ResponseToJSONTyped(json, false);
60
+ }
61
+
62
+ export function ProcessMercadoPagoIPN200ResponseToJSONTyped(value?: ProcessMercadoPagoIPN200Response | null, ignoreDiscriminator: boolean = false): any {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+
67
+ return {
68
+
69
+ 'status': value['status'],
70
+ 'message': value['message'],
71
+ };
72
+ }
73
+
@@ -0,0 +1,83 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Jugar Hoy - API
5
+ * API documentation for Jugar Hoy application
6
+ *
7
+ * The version of the OpenAPI document: 1.5.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ProcessMercadoPagoPaymentParams
20
+ */
21
+ export interface ProcessMercadoPagoPaymentParams {
22
+ /**
23
+ * MercadoPago payment ID
24
+ * @type {string}
25
+ * @memberof ProcessMercadoPagoPaymentParams
26
+ */
27
+ paymentId: string;
28
+ /**
29
+ * IPN action type (e.g., payment.created, payment.updated)
30
+ * @type {string}
31
+ * @memberof ProcessMercadoPagoPaymentParams
32
+ */
33
+ action: string;
34
+ /**
35
+ * Complete IPN payload for logging purposes
36
+ * @type {object}
37
+ * @memberof ProcessMercadoPagoPaymentParams
38
+ */
39
+ ipnPayload?: object;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the ProcessMercadoPagoPaymentParams interface.
44
+ */
45
+ export function instanceOfProcessMercadoPagoPaymentParams(value: object): value is ProcessMercadoPagoPaymentParams {
46
+ if (!('paymentId' in value) || value['paymentId'] === undefined) return false;
47
+ if (!('action' in value) || value['action'] === undefined) return false;
48
+ return true;
49
+ }
50
+
51
+ export function ProcessMercadoPagoPaymentParamsFromJSON(json: any): ProcessMercadoPagoPaymentParams {
52
+ return ProcessMercadoPagoPaymentParamsFromJSONTyped(json, false);
53
+ }
54
+
55
+ export function ProcessMercadoPagoPaymentParamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProcessMercadoPagoPaymentParams {
56
+ if (json == null) {
57
+ return json;
58
+ }
59
+ return {
60
+
61
+ 'paymentId': json['paymentId'],
62
+ 'action': json['action'],
63
+ 'ipnPayload': json['ipnPayload'] == null ? undefined : json['ipnPayload'],
64
+ };
65
+ }
66
+
67
+ export function ProcessMercadoPagoPaymentParamsToJSON(json: any): ProcessMercadoPagoPaymentParams {
68
+ return ProcessMercadoPagoPaymentParamsToJSONTyped(json, false);
69
+ }
70
+
71
+ export function ProcessMercadoPagoPaymentParamsToJSONTyped(value?: ProcessMercadoPagoPaymentParams | null, ignoreDiscriminator: boolean = false): any {
72
+ if (value == null) {
73
+ return value;
74
+ }
75
+
76
+ return {
77
+
78
+ 'paymentId': value['paymentId'],
79
+ 'action': value['action'],
80
+ 'ipnPayload': value['ipnPayload'],
81
+ };
82
+ }
83
+
@@ -0,0 +1,83 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Jugar Hoy - API
5
+ * API documentation for Jugar Hoy application
6
+ *
7
+ * The version of the OpenAPI document: 1.5.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { ProcessMercadoPagoPaymentResponseResult } from './ProcessMercadoPagoPaymentResponseResult';
17
+ import {
18
+ ProcessMercadoPagoPaymentResponseResultFromJSON,
19
+ ProcessMercadoPagoPaymentResponseResultFromJSONTyped,
20
+ ProcessMercadoPagoPaymentResponseResultToJSON,
21
+ ProcessMercadoPagoPaymentResponseResultToJSONTyped,
22
+ } from './ProcessMercadoPagoPaymentResponseResult';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ProcessMercadoPagoPaymentResponse
28
+ */
29
+ export interface ProcessMercadoPagoPaymentResponse {
30
+ /**
31
+ * Whether the payment processing was successful
32
+ * @type {boolean}
33
+ * @memberof ProcessMercadoPagoPaymentResponse
34
+ */
35
+ success: boolean;
36
+ /**
37
+ *
38
+ * @type {ProcessMercadoPagoPaymentResponseResult}
39
+ * @memberof ProcessMercadoPagoPaymentResponse
40
+ */
41
+ result: ProcessMercadoPagoPaymentResponseResult;
42
+ }
43
+
44
+ /**
45
+ * Check if a given object implements the ProcessMercadoPagoPaymentResponse interface.
46
+ */
47
+ export function instanceOfProcessMercadoPagoPaymentResponse(value: object): value is ProcessMercadoPagoPaymentResponse {
48
+ if (!('success' in value) || value['success'] === undefined) return false;
49
+ if (!('result' in value) || value['result'] === undefined) return false;
50
+ return true;
51
+ }
52
+
53
+ export function ProcessMercadoPagoPaymentResponseFromJSON(json: any): ProcessMercadoPagoPaymentResponse {
54
+ return ProcessMercadoPagoPaymentResponseFromJSONTyped(json, false);
55
+ }
56
+
57
+ export function ProcessMercadoPagoPaymentResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProcessMercadoPagoPaymentResponse {
58
+ if (json == null) {
59
+ return json;
60
+ }
61
+ return {
62
+
63
+ 'success': json['success'],
64
+ 'result': ProcessMercadoPagoPaymentResponseResultFromJSON(json['result']),
65
+ };
66
+ }
67
+
68
+ export function ProcessMercadoPagoPaymentResponseToJSON(json: any): ProcessMercadoPagoPaymentResponse {
69
+ return ProcessMercadoPagoPaymentResponseToJSONTyped(json, false);
70
+ }
71
+
72
+ export function ProcessMercadoPagoPaymentResponseToJSONTyped(value?: ProcessMercadoPagoPaymentResponse | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'success': value['success'],
80
+ 'result': ProcessMercadoPagoPaymentResponseResultToJSON(value['result']),
81
+ };
82
+ }
83
+
@@ -0,0 +1,89 @@
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 { Reserve } from './Reserve';
17
+ import {
18
+ ReserveFromJSON,
19
+ ReserveFromJSONTyped,
20
+ ReserveToJSON,
21
+ ReserveToJSONTyped,
22
+ } from './Reserve';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ProcessMercadoPagoPaymentResponseResult
28
+ */
29
+ export interface ProcessMercadoPagoPaymentResponseResult {
30
+ /**
31
+ *
32
+ * @type {Reserve}
33
+ * @memberof ProcessMercadoPagoPaymentResponseResult
34
+ */
35
+ reservation?: Reserve;
36
+ /**
37
+ * MercadoPago payment information
38
+ * @type {object}
39
+ * @memberof ProcessMercadoPagoPaymentResponseResult
40
+ */
41
+ paymentInfo?: object;
42
+ /**
43
+ * Processing result message
44
+ * @type {string}
45
+ * @memberof ProcessMercadoPagoPaymentResponseResult
46
+ */
47
+ message?: string;
48
+ }
49
+
50
+ /**
51
+ * Check if a given object implements the ProcessMercadoPagoPaymentResponseResult interface.
52
+ */
53
+ export function instanceOfProcessMercadoPagoPaymentResponseResult(value: object): value is ProcessMercadoPagoPaymentResponseResult {
54
+ return true;
55
+ }
56
+
57
+ export function ProcessMercadoPagoPaymentResponseResultFromJSON(json: any): ProcessMercadoPagoPaymentResponseResult {
58
+ return ProcessMercadoPagoPaymentResponseResultFromJSONTyped(json, false);
59
+ }
60
+
61
+ export function ProcessMercadoPagoPaymentResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProcessMercadoPagoPaymentResponseResult {
62
+ if (json == null) {
63
+ return json;
64
+ }
65
+ return {
66
+
67
+ 'reservation': json['reservation'] == null ? undefined : ReserveFromJSON(json['reservation']),
68
+ 'paymentInfo': json['paymentInfo'] == null ? undefined : json['paymentInfo'],
69
+ 'message': json['message'] == null ? undefined : json['message'],
70
+ };
71
+ }
72
+
73
+ export function ProcessMercadoPagoPaymentResponseResultToJSON(json: any): ProcessMercadoPagoPaymentResponseResult {
74
+ return ProcessMercadoPagoPaymentResponseResultToJSONTyped(json, false);
75
+ }
76
+
77
+ export function ProcessMercadoPagoPaymentResponseResultToJSONTyped(value?: ProcessMercadoPagoPaymentResponseResult | null, ignoreDiscriminator: boolean = false): any {
78
+ if (value == null) {
79
+ return value;
80
+ }
81
+
82
+ return {
83
+
84
+ 'reservation': ReserveToJSON(value['reservation']),
85
+ 'paymentInfo': value['paymentInfo'],
86
+ 'message': value['message'],
87
+ };
88
+ }
89
+
@@ -0,0 +1,54 @@
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
+
16
+ /**
17
+ * Represents the refund policy for a customer
18
+ * @export
19
+ */
20
+ export const RefundPolicy = {
21
+ NoRefund: 'NO_REFUND',
22
+ FullRefund: 'FULL_REFUND',
23
+ PartialRefund: 'PARTIAL_REFUND'
24
+ } as const;
25
+ export type RefundPolicy = typeof RefundPolicy[keyof typeof RefundPolicy];
26
+
27
+
28
+ export function instanceOfRefundPolicy(value: any): boolean {
29
+ for (const key in RefundPolicy) {
30
+ if (Object.prototype.hasOwnProperty.call(RefundPolicy, key)) {
31
+ if (RefundPolicy[key as keyof typeof RefundPolicy] === value) {
32
+ return true;
33
+ }
34
+ }
35
+ }
36
+ return false;
37
+ }
38
+
39
+ export function RefundPolicyFromJSON(json: any): RefundPolicy {
40
+ return RefundPolicyFromJSONTyped(json, false);
41
+ }
42
+
43
+ export function RefundPolicyFromJSONTyped(json: any, ignoreDiscriminator: boolean): RefundPolicy {
44
+ return json as RefundPolicy;
45
+ }
46
+
47
+ export function RefundPolicyToJSON(value?: RefundPolicy | null): any {
48
+ return value as any;
49
+ }
50
+
51
+ export function RefundPolicyToJSONTyped(value: any, ignoreDiscriminator: boolean): RefundPolicy {
52
+ return value as RefundPolicy;
53
+ }
54
+
@@ -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 RegisterClub400Response
20
+ */
21
+ export interface RegisterClub400Response {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof RegisterClub400Response
26
+ */
27
+ error?: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the RegisterClub400Response interface.
32
+ */
33
+ export function instanceOfRegisterClub400Response(value: object): value is RegisterClub400Response {
34
+ return true;
35
+ }
36
+
37
+ export function RegisterClub400ResponseFromJSON(json: any): RegisterClub400Response {
38
+ return RegisterClub400ResponseFromJSONTyped(json, false);
39
+ }
40
+
41
+ export function RegisterClub400ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegisterClub400Response {
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 RegisterClub400ResponseToJSON(json: any): RegisterClub400Response {
52
+ return RegisterClub400ResponseToJSONTyped(json, false);
53
+ }
54
+
55
+ export function RegisterClub400ResponseToJSONTyped(value?: RegisterClub400Response | 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,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 RegisterClub401Response
20
+ */
21
+ export interface RegisterClub401Response {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof RegisterClub401Response
26
+ */
27
+ error?: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the RegisterClub401Response interface.
32
+ */
33
+ export function instanceOfRegisterClub401Response(value: object): value is RegisterClub401Response {
34
+ return true;
35
+ }
36
+
37
+ export function RegisterClub401ResponseFromJSON(json: any): RegisterClub401Response {
38
+ return RegisterClub401ResponseFromJSONTyped(json, false);
39
+ }
40
+
41
+ export function RegisterClub401ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegisterClub401Response {
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 RegisterClub401ResponseToJSON(json: any): RegisterClub401Response {
52
+ return RegisterClub401ResponseToJSONTyped(json, false);
53
+ }
54
+
55
+ export function RegisterClub401ResponseToJSONTyped(value?: RegisterClub401Response | 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,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 RegisterClub500Response
20
+ */
21
+ export interface RegisterClub500Response {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof RegisterClub500Response
26
+ */
27
+ error?: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the RegisterClub500Response interface.
32
+ */
33
+ export function instanceOfRegisterClub500Response(value: object): value is RegisterClub500Response {
34
+ return true;
35
+ }
36
+
37
+ export function RegisterClub500ResponseFromJSON(json: any): RegisterClub500Response {
38
+ return RegisterClub500ResponseFromJSONTyped(json, false);
39
+ }
40
+
41
+ export function RegisterClub500ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegisterClub500Response {
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 RegisterClub500ResponseToJSON(json: any): RegisterClub500Response {
52
+ return RegisterClub500ResponseToJSONTyped(json, false);
53
+ }
54
+
55
+ export function RegisterClub500ResponseToJSONTyped(value?: RegisterClub500Response | null, ignoreDiscriminator: boolean = false): any {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+
60
+ return {
61
+
62
+ 'error': value['error'],
63
+ };
64
+ }
65
+