@gambulls-org/gambulls-apis 3.0.490 → 3.0.491
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 +3 -0
- package/apis/TestForNonProductionOnlyApi.js +37 -0
- package/apis/TestForNonProductionOnlyApi.ts +51 -0
- package/models/ApiTestSportsbookSignaturePost200Response.js +61 -0
- package/models/ApiTestSportsbookSignaturePost200Response.ts +100 -0
- package/models/ApiTestSportsbookSignaturePost200ResponseResponseObject.js +50 -0
- package/models/ApiTestSportsbookSignaturePost200ResponseResponseObject.ts +66 -0
- package/models/ApiTestSportsbookSignaturePostRequest.js +67 -0
- package/models/ApiTestSportsbookSignaturePostRequest.ts +91 -0
- package/models/index.js +3 -0
- package/models/index.ts +3 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -528,6 +528,9 @@ models/ApiTatumHotWalletOutgoingNativePostRequest.ts
|
|
|
528
528
|
models/ApiTatumHotWalletOutgoingTokenPostRequest.ts
|
|
529
529
|
models/ApiTatumIncomingNativePostRequest.ts
|
|
530
530
|
models/ApiTatumIncomingTokenPostRequest.ts
|
|
531
|
+
models/ApiTestSportsbookSignaturePost200Response.ts
|
|
532
|
+
models/ApiTestSportsbookSignaturePost200ResponseResponseObject.ts
|
|
533
|
+
models/ApiTestSportsbookSignaturePostRequest.ts
|
|
531
534
|
models/ApiUserAffiliateLinkGet200Response.ts
|
|
532
535
|
models/ApiUserAffiliateLinkGet200ResponseResponseObjectInner.ts
|
|
533
536
|
models/ApiUserAffiliateLinkPostRequest.ts
|
|
@@ -128,5 +128,42 @@ class TestForNonProductionOnlyApi extends runtime.BaseAPI {
|
|
|
128
128
|
return yield response.value();
|
|
129
129
|
});
|
|
130
130
|
}
|
|
131
|
+
/**
|
|
132
|
+
* Generate Sportsbook Signature
|
|
133
|
+
*/
|
|
134
|
+
apiTestSportsbookSignaturePostRaw(requestParameters, initOverrides) {
|
|
135
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
136
|
+
const queryParameters = {};
|
|
137
|
+
const headerParameters = {};
|
|
138
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
139
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
140
|
+
headerParameters["api-key"] = yield this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
141
|
+
}
|
|
142
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
143
|
+
const token = this.configuration.accessToken;
|
|
144
|
+
const tokenString = yield token("BearerAuth", []);
|
|
145
|
+
if (tokenString) {
|
|
146
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
const response = yield this.request({
|
|
150
|
+
path: `/api/test/sportsbook/signature`,
|
|
151
|
+
method: 'POST',
|
|
152
|
+
headers: headerParameters,
|
|
153
|
+
query: queryParameters,
|
|
154
|
+
body: (0, index_1.ApiTestSportsbookSignaturePostRequestToJSON)(requestParameters['apiTestSportsbookSignaturePostRequest']),
|
|
155
|
+
}, initOverrides);
|
|
156
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiTestSportsbookSignaturePost200ResponseFromJSON)(jsonValue));
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Generate Sportsbook Signature
|
|
161
|
+
*/
|
|
162
|
+
apiTestSportsbookSignaturePost() {
|
|
163
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
164
|
+
const response = yield this.apiTestSportsbookSignaturePostRaw(requestParameters, initOverrides);
|
|
165
|
+
return yield response.value();
|
|
166
|
+
});
|
|
167
|
+
}
|
|
131
168
|
}
|
|
132
169
|
exports.TestForNonProductionOnlyApi = TestForNonProductionOnlyApi;
|
|
@@ -16,10 +16,16 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
ApiHealthCheckGet200Response,
|
|
19
|
+
ApiTestSportsbookSignaturePost200Response,
|
|
20
|
+
ApiTestSportsbookSignaturePostRequest,
|
|
19
21
|
} from '../models/index';
|
|
20
22
|
import {
|
|
21
23
|
ApiHealthCheckGet200ResponseFromJSON,
|
|
22
24
|
ApiHealthCheckGet200ResponseToJSON,
|
|
25
|
+
ApiTestSportsbookSignaturePost200ResponseFromJSON,
|
|
26
|
+
ApiTestSportsbookSignaturePost200ResponseToJSON,
|
|
27
|
+
ApiTestSportsbookSignaturePostRequestFromJSON,
|
|
28
|
+
ApiTestSportsbookSignaturePostRequestToJSON,
|
|
23
29
|
} from '../models/index';
|
|
24
30
|
|
|
25
31
|
export interface ApiTestAdminBearerTokenGetRequest {
|
|
@@ -30,6 +36,10 @@ export interface ApiTestBearerTokenGetRequest {
|
|
|
30
36
|
email?: string;
|
|
31
37
|
}
|
|
32
38
|
|
|
39
|
+
export interface ApiTestSportsbookSignaturePostOperationRequest {
|
|
40
|
+
apiTestSportsbookSignaturePostRequest?: ApiTestSportsbookSignaturePostRequest;
|
|
41
|
+
}
|
|
42
|
+
|
|
33
43
|
/**
|
|
34
44
|
*
|
|
35
45
|
*/
|
|
@@ -119,4 +129,45 @@ export class TestForNonProductionOnlyApi extends runtime.BaseAPI {
|
|
|
119
129
|
return await response.value();
|
|
120
130
|
}
|
|
121
131
|
|
|
132
|
+
/**
|
|
133
|
+
* Generate Sportsbook Signature
|
|
134
|
+
*/
|
|
135
|
+
async apiTestSportsbookSignaturePostRaw(requestParameters: ApiTestSportsbookSignaturePostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiTestSportsbookSignaturePost200Response>> {
|
|
136
|
+
const queryParameters: any = {};
|
|
137
|
+
|
|
138
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
139
|
+
|
|
140
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
141
|
+
|
|
142
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
143
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
147
|
+
const token = this.configuration.accessToken;
|
|
148
|
+
const tokenString = await token("BearerAuth", []);
|
|
149
|
+
|
|
150
|
+
if (tokenString) {
|
|
151
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
const response = await this.request({
|
|
155
|
+
path: `/api/test/sportsbook/signature`,
|
|
156
|
+
method: 'POST',
|
|
157
|
+
headers: headerParameters,
|
|
158
|
+
query: queryParameters,
|
|
159
|
+
body: ApiTestSportsbookSignaturePostRequestToJSON(requestParameters['apiTestSportsbookSignaturePostRequest']),
|
|
160
|
+
}, initOverrides);
|
|
161
|
+
|
|
162
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiTestSportsbookSignaturePost200ResponseFromJSON(jsonValue));
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Generate Sportsbook Signature
|
|
167
|
+
*/
|
|
168
|
+
async apiTestSportsbookSignaturePost(requestParameters: ApiTestSportsbookSignaturePostOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiTestSportsbookSignaturePost200Response> {
|
|
169
|
+
const response = await this.apiTestSportsbookSignaturePostRaw(requestParameters, initOverrides);
|
|
170
|
+
return await response.value();
|
|
171
|
+
}
|
|
172
|
+
|
|
122
173
|
}
|
|
@@ -0,0 +1,61 @@
|
|
|
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.instanceOfApiTestSportsbookSignaturePost200Response = instanceOfApiTestSportsbookSignaturePost200Response;
|
|
17
|
+
exports.ApiTestSportsbookSignaturePost200ResponseFromJSON = ApiTestSportsbookSignaturePost200ResponseFromJSON;
|
|
18
|
+
exports.ApiTestSportsbookSignaturePost200ResponseFromJSONTyped = ApiTestSportsbookSignaturePost200ResponseFromJSONTyped;
|
|
19
|
+
exports.ApiTestSportsbookSignaturePost200ResponseToJSON = ApiTestSportsbookSignaturePost200ResponseToJSON;
|
|
20
|
+
exports.ApiTestSportsbookSignaturePost200ResponseToJSONTyped = ApiTestSportsbookSignaturePost200ResponseToJSONTyped;
|
|
21
|
+
const ApiTestSportsbookSignaturePost200ResponseResponseObject_1 = require("./ApiTestSportsbookSignaturePost200ResponseResponseObject");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ApiTestSportsbookSignaturePost200Response interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfApiTestSportsbookSignaturePost200Response(value) {
|
|
26
|
+
if (!('success' in value) || value['success'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('statusCode' in value) || value['statusCode'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
function ApiTestSportsbookSignaturePost200ResponseFromJSON(json) {
|
|
35
|
+
return ApiTestSportsbookSignaturePost200ResponseFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
function ApiTestSportsbookSignaturePost200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'success': json['success'],
|
|
43
|
+
'message': json['message'],
|
|
44
|
+
'responseObject': json['responseObject'] == null ? undefined : (0, ApiTestSportsbookSignaturePost200ResponseResponseObject_1.ApiTestSportsbookSignaturePost200ResponseResponseObjectFromJSON)(json['responseObject']),
|
|
45
|
+
'statusCode': json['statusCode'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function ApiTestSportsbookSignaturePost200ResponseToJSON(json) {
|
|
49
|
+
return ApiTestSportsbookSignaturePost200ResponseToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function ApiTestSportsbookSignaturePost200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'success': value['success'],
|
|
57
|
+
'message': value['message'],
|
|
58
|
+
'responseObject': (0, ApiTestSportsbookSignaturePost200ResponseResponseObject_1.ApiTestSportsbookSignaturePost200ResponseResponseObjectToJSON)(value['responseObject']),
|
|
59
|
+
'statusCode': value['statusCode'],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
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
|
+
import type { ApiTestSportsbookSignaturePost200ResponseResponseObject } from './ApiTestSportsbookSignaturePost200ResponseResponseObject';
|
|
17
|
+
import {
|
|
18
|
+
ApiTestSportsbookSignaturePost200ResponseResponseObjectFromJSON,
|
|
19
|
+
ApiTestSportsbookSignaturePost200ResponseResponseObjectFromJSONTyped,
|
|
20
|
+
ApiTestSportsbookSignaturePost200ResponseResponseObjectToJSON,
|
|
21
|
+
ApiTestSportsbookSignaturePost200ResponseResponseObjectToJSONTyped,
|
|
22
|
+
} from './ApiTestSportsbookSignaturePost200ResponseResponseObject';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiTestSportsbookSignaturePost200Response
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiTestSportsbookSignaturePost200Response {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof ApiTestSportsbookSignaturePost200Response
|
|
34
|
+
*/
|
|
35
|
+
success: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ApiTestSportsbookSignaturePost200Response
|
|
40
|
+
*/
|
|
41
|
+
message: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {ApiTestSportsbookSignaturePost200ResponseResponseObject}
|
|
45
|
+
* @memberof ApiTestSportsbookSignaturePost200Response
|
|
46
|
+
*/
|
|
47
|
+
responseObject?: ApiTestSportsbookSignaturePost200ResponseResponseObject;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ApiTestSportsbookSignaturePost200Response
|
|
52
|
+
*/
|
|
53
|
+
statusCode: number;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the ApiTestSportsbookSignaturePost200Response interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfApiTestSportsbookSignaturePost200Response(value: object): value is ApiTestSportsbookSignaturePost200Response {
|
|
60
|
+
if (!('success' in value) || value['success'] === undefined) return false;
|
|
61
|
+
if (!('message' in value) || value['message'] === undefined) return false;
|
|
62
|
+
if (!('statusCode' in value) || value['statusCode'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function ApiTestSportsbookSignaturePost200ResponseFromJSON(json: any): ApiTestSportsbookSignaturePost200Response {
|
|
67
|
+
return ApiTestSportsbookSignaturePost200ResponseFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function ApiTestSportsbookSignaturePost200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiTestSportsbookSignaturePost200Response {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'success': json['success'],
|
|
77
|
+
'message': json['message'],
|
|
78
|
+
'responseObject': json['responseObject'] == null ? undefined : ApiTestSportsbookSignaturePost200ResponseResponseObjectFromJSON(json['responseObject']),
|
|
79
|
+
'statusCode': json['statusCode'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function ApiTestSportsbookSignaturePost200ResponseToJSON(json: any): ApiTestSportsbookSignaturePost200Response {
|
|
84
|
+
return ApiTestSportsbookSignaturePost200ResponseToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function ApiTestSportsbookSignaturePost200ResponseToJSONTyped(value?: ApiTestSportsbookSignaturePost200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return {
|
|
93
|
+
|
|
94
|
+
'success': value['success'],
|
|
95
|
+
'message': value['message'],
|
|
96
|
+
'responseObject': ApiTestSportsbookSignaturePost200ResponseResponseObjectToJSON(value['responseObject']),
|
|
97
|
+
'statusCode': value['statusCode'],
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfApiTestSportsbookSignaturePost200ResponseResponseObject = instanceOfApiTestSportsbookSignaturePost200ResponseResponseObject;
|
|
17
|
+
exports.ApiTestSportsbookSignaturePost200ResponseResponseObjectFromJSON = ApiTestSportsbookSignaturePost200ResponseResponseObjectFromJSON;
|
|
18
|
+
exports.ApiTestSportsbookSignaturePost200ResponseResponseObjectFromJSONTyped = ApiTestSportsbookSignaturePost200ResponseResponseObjectFromJSONTyped;
|
|
19
|
+
exports.ApiTestSportsbookSignaturePost200ResponseResponseObjectToJSON = ApiTestSportsbookSignaturePost200ResponseResponseObjectToJSON;
|
|
20
|
+
exports.ApiTestSportsbookSignaturePost200ResponseResponseObjectToJSONTyped = ApiTestSportsbookSignaturePost200ResponseResponseObjectToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ApiTestSportsbookSignaturePost200ResponseResponseObject interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfApiTestSportsbookSignaturePost200ResponseResponseObject(value) {
|
|
25
|
+
if (!('signature' in value) || value['signature'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function ApiTestSportsbookSignaturePost200ResponseResponseObjectFromJSON(json) {
|
|
30
|
+
return ApiTestSportsbookSignaturePost200ResponseResponseObjectFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function ApiTestSportsbookSignaturePost200ResponseResponseObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'signature': json['signature'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function ApiTestSportsbookSignaturePost200ResponseResponseObjectToJSON(json) {
|
|
41
|
+
return ApiTestSportsbookSignaturePost200ResponseResponseObjectToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function ApiTestSportsbookSignaturePost200ResponseResponseObjectToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'signature': value['signature'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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 ApiTestSportsbookSignaturePost200ResponseResponseObject
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiTestSportsbookSignaturePost200ResponseResponseObject {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ApiTestSportsbookSignaturePost200ResponseResponseObject
|
|
26
|
+
*/
|
|
27
|
+
signature: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ApiTestSportsbookSignaturePost200ResponseResponseObject interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfApiTestSportsbookSignaturePost200ResponseResponseObject(value: object): value is ApiTestSportsbookSignaturePost200ResponseResponseObject {
|
|
34
|
+
if (!('signature' in value) || value['signature'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function ApiTestSportsbookSignaturePost200ResponseResponseObjectFromJSON(json: any): ApiTestSportsbookSignaturePost200ResponseResponseObject {
|
|
39
|
+
return ApiTestSportsbookSignaturePost200ResponseResponseObjectFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function ApiTestSportsbookSignaturePost200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiTestSportsbookSignaturePost200ResponseResponseObject {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'signature': json['signature'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function ApiTestSportsbookSignaturePost200ResponseResponseObjectToJSON(json: any): ApiTestSportsbookSignaturePost200ResponseResponseObject {
|
|
53
|
+
return ApiTestSportsbookSignaturePost200ResponseResponseObjectToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function ApiTestSportsbookSignaturePost200ResponseResponseObjectToJSONTyped(value?: ApiTestSportsbookSignaturePost200ResponseResponseObject | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'signature': value['signature'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,67 @@
|
|
|
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.ApiTestSportsbookSignaturePostRequestMethodEnum = void 0;
|
|
17
|
+
exports.instanceOfApiTestSportsbookSignaturePostRequest = instanceOfApiTestSportsbookSignaturePostRequest;
|
|
18
|
+
exports.ApiTestSportsbookSignaturePostRequestFromJSON = ApiTestSportsbookSignaturePostRequestFromJSON;
|
|
19
|
+
exports.ApiTestSportsbookSignaturePostRequestFromJSONTyped = ApiTestSportsbookSignaturePostRequestFromJSONTyped;
|
|
20
|
+
exports.ApiTestSportsbookSignaturePostRequestToJSON = ApiTestSportsbookSignaturePostRequestToJSON;
|
|
21
|
+
exports.ApiTestSportsbookSignaturePostRequestToJSONTyped = ApiTestSportsbookSignaturePostRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.ApiTestSportsbookSignaturePostRequestMethodEnum = {
|
|
26
|
+
GetUserInfo: 'GetUserInfo',
|
|
27
|
+
GetBalance: 'GetBalance',
|
|
28
|
+
CreditBet: 'CreditBet',
|
|
29
|
+
CreditBetByBatch: 'CreditBetByBatch',
|
|
30
|
+
RollBackByBatch: 'RollBackByBatch',
|
|
31
|
+
DebitByBatch: 'DebitByBatch',
|
|
32
|
+
ChequeRedact: 'ChequeRedact'
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Check if a given object implements the ApiTestSportsbookSignaturePostRequest interface.
|
|
36
|
+
*/
|
|
37
|
+
function instanceOfApiTestSportsbookSignaturePostRequest(value) {
|
|
38
|
+
if (!('method' in value) || value['method'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('payload' in value) || value['payload'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
function ApiTestSportsbookSignaturePostRequestFromJSON(json) {
|
|
45
|
+
return ApiTestSportsbookSignaturePostRequestFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function ApiTestSportsbookSignaturePostRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'method': json['method'],
|
|
53
|
+
'payload': json['payload'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function ApiTestSportsbookSignaturePostRequestToJSON(json) {
|
|
57
|
+
return ApiTestSportsbookSignaturePostRequestToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
function ApiTestSportsbookSignaturePostRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'method': value['method'],
|
|
65
|
+
'payload': value['payload'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
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 ApiTestSportsbookSignaturePostRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiTestSportsbookSignaturePostRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ApiTestSportsbookSignaturePostRequest
|
|
26
|
+
*/
|
|
27
|
+
method: ApiTestSportsbookSignaturePostRequestMethodEnum;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {{ [key: string]: any | null; }}
|
|
31
|
+
* @memberof ApiTestSportsbookSignaturePostRequest
|
|
32
|
+
*/
|
|
33
|
+
payload: { [key: string]: any | null; };
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export const ApiTestSportsbookSignaturePostRequestMethodEnum = {
|
|
41
|
+
GetUserInfo: 'GetUserInfo',
|
|
42
|
+
GetBalance: 'GetBalance',
|
|
43
|
+
CreditBet: 'CreditBet',
|
|
44
|
+
CreditBetByBatch: 'CreditBetByBatch',
|
|
45
|
+
RollBackByBatch: 'RollBackByBatch',
|
|
46
|
+
DebitByBatch: 'DebitByBatch',
|
|
47
|
+
ChequeRedact: 'ChequeRedact'
|
|
48
|
+
} as const;
|
|
49
|
+
export type ApiTestSportsbookSignaturePostRequestMethodEnum = typeof ApiTestSportsbookSignaturePostRequestMethodEnum[keyof typeof ApiTestSportsbookSignaturePostRequestMethodEnum];
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the ApiTestSportsbookSignaturePostRequest interface.
|
|
54
|
+
*/
|
|
55
|
+
export function instanceOfApiTestSportsbookSignaturePostRequest(value: object): value is ApiTestSportsbookSignaturePostRequest {
|
|
56
|
+
if (!('method' in value) || value['method'] === undefined) return false;
|
|
57
|
+
if (!('payload' in value) || value['payload'] === undefined) return false;
|
|
58
|
+
return true;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function ApiTestSportsbookSignaturePostRequestFromJSON(json: any): ApiTestSportsbookSignaturePostRequest {
|
|
62
|
+
return ApiTestSportsbookSignaturePostRequestFromJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function ApiTestSportsbookSignaturePostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiTestSportsbookSignaturePostRequest {
|
|
66
|
+
if (json == null) {
|
|
67
|
+
return json;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'method': json['method'],
|
|
72
|
+
'payload': json['payload'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function ApiTestSportsbookSignaturePostRequestToJSON(json: any): ApiTestSportsbookSignaturePostRequest {
|
|
77
|
+
return ApiTestSportsbookSignaturePostRequestToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function ApiTestSportsbookSignaturePostRequestToJSONTyped(value?: ApiTestSportsbookSignaturePostRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'method': value['method'],
|
|
88
|
+
'payload': value['payload'],
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
package/models/index.js
CHANGED
|
@@ -482,6 +482,9 @@ __exportStar(require("./ApiTatumHotWalletOutgoingNativePostRequest"), exports);
|
|
|
482
482
|
__exportStar(require("./ApiTatumHotWalletOutgoingTokenPostRequest"), exports);
|
|
483
483
|
__exportStar(require("./ApiTatumIncomingNativePostRequest"), exports);
|
|
484
484
|
__exportStar(require("./ApiTatumIncomingTokenPostRequest"), exports);
|
|
485
|
+
__exportStar(require("./ApiTestSportsbookSignaturePost200Response"), exports);
|
|
486
|
+
__exportStar(require("./ApiTestSportsbookSignaturePost200ResponseResponseObject"), exports);
|
|
487
|
+
__exportStar(require("./ApiTestSportsbookSignaturePostRequest"), exports);
|
|
485
488
|
__exportStar(require("./ApiUserAffiliateLinkGet200Response"), exports);
|
|
486
489
|
__exportStar(require("./ApiUserAffiliateLinkGet200ResponseResponseObjectInner"), exports);
|
|
487
490
|
__exportStar(require("./ApiUserAffiliateLinkPostRequest"), exports);
|
package/models/index.ts
CHANGED
|
@@ -466,6 +466,9 @@ export * from './ApiTatumHotWalletOutgoingNativePostRequest';
|
|
|
466
466
|
export * from './ApiTatumHotWalletOutgoingTokenPostRequest';
|
|
467
467
|
export * from './ApiTatumIncomingNativePostRequest';
|
|
468
468
|
export * from './ApiTatumIncomingTokenPostRequest';
|
|
469
|
+
export * from './ApiTestSportsbookSignaturePost200Response';
|
|
470
|
+
export * from './ApiTestSportsbookSignaturePost200ResponseResponseObject';
|
|
471
|
+
export * from './ApiTestSportsbookSignaturePostRequest';
|
|
469
472
|
export * from './ApiUserAffiliateLinkGet200Response';
|
|
470
473
|
export * from './ApiUserAffiliateLinkGet200ResponseResponseObjectInner';
|
|
471
474
|
export * from './ApiUserAffiliateLinkPostRequest';
|