@gambulls-org/gambulls-apis 3.0.814 → 3.0.815

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.
@@ -567,6 +567,11 @@ models/ApiCronRecoveryLoyaltyPost200Response.ts
567
567
  models/ApiCronRecoveryLoyaltyPost200ResponseResponseObject.ts
568
568
  models/ApiCronRecoveryLoyaltyPostRequest.ts
569
569
  models/ApiHealthCheckGet200Response.ts
570
+ models/ApiHub88CallbackBalancePostRequest.ts
571
+ models/ApiHub88CallbackBetPostRequest.ts
572
+ models/ApiHub88CallbackRollbackPostRequest.ts
573
+ models/ApiHub88CallbackUserInfoPostRequest.ts
574
+ models/ApiHub88CallbackWinPostRequest.ts
570
575
  models/ApiJackpotCallbackAuthenticatePostRequest.ts
571
576
  models/ApiJackpotCallbackBalancePostRequest.ts
572
577
  models/ApiJackpotCallbackCreditPostRequest.ts
package/apis/Hub88Api.js CHANGED
@@ -52,6 +52,191 @@ const index_1 = require("../models/index");
52
52
  *
53
53
  */
54
54
  class Hub88Api extends runtime.BaseAPI {
55
+ /**
56
+ * Hub88 Callback - Balance
57
+ */
58
+ apiHub88CallbackBalancePostRaw(requestParameters, initOverrides) {
59
+ return __awaiter(this, void 0, void 0, function* () {
60
+ const queryParameters = {};
61
+ const headerParameters = {};
62
+ headerParameters['Content-Type'] = 'application/json';
63
+ if (this.configuration && this.configuration.apiKey) {
64
+ headerParameters["api-key"] = yield this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
65
+ }
66
+ if (this.configuration && this.configuration.accessToken) {
67
+ const token = this.configuration.accessToken;
68
+ const tokenString = yield token("BearerAuth", []);
69
+ if (tokenString) {
70
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
71
+ }
72
+ }
73
+ const response = yield this.request({
74
+ path: `/api/hub88/callback/balance`,
75
+ method: 'POST',
76
+ headers: headerParameters,
77
+ query: queryParameters,
78
+ body: (0, index_1.ApiHub88CallbackBalancePostRequestToJSON)(requestParameters['apiHub88CallbackBalancePostRequest']),
79
+ }, initOverrides);
80
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiUserAvatarPut200ResponseFromJSON)(jsonValue));
81
+ });
82
+ }
83
+ /**
84
+ * Hub88 Callback - Balance
85
+ */
86
+ apiHub88CallbackBalancePost() {
87
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
88
+ const response = yield this.apiHub88CallbackBalancePostRaw(requestParameters, initOverrides);
89
+ return yield response.value();
90
+ });
91
+ }
92
+ /**
93
+ * Hub88 Callback - Bet (Debit)
94
+ */
95
+ apiHub88CallbackBetPostRaw(requestParameters, initOverrides) {
96
+ return __awaiter(this, void 0, void 0, function* () {
97
+ const queryParameters = {};
98
+ const headerParameters = {};
99
+ headerParameters['Content-Type'] = 'application/json';
100
+ if (this.configuration && this.configuration.apiKey) {
101
+ headerParameters["api-key"] = yield this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
102
+ }
103
+ if (this.configuration && this.configuration.accessToken) {
104
+ const token = this.configuration.accessToken;
105
+ const tokenString = yield token("BearerAuth", []);
106
+ if (tokenString) {
107
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
108
+ }
109
+ }
110
+ const response = yield this.request({
111
+ path: `/api/hub88/callback/bet`,
112
+ method: 'POST',
113
+ headers: headerParameters,
114
+ query: queryParameters,
115
+ body: (0, index_1.ApiHub88CallbackBetPostRequestToJSON)(requestParameters['apiHub88CallbackBetPostRequest']),
116
+ }, initOverrides);
117
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiUserAvatarPut200ResponseFromJSON)(jsonValue));
118
+ });
119
+ }
120
+ /**
121
+ * Hub88 Callback - Bet (Debit)
122
+ */
123
+ apiHub88CallbackBetPost() {
124
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
125
+ const response = yield this.apiHub88CallbackBetPostRaw(requestParameters, initOverrides);
126
+ return yield response.value();
127
+ });
128
+ }
129
+ /**
130
+ * Hub88 Callback - Rollback
131
+ */
132
+ apiHub88CallbackRollbackPostRaw(requestParameters, initOverrides) {
133
+ return __awaiter(this, void 0, void 0, function* () {
134
+ const queryParameters = {};
135
+ const headerParameters = {};
136
+ headerParameters['Content-Type'] = 'application/json';
137
+ if (this.configuration && this.configuration.apiKey) {
138
+ headerParameters["api-key"] = yield this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
139
+ }
140
+ if (this.configuration && this.configuration.accessToken) {
141
+ const token = this.configuration.accessToken;
142
+ const tokenString = yield token("BearerAuth", []);
143
+ if (tokenString) {
144
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
145
+ }
146
+ }
147
+ const response = yield this.request({
148
+ path: `/api/hub88/callback/rollback`,
149
+ method: 'POST',
150
+ headers: headerParameters,
151
+ query: queryParameters,
152
+ body: (0, index_1.ApiHub88CallbackRollbackPostRequestToJSON)(requestParameters['apiHub88CallbackRollbackPostRequest']),
153
+ }, initOverrides);
154
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiUserAvatarPut200ResponseFromJSON)(jsonValue));
155
+ });
156
+ }
157
+ /**
158
+ * Hub88 Callback - Rollback
159
+ */
160
+ apiHub88CallbackRollbackPost() {
161
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
162
+ const response = yield this.apiHub88CallbackRollbackPostRaw(requestParameters, initOverrides);
163
+ return yield response.value();
164
+ });
165
+ }
166
+ /**
167
+ * Hub88 Callback - User Info
168
+ */
169
+ apiHub88CallbackUserInfoPostRaw(requestParameters, initOverrides) {
170
+ return __awaiter(this, void 0, void 0, function* () {
171
+ const queryParameters = {};
172
+ const headerParameters = {};
173
+ headerParameters['Content-Type'] = 'application/json';
174
+ if (this.configuration && this.configuration.apiKey) {
175
+ headerParameters["api-key"] = yield this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
176
+ }
177
+ if (this.configuration && this.configuration.accessToken) {
178
+ const token = this.configuration.accessToken;
179
+ const tokenString = yield token("BearerAuth", []);
180
+ if (tokenString) {
181
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
182
+ }
183
+ }
184
+ const response = yield this.request({
185
+ path: `/api/hub88/callback/user-info`,
186
+ method: 'POST',
187
+ headers: headerParameters,
188
+ query: queryParameters,
189
+ body: (0, index_1.ApiHub88CallbackUserInfoPostRequestToJSON)(requestParameters['apiHub88CallbackUserInfoPostRequest']),
190
+ }, initOverrides);
191
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiUserAvatarPut200ResponseFromJSON)(jsonValue));
192
+ });
193
+ }
194
+ /**
195
+ * Hub88 Callback - User Info
196
+ */
197
+ apiHub88CallbackUserInfoPost() {
198
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
199
+ const response = yield this.apiHub88CallbackUserInfoPostRaw(requestParameters, initOverrides);
200
+ return yield response.value();
201
+ });
202
+ }
203
+ /**
204
+ * Hub88 Callback - Win (Credit)
205
+ */
206
+ apiHub88CallbackWinPostRaw(requestParameters, initOverrides) {
207
+ return __awaiter(this, void 0, void 0, function* () {
208
+ const queryParameters = {};
209
+ const headerParameters = {};
210
+ headerParameters['Content-Type'] = 'application/json';
211
+ if (this.configuration && this.configuration.apiKey) {
212
+ headerParameters["api-key"] = yield this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
213
+ }
214
+ if (this.configuration && this.configuration.accessToken) {
215
+ const token = this.configuration.accessToken;
216
+ const tokenString = yield token("BearerAuth", []);
217
+ if (tokenString) {
218
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
219
+ }
220
+ }
221
+ const response = yield this.request({
222
+ path: `/api/hub88/callback/win`,
223
+ method: 'POST',
224
+ headers: headerParameters,
225
+ query: queryParameters,
226
+ body: (0, index_1.ApiHub88CallbackWinPostRequestToJSON)(requestParameters['apiHub88CallbackWinPostRequest']),
227
+ }, initOverrides);
228
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiUserAvatarPut200ResponseFromJSON)(jsonValue));
229
+ });
230
+ }
231
+ /**
232
+ * Hub88 Callback - Win (Credit)
233
+ */
234
+ apiHub88CallbackWinPost() {
235
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
236
+ const response = yield this.apiHub88CallbackWinPostRaw(requestParameters, initOverrides);
237
+ return yield response.value();
238
+ });
239
+ }
55
240
  /**
56
241
  * Hub88 - Launch Game Session
57
242
  */
