@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.
- package/apis/AdminPaymentConfigsApi.ts +37 -0
- package/apis/AdminSubscriptionBillingApi.ts +357 -1
- package/apis/AdminSubscriptionsApi.ts +215 -0
- package/apis/AdminUsersApi.ts +69 -0
- package/apis/AppPlayRegistrationApi.ts +10 -3
- package/apis/BackgroundApi.ts +35 -0
- package/apis/ClubApi.ts +185 -0
- package/apis/ClubPlacesApi.ts +75 -0
- package/apis/TeamsApi.ts +145 -0
- package/apis/index.ts +1 -0
- package/models/ApiAdminPlayPricesPostRequest.ts +2 -3
- package/models/BankCard.ts +109 -0
- package/models/BillingSummaryItemDto.ts +120 -0
- package/models/BulkImportResult.ts +119 -0
- package/models/BulkImportRowError.ts +81 -0
- package/models/BulkMarkBillsPaid200Response.ts +81 -0
- package/models/BulkMarkBillsPaid200ResponseErrorsInner.ts +81 -0
- package/models/ClubMySubscriptionDto.ts +205 -0
- package/models/ClubPlaceRegistrationStatus.ts +91 -0
- package/models/ClubProfileDto.ts +105 -0
- package/models/ClubProfileDtoProfile.ts +227 -0
- package/models/ClubProfileNextMatchDto.ts +128 -0
- package/models/ClubSubscriptionOfferingDto.ts +148 -0
- package/models/CreateCustomerPaymentConfigDto.ts +34 -0
- package/models/CreatePlaySearchRequest.ts +16 -0
- package/models/CreateRecurringGameRequest.ts +41 -1
- package/models/CreateTeamRequest.ts +55 -0
- package/models/CustomerPaymentConfig.ts +35 -0
- package/models/CustomerPaymentConfigDto.ts +35 -0
- package/models/Frequency.ts +3 -1
- package/models/GenerateRecurringGames200Response.ts +73 -0
- package/models/GenerateSubscriptionBillsRequest.ts +14 -5
- package/models/LocationDto.ts +8 -0
- package/models/MarkBillAsPaidRequest.ts +99 -0
- package/models/MyClubClubPlace.ts +128 -0
- package/models/MyClubDefaultLocation.ts +84 -0
- package/models/MyClubDto.ts +177 -0
- package/models/PaymentMethod.ts +2 -1
- package/models/PlayPrice.ts +3 -4
- package/models/PlayRegistrationDTO.ts +15 -0
- package/models/PlayRegistrationDTOPlaySearch.ts +137 -0
- package/models/PlayRegistrationDTOPlaySearchClubPlace.ts +81 -0
- package/models/PlaySearchDTO.ts +8 -0
- package/models/PlaySearchDetailDTO.ts +8 -0
- package/models/PlaySearchType.ts +3 -1
- package/models/PlaySubscription.ts +48 -0
- package/models/PlaySubscriptionCreateDto.ts +48 -0
- package/models/PlaySubscriptionListDto.ts +8 -0
- package/models/PlaySubscriptionType.ts +2 -1
- package/models/RecurringGame.ts +8 -0
- package/models/RecurringGameResponse.ts +16 -0
- package/models/RegisterClubParams.ts +16 -0
- package/models/RegisterForPlaySearchRequest.ts +73 -0
- package/models/Sport.ts +8 -0
- package/models/SubscriptionBill.ts +84 -1
- package/models/SubscriptionBillItemDto.ts +308 -0
- package/models/SubscriptionBillPageDto.ts +101 -0
- package/models/SubscriptionMemberDto.ts +134 -0
- package/models/SubscriptionMembersPageDto.ts +101 -0
- package/models/TeamFeedItemResponse.ts +8 -0
- package/models/TeamMemberResponse.ts +16 -0
- package/models/TeamPreviewResponse.ts +209 -0
- package/models/TeamPreviewResponseCoachesInner.ts +73 -0
- package/models/TeamResponse.ts +32 -0
- package/models/TeamType.ts +3 -2
- package/models/UpdateMemberPaymentConfigRequest.ts +65 -0
- package/models/UpdateRecurringGameRequest.ts +8 -0
- package/models/UpdateTeamRequest.ts +32 -0
- package/models/UploadBillReceipt200Response.ts +65 -0
- package/models/UserDto.ts +3 -4
- package/models/index.ts +28 -0
- package/package.json +1 -1
- package/runtime.ts +1 -1
|
@@ -33,6 +33,30 @@ export interface CreateCustomerPaymentConfigDto {
|
|
|
33
33
|
* @memberof CreateCustomerPaymentConfigDto
|
|
34
34
|
*/
|
|
35
35
|
paymentMethod: PaymentMethod;
|
|
36
|
+
/**
|
|
37
|
+
* Display name for this payment configuration
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CreateCustomerPaymentConfigDto
|
|
40
|
+
*/
|
|
41
|
+
name: string;
|
|
42
|
+
/**
|
|
43
|
+
* Unique code identifier within the customer
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof CreateCustomerPaymentConfigDto
|
|
46
|
+
*/
|
|
47
|
+
code: string;
|
|
48
|
+
/**
|
|
49
|
+
* Discount percentage (0-100)
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof CreateCustomerPaymentConfigDto
|
|
52
|
+
*/
|
|
53
|
+
discount?: number;
|
|
54
|
+
/**
|
|
55
|
+
* ID of the associated bank card (for TARJETA payment method)
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof CreateCustomerPaymentConfigDto
|
|
58
|
+
*/
|
|
59
|
+
bankCardId?: string | null;
|
|
36
60
|
/**
|
|
37
61
|
* Whether this payment configuration is enabled
|
|
38
62
|
* @type {boolean}
|
|
@@ -48,6 +72,8 @@ export interface CreateCustomerPaymentConfigDto {
|
|
|
48
72
|
*/
|
|
49
73
|
export function instanceOfCreateCustomerPaymentConfigDto(value: object): value is CreateCustomerPaymentConfigDto {
|
|
50
74
|
if (!('paymentMethod' in value) || value['paymentMethod'] === undefined) return false;
|
|
75
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
76
|
+
if (!('code' in value) || value['code'] === undefined) return false;
|
|
51
77
|
return true;
|
|
52
78
|
}
|
|
53
79
|
|
|
@@ -62,6 +88,10 @@ export function CreateCustomerPaymentConfigDtoFromJSONTyped(json: any, ignoreDis
|
|
|
62
88
|
return {
|
|
63
89
|
|
|
64
90
|
'paymentMethod': PaymentMethodFromJSON(json['paymentMethod']),
|
|
91
|
+
'name': json['name'],
|
|
92
|
+
'code': json['code'],
|
|
93
|
+
'discount': json['discount'] == null ? undefined : json['discount'],
|
|
94
|
+
'bankCardId': json['bankCardId'] == null ? undefined : json['bankCardId'],
|
|
65
95
|
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
66
96
|
};
|
|
67
97
|
}
|
|
@@ -78,6 +108,10 @@ export function CreateCustomerPaymentConfigDtoToJSONTyped(value?: CreateCustomer
|
|
|
78
108
|
return {
|
|
79
109
|
|
|
80
110
|
'paymentMethod': PaymentMethodToJSON(value['paymentMethod']),
|
|
111
|
+
'name': value['name'],
|
|
112
|
+
'code': value['code'],
|
|
113
|
+
'discount': value['discount'],
|
|
114
|
+
'bankCardId': value['bankCardId'],
|
|
81
115
|
'enabled': value['enabled'],
|
|
82
116
|
};
|
|
83
117
|
}
|
|
@@ -137,6 +137,18 @@ export interface CreatePlaySearchRequest {
|
|
|
137
137
|
* @memberof CreatePlaySearchRequest
|
|
138
138
|
*/
|
|
139
139
|
reserveId?: string | null;
|
|
140
|
+
/**
|
|
141
|
+
* If true, not shown in community searches. Visible only from team view.
|
|
142
|
+
* @type {boolean}
|
|
143
|
+
* @memberof CreatePlaySearchRequest
|
|
144
|
+
*/
|
|
145
|
+
isPrivate?: boolean;
|
|
146
|
+
/**
|
|
147
|
+
* Team this cancha abierta belongs to (for team context creation)
|
|
148
|
+
* @type {string}
|
|
149
|
+
* @memberof CreatePlaySearchRequest
|
|
150
|
+
*/
|
|
151
|
+
teamId?: string | null;
|
|
140
152
|
}
|
|
141
153
|
|
|
142
154
|
|
|
@@ -193,6 +205,8 @@ export function CreatePlaySearchRequestFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
193
205
|
'paymentMethod': json['paymentMethod'],
|
|
194
206
|
'notes': json['notes'] == null ? undefined : json['notes'],
|
|
195
207
|
'reserveId': json['reserveId'] == null ? undefined : json['reserveId'],
|
|
208
|
+
'isPrivate': json['isPrivate'] == null ? undefined : json['isPrivate'],
|
|
209
|
+
'teamId': json['teamId'] == null ? undefined : json['teamId'],
|
|
196
210
|
};
|
|
197
211
|
}
|
|
198
212
|
|
|
@@ -223,6 +237,8 @@ export function CreatePlaySearchRequestToJSONTyped(value?: CreatePlaySearchReque
|
|
|
223
237
|
'paymentMethod': value['paymentMethod'],
|
|
224
238
|
'notes': value['notes'],
|
|
225
239
|
'reserveId': value['reserveId'],
|
|
240
|
+
'isPrivate': value['isPrivate'],
|
|
241
|
+
'teamId': value['teamId'],
|
|
226
242
|
};
|
|
227
243
|
}
|
|
228
244
|
|
|
@@ -44,17 +44,47 @@ export interface CreateRecurringGameRequest {
|
|
|
44
44
|
*/
|
|
45
45
|
duration: CreateRecurringGameRequestDurationEnum;
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
47
|
+
* Google Places ID
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof CreateRecurringGameRequest
|
|
50
50
|
*/
|
|
51
51
|
clubPlaceId: string;
|
|
52
|
+
/**
|
|
53
|
+
* Place name from Google Places
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof CreateRecurringGameRequest
|
|
56
|
+
*/
|
|
57
|
+
clubPlaceName?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Place address from Google Places
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof CreateRecurringGameRequest
|
|
62
|
+
*/
|
|
63
|
+
clubPlaceAddress?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Place latitude
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof CreateRecurringGameRequest
|
|
68
|
+
*/
|
|
69
|
+
clubPlaceLatitude?: number;
|
|
70
|
+
/**
|
|
71
|
+
* Place longitude
|
|
72
|
+
* @type {number}
|
|
73
|
+
* @memberof CreateRecurringGameRequest
|
|
74
|
+
*/
|
|
75
|
+
clubPlaceLongitude?: number;
|
|
52
76
|
/**
|
|
53
77
|
*
|
|
54
78
|
* @type {number}
|
|
55
79
|
* @memberof CreateRecurringGameRequest
|
|
56
80
|
*/
|
|
57
81
|
precio?: number | null;
|
|
82
|
+
/**
|
|
83
|
+
* Number of players needed per match (0 = no limit)
|
|
84
|
+
* @type {number}
|
|
85
|
+
* @memberof CreateRecurringGameRequest
|
|
86
|
+
*/
|
|
87
|
+
quota?: number;
|
|
58
88
|
/**
|
|
59
89
|
* Days before match to create PlaySearch
|
|
60
90
|
* @type {number}
|
|
@@ -102,7 +132,12 @@ export function CreateRecurringGameRequestFromJSONTyped(json: any, ignoreDiscrim
|
|
|
102
132
|
'time': json['time'],
|
|
103
133
|
'duration': json['duration'],
|
|
104
134
|
'clubPlaceId': json['clubPlaceId'],
|
|
135
|
+
'clubPlaceName': json['clubPlaceName'] == null ? undefined : json['clubPlaceName'],
|
|
136
|
+
'clubPlaceAddress': json['clubPlaceAddress'] == null ? undefined : json['clubPlaceAddress'],
|
|
137
|
+
'clubPlaceLatitude': json['clubPlaceLatitude'] == null ? undefined : json['clubPlaceLatitude'],
|
|
138
|
+
'clubPlaceLongitude': json['clubPlaceLongitude'] == null ? undefined : json['clubPlaceLongitude'],
|
|
105
139
|
'precio': json['precio'] == null ? undefined : json['precio'],
|
|
140
|
+
'quota': json['quota'] == null ? undefined : json['quota'],
|
|
106
141
|
'daysBeforeMatch': json['daysBeforeMatch'],
|
|
107
142
|
};
|
|
108
143
|
}
|
|
@@ -123,7 +158,12 @@ export function CreateRecurringGameRequestToJSONTyped(value?: CreateRecurringGam
|
|
|
123
158
|
'time': value['time'],
|
|
124
159
|
'duration': value['duration'],
|
|
125
160
|
'clubPlaceId': value['clubPlaceId'],
|
|
161
|
+
'clubPlaceName': value['clubPlaceName'],
|
|
162
|
+
'clubPlaceAddress': value['clubPlaceAddress'],
|
|
163
|
+
'clubPlaceLatitude': value['clubPlaceLatitude'],
|
|
164
|
+
'clubPlaceLongitude': value['clubPlaceLongitude'],
|
|
126
165
|
'precio': value['precio'],
|
|
166
|
+
'quota': value['quota'],
|
|
127
167
|
'daysBeforeMatch': value['daysBeforeMatch'],
|
|
128
168
|
};
|
|
129
169
|
}
|
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
TeamTypeToJSON,
|
|
21
21
|
TeamTypeToJSONTyped,
|
|
22
22
|
} from './TeamType';
|
|
23
|
+
import type { CreateClubPlaceRequest } from './CreateClubPlaceRequest';
|
|
24
|
+
import {
|
|
25
|
+
CreateClubPlaceRequestFromJSON,
|
|
26
|
+
CreateClubPlaceRequestFromJSONTyped,
|
|
27
|
+
CreateClubPlaceRequestToJSON,
|
|
28
|
+
CreateClubPlaceRequestToJSONTyped,
|
|
29
|
+
} from './CreateClubPlaceRequest';
|
|
23
30
|
|
|
24
31
|
/**
|
|
25
32
|
*
|
|
@@ -57,12 +64,30 @@ export interface CreateTeamRequest {
|
|
|
57
64
|
* @memberof CreateTeamRequest
|
|
58
65
|
*/
|
|
59
66
|
customerId?: string;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {CreateClubPlaceRequest}
|
|
70
|
+
* @memberof CreateTeamRequest
|
|
71
|
+
*/
|
|
72
|
+
clubPlace?: CreateClubPlaceRequest;
|
|
60
73
|
/**
|
|
61
74
|
*
|
|
62
75
|
* @type {string}
|
|
63
76
|
* @memberof CreateTeamRequest
|
|
64
77
|
*/
|
|
65
78
|
avatarUrl?: string;
|
|
79
|
+
/**
|
|
80
|
+
* Team banner image URL (16:9 ratio)
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof CreateTeamRequest
|
|
83
|
+
*/
|
|
84
|
+
bannerUrl?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Team categories (e.g. KIDS, ADULTS)
|
|
87
|
+
* @type {Array<string>}
|
|
88
|
+
* @memberof CreateTeamRequest
|
|
89
|
+
*/
|
|
90
|
+
categories?: Array<string>;
|
|
66
91
|
/**
|
|
67
92
|
* Background color (hex code)
|
|
68
93
|
* @type {string}
|
|
@@ -75,6 +100,24 @@ export interface CreateTeamRequest {
|
|
|
75
100
|
* @memberof CreateTeamRequest
|
|
76
101
|
*/
|
|
77
102
|
fgColor?: string;
|
|
103
|
+
/**
|
|
104
|
+
* Base64 encoded avatar image (data URL format)
|
|
105
|
+
* @type {string}
|
|
106
|
+
* @memberof CreateTeamRequest
|
|
107
|
+
*/
|
|
108
|
+
avatarBase64?: string;
|
|
109
|
+
/**
|
|
110
|
+
* Base64 encoded banner image (data URL format, 16:9 ratio)
|
|
111
|
+
* @type {string}
|
|
112
|
+
* @memberof CreateTeamRequest
|
|
113
|
+
*/
|
|
114
|
+
bannerBase64?: string;
|
|
115
|
+
/**
|
|
116
|
+
* Optional team bio / description (max 500 chars)
|
|
117
|
+
* @type {string}
|
|
118
|
+
* @memberof CreateTeamRequest
|
|
119
|
+
*/
|
|
120
|
+
bio?: string;
|
|
78
121
|
}
|
|
79
122
|
|
|
80
123
|
|
|
@@ -104,9 +147,15 @@ export function CreateTeamRequestFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
104
147
|
'type': TeamTypeFromJSON(json['type']),
|
|
105
148
|
'nivel': json['nivel'] == null ? undefined : json['nivel'],
|
|
106
149
|
'customerId': json['customerId'] == null ? undefined : json['customerId'],
|
|
150
|
+
'clubPlace': json['clubPlace'] == null ? undefined : CreateClubPlaceRequestFromJSON(json['clubPlace']),
|
|
107
151
|
'avatarUrl': json['avatarUrl'] == null ? undefined : json['avatarUrl'],
|
|
152
|
+
'bannerUrl': json['bannerUrl'] == null ? undefined : json['bannerUrl'],
|
|
153
|
+
'categories': json['categories'] == null ? undefined : json['categories'],
|
|
108
154
|
'bgColor': json['bgColor'] == null ? undefined : json['bgColor'],
|
|
109
155
|
'fgColor': json['fgColor'] == null ? undefined : json['fgColor'],
|
|
156
|
+
'avatarBase64': json['avatarBase64'] == null ? undefined : json['avatarBase64'],
|
|
157
|
+
'bannerBase64': json['bannerBase64'] == null ? undefined : json['bannerBase64'],
|
|
158
|
+
'bio': json['bio'] == null ? undefined : json['bio'],
|
|
110
159
|
};
|
|
111
160
|
}
|
|
112
161
|
|
|
@@ -126,9 +175,15 @@ export function CreateTeamRequestToJSONTyped(value?: CreateTeamRequest | null, i
|
|
|
126
175
|
'type': TeamTypeToJSON(value['type']),
|
|
127
176
|
'nivel': value['nivel'],
|
|
128
177
|
'customerId': value['customerId'],
|
|
178
|
+
'clubPlace': CreateClubPlaceRequestToJSON(value['clubPlace']),
|
|
129
179
|
'avatarUrl': value['avatarUrl'],
|
|
180
|
+
'bannerUrl': value['bannerUrl'],
|
|
181
|
+
'categories': value['categories'],
|
|
130
182
|
'bgColor': value['bgColor'],
|
|
131
183
|
'fgColor': value['fgColor'],
|
|
184
|
+
'avatarBase64': value['avatarBase64'],
|
|
185
|
+
'bannerBase64': value['bannerBase64'],
|
|
186
|
+
'bio': value['bio'],
|
|
132
187
|
};
|
|
133
188
|
}
|
|
134
189
|
|
|
@@ -45,6 +45,30 @@ export interface CustomerPaymentConfig {
|
|
|
45
45
|
* @memberof CustomerPaymentConfig
|
|
46
46
|
*/
|
|
47
47
|
paymentMethod: PaymentMethod;
|
|
48
|
+
/**
|
|
49
|
+
* Display name for this payment configuration
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof CustomerPaymentConfig
|
|
52
|
+
*/
|
|
53
|
+
name: string;
|
|
54
|
+
/**
|
|
55
|
+
* Unique code identifier within the customer
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof CustomerPaymentConfig
|
|
58
|
+
*/
|
|
59
|
+
code: string;
|
|
60
|
+
/**
|
|
61
|
+
* Discount percentage (0-100)
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof CustomerPaymentConfig
|
|
64
|
+
*/
|
|
65
|
+
discount: number;
|
|
66
|
+
/**
|
|
67
|
+
* ID of the associated bank card (for TARJETA payment method)
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof CustomerPaymentConfig
|
|
70
|
+
*/
|
|
71
|
+
bankCardId?: string | null;
|
|
48
72
|
/**
|
|
49
73
|
* Access token for the payment provider (sensitive data, not exposed in DTOs)
|
|
50
74
|
* @type {string}
|
|
@@ -91,6 +115,9 @@ export interface CustomerPaymentConfig {
|
|
|
91
115
|
export function instanceOfCustomerPaymentConfig(value: object): value is CustomerPaymentConfig {
|
|
92
116
|
if (!('customerId' in value) || value['customerId'] === undefined) return false;
|
|
93
117
|
if (!('paymentMethod' in value) || value['paymentMethod'] === undefined) return false;
|
|
118
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
119
|
+
if (!('code' in value) || value['code'] === undefined) return false;
|
|
120
|
+
if (!('discount' in value) || value['discount'] === undefined) return false;
|
|
94
121
|
if (!('enabled' in value) || value['enabled'] === undefined) return false;
|
|
95
122
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
96
123
|
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
@@ -110,6 +137,10 @@ export function CustomerPaymentConfigFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
110
137
|
'id': json['id'] == null ? undefined : json['id'],
|
|
111
138
|
'customerId': json['customerId'],
|
|
112
139
|
'paymentMethod': PaymentMethodFromJSON(json['paymentMethod']),
|
|
140
|
+
'name': json['name'],
|
|
141
|
+
'code': json['code'],
|
|
142
|
+
'discount': json['discount'],
|
|
143
|
+
'bankCardId': json['bankCardId'] == null ? undefined : json['bankCardId'],
|
|
113
144
|
'accessToken': json['accessToken'] == null ? undefined : json['accessToken'],
|
|
114
145
|
'refreshToken': json['refreshToken'] == null ? undefined : json['refreshToken'],
|
|
115
146
|
'providerId': json['providerId'] == null ? undefined : json['providerId'],
|
|
@@ -133,6 +164,10 @@ export function CustomerPaymentConfigToJSONTyped(value?: CustomerPaymentConfig |
|
|
|
133
164
|
'id': value['id'],
|
|
134
165
|
'customerId': value['customerId'],
|
|
135
166
|
'paymentMethod': PaymentMethodToJSON(value['paymentMethod']),
|
|
167
|
+
'name': value['name'],
|
|
168
|
+
'code': value['code'],
|
|
169
|
+
'discount': value['discount'],
|
|
170
|
+
'bankCardId': value['bankCardId'],
|
|
136
171
|
'accessToken': value['accessToken'],
|
|
137
172
|
'refreshToken': value['refreshToken'],
|
|
138
173
|
'providerId': value['providerId'],
|
|
@@ -33,6 +33,30 @@ export interface CustomerPaymentConfigDto {
|
|
|
33
33
|
* @memberof CustomerPaymentConfigDto
|
|
34
34
|
*/
|
|
35
35
|
paymentMethod: PaymentMethod;
|
|
36
|
+
/**
|
|
37
|
+
* Display name for this payment configuration
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CustomerPaymentConfigDto
|
|
40
|
+
*/
|
|
41
|
+
name: string;
|
|
42
|
+
/**
|
|
43
|
+
* Unique code identifier within the customer
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof CustomerPaymentConfigDto
|
|
46
|
+
*/
|
|
47
|
+
code: string;
|
|
48
|
+
/**
|
|
49
|
+
* Discount percentage (0-100)
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof CustomerPaymentConfigDto
|
|
52
|
+
*/
|
|
53
|
+
discount: number;
|
|
54
|
+
/**
|
|
55
|
+
* ID of the associated bank card (for TARJETA payment method)
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof CustomerPaymentConfigDto
|
|
58
|
+
*/
|
|
59
|
+
bankCardId?: string | null;
|
|
36
60
|
/**
|
|
37
61
|
* Whether this payment configuration is enabled
|
|
38
62
|
* @type {boolean}
|
|
@@ -48,6 +72,9 @@ export interface CustomerPaymentConfigDto {
|
|
|
48
72
|
*/
|
|
49
73
|
export function instanceOfCustomerPaymentConfigDto(value: object): value is CustomerPaymentConfigDto {
|
|
50
74
|
if (!('paymentMethod' in value) || value['paymentMethod'] === undefined) return false;
|
|
75
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
76
|
+
if (!('code' in value) || value['code'] === undefined) return false;
|
|
77
|
+
if (!('discount' in value) || value['discount'] === undefined) return false;
|
|
51
78
|
if (!('enabled' in value) || value['enabled'] === undefined) return false;
|
|
52
79
|
return true;
|
|
53
80
|
}
|
|
@@ -63,6 +90,10 @@ export function CustomerPaymentConfigDtoFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
63
90
|
return {
|
|
64
91
|
|
|
65
92
|
'paymentMethod': PaymentMethodFromJSON(json['paymentMethod']),
|
|
93
|
+
'name': json['name'],
|
|
94
|
+
'code': json['code'],
|
|
95
|
+
'discount': json['discount'],
|
|
96
|
+
'bankCardId': json['bankCardId'] == null ? undefined : json['bankCardId'],
|
|
66
97
|
'enabled': json['enabled'],
|
|
67
98
|
};
|
|
68
99
|
}
|
|
@@ -79,6 +110,10 @@ export function CustomerPaymentConfigDtoToJSONTyped(value?: CustomerPaymentConfi
|
|
|
79
110
|
return {
|
|
80
111
|
|
|
81
112
|
'paymentMethod': PaymentMethodToJSON(value['paymentMethod']),
|
|
113
|
+
'name': value['name'],
|
|
114
|
+
'code': value['code'],
|
|
115
|
+
'discount': value['discount'],
|
|
116
|
+
'bankCardId': value['bankCardId'],
|
|
82
117
|
'enabled': value['enabled'],
|
|
83
118
|
};
|
|
84
119
|
}
|
package/models/Frequency.ts
CHANGED
|
@@ -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 GenerateRecurringGames200Response
|
|
20
|
+
*/
|
|
21
|
+
export interface GenerateRecurringGames200Response {
|
|
22
|
+
/**
|
|
23
|
+
* Number of recurring games checked
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof GenerateRecurringGames200Response
|
|
26
|
+
*/
|
|
27
|
+
processed?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Total new PlaySearch events created
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof GenerateRecurringGames200Response
|
|
32
|
+
*/
|
|
33
|
+
created?: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the GenerateRecurringGames200Response interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfGenerateRecurringGames200Response(value: object): value is GenerateRecurringGames200Response {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function GenerateRecurringGames200ResponseFromJSON(json: any): GenerateRecurringGames200Response {
|
|
44
|
+
return GenerateRecurringGames200ResponseFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function GenerateRecurringGames200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GenerateRecurringGames200Response {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'processed': json['processed'] == null ? undefined : json['processed'],
|
|
54
|
+
'created': json['created'] == null ? undefined : json['created'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function GenerateRecurringGames200ResponseToJSON(json: any): GenerateRecurringGames200Response {
|
|
59
|
+
return GenerateRecurringGames200ResponseToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function GenerateRecurringGames200ResponseToJSONTyped(value?: GenerateRecurringGames200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'processed': value['processed'],
|
|
70
|
+
'created': value['created'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -20,17 +20,24 @@ import { mapValues } from '../runtime';
|
|
|
20
20
|
*/
|
|
21
21
|
export interface GenerateSubscriptionBillsRequest {
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {
|
|
23
|
+
* Period number (e.g., Week 3, Month 4, Quarter 1)
|
|
24
|
+
* @type {number}
|
|
25
25
|
* @memberof GenerateSubscriptionBillsRequest
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
periodNumber: number;
|
|
28
|
+
/**
|
|
29
|
+
* The year for this billing period (defaults to current year)
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof GenerateSubscriptionBillsRequest
|
|
32
|
+
*/
|
|
33
|
+
billingYear?: number;
|
|
28
34
|
}
|
|
29
35
|
|
|
30
36
|
/**
|
|
31
37
|
* Check if a given object implements the GenerateSubscriptionBillsRequest interface.
|
|
32
38
|
*/
|
|
33
39
|
export function instanceOfGenerateSubscriptionBillsRequest(value: object): value is GenerateSubscriptionBillsRequest {
|
|
40
|
+
if (!('periodNumber' in value) || value['periodNumber'] === undefined) return false;
|
|
34
41
|
return true;
|
|
35
42
|
}
|
|
36
43
|
|
|
@@ -44,7 +51,8 @@ export function GenerateSubscriptionBillsRequestFromJSONTyped(json: any, ignoreD
|
|
|
44
51
|
}
|
|
45
52
|
return {
|
|
46
53
|
|
|
47
|
-
'
|
|
54
|
+
'periodNumber': json['periodNumber'],
|
|
55
|
+
'billingYear': json['billingYear'] == null ? undefined : json['billingYear'],
|
|
48
56
|
};
|
|
49
57
|
}
|
|
50
58
|
|
|
@@ -59,7 +67,8 @@ export function GenerateSubscriptionBillsRequestToJSONTyped(value?: GenerateSubs
|
|
|
59
67
|
|
|
60
68
|
return {
|
|
61
69
|
|
|
62
|
-
'
|
|
70
|
+
'periodNumber': value['periodNumber'],
|
|
71
|
+
'billingYear': value['billingYear'],
|
|
63
72
|
};
|
|
64
73
|
}
|
|
65
74
|
|
package/models/LocationDto.ts
CHANGED
|
@@ -129,6 +129,12 @@ export interface LocationDto {
|
|
|
129
129
|
* @memberof LocationDto
|
|
130
130
|
*/
|
|
131
131
|
isDefault?: boolean;
|
|
132
|
+
/**
|
|
133
|
+
* Google Maps Place ID used to link or create a ClubPlace record for this location.
|
|
134
|
+
* @type {string}
|
|
135
|
+
* @memberof LocationDto
|
|
136
|
+
*/
|
|
137
|
+
placeId?: string;
|
|
132
138
|
}
|
|
133
139
|
|
|
134
140
|
/**
|
|
@@ -168,6 +174,7 @@ export function LocationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
168
174
|
'twitterHandle': json['twitterHandle'] == null ? undefined : json['twitterHandle'],
|
|
169
175
|
'youtubeHandle': json['youtubeHandle'] == null ? undefined : json['youtubeHandle'],
|
|
170
176
|
'isDefault': json['isDefault'] == null ? undefined : json['isDefault'],
|
|
177
|
+
'placeId': json['placeId'] == null ? undefined : json['placeId'],
|
|
171
178
|
};
|
|
172
179
|
}
|
|
173
180
|
|
|
@@ -199,6 +206,7 @@ export function LocationDtoToJSONTyped(value?: LocationDto | null, ignoreDiscrim
|
|
|
199
206
|
'twitterHandle': value['twitterHandle'],
|
|
200
207
|
'youtubeHandle': value['youtubeHandle'],
|
|
201
208
|
'isDefault': value['isDefault'],
|
|
209
|
+
'placeId': value['placeId'],
|
|
202
210
|
};
|
|
203
211
|
}
|
|
204
212
|
|
|
@@ -0,0 +1,99 @@
|
|
|
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 MarkBillAsPaidRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface MarkBillAsPaidRequest {
|
|
22
|
+
/**
|
|
23
|
+
* Amount actually paid
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof MarkBillAsPaidRequest
|
|
26
|
+
*/
|
|
27
|
+
paidAmount: number;
|
|
28
|
+
/**
|
|
29
|
+
* Receipt/comprobante number
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof MarkBillAsPaidRequest
|
|
32
|
+
*/
|
|
33
|
+
receiptNumber?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Reference or transfer number
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof MarkBillAsPaidRequest
|
|
38
|
+
*/
|
|
39
|
+
referenceNumber?: string;
|
|
40
|
+
/**
|
|
41
|
+
* When payment was made
|
|
42
|
+
* @type {Date}
|
|
43
|
+
* @memberof MarkBillAsPaidRequest
|
|
44
|
+
*/
|
|
45
|
+
paymentDate: Date;
|
|
46
|
+
/**
|
|
47
|
+
* URL of receipt attachment
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof MarkBillAsPaidRequest
|
|
50
|
+
*/
|
|
51
|
+
receiptUrl?: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the MarkBillAsPaidRequest interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfMarkBillAsPaidRequest(value: object): value is MarkBillAsPaidRequest {
|
|
58
|
+
if (!('paidAmount' in value) || value['paidAmount'] === undefined) return false;
|
|
59
|
+
if (!('paymentDate' in value) || value['paymentDate'] === undefined) return false;
|
|
60
|
+
return true;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function MarkBillAsPaidRequestFromJSON(json: any): MarkBillAsPaidRequest {
|
|
64
|
+
return MarkBillAsPaidRequestFromJSONTyped(json, false);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function MarkBillAsPaidRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): MarkBillAsPaidRequest {
|
|
68
|
+
if (json == null) {
|
|
69
|
+
return json;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
|
|
73
|
+
'paidAmount': json['paidAmount'],
|
|
74
|
+
'receiptNumber': json['receiptNumber'] == null ? undefined : json['receiptNumber'],
|
|
75
|
+
'referenceNumber': json['referenceNumber'] == null ? undefined : json['referenceNumber'],
|
|
76
|
+
'paymentDate': (new Date(json['paymentDate'])),
|
|
77
|
+
'receiptUrl': json['receiptUrl'] == null ? undefined : json['receiptUrl'],
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function MarkBillAsPaidRequestToJSON(json: any): MarkBillAsPaidRequest {
|
|
82
|
+
return MarkBillAsPaidRequestToJSONTyped(json, false);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function MarkBillAsPaidRequestToJSONTyped(value?: MarkBillAsPaidRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
86
|
+
if (value == null) {
|
|
87
|
+
return value;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
return {
|
|
91
|
+
|
|
92
|
+
'paidAmount': value['paidAmount'],
|
|
93
|
+
'receiptNumber': value['receiptNumber'],
|
|
94
|
+
'referenceNumber': value['referenceNumber'],
|
|
95
|
+
'paymentDate': ((value['paymentDate']).toISOString()),
|
|
96
|
+
'receiptUrl': value['receiptUrl'],
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|