@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.
- package/apis/AdminCoachesApi.ts +259 -0
- package/apis/AdminCustomersApi.ts +374 -0
- package/apis/AdminDevicesApi.ts +364 -0
- package/apis/AdminLocationsApi.ts +304 -0
- package/apis/AdminPaymentConfigsApi.ts +358 -0
- package/apis/AdminPlayPricesApi.ts +397 -0
- package/apis/AdminPlaySpotShiftsApi.ts +267 -0
- package/apis/AdminPlaySpotsApi.ts +307 -0
- package/apis/AdminReservationsApi.ts +335 -0
- package/apis/AdminSubscriptionsApi.ts +354 -0
- package/apis/AdminUsersApi.ts +323 -0
- package/apis/AuthApi.ts +196 -0
- package/apis/BackgroundApi.ts +66 -0
- package/apis/ClubApi.ts +174 -0
- package/apis/DevicesApi.ts +136 -0
- package/apis/HealthApi.ts +56 -0
- package/apis/MercadoPagoApi.ts +111 -0
- package/apis/MercadoPagoIPNApi.ts +80 -0
- package/apis/PlaySpotsApi.ts +207 -0
- package/apis/ReservesApi.ts +366 -0
- package/apis/UsersApi.ts +648 -0
- package/apis/index.ts +23 -0
- package/index.ts +5 -0
- package/models/AddMemberToSubscriptionRequest.ts +66 -0
- package/models/ApiAdminPlayPricesIdPutRequest.ts +140 -0
- package/models/ApiAdminPlayPricesPostRequest.ts +146 -0
- package/models/AvailabilityShift.ts +89 -0
- package/models/AvailabilityShiftHour.ts +81 -0
- package/models/AvailabilityShiftSpot.ts +89 -0
- package/models/CancelReservationParams.ts +75 -0
- package/models/CancelReservationRequest.ts +66 -0
- package/models/CancelReservationResult.ts +89 -0
- package/models/ChargeOn.ts +53 -0
- package/models/Check200Response.ts +65 -0
- package/models/CheckUserExists200Response.ts +73 -0
- package/models/ClubDto.ts +164 -0
- package/models/ClubSearchParams.ts +119 -0
- package/models/ClubSearchParamsGeo.ts +73 -0
- package/models/ClubSearchParamsPaging.ts +73 -0
- package/models/ClubSearchResponse.ts +88 -0
- package/models/ClubSearchResponseDataInner.ts +168 -0
- package/models/ClubSearchResponsePagination.ts +89 -0
- package/models/Coach.ts +121 -0
- package/models/CoachDto.ts +119 -0
- package/models/CoachDtoAvailabilityInner.ts +88 -0
- package/models/ConfirmReservationParams.ts +74 -0
- package/models/ConfirmReservationResponse.ts +83 -0
- package/models/ConfirmReservationResponseResult.ts +81 -0
- package/models/CreateBasicUserDto.ts +112 -0
- package/models/CreateCheckoutPreferenceRequest.ts +104 -0
- package/models/CreateCheckoutPreferenceRequestBackUrls.ts +81 -0
- package/models/CreateCheckoutPreferenceRequestItemsInner.ts +89 -0
- package/models/CreateCustomerPaymentConfigDto.ts +84 -0
- package/models/CreateDefault500Response.ts +65 -0
- package/models/CreateFromInvite400Response.ts +65 -0
- package/models/CreateShiftRequest.ts +153 -0
- package/models/CreateUserNotificationDto.ts +93 -0
- package/models/Customer.ts +235 -0
- package/models/CustomerDocument.ts +128 -0
- package/models/CustomerDto.ts +209 -0
- package/models/CustomerDtoRefund.ts +103 -0
- package/models/CustomerLocationDto.ts +102 -0
- package/models/CustomerPaymentConfig.ts +144 -0
- package/models/CustomerPaymentConfigDto.ts +85 -0
- package/models/CustomerRefund.ts +102 -0
- package/models/CustomerStatus.ts +53 -0
- package/models/DayOfWeek.ts +58 -0
- package/models/DeleteShift200Response.ts +65 -0
- package/models/Device.ts +139 -0
- package/models/DeviceDto.ts +131 -0
- package/models/DeviceState.ts +111 -0
- package/models/DeviceType.ts +53 -0
- package/models/DominantPlaySide.ts +54 -0
- package/models/ErrorResponse.ts +66 -0
- package/models/ExpireUnpaidReservationResult.ts +81 -0
- package/models/ExpireUnpaidReservations401Response.ts +65 -0
- package/models/ExpireUnpaidReservations500Response.ts +65 -0
- package/models/Feature.ts +121 -0
- package/models/FindOccurrences200Response.ts +91 -0
- package/models/Frequency.ts +54 -0
- package/models/GenerateCode500Response.ts +65 -0
- package/models/GetAllDevices200ResponseInner.ts +154 -0
- package/models/GetAllPlaySpots200ResponseInner.ts +213 -0
- package/models/GetAllShifts200ResponseInner.ts +199 -0
- package/models/GetHourlyReservationStatus200Response.ts +89 -0
- package/models/GetHourlyReservationStatus200ResponseHourlyStatusInner.ts +97 -0
- package/models/GetMercadoPagoAuthUrl200Response.ts +66 -0
- package/models/GetSession401Response.ts +65 -0
- package/models/GetSession500Response.ts +65 -0
- package/models/HourShiftDetail.ts +81 -0
- package/models/InitiateReservationParams.ts +137 -0
- package/models/Level.ts +54 -0
- package/models/LightControlResponse.ts +83 -0
- package/models/Location.ts +209 -0
- package/models/LocationDto.ts +204 -0
- package/models/ManageLightSwitch200Response.ts +81 -0
- package/models/ManageLightSwitch500Response.ts +73 -0
- package/models/MatchRequirements.ts +100 -0
- package/models/MercadoPagoIPN.ts +135 -0
- package/models/NotificationType.ts +55 -0
- package/models/Occurrence.ts +84 -0
- package/models/PaymentDetail.ts +185 -0
- package/models/PaymentMethod.ts +56 -0
- package/models/PaymentRefund.ts +111 -0
- package/models/PaymentStatus.ts +55 -0
- package/models/PaymentTerms.ts +85 -0
- package/models/PlayPrice.ts +165 -0
- package/models/PlaySpot.ts +197 -0
- package/models/PlaySpotAvailabilityDetail.ts +89 -0
- package/models/PlaySpotDateSummary.ts +81 -0
- package/models/PlaySpotDeviceExecutionState.ts +127 -0
- package/models/PlaySpotDto.ts +185 -0
- package/models/PlaySpotShift.ts +184 -0
- package/models/PlaySpotShortDto.ts +97 -0
- package/models/PlaySubscription.ts +293 -0
- package/models/PlaySubscriptionCreateDto.ts +167 -0
- package/models/PlaySubscriptionParams.ts +114 -0
- package/models/PlaySubscriptionType.ts +55 -0
- package/models/PlayerCategory.ts +61 -0
- package/models/ProcessEmailMessageRequest.ts +66 -0
- package/models/ProcessMercadoPagoIPN200Response.ts +73 -0
- package/models/ProcessMercadoPagoPaymentParams.ts +83 -0
- package/models/ProcessMercadoPagoPaymentResponse.ts +83 -0
- package/models/ProcessMercadoPagoPaymentResponseResult.ts +89 -0
- package/models/RefundPolicy.ts +54 -0
- package/models/RegisterClub400Response.ts +65 -0
- package/models/RegisterClub401Response.ts +65 -0
- package/models/RegisterClub500Response.ts +65 -0
- package/models/RegisterClubParams.ts +191 -0
- package/models/RegisterClubResponse.ts +83 -0
- package/models/RegisterClubResponseResult.ts +96 -0
- package/models/RentHour.ts +73 -0
- package/models/ReservationAccessCodeResponse.ts +91 -0
- package/models/ReservationAccessCodeResponseResult.ts +107 -0
- package/models/ReservationParams.ts +121 -0
- package/models/ReservationStatus.ts +55 -0
- package/models/Reserve.ts +290 -0
- package/models/ReserveDto.ts +207 -0
- package/models/ReserveSlotDto.ts +81 -0
- package/models/ReserveStatus.ts +57 -0
- package/models/ReserveType.ts +58 -0
- package/models/SearchClubs400Response.ts +65 -0
- package/models/SearchClubs500Response.ts +65 -0
- package/models/SetAuthCodeDto.ts +85 -0
- package/models/Shift.ts +93 -0
- package/models/Sport.ts +61 -0
- package/models/SuccessResponse.ts +66 -0
- package/models/TimeOfDay.ts +54 -0
- package/models/TriggerDeviceAction200Response.ts +81 -0
- package/models/TriggerDeviceActionRequest.ts +73 -0
- package/models/UpdateReservationAdminRequest.ts +83 -0
- package/models/UpdateReserveDto.ts +83 -0
- package/models/UpdateUserNotificationDto.ts +73 -0
- package/models/User.ts +243 -0
- package/models/UserAuth.ts +135 -0
- package/models/UserDto.ts +142 -0
- package/models/UserNotification.ts +123 -0
- package/models/UserNotificationDto.ts +115 -0
- package/models/UserRating.ts +75 -0
- package/models/UserReserveDto.ts +230 -0
- package/models/UserRole.ts +53 -0
- package/models/UserSession.ts +129 -0
- package/models/UserSessionCustomer.ts +81 -0
- package/models/UserSportProfile.ts +117 -0
- package/models/UserSportProfileDto.ts +117 -0
- package/models/UserType.ts +54 -0
- package/models/VerifyPhoneNumber200Response.ts +65 -0
- package/models/VerifyPhoneNumberRequest.ts +66 -0
- package/models/index.ts +147 -0
- package/package.json +35 -0
- package/runtime.ts +432 -0
|
@@ -0,0 +1,102 @@
|
|
|
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 CustomerLocationDto
|
|
20
|
+
*/
|
|
21
|
+
export interface CustomerLocationDto {
|
|
22
|
+
/**
|
|
23
|
+
* Unique identifier for the location
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CustomerLocationDto
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* Code of the location
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof CustomerLocationDto
|
|
32
|
+
*/
|
|
33
|
+
code: string;
|
|
34
|
+
/**
|
|
35
|
+
* Display name of the location
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof CustomerLocationDto
|
|
38
|
+
*/
|
|
39
|
+
name: string;
|
|
40
|
+
/**
|
|
41
|
+
* Address of the location
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof CustomerLocationDto
|
|
44
|
+
*/
|
|
45
|
+
address: string;
|
|
46
|
+
/**
|
|
47
|
+
* URL of the map of the location
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof CustomerLocationDto
|
|
50
|
+
*/
|
|
51
|
+
addressUrl: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the CustomerLocationDto interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfCustomerLocationDto(value: object): value is CustomerLocationDto {
|
|
58
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
59
|
+
if (!('code' in value) || value['code'] === undefined) return false;
|
|
60
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
61
|
+
if (!('address' in value) || value['address'] === undefined) return false;
|
|
62
|
+
if (!('addressUrl' in value) || value['addressUrl'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function CustomerLocationDtoFromJSON(json: any): CustomerLocationDto {
|
|
67
|
+
return CustomerLocationDtoFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function CustomerLocationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomerLocationDto {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'id': json['id'],
|
|
77
|
+
'code': json['code'],
|
|
78
|
+
'name': json['name'],
|
|
79
|
+
'address': json['address'],
|
|
80
|
+
'addressUrl': json['addressUrl'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function CustomerLocationDtoToJSON(json: any): CustomerLocationDto {
|
|
85
|
+
return CustomerLocationDtoToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function CustomerLocationDtoToJSONTyped(value?: CustomerLocationDto | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'id': value['id'],
|
|
96
|
+
'code': value['code'],
|
|
97
|
+
'name': value['name'],
|
|
98
|
+
'address': value['address'],
|
|
99
|
+
'addressUrl': value['addressUrl'],
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
@@ -0,0 +1,144 @@
|
|
|
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 { PaymentMethod } from './PaymentMethod';
|
|
17
|
+
import {
|
|
18
|
+
PaymentMethodFromJSON,
|
|
19
|
+
PaymentMethodFromJSONTyped,
|
|
20
|
+
PaymentMethodToJSON,
|
|
21
|
+
PaymentMethodToJSONTyped,
|
|
22
|
+
} from './PaymentMethod';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface CustomerPaymentConfig
|
|
28
|
+
*/
|
|
29
|
+
export interface CustomerPaymentConfig {
|
|
30
|
+
/**
|
|
31
|
+
* Unique identifier for the payment configuration
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CustomerPaymentConfig
|
|
34
|
+
*/
|
|
35
|
+
id?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* ID of the customer this configuration belongs to
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CustomerPaymentConfig
|
|
40
|
+
*/
|
|
41
|
+
customerId: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {PaymentMethod}
|
|
45
|
+
* @memberof CustomerPaymentConfig
|
|
46
|
+
*/
|
|
47
|
+
paymentMethod: PaymentMethod;
|
|
48
|
+
/**
|
|
49
|
+
* Access token for the payment provider (sensitive data, not exposed in DTOs)
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof CustomerPaymentConfig
|
|
52
|
+
*/
|
|
53
|
+
accessToken?: string | null;
|
|
54
|
+
/**
|
|
55
|
+
* Refresh token for the payment provider (sensitive data, not exposed in DTOs)
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof CustomerPaymentConfig
|
|
58
|
+
*/
|
|
59
|
+
refreshToken?: string | null;
|
|
60
|
+
/**
|
|
61
|
+
* Provider-specific ID (sensitive data, not exposed in DTOs)
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof CustomerPaymentConfig
|
|
64
|
+
*/
|
|
65
|
+
providerId?: string | null;
|
|
66
|
+
/**
|
|
67
|
+
* Whether this payment configuration is enabled
|
|
68
|
+
* @type {boolean}
|
|
69
|
+
* @memberof CustomerPaymentConfig
|
|
70
|
+
*/
|
|
71
|
+
enabled: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* When this configuration was created
|
|
74
|
+
* @type {Date}
|
|
75
|
+
* @memberof CustomerPaymentConfig
|
|
76
|
+
*/
|
|
77
|
+
createdAt: Date;
|
|
78
|
+
/**
|
|
79
|
+
* When this configuration was last updated
|
|
80
|
+
* @type {Date}
|
|
81
|
+
* @memberof CustomerPaymentConfig
|
|
82
|
+
*/
|
|
83
|
+
updatedAt: Date;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Check if a given object implements the CustomerPaymentConfig interface.
|
|
90
|
+
*/
|
|
91
|
+
export function instanceOfCustomerPaymentConfig(value: object): value is CustomerPaymentConfig {
|
|
92
|
+
if (!('customerId' in value) || value['customerId'] === undefined) return false;
|
|
93
|
+
if (!('paymentMethod' in value) || value['paymentMethod'] === undefined) return false;
|
|
94
|
+
if (!('enabled' in value) || value['enabled'] === undefined) return false;
|
|
95
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
96
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
97
|
+
return true;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function CustomerPaymentConfigFromJSON(json: any): CustomerPaymentConfig {
|
|
101
|
+
return CustomerPaymentConfigFromJSONTyped(json, false);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function CustomerPaymentConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomerPaymentConfig {
|
|
105
|
+
if (json == null) {
|
|
106
|
+
return json;
|
|
107
|
+
}
|
|
108
|
+
return {
|
|
109
|
+
|
|
110
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
111
|
+
'customerId': json['customerId'],
|
|
112
|
+
'paymentMethod': PaymentMethodFromJSON(json['paymentMethod']),
|
|
113
|
+
'accessToken': json['accessToken'] == null ? undefined : json['accessToken'],
|
|
114
|
+
'refreshToken': json['refreshToken'] == null ? undefined : json['refreshToken'],
|
|
115
|
+
'providerId': json['providerId'] == null ? undefined : json['providerId'],
|
|
116
|
+
'enabled': json['enabled'],
|
|
117
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
118
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export function CustomerPaymentConfigToJSON(json: any): CustomerPaymentConfig {
|
|
123
|
+
return CustomerPaymentConfigToJSONTyped(json, false);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export function CustomerPaymentConfigToJSONTyped(value?: CustomerPaymentConfig | null, ignoreDiscriminator: boolean = false): any {
|
|
127
|
+
if (value == null) {
|
|
128
|
+
return value;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
return {
|
|
132
|
+
|
|
133
|
+
'id': value['id'],
|
|
134
|
+
'customerId': value['customerId'],
|
|
135
|
+
'paymentMethod': PaymentMethodToJSON(value['paymentMethod']),
|
|
136
|
+
'accessToken': value['accessToken'],
|
|
137
|
+
'refreshToken': value['refreshToken'],
|
|
138
|
+
'providerId': value['providerId'],
|
|
139
|
+
'enabled': value['enabled'],
|
|
140
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
141
|
+
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
|
|
@@ -0,0 +1,85 @@
|
|
|
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 { PaymentMethod } from './PaymentMethod';
|
|
17
|
+
import {
|
|
18
|
+
PaymentMethodFromJSON,
|
|
19
|
+
PaymentMethodFromJSONTyped,
|
|
20
|
+
PaymentMethodToJSON,
|
|
21
|
+
PaymentMethodToJSONTyped,
|
|
22
|
+
} from './PaymentMethod';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface CustomerPaymentConfigDto
|
|
28
|
+
*/
|
|
29
|
+
export interface CustomerPaymentConfigDto {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {PaymentMethod}
|
|
33
|
+
* @memberof CustomerPaymentConfigDto
|
|
34
|
+
*/
|
|
35
|
+
paymentMethod: PaymentMethod;
|
|
36
|
+
/**
|
|
37
|
+
* Whether this payment configuration is enabled
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof CustomerPaymentConfigDto
|
|
40
|
+
*/
|
|
41
|
+
enabled: boolean;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the CustomerPaymentConfigDto interface.
|
|
48
|
+
*/
|
|
49
|
+
export function instanceOfCustomerPaymentConfigDto(value: object): value is CustomerPaymentConfigDto {
|
|
50
|
+
if (!('paymentMethod' in value) || value['paymentMethod'] === undefined) return false;
|
|
51
|
+
if (!('enabled' in value) || value['enabled'] === undefined) return false;
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function CustomerPaymentConfigDtoFromJSON(json: any): CustomerPaymentConfigDto {
|
|
56
|
+
return CustomerPaymentConfigDtoFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function CustomerPaymentConfigDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomerPaymentConfigDto {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'paymentMethod': PaymentMethodFromJSON(json['paymentMethod']),
|
|
66
|
+
'enabled': json['enabled'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function CustomerPaymentConfigDtoToJSON(json: any): CustomerPaymentConfigDto {
|
|
71
|
+
return CustomerPaymentConfigDtoToJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function CustomerPaymentConfigDtoToJSONTyped(value?: CustomerPaymentConfigDto | null, ignoreDiscriminator: boolean = false): any {
|
|
75
|
+
if (value == null) {
|
|
76
|
+
return value;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
return {
|
|
80
|
+
|
|
81
|
+
'paymentMethod': PaymentMethodToJSON(value['paymentMethod']),
|
|
82
|
+
'enabled': value['enabled'],
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
@@ -0,0 +1,102 @@
|
|
|
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 { RefundPolicy } from './RefundPolicy';
|
|
17
|
+
import {
|
|
18
|
+
RefundPolicyFromJSON,
|
|
19
|
+
RefundPolicyFromJSONTyped,
|
|
20
|
+
RefundPolicyToJSON,
|
|
21
|
+
RefundPolicyToJSONTyped,
|
|
22
|
+
} from './RefundPolicy';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface CustomerRefund
|
|
28
|
+
*/
|
|
29
|
+
export interface CustomerRefund {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {RefundPolicy}
|
|
33
|
+
* @memberof CustomerRefund
|
|
34
|
+
*/
|
|
35
|
+
policy: RefundPolicy;
|
|
36
|
+
/**
|
|
37
|
+
* Percentage of the refund
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof CustomerRefund
|
|
40
|
+
*/
|
|
41
|
+
percentage: number;
|
|
42
|
+
/**
|
|
43
|
+
* Maximum amount of the refund
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof CustomerRefund
|
|
46
|
+
*/
|
|
47
|
+
processingFee: number;
|
|
48
|
+
/**
|
|
49
|
+
* Minimum amount of the refund
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof CustomerRefund
|
|
52
|
+
*/
|
|
53
|
+
expiresAfterHours?: number;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Check if a given object implements the CustomerRefund interface.
|
|
60
|
+
*/
|
|
61
|
+
export function instanceOfCustomerRefund(value: object): value is CustomerRefund {
|
|
62
|
+
if (!('policy' in value) || value['policy'] === undefined) return false;
|
|
63
|
+
if (!('percentage' in value) || value['percentage'] === undefined) return false;
|
|
64
|
+
if (!('processingFee' in value) || value['processingFee'] === undefined) return false;
|
|
65
|
+
return true;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function CustomerRefundFromJSON(json: any): CustomerRefund {
|
|
69
|
+
return CustomerRefundFromJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function CustomerRefundFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomerRefund {
|
|
73
|
+
if (json == null) {
|
|
74
|
+
return json;
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
|
|
78
|
+
'policy': RefundPolicyFromJSON(json['policy']),
|
|
79
|
+
'percentage': json['percentage'],
|
|
80
|
+
'processingFee': json['processingFee'],
|
|
81
|
+
'expiresAfterHours': json['expiresAfterHours'] == null ? undefined : json['expiresAfterHours'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function CustomerRefundToJSON(json: any): CustomerRefund {
|
|
86
|
+
return CustomerRefundToJSONTyped(json, false);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function CustomerRefundToJSONTyped(value?: CustomerRefund | null, ignoreDiscriminator: boolean = false): any {
|
|
90
|
+
if (value == null) {
|
|
91
|
+
return value;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
return {
|
|
95
|
+
|
|
96
|
+
'policy': RefundPolicyToJSON(value['policy']),
|
|
97
|
+
'percentage': value['percentage'],
|
|
98
|
+
'processingFee': value['processingFee'],
|
|
99
|
+
'expiresAfterHours': value['expiresAfterHours'],
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
@@ -0,0 +1,53 @@
|
|
|
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 status of a customer
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const CustomerStatus = {
|
|
21
|
+
New: 'NEW',
|
|
22
|
+
Approved: 'APPROVED'
|
|
23
|
+
} as const;
|
|
24
|
+
export type CustomerStatus = typeof CustomerStatus[keyof typeof CustomerStatus];
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export function instanceOfCustomerStatus(value: any): boolean {
|
|
28
|
+
for (const key in CustomerStatus) {
|
|
29
|
+
if (Object.prototype.hasOwnProperty.call(CustomerStatus, key)) {
|
|
30
|
+
if (CustomerStatus[key as keyof typeof CustomerStatus] === value) {
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function CustomerStatusFromJSON(json: any): CustomerStatus {
|
|
39
|
+
return CustomerStatusFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function CustomerStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomerStatus {
|
|
43
|
+
return json as CustomerStatus;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function CustomerStatusToJSON(value?: CustomerStatus | null): any {
|
|
47
|
+
return value as any;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function CustomerStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): CustomerStatus {
|
|
51
|
+
return value as CustomerStatus;
|
|
52
|
+
}
|
|
53
|
+
|
|
@@ -0,0 +1,58 @@
|
|
|
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 days of the week
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const DayOfWeek = {
|
|
21
|
+
Monday: 'Monday',
|
|
22
|
+
Tuesday: 'Tuesday',
|
|
23
|
+
Wednesday: 'Wednesday',
|
|
24
|
+
Thursday: 'Thursday',
|
|
25
|
+
Friday: 'Friday',
|
|
26
|
+
Saturday: 'Saturday',
|
|
27
|
+
Sunday: 'Sunday'
|
|
28
|
+
} as const;
|
|
29
|
+
export type DayOfWeek = typeof DayOfWeek[keyof typeof DayOfWeek];
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
export function instanceOfDayOfWeek(value: any): boolean {
|
|
33
|
+
for (const key in DayOfWeek) {
|
|
34
|
+
if (Object.prototype.hasOwnProperty.call(DayOfWeek, key)) {
|
|
35
|
+
if (DayOfWeek[key as keyof typeof DayOfWeek] === value) {
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function DayOfWeekFromJSON(json: any): DayOfWeek {
|
|
44
|
+
return DayOfWeekFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function DayOfWeekFromJSONTyped(json: any, ignoreDiscriminator: boolean): DayOfWeek {
|
|
48
|
+
return json as DayOfWeek;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function DayOfWeekToJSON(value?: DayOfWeek | null): any {
|
|
52
|
+
return value as any;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function DayOfWeekToJSONTyped(value: any, ignoreDiscriminator: boolean): DayOfWeek {
|
|
56
|
+
return value as DayOfWeek;
|
|
57
|
+
}
|
|
58
|
+
|
|
@@ -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 DeleteShift200Response
|
|
20
|
+
*/
|
|
21
|
+
export interface DeleteShift200Response {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof DeleteShift200Response
|
|
26
|
+
*/
|
|
27
|
+
success?: boolean;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the DeleteShift200Response interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfDeleteShift200Response(value: object): value is DeleteShift200Response {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function DeleteShift200ResponseFromJSON(json: any): DeleteShift200Response {
|
|
38
|
+
return DeleteShift200ResponseFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function DeleteShift200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteShift200Response {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'success': json['success'] == null ? undefined : json['success'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function DeleteShift200ResponseToJSON(json: any): DeleteShift200Response {
|
|
52
|
+
return DeleteShift200ResponseToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function DeleteShift200ResponseToJSONTyped(value?: DeleteShift200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'success': value['success'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|