@gambulls-org/gambulls-apis 3.0.185 → 3.0.186

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.
@@ -424,6 +424,10 @@ models/ApiSportsbookGetBalancePost200Response.ts
424
424
  models/ApiSportsbookGetBalancePostRequest.ts
425
425
  models/ApiSportsbookGetUserInfoPost200Response.ts
426
426
  models/ApiSportsbookGetUserInfoPostRequest.ts
427
+ models/ApiSportsbookRollBackByBatchPost200Response.ts
428
+ models/ApiSportsbookRollBackByBatchPost200ResponseItemsInner.ts
429
+ models/ApiSportsbookRollBackByBatchPostRequest.ts
430
+ models/ApiSportsbookRollBackByBatchPostRequestItemsInner.ts
427
431
  models/ApiTatumHotWalletOutgoingNativePostRequest.ts
428
432
  models/ApiTatumHotWalletOutgoingTokenPostRequest.ts
429
433
  models/ApiTatumIncomingNativePostRequest.ts
@@ -210,5 +210,42 @@ class SportsbookApi extends runtime.BaseAPI {
210
210
  return yield response.value();
211
211
  });
212
212
  }
213
+ /**
214
+ * Sportsbook RollBackByBatch
215
+ */
216
+ apiSportsbookRollBackByBatchPostRaw(requestParameters, initOverrides) {
217
+ return __awaiter(this, void 0, void 0, function* () {
218
+ const queryParameters = {};
219
+ const headerParameters = {};
220
+ headerParameters['Content-Type'] = 'application/json';
221
+ if (this.configuration && this.configuration.apiKey) {
222
+ headerParameters["api-key"] = yield this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
223
+ }
224
+ if (this.configuration && this.configuration.accessToken) {
225
+ const token = this.configuration.accessToken;
226
+ const tokenString = yield token("BearerAuth", []);
227
+ if (tokenString) {
228
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
229
+ }
230
+ }
231
+ const response = yield this.request({
232
+ path: `/api/sportsbook/RollBackByBatch`,
233
+ method: 'POST',
234
+ headers: headerParameters,
235
+ query: queryParameters,
236
+ body: (0, index_1.ApiSportsbookRollBackByBatchPostRequestToJSON)(requestParameters['apiSportsbookRollBackByBatchPostRequest']),
237
+ }, initOverrides);
238
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiSportsbookRollBackByBatchPost200ResponseFromJSON)(jsonValue));
239
+ });
240
+ }
241
+ /**
242
+ * Sportsbook RollBackByBatch
243
+ */
244
+ apiSportsbookRollBackByBatchPost() {
245
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
246
+ const response = yield this.apiSportsbookRollBackByBatchPostRaw(requestParameters, initOverrides);
247
+ return yield response.value();
248
+ });
249
+ }
213
250
  }
214
251
  exports.SportsbookApi = SportsbookApi;
@@ -23,6 +23,8 @@ import type {
23
23
  ApiSportsbookGetBalancePostRequest,
24
24
  ApiSportsbookGetUserInfoPost200Response,
25
25
  ApiSportsbookGetUserInfoPostRequest,
26
+ ApiSportsbookRollBackByBatchPost200Response,
27
+ ApiSportsbookRollBackByBatchPostRequest,
26
28
  } from '../models/index';