package/apis/Hub88Api.ts CHANGED
@@ -15,16 +15,54 @@
15
15
 
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
+ ApiHub88CallbackBalancePostRequest,
19
+ ApiHub88CallbackBetPostRequest,
20
+ ApiHub88CallbackRollbackPostRequest,
21
+ ApiHub88CallbackUserInfoPostRequest,
22
+ ApiHub88CallbackWinPostRequest,
18
23
  ApiUserAuthenticateOptionalJackpotLaunchGetDemoParameter,
24
+ ApiUserAvatarPut200Response,
19
25
  ApiUserUploadPost200Response,
20
26
  } from '../models/index';
21
27
  import {
28
+ ApiHub88CallbackBalancePostRequestFromJSON,
29
+ ApiHub88CallbackBalancePostRequestToJSON,
30
+ ApiHub88CallbackBetPostRequestFromJSON,
31
+ ApiHub88CallbackBetPostRequestToJSON,
32
+ ApiHub88CallbackRollbackPostRequestFromJSON,
33
+ ApiHub88CallbackRollbackPostRequestToJSON,
34
+ ApiHub88CallbackUserInfoPostRequestFromJSON,
35
+ ApiHub88CallbackUserInfoPostRequestToJSON,
36
+ ApiHub88CallbackWinPostRequestFromJSON,
37
+ ApiHub88CallbackWinPostRequestToJSON,
22
38
  ApiUserAuthenticateOptionalJackpotLaunchGetDemoParameterFromJSON,
23
39
  ApiUserAuthenticateOptionalJackpotLaunchGetDemoParameterToJSON,
40
+ ApiUserAvatarPut200ResponseFromJSON,
41
+ ApiUserAvatarPut200ResponseToJSON,
24
42
  ApiUserUploadPost200ResponseFromJSON,
25
43
  ApiUserUploadPost200ResponseToJSON,
26
44
  } from '../models/index';
