@jugarhoy/api 1.0.3 → 1.0.5

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 (50) hide show
  1. package/apis/AdminClubsApi.ts +118 -0
  2. package/apis/AdminFeaturesApi.ts +264 -0
  3. package/apis/AdminPlaySpotsApi.ts +61 -0
  4. package/apis/AdminReservationsApi.ts +54 -0
  5. package/apis/AdminSubscriptionBillingApi.ts +331 -0
  6. package/apis/AdminSubscriptionsApi.ts +312 -5
  7. package/apis/AuthApi.ts +117 -0
  8. package/apis/index.ts +3 -0
  9. package/models/AddCoachToSubscriptionRequest.ts +66 -0
  10. package/models/AddPlayerToSubscriptionRequest.ts +66 -0
  11. package/models/BlockSpotItem.ts +75 -0
  12. package/models/BlockSpots200Response.ts +73 -0
  13. package/models/BlockSpotsCommand.ts +109 -0
  14. package/models/ChargeOn.ts +1 -1
  15. package/models/ClonePlaySpotRequest.ts +75 -0
  16. package/models/CreateClubForSuperadminParams.ts +227 -0
  17. package/models/CreateClubForSuperadminResponse.ts +83 -0
  18. package/models/CreateClubForSuperadminResponseResult.ts +111 -0
  19. package/models/CreateClubForSuperadminResponseResultAdminUser.ts +73 -0
  20. package/models/CreateFeatureRequest.ts +103 -0
  21. package/models/ExtendSubscriptions200Response.ts +89 -0
  22. package/models/ExtendSubscriptions200ResponseDetailsInner.ts +81 -0
  23. package/models/Feature.ts +18 -0
  24. package/models/GenerateSubscriptionBillsRequest.ts +65 -0
  25. package/models/GetAllShifts200ResponseInner.ts +8 -0
  26. package/models/LinkPaymentToBillRequest.ts +66 -0
  27. package/models/ListAllClubsResponse.ts +83 -0
  28. package/models/ListAllClubsResponseResult.ts +81 -0
  29. package/models/PlayPrice.ts +2 -2
  30. package/models/PlaySpotShift.ts +8 -0
  31. package/models/PlaySubscription.ts +41 -0
  32. package/models/PlaySubscriptionCreateDto.ts +37 -3
  33. package/models/PlaySubscriptionListDto.ts +240 -0
  34. package/models/RequestPasswordReset200Response.ts +65 -0
  35. package/models/RequestPasswordReset500Response.ts +65 -0
  36. package/models/RequestPasswordResetRequest.ts +66 -0
  37. package/models/Reserve.ts +15 -0
  38. package/models/ReserveType.ts +1 -0
  39. package/models/ResetPassword200Response.ts +73 -0
  40. package/models/ResetPassword400Response.ts +79 -0
  41. package/models/ResetPassword500Response.ts +65 -0
  42. package/models/ResetPasswordRequest.ts +75 -0
  43. package/models/Sport.ts +15 -6
  44. package/models/SubscriptionBill.ts +198 -0
  45. package/models/UpdateBillRequest.ts +91 -0
  46. package/models/UpdateFeatureRequest.ts +91 -0
  47. package/models/UpdateReservationAdminRequest.ts +8 -0
  48. package/models/UserRole.ts +2 -1
  49. package/models/index.ts +28 -0
  50. package/package.json +1 -1
