-
Notifications
You must be signed in to change notification settings - Fork 0
/
Wallet.cs
517 lines (512 loc) · 21.2 KB
/
Wallet.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
// Copyright (c) 2022-2024 AccelByte Inc. All Rights Reserved.
// This is licensed software from AccelByte Inc, for limitations
// and restrictions contact your company contract manager.
// This code is generated by tool. DO NOT EDIT.
using AccelByte.Sdk.Api.Platform.Model;
using AccelByte.Sdk.Api.Platform.Operation;
using AccelByte.Sdk.Core;
namespace AccelByte.Sdk.Api.Platform.Wrapper
{
public class Wallet
{
private readonly AccelByteSDK _sdk;
public Wallet(AccelByteSDK sdk)
{
_sdk = sdk;
}
#region Operation Builders
public GetPlatformWalletConfig.GetPlatformWalletConfigBuilder GetPlatformWalletConfigOp
{
get { return Operation.GetPlatformWalletConfig.Builder.SetWrapperObject(this); }
}
public UpdatePlatformWalletConfig.UpdatePlatformWalletConfigBuilder UpdatePlatformWalletConfigOp
{
get { return Operation.UpdatePlatformWalletConfig.Builder.SetWrapperObject(this); }
}
public ResetPlatformWalletConfig.ResetPlatformWalletConfigBuilder ResetPlatformWalletConfigOp
{
get { return Operation.ResetPlatformWalletConfig.Builder.SetWrapperObject(this); }
}
public QueryUserCurrencyWallets.QueryUserCurrencyWalletsBuilder QueryUserCurrencyWalletsOp
{
get { return Operation.QueryUserCurrencyWallets.Builder.SetWrapperObject(this); }
}
public DebitUserWalletByCurrencyCode.DebitUserWalletByCurrencyCodeBuilder DebitUserWalletByCurrencyCodeOp
{
get { return Operation.DebitUserWalletByCurrencyCode.Builder.SetWrapperObject(this); }
}
public ListUserCurrencyTransactions.ListUserCurrencyTransactionsBuilder ListUserCurrencyTransactionsOp
{
get { return Operation.ListUserCurrencyTransactions.Builder.SetWrapperObject(this); }
}
public CheckBalance.CheckBalanceBuilder CheckBalanceOp
{
get { return Operation.CheckBalance.Builder.SetWrapperObject(this); }
}
[Obsolete(DiagnosticId = "ab_deprecated_operation_wrapper")]
public CheckWallet.CheckWalletBuilder CheckWalletOp
{
get { return Operation.CheckWallet.Builder.SetWrapperObject(this); }
}
public CreditUserWallet.CreditUserWalletBuilder CreditUserWalletOp
{
get { return Operation.CreditUserWallet.Builder.SetWrapperObject(this); }
}
public DebitByWalletPlatform.DebitByWalletPlatformBuilder DebitByWalletPlatformOp
{
get { return Operation.DebitByWalletPlatform.Builder.SetWrapperObject(this); }
}
public PayWithUserWallet.PayWithUserWalletBuilder PayWithUserWalletOp
{
get { return Operation.PayWithUserWallet.Builder.SetWrapperObject(this); }
}
[Obsolete(DiagnosticId = "ab_deprecated_operation_wrapper")]
public GetUserWallet.GetUserWalletBuilder GetUserWalletOp
{
get { return Operation.GetUserWallet.Builder.SetWrapperObject(this); }
}
[Obsolete(DiagnosticId = "ab_deprecated_operation_wrapper")]
public DebitUserWallet.DebitUserWalletBuilder DebitUserWalletOp
{
get { return Operation.DebitUserWallet.Builder.SetWrapperObject(this); }
}
[Obsolete(DiagnosticId = "ab_deprecated_operation_wrapper")]
public DisableUserWallet.DisableUserWalletBuilder DisableUserWalletOp
{
get { return Operation.DisableUserWallet.Builder.SetWrapperObject(this); }
}
[Obsolete(DiagnosticId = "ab_deprecated_operation_wrapper")]
public EnableUserWallet.EnableUserWalletBuilder EnableUserWalletOp
{
get { return Operation.EnableUserWallet.Builder.SetWrapperObject(this); }
}
[Obsolete(DiagnosticId = "ab_deprecated_operation_wrapper")]
public ListUserWalletTransactions.ListUserWalletTransactionsBuilder ListUserWalletTransactionsOp
{
get { return Operation.ListUserWalletTransactions.Builder.SetWrapperObject(this); }
}
[Obsolete(DiagnosticId = "ab_deprecated_operation_wrapper")]
public QueryWallets.QueryWalletsBuilder QueryWalletsOp
{
get { return Operation.QueryWallets.Builder.SetWrapperObject(this); }
}
public BulkCredit.BulkCreditBuilder BulkCreditOp
{
get { return Operation.BulkCredit.Builder.SetWrapperObject(this); }
}
public BulkDebit.BulkDebitBuilder BulkDebitOp
{
get { return Operation.BulkDebit.Builder.SetWrapperObject(this); }
}
[Obsolete(DiagnosticId = "ab_deprecated_operation_wrapper")]
public GetWallet.GetWalletBuilder GetWalletOp
{
get { return Operation.GetWallet.Builder.SetWrapperObject(this); }
}
public PublicGetMyWallet.PublicGetMyWalletBuilder PublicGetMyWalletOp
{
get { return Operation.PublicGetMyWallet.Builder.SetWrapperObject(this); }
}
public PublicGetWallet.PublicGetWalletBuilder PublicGetWalletOp
{
get { return Operation.PublicGetWallet.Builder.SetWrapperObject(this); }
}
public PublicListUserWalletTransactions.PublicListUserWalletTransactionsBuilder PublicListUserWalletTransactionsOp
{
get { return Operation.PublicListUserWalletTransactions.Builder.SetWrapperObject(this); }
}
#endregion
public Model.PlatformWalletConfigInfo? GetPlatformWalletConfig(GetPlatformWalletConfig input)
{
var response = _sdk.RunRequest(input);
return input.ParseResponse(
response.Code,
response.ContentType,
response.Payload);
}
public async Task<Model.PlatformWalletConfigInfo?> GetPlatformWalletConfigAsync(GetPlatformWalletConfig input)
{
var response = await _sdk.RunRequestAsync(input);
return input.ParseResponse(
response.Code,
response.ContentType,
response.Payload);
}
public Model.PlatformWalletConfigInfo? UpdatePlatformWalletConfig(UpdatePlatformWalletConfig input)
{
var response = _sdk.RunRequest(input);
return input.ParseResponse(
response.Code,
response.ContentType,
response.Payload);
}
public async Task<Model.PlatformWalletConfigInfo?> UpdatePlatformWalletConfigAsync(UpdatePlatformWalletConfig input)
{
var response = await _sdk.RunRequestAsync(input);
return input.ParseResponse(
response.Code,
response.ContentType,
response.Payload);
}
public Model.PlatformWalletConfigInfo? ResetPlatformWalletConfig(ResetPlatformWalletConfig input)
{
var response = _sdk.RunRequest(input);
return input.ParseResponse(
response.Code,
response.ContentType,
response.Payload);
}
public async Task<Model.PlatformWalletConfigInfo?> ResetPlatformWalletConfigAsync(ResetPlatformWalletConfig input)
{
var response = await _sdk.RunRequestAsync(input);
return input.ParseResponse(
response.Code,
response.ContentType,
response.Payload);
}
public List<Model.CurrencyWallet>? QueryUserCurrencyWallets(QueryUserCurrencyWallets input)
{
var response = _sdk.RunRequest(input);
return input.ParseResponse(
response.Code,
response.ContentType,
response.Payload);
}
public async Task<List<Model.CurrencyWallet>?> QueryUserCurrencyWalletsAsync(QueryUserCurrencyWallets input)
{
var response = await _sdk.RunRequestAsync(input);
return input.ParseResponse(
response.Code,
response.ContentType,
response.Payload);
}
public Model.WalletInfo? DebitUserWalletByCurrencyCode(DebitUserWalletByCurrencyCode input)
{
var response = _sdk.RunRequest(input);
return input.ParseResponse(
response.Code,
response.ContentType,
response.Payload);
}
public async Task<Model.WalletInfo?> DebitUserWalletByCurrencyCodeAsync(DebitUserWalletByCurrencyCode input)
{
var response = await _sdk.RunRequestAsync(input);
return input.ParseResponse(
response.Code,
response.ContentType,
response.Payload);
}
public Model.WalletTransactionPagingSlicedResult? ListUserCurrencyTransactions(ListUserCurrencyTransactions input)
{
var response = _sdk.RunRequest(input);
return input.ParseResponse(
response.Code,
response.ContentType,
response.Payload);
}
public async Task<Model.WalletTransactionPagingSlicedResult?> ListUserCurrencyTransactionsAsync(ListUserCurrencyTransactions input)
{
var response = await _sdk.RunRequestAsync(input);
return input.ParseResponse(
response.Code,
response.ContentType,
response.Payload);
}
public void CheckBalance(CheckBalance input)
{
var response = _sdk.RunRequest(input);
input.ParseResponse(
response.Code,
response.ContentType,
response.Payload);
}
public async Task CheckBalanceAsync(CheckBalance input)
{
var response = await _sdk.RunRequestAsync(input);
input.ParseResponse(
response.Code,
response.ContentType,
response.Payload);
}
#pragma warning disable ab_deprecated_operation
[Obsolete(DiagnosticId = "ab_deprecated_operation_wrapper")]
public void CheckWallet(CheckWallet input)
{
var response = _sdk.RunRequest(input);
input.ParseResponse(
response.Code,
response.ContentType,
response.Payload);
}
public async Task CheckWalletAsync(CheckWallet input)
{
var response = await _sdk.RunRequestAsync(input);
input.ParseResponse(
response.Code,
response.ContentType,
response.Payload);
}
#pragma warning restore ab_deprecated_operation
public Model.WalletInfo? CreditUserWallet(CreditUserWallet input)
{
var response = _sdk.RunRequest(input);
return input.ParseResponse(
response.Code,
response.ContentType,
response.Payload);
}
public async Task<Model.WalletInfo?> CreditUserWalletAsync(CreditUserWallet input)
{
var response = await _sdk.RunRequestAsync(input);
return input.ParseResponse(
response.Code,
response.ContentType,
response.Payload);
}
public Model.PlatformWallet? DebitByWalletPlatform(DebitByWalletPlatform input)
{
var response = _sdk.RunRequest(input);
return input.ParseResponse(
response.Code,
response.ContentType,
response.Payload);
}
public async Task<Model.PlatformWallet?> DebitByWalletPlatformAsync(DebitByWalletPlatform input)
{
var response = await _sdk.RunRequestAsync(input);
return input.ParseResponse(
response.Code,
response.ContentType,
response.Payload);
}
public Model.PlatformWallet? PayWithUserWallet(PayWithUserWallet input)
{
var response = _sdk.RunRequest(input);
return input.ParseResponse(
response.Code,
response.ContentType,
response.Payload);
}
public async Task<Model.PlatformWallet?> PayWithUserWalletAsync(PayWithUserWallet input)
{
var response = await _sdk.RunRequestAsync(input);
return input.ParseResponse(
response.Code,
response.ContentType,
response.Payload);
}
#pragma warning disable ab_deprecated_operation
[Obsolete(DiagnosticId = "ab_deprecated_operation_wrapper")]
public Model.WalletInfo? GetUserWallet(GetUserWallet input)
{
var response = _sdk.RunRequest(input);
return input.ParseResponse(
response.Code,
response.ContentType,
response.Payload);
}
public async Task<Model.WalletInfo?> GetUserWalletAsync(GetUserWallet input)
{
var response = await _sdk.RunRequestAsync(input);
return input.ParseResponse(
response.Code,
response.ContentType,
response.Payload);
}
#pragma warning restore ab_deprecated_operation
#pragma warning disable ab_deprecated_operation
[Obsolete(DiagnosticId = "ab_deprecated_operation_wrapper")]
public Model.WalletInfo? DebitUserWallet(DebitUserWallet input)
{
var response = _sdk.RunRequest(input);
return input.ParseResponse(
response.Code,
response.ContentType,
response.Payload);
}
public async Task<Model.WalletInfo?> DebitUserWalletAsync(DebitUserWallet input)
{
var response = await _sdk.RunRequestAsync(input);
return input.ParseResponse(
response.Code,
response.ContentType,
response.Payload);
}
#pragma warning restore ab_deprecated_operation
#pragma warning disable ab_deprecated_operation
[Obsolete(DiagnosticId = "ab_deprecated_operation_wrapper")]
public void DisableUserWallet(DisableUserWallet input)
{
var response = _sdk.RunRequest(input);
input.ParseResponse(
response.Code,
response.ContentType,
response.Payload);
}
public async Task DisableUserWalletAsync(DisableUserWallet input)
{
var response = await _sdk.RunRequestAsync(input);
input.ParseResponse(
response.Code,
response.ContentType,
response.Payload);
}
#pragma warning restore ab_deprecated_operation
#pragma warning disable ab_deprecated_operation
[Obsolete(DiagnosticId = "ab_deprecated_operation_wrapper")]
public void EnableUserWallet(EnableUserWallet input)
{
var response = _sdk.RunRequest(input);
input.ParseResponse(
response.Code,
response.ContentType,
response.Payload);
}
public async Task EnableUserWalletAsync(EnableUserWallet input)
{
var response = await _sdk.RunRequestAsync(input);
input.ParseResponse(
response.Code,
response.ContentType,
response.Payload);
}
#pragma warning restore ab_deprecated_operation
#pragma warning disable ab_deprecated_operation
[Obsolete(DiagnosticId = "ab_deprecated_operation_wrapper")]
public Model.DetailedWalletTransactionPagingSlicedResult? ListUserWalletTransactions(ListUserWalletTransactions input)
{
var response = _sdk.RunRequest(input);
return input.ParseResponse(
response.Code,
response.ContentType,
response.Payload);
}
public async Task<Model.DetailedWalletTransactionPagingSlicedResult?> ListUserWalletTransactionsAsync(ListUserWalletTransactions input)
{
var response = await _sdk.RunRequestAsync(input);
return input.ParseResponse(
response.Code,
response.ContentType,
response.Payload);
}
#pragma warning restore ab_deprecated_operation
#pragma warning disable ab_deprecated_operation
[Obsolete(DiagnosticId = "ab_deprecated_operation_wrapper")]
public Model.WalletPagingSlicedResult? QueryWallets(QueryWallets input)
{
var response = _sdk.RunRequest(input);
return input.ParseResponse(
response.Code,
response.ContentType,
response.Payload);
}
public async Task<Model.WalletPagingSlicedResult?> QueryWalletsAsync(QueryWallets input)
{
var response = await _sdk.RunRequestAsync(input);
return input.ParseResponse(
response.Code,
response.ContentType,
response.Payload);
}
#pragma warning restore ab_deprecated_operation
public Model.BulkCreditResult? BulkCredit(BulkCredit input)
{
var response = _sdk.RunRequest(input);
return input.ParseResponse(
response.Code,
response.ContentType,
response.Payload);
}
public async Task<Model.BulkCreditResult?> BulkCreditAsync(BulkCredit input)
{
var response = await _sdk.RunRequestAsync(input);
return input.ParseResponse(
response.Code,
response.ContentType,
response.Payload);
}
public Model.BulkDebitResult? BulkDebit(BulkDebit input)
{
var response = _sdk.RunRequest(input);
return input.ParseResponse(
response.Code,
response.ContentType,
response.Payload);
}
public async Task<Model.BulkDebitResult?> BulkDebitAsync(BulkDebit input)
{
var response = await _sdk.RunRequestAsync(input);
return input.ParseResponse(
response.Code,
response.ContentType,
response.Payload);
}
#pragma warning disable ab_deprecated_operation
[Obsolete(DiagnosticId = "ab_deprecated_operation_wrapper")]
public Model.WalletInfo? GetWallet(GetWallet input)
{
var response = _sdk.RunRequest(input);
return input.ParseResponse(
response.Code,
response.ContentType,
response.Payload);
}
public async Task<Model.WalletInfo?> GetWalletAsync(GetWallet input)
{
var response = await _sdk.RunRequestAsync(input);
return input.ParseResponse(
response.Code,
response.ContentType,
response.Payload);
}
#pragma warning restore ab_deprecated_operation
public Model.PlatformWallet? PublicGetMyWallet(PublicGetMyWallet input)
{
var response = _sdk.RunRequest(input);
return input.ParseResponse(
response.Code,
response.ContentType,
response.Payload);
}
public async Task<Model.PlatformWallet?> PublicGetMyWalletAsync(PublicGetMyWallet input)
{
var response = await _sdk.RunRequestAsync(input);
return input.ParseResponse(
response.Code,
response.ContentType,
response.Payload);
}
public Model.PlatformWallet? PublicGetWallet(PublicGetWallet input)
{
var response = _sdk.RunRequest(input);
return input.ParseResponse(
response.Code,
response.ContentType,
response.Payload);
}
public async Task<Model.PlatformWallet?> PublicGetWalletAsync(PublicGetWallet input)
{
var response = await _sdk.RunRequestAsync(input);
return input.ParseResponse(
response.Code,
response.ContentType,
response.Payload);
}
public Model.WalletTransactionPagingSlicedResult? PublicListUserWalletTransactions(PublicListUserWalletTransactions input)
{
var response = _sdk.RunRequest(input);
return input.ParseResponse(
response.Code,
response.ContentType,
response.Payload);
}
public async Task<Model.WalletTransactionPagingSlicedResult?> PublicListUserWalletTransactionsAsync(PublicListUserWalletTransactions input)
{
var response = await _sdk.RunRequestAsync(input);
return input.ParseResponse(
response.Code,
response.ContentType,
response.Payload);
}
}
}