@gambulls-org/gambulls-apis 3.0.186 → 3.0.188
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 +8 -0
- package/apis/SportsbookApi.js +74 -0
- package/apis/SportsbookApi.ts +102 -0
- package/models/ApiSportsbookChequeRedactPost200Response.js +67 -0
- package/models/ApiSportsbookChequeRedactPost200Response.ts +110 -0
- package/models/ApiSportsbookChequeRedactPostRequest.js +80 -0
- package/models/ApiSportsbookChequeRedactPostRequest.ts +144 -0
- package/models/ApiSportsbookDebitByBatchPost200Response.js +67 -0
- package/models/ApiSportsbookDebitByBatchPost200Response.ts +110 -0
- package/models/ApiSportsbookDebitByBatchPost200ResponseItemsInner.js +67 -0
- package/models/ApiSportsbookDebitByBatchPost200ResponseItemsInner.ts +110 -0
- package/models/ApiSportsbookDebitByBatchPostRequest.js +63 -0
- package/models/ApiSportsbookDebitByBatchPostRequest.ts +101 -0
- package/models/ApiSportsbookDebitByBatchPostRequestItemsInner.js +90 -0
- package/models/ApiSportsbookDebitByBatchPostRequestItemsInner.ts +191 -0
- package/models/ApiSportsbookDebitByBatchPostRequestItemsInnerStakeStatusesInner.js +61 -0
- package/models/ApiSportsbookDebitByBatchPostRequestItemsInnerStakeStatusesInner.ts +107 -0
- package/models/ApiSportsbookDebitByBatchPostRequestItemsInnerStakeStatusesInnerBetBuilderStakesInner.js +58 -0
- package/models/ApiSportsbookDebitByBatchPostRequestItemsInnerStakeStatusesInnerBetBuilderStakesInner.ts +84 -0
- package/models/index.js +8 -0
- package/models/index.ts +8 -0
- package/package.json +1 -1
|
@@ -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.instanceOfApiSportsbookDebitByBatchPost200Response = instanceOfApiSportsbookDebitByBatchPost200Response;
|
|
17
|
+
exports.ApiSportsbookDebitByBatchPost200ResponseFromJSON = ApiSportsbookDebitByBatchPost200ResponseFromJSON;
|
|
18
|
+
exports.ApiSportsbookDebitByBatchPost200ResponseFromJSONTyped = ApiSportsbookDebitByBatchPost200ResponseFromJSONTyped;
|
|
19
|
+
exports.ApiSportsbookDebitByBatchPost200ResponseToJSON = ApiSportsbookDebitByBatchPost200ResponseToJSON;
|
|
20
|
+
exports.ApiSportsbookDebitByBatchPost200ResponseToJSONTyped = ApiSportsbookDebitByBatchPost200ResponseToJSONTyped;
|
|
21
|
+
const ApiSportsbookDebitByBatchPost200ResponseItemsInner_1 = require("./ApiSportsbookDebitByBatchPost200ResponseItemsInner");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ApiSportsbookDebitByBatchPost200Response interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfApiSportsbookDebitByBatchPost200Response(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 (!('items' in value) || value['items'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('signature' in value) || value['signature'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function ApiSportsbookDebitByBatchPost200ResponseFromJSON(json) {
|
|
39
|
+
return ApiSportsbookDebitByBatchPost200ResponseFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function ApiSportsbookDebitByBatchPost200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'responseCode': json['ResponseCode'],
|
|
47
|
+
'description': json['Description'],
|
|
48
|
+
'timeStamp': json['TimeStamp'],
|
|
49
|
+
'items': (json['Items'].map(ApiSportsbookDebitByBatchPost200ResponseItemsInner_1.ApiSportsbookDebitByBatchPost200ResponseItemsInnerFromJSON)),
|
|
50
|
+
'signature': json['Signature'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function ApiSportsbookDebitByBatchPost200ResponseToJSON(json) {
|
|
54
|
+
return ApiSportsbookDebitByBatchPost200ResponseToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function ApiSportsbookDebitByBatchPost200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'ResponseCode': value['responseCode'],
|
|
62
|
+
'Description': value['description'],
|
|
63
|
+
'TimeStamp': value['timeStamp'],
|
|
64
|
+
'Items': (value['items'].map(ApiSportsbookDebitByBatchPost200ResponseItemsInner_1.ApiSportsbookDebitByBatchPost200ResponseItemsInnerToJSON)),
|
|
65
|
+
'Signature': value['signature'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
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 { ApiSportsbookDebitByBatchPost200ResponseItemsInner } from './ApiSportsbookDebitByBatchPost200ResponseItemsInner';
|
|
17
|
+
import {
|
|
18
|
+
ApiSportsbookDebitByBatchPost200ResponseItemsInnerFromJSON,
|
|
19
|
+
ApiSportsbookDebitByBatchPost200ResponseItemsInnerFromJSONTyped,
|
|
20
|
+
ApiSportsbookDebitByBatchPost200ResponseItemsInnerToJSON,
|
|
21
|
+
ApiSportsbookDebitByBatchPost200ResponseItemsInnerToJSONTyped,
|
|
22
|
+
} from './ApiSportsbookDebitByBatchPost200ResponseItemsInner';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiSportsbookDebitByBatchPost200Response
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiSportsbookDebitByBatchPost200Response {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof ApiSportsbookDebitByBatchPost200Response
|
|
34
|
+
*/
|
|
35
|
+
responseCode: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ApiSportsbookDebitByBatchPost200Response
|
|
40
|
+
*/
|
|
41
|
+
description: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof ApiSportsbookDebitByBatchPost200Response
|
|
46
|
+
*/
|
|
47
|
+
timeStamp: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Array<ApiSportsbookDebitByBatchPost200ResponseItemsInner>}
|
|
51
|
+
* @memberof ApiSportsbookDebitByBatchPost200Response
|
|
52
|
+
*/
|
|
53
|
+
items: Array<ApiSportsbookDebitByBatchPost200ResponseItemsInner>;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof ApiSportsbookDebitByBatchPost200Response
|
|
58
|
+
*/
|
|
59
|
+
signature: string;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the ApiSportsbookDebitByBatchPost200Response interface.
|
|
64
|
+
*/
|
|
65
|
+
export function instanceOfApiSportsbookDebitByBatchPost200Response(value: object): value is ApiSportsbookDebitByBatchPost200Response {
|
|
66
|
+
if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
|
|
67
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
68
|
+
if (!('timeStamp' in value) || value['timeStamp'] === undefined) return false;
|
|
69
|
+
if (!('items' in value) || value['items'] === undefined) return false;
|
|
70
|
+
if (!('signature' in value) || value['signature'] === undefined) return false;
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function ApiSportsbookDebitByBatchPost200ResponseFromJSON(json: any): ApiSportsbookDebitByBatchPost200Response {
|
|
75
|
+
return ApiSportsbookDebitByBatchPost200ResponseFromJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function ApiSportsbookDebitByBatchPost200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiSportsbookDebitByBatchPost200Response {
|
|
79
|
+
if (json == null) {
|
|
80
|
+
return json;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'responseCode': json['ResponseCode'],
|
|
85
|
+
'description': json['Description'],
|
|
86
|
+
'timeStamp': json['TimeStamp'],
|
|
87
|
+
'items': ((json['Items'] as Array<any>).map(ApiSportsbookDebitByBatchPost200ResponseItemsInnerFromJSON)),
|
|
88
|
+
'signature': json['Signature'],
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function ApiSportsbookDebitByBatchPost200ResponseToJSON(json: any): ApiSportsbookDebitByBatchPost200Response {
|
|
93
|
+
return ApiSportsbookDebitByBatchPost200ResponseToJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function ApiSportsbookDebitByBatchPost200ResponseToJSONTyped(value?: ApiSportsbookDebitByBatchPost200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
97
|
+
if (value == null) {
|
|
98
|
+
return value;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return {
|
|
102
|
+
|
|
103
|
+
'ResponseCode': value['responseCode'],
|
|
104
|
+
'Description': value['description'],
|
|
105
|
+
'TimeStamp': value['timeStamp'],
|
|
106
|
+
'Items': ((value['items'] as Array<any>).map(ApiSportsbookDebitByBatchPost200ResponseItemsInnerToJSON)),
|
|
107
|
+
'Signature': value['signature'],
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
@@ -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.instanceOfApiSportsbookDebitByBatchPost200ResponseItemsInner = instanceOfApiSportsbookDebitByBatchPost200ResponseItemsInner;
|
|
17
|
+
exports.ApiSportsbookDebitByBatchPost200ResponseItemsInnerFromJSON = ApiSportsbookDebitByBatchPost200ResponseItemsInnerFromJSON;
|
|
18
|
+
exports.ApiSportsbookDebitByBatchPost200ResponseItemsInnerFromJSONTyped = ApiSportsbookDebitByBatchPost200ResponseItemsInnerFromJSONTyped;
|
|
19
|
+
exports.ApiSportsbookDebitByBatchPost200ResponseItemsInnerToJSON = ApiSportsbookDebitByBatchPost200ResponseItemsInnerToJSON;
|
|
20
|
+
exports.ApiSportsbookDebitByBatchPost200ResponseItemsInnerToJSONTyped = ApiSportsbookDebitByBatchPost200ResponseItemsInnerToJSONTyped;
|
|
21
|
+
const ApiSportsbookCreditBetPostRequestOrderNumber_1 = require("./ApiSportsbookCreditBetPostRequestOrderNumber");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ApiSportsbookDebitByBatchPost200ResponseItemsInner interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfApiSportsbookDebitByBatchPost200ResponseItemsInner(value) {
|
|
26
|
+
if (!('orderNumber' in value) || value['orderNumber'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('transactionId' in value) || value['transactionId'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('clientId' in value) || value['clientId'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('responseCode' in value) || value['responseCode'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function ApiSportsbookDebitByBatchPost200ResponseItemsInnerFromJSON(json) {
|
|
39
|
+
return ApiSportsbookDebitByBatchPost200ResponseItemsInnerFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function ApiSportsbookDebitByBatchPost200ResponseItemsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'orderNumber': (0, ApiSportsbookCreditBetPostRequestOrderNumber_1.ApiSportsbookCreditBetPostRequestOrderNumberFromJSON)(json['OrderNumber']),
|
|
47
|
+
'transactionId': (0, ApiSportsbookCreditBetPostRequestOrderNumber_1.ApiSportsbookCreditBetPostRequestOrderNumberFromJSON)(json['TransactionId']),
|
|
48
|
+
'clientId': json['ClientId'],
|
|
49
|
+
'description': json['Description'],
|
|
50
|
+
'responseCode': json['ResponseCode'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function ApiSportsbookDebitByBatchPost200ResponseItemsInnerToJSON(json) {
|
|
54
|
+
return ApiSportsbookDebitByBatchPost200ResponseItemsInnerToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function ApiSportsbookDebitByBatchPost200ResponseItemsInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'OrderNumber': (0, ApiSportsbookCreditBetPostRequestOrderNumber_1.ApiSportsbookCreditBetPostRequestOrderNumberToJSON)(value['orderNumber']),
|
|
62
|
+
'TransactionId': (0, ApiSportsbookCreditBetPostRequestOrderNumber_1.ApiSportsbookCreditBetPostRequestOrderNumberToJSON)(value['transactionId']),
|
|
63
|
+
'ClientId': value['clientId'],
|
|
64
|
+
'Description': value['description'],
|
|
65
|
+
'ResponseCode': value['responseCode'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
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 ApiSportsbookDebitByBatchPost200ResponseItemsInner
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiSportsbookDebitByBatchPost200ResponseItemsInner {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {ApiSportsbookCreditBetPostRequestOrderNumber}
|
|
33
|
+
* @memberof ApiSportsbookDebitByBatchPost200ResponseItemsInner
|
|
34
|
+
*/
|
|
35
|
+
orderNumber: ApiSportsbookCreditBetPostRequestOrderNumber;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {ApiSportsbookCreditBetPostRequestOrderNumber}
|
|
39
|
+
* @memberof ApiSportsbookDebitByBatchPost200ResponseItemsInner
|
|
40
|
+
*/
|
|
41
|
+
transactionId: ApiSportsbookCreditBetPostRequestOrderNumber;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ApiSportsbookDebitByBatchPost200ResponseItemsInner
|
|
46
|
+
*/
|
|
47
|
+
clientId: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof ApiSportsbookDebitByBatchPost200ResponseItemsInner
|
|
52
|
+
*/
|
|
53
|
+
description: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof ApiSportsbookDebitByBatchPost200ResponseItemsInner
|
|
58
|
+
*/
|
|
59
|
+
responseCode: number;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the ApiSportsbookDebitByBatchPost200ResponseItemsInner interface.
|
|
64
|
+
*/
|
|
65
|
+
export function instanceOfApiSportsbookDebitByBatchPost200ResponseItemsInner(value: object): value is ApiSportsbookDebitByBatchPost200ResponseItemsInner {
|
|
66
|
+
if (!('orderNumber' in value) || value['orderNumber'] === undefined) return false;
|
|
67
|
+
if (!('transactionId' in value) || value['transactionId'] === undefined) return false;
|
|
68
|
+
if (!('clientId' in value) || value['clientId'] === undefined) return false;
|
|
69
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
70
|
+
if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function ApiSportsbookDebitByBatchPost200ResponseItemsInnerFromJSON(json: any): ApiSportsbookDebitByBatchPost200ResponseItemsInner {
|
|
75
|
+
return ApiSportsbookDebitByBatchPost200ResponseItemsInnerFromJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function ApiSportsbookDebitByBatchPost200ResponseItemsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiSportsbookDebitByBatchPost200ResponseItemsInner {
|
|
79
|
+
if (json == null) {
|
|
80
|
+
return json;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'orderNumber': ApiSportsbookCreditBetPostRequestOrderNumberFromJSON(json['OrderNumber']),
|
|
85
|
+
'transactionId': ApiSportsbookCreditBetPostRequestOrderNumberFromJSON(json['TransactionId']),
|
|
86
|
+
'clientId': json['ClientId'],
|
|
87
|
+
'description': json['Description'],
|
|
88
|
+
'responseCode': json['ResponseCode'],
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function ApiSportsbookDebitByBatchPost200ResponseItemsInnerToJSON(json: any): ApiSportsbookDebitByBatchPost200ResponseItemsInner {
|
|
93
|
+
return ApiSportsbookDebitByBatchPost200ResponseItemsInnerToJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function ApiSportsbookDebitByBatchPost200ResponseItemsInnerToJSONTyped(value?: ApiSportsbookDebitByBatchPost200ResponseItemsInner | null, ignoreDiscriminator: boolean = false): any {
|
|
97
|
+
if (value == null) {
|
|
98
|
+
return value;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return {
|
|
102
|
+
|
|
103
|
+
'OrderNumber': ApiSportsbookCreditBetPostRequestOrderNumberToJSON(value['orderNumber']),
|
|
104
|
+
'TransactionId': ApiSportsbookCreditBetPostRequestOrderNumberToJSON(value['transactionId']),
|
|
105
|
+
'ClientId': value['clientId'],
|
|
106
|
+
'Description': value['description'],
|
|
107
|
+
'ResponseCode': value['responseCode'],
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
@@ -0,0 +1,63 @@
|
|
|
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.instanceOfApiSportsbookDebitByBatchPostRequest = instanceOfApiSportsbookDebitByBatchPostRequest;
|
|
17
|
+
exports.ApiSportsbookDebitByBatchPostRequestFromJSON = ApiSportsbookDebitByBatchPostRequestFromJSON;
|
|
18
|
+
exports.ApiSportsbookDebitByBatchPostRequestFromJSONTyped = ApiSportsbookDebitByBatchPostRequestFromJSONTyped;
|
|
19
|
+
exports.ApiSportsbookDebitByBatchPostRequestToJSON = ApiSportsbookDebitByBatchPostRequestToJSON;
|
|
20
|
+
exports.ApiSportsbookDebitByBatchPostRequestToJSONTyped = ApiSportsbookDebitByBatchPostRequestToJSONTyped;
|
|
21
|
+
const ApiSportsbookDebitByBatchPostRequestItemsInner_1 = require("./ApiSportsbookDebitByBatchPostRequestItemsInner");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ApiSportsbookDebitByBatchPostRequest interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfApiSportsbookDebitByBatchPostRequest(value) {
|
|
26
|
+
if (!('partnerId' in value) || value['partnerId'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('timeStamp' in value) || value['timeStamp'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('signature' in value) || value['signature'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function ApiSportsbookDebitByBatchPostRequestFromJSON(json) {
|
|
37
|
+
return ApiSportsbookDebitByBatchPostRequestFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function ApiSportsbookDebitByBatchPostRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'partnerId': json['PartnerId'],
|
|
45
|
+
'timeStamp': json['TimeStamp'],
|
|
46
|
+
'items': (json['Items'].map(ApiSportsbookDebitByBatchPostRequestItemsInner_1.ApiSportsbookDebitByBatchPostRequestItemsInnerFromJSON)),
|
|
47
|
+
'signature': json['Signature'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function ApiSportsbookDebitByBatchPostRequestToJSON(json) {
|
|
51
|
+
return ApiSportsbookDebitByBatchPostRequestToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function ApiSportsbookDebitByBatchPostRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'PartnerId': value['partnerId'],
|
|
59
|
+
'TimeStamp': value['timeStamp'],
|
|
60
|
+
'Items': (value['items'].map(ApiSportsbookDebitByBatchPostRequestItemsInner_1.ApiSportsbookDebitByBatchPostRequestItemsInnerToJSON)),
|
|
61
|
+
'Signature': value['signature'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
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 { ApiSportsbookDebitByBatchPostRequestItemsInner } from './ApiSportsbookDebitByBatchPostRequestItemsInner';
|
|
17
|
+
import {
|
|
18
|
+
ApiSportsbookDebitByBatchPostRequestItemsInnerFromJSON,
|
|
19
|
+
ApiSportsbookDebitByBatchPostRequestItemsInnerFromJSONTyped,
|
|
20
|
+
ApiSportsbookDebitByBatchPostRequestItemsInnerToJSON,
|
|
21
|
+
ApiSportsbookDebitByBatchPostRequestItemsInnerToJSONTyped,
|
|
22
|
+
} from './ApiSportsbookDebitByBatchPostRequestItemsInner';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiSportsbookDebitByBatchPostRequest
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiSportsbookDebitByBatchPostRequest {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof ApiSportsbookDebitByBatchPostRequest
|
|
34
|
+
*/
|
|
35
|
+
partnerId: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ApiSportsbookDebitByBatchPostRequest
|
|
40
|
+
*/
|
|
41
|
+
timeStamp: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Array<ApiSportsbookDebitByBatchPostRequestItemsInner>}
|
|
45
|
+
* @memberof ApiSportsbookDebitByBatchPostRequest
|
|
46
|
+
*/
|
|
47
|
+
items: Array<ApiSportsbookDebitByBatchPostRequestItemsInner>;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof ApiSportsbookDebitByBatchPostRequest
|
|
52
|
+
*/
|
|
53
|
+
signature: string;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the ApiSportsbookDebitByBatchPostRequest interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfApiSportsbookDebitByBatchPostRequest(value: object): value is ApiSportsbookDebitByBatchPostRequest {
|
|
60
|
+
if (!('partnerId' in value) || value['partnerId'] === undefined) return false;
|
|
61
|
+
if (!('timeStamp' in value) || value['timeStamp'] === undefined) return false;
|
|
62
|
+
if (!('items' in value) || value['items'] === undefined) return false;
|
|
63
|
+
if (!('signature' in value) || value['signature'] === undefined) return false;
|
|
64
|
+
return true;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function ApiSportsbookDebitByBatchPostRequestFromJSON(json: any): ApiSportsbookDebitByBatchPostRequest {
|
|
68
|
+
return ApiSportsbookDebitByBatchPostRequestFromJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function ApiSportsbookDebitByBatchPostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiSportsbookDebitByBatchPostRequest {
|
|
72
|
+
if (json == null) {
|
|
73
|
+
return json;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'partnerId': json['PartnerId'],
|
|
78
|
+
'timeStamp': json['TimeStamp'],
|
|
79
|
+
'items': ((json['Items'] as Array<any>).map(ApiSportsbookDebitByBatchPostRequestItemsInnerFromJSON)),
|
|
80
|
+
'signature': json['Signature'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function ApiSportsbookDebitByBatchPostRequestToJSON(json: any): ApiSportsbookDebitByBatchPostRequest {
|
|
85
|
+
return ApiSportsbookDebitByBatchPostRequestToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function ApiSportsbookDebitByBatchPostRequestToJSONTyped(value?: ApiSportsbookDebitByBatchPostRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'PartnerId': value['partnerId'],
|
|
96
|
+
'TimeStamp': value['timeStamp'],
|
|
97
|
+
'Items': ((value['items'] as Array<any>).map(ApiSportsbookDebitByBatchPostRequestItemsInnerToJSON)),
|
|
98
|
+
'Signature': value['signature'],
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
@@ -0,0 +1,90 @@
|
|
|
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.instanceOfApiSportsbookDebitByBatchPostRequestItemsInner = instanceOfApiSportsbookDebitByBatchPostRequestItemsInner;
|
|
17
|
+
exports.ApiSportsbookDebitByBatchPostRequestItemsInnerFromJSON = ApiSportsbookDebitByBatchPostRequestItemsInnerFromJSON;
|
|
18
|
+
exports.ApiSportsbookDebitByBatchPostRequestItemsInnerFromJSONTyped = ApiSportsbookDebitByBatchPostRequestItemsInnerFromJSONTyped;
|
|
19
|
+
exports.ApiSportsbookDebitByBatchPostRequestItemsInnerToJSON = ApiSportsbookDebitByBatchPostRequestItemsInnerToJSON;
|
|
20
|
+
exports.ApiSportsbookDebitByBatchPostRequestItemsInnerToJSONTyped = ApiSportsbookDebitByBatchPostRequestItemsInnerToJSONTyped;
|
|
21
|
+
const ApiSportsbookDebitByBatchPostRequestItemsInnerStakeStatusesInner_1 = require("./ApiSportsbookDebitByBatchPostRequestItemsInnerStakeStatusesInner");
|
|
22
|
+
const ApiSportsbookCreditBetPostRequestOrderNumber_1 = require("./ApiSportsbookCreditBetPostRequestOrderNumber");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the ApiSportsbookDebitByBatchPostRequestItemsInner interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfApiSportsbookDebitByBatchPostRequestItemsInner(value) {
|
|
27
|
+
if (!('currencyId' in value) || value['currencyId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('orderNumber' in value) || value['orderNumber'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('transactionId' in value) || value['transactionId'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('betState' in value) || value['betState'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('clientId' in value) || value['clientId'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('amount' in value) || value['amount'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('transactionTypeId' in value) || value['transactionTypeId'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function ApiSportsbookDebitByBatchPostRequestItemsInnerFromJSON(json) {
|
|
44
|
+
return ApiSportsbookDebitByBatchPostRequestItemsInnerFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function ApiSportsbookDebitByBatchPostRequestItemsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'currencyId': json['CurrencyId'],
|
|
52
|
+
'orderNumber': (0, ApiSportsbookCreditBetPostRequestOrderNumber_1.ApiSportsbookCreditBetPostRequestOrderNumberFromJSON)(json['OrderNumber']),
|
|
53
|
+
'transactionId': (0, ApiSportsbookCreditBetPostRequestOrderNumber_1.ApiSportsbookCreditBetPostRequestOrderNumberFromJSON)(json['TransactionId']),
|
|
54
|
+
'betState': json['BetState'],
|
|
55
|
+
'clientId': json['ClientId'],
|
|
56
|
+
'amount': json['Amount'],
|
|
57
|
+
'betTaxAmount': json['BetTaxAmount'] == null ? undefined : json['BetTaxAmount'],
|
|
58
|
+
'transactionTypeId': json['TransactionTypeId'],
|
|
59
|
+
'cashoutUsedAmount': json['CashoutUsedAmount'] == null ? undefined : json['CashoutUsedAmount'],
|
|
60
|
+
'stakeStatuses': json['StakeStatuses'] == null ? undefined : (json['StakeStatuses'].map(ApiSportsbookDebitByBatchPostRequestItemsInnerStakeStatusesInner_1.ApiSportsbookDebitByBatchPostRequestItemsInnerStakeStatusesInnerFromJSON)),
|
|
61
|
+
'calcDate': json['CalcDate'] == null ? undefined : json['CalcDate'],
|
|
62
|
+
'additionalInfo': json['AdditionalInfo'] == null ? undefined : json['AdditionalInfo'],
|
|
63
|
+
'wageringRemain': json['WageringRemain'] == null ? undefined : json['WageringRemain'],
|
|
64
|
+
'cashoutRemainingAmount': json['CashoutRemainingAmount'] == null ? undefined : json['CashoutRemainingAmount'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
function ApiSportsbookDebitByBatchPostRequestItemsInnerToJSON(json) {
|
|
68
|
+
return ApiSportsbookDebitByBatchPostRequestItemsInnerToJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
function ApiSportsbookDebitByBatchPostRequestItemsInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
71
|
+
if (value == null) {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
'CurrencyId': value['currencyId'],
|
|
76
|
+
'OrderNumber': (0, ApiSportsbookCreditBetPostRequestOrderNumber_1.ApiSportsbookCreditBetPostRequestOrderNumberToJSON)(value['orderNumber']),
|
|
77
|
+
'TransactionId': (0, ApiSportsbookCreditBetPostRequestOrderNumber_1.ApiSportsbookCreditBetPostRequestOrderNumberToJSON)(value['transactionId']),
|
|
78
|
+
'BetState': value['betState'],
|
|
79
|
+
'ClientId': value['clientId'],
|
|
80
|
+
'Amount': value['amount'],
|
|
81
|
+
'BetTaxAmount': value['betTaxAmount'],
|
|
82
|
+
'TransactionTypeId': value['transactionTypeId'],
|
|
83
|
+
'CashoutUsedAmount': value['cashoutUsedAmount'],
|
|
84
|
+
'StakeStatuses': value['stakeStatuses'] == null ? undefined : (value['stakeStatuses'].map(ApiSportsbookDebitByBatchPostRequestItemsInnerStakeStatusesInner_1.ApiSportsbookDebitByBatchPostRequestItemsInnerStakeStatusesInnerToJSON)),
|
|
85
|
+
'CalcDate': value['calcDate'],
|
|
86
|
+
'AdditionalInfo': value['additionalInfo'],
|
|
87
|
+
'WageringRemain': value['wageringRemain'],
|
|
88
|
+
'CashoutRemainingAmount': value['cashoutRemainingAmount'],
|
|
89
|
+
};
|
|
90
|
+
}
|