@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
|
@@ -0,0 +1,120 @@
|
|
|
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 BillingSummaryItemDto
|
|
20
|
+
*/
|
|
21
|
+
export interface BillingSummaryItemDto {
|
|
22
|
+
/**
|
|
23
|
+
* The billing year
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof BillingSummaryItemDto
|
|
26
|
+
*/
|
|
27
|
+
billingYear: number;
|
|
28
|
+
/**
|
|
29
|
+
* Billing frequency
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof BillingSummaryItemDto
|
|
32
|
+
*/
|
|
33
|
+
frequency: string;
|
|
34
|
+
/**
|
|
35
|
+
* Period number within the year
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof BillingSummaryItemDto
|
|
38
|
+
*/
|
|
39
|
+
periodNumber: number;
|
|
40
|
+
/**
|
|
41
|
+
* Sum of all bill amounts
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof BillingSummaryItemDto
|
|
44
|
+
*/
|
|
45
|
+
totalBilled: number;
|
|
46
|
+
/**
|
|
47
|
+
* Sum of paid amounts
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof BillingSummaryItemDto
|
|
50
|
+
*/
|
|
51
|
+
totalCollected: number;
|
|
52
|
+
/**
|
|
53
|
+
* totalBilled minus totalCollected
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof BillingSummaryItemDto
|
|
56
|
+
*/
|
|
57
|
+
totalDebt: number;
|
|
58
|
+
/**
|
|
59
|
+
* Number of bills in this period
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof BillingSummaryItemDto
|
|
62
|
+
*/
|
|
63
|
+
billCount: number;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Check if a given object implements the BillingSummaryItemDto interface.
|
|
68
|
+
*/
|
|
69
|
+
export function instanceOfBillingSummaryItemDto(value: object): value is BillingSummaryItemDto {
|
|
70
|
+
if (!('billingYear' in value) || value['billingYear'] === undefined) return false;
|
|
71
|
+
if (!('frequency' in value) || value['frequency'] === undefined) return false;
|
|
72
|
+
if (!('periodNumber' in value) || value['periodNumber'] === undefined) return false;
|
|
73
|
+
if (!('totalBilled' in value) || value['totalBilled'] === undefined) return false;
|
|
74
|
+
if (!('totalCollected' in value) || value['totalCollected'] === undefined) return false;
|
|
75
|
+
if (!('totalDebt' in value) || value['totalDebt'] === undefined) return false;
|
|
76
|
+
if (!('billCount' in value) || value['billCount'] === undefined) return false;
|
|
77
|
+
return true;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function BillingSummaryItemDtoFromJSON(json: any): BillingSummaryItemDto {
|
|
81
|
+
return BillingSummaryItemDtoFromJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function BillingSummaryItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BillingSummaryItemDto {
|
|
85
|
+
if (json == null) {
|
|
86
|
+
return json;
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
|
|
90
|
+
'billingYear': json['billingYear'],
|
|
91
|
+
'frequency': json['frequency'],
|
|
92
|
+
'periodNumber': json['periodNumber'],
|
|
93
|
+
'totalBilled': json['totalBilled'],
|
|
94
|
+
'totalCollected': json['totalCollected'],
|
|
95
|
+
'totalDebt': json['totalDebt'],
|
|
96
|
+
'billCount': json['billCount'],
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function BillingSummaryItemDtoToJSON(json: any): BillingSummaryItemDto {
|
|
101
|
+
return BillingSummaryItemDtoToJSONTyped(json, false);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function BillingSummaryItemDtoToJSONTyped(value?: BillingSummaryItemDto | null, ignoreDiscriminator: boolean = false): any {
|
|
105
|
+
if (value == null) {
|
|
106
|
+
return value;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
return {
|
|
110
|
+
|
|
111
|
+
'billingYear': value['billingYear'],
|
|
112
|
+
'frequency': value['frequency'],
|
|
113
|
+
'periodNumber': value['periodNumber'],
|
|
114
|
+
'totalBilled': value['totalBilled'],
|
|
115
|
+
'totalCollected': value['totalCollected'],
|
|
116
|
+
'totalDebt': value['totalDebt'],
|
|
117
|
+
'billCount': value['billCount'],
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
|
|
@@ -0,0 +1,119 @@
|
|
|
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 { BulkImportRowError } from './BulkImportRowError';
|
|
17
|
+
import {
|
|
18
|
+
BulkImportRowErrorFromJSON,
|
|
19
|
+
BulkImportRowErrorFromJSONTyped,
|
|
20
|
+
BulkImportRowErrorToJSON,
|
|
21
|
+
BulkImportRowErrorToJSONTyped,
|
|
22
|
+
} from './BulkImportRowError';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface BulkImportResult
|
|
28
|
+
*/
|
|
29
|
+
export interface BulkImportResult {
|
|
30
|
+
/**
|
|
31
|
+
* Total rows processed from CSV
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof BulkImportResult
|
|
34
|
+
*/
|
|
35
|
+
totalRows: number;
|
|
36
|
+
/**
|
|
37
|
+
* New users created
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof BulkImportResult
|
|
40
|
+
*/
|
|
41
|
+
created: number;
|
|
42
|
+
/**
|
|
43
|
+
* Existing users linked to club
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof BulkImportResult
|
|
46
|
+
*/
|
|
47
|
+
linked: number;
|
|
48
|
+
/**
|
|
49
|
+
* Users already in the club
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof BulkImportResult
|
|
52
|
+
*/
|
|
53
|
+
alreadyMember: number;
|
|
54
|
+
/**
|
|
55
|
+
* Users added to subscription (subscription mode only)
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof BulkImportResult
|
|
58
|
+
*/
|
|
59
|
+
addedToSubscription: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {Array<BulkImportRowError>}
|
|
63
|
+
* @memberof BulkImportResult
|
|
64
|
+
*/
|
|
65
|
+
errors: Array<BulkImportRowError>;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Check if a given object implements the BulkImportResult interface.
|
|
70
|
+
*/
|
|
71
|
+
export function instanceOfBulkImportResult(value: object): value is BulkImportResult {
|
|
72
|
+
if (!('totalRows' in value) || value['totalRows'] === undefined) return false;
|
|
73
|
+
if (!('created' in value) || value['created'] === undefined) return false;
|
|
74
|
+
if (!('linked' in value) || value['linked'] === undefined) return false;
|
|
75
|
+
if (!('alreadyMember' in value) || value['alreadyMember'] === undefined) return false;
|
|
76
|
+
if (!('addedToSubscription' in value) || value['addedToSubscription'] === undefined) return false;
|
|
77
|
+
if (!('errors' in value) || value['errors'] === undefined) return false;
|
|
78
|
+
return true;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function BulkImportResultFromJSON(json: any): BulkImportResult {
|
|
82
|
+
return BulkImportResultFromJSONTyped(json, false);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function BulkImportResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkImportResult {
|
|
86
|
+
if (json == null) {
|
|
87
|
+
return json;
|
|
88
|
+
}
|
|
89
|
+
return {
|
|
90
|
+
|
|
91
|
+
'totalRows': json['totalRows'],
|
|
92
|
+
'created': json['created'],
|
|
93
|
+
'linked': json['linked'],
|
|
94
|
+
'alreadyMember': json['alreadyMember'],
|
|
95
|
+
'addedToSubscription': json['addedToSubscription'],
|
|
96
|
+
'errors': ((json['errors'] as Array<any>).map(BulkImportRowErrorFromJSON)),
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function BulkImportResultToJSON(json: any): BulkImportResult {
|
|
101
|
+
return BulkImportResultToJSONTyped(json, false);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function BulkImportResultToJSONTyped(value?: BulkImportResult | null, ignoreDiscriminator: boolean = false): any {
|
|
105
|
+
if (value == null) {
|
|
106
|
+
return value;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
return {
|
|
110
|
+
|
|
111
|
+
'totalRows': value['totalRows'],
|
|
112
|
+
'created': value['created'],
|
|
113
|
+
'linked': value['linked'],
|
|
114
|
+
'alreadyMember': value['alreadyMember'],
|
|
115
|
+
'addedToSubscription': value['addedToSubscription'],
|
|
116
|
+
'errors': ((value['errors'] as Array<any>).map(BulkImportRowErrorToJSON)),
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
|
|
@@ -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 BulkImportRowError
|
|
20
|
+
*/
|
|
21
|
+
export interface BulkImportRowError {
|
|
22
|
+
/**
|
|
23
|
+
* Row number in the CSV (1-based)
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof BulkImportRowError
|
|
26
|
+
*/
|
|
27
|
+
row?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Email from the row (if available)
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof BulkImportRowError
|
|
32
|
+
*/
|
|
33
|
+
email?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Error message
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof BulkImportRowError
|
|
38
|
+
*/
|
|
39
|
+
error?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the BulkImportRowError interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfBulkImportRowError(value: object): value is BulkImportRowError {
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function BulkImportRowErrorFromJSON(json: any): BulkImportRowError {
|
|
50
|
+
return BulkImportRowErrorFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function BulkImportRowErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkImportRowError {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
|
|
59
|
+
'row': json['row'] == null ? undefined : json['row'],
|
|
60
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
61
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function BulkImportRowErrorToJSON(json: any): BulkImportRowError {
|
|
66
|
+
return BulkImportRowErrorToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function BulkImportRowErrorToJSONTyped(value?: BulkImportRowError | null, ignoreDiscriminator: boolean = false): any {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'row': value['row'],
|
|
77
|
+
'email': value['email'],
|
|
78
|
+
'error': value['error'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
@@ -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
|
+
import type { BulkMarkBillsPaid200ResponseErrorsInner } from './BulkMarkBillsPaid200ResponseErrorsInner';
|
|
17
|
+
import {
|
|
18
|
+
BulkMarkBillsPaid200ResponseErrorsInnerFromJSON,
|
|
19
|
+
BulkMarkBillsPaid200ResponseErrorsInnerFromJSONTyped,
|
|
20
|
+
BulkMarkBillsPaid200ResponseErrorsInnerToJSON,
|
|
21
|
+
BulkMarkBillsPaid200ResponseErrorsInnerToJSONTyped,
|
|
22
|
+
} from './BulkMarkBillsPaid200ResponseErrorsInner';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface BulkMarkBillsPaid200Response
|
|
28
|
+
*/
|
|
29
|
+
export interface BulkMarkBillsPaid200Response {
|
|
30
|
+
/**
|
|
31
|
+
* Number of bills successfully marked as paid
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof BulkMarkBillsPaid200Response
|
|
34
|
+
*/
|
|
35
|
+
success?: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Array<BulkMarkBillsPaid200ResponseErrorsInner>}
|
|
39
|
+
* @memberof BulkMarkBillsPaid200Response
|
|
40
|
+
*/
|
|
41
|
+
errors?: Array<BulkMarkBillsPaid200ResponseErrorsInner>;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the BulkMarkBillsPaid200Response interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfBulkMarkBillsPaid200Response(value: object): value is BulkMarkBillsPaid200Response {
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function BulkMarkBillsPaid200ResponseFromJSON(json: any): BulkMarkBillsPaid200Response {
|
|
52
|
+
return BulkMarkBillsPaid200ResponseFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function BulkMarkBillsPaid200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkMarkBillsPaid200Response {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
|
|
61
|
+
'success': json['success'] == null ? undefined : json['success'],
|
|
62
|
+
'errors': json['errors'] == null ? undefined : ((json['errors'] as Array<any>).map(BulkMarkBillsPaid200ResponseErrorsInnerFromJSON)),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function BulkMarkBillsPaid200ResponseToJSON(json: any): BulkMarkBillsPaid200Response {
|
|
67
|
+
return BulkMarkBillsPaid200ResponseToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function BulkMarkBillsPaid200ResponseToJSONTyped(value?: BulkMarkBillsPaid200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
71
|
+
if (value == null) {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'success': value['success'],
|
|
78
|
+
'errors': value['errors'] == null ? undefined : ((value['errors'] as Array<any>).map(BulkMarkBillsPaid200ResponseErrorsInnerToJSON)),
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
@@ -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 BulkMarkBillsPaid200ResponseErrorsInner
|
|
20
|
+
*/
|
|
21
|
+
export interface BulkMarkBillsPaid200ResponseErrorsInner {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof BulkMarkBillsPaid200ResponseErrorsInner
|
|
26
|
+
*/
|
|
27
|
+
row?: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof BulkMarkBillsPaid200ResponseErrorsInner
|
|
32
|
+
*/
|
|
33
|
+
email?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof BulkMarkBillsPaid200ResponseErrorsInner
|
|
38
|
+
*/
|
|
39
|
+
error?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the BulkMarkBillsPaid200ResponseErrorsInner interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfBulkMarkBillsPaid200ResponseErrorsInner(value: object): value is BulkMarkBillsPaid200ResponseErrorsInner {
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function BulkMarkBillsPaid200ResponseErrorsInnerFromJSON(json: any): BulkMarkBillsPaid200ResponseErrorsInner {
|
|
50
|
+
return BulkMarkBillsPaid200ResponseErrorsInnerFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function BulkMarkBillsPaid200ResponseErrorsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkMarkBillsPaid200ResponseErrorsInner {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
|
|
59
|
+
'row': json['row'] == null ? undefined : json['row'],
|
|
60
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
61
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function BulkMarkBillsPaid200ResponseErrorsInnerToJSON(json: any): BulkMarkBillsPaid200ResponseErrorsInner {
|
|
66
|
+
return BulkMarkBillsPaid200ResponseErrorsInnerToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function BulkMarkBillsPaid200ResponseErrorsInnerToJSONTyped(value?: BulkMarkBillsPaid200ResponseErrorsInner | null, ignoreDiscriminator: boolean = false): any {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'row': value['row'],
|
|
77
|
+
'email': value['email'],
|
|
78
|
+
'error': value['error'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
@@ -0,0 +1,205 @@
|
|
|
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 ClubMySubscriptionDto
|
|
20
|
+
*/
|
|
21
|
+
export interface ClubMySubscriptionDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ClubMySubscriptionDto
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ClubMySubscriptionDto
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ClubMySubscriptionDto
|
|
38
|
+
*/
|
|
39
|
+
type: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof ClubMySubscriptionDto
|
|
44
|
+
*/
|
|
45
|
+
days?: string | null;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof ClubMySubscriptionDto
|
|
50
|
+
*/
|
|
51
|
+
time?: string | null;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof ClubMySubscriptionDto
|
|
56
|
+
*/
|
|
57
|
+
price?: number | null;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof ClubMySubscriptionDto
|
|
62
|
+
*/
|
|
63
|
+
period?: string | null;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof ClubMySubscriptionDto
|
|
68
|
+
*/
|
|
69
|
+
status: string;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof ClubMySubscriptionDto
|
|
74
|
+
*/
|
|
75
|
+
nextDue?: string | null;
|
|
76
|
+
/**
|
|
77
|
+
* Play/training session frequency (weekly, biweekly, monthly)
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof ClubMySubscriptionDto
|
|
80
|
+
*/
|
|
81
|
+
playFrequency?: string | null;
|
|
82
|
+
/**
|
|
83
|
+
* Sessions per playFrequency period (e.g. 2 = "2 veces por semana")
|
|
84
|
+
* @type {number}
|
|
85
|
+
* @memberof ClubMySubscriptionDto
|
|
86
|
+
*/
|
|
87
|
+
playFrequencyCount?: number | null;
|
|
88
|
+
/**
|
|
89
|
+
* ISO date of last paid invoice
|
|
90
|
+
* @type {string}
|
|
91
|
+
* @memberof ClubMySubscriptionDto
|
|
92
|
+
*/
|
|
93
|
+
lastPaidDate?: string | null;
|
|
94
|
+
/**
|
|
95
|
+
* Amount of last paid invoice
|
|
96
|
+
* @type {number}
|
|
97
|
+
* @memberof ClubMySubscriptionDto
|
|
98
|
+
*/
|
|
99
|
+
lastPaidAmount?: number | null;
|
|
100
|
+
/**
|
|
101
|
+
* Amount pending to pay
|
|
102
|
+
* @type {number}
|
|
103
|
+
* @memberof ClubMySubscriptionDto
|
|
104
|
+
*/
|
|
105
|
+
pendingAmount?: number | null;
|
|
106
|
+
/**
|
|
107
|
+
* Month/period label for the pending debt (e.g. "Abril 2026")
|
|
108
|
+
* @type {string}
|
|
109
|
+
* @memberof ClubMySubscriptionDto
|
|
110
|
+
*/
|
|
111
|
+
pendingPeriod?: string | null;
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* @type {string}
|
|
115
|
+
* @memberof ClubMySubscriptionDto
|
|
116
|
+
*/
|
|
117
|
+
sport?: string | null;
|
|
118
|
+
/**
|
|
119
|
+
*
|
|
120
|
+
* @type {string}
|
|
121
|
+
* @memberof ClubMySubscriptionDto
|
|
122
|
+
*/
|
|
123
|
+
bio?: string | null;
|
|
124
|
+
/**
|
|
125
|
+
*
|
|
126
|
+
* @type {boolean}
|
|
127
|
+
* @memberof ClubMySubscriptionDto
|
|
128
|
+
*/
|
|
129
|
+
cancellationRequested?: boolean;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Check if a given object implements the ClubMySubscriptionDto interface.
|
|
134
|
+
*/
|
|
135
|
+
export function instanceOfClubMySubscriptionDto(value: object): value is ClubMySubscriptionDto {
|
|
136
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
137
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
138
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
139
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
140
|
+
return true;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export function ClubMySubscriptionDtoFromJSON(json: any): ClubMySubscriptionDto {
|
|
144
|
+
return ClubMySubscriptionDtoFromJSONTyped(json, false);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export function ClubMySubscriptionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClubMySubscriptionDto {
|
|
148
|
+
if (json == null) {
|
|
149
|
+
return json;
|
|
150
|
+
}
|
|
151
|
+
return {
|
|
152
|
+
|
|
153
|
+
'id': json['id'],
|
|
154
|
+
'name': json['name'],
|
|
155
|
+
'type': json['type'],
|
|
156
|
+
'days': json['days'] == null ? undefined : json['days'],
|
|
157
|
+
'time': json['time'] == null ? undefined : json['time'],
|
|
158
|
+
'price': json['price'] == null ? undefined : json['price'],
|
|
159
|
+
'period': json['period'] == null ? undefined : json['period'],
|
|
160
|
+
'status': json['status'],
|
|
161
|
+
'nextDue': json['nextDue'] == null ? undefined : json['nextDue'],
|
|
162
|
+
'playFrequency': json['playFrequency'] == null ? undefined : json['playFrequency'],
|
|
163
|
+
'playFrequencyCount': json['playFrequencyCount'] == null ? undefined : json['playFrequencyCount'],
|
|
164
|
+
'lastPaidDate': json['lastPaidDate'] == null ? undefined : json['lastPaidDate'],
|
|
165
|
+
'lastPaidAmount': json['lastPaidAmount'] == null ? undefined : json['lastPaidAmount'],
|
|
166
|
+
'pendingAmount': json['pendingAmount'] == null ? undefined : json['pendingAmount'],
|
|
167
|
+
'pendingPeriod': json['pendingPeriod'] == null ? undefined : json['pendingPeriod'],
|
|
168
|
+
'sport': json['sport'] == null ? undefined : json['sport'],
|
|
169
|
+
'bio': json['bio'] == null ? undefined : json['bio'],
|
|
170
|
+
'cancellationRequested': json['cancellationRequested'] == null ? undefined : json['cancellationRequested'],
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export function ClubMySubscriptionDtoToJSON(json: any): ClubMySubscriptionDto {
|
|
175
|
+
return ClubMySubscriptionDtoToJSONTyped(json, false);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
export function ClubMySubscriptionDtoToJSONTyped(value?: ClubMySubscriptionDto | null, ignoreDiscriminator: boolean = false): any {
|
|
179
|
+
if (value == null) {
|
|
180
|
+
return value;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
return {
|
|
184
|
+
|
|
185
|
+
'id': value['id'],
|
|
186
|
+
'name': value['name'],
|
|
187
|
+
'type': value['type'],
|
|
188
|
+
'days': value['days'],
|
|
189
|
+
'time': value['time'],
|
|
190
|
+
'price': value['price'],
|
|
191
|
+
'period': value['period'],
|
|
192
|
+
'status': value['status'],
|
|
193
|
+
'nextDue': value['nextDue'],
|
|
194
|
+
'playFrequency': value['playFrequency'],
|
|
195
|
+
'playFrequencyCount': value['playFrequencyCount'],
|
|
196
|
+
'lastPaidDate': value['lastPaidDate'],
|
|
197
|
+
'lastPaidAmount': value['lastPaidAmount'],
|
|
198
|
+
'pendingAmount': value['pendingAmount'],
|
|
199
|
+
'pendingPeriod': value['pendingPeriod'],
|
|
200
|
+
'sport': value['sport'],
|
|
201
|
+
'bio': value['bio'],
|
|
202
|
+
'cancellationRequested': value['cancellationRequested'],
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
|