@gambulls-org/gambulls-apis 3.0.158 → 3.0.159
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 +2 -0
- package/apis/SportsbookApi.js +37 -0
- package/apis/SportsbookApi.ts +51 -0
- package/models/ApiSportsbookGetBalancePost200Response.js +74 -0
- package/models/ApiSportsbookGetBalancePost200Response.ts +120 -0
- package/models/ApiSportsbookGetBalancePostRequest.js +70 -0
- package/models/ApiSportsbookGetBalancePostRequest.ts +111 -0
- package/models/index.js +2 -0
- package/models/index.ts +2 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -384,6 +384,8 @@ models/ApiRgsV2ResultPostRequest.ts
|
|
|
384
384
|
models/ApiRgsV2ResultPostRequestInf.ts
|
|
385
385
|
models/ApiRgsWinPostRequest.ts
|
|
386
386
|
models/ApiRgsWinPostRequestItemsInner.ts
|
|
387
|
+
models/ApiSportsbookGetBalancePost200Response.ts
|
|
388
|
+
models/ApiSportsbookGetBalancePostRequest.ts
|
|
387
389
|
models/ApiSportsbookGetUserInfoPost200Response.ts
|
|
388
390
|
models/ApiSportsbookGetUserInfoPostRequest.ts
|
|
389
391
|
models/ApiTatumHotWalletOutgoingNativePostRequest.ts
|
package/apis/SportsbookApi.js
CHANGED
|
@@ -62,6 +62,43 @@ const index_1 = require("../models/index");
|
|
|
62
62
|
*
|
|
63
63
|
*/
|
|
64
64
|
class SportsbookApi extends runtime.BaseAPI {
|
|
65
|
+
/**
|
|
66
|
+
* Sportsbook GetBalance
|
|
67
|
+
*/
|
|
68
|
+
apiSportsbookGetBalancePostRaw(requestParameters, initOverrides) {
|
|
69
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
70
|
+
const queryParameters = {};
|
|
71
|
+
const headerParameters = {};
|
|
72
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
73
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
74
|
+
headerParameters["api-key"] = yield this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
75
|
+
}
|
|
76
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
77
|
+
const token = this.configuration.accessToken;
|
|
78
|
+
const tokenString = yield token("BearerAuth", []);
|
|
79
|
+
if (tokenString) {
|
|
80
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
const response = yield this.request({
|
|
84
|
+
path: `/api/sportsbook/GetBalance`,
|
|
85
|
+
method: 'POST',
|
|
86
|
+
headers: headerParameters,
|
|
87
|
+
query: queryParameters,
|
|
88
|
+
body: (0, index_1.ApiSportsbookGetBalancePostRequestToJSON)(requestParameters['apiSportsbookGetBalancePostRequest']),
|
|
89
|
+
}, initOverrides);
|
|
90
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiSportsbookGetBalancePost200ResponseFromJSON)(jsonValue));
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Sportsbook GetBalance
|
|
95
|
+
*/
|
|
96
|
+
apiSportsbookGetBalancePost() {
|
|
97
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
98
|
+
const response = yield this.apiSportsbookGetBalancePostRaw(requestParameters, initOverrides);
|
|
99
|
+
return yield response.value();
|
|
100
|
+
});
|
|
101
|
+
}
|
|
65
102
|
/**
|
|
66
103
|
* Sportsbook GetUserInfo
|
|
67
104
|
*/
|
package/apis/SportsbookApi.ts
CHANGED
|
@@ -15,16 +15,26 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
ApiSportsbookGetBalancePost200Response,
|
|
19
|
+
ApiSportsbookGetBalancePostRequest,
|
|
18
20
|
ApiSportsbookGetUserInfoPost200Response,
|
|
19
21
|
ApiSportsbookGetUserInfoPostRequest,
|
|
20
22
|
} from '../models/index';
|
|
21
23
|
import {
|
|
24
|
+
ApiSportsbookGetBalancePost200ResponseFromJSON,
|
|
25
|
+
ApiSportsbookGetBalancePost200ResponseToJSON,
|
|
26
|
+
ApiSportsbookGetBalancePostRequestFromJSON,
|
|
27
|
+
ApiSportsbookGetBalancePostRequestToJSON,
|
|
22
28
|
ApiSportsbookGetUserInfoPost200ResponseFromJSON,
|
|
23
29
|
ApiSportsbookGetUserInfoPost200ResponseToJSON,
|
|
24
30
|
ApiSportsbookGetUserInfoPostRequestFromJSON,
|
|
25
31
|
ApiSportsbookGetUserInfoPostRequestToJSON,
|
|
26
32
|
} from '../models/index';
|
|
27
33
|
|
|
34
|
+
export interface ApiSportsbookGetBalancePostOperationRequest {
|
|
35
|
+
apiSportsbookGetBalancePostRequest?: ApiSportsbookGetBalancePostRequest;
|
|
36
|
+
}
|
|
37
|
+
|
|
28
38
|
export interface ApiSportsbookGetUserInfoPostOperationRequest {
|
|
29
39
|
apiSportsbookGetUserInfoPostRequest?: ApiSportsbookGetUserInfoPostRequest;
|
|
30
40
|
}
|
|
@@ -34,6 +44,47 @@ export interface ApiSportsbookGetUserInfoPostOperationRequest {
|
|
|
34
44
|
*/
|
|
35
45
|
export class SportsbookApi extends runtime.BaseAPI {
|
|
36
46
|
|
|
47
|
+
/**
|
|
48
|
+
* Sportsbook GetBalance
|
|
49
|
+
*/
|
|
50
|
+
async apiSportsbookGetBalancePostRaw(requestParameters: ApiSportsbookGetBalancePostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiSportsbookGetBalancePost200Response>> {
|
|
51
|
+
const queryParameters: any = {};
|
|
52
|
+
|
|
53
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
54
|
+
|
|
55
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
56
|
+
|
|
57
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
58
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
62
|
+
const token = this.configuration.accessToken;
|
|
63
|
+
const tokenString = await token("BearerAuth", []);
|
|
64
|
+
|
|
65
|
+
if (tokenString) {
|
|
66
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
const response = await this.request({
|
|
70
|
+
path: `/api/sportsbook/GetBalance`,
|
|
71
|
+
method: 'POST',
|
|
72
|
+
headers: headerParameters,
|
|
73
|
+
query: queryParameters,
|
|
74
|
+
body: ApiSportsbookGetBalancePostRequestToJSON(requestParameters['apiSportsbookGetBalancePostRequest']),
|
|
75
|
+
}, initOverrides);
|
|
76
|
+
|
|
77
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiSportsbookGetBalancePost200ResponseFromJSON(jsonValue));
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Sportsbook GetBalance
|
|
82
|
+
*/
|
|
83
|
+
async apiSportsbookGetBalancePost(requestParameters: ApiSportsbookGetBalancePostOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiSportsbookGetBalancePost200Response> {
|
|
84
|
+
const response = await this.apiSportsbookGetBalancePostRaw(requestParameters, initOverrides);
|
|
85
|
+
return await response.value();
|
|
86
|
+
}
|
|
87
|
+
|
|
37
88
|
/**
|
|
38
89
|
* Sportsbook GetUserInfo
|
|
39
90
|
*/
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Swagger API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfApiSportsbookGetBalancePost200Response = instanceOfApiSportsbookGetBalancePost200Response;
|
|
17
|
+
exports.ApiSportsbookGetBalancePost200ResponseFromJSON = ApiSportsbookGetBalancePost200ResponseFromJSON;
|
|
18
|
+
exports.ApiSportsbookGetBalancePost200ResponseFromJSONTyped = ApiSportsbookGetBalancePost200ResponseFromJSONTyped;
|
|
19
|
+
exports.ApiSportsbookGetBalancePost200ResponseToJSON = ApiSportsbookGetBalancePost200ResponseToJSON;
|
|
20
|
+
exports.ApiSportsbookGetBalancePost200ResponseToJSONTyped = ApiSportsbookGetBalancePost200ResponseToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ApiSportsbookGetBalancePost200Response interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfApiSportsbookGetBalancePost200Response(value) {
|
|
25
|
+
if (!('responseCode' in value) || value['responseCode'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('timeStamp' in value) || value['timeStamp'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('token' in value) || value['token'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('availableBalance' in value) || value['availableBalance'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('currencyId' in value) || value['currencyId'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('signature' in value) || value['signature'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function ApiSportsbookGetBalancePost200ResponseFromJSON(json) {
|
|
42
|
+
return ApiSportsbookGetBalancePost200ResponseFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function ApiSportsbookGetBalancePost200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'responseCode': json['ResponseCode'],
|
|
50
|
+
'description': json['Description'],
|
|
51
|
+
'timeStamp': json['TimeStamp'],
|
|
52
|
+
'token': json['Token'],
|
|
53
|
+
'availableBalance': json['AvailableBalance'],
|
|
54
|
+
'currencyId': json['CurrencyId'],
|
|
55
|
+
'signature': json['Signature'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function ApiSportsbookGetBalancePost200ResponseToJSON(json) {
|
|
59
|
+
return ApiSportsbookGetBalancePost200ResponseToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
function ApiSportsbookGetBalancePost200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'ResponseCode': value['responseCode'],
|
|
67
|
+
'Description': value['description'],
|
|
68
|
+
'TimeStamp': value['timeStamp'],
|
|
69
|
+
'Token': value['token'],
|
|
70
|
+
'AvailableBalance': value['availableBalance'],
|
|
71
|
+
'CurrencyId': value['currencyId'],
|
|
72
|
+
'Signature': value['signature'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Swagger 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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ApiSportsbookGetBalancePost200Response
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiSportsbookGetBalancePost200Response {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof ApiSportsbookGetBalancePost200Response
|
|
26
|
+
*/
|
|
27
|
+
responseCode: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ApiSportsbookGetBalancePost200Response
|
|
32
|
+
*/
|
|
33
|
+
description: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof ApiSportsbookGetBalancePost200Response
|
|
38
|
+
*/
|
|
39
|
+
timeStamp: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof ApiSportsbookGetBalancePost200Response
|
|
44
|
+
*/
|
|
45
|
+
token: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof ApiSportsbookGetBalancePost200Response
|
|
50
|
+
*/
|
|
51
|
+
availableBalance: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof ApiSportsbookGetBalancePost200Response
|
|
56
|
+
*/
|
|
57
|
+
currencyId: string;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof ApiSportsbookGetBalancePost200Response
|
|
62
|
+
*/
|
|
63
|
+
signature: string;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Check if a given object implements the ApiSportsbookGetBalancePost200Response interface.
|
|
68
|
+
*/
|
|
69
|
+
export function instanceOfApiSportsbookGetBalancePost200Response(value: object): value is ApiSportsbookGetBalancePost200Response {
|
|
70
|
+
if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
|
|
71
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
72
|
+
if (!('timeStamp' in value) || value['timeStamp'] === undefined) return false;
|
|
73
|
+
if (!('token' in value) || value['token'] === undefined) return false;
|
|
74
|
+
if (!('availableBalance' in value) || value['availableBalance'] === undefined) return false;
|
|
75
|
+
if (!('currencyId' in value) || value['currencyId'] === undefined) return false;
|
|
76
|
+
if (!('signature' in value) || value['signature'] === undefined) return false;
|
|
77
|
+
return true;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function ApiSportsbookGetBalancePost200ResponseFromJSON(json: any): ApiSportsbookGetBalancePost200Response {
|
|
81
|
+
return ApiSportsbookGetBalancePost200ResponseFromJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function ApiSportsbookGetBalancePost200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiSportsbookGetBalancePost200Response {
|
|
85
|
+
if (json == null) {
|
|
86
|
+
return json;
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
|
|
90
|
+
'responseCode': json['ResponseCode'],
|
|
91
|
+
'description': json['Description'],
|
|
92
|
+
'timeStamp': json['TimeStamp'],
|
|
93
|
+
'token': json['Token'],
|
|
94
|
+
'availableBalance': json['AvailableBalance'],
|
|
95
|
+
'currencyId': json['CurrencyId'],
|
|
96
|
+
'signature': json['Signature'],
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function ApiSportsbookGetBalancePost200ResponseToJSON(json: any): ApiSportsbookGetBalancePost200Response {
|
|
101
|
+
return ApiSportsbookGetBalancePost200ResponseToJSONTyped(json, false);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function ApiSportsbookGetBalancePost200ResponseToJSONTyped(value?: ApiSportsbookGetBalancePost200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
105
|
+
if (value == null) {
|
|
106
|
+
return value;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
return {
|
|
110
|
+
|
|
111
|
+
'ResponseCode': value['responseCode'],
|
|
112
|
+
'Description': value['description'],
|
|
113
|
+
'TimeStamp': value['timeStamp'],
|
|
114
|
+
'Token': value['token'],
|
|
115
|
+
'AvailableBalance': value['availableBalance'],
|
|
116
|
+
'CurrencyId': value['currencyId'],
|
|
117
|
+
'Signature': value['signature'],
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Swagger API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfApiSportsbookGetBalancePostRequest = instanceOfApiSportsbookGetBalancePostRequest;
|
|
17
|
+
exports.ApiSportsbookGetBalancePostRequestFromJSON = ApiSportsbookGetBalancePostRequestFromJSON;
|
|
18
|
+
exports.ApiSportsbookGetBalancePostRequestFromJSONTyped = ApiSportsbookGetBalancePostRequestFromJSONTyped;
|
|
19
|
+
exports.ApiSportsbookGetBalancePostRequestToJSON = ApiSportsbookGetBalancePostRequestToJSON;
|
|
20
|
+
exports.ApiSportsbookGetBalancePostRequestToJSONTyped = ApiSportsbookGetBalancePostRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ApiSportsbookGetBalancePostRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfApiSportsbookGetBalancePostRequest(value) {
|
|
25
|
+
if (!('partnerId' in value) || value['partnerId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('timeStamp' in value) || value['timeStamp'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('token' in value) || value['token'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('clientId' in value) || value['clientId'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('currencyId' in value) || value['currencyId'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('signature' in value) || value['signature'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function ApiSportsbookGetBalancePostRequestFromJSON(json) {
|
|
40
|
+
return ApiSportsbookGetBalancePostRequestFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ApiSportsbookGetBalancePostRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'partnerId': json['PartnerId'],
|
|
48
|
+
'timeStamp': json['TimeStamp'],
|
|
49
|
+
'token': json['Token'],
|
|
50
|
+
'clientId': json['ClientId'],
|
|
51
|
+
'currencyId': json['CurrencyId'],
|
|
52
|
+
'signature': json['Signature'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function ApiSportsbookGetBalancePostRequestToJSON(json) {
|
|
56
|
+
return ApiSportsbookGetBalancePostRequestToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function ApiSportsbookGetBalancePostRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'PartnerId': value['partnerId'],
|
|
64
|
+
'TimeStamp': value['timeStamp'],
|
|
65
|
+
'Token': value['token'],
|
|
66
|
+
'ClientId': value['clientId'],
|
|
67
|
+
'CurrencyId': value['currencyId'],
|
|
68
|
+
'Signature': value['signature'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Swagger 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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ApiSportsbookGetBalancePostRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiSportsbookGetBalancePostRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof ApiSportsbookGetBalancePostRequest
|
|
26
|
+
*/
|
|
27
|
+
partnerId: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof ApiSportsbookGetBalancePostRequest
|
|
32
|
+
*/
|
|
33
|
+
timeStamp: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ApiSportsbookGetBalancePostRequest
|
|
38
|
+
*/
|
|
39
|
+
token: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof ApiSportsbookGetBalancePostRequest
|
|
44
|
+
*/
|
|
45
|
+
clientId: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof ApiSportsbookGetBalancePostRequest
|
|
50
|
+
*/
|
|
51
|
+
currencyId: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof ApiSportsbookGetBalancePostRequest
|
|
56
|
+
*/
|
|
57
|
+
signature: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the ApiSportsbookGetBalancePostRequest interface.
|
|
62
|
+
*/
|
|
63
|
+
export function instanceOfApiSportsbookGetBalancePostRequest(value: object): value is ApiSportsbookGetBalancePostRequest {
|
|
64
|
+
if (!('partnerId' in value) || value['partnerId'] === undefined) return false;
|
|
65
|
+
if (!('timeStamp' in value) || value['timeStamp'] === undefined) return false;
|
|
66
|
+
if (!('token' in value) || value['token'] === undefined) return false;
|
|
67
|
+
if (!('clientId' in value) || value['clientId'] === undefined) return false;
|
|
68
|
+
if (!('currencyId' in value) || value['currencyId'] === undefined) return false;
|
|
69
|
+
if (!('signature' in value) || value['signature'] === undefined) return false;
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function ApiSportsbookGetBalancePostRequestFromJSON(json: any): ApiSportsbookGetBalancePostRequest {
|
|
74
|
+
return ApiSportsbookGetBalancePostRequestFromJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function ApiSportsbookGetBalancePostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiSportsbookGetBalancePostRequest {
|
|
78
|
+
if (json == null) {
|
|
79
|
+
return json;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'partnerId': json['PartnerId'],
|
|
84
|
+
'timeStamp': json['TimeStamp'],
|
|
85
|
+
'token': json['Token'],
|
|
86
|
+
'clientId': json['ClientId'],
|
|
87
|
+
'currencyId': json['CurrencyId'],
|
|
88
|
+
'signature': json['Signature'],
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function ApiSportsbookGetBalancePostRequestToJSON(json: any): ApiSportsbookGetBalancePostRequest {
|
|
93
|
+
return ApiSportsbookGetBalancePostRequestToJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function ApiSportsbookGetBalancePostRequestToJSONTyped(value?: ApiSportsbookGetBalancePostRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
97
|
+
if (value == null) {
|
|
98
|
+
return value;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return {
|
|
102
|
+
|
|
103
|
+
'PartnerId': value['partnerId'],
|
|
104
|
+
'TimeStamp': value['timeStamp'],
|
|
105
|
+
'Token': value['token'],
|
|
106
|
+
'ClientId': value['clientId'],
|
|
107
|
+
'CurrencyId': value['currencyId'],
|
|
108
|
+
'Signature': value['signature'],
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
|
package/models/index.js
CHANGED
|
@@ -350,6 +350,8 @@ __exportStar(require("./ApiRgsV2ResultPostRequest"), exports);
|
|
|
350
350
|
__exportStar(require("./ApiRgsV2ResultPostRequestInf"), exports);
|
|
351
351
|
__exportStar(require("./ApiRgsWinPostRequest"), exports);
|
|
352
352
|
__exportStar(require("./ApiRgsWinPostRequestItemsInner"), exports);
|
|
353
|
+
__exportStar(require("./ApiSportsbookGetBalancePost200Response"), exports);
|
|
354
|
+
__exportStar(require("./ApiSportsbookGetBalancePostRequest"), exports);
|
|
353
355
|
__exportStar(require("./ApiSportsbookGetUserInfoPost200Response"), exports);
|
|
354
356
|
__exportStar(require("./ApiSportsbookGetUserInfoPostRequest"), exports);
|
|
355
357
|
__exportStar(require("./ApiTatumHotWalletOutgoingNativePostRequest"), exports);
|
package/models/index.ts
CHANGED
|
@@ -334,6 +334,8 @@ export * from './ApiRgsV2ResultPostRequest';
|
|
|
334
334
|
export * from './ApiRgsV2ResultPostRequestInf';
|
|
335
335
|
export * from './ApiRgsWinPostRequest';
|
|
336
336
|
export * from './ApiRgsWinPostRequestItemsInner';
|
|
337
|
+
export * from './ApiSportsbookGetBalancePost200Response';
|
|
338
|
+
export * from './ApiSportsbookGetBalancePostRequest';
|
|
337
339
|
export * from './ApiSportsbookGetUserInfoPost200Response';
|
|
338
340
|
export * from './ApiSportsbookGetUserInfoPostRequest';
|
|
339
341
|
export * from './ApiTatumHotWalletOutgoingNativePostRequest';
|