@drxsuperapp/sdk 1.1.163 → 1.1.168
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/.openapi-generator/FILES +32 -0
- package/apis/AppConfigApi.ts +119 -0
- package/apis/AuthenticationApi.ts +166 -0
- package/apis/PadelApi.ts +0 -5
- package/apis/TennisApi.ts +0 -15
- package/apis/TournamentApi.ts +0 -5
- package/apis/UserAffiliateApi.ts +186 -0
- package/apis/UserApi.ts +0 -46
- package/apis/UserPointsApi.ts +176 -0
- package/apis/index.ts +4 -0
- package/deploy.log +20 -273
- package/dist/apis/AppConfigApi.d.ts +37 -0
- package/dist/apis/AppConfigApi.js +84 -0
- package/dist/apis/AuthenticationApi.d.ts +51 -0
- package/dist/apis/AuthenticationApi.js +121 -0
- package/dist/apis/PadelApi.d.ts +0 -1
- package/dist/apis/PadelApi.js +0 -3
- package/dist/apis/TennisApi.d.ts +0 -3
- package/dist/apis/TennisApi.js +0 -9
- package/dist/apis/TournamentApi.d.ts +0 -1
- package/dist/apis/TournamentApi.js +0 -3
- package/dist/apis/UserAffiliateApi.d.ts +51 -0
- package/dist/apis/UserAffiliateApi.js +127 -0
- package/dist/apis/UserApi.d.ts +1 -10
- package/dist/apis/UserApi.js +1 -35
- package/dist/apis/UserPointsApi.d.ts +48 -0
- package/dist/apis/UserPointsApi.js +125 -0
- package/dist/apis/index.d.ts +4 -0
- package/dist/apis/index.js +4 -0
- package/dist/models/ApiAuthLoginPost200Response.d.ts +51 -0
- package/dist/models/ApiAuthLoginPost200Response.js +54 -0
- package/dist/models/ApiAuthRefreshPost200Response.d.ts +51 -0
- package/dist/models/ApiAuthRefreshPost200Response.js +54 -0
- package/dist/models/ApiTournamentGetFilterParameter.d.ts +0 -6
- package/dist/models/ApiTournamentGetFilterParameter.js +0 -2
- package/dist/models/ApiUserAffiliateGet200Response.d.ts +51 -0
- package/dist/models/ApiUserAffiliateGet200Response.js +54 -0
- package/dist/models/ApiUserAffiliateGet200ResponseResponseObject.d.ts +63 -0
- package/dist/models/ApiUserAffiliateGet200ResponseResponseObject.js +64 -0
- package/dist/models/ApiUserAffiliateGet200ResponseResponseObjectStatistics.d.ts +50 -0
- package/dist/models/ApiUserAffiliateGet200ResponseResponseObjectStatistics.js +55 -0
- package/dist/models/ApiUserApplyAffiliateCodePost200Response.d.ts +51 -0
- package/dist/models/ApiUserApplyAffiliateCodePost200Response.js +54 -0
- package/dist/models/ApiUserApplyAffiliateCodePost200ResponseResponseObject.d.ts +51 -0
- package/dist/models/ApiUserApplyAffiliateCodePost200ResponseResponseObject.js +54 -0
- package/dist/models/ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer.d.ts +38 -0
- package/dist/models/ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer.js +47 -0
- package/dist/models/ApiUserApplyAffiliateCodePostRequest.d.ts +32 -0
- package/dist/models/ApiUserApplyAffiliateCodePostRequest.js +43 -0
- package/dist/models/ApiUserPointRewardsGet200Response.d.ts +51 -0
- package/dist/models/ApiUserPointRewardsGet200Response.js +54 -0
- package/dist/models/ApiUserPointRewardsGet200ResponseResponseObject.d.ts +68 -0
- package/dist/models/ApiUserPointRewardsGet200ResponseResponseObject.js +67 -0
- package/dist/models/ApiUserPointRewardsPut200Response.d.ts +51 -0
- package/dist/models/ApiUserPointRewardsPut200Response.js +54 -0
- package/dist/models/ApiUserPointRewardsPut200ResponseResponseObject.d.ts +50 -0
- package/dist/models/ApiUserPointRewardsPut200ResponseResponseObject.js +55 -0
- package/dist/models/ApiUserPointRewardsPutRequest.d.ts +51 -0
- package/dist/models/ApiUserPointRewardsPutRequest.js +59 -0
- package/dist/models/ApiUserPointsGet200Response.d.ts +51 -0
- package/dist/models/ApiUserPointsGet200Response.js +54 -0
- package/dist/models/ApiUserPointsGet200ResponseResponseObject.d.ts +56 -0
- package/dist/models/ApiUserPointsGet200ResponseResponseObject.js +59 -0
- package/dist/models/ApiUserPointsHistoryGet200Response.d.ts +51 -0
- package/dist/models/ApiUserPointsHistoryGet200Response.js +54 -0
- package/dist/models/ApiUserPointsHistoryGet200ResponseResponseObject.d.ts +57 -0
- package/dist/models/ApiUserPointsHistoryGet200ResponseResponseObject.js +60 -0
- package/dist/models/ApiUserPointsHistoryGet200ResponseResponseObjectItemsInner.d.ts +103 -0
- package/dist/models/ApiUserPointsHistoryGet200ResponseResponseObjectItemsInner.js +96 -0
- package/dist/models/ApiUserPointsHistoryGetFilterParameter.d.ts +52 -0
- package/dist/models/ApiUserPointsHistoryGetFilterParameter.js +49 -0
- package/dist/models/ApiUserRecentReferralsGet200Response.d.ts +51 -0
- package/dist/models/ApiUserRecentReferralsGet200Response.js +54 -0
- package/dist/models/ApiUserRecentReferralsGet200ResponseResponseObject.d.ts +57 -0
- package/dist/models/ApiUserRecentReferralsGet200ResponseResponseObject.js +60 -0
- package/dist/models/ApiUserRecentReferralsGet200ResponseResponseObjectItemsInner.d.ts +56 -0
- package/dist/models/ApiUserRecentReferralsGet200ResponseResponseObjectItemsInner.js +59 -0
- package/dist/models/ApiUserRecentReferralsGetFilterParameter.d.ts +46 -0
- package/dist/models/ApiUserRecentReferralsGetFilterParameter.js +47 -0
- package/dist/models/LoginRequest.d.ts +38 -0
- package/dist/models/LoginRequest.js +47 -0
- package/dist/models/LoginResponse.d.ts +45 -0
- package/dist/models/LoginResponse.js +52 -0
- package/dist/models/LoginResponseUser.d.ts +56 -0
- package/dist/models/LoginResponseUser.js +59 -0
- package/dist/models/RefreshTokenResponse.d.ts +38 -0
- package/dist/models/RefreshTokenResponse.js +47 -0
- package/dist/models/index.d.ts +28 -0
- package/dist/models/index.js +28 -0
- package/models/ApiAuthLoginPost200Response.ts +100 -0
- package/models/ApiAuthRefreshPost200Response.ts +100 -0
- package/models/ApiTournamentGetFilterParameter.ts +0 -8
- package/models/ApiUserAffiliateGet200Response.ts +100 -0
- package/models/ApiUserAffiliateGet200ResponseResponseObject.ts +119 -0
- package/models/ApiUserAffiliateGet200ResponseResponseObjectStatistics.ts +93 -0
- package/models/ApiUserApplyAffiliateCodePost200Response.ts +100 -0
- package/models/ApiUserApplyAffiliateCodePost200ResponseResponseObject.ts +100 -0
- package/models/ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer.ts +75 -0
- package/models/ApiUserApplyAffiliateCodePostRequest.ts +66 -0
- package/models/ApiUserPointRewardsGet200Response.ts +100 -0
- package/models/ApiUserPointRewardsGet200ResponseResponseObject.ts +120 -0
- package/models/ApiUserPointRewardsPut200Response.ts +100 -0
- package/models/ApiUserPointRewardsPut200ResponseResponseObject.ts +93 -0
- package/models/ApiUserPointRewardsPutRequest.ts +91 -0
- package/models/ApiUserPointsGet200Response.ts +100 -0
- package/models/ApiUserPointsGet200ResponseResponseObject.ts +102 -0
- package/models/ApiUserPointsHistoryGet200Response.ts +100 -0
- package/models/ApiUserPointsHistoryGet200ResponseResponseObject.ts +110 -0
- package/models/ApiUserPointsHistoryGet200ResponseResponseObjectItemsInner.ts +160 -0
- package/models/ApiUserPointsHistoryGetFilterParameter.ts +104 -0
- package/models/ApiUserRecentReferralsGet200Response.ts +100 -0
- package/models/ApiUserRecentReferralsGet200ResponseResponseObject.ts +110 -0
- package/models/ApiUserRecentReferralsGet200ResponseResponseObjectItemsInner.ts +102 -0
- package/models/ApiUserRecentReferralsGetFilterParameter.ts +96 -0
- package/models/LoginRequest.ts +75 -0
- package/models/LoginResponse.ts +92 -0
- package/models/LoginResponseUser.ts +102 -0
- package/models/RefreshTokenResponse.ts +75 -0
- package/models/index.ts +28 -0
- package/package.json +1 -1
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* DRX API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.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
|
+
import { ApiUserApplyAffiliateCodePost200ResponseResponseObjectFromJSON, ApiUserApplyAffiliateCodePost200ResponseResponseObjectToJSON, } from './ApiUserApplyAffiliateCodePost200ResponseResponseObject';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ApiUserApplyAffiliateCodePost200Response interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfApiUserApplyAffiliateCodePost200Response(value) {
|
|
19
|
+
if (!('success' in value) || value['success'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('statusCode' in value) || value['statusCode'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
export function ApiUserApplyAffiliateCodePost200ResponseFromJSON(json) {
|
|
28
|
+
return ApiUserApplyAffiliateCodePost200ResponseFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function ApiUserApplyAffiliateCodePost200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'success': json['success'],
|
|
36
|
+
'message': json['message'],
|
|
37
|
+
'responseObject': json['responseObject'] == null ? undefined : ApiUserApplyAffiliateCodePost200ResponseResponseObjectFromJSON(json['responseObject']),
|
|
38
|
+
'statusCode': json['statusCode'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export function ApiUserApplyAffiliateCodePost200ResponseToJSON(json) {
|
|
42
|
+
return ApiUserApplyAffiliateCodePost200ResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
export function ApiUserApplyAffiliateCodePost200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'success': value['success'],
|
|
50
|
+
'message': value['message'],
|
|
51
|
+
'responseObject': ApiUserApplyAffiliateCodePost200ResponseResponseObjectToJSON(value['responseObject']),
|
|
52
|
+
'statusCode': value['statusCode'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DRX API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer } from './ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiUserApplyAffiliateCodePost200ResponseResponseObject
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiUserApplyAffiliateCodePost200ResponseResponseObject {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof ApiUserApplyAffiliateCodePost200ResponseResponseObject
|
|
23
|
+
*/
|
|
24
|
+
success: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ApiUserApplyAffiliateCodePost200ResponseResponseObject
|
|
29
|
+
*/
|
|
30
|
+
message: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof ApiUserApplyAffiliateCodePost200ResponseResponseObject
|
|
35
|
+
*/
|
|
36
|
+
pointsAwarded: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer}
|
|
40
|
+
* @memberof ApiUserApplyAffiliateCodePost200ResponseResponseObject
|
|
41
|
+
*/
|
|
42
|
+
referrer?: ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ApiUserApplyAffiliateCodePost200ResponseResponseObject interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfApiUserApplyAffiliateCodePost200ResponseResponseObject(value: object): value is ApiUserApplyAffiliateCodePost200ResponseResponseObject;
|
|
48
|
+
export declare function ApiUserApplyAffiliateCodePost200ResponseResponseObjectFromJSON(json: any): ApiUserApplyAffiliateCodePost200ResponseResponseObject;
|
|
49
|
+
export declare function ApiUserApplyAffiliateCodePost200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUserApplyAffiliateCodePost200ResponseResponseObject;
|
|
50
|
+
export declare function ApiUserApplyAffiliateCodePost200ResponseResponseObjectToJSON(json: any): ApiUserApplyAffiliateCodePost200ResponseResponseObject;
|
|
51
|
+
export declare function ApiUserApplyAffiliateCodePost200ResponseResponseObjectToJSONTyped(value?: ApiUserApplyAffiliateCodePost200ResponseResponseObject | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* DRX API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.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
|
+
import { ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrerFromJSON, ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrerToJSON, } from './ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ApiUserApplyAffiliateCodePost200ResponseResponseObject interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfApiUserApplyAffiliateCodePost200ResponseResponseObject(value) {
|
|
19
|
+
if (!('success' in value) || value['success'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('pointsAwarded' in value) || value['pointsAwarded'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
export function ApiUserApplyAffiliateCodePost200ResponseResponseObjectFromJSON(json) {
|
|
28
|
+
return ApiUserApplyAffiliateCodePost200ResponseResponseObjectFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function ApiUserApplyAffiliateCodePost200ResponseResponseObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'success': json['success'],
|
|
36
|
+
'message': json['message'],
|
|
37
|
+
'pointsAwarded': json['pointsAwarded'],
|
|
38
|
+
'referrer': json['referrer'] == null ? undefined : ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrerFromJSON(json['referrer']),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export function ApiUserApplyAffiliateCodePost200ResponseResponseObjectToJSON(json) {
|
|
42
|
+
return ApiUserApplyAffiliateCodePost200ResponseResponseObjectToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
export function ApiUserApplyAffiliateCodePost200ResponseResponseObjectToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'success': value['success'],
|
|
50
|
+
'message': value['message'],
|
|
51
|
+
'pointsAwarded': value['pointsAwarded'],
|
|
52
|
+
'referrer': ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrerToJSON(value['referrer']),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DRX API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer
|
|
28
|
+
*/
|
|
29
|
+
name: string | null;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer(value: object): value is ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer;
|
|
35
|
+
export declare function ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrerFromJSON(json: any): ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer;
|
|
36
|
+
export declare function ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer;
|
|
37
|
+
export declare function ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrerToJSON(json: any): ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer;
|
|
38
|
+
export declare function ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrerToJSONTyped(value?: ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* DRX API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.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
|
+
* Check if a given object implements the ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrerFromJSON(json) {
|
|
25
|
+
return ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrerFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrerFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'id': json['id'],
|
|
33
|
+
'name': json['name'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrerToJSON(json) {
|
|
37
|
+
return ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrerToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'id': value['id'],
|
|
45
|
+
'name': value['name'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DRX API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ApiUserApplyAffiliateCodePostRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiUserApplyAffiliateCodePostRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApiUserApplyAffiliateCodePostRequest
|
|
22
|
+
*/
|
|
23
|
+
affiliateCode: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the ApiUserApplyAffiliateCodePostRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfApiUserApplyAffiliateCodePostRequest(value: object): value is ApiUserApplyAffiliateCodePostRequest;
|
|
29
|
+
export declare function ApiUserApplyAffiliateCodePostRequestFromJSON(json: any): ApiUserApplyAffiliateCodePostRequest;
|
|
30
|
+
export declare function ApiUserApplyAffiliateCodePostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUserApplyAffiliateCodePostRequest;
|
|
31
|
+
export declare function ApiUserApplyAffiliateCodePostRequestToJSON(json: any): ApiUserApplyAffiliateCodePostRequest;
|
|
32
|
+
export declare function ApiUserApplyAffiliateCodePostRequestToJSONTyped(value?: ApiUserApplyAffiliateCodePostRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* DRX API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.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
|
+
* Check if a given object implements the ApiUserApplyAffiliateCodePostRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfApiUserApplyAffiliateCodePostRequest(value) {
|
|
18
|
+
if (!('affiliateCode' in value) || value['affiliateCode'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function ApiUserApplyAffiliateCodePostRequestFromJSON(json) {
|
|
23
|
+
return ApiUserApplyAffiliateCodePostRequestFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function ApiUserApplyAffiliateCodePostRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'affiliateCode': json['affiliate_code'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function ApiUserApplyAffiliateCodePostRequestToJSON(json) {
|
|
34
|
+
return ApiUserApplyAffiliateCodePostRequestToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function ApiUserApplyAffiliateCodePostRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'affiliate_code': value['affiliateCode'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DRX API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ApiUserPointRewardsGet200ResponseResponseObject } from './ApiUserPointRewardsGet200ResponseResponseObject';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiUserPointRewardsGet200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiUserPointRewardsGet200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof ApiUserPointRewardsGet200Response
|
|
23
|
+
*/
|
|
24
|
+
success: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ApiUserPointRewardsGet200Response
|
|
29
|
+
*/
|
|
30
|
+
message: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {ApiUserPointRewardsGet200ResponseResponseObject}
|
|
34
|
+
* @memberof ApiUserPointRewardsGet200Response
|
|
35
|
+
*/
|
|
36
|
+
responseObject?: ApiUserPointRewardsGet200ResponseResponseObject;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ApiUserPointRewardsGet200Response
|
|
41
|
+
*/
|
|
42
|
+
statusCode: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ApiUserPointRewardsGet200Response interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfApiUserPointRewardsGet200Response(value: object): value is ApiUserPointRewardsGet200Response;
|
|
48
|
+
export declare function ApiUserPointRewardsGet200ResponseFromJSON(json: any): ApiUserPointRewardsGet200Response;
|
|
49
|
+
export declare function ApiUserPointRewardsGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUserPointRewardsGet200Response;
|
|
50
|
+
export declare function ApiUserPointRewardsGet200ResponseToJSON(json: any): ApiUserPointRewardsGet200Response;
|
|
51
|
+
export declare function ApiUserPointRewardsGet200ResponseToJSONTyped(value?: ApiUserPointRewardsGet200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* DRX API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.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
|
+
import { ApiUserPointRewardsGet200ResponseResponseObjectFromJSON, ApiUserPointRewardsGet200ResponseResponseObjectToJSON, } from './ApiUserPointRewardsGet200ResponseResponseObject';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ApiUserPointRewardsGet200Response interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfApiUserPointRewardsGet200Response(value) {
|
|
19
|
+
if (!('success' in value) || value['success'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('statusCode' in value) || value['statusCode'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
export function ApiUserPointRewardsGet200ResponseFromJSON(json) {
|
|
28
|
+
return ApiUserPointRewardsGet200ResponseFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function ApiUserPointRewardsGet200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'success': json['success'],
|
|
36
|
+
'message': json['message'],
|
|
37
|
+
'responseObject': json['responseObject'] == null ? undefined : ApiUserPointRewardsGet200ResponseResponseObjectFromJSON(json['responseObject']),
|
|
38
|
+
'statusCode': json['statusCode'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export function ApiUserPointRewardsGet200ResponseToJSON(json) {
|
|
42
|
+
return ApiUserPointRewardsGet200ResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
export function ApiUserPointRewardsGet200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'success': value['success'],
|
|
50
|
+
'message': value['message'],
|
|
51
|
+
'responseObject': ApiUserPointRewardsGet200ResponseResponseObjectToJSON(value['responseObject']),
|
|
52
|
+
'statusCode': value['statusCode'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DRX API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ApiUserPointRewardsGet200ResponseResponseObject
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiUserPointRewardsGet200ResponseResponseObject {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof ApiUserPointRewardsGet200ResponseResponseObject
|
|
22
|
+
*/
|
|
23
|
+
sIGNUP: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof ApiUserPointRewardsGet200ResponseResponseObject
|
|
28
|
+
*/
|
|
29
|
+
rEFERRAL: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof ApiUserPointRewardsGet200ResponseResponseObject
|
|
34
|
+
*/
|
|
35
|
+
nFCSCAN: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ApiUserPointRewardsGet200ResponseResponseObject
|
|
40
|
+
*/
|
|
41
|
+
fIRSTGAME: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof ApiUserPointRewardsGet200ResponseResponseObject
|
|
46
|
+
*/
|
|
47
|
+
dAILYLOGIN: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ApiUserPointRewardsGet200ResponseResponseObject
|
|
52
|
+
*/
|
|
53
|
+
tOURNAMENTWIN: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof ApiUserPointRewardsGet200ResponseResponseObject
|
|
58
|
+
*/
|
|
59
|
+
aDMINBONUS: number;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the ApiUserPointRewardsGet200ResponseResponseObject interface.
|
|
63
|
+
*/
|
|
64
|
+
export declare function instanceOfApiUserPointRewardsGet200ResponseResponseObject(value: object): value is ApiUserPointRewardsGet200ResponseResponseObject;
|
|
65
|
+
export declare function ApiUserPointRewardsGet200ResponseResponseObjectFromJSON(json: any): ApiUserPointRewardsGet200ResponseResponseObject;
|
|
66
|
+
export declare function ApiUserPointRewardsGet200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUserPointRewardsGet200ResponseResponseObject;
|
|
67
|
+
export declare function ApiUserPointRewardsGet200ResponseResponseObjectToJSON(json: any): ApiUserPointRewardsGet200ResponseResponseObject;
|
|
68
|
+
export declare function ApiUserPointRewardsGet200ResponseResponseObjectToJSONTyped(value?: ApiUserPointRewardsGet200ResponseResponseObject | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* DRX API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.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
|
+
* Check if a given object implements the ApiUserPointRewardsGet200ResponseResponseObject interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfApiUserPointRewardsGet200ResponseResponseObject(value) {
|
|
18
|
+
if (!('sIGNUP' in value) || value['sIGNUP'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('rEFERRAL' in value) || value['rEFERRAL'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('nFCSCAN' in value) || value['nFCSCAN'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('fIRSTGAME' in value) || value['fIRSTGAME'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('dAILYLOGIN' in value) || value['dAILYLOGIN'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('tOURNAMENTWIN' in value) || value['tOURNAMENTWIN'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('aDMINBONUS' in value) || value['aDMINBONUS'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
export function ApiUserPointRewardsGet200ResponseResponseObjectFromJSON(json) {
|
|
35
|
+
return ApiUserPointRewardsGet200ResponseResponseObjectFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function ApiUserPointRewardsGet200ResponseResponseObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'sIGNUP': json['SIGNUP'],
|
|
43
|
+
'rEFERRAL': json['REFERRAL'],
|
|
44
|
+
'nFCSCAN': json['NFC_SCAN'],
|
|
45
|
+
'fIRSTGAME': json['FIRST_GAME'],
|
|
46
|
+
'dAILYLOGIN': json['DAILY_LOGIN'],
|
|
47
|
+
'tOURNAMENTWIN': json['TOURNAMENT_WIN'],
|
|
48
|
+
'aDMINBONUS': json['ADMIN_BONUS'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
export function ApiUserPointRewardsGet200ResponseResponseObjectToJSON(json) {
|
|
52
|
+
return ApiUserPointRewardsGet200ResponseResponseObjectToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
export function ApiUserPointRewardsGet200ResponseResponseObjectToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'SIGNUP': value['sIGNUP'],
|
|
60
|
+
'REFERRAL': value['rEFERRAL'],
|
|
61
|
+
'NFC_SCAN': value['nFCSCAN'],
|
|
62
|
+
'FIRST_GAME': value['fIRSTGAME'],
|
|
63
|
+
'DAILY_LOGIN': value['dAILYLOGIN'],
|
|
64
|
+
'TOURNAMENT_WIN': value['tOURNAMENTWIN'],
|
|
65
|
+
'ADMIN_BONUS': value['aDMINBONUS'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DRX API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ApiUserPointRewardsPut200ResponseResponseObject } from './ApiUserPointRewardsPut200ResponseResponseObject';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiUserPointRewardsPut200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiUserPointRewardsPut200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof ApiUserPointRewardsPut200Response
|
|
23
|
+
*/
|
|
24
|
+
success: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ApiUserPointRewardsPut200Response
|
|
29
|
+
*/
|
|
30
|
+
message: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {ApiUserPointRewardsPut200ResponseResponseObject}
|
|
34
|
+
* @memberof ApiUserPointRewardsPut200Response
|
|
35
|
+
*/
|
|
36
|
+
responseObject?: ApiUserPointRewardsPut200ResponseResponseObject;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ApiUserPointRewardsPut200Response
|
|
41
|
+
*/
|
|
42
|
+
statusCode: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ApiUserPointRewardsPut200Response interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfApiUserPointRewardsPut200Response(value: object): value is ApiUserPointRewardsPut200Response;
|
|
48
|
+
export declare function ApiUserPointRewardsPut200ResponseFromJSON(json: any): ApiUserPointRewardsPut200Response;
|
|
49
|
+
export declare function ApiUserPointRewardsPut200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUserPointRewardsPut200Response;
|
|
50
|
+
export declare function ApiUserPointRewardsPut200ResponseToJSON(json: any): ApiUserPointRewardsPut200Response;
|
|
51
|
+
export declare function ApiUserPointRewardsPut200ResponseToJSONTyped(value?: ApiUserPointRewardsPut200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* DRX API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.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
|
+
import { ApiUserPointRewardsPut200ResponseResponseObjectFromJSON, ApiUserPointRewardsPut200ResponseResponseObjectToJSON, } from './ApiUserPointRewardsPut200ResponseResponseObject';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ApiUserPointRewardsPut200Response interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfApiUserPointRewardsPut200Response(value) {
|
|
19
|
+
if (!('success' in value) || value['success'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('statusCode' in value) || value['statusCode'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
export function ApiUserPointRewardsPut200ResponseFromJSON(json) {
|
|
28
|
+
return ApiUserPointRewardsPut200ResponseFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function ApiUserPointRewardsPut200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'success': json['success'],
|
|
36
|
+
'message': json['message'],
|
|
37
|
+
'responseObject': json['responseObject'] == null ? undefined : ApiUserPointRewardsPut200ResponseResponseObjectFromJSON(json['responseObject']),
|
|
38
|
+
'statusCode': json['statusCode'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export function ApiUserPointRewardsPut200ResponseToJSON(json) {
|
|
42
|
+
return ApiUserPointRewardsPut200ResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
export function ApiUserPointRewardsPut200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'success': value['success'],
|
|
50
|
+
'message': value['message'],
|
|
51
|
+
'responseObject': ApiUserPointRewardsPut200ResponseResponseObjectToJSON(value['responseObject']),
|
|
52
|
+
'statusCode': value['statusCode'],
|
|
53
|
+
};
|
|
54
|
+
}
|