27
29
  import {
28
30
  ApiSportsbookCreditBetByBatchPost200ResponseFromJSON,
@@ -41,6 +43,10 @@ import {
41
43
  ApiSportsbookGetUserInfoPost200ResponseToJSON,
42
44
  ApiSportsbookGetUserInfoPostRequestFromJSON,
43
45
  ApiSportsbookGetUserInfoPostRequestToJSON,
46
+ ApiSportsbookRollBackByBatchPost200ResponseFromJSON,
47
+ ApiSportsbookRollBackByBatchPost200ResponseToJSON,
48
+ ApiSportsbookRollBackByBatchPostRequestFromJSON,
49
+ ApiSportsbookRollBackByBatchPostRequestToJSON,
44
50
  } from '../models/index';
45
51
 
46
52
  export interface ApiSportsbookCreditBetByBatchPostOperationRequest {
@@ -59,6 +65,10 @@ export interface ApiSportsbookGetUserInfoPostOperationRequest {
59
65
  apiSportsbookGetUserInfoPostRequest?: ApiSportsbookGetUserInfoPostRequest;
60
66
  }
61
67
 
68
+ export interface ApiSportsbookRollBackByBatchPostOperationRequest {
69
+ apiSportsbookRollBackByBatchPostRequest?: ApiSportsbookRollBackByBatchPostRequest;
70
+ }
71
+
62
72
  /**
63
73
  *
64
74
  */
@@ -228,4 +238,45 @@ export class SportsbookApi extends runtime.BaseAPI {
228
238
  return await response.value();
229
239
  }
230
240
 
241
+ /**
242
+ * Sportsbook RollBackByBatch
243
+ */
244
+ async apiSportsbookRollBackByBatchPostRaw(requestParameters: ApiSportsbookRollBackByBatchPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiSportsbookRollBackByBatchPost200Response>> {
245
+ const queryParameters: any = {};
246
+
247
+ const headerParameters: runtime.HTTPHeaders = {};
248
+
249
+ headerParameters['Content-Type'] = 'application/json';
250
+
251
+ if (this.configuration && this.configuration.apiKey) {
252
+ headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
253
+ }
254
+
255
+ if (this.configuration && this.configuration.accessToken) {
256
+ const token = this.configuration.accessToken;
257
+ const tokenString = await token("BearerAuth", []);
258
+
259
+ if (tokenString) {
260
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
261
+ }
262
+ }
263
+ const response = await this.request({
264
+ path: `/api/sportsbook/RollBackByBatch`,
265
+ method: 'POST',
266
+ headers: headerParameters,
267
+ query: queryParameters,
268
+ body: ApiSportsbookRollBackByBatchPostRequestToJSON(requestParameters['apiSportsbookRollBackByBatchPostRequest']),
269
+ }, initOverrides);
270
+
271
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiSportsbookRollBackByBatchPost200ResponseFromJSON(jsonValue));
272
+ }
273
+
274
+ /**
275
+ * Sportsbook RollBackByBatch
276
+ */
277
+ async apiSportsbookRollBackByBatchPost(requestParameters: ApiSportsbookRollBackByBatchPostOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiSportsbookRollBackByBatchPost200Response> {
278
+ const response = await this.apiSportsbookRollBackByBatchPostRaw(requestParameters, initOverrides);
279
+ return await response.value();
280
+ }
281
+
231
282
  }
@@ -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.instanceOfApiSportsbookRollBackByBatchPost200Response = instanceOfApiSportsbookRollBackByBatchPost200Response;
17
+ exports.ApiSportsbookRollBackByBatchPost200ResponseFromJSON = ApiSportsbookRollBackByBatchPost200ResponseFromJSON;
18
+ exports.ApiSportsbookRollBackByBatchPost200ResponseFromJSONTyped = ApiSportsbookRollBackByBatchPost200ResponseFromJSONTyped;
19
+ exports.ApiSportsbookRollBackByBatchPost200ResponseToJSON = ApiSportsbookRollBackByBatchPost200ResponseToJSON;
20
+ exports.ApiSportsbookRollBackByBatchPost200ResponseToJSONTyped = ApiSportsbookRollBackByBatchPost200ResponseToJSONTyped;
21
+ const ApiSportsbookRollBackByBatchPost200ResponseItemsInner_1 = require("./ApiSportsbookRollBackByBatchPost200ResponseItemsInner");
22
+ /**
23
+ * Check if a given object implements the ApiSportsbookRollBackByBatchPost200Response interface.
24
+ */
25
+ function instanceOfApiSportsbookRollBackByBatchPost200Response(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 ApiSportsbookRollBackByBatchPost200ResponseFromJSON(json) {
39
+ return ApiSportsbookRollBackByBatchPost200ResponseFromJSONTyped(json, false);
40
+ }
41
+ function ApiSportsbookRollBackByBatchPost200ResponseFromJSONTyped(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(ApiSportsbookRollBackByBatchPost200ResponseItemsInner_1.ApiSportsbookRollBackByBatchPost200ResponseItemsInnerFromJSON)),
50
+ 'signature': json['Signature'],
51
+ };
52
+ }
53
+ function ApiSportsbookRollBackByBatchPost200ResponseToJSON(json) {
54
+ return ApiSportsbookRollBackByBatchPost200ResponseToJSONTyped(json, false);
55
+ }
56
+ function ApiSportsbookRollBackByBatchPost200ResponseToJSONTyped(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(ApiSportsbookRollBackByBatchPost200ResponseItemsInner_1.ApiSportsbookRollBackByBatchPost200ResponseItemsInnerToJSON)),
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 { ApiSportsbookRollBackByBatchPost200ResponseItemsInner } from './ApiSportsbookRollBackByBatchPost200ResponseItemsInner';
17
+ import {
18
+ ApiSportsbookRollBackByBatchPost200ResponseItemsInnerFromJSON,
19
+ ApiSportsbookRollBackByBatchPost200ResponseItemsInnerFromJSONTyped,
20
+ ApiSportsbookRollBackByBatchPost200ResponseItemsInnerToJSON,
21
+ ApiSportsbookRollBackByBatchPost200ResponseItemsInnerToJSONTyped,
22
+ } from './ApiSportsbookRollBackByBatchPost200ResponseItemsInner';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ApiSportsbookRollBackByBatchPost200Response
28
+ */
29
+ export interface ApiSportsbookRollBackByBatchPost200Response {
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof ApiSportsbookRollBackByBatchPost200Response
34
+ */
35
+ responseCode: number;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ApiSportsbookRollBackByBatchPost200Response
40
+ */
41
+ description: string;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof ApiSportsbookRollBackByBatchPost200Response
46
+ */
47
+ timeStamp: number;
48
+ /**
49
+ *
50
+ * @type {Array<ApiSportsbookRollBackByBatchPost200ResponseItemsInner>}
51
+ * @memberof ApiSportsbookRollBackByBatchPost200Response
52
+ */
53
+ items: Array<ApiSportsbookRollBackByBatchPost200ResponseItemsInner>;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof ApiSportsbookRollBackByBatchPost200Response
58
+ */
59
+ signature: string;
60
+ }
61
+
62
+ /**
63
+ * Check if a given object implements the ApiSportsbookRollBackByBatchPost200Response interface.
64
+ */
65
+ export function instanceOfApiSportsbookRollBackByBatchPost200Response(value: object): value is ApiSportsbookRollBackByBatchPost200Response {
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 ApiSportsbookRollBackByBatchPost200ResponseFromJSON(json: any): ApiSportsbookRollBackByBatchPost200Response {
75
+ return ApiSportsbookRollBackByBatchPost200ResponseFromJSONTyped(json, false);
76
+ }
77
+
78
+ export function ApiSportsbookRollBackByBatchPost200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiSportsbookRollBackByBatchPost200Response {
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(ApiSportsbookRollBackByBatchPost200ResponseItemsInnerFromJSON)),
88
+ 'signature': json['Signature'],
89
+ };
90
+ }
91
+
92
+ export function ApiSportsbookRollBackByBatchPost200ResponseToJSON(json: any): ApiSportsbookRollBackByBatchPost200Response {
93
+ return ApiSportsbookRollBackByBatchPost200ResponseToJSONTyped(json, false);
94
+ }
95
+
96
+ export function ApiSportsbookRollBackByBatchPost200ResponseToJSONTyped(value?: ApiSportsbookRollBackByBatchPost200Response | 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(ApiSportsbookRollBackByBatchPost200ResponseItemsInnerToJSON)),
107
+ 'Signature': value['signature'],
108
+ };
109
+ }
110
+
@@ -0,0 +1,59 @@
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.instanceOfApiSportsbookRollBackByBatchPost200ResponseItemsInner = instanceOfApiSportsbookRollBackByBatchPost200ResponseItemsInner;
17
+ exports.ApiSportsbookRollBackByBatchPost200ResponseItemsInnerFromJSON = ApiSportsbookRollBackByBatchPost200ResponseItemsInnerFromJSON;
18
+ exports.ApiSportsbookRollBackByBatchPost200ResponseItemsInnerFromJSONTyped = ApiSportsbookRollBackByBatchPost200ResponseItemsInnerFromJSONTyped;
19
+ exports.ApiSportsbookRollBackByBatchPost200ResponseItemsInnerToJSON = ApiSportsbookRollBackByBatchPost200ResponseItemsInnerToJSON;
20
+ exports.ApiSportsbookRollBackByBatchPost200ResponseItemsInnerToJSONTyped = ApiSportsbookRollBackByBatchPost200ResponseItemsInnerToJSONTyped;
21
+ const ApiSportsbookCreditBetPostRequestOrderNumber_1 = require("./ApiSportsbookCreditBetPostRequestOrderNumber");
22
+ /**
23
+ * Check if a given object implements the ApiSportsbookRollBackByBatchPost200ResponseItemsInner interface.
24
+ */
25
+ function instanceOfApiSportsbookRollBackByBatchPost200ResponseItemsInner(value) {
26
+ if (!('transactionId' in value) || value['transactionId'] === undefined)
27
+ return false;
28
+ if (!('description' in value) || value['description'] === undefined)
29
+ return false;
30
+ if (!('responseCode' in value) || value['responseCode'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ function ApiSportsbookRollBackByBatchPost200ResponseItemsInnerFromJSON(json) {
35
+ return ApiSportsbookRollBackByBatchPost200ResponseItemsInnerFromJSONTyped(json, false);
36
+ }
37
+ function ApiSportsbookRollBackByBatchPost200ResponseItemsInnerFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'transactionId': (0, ApiSportsbookCreditBetPostRequestOrderNumber_1.ApiSportsbookCreditBetPostRequestOrderNumberFromJSON)(json['TransactionId']),
43
+ 'description': json['Description'],
44
+ 'responseCode': json['ResponseCode'],
45
+ };
46
+ }
47
+ function ApiSportsbookRollBackByBatchPost200ResponseItemsInnerToJSON(json) {
48
+ return ApiSportsbookRollBackByBatchPost200ResponseItemsInnerToJSONTyped(json, false);
49
+ }
50
+ function ApiSportsbookRollBackByBatchPost200ResponseItemsInnerToJSONTyped(value, ignoreDiscriminator = false) {
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'TransactionId': (0, ApiSportsbookCreditBetPostRequestOrderNumber_1.ApiSportsbookCreditBetPostRequestOrderNumberToJSON)(value['transactionId']),
56
+ 'Description': value['description'],
57
+ 'ResponseCode': value['responseCode'],
58
+ };
59
+ }
@@ -0,0 +1,92 @@
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 ApiSportsbookRollBackByBatchPost200ResponseItemsInner
28
+ */
29
+ export interface ApiSportsbookRollBackByBatchPost200ResponseItemsInner {
30
+ /**
31
+ *
32
+ * @type {ApiSportsbookCreditBetPostRequestOrderNumber}
33
+ * @memberof ApiSportsbookRollBackByBatchPost200ResponseItemsInner
34
+ */
35
+ transactionId: ApiSportsbookCreditBetPostRequestOrderNumber;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ApiSportsbookRollBackByBatchPost200ResponseItemsInner
40
+ */
41
+ description: string;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof ApiSportsbookRollBackByBatchPost200ResponseItemsInner
46
+ */
47
+ responseCode: number;
48
+ }
49
+
50
+ /**
51
+ * Check if a given object implements the ApiSportsbookRollBackByBatchPost200ResponseItemsInner interface.
52
+ */
53
+ export function instanceOfApiSportsbookRollBackByBatchPost200ResponseItemsInner(value: object): value is ApiSportsbookRollBackByBatchPost200ResponseItemsInner {
54
+ if (!('transactionId' in value) || value['transactionId'] === undefined) return false;
55
+ if (!('description' in value) || value['description'] === undefined) return false;
56
+ if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
57
+ return true;
58
+ }
59
+
60
+ export function ApiSportsbookRollBackByBatchPost200ResponseItemsInnerFromJSON(json: any): ApiSportsbookRollBackByBatchPost200ResponseItemsInner {
61
+ return ApiSportsbookRollBackByBatchPost200ResponseItemsInnerFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function ApiSportsbookRollBackByBatchPost200ResponseItemsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiSportsbookRollBackByBatchPost200ResponseItemsInner {
65
+ if (json == null) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'transactionId': ApiSportsbookCreditBetPostRequestOrderNumberFromJSON(json['TransactionId']),
71
+ 'description': json['Description'],
72
+ 'responseCode': json['ResponseCode'],
73
+ };
74
+ }
75
+
76
+ export function ApiSportsbookRollBackByBatchPost200ResponseItemsInnerToJSON(json: any): ApiSportsbookRollBackByBatchPost200ResponseItemsInner {
77
+ return ApiSportsbookRollBackByBatchPost200ResponseItemsInnerToJSONTyped(json, false);
78
+ }
79
+
80
+ export function ApiSportsbookRollBackByBatchPost200ResponseItemsInnerToJSONTyped(value?: ApiSportsbookRollBackByBatchPost200ResponseItemsInner | null, ignoreDiscriminator: boolean = false): any {
81
+ if (value == null) {
82
+ return value;
83
+ }
84
+
85
+ return {
86
+
87
+ 'TransactionId': ApiSportsbookCreditBetPostRequestOrderNumberToJSON(value['transactionId']),
88
+ 'Description': value['description'],
89
+ 'ResponseCode': value['responseCode'],
90
+ };
91
+ }
92
+
@@ -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.instanceOfApiSportsbookRollBackByBatchPostRequest = instanceOfApiSportsbookRollBackByBatchPostRequest;
17
+ exports.ApiSportsbookRollBackByBatchPostRequestFromJSON = ApiSportsbookRollBackByBatchPostRequestFromJSON;
18
+ exports.ApiSportsbookRollBackByBatchPostRequestFromJSONTyped = ApiSportsbookRollBackByBatchPostRequestFromJSONTyped;
19
+ exports.ApiSportsbookRollBackByBatchPostRequestToJSON = ApiSportsbookRollBackByBatchPostRequestToJSON;
20
+ exports.ApiSportsbookRollBackByBatchPostRequestToJSONTyped = ApiSportsbookRollBackByBatchPostRequestToJSONTyped;
21
+ const ApiSportsbookRollBackByBatchPostRequestItemsInner_1 = require("./ApiSportsbookRollBackByBatchPostRequestItemsInner");
22
+ /**
23
+ * Check if a given object implements the ApiSportsbookRollBackByBatchPostRequest interface.
24
+ */
25
+ function instanceOfApiSportsbookRollBackByBatchPostRequest(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 ApiSportsbookRollBackByBatchPostRequestFromJSON(json) {
37
+ return ApiSportsbookRollBackByBatchPostRequestFromJSONTyped(json, false);
38
+ }
39
+ function ApiSportsbookRollBackByBatchPostRequestFromJSONTyped(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(ApiSportsbookRollBackByBatchPostRequestItemsInner_1.ApiSportsbookRollBackByBatchPostRequestItemsInnerFromJSON)),
47
+ 'signature': json['Signature'],
48
+ };
49
+ }
50
+ function ApiSportsbookRollBackByBatchPostRequestToJSON(json) {
51
+ return ApiSportsbookRollBackByBatchPostRequestToJSONTyped(json, false);
52
+ }
53
+ function ApiSportsbookRollBackByBatchPostRequestToJSONTyped(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(ApiSportsbookRollBackByBatchPostRequestItemsInner_1.ApiSportsbookRollBackByBatchPostRequestItemsInnerToJSON)),
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 { ApiSportsbookRollBackByBatchPostRequestItemsInner } from './ApiSportsbookRollBackByBatchPostRequestItemsInner';
17
+ import {
18
+ ApiSportsbookRollBackByBatchPostRequestItemsInnerFromJSON,
19
+ ApiSportsbookRollBackByBatchPostRequestItemsInnerFromJSONTyped,
20
+ ApiSportsbookRollBackByBatchPostRequestItemsInnerToJSON,
21
+ ApiSportsbookRollBackByBatchPostRequestItemsInnerToJSONTyped,
22
+ } from './ApiSportsbookRollBackByBatchPostRequestItemsInner';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ApiSportsbookRollBackByBatchPostRequest
28
+ */
29
+ export interface ApiSportsbookRollBackByBatchPostRequest {
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof ApiSportsbookRollBackByBatchPostRequest
34
+ */
35
+ partnerId: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof ApiSportsbookRollBackByBatchPostRequest
40
+ */
41
+ timeStamp: number;
42
+ /**
43
+ *
44
+ * @type {Array<ApiSportsbookRollBackByBatchPostRequestItemsInner>}
45
+ * @memberof ApiSportsbookRollBackByBatchPostRequest
46
+ */
47
+ items: Array<ApiSportsbookRollBackByBatchPostRequestItemsInner>;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof ApiSportsbookRollBackByBatchPostRequest
52
+ */
53
+ signature: string;
54
+ }
55
+
56
+ /**
57
+ * Check if a given object implements the ApiSportsbookRollBackByBatchPostRequest interface.
58
+ */
59
+ export function instanceOfApiSportsbookRollBackByBatchPostRequest(value: object): value is ApiSportsbookRollBackByBatchPostRequest {
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 ApiSportsbookRollBackByBatchPostRequestFromJSON(json: any): ApiSportsbookRollBackByBatchPostRequest {
68
+ return ApiSportsbookRollBackByBatchPostRequestFromJSONTyped(json, false);
69
+ }
70
+
71
+ export function ApiSportsbookRollBackByBatchPostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiSportsbookRollBackByBatchPostRequest {
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(ApiSportsbookRollBackByBatchPostRequestItemsInnerFromJSON)),
80
+ 'signature': json['Signature'],
81
+ };
82
+ }
83
+
84
+ export function ApiSportsbookRollBackByBatchPostRequestToJSON(json: any): ApiSportsbookRollBackByBatchPostRequest {
85
+ return ApiSportsbookRollBackByBatchPostRequestToJSONTyped(json, false);
86
+ }
87
+
88
+ export function ApiSportsbookRollBackByBatchPostRequestToJSONTyped(value?: ApiSportsbookRollBackByBatchPostRequest | 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(ApiSportsbookRollBackByBatchPostRequestItemsInnerToJSON)),
98
+ 'Signature': value['signature'],
99
+ };
100
+ }
101
+
@@ -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.instanceOfApiSportsbookRollBackByBatchPostRequestItemsInner = instanceOfApiSportsbookRollBackByBatchPostRequestItemsInner;
17
+ exports.ApiSportsbookRollBackByBatchPostRequestItemsInnerFromJSON = ApiSportsbookRollBackByBatchPostRequestItemsInnerFromJSON;
18
+ exports.ApiSportsbookRollBackByBatchPostRequestItemsInnerFromJSONTyped = ApiSportsbookRollBackByBatchPostRequestItemsInnerFromJSONTyped;
19
+ exports.ApiSportsbookRollBackByBatchPostRequestItemsInnerToJSON = ApiSportsbookRollBackByBatchPostRequestItemsInnerToJSON;
20
+ exports.ApiSportsbookRollBackByBatchPostRequestItemsInnerToJSONTyped = ApiSportsbookRollBackByBatchPostRequestItemsInnerToJSONTyped;
21
+ const ApiSportsbookCreditBetPostRequestOrderNumber_1 = require("./ApiSportsbookCreditBetPostRequestOrderNumber");
22
+ /**
23
+ * Check if a given object implements the ApiSportsbookRollBackByBatchPostRequestItemsInner interface.
24
+ */
25
+ function instanceOfApiSportsbookRollBackByBatchPostRequestItemsInner(value) {
26
+ if (!('transactionId' in value) || value['transactionId'] === undefined)
27
+ return false;
28
+ if (!('orderNumber' in value) || value['orderNumber'] === undefined)
29
+ return false;
30
+ if (!('info' in value) || value['info'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ function ApiSportsbookRollBackByBatchPostRequestItemsInnerFromJSON(json) {
35
+ return ApiSportsbookRollBackByBatchPostRequestItemsInnerFromJSONTyped(json, false);
36
+ }
37
+ function ApiSportsbookRollBackByBatchPostRequestItemsInnerFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'transactionId': (0, ApiSportsbookCreditBetPostRequestOrderNumber_1.ApiSportsbookCreditBetPostRequestOrderNumberFromJSON)(json['TransactionId']),
43
+ 'orderNumber': (0, ApiSportsbookCreditBetPostRequestOrderNumber_1.ApiSportsbookCreditBetPostRequestOrderNumberFromJSON)(json['OrderNumber']),
44
+ 'info': json['Info'],
45
+ 'wageringRemain': json['WageringRemain'] == null ? undefined : json['WageringRemain'],
46
+ 'bonusRemain': json['BonusRemain'] == null ? undefined : json['BonusRemain'],
47
+ };
48
+ }
49
+ function ApiSportsbookRollBackByBatchPostRequestItemsInnerToJSON(json) {
50
+ return ApiSportsbookRollBackByBatchPostRequestItemsInnerToJSONTyped(json, false);
51
+ }
52
+ function ApiSportsbookRollBackByBatchPostRequestItemsInnerToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'TransactionId': (0, ApiSportsbookCreditBetPostRequestOrderNumber_1.ApiSportsbookCreditBetPostRequestOrderNumberToJSON)(value['transactionId']),
58
+ 'OrderNumber': (0, ApiSportsbookCreditBetPostRequestOrderNumber_1.ApiSportsbookCreditBetPostRequestOrderNumberToJSON)(value['orderNumber']),
59
+ 'Info': value['info'],
60
+ 'WageringRemain': value['wageringRemain'],
61
+ 'BonusRemain': value['bonusRemain'],
62
+ };
63
+ }
@@ -0,0 +1,108 @@
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 ApiSportsbookRollBackByBatchPostRequestItemsInner
28
+ */
29
+ export interface ApiSportsbookRollBackByBatchPostRequestItemsInner {
30
+ /**
31
+ *
32
+ * @type {ApiSportsbookCreditBetPostRequestOrderNumber}
33
+ * @memberof ApiSportsbookRollBackByBatchPostRequestItemsInner
34
+ */
35
+ transactionId: ApiSportsbookCreditBetPostRequestOrderNumber;
36
+ /**
37
+ *
38
+ * @type {ApiSportsbookCreditBetPostRequestOrderNumber}
39
+ * @memberof ApiSportsbookRollBackByBatchPostRequestItemsInner
40
+ */
41
+ orderNumber: ApiSportsbookCreditBetPostRequestOrderNumber;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof ApiSportsbookRollBackByBatchPostRequestItemsInner
46
+ */
47
+ info: string;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof ApiSportsbookRollBackByBatchPostRequestItemsInner
52
+ */
53
+ wageringRemain?: number;
54
+ /**
55
+ *
56
+ * @type {number}
57
+ * @memberof ApiSportsbookRollBackByBatchPostRequestItemsInner
58
+ */
59
+ bonusRemain?: number;
60
+ }
61
+
62
+ /**
63
+ * Check if a given object implements the ApiSportsbookRollBackByBatchPostRequestItemsInner interface.
64
+ */
65
+ export function instanceOfApiSportsbookRollBackByBatchPostRequestItemsInner(value: object): value is ApiSportsbookRollBackByBatchPostRequestItemsInner {
66
+ if (!('transactionId' in value) || value['transactionId'] === undefined) return false;
67
+ if (!('orderNumber' in value) || value['orderNumber'] === undefined) return false;
68
+ if (!('info' in value) || value['info'] === undefined) return false;
69
+ return true;
70
+ }
71
+
72
+ export function ApiSportsbookRollBackByBatchPostRequestItemsInnerFromJSON(json: any): ApiSportsbookRollBackByBatchPostRequestItemsInner {
73
+ return ApiSportsbookRollBackByBatchPostRequestItemsInnerFromJSONTyped(json, false);
74
+ }
75
+
76
+ export function ApiSportsbookRollBackByBatchPostRequestItemsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiSportsbookRollBackByBatchPostRequestItemsInner {
77
+ if (json == null) {
78
+ return json;
79
+ }
80
+ return {
81
+
82
+ 'transactionId': ApiSportsbookCreditBetPostRequestOrderNumberFromJSON(json['TransactionId']),
83
+ 'orderNumber': ApiSportsbookCreditBetPostRequestOrderNumberFromJSON(json['OrderNumber']),
84
+ 'info': json['Info'],
85
+ 'wageringRemain': json['WageringRemain'] == null ? undefined : json['WageringRemain'],
86
+ 'bonusRemain': json['BonusRemain'] == null ? undefined : json['BonusRemain'],
87
+ };
88
+ }
89
+
90
+ export function ApiSportsbookRollBackByBatchPostRequestItemsInnerToJSON(json: any): ApiSportsbookRollBackByBatchPostRequestItemsInner {
91
+ return ApiSportsbookRollBackByBatchPostRequestItemsInnerToJSONTyped(json, false);
92
+ }
93
+
94
+ export function ApiSportsbookRollBackByBatchPostRequestItemsInnerToJSONTyped(value?: ApiSportsbookRollBackByBatchPostRequestItemsInner | null, ignoreDiscriminator: boolean = false): any {
95
+ if (value == null) {
96
+ return value;
97
+ }
98
+
99
+ return {
100
+
101
+ 'TransactionId': ApiSportsbookCreditBetPostRequestOrderNumberToJSON(value['transactionId']),
102
+ 'OrderNumber': ApiSportsbookCreditBetPostRequestOrderNumberToJSON(value['orderNumber']),
103
+ 'Info': value['info'],
104
+ 'WageringRemain': value['wageringRemain'],
105
+ 'BonusRemain': value['bonusRemain'],
106
+ };
107
+ }
108
+
package/models/index.js CHANGED
@@ -387,6 +387,10 @@ __exportStar(require("./ApiSportsbookGetBalancePost200Response"), exports);
387
387
  __exportStar(require("./ApiSportsbookGetBalancePostRequest"), exports);
