@gambulls-org/gambulls-apis 3.0.181 → 3.0.183
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 +4 -0
- package/apis/SportsbookApi.js +37 -0
- package/apis/SportsbookApi.ts +51 -0
- package/models/ApiSportsbookCreditBetByBatchPost200Response.js +75 -0
- package/models/ApiSportsbookCreditBetByBatchPost200Response.ts +128 -0
- package/models/ApiSportsbookCreditBetByBatchPostRequest.js +146 -0
- package/models/ApiSportsbookCreditBetByBatchPostRequest.ts +278 -0
- package/models/ApiSportsbookCreditBetByBatchPostRequestBetItemsInner.js +120 -0
- package/models/ApiSportsbookCreditBetByBatchPostRequestBetItemsInner.ts +238 -0
- package/models/ApiSportsbookCreditBetByBatchPostRequestBonusData.js +125 -0
- package/models/ApiSportsbookCreditBetByBatchPostRequestBonusData.ts +205 -0
- package/models/index.js +4 -0
- package/models/index.ts +4 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -406,6 +406,10 @@ models/ApiRgsV2ResultPostRequest.ts
|
|
|
406
406
|
models/ApiRgsV2ResultPostRequestInf.ts
|
|
407
407
|
models/ApiRgsWinPostRequest.ts
|
|
408
408
|
models/ApiRgsWinPostRequestItemsInner.ts
|
|
409
|
+
models/ApiSportsbookCreditBetByBatchPost200Response.ts
|
|
410
|
+
models/ApiSportsbookCreditBetByBatchPostRequest.ts
|
|
411
|
+
models/ApiSportsbookCreditBetByBatchPostRequestBetItemsInner.ts
|
|
412
|
+
models/ApiSportsbookCreditBetByBatchPostRequestBonusData.ts
|
|
409
413
|
models/ApiSportsbookCreditBetPost200Response.ts
|
|
410
414
|
models/ApiSportsbookCreditBetPost200ResponseOperationItemsInner.ts
|
|
411
415
|
models/ApiSportsbookCreditBetPostRequest.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 CreditBetByBatch
|
|
67
|
+
*/
|
|
68
|
+
apiSportsbookCreditBetByBatchPostRaw(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/CreditBetByBatch`,
|
|
85
|
+
method: 'POST',
|
|
86
|
+
headers: headerParameters,
|
|
87
|
+
query: queryParameters,
|
|
88
|
+
body: (0, index_1.ApiSportsbookCreditBetByBatchPostRequestToJSON)(requestParameters['apiSportsbookCreditBetByBatchPostRequest']),
|
|
89
|
+
}, initOverrides);
|
|
90
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiSportsbookCreditBetByBatchPost200ResponseFromJSON)(jsonValue));
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Sportsbook CreditBetByBatch
|
|
95
|
+
*/
|
|
96
|
+
apiSportsbookCreditBetByBatchPost() {
|
|
97
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
98
|
+
const response = yield this.apiSportsbookCreditBetByBatchPostRaw(requestParameters, initOverrides);
|
|
99
|
+
return yield response.value();
|
|
100
|
+
});
|
|
101
|
+
}
|
|
65
102
|
/**
|
|
66
103
|
* Sportsbook CreditBet
|
|
67
104
|
*/
|
package/apis/SportsbookApi.ts
CHANGED
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
ApiSportsbookCreditBetByBatchPost200Response,
|
|
19
|
+
ApiSportsbookCreditBetByBatchPostRequest,
|
|
18
20
|
ApiSportsbookCreditBetPost200Response,
|
|
19
21
|
ApiSportsbookCreditBetPostRequest,
|
|
20
22
|
ApiSportsbookGetBalancePost200Response,
|
|
@@ -23,6 +25,10 @@ import type {
|
|
|
23
25
|
ApiSportsbookGetUserInfoPostRequest,
|
|
24
26
|
} from '../models/index';
|
|
25
27
|
import {
|
|
28
|
+
ApiSportsbookCreditBetByBatchPost200ResponseFromJSON,
|
|
29
|
+
ApiSportsbookCreditBetByBatchPost200ResponseToJSON,
|
|
30
|
+
ApiSportsbookCreditBetByBatchPostRequestFromJSON,
|
|
31
|
+
ApiSportsbookCreditBetByBatchPostRequestToJSON,
|
|
26
32
|
ApiSportsbookCreditBetPost200ResponseFromJSON,
|
|
27
33
|
ApiSportsbookCreditBetPost200ResponseToJSON,
|
|
28
34
|
ApiSportsbookCreditBetPostRequestFromJSON,
|
|
@@ -37,6 +43,10 @@ import {
|
|
|
37
43
|
ApiSportsbookGetUserInfoPostRequestToJSON,
|
|
38
44
|
} from '../models/index';
|
|
39
45
|
|
|
46
|
+
export interface ApiSportsbookCreditBetByBatchPostOperationRequest {
|
|
47
|
+
apiSportsbookCreditBetByBatchPostRequest?: ApiSportsbookCreditBetByBatchPostRequest;
|
|
48
|
+
}
|
|
49
|
+
|
|
40
50
|
export interface ApiSportsbookCreditBetPostOperationRequest {
|
|
41
51
|
apiSportsbookCreditBetPostRequest?: ApiSportsbookCreditBetPostRequest;
|
|
42
52
|
}
|
|
@@ -54,6 +64,47 @@ export interface ApiSportsbookGetUserInfoPostOperationRequest {
|
|
|
54
64
|
*/
|
|
55
65
|
export class SportsbookApi extends runtime.BaseAPI {
|
|
56
66
|
|
|
67
|
+
/**
|
|
68
|
+
* Sportsbook CreditBetByBatch
|
|
69
|
+
*/
|
|
70
|
+
async apiSportsbookCreditBetByBatchPostRaw(requestParameters: ApiSportsbookCreditBetByBatchPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiSportsbookCreditBetByBatchPost200Response>> {
|
|
71
|
+
const queryParameters: any = {};
|
|
72
|
+
|
|
73
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
74
|
+
|
|
75
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
76
|
+
|
|
77
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
78
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
82
|
+
const token = this.configuration.accessToken;
|
|
83
|
+
const tokenString = await token("BearerAuth", []);
|
|
84
|
+
|
|
85
|
+
if (tokenString) {
|
|
86
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
const response = await this.request({
|
|
90
|
+
path: `/api/sportsbook/CreditBetByBatch`,
|
|
91
|
+
method: 'POST',
|
|
92
|
+
headers: headerParameters,
|
|
93
|
+
query: queryParameters,
|
|
94
|
+
body: ApiSportsbookCreditBetByBatchPostRequestToJSON(requestParameters['apiSportsbookCreditBetByBatchPostRequest']),
|
|
95
|
+
}, initOverrides);
|
|
96
|
+
|
|
97
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiSportsbookCreditBetByBatchPost200ResponseFromJSON(jsonValue));
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Sportsbook CreditBetByBatch
|
|
102
|
+
*/
|
|
103
|
+
async apiSportsbookCreditBetByBatchPost(requestParameters: ApiSportsbookCreditBetByBatchPostOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiSportsbookCreditBetByBatchPost200Response> {
|
|
104
|
+
const response = await this.apiSportsbookCreditBetByBatchPostRaw(requestParameters, initOverrides);
|
|
105
|
+
return await response.value();
|
|
106
|
+
}
|
|
107
|
+
|
|
57
108
|
/**
|
|
58
109
|
* Sportsbook CreditBet
|
|
59
110
|
*/
|
|
@@ -0,0 +1,75 @@
|
|
|
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.instanceOfApiSportsbookCreditBetByBatchPost200Response = instanceOfApiSportsbookCreditBetByBatchPost200Response;
|
|
17
|
+
exports.ApiSportsbookCreditBetByBatchPost200ResponseFromJSON = ApiSportsbookCreditBetByBatchPost200ResponseFromJSON;
|
|
18
|
+
exports.ApiSportsbookCreditBetByBatchPost200ResponseFromJSONTyped = ApiSportsbookCreditBetByBatchPost200ResponseFromJSONTyped;
|
|
19
|
+
exports.ApiSportsbookCreditBetByBatchPost200ResponseToJSON = ApiSportsbookCreditBetByBatchPost200ResponseToJSON;
|
|
20
|
+
exports.ApiSportsbookCreditBetByBatchPost200ResponseToJSONTyped = ApiSportsbookCreditBetByBatchPost200ResponseToJSONTyped;
|
|
21
|
+
const ApiSportsbookCreditBetPostRequestOrderNumber_1 = require("./ApiSportsbookCreditBetPostRequestOrderNumber");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ApiSportsbookCreditBetByBatchPost200Response interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfApiSportsbookCreditBetByBatchPost200Response(value) {
|
|
26
|
+
if (!('responseCode' in value) || value['responseCode'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('timeStamp' in value) || value['timeStamp'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('signature' in value) || value['signature'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('mainOrderNumber' in value) || value['mainOrderNumber'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('clientId' in value) || value['clientId'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('currentLimit' in value) || value['currentLimit'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
function ApiSportsbookCreditBetByBatchPost200ResponseFromJSON(json) {
|
|
43
|
+
return ApiSportsbookCreditBetByBatchPost200ResponseFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function ApiSportsbookCreditBetByBatchPost200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'responseCode': json['ResponseCode'],
|
|
51
|
+
'description': json['Description'],
|
|
52
|
+
'timeStamp': json['TimeStamp'],
|
|
53
|
+
'signature': json['Signature'],
|
|
54
|
+
'mainOrderNumber': (0, ApiSportsbookCreditBetPostRequestOrderNumber_1.ApiSportsbookCreditBetPostRequestOrderNumberFromJSON)(json['MainOrderNumber']),
|
|
55
|
+
'clientId': json['ClientId'],
|
|
56
|
+
'currentLimit': json['CurrentLimit'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function ApiSportsbookCreditBetByBatchPost200ResponseToJSON(json) {
|
|
60
|
+
return ApiSportsbookCreditBetByBatchPost200ResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
function ApiSportsbookCreditBetByBatchPost200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
'ResponseCode': value['responseCode'],
|
|
68
|
+
'Description': value['description'],
|
|
69
|
+
'TimeStamp': value['timeStamp'],
|
|
70
|
+
'Signature': value['signature'],
|
|
71
|
+
'MainOrderNumber': (0, ApiSportsbookCreditBetPostRequestOrderNumber_1.ApiSportsbookCreditBetPostRequestOrderNumberToJSON)(value['mainOrderNumber']),
|
|
72
|
+
'ClientId': value['clientId'],
|
|
73
|
+
'CurrentLimit': value['currentLimit'],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
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 { ApiSportsbookCreditBetPostRequestOrderNumber } from './ApiSportsbookCreditBetPostRequestOrderNumber';
|
|
17
|
+
import {
|
|
18
|
+
ApiSportsbookCreditBetPostRequestOrderNumberFromJSON,
|
|
19
|
+
ApiSportsbookCreditBetPostRequestOrderNumberFromJSONTyped,
|
|
20
|
+
ApiSportsbookCreditBetPostRequestOrderNumberToJSON,
|
|
21
|
+
ApiSportsbookCreditBetPostRequestOrderNumberToJSONTyped,
|
|
22
|
+
} from './ApiSportsbookCreditBetPostRequestOrderNumber';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiSportsbookCreditBetByBatchPost200Response
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiSportsbookCreditBetByBatchPost200Response {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof ApiSportsbookCreditBetByBatchPost200Response
|
|
34
|
+
*/
|
|
35
|
+
responseCode: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ApiSportsbookCreditBetByBatchPost200Response
|
|
40
|
+
*/
|
|
41
|
+
description: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof ApiSportsbookCreditBetByBatchPost200Response
|
|
46
|
+
*/
|
|
47
|
+
timeStamp: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof ApiSportsbookCreditBetByBatchPost200Response
|
|
52
|
+
*/
|
|
53
|
+
signature: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {ApiSportsbookCreditBetPostRequestOrderNumber}
|
|
57
|
+
* @memberof ApiSportsbookCreditBetByBatchPost200Response
|
|
58
|
+
*/
|
|
59
|
+
mainOrderNumber: ApiSportsbookCreditBetPostRequestOrderNumber;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof ApiSportsbookCreditBetByBatchPost200Response
|
|
64
|
+
*/
|
|
65
|
+
clientId: string;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof ApiSportsbookCreditBetByBatchPost200Response
|
|
70
|
+
*/
|
|
71
|
+
currentLimit: number;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Check if a given object implements the ApiSportsbookCreditBetByBatchPost200Response interface.
|
|
76
|
+
*/
|
|
77
|
+
export function instanceOfApiSportsbookCreditBetByBatchPost200Response(value: object): value is ApiSportsbookCreditBetByBatchPost200Response {
|
|
78
|
+
if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
|
|
79
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
80
|
+
if (!('timeStamp' in value) || value['timeStamp'] === undefined) return false;
|
|
81
|
+
if (!('signature' in value) || value['signature'] === undefined) return false;
|
|
82
|
+
if (!('mainOrderNumber' in value) || value['mainOrderNumber'] === undefined) return false;
|
|
83
|
+
if (!('clientId' in value) || value['clientId'] === undefined) return false;
|
|
84
|
+
if (!('currentLimit' in value) || value['currentLimit'] === undefined) return false;
|
|
85
|
+
return true;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function ApiSportsbookCreditBetByBatchPost200ResponseFromJSON(json: any): ApiSportsbookCreditBetByBatchPost200Response {
|
|
89
|
+
return ApiSportsbookCreditBetByBatchPost200ResponseFromJSONTyped(json, false);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function ApiSportsbookCreditBetByBatchPost200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiSportsbookCreditBetByBatchPost200Response {
|
|
93
|
+
if (json == null) {
|
|
94
|
+
return json;
|
|
95
|
+
}
|
|
96
|
+
return {
|
|
97
|
+
|
|
98
|
+
'responseCode': json['ResponseCode'],
|
|
99
|
+
'description': json['Description'],
|
|
100
|
+
'timeStamp': json['TimeStamp'],
|
|
101
|
+
'signature': json['Signature'],
|
|
102
|
+
'mainOrderNumber': ApiSportsbookCreditBetPostRequestOrderNumberFromJSON(json['MainOrderNumber']),
|
|
103
|
+
'clientId': json['ClientId'],
|
|
104
|
+
'currentLimit': json['CurrentLimit'],
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function ApiSportsbookCreditBetByBatchPost200ResponseToJSON(json: any): ApiSportsbookCreditBetByBatchPost200Response {
|
|
109
|
+
return ApiSportsbookCreditBetByBatchPost200ResponseToJSONTyped(json, false);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export function ApiSportsbookCreditBetByBatchPost200ResponseToJSONTyped(value?: ApiSportsbookCreditBetByBatchPost200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
113
|
+
if (value == null) {
|
|
114
|
+
return value;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
return {
|
|
118
|
+
|
|
119
|
+
'ResponseCode': value['responseCode'],
|
|
120
|
+
'Description': value['description'],
|
|
121
|
+
'TimeStamp': value['timeStamp'],
|
|
122
|
+
'Signature': value['signature'],
|
|
123
|
+
'MainOrderNumber': ApiSportsbookCreditBetPostRequestOrderNumberToJSON(value['mainOrderNumber']),
|
|
124
|
+
'ClientId': value['clientId'],
|
|
125
|
+
'CurrentLimit': value['currentLimit'],
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
|
|
@@ -0,0 +1,146 @@
|
|
|
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.ApiSportsbookCreditBetByBatchPostRequestUserBonusTypeIdEnum = exports.ApiSportsbookCreditBetByBatchPostRequestViewTypeIDEnum = exports.ApiSportsbookCreditBetByBatchPostRequestDeviceTypeIdEnum = void 0;
|
|
17
|
+
exports.instanceOfApiSportsbookCreditBetByBatchPostRequest = instanceOfApiSportsbookCreditBetByBatchPostRequest;
|
|
18
|
+
exports.ApiSportsbookCreditBetByBatchPostRequestFromJSON = ApiSportsbookCreditBetByBatchPostRequestFromJSON;
|
|
19
|
+
exports.ApiSportsbookCreditBetByBatchPostRequestFromJSONTyped = ApiSportsbookCreditBetByBatchPostRequestFromJSONTyped;
|
|
20
|
+
exports.ApiSportsbookCreditBetByBatchPostRequestToJSON = ApiSportsbookCreditBetByBatchPostRequestToJSON;
|
|
21
|
+
exports.ApiSportsbookCreditBetByBatchPostRequestToJSONTyped = ApiSportsbookCreditBetByBatchPostRequestToJSONTyped;
|
|
22
|
+
const ApiSportsbookCreditBetByBatchPostRequestBetItemsInner_1 = require("./ApiSportsbookCreditBetByBatchPostRequestBetItemsInner");
|
|
23
|
+
const ApiSportsbookCreditBetPostRequestOrderNumber_1 = require("./ApiSportsbookCreditBetPostRequestOrderNumber");
|
|
24
|
+
const ApiSportsbookCreditBetByBatchPostRequestBonusData_1 = require("./ApiSportsbookCreditBetByBatchPostRequestBonusData");
|
|
25
|
+
/**
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
exports.ApiSportsbookCreditBetByBatchPostRequestDeviceTypeIdEnum = {
|
|
29
|
+
NUMBER_MINUS_1: -1,
|
|
30
|
+
NUMBER_1: 1,
|
|
31
|
+
NUMBER_2: 2,
|
|
32
|
+
NUMBER_3: 3,
|
|
33
|
+
NUMBER_4: 4,
|
|
34
|
+
NUMBER_5: 5,
|
|
35
|
+
NUMBER_6: 6,
|
|
36
|
+
NUMBER_7: 7,
|
|
37
|
+
NUMBER_8: 8,
|
|
38
|
+
NUMBER_9: 9,
|
|
39
|
+
NUMBER_10: 10,
|
|
40
|
+
NUMBER_11: 11
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* @export
|
|
44
|
+
*/
|
|
45
|
+
exports.ApiSportsbookCreditBetByBatchPostRequestViewTypeIDEnum = {
|
|
46
|
+
NUMBER_1: 1,
|
|
47
|
+
NUMBER_2: 2,
|
|
48
|
+
NUMBER_3: 3,
|
|
49
|
+
NUMBER_5: 5
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* @export
|
|
53
|
+
*/
|
|
54
|
+
exports.ApiSportsbookCreditBetByBatchPostRequestUserBonusTypeIdEnum = {
|
|
55
|
+
NUMBER_1: 1,
|
|
56
|
+
NUMBER_2: 2,
|
|
57
|
+
NUMBER_3: 3
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* Check if a given object implements the ApiSportsbookCreditBetByBatchPostRequest interface.
|
|
61
|
+
*/
|
|
62
|
+
function instanceOfApiSportsbookCreditBetByBatchPostRequest(value) {
|
|
63
|
+
if (!('partnerId' in value) || value['partnerId'] === undefined)
|
|
64
|
+
return false;
|
|
65
|
+
if (!('timeStamp' in value) || value['timeStamp'] === undefined)
|
|
66
|
+
return false;
|
|
67
|
+
if (!('clientId' in value) || value['clientId'] === undefined)
|
|
68
|
+
return false;
|
|
69
|
+
if (!('mainOrderNumber' in value) || value['mainOrderNumber'] === undefined)
|
|
70
|
+
return false;
|
|
71
|
+
if (!('token' in value) || value['token'] === undefined)
|
|
72
|
+
return false;
|
|
73
|
+
if (!('currencyId' in value) || value['currencyId'] === undefined)
|
|
74
|
+
return false;
|
|
75
|
+
if (!('info' in value) || value['info'] === undefined)
|
|
76
|
+
return false;
|
|
77
|
+
if (!('deviceTypeId' in value) || value['deviceTypeId'] === undefined)
|
|
78
|
+
return false;
|
|
79
|
+
if (!('signature' in value) || value['signature'] === undefined)
|
|
80
|
+
return false;
|
|
81
|
+
if (!('betItems' in value) || value['betItems'] === undefined)
|
|
82
|
+
return false;
|
|
83
|
+
if (!('isCreatedBySport' in value) || value['isCreatedBySport'] === undefined)
|
|
84
|
+
return false;
|
|
85
|
+
if (!('ipAddress' in value) || value['ipAddress'] === undefined)
|
|
86
|
+
return false;
|
|
87
|
+
if (!('trackingId' in value) || value['trackingId'] === undefined)
|
|
88
|
+
return false;
|
|
89
|
+
return true;
|
|
90
|
+
}
|
|
91
|
+
function ApiSportsbookCreditBetByBatchPostRequestFromJSON(json) {
|
|
92
|
+
return ApiSportsbookCreditBetByBatchPostRequestFromJSONTyped(json, false);
|
|
93
|
+
}
|
|
94
|
+
function ApiSportsbookCreditBetByBatchPostRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
95
|
+
if (json == null) {
|
|
96
|
+
return json;
|
|
97
|
+
}
|
|
98
|
+
return {
|
|
99
|
+
'partnerId': json['PartnerId'],
|
|
100
|
+
'timeStamp': json['TimeStamp'],
|
|
101
|
+
'clientId': json['ClientId'],
|
|
102
|
+
'mainOrderNumber': (0, ApiSportsbookCreditBetPostRequestOrderNumber_1.ApiSportsbookCreditBetPostRequestOrderNumberFromJSON)(json['MainOrderNumber']),
|
|
103
|
+
'token': json['Token'],
|
|
104
|
+
'currencyId': json['CurrencyId'],
|
|
105
|
+
'info': json['Info'],
|
|
106
|
+
'deviceTypeId': json['DeviceTypeId'],
|
|
107
|
+
'signature': json['Signature'],
|
|
108
|
+
'viewTypeID': json['ViewTypeID'] == null ? undefined : json['ViewTypeID'],
|
|
109
|
+
'betItems': (json['BetItems'].map(ApiSportsbookCreditBetByBatchPostRequestBetItemsInner_1.ApiSportsbookCreditBetByBatchPostRequestBetItemsInnerFromJSON)),
|
|
110
|
+
'isCreatedBySport': json['IsCreatedBySport'],
|
|
111
|
+
'bonusData': json['BonusData'] == null ? undefined : (0, ApiSportsbookCreditBetByBatchPostRequestBonusData_1.ApiSportsbookCreditBetByBatchPostRequestBonusDataFromJSON)(json['BonusData']),
|
|
112
|
+
'userBonusTypeId': json['UserBonusTypeId'] == null ? undefined : json['UserBonusTypeId'],
|
|
113
|
+
'terminalId': json['TerminalId'] == null ? undefined : json['TerminalId'],
|
|
114
|
+
'ipAddress': json['IpAddress'],
|
|
115
|
+
'trackingId': json['TrackingId'],
|
|
116
|
+
'pinCode': json['PinCode'] == null ? undefined : json['PinCode'],
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
function ApiSportsbookCreditBetByBatchPostRequestToJSON(json) {
|
|
120
|
+
return ApiSportsbookCreditBetByBatchPostRequestToJSONTyped(json, false);
|
|
121
|
+
}
|
|
122
|
+
function ApiSportsbookCreditBetByBatchPostRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
123
|
+
if (value == null) {
|
|
124
|
+
return value;
|
|
125
|
+
}
|
|
126
|
+
return {
|
|
127
|
+
'PartnerId': value['partnerId'],
|
|
128
|
+
'TimeStamp': value['timeStamp'],
|
|
129
|
+
'ClientId': value['clientId'],
|
|
130
|
+
'MainOrderNumber': (0, ApiSportsbookCreditBetPostRequestOrderNumber_1.ApiSportsbookCreditBetPostRequestOrderNumberToJSON)(value['mainOrderNumber']),
|
|
131
|
+
'Token': value['token'],
|
|
132
|
+
'CurrencyId': value['currencyId'],
|
|
133
|
+
'Info': value['info'],
|
|
134
|
+
'DeviceTypeId': value['deviceTypeId'],
|
|
135
|
+
'Signature': value['signature'],
|
|
136
|
+
'ViewTypeID': value['viewTypeID'],
|
|
137
|
+
'BetItems': (value['betItems'].map(ApiSportsbookCreditBetByBatchPostRequestBetItemsInner_1.ApiSportsbookCreditBetByBatchPostRequestBetItemsInnerToJSON)),
|
|
138
|
+
'IsCreatedBySport': value['isCreatedBySport'],
|
|
139
|
+
'BonusData': (0, ApiSportsbookCreditBetByBatchPostRequestBonusData_1.ApiSportsbookCreditBetByBatchPostRequestBonusDataToJSON)(value['bonusData']),
|
|
140
|
+
'UserBonusTypeId': value['userBonusTypeId'],
|
|
141
|
+
'TerminalId': value['terminalId'],
|
|
142
|
+
'IpAddress': value['ipAddress'],
|
|
143
|
+
'TrackingId': value['trackingId'],
|
|
144
|
+
'PinCode': value['pinCode'],
|
|
145
|
+
};
|
|
146
|
+
}
|