@@ -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 { CreateClubForSuperadminResponseResult } from './CreateClubForSuperadminResponseResult';
17
+ import {
18
+ CreateClubForSuperadminResponseResultFromJSON,
19
+ CreateClubForSuperadminResponseResultFromJSONTyped,
20
+ CreateClubForSuperadminResponseResultToJSON,
21
+ CreateClubForSuperadminResponseResultToJSONTyped,
22
+ } from './CreateClubForSuperadminResponseResult';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface CreateClubForSuperadminResponse
28
+ */
29
+ export interface CreateClubForSuperadminResponse {
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof CreateClubForSuperadminResponse
34
+ */
35
+ success: boolean;
36
+ /**
37
+ *
38
+ * @type {CreateClubForSuperadminResponseResult}
39
+ * @memberof CreateClubForSuperadminResponse
40
+ */
41
+ result: CreateClubForSuperadminResponseResult;
42
+ }
43
+
44
+ /**
45
+ * Check if a given object implements the CreateClubForSuperadminResponse interface.
46
+ */
47
+ export function instanceOfCreateClubForSuperadminResponse(value: object): value is CreateClubForSuperadminResponse {
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 CreateClubForSuperadminResponseFromJSON(json: any): CreateClubForSuperadminResponse {
54
+ return CreateClubForSuperadminResponseFromJSONTyped(json, false);
55
+ }
56
+
57
+ export function CreateClubForSuperadminResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateClubForSuperadminResponse {
58
+ if (json == null) {
59
+ return json;
60
+ }
61
+ return {
62
+
63
+ 'success': json['success'],
64
+ 'result': CreateClubForSuperadminResponseResultFromJSON(json['result']),
65
+ };
66
+ }
67
+
68
+ export function CreateClubForSuperadminResponseToJSON(json: any): CreateClubForSuperadminResponse {
69
+ return CreateClubForSuperadminResponseToJSONTyped(json, false);
70
+ }
71
+
72
+ export function CreateClubForSuperadminResponseToJSONTyped(value?: CreateClubForSuperadminResponse | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'success': value['success'],
80
+ 'result': CreateClubForSuperadminResponseResultToJSON(value['result']),
81
+ };
82
+ }
83
+
@@ -0,0 +1,111 @@
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 { Customer } from './Customer';
17
+ import {
18
+ CustomerFromJSON,
19
+ CustomerFromJSONTyped,
20
+ CustomerToJSON,
21
+ CustomerToJSONTyped,
22
+ } from './Customer';
23
+ import type { CreateClubForSuperadminResponseResultAdminUser } from './CreateClubForSuperadminResponseResultAdminUser';
24
+ import {
25
+ CreateClubForSuperadminResponseResultAdminUserFromJSON,
26
+ CreateClubForSuperadminResponseResultAdminUserFromJSONTyped,
27
+ CreateClubForSuperadminResponseResultAdminUserToJSON,
28
+ CreateClubForSuperadminResponseResultAdminUserToJSONTyped,
29
+ } from './CreateClubForSuperadminResponseResultAdminUser';
30
+ import type { Location } from './Location';
31
+ import {
32
+ LocationFromJSON,
33
+ LocationFromJSONTyped,
34
+ LocationToJSON,
35
+ LocationToJSONTyped,
36
+ } from './Location';
37
+
38
+ /**
39
+ *
40
+ * @export
41
+ * @interface CreateClubForSuperadminResponseResult
42
+ */
43
+ export interface CreateClubForSuperadminResponseResult {
44
+ /**
45
+ *
46
+ * @type {Customer}
47
+ * @memberof CreateClubForSuperadminResponseResult
48
+ */
49
+ customer?: Customer;
50
+ /**
51
+ *
52
+ * @type {Location}
53
+ * @memberof CreateClubForSuperadminResponseResult
54
+ */
55
+ location?: Location;
56
+ /**
57
+ *
58
+ * @type {CreateClubForSuperadminResponseResultAdminUser}
59
+ * @memberof CreateClubForSuperadminResponseResult
60
+ */
61
+ adminUser?: CreateClubForSuperadminResponseResultAdminUser;
62
+ /**
63
+ *
64
+ * @type {string}
65
+ * @memberof CreateClubForSuperadminResponseResult
66
+ */
67
+ message?: string;
68
+ }
69
+
70
+ /**
71
+ * Check if a given object implements the CreateClubForSuperadminResponseResult interface.
72
+ */
73
+ export function instanceOfCreateClubForSuperadminResponseResult(value: object): value is CreateClubForSuperadminResponseResult {
74
+ return true;
75
+ }
76
+
77
+ export function CreateClubForSuperadminResponseResultFromJSON(json: any): CreateClubForSuperadminResponseResult {
78
+ return CreateClubForSuperadminResponseResultFromJSONTyped(json, false);
79
+ }
80
+
81
+ export function CreateClubForSuperadminResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateClubForSuperadminResponseResult {
82
+ if (json == null) {
83
+ return json;
84
+ }
85
+ return {
86
+
87
+ 'customer': json['customer'] == null ? undefined : CustomerFromJSON(json['customer']),
88
+ 'location': json['location'] == null ? undefined : LocationFromJSON(json['location']),
89
+ 'adminUser': json['adminUser'] == null ? undefined : CreateClubForSuperadminResponseResultAdminUserFromJSON(json['adminUser']),
90
+ 'message': json['message'] == null ? undefined : json['message'],
91
+ };
92
+ }
93
+
94
+ export function CreateClubForSuperadminResponseResultToJSON(json: any): CreateClubForSuperadminResponseResult {
95
+ return CreateClubForSuperadminResponseResultToJSONTyped(json, false);
96
+ }
97
+
98
+ export function CreateClubForSuperadminResponseResultToJSONTyped(value?: CreateClubForSuperadminResponseResult | null, ignoreDiscriminator: boolean = false): any {
99
+ if (value == null) {
100
+ return value;
101
+ }
102
+
103
+ return {
104
+
105
+ 'customer': CustomerToJSON(value['customer']),
106
+ 'location': LocationToJSON(value['location']),
107
+ 'adminUser': CreateClubForSuperadminResponseResultAdminUserToJSON(value['adminUser']),
108
+ 'message': value['message'],
109
+ };
110
+ }
111
+
@@ -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 CreateClubForSuperadminResponseResultAdminUser
20
+ */
21
+ export interface CreateClubForSuperadminResponseResultAdminUser {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof CreateClubForSuperadminResponseResultAdminUser
26
+ */
27
+ uid?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof CreateClubForSuperadminResponseResultAdminUser
32
+ */
33
+ email?: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the CreateClubForSuperadminResponseResultAdminUser interface.
38
+ */
39
+ export function instanceOfCreateClubForSuperadminResponseResultAdminUser(value: object): value is CreateClubForSuperadminResponseResultAdminUser {
40
+ return true;
41
+ }
42
+
43
+ export function CreateClubForSuperadminResponseResultAdminUserFromJSON(json: any): CreateClubForSuperadminResponseResultAdminUser {
44
+ return CreateClubForSuperadminResponseResultAdminUserFromJSONTyped(json, false);
45
+ }
46
+
47
+ export function CreateClubForSuperadminResponseResultAdminUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateClubForSuperadminResponseResultAdminUser {
48
+ if (json == null) {
49
+ return json;
50
+ }
51
+ return {
52
+
53
+ 'uid': json['uid'] == null ? undefined : json['uid'],
54
+ 'email': json['email'] == null ? undefined : json['email'],
55
+ };
56
+ }
57
+
58
+ export function CreateClubForSuperadminResponseResultAdminUserToJSON(json: any): CreateClubForSuperadminResponseResultAdminUser {
59
+ return CreateClubForSuperadminResponseResultAdminUserToJSONTyped(json, false);
60
+ }
61
+
62
+ export function CreateClubForSuperadminResponseResultAdminUserToJSONTyped(value?: CreateClubForSuperadminResponseResultAdminUser | null, ignoreDiscriminator: boolean = false): any {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+
67
+ return {
68
+
69
+ 'uid': value['uid'],
70
+ 'email': value['email'],
71
+ };
72
+ }
73
+
@@ -0,0 +1,103 @@
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 { Sport } from './Sport';
17
+ import {
18
+ SportFromJSON,
19
+ SportFromJSONTyped,
20
+ SportToJSON,
21
+ SportToJSONTyped,
22
+ } from './Sport';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface CreateFeatureRequest
28
+ */
29
+ export interface CreateFeatureRequest {
30
+ /**
31
+ * Unique code for the feature (unchangeable after creation)
32
+ * @type {string}
33
+ * @memberof CreateFeatureRequest
34
+ */
35
+ code: string;
36
+ /**
37
+ * Name of the feature
38
+ * @type {string}
39
+ * @memberof CreateFeatureRequest
40
+ */
41
+ name: string;
42
+ /**
43
+ * Description of the feature
44
+ * @type {string}
45
+ * @memberof CreateFeatureRequest
46
+ */
47
+ description: string;
48
+ /**
49
+ *
50
+ * @type {Sport}
51
+ * @memberof CreateFeatureRequest
52
+ */
53
+ sport: Sport;
54
+ }
55
+
56
+
57
+
58
+ /**
59
+ * Check if a given object implements the CreateFeatureRequest interface.
60
+ */
61
+ export function instanceOfCreateFeatureRequest(value: object): value is CreateFeatureRequest {
62
+ if (!('code' in value) || value['code'] === undefined) return false;
63
+ if (!('name' in value) || value['name'] === undefined) return false;
64
+ if (!('description' in value) || value['description'] === undefined) return false;
65
+ if (!('sport' in value) || value['sport'] === undefined) return false;
66
+ return true;
67
+ }
68
+
69
+ export function CreateFeatureRequestFromJSON(json: any): CreateFeatureRequest {
70
+ return CreateFeatureRequestFromJSONTyped(json, false);
71
+ }
72
+
73
+ export function CreateFeatureRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateFeatureRequest {
74
+ if (json == null) {
75
+ return json;
76
+ }
77
+ return {
78
+
79
+ 'code': json['code'],
80
+ 'name': json['name'],
81
+ 'description': json['description'],
82
+ 'sport': SportFromJSON(json['sport']),
83
+ };
84
+ }
85
+
86
+ export function CreateFeatureRequestToJSON(json: any): CreateFeatureRequest {
87
+ return CreateFeatureRequestToJSONTyped(json, false);
88
+ }
89
+
90
+ export function CreateFeatureRequestToJSONTyped(value?: CreateFeatureRequest | null, ignoreDiscriminator: boolean = false): any {
91
+ if (value == null) {
92
+ return value;
93
+ }
94
+
95
+ return {
96
+
97
+ 'code': value['code'],
98
+ 'name': value['name'],
99
+ 'description': value['description'],
100
+ 'sport': SportToJSON(value['sport']),
101
+ };
102
+ }
103
+
@@ -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 { ExtendSubscriptions200ResponseDetailsInner } from './ExtendSubscriptions200ResponseDetailsInner';
17
+ import {
18
+ ExtendSubscriptions200ResponseDetailsInnerFromJSON,
19
+ ExtendSubscriptions200ResponseDetailsInnerFromJSONTyped,
20
+ ExtendSubscriptions200ResponseDetailsInnerToJSON,
21
+ ExtendSubscriptions200ResponseDetailsInnerToJSONTyped,
22
+ } from './ExtendSubscriptions200ResponseDetailsInner';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ExtendSubscriptions200Response
28
+ */
29
+ export interface ExtendSubscriptions200Response {
30
+ /**
31
+ * Number of subscriptions successfully extended
32
+ * @type {number}
33
+ * @memberof ExtendSubscriptions200Response
34
+ */
35
+ extended?: number;
36
+ /**
37
+ * Number of subscriptions that failed to extend
38
+ * @type {number}
39
+ * @memberof ExtendSubscriptions200Response
40
+ */
41
+ failed?: number;
42
+ /**
43
+ *
44
+ * @type {Array<ExtendSubscriptions200ResponseDetailsInner>}
45
+ * @memberof ExtendSubscriptions200Response
46
+ */
47
+ details?: Array<ExtendSubscriptions200ResponseDetailsInner>;
48
+ }
49
+
50
+ /**
51
+ * Check if a given object implements the ExtendSubscriptions200Response interface.
52
+ */
53
+ export function instanceOfExtendSubscriptions200Response(value: object): value is ExtendSubscriptions200Response {
54
+ return true;
55
+ }
56
+
57
+ export function ExtendSubscriptions200ResponseFromJSON(json: any): ExtendSubscriptions200Response {
58
+ return ExtendSubscriptions200ResponseFromJSONTyped(json, false);
59
+ }
60
+
61
+ export function ExtendSubscriptions200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExtendSubscriptions200Response {
62
+ if (json == null) {
63
+ return json;
64
+ }
65
+ return {
66
+
67
+ 'extended': json['extended'] == null ? undefined : json['extended'],
68
+ 'failed': json['failed'] == null ? undefined : json['failed'],
69
+ 'details': json['details'] == null ? undefined : ((json['details'] as Array<any>).map(ExtendSubscriptions200ResponseDetailsInnerFromJSON)),
70
+ };
71
+ }
72
+
73
+ export function ExtendSubscriptions200ResponseToJSON(json: any): ExtendSubscriptions200Response {
74
+ return ExtendSubscriptions200ResponseToJSONTyped(json, false);
75
+ }
76
+
77
+ export function ExtendSubscriptions200ResponseToJSONTyped(value?: ExtendSubscriptions200Response | null, ignoreDiscriminator: boolean = false): any {
78
+ if (value == null) {
79
+ return value;
80
+ }
81
+
82
+ return {
83
+
84
+ 'extended': value['extended'],
85
+ 'failed': value['failed'],
86
+ 'details': value['details'] == null ? undefined : ((value['details'] as Array<any>).map(ExtendSubscriptions200ResponseDetailsInnerToJSON)),
87
+ };
88
+ }
89
+
@@ -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 ExtendSubscriptions200ResponseDetailsInner
20
+ */
21
+ export interface ExtendSubscriptions200ResponseDetailsInner {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ExtendSubscriptions200ResponseDetailsInner
26
+ */
27
+ subscriptionId?: string;
28
+ /**
29
+ *
30
+ * @type {boolean}
31
+ * @memberof ExtendSubscriptions200ResponseDetailsInner
32
+ */
33
+ success?: boolean;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof ExtendSubscriptions200ResponseDetailsInner
38
+ */
39
+ error?: string | null;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the ExtendSubscriptions200ResponseDetailsInner interface.
44
+ */
45
+ export function instanceOfExtendSubscriptions200ResponseDetailsInner(value: object): value is ExtendSubscriptions200ResponseDetailsInner {
46
+ return true;
47
+ }
48
+
49
+ export function ExtendSubscriptions200ResponseDetailsInnerFromJSON(json: any): ExtendSubscriptions200ResponseDetailsInner {
50
+ return ExtendSubscriptions200ResponseDetailsInnerFromJSONTyped(json, false);
51
+ }
52
+
53
+ export function ExtendSubscriptions200ResponseDetailsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExtendSubscriptions200ResponseDetailsInner {
54
+ if (json == null) {
55
+ return json;
56
+ }
57
+ return {
58
+
59
+ 'subscriptionId': json['subscriptionId'] == null ? undefined : json['subscriptionId'],
60
+ 'success': json['success'] == null ? undefined : json['success'],
61
+ 'error': json['error'] == null ? undefined : json['error'],
62
+ };
63
+ }
64
+
65
+ export function ExtendSubscriptions200ResponseDetailsInnerToJSON(json: any): ExtendSubscriptions200ResponseDetailsInner {
66
+ return ExtendSubscriptions200ResponseDetailsInnerToJSONTyped(json, false);
67
+ }
68
+
69
+ export function ExtendSubscriptions200ResponseDetailsInnerToJSONTyped(value?: ExtendSubscriptions200ResponseDetailsInner | null, ignoreDiscriminator: boolean = false): any {
70
+ if (value == null) {
71
+ return value;
72
+ }
73
+
74
+ return {
75
+
76
+ 'subscriptionId': value['subscriptionId'],
77
+ 'success': value['success'],
78
+ 'error': value['error'],
79
+ };
80
+ }
81
+
package/models/Feature.ts CHANGED
@@ -33,6 +33,12 @@ export interface Feature {
33
33
  * @memberof Feature
34
34
  */
35
35
  id: string;
36
+ /**
37
+ * Unique code for the feature (unchangeable after creation)
38
+ * @type {string}
39
+ * @memberof Feature
40
+ */
41
+ code: string;
36
42
  /**
37
43
  * Name of the feature
38
44
  * @type {string}
@@ -51,6 +57,12 @@ export interface Feature {
51
57
  * @memberof Feature
52
58
  */
53
59
  sport: Sport;
60
+ /**
61
+ * Customer ID that owns this feature
62
+ * @type {string}
63
+ * @memberof Feature
64
+ */
65
+ customerId: string;
54
66
  /**
55
67
  * Date and time when the feature was created
56
68
  * @type {Date}
@@ -72,9 +84,11 @@ export interface Feature {
72
84
  */
73
85
  export function instanceOfFeature(value: object): value is Feature {
74
86
  if (!('id' in value) || value['id'] === undefined) return false;
87
+ if (!('code' in value) || value['code'] === undefined) return false;
75
88
  if (!('name' in value) || value['name'] === undefined) return false;
76
89
  if (!('description' in value) || value['description'] === undefined) return false;
77
90
  if (!('sport' in value) || value['sport'] === undefined) return false;
91
+ if (!('customerId' in value) || value['customerId'] === undefined) return false;
78
92
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
79
93
  if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
80
94
  return true;
@@ -91,9 +105,11 @@ export function FeatureFromJSONTyped(json: any, ignoreDiscriminator: boolean): F
91
105
  return {
92
106
 
93
107
  'id': json['id'],
108
+ 'code': json['code'],
94
109
  'name': json['name'],
95
110
  'description': json['description'],
96
111
  'sport': SportFromJSON(json['sport']),
112
+ 'customerId': json['customerId'],
97
113
  'createdAt': (new Date(json['createdAt'])),
98
114
  'updatedAt': (new Date(json['updatedAt'])),
99
115
  };
@@ -111,9 +127,11 @@ export function FeatureToJSONTyped(value?: Feature | null, ignoreDiscriminator:
111
127
  return {
112
128
 
113
129
  'id': value['id'],
130
+ 'code': value['code'],
114
131
  'name': value['name'],
115
132
  'description': value['description'],
116
133
  'sport': SportToJSON(value['sport']),
134
+ 'customerId': value['customerId'],
117
135
  'createdAt': ((value['createdAt']).toISOString()),
118
136
  'updatedAt': ((value['updatedAt']).toISOString()),
119
137
  };
@@ -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 GenerateSubscriptionBillsRequest
20
+ */
21
+ export interface GenerateSubscriptionBillsRequest {
22
+ /**
23
+ * Start date of billing period (optional, defaults to today)
24
+ * @type {Date}
25
+ * @memberof GenerateSubscriptionBillsRequest
26
+ */
27
+ periodStart?: Date;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the GenerateSubscriptionBillsRequest interface.
32
+ */
33
+ export function instanceOfGenerateSubscriptionBillsRequest(value: object): value is GenerateSubscriptionBillsRequest {
34
+ return true;
35
+ }
36
+
37
+ export function GenerateSubscriptionBillsRequestFromJSON(json: any): GenerateSubscriptionBillsRequest {
38
+ return GenerateSubscriptionBillsRequestFromJSONTyped(json, false);
39
+ }
40
+
41
+ export function GenerateSubscriptionBillsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GenerateSubscriptionBillsRequest {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+
47
+ 'periodStart': json['periodStart'] == null ? undefined : (new Date(json['periodStart'])),
48
+ };
49
+ }
50
+
51
+ export function GenerateSubscriptionBillsRequestToJSON(json: any): GenerateSubscriptionBillsRequest {
52
+ return GenerateSubscriptionBillsRequestToJSONTyped(json, false);
53
+ }
54
+
55
+ export function GenerateSubscriptionBillsRequestToJSONTyped(value?: GenerateSubscriptionBillsRequest | null, ignoreDiscriminator: boolean = false): any {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+
60
+ return {
61
+
62
+ 'periodStart': value['periodStart'] == null ? undefined : ((value['periodStart']).toISOString()),
63
+ };
64
+ }
65
+
@@ -106,6 +106,12 @@ export interface GetAllShifts200ResponseInner {
106
106
  * @memberof GetAllShifts200ResponseInner
107
107
  */
108
108
  durations: Array<number>;
109
+ /**
110
+ * IDs of subscriptions linked to this shift
111
+ * @type {Array<string>}
112
+ * @memberof GetAllShifts200ResponseInner
113
+ */
114
+ subscriptionIds?: Array<string> | null;
109
115
  /**
110
116
  *
111
117
  * @type {Array<PlaySpot>}
@@ -166,6 +172,7 @@ export function GetAllShifts200ResponseInnerFromJSONTyped(json: any, ignoreDiscr
166
172
  'fromHour': json['fromHour'],
167
173
  'toHour': json['toHour'],
168
174
  'durations': json['durations'],
175
+ 'subscriptionIds': json['subscriptionIds'] == null ? undefined : json['subscriptionIds'],
169
176
  'playSpots': json['playSpots'] == null ? undefined : ((json['playSpots'] as Array<any>).map(PlaySpotFromJSON)),
170
177
  };
171
178
  }
@@ -193,6 +200,7 @@ export function GetAllShifts200ResponseInnerToJSONTyped(value?: GetAllShifts200R
193
200
  'fromHour': value['fromHour'],
194
201
  'toHour': value['toHour'],
195
202
  'durations': value['durations'],
203
+ 'subscriptionIds': value['subscriptionIds'],
196
204
  'playSpots': value['playSpots'] == null ? undefined : ((value['playSpots'] as Array<any>).map(PlaySpotToJSON)),
197
205
  };
198
206
  }