388
388
  __exportStar(require("./ApiSportsbookGetUserInfoPost200Response"), exports);
389
389
  __exportStar(require("./ApiSportsbookGetUserInfoPostRequest"), exports);
390
+ __exportStar(require("./ApiSportsbookRollBackByBatchPost200Response"), exports);
391
+ __exportStar(require("./ApiSportsbookRollBackByBatchPost200ResponseItemsInner"), exports);
392
+ __exportStar(require("./ApiSportsbookRollBackByBatchPostRequest"), exports);
393
+ __exportStar(require("./ApiSportsbookRollBackByBatchPostRequestItemsInner"), exports);
390
394
  __exportStar(require("./ApiTatumHotWalletOutgoingNativePostRequest"), exports);
391
395
  __exportStar(require("./ApiTatumHotWalletOutgoingTokenPostRequest"), exports);
392
396
  __exportStar(require("./ApiTatumIncomingNativePostRequest"), exports);
package/models/index.ts CHANGED
@@ -371,6 +371,10 @@ export * from './ApiSportsbookGetBalancePost200Response';
371
371
  export * from './ApiSportsbookGetBalancePostRequest';
372
372
  export * from './ApiSportsbookGetUserInfoPost200Response';
373
373
  export * from './ApiSportsbookGetUserInfoPostRequest';
374
+ export * from './ApiSportsbookRollBackByBatchPost200Response';
375
+ export * from './ApiSportsbookRollBackByBatchPost200ResponseItemsInner';
376
+ export * from './ApiSportsbookRollBackByBatchPostRequest';
377
+ export * from './ApiSportsbookRollBackByBatchPostRequestItemsInner';
374
378
  export * from './ApiTatumHotWalletOutgoingNativePostRequest';
375
379
  export * from './ApiTatumHotWalletOutgoingTokenPostRequest';
376
380
  export * from './ApiTatumIncomingNativePostRequest';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gambulls-org/gambulls-apis",
3
- "version": "3.0.185",
3
+ "version": "3.0.186",
4
4
  "main": "index.ts",
5
5
  "scripts": {
6
6
  "build": "tsc",