27
45
 
46
+ export interface ApiHub88CallbackBalancePostOperationRequest {
47
+ apiHub88CallbackBalancePostRequest?: ApiHub88CallbackBalancePostRequest;
48
+ }
49
+
50
+ export interface ApiHub88CallbackBetPostOperationRequest {
51
+ apiHub88CallbackBetPostRequest?: ApiHub88CallbackBetPostRequest;
52
+ }
53
+
54
+ export interface ApiHub88CallbackRollbackPostOperationRequest {
55
+ apiHub88CallbackRollbackPostRequest?: ApiHub88CallbackRollbackPostRequest;
56
+ }
57
+
58
+ export interface ApiHub88CallbackUserInfoPostOperationRequest {
59
+ apiHub88CallbackUserInfoPostRequest?: ApiHub88CallbackUserInfoPostRequest;
60
+ }
61
+
62
+ export interface ApiHub88CallbackWinPostOperationRequest {
63
+ apiHub88CallbackWinPostRequest?: ApiHub88CallbackWinPostRequest;
64
+ }
65
+
28
66
  export interface ApiUserAuthenticateOptionalHub88LaunchGetRequest {
29
67
  gameCode: string;
30
68
  platform?: ApiUserAuthenticateOptionalHub88LaunchGetPlatformEnum;
@@ -37,6 +75,211 @@ export interface ApiUserAuthenticateOptionalHub88LaunchGetRequest {
37
75
  */
38
76
  export class Hub88Api extends runtime.BaseAPI {
39
77
 
78
+ /**
79
+ * Hub88 Callback - Balance
80
+ */
81
+ async apiHub88CallbackBalancePostRaw(requestParameters: ApiHub88CallbackBalancePostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiUserAvatarPut200Response>> {
82
+ const queryParameters: any = {};
83
+
84
+ const headerParameters: runtime.HTTPHeaders = {};
85
+
86
+ headerParameters['Content-Type'] = 'application/json';
87
+
88
+ if (this.configuration && this.configuration.apiKey) {
89
+ headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
90
+ }
91
+
92
+ if (this.configuration && this.configuration.accessToken) {
93
+ const token = this.configuration.accessToken;
94
+ const tokenString = await token("BearerAuth", []);
95
+
96
+ if (tokenString) {
97
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
98
+ }
99
+ }
100
+ const response = await this.request({
101
+ path: `/api/hub88/callback/balance`,
102
+ method: 'POST',
103
+ headers: headerParameters,
104
+ query: queryParameters,
105
+ body: ApiHub88CallbackBalancePostRequestToJSON(requestParameters['apiHub88CallbackBalancePostRequest']),
106
+ }, initOverrides);
107
+
108
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiUserAvatarPut200ResponseFromJSON(jsonValue));
109
+ }
110
+
111
+ /**
112
+ * Hub88 Callback - Balance
113
+ */
114
+ async apiHub88CallbackBalancePost(requestParameters: ApiHub88CallbackBalancePostOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiUserAvatarPut200Response> {
115
+ const response = await this.apiHub88CallbackBalancePostRaw(requestParameters, initOverrides);
116
+ return await response.value();
117
+ }
118
+
119
+ /**
120
+ * Hub88 Callback - Bet (Debit)
121
+ */
122
+ async apiHub88CallbackBetPostRaw(requestParameters: ApiHub88CallbackBetPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiUserAvatarPut200Response>> {
123
+ const queryParameters: any = {};
124
+
125
+ const headerParameters: runtime.HTTPHeaders = {};
126
+
127
+ headerParameters['Content-Type'] = 'application/json';
128
+
129
+ if (this.configuration && this.configuration.apiKey) {
130
+ headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
131
+ }
132
+
133
+ if (this.configuration && this.configuration.accessToken) {
134
+ const token = this.configuration.accessToken;
135
+ const tokenString = await token("BearerAuth", []);
136
+
137
+ if (tokenString) {
138
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
139
+ }
140
+ }
141
+ const response = await this.request({
142
+ path: `/api/hub88/callback/bet`,
143
+ method: 'POST',
144
+ headers: headerParameters,
145
+ query: queryParameters,
146
+ body: ApiHub88CallbackBetPostRequestToJSON(requestParameters['apiHub88CallbackBetPostRequest']),
147
+ }, initOverrides);
148
+
149
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiUserAvatarPut200ResponseFromJSON(jsonValue));
150
+ }
151
+
152
+ /**
153
+ * Hub88 Callback - Bet (Debit)
154
+ */
155
+ async apiHub88CallbackBetPost(requestParameters: ApiHub88CallbackBetPostOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiUserAvatarPut200Response> {
156
+ const response = await this.apiHub88CallbackBetPostRaw(requestParameters, initOverrides);
157
+ return await response.value();
158
+ }
159
+
160
+ /**
161
+ * Hub88 Callback - Rollback
162
+ */
163
+ async apiHub88CallbackRollbackPostRaw(requestParameters: ApiHub88CallbackRollbackPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiUserAvatarPut200Response>> {
164
+ const queryParameters: any = {};
165
+
166
+ const headerParameters: runtime.HTTPHeaders = {};
167
+
168
+ headerParameters['Content-Type'] = 'application/json';
169
+
170
+ if (this.configuration && this.configuration.apiKey) {
171
+ headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
172
+ }
173
+
174
+ if (this.configuration && this.configuration.accessToken) {
175
+ const token = this.configuration.accessToken;
176
+ const tokenString = await token("BearerAuth", []);
177
+
178
+ if (tokenString) {
179
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
180
+ }
181
+ }
182
+ const response = await this.request({
183
+ path: `/api/hub88/callback/rollback`,
184
+ method: 'POST',
185
+ headers: headerParameters,
186
+ query: queryParameters,
187
+ body: ApiHub88CallbackRollbackPostRequestToJSON(requestParameters['apiHub88CallbackRollbackPostRequest']),
188
+ }, initOverrides);
189
+
190
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiUserAvatarPut200ResponseFromJSON(jsonValue));
191
+ }
192
+
193
+ /**
194
+ * Hub88 Callback - Rollback
195
+ */
196
+ async apiHub88CallbackRollbackPost(requestParameters: ApiHub88CallbackRollbackPostOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiUserAvatarPut200Response> {
197
+ const response = await this.apiHub88CallbackRollbackPostRaw(requestParameters, initOverrides);
198
+ return await response.value();
199
+ }
200
+
201
+ /**
202
+ * Hub88 Callback - User Info
203
+ */
204
+ async apiHub88CallbackUserInfoPostRaw(requestParameters: ApiHub88CallbackUserInfoPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiUserAvatarPut200Response>> {
205
+ const queryParameters: any = {};
206
+
207
+ const headerParameters: runtime.HTTPHeaders = {};
208
+
209
+ headerParameters['Content-Type'] = 'application/json';
210
+
211
+ if (this.configuration && this.configuration.apiKey) {
212
+ headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
213
+ }
214
+
215
+ if (this.configuration && this.configuration.accessToken) {
216
+ const token = this.configuration.accessToken;
217
+ const tokenString = await token("BearerAuth", []);
218
+
219
+ if (tokenString) {
220
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
221
+ }
222
+ }
223
+ const response = await this.request({
224
+ path: `/api/hub88/callback/user-info`,
225
+ method: 'POST',
226
+ headers: headerParameters,
227
+ query: queryParameters,
228
+ body: ApiHub88CallbackUserInfoPostRequestToJSON(requestParameters['apiHub88CallbackUserInfoPostRequest']),
229
+ }, initOverrides);
230
+
231
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiUserAvatarPut200ResponseFromJSON(jsonValue));
232
+ }
233
+
234
+ /**
235
+ * Hub88 Callback - User Info
236
+ */
237
+ async apiHub88CallbackUserInfoPost(requestParameters: ApiHub88CallbackUserInfoPostOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiUserAvatarPut200Response> {
238
+ const response = await this.apiHub88CallbackUserInfoPostRaw(requestParameters, initOverrides);
239
+ return await response.value();
240
+ }
241
+
242
+ /**
243
+ * Hub88 Callback - Win (Credit)
244
+ */
245
+ async apiHub88CallbackWinPostRaw(requestParameters: ApiHub88CallbackWinPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiUserAvatarPut200Response>> {
246
+ const queryParameters: any = {};
247
+
248
+ const headerParameters: runtime.HTTPHeaders = {};
249
+
250
+ headerParameters['Content-Type'] = 'application/json';
251
+
252
+ if (this.configuration && this.configuration.apiKey) {
253
+ headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
254
+ }
255
+
256
+ if (this.configuration && this.configuration.accessToken) {
257
+ const token = this.configuration.accessToken;
258
+ const tokenString = await token("BearerAuth", []);
259
+
260
+ if (tokenString) {
261
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
262
+ }
263
+ }
264
+ const response = await this.request({
265
+ path: `/api/hub88/callback/win`,
266
+ method: 'POST',
267
+ headers: headerParameters,
268
+ query: queryParameters,
269
+ body: ApiHub88CallbackWinPostRequestToJSON(requestParameters['apiHub88CallbackWinPostRequest']),
270
+ }, initOverrides);
271
+
272
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiUserAvatarPut200ResponseFromJSON(jsonValue));
273
+ }
274
+
275
+ /**
276
+ * Hub88 Callback - Win (Credit)
277
+ */
278
+ async apiHub88CallbackWinPost(requestParameters: ApiHub88CallbackWinPostOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiUserAvatarPut200Response> {
279
+ const response = await this.apiHub88CallbackWinPostRaw(requestParameters, initOverrides);
280
+ return await response.value();
281
+ }
282
+
40
283
  /**
41
284
  * Hub88 - Launch Game Session
42
285
  */
@@ -0,0 +1,62 @@
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.instanceOfApiHub88CallbackBalancePostRequest = instanceOfApiHub88CallbackBalancePostRequest;
17
+ exports.ApiHub88CallbackBalancePostRequestFromJSON = ApiHub88CallbackBalancePostRequestFromJSON;
18
+ exports.ApiHub88CallbackBalancePostRequestFromJSONTyped = ApiHub88CallbackBalancePostRequestFromJSONTyped;
19
+ exports.ApiHub88CallbackBalancePostRequestToJSON = ApiHub88CallbackBalancePostRequestToJSON;
20
+ exports.ApiHub88CallbackBalancePostRequestToJSONTyped = ApiHub88CallbackBalancePostRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ApiHub88CallbackBalancePostRequest interface.
23
+ */
24
+ function instanceOfApiHub88CallbackBalancePostRequest(value) {
25
+ if (!('user' in value) || value['user'] === undefined)
26
+ return false;
27
+ if (!('gameCode' in value) || value['gameCode'] === undefined)
28
+ return false;
29
+ if (!('token' in value) || value['token'] === undefined)
30
+ return false;
31
+ if (!('requestUuid' in value) || value['requestUuid'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function ApiHub88CallbackBalancePostRequestFromJSON(json) {
36
+ return ApiHub88CallbackBalancePostRequestFromJSONTyped(json, false);
37
+ }
38
+ function ApiHub88CallbackBalancePostRequestFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'user': json['user'],
44
+ 'gameCode': json['game_code'],
45
+ 'token': json['token'],
46
+ 'requestUuid': json['request_uuid'],
47
+ };
48
+ }
49
+ function ApiHub88CallbackBalancePostRequestToJSON(json) {
50
+ return ApiHub88CallbackBalancePostRequestToJSONTyped(json, false);
51
+ }
52
+ function ApiHub88CallbackBalancePostRequestToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'user': value['user'],
58
+ 'game_code': value['gameCode'],
59
+ 'token': value['token'],
60
+ 'request_uuid': value['requestUuid'],
61
+ };
62
+ }
@@ -0,0 +1,93 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Swagger API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ApiHub88CallbackBalancePostRequest
20
+ */
21
+ export interface ApiHub88CallbackBalancePostRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ApiHub88CallbackBalancePostRequest
26
+ */
27
+ user: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ApiHub88CallbackBalancePostRequest
32
+ */
33
+ gameCode: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof ApiHub88CallbackBalancePostRequest
38
+ */
39
+ token: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof ApiHub88CallbackBalancePostRequest
44
+ */
45
+ requestUuid: string;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the ApiHub88CallbackBalancePostRequest interface.
50
+ */
51
+ export function instanceOfApiHub88CallbackBalancePostRequest(value: object): value is ApiHub88CallbackBalancePostRequest {
52
+ if (!('user' in value) || value['user'] === undefined) return false;
53
+ if (!('gameCode' in value) || value['gameCode'] === undefined) return false;
54
+ if (!('token' in value) || value['token'] === undefined) return false;
55
+ if (!('requestUuid' in value) || value['requestUuid'] === undefined) return false;
56
+ return true;
57
+ }
58
+
59
+ export function ApiHub88CallbackBalancePostRequestFromJSON(json: any): ApiHub88CallbackBalancePostRequest {
60
+ return ApiHub88CallbackBalancePostRequestFromJSONTyped(json, false);
61
+ }
62
+
63
+ export function ApiHub88CallbackBalancePostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiHub88CallbackBalancePostRequest {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+
69
+ 'user': json['user'],
70
+ 'gameCode': json['game_code'],
71
+ 'token': json['token'],
72
+ 'requestUuid': json['request_uuid'],
73
+ };
74
+ }
75
+
76
+ export function ApiHub88CallbackBalancePostRequestToJSON(json: any): ApiHub88CallbackBalancePostRequest {
77
+ return ApiHub88CallbackBalancePostRequestToJSONTyped(json, false);
78
+ }
79
+
80
+ export function ApiHub88CallbackBalancePostRequestToJSONTyped(value?: ApiHub88CallbackBalancePostRequest | null, ignoreDiscriminator: boolean = false): any {
81
+ if (value == null) {
82
+ return value;
83
+ }
84
+
85
+ return {
86
+
87
+ 'user': value['user'],
88
+ 'game_code': value['gameCode'],
89
+ 'token': value['token'],
90
+ 'request_uuid': value['requestUuid'],
91
+ };
92
+ }
93
+