/
models.gen.go
928 lines (801 loc) · 42.7 KB
/
models.gen.go
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
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
// Package caleta provides primitives to interact with the openapi HTTP API.
//
// Code generated by github.com/four-fingers/oapi-codegen version v0.0.0-20221219135408-9237c9743c67 DO NOT EDIT.
package caleta
// Defines values for Category.
const (
Baccarat Category = "Baccarat"
BetOnPoker Category = "Bet On Poker"
Bingo Category = "Bingo"
Blackjack Category = "Blackjack"
CasualGames Category = "Casual Games"
FixedOdds Category = "Fixed Odds"
JackpotSlots Category = "Jackpot Slots"
LiveBaccarat Category = "Live Baccarat"
LiveBlackjack Category = "Live Blackjack"
LiveDealer Category = "Live Dealer"
LiveDice Category = "Live Dice"
LiveGames Category = "Live Games"
LiveKeno Category = "Live Keno"
LiveLottery Category = "Live Lottery"
LiveRoulette Category = "Live Roulette"
Lottery Category = "Lottery"
Multiplayer Category = "Multiplayer"
PlayerProps Category = "Player Props"
Poker Category = "Poker"
Roulette Category = "Roulette"
ScratchCards Category = "Scratch Cards"
Sportsbook Category = "Sportsbook"
TableGames Category = "Table Games"
Unknown Category = "Unknown"
VideoBingo Category = "Video Bingo"
VideoPoker Category = "Video Poker"
VideoSlots Category = "Video Slots"
VirtualSports Category = "Virtual Sports"
WheelOfFortune Category = "Wheel of Fortune"
)
// Defines values for Country.
const (
AD Country = "AD"
AE Country = "AE"
AF Country = "AF"
AG Country = "AG"
AI Country = "AI"
AL Country = "AL"
AM Country = "AM"
AO Country = "AO"
AQ Country = "AQ"
AR Country = "AR"
AS Country = "AS"
AT Country = "AT"
AU Country = "AU"
AW Country = "AW"
AX Country = "AX"
AZ Country = "AZ"
BA Country = "BA"
BB Country = "BB"
BD Country = "BD"
BE Country = "BE"
BF Country = "BF"
BG Country = "BG"
BH Country = "BH"
BI Country = "BI"
BJ Country = "BJ"
BL Country = "BL"
BM Country = "BM"
BN Country = "BN"
BO Country = "BO"
BQ Country = "BQ"
BR Country = "BR"
BS Country = "BS"
BT Country = "BT"
BV Country = "BV"
BW Country = "BW"
BY Country = "BY"
BZ Country = "BZ"
CA Country = "CA"
CC Country = "CC"
CD Country = "CD"
CF Country = "CF"
CG Country = "CG"
CH Country = "CH"
CI Country = "CI"
CK Country = "CK"
CL Country = "CL"
CM Country = "CM"
CN Country = "CN"
CO Country = "CO"
CR Country = "CR"
CU Country = "CU"
CV Country = "CV"
CW Country = "CW"
CX Country = "CX"
CY Country = "CY"
CZ Country = "CZ"
DE Country = "DE"
DJ Country = "DJ"
DK Country = "DK"
DM Country = "DM"
DO Country = "DO"
DZ Country = "DZ"
EC Country = "EC"
EE Country = "EE"
EG Country = "EG"
EH Country = "EH"
ER Country = "ER"
ES Country = "ES"
ET Country = "ET"
FI Country = "FI"
FJ Country = "FJ"
FK Country = "FK"
FM Country = "FM"
FO Country = "FO"
FR Country = "FR"
GA Country = "GA"
GB Country = "GB"
GD Country = "GD"
GE Country = "GE"
GF Country = "GF"
GG Country = "GG"
GH Country = "GH"
GI Country = "GI"
GL Country = "GL"
GM Country = "GM"
GN Country = "GN"
GP Country = "GP"
GQ Country = "GQ"
GR Country = "GR"
GS Country = "GS"
GT Country = "GT"
GU Country = "GU"
GW Country = "GW"
GY Country = "GY"
HK Country = "HK"
HM Country = "HM"
HN Country = "HN"
HR Country = "HR"
HT Country = "HT"
HU Country = "HU"
ID Country = "ID"
IE Country = "IE"
IL Country = "IL"
IM Country = "IM"
IN Country = "IN"
IO Country = "IO"
IQ Country = "IQ"
IR Country = "IR"
IS Country = "IS"
IT Country = "IT"
JE Country = "JE"
JM Country = "JM"
JO Country = "JO"
JP Country = "JP"
KE Country = "KE"
KG Country = "KG"
KH Country = "KH"
KI Country = "KI"
KM Country = "KM"
KN Country = "KN"
KP Country = "KP"
KR Country = "KR"
KW Country = "KW"
KY Country = "KY"
KZ Country = "KZ"
LA Country = "LA"
LB Country = "LB"
LC Country = "LC"
LI Country = "LI"
LK Country = "LK"
LR Country = "LR"
LS Country = "LS"
LT Country = "LT"
LU Country = "LU"
LV Country = "LV"
LY Country = "LY"
MA Country = "MA"
MC Country = "MC"
MD Country = "MD"
ME Country = "ME"
MF Country = "MF"
MG Country = "MG"
MH Country = "MH"
MK Country = "MK"
ML Country = "ML"
MM Country = "MM"
MN Country = "MN"
MO Country = "MO"
MP Country = "MP"
MQ Country = "MQ"
MR Country = "MR"
MS Country = "MS"
MT Country = "MT"
MU Country = "MU"
MV Country = "MV"
MW Country = "MW"
MX Country = "MX"
MY Country = "MY"
MZ Country = "MZ"
NA Country = "NA"
NC Country = "NC"
NE Country = "NE"
NF Country = "NF"
NG Country = "NG"
NI Country = "NI"
NL Country = "NL"
NO Country = "NO"
NP Country = "NP"
NR Country = "NR"
NU Country = "NU"
NZ Country = "NZ"
OM Country = "OM"
PA Country = "PA"
PE Country = "PE"
PF Country = "PF"
PG Country = "PG"
PH Country = "PH"
PK Country = "PK"
PL Country = "PL"
PM Country = "PM"
PN Country = "PN"
PR Country = "PR"
PS Country = "PS"
PT Country = "PT"
PW Country = "PW"
PY Country = "PY"
QA Country = "QA"
RE Country = "RE"
RO Country = "RO"
RS Country = "RS"
RU Country = "RU"
RW Country = "RW"
SA Country = "SA"
SB Country = "SB"
SC Country = "SC"
SD Country = "SD"
SE Country = "SE"
SG Country = "SG"
SH Country = "SH"
SI Country = "SI"
SJ Country = "SJ"
SK Country = "SK"
SL Country = "SL"
SM Country = "SM"
SN Country = "SN"
SO Country = "SO"
SR Country = "SR"
SS Country = "SS"
ST Country = "ST"
SV Country = "SV"
SX Country = "SX"
SY Country = "SY"
SZ Country = "SZ"
TC Country = "TC"
TD Country = "TD"
TF Country = "TF"
TG Country = "TG"
TH Country = "TH"
TJ Country = "TJ"
TK Country = "TK"
TL Country = "TL"
TM Country = "TM"
TN Country = "TN"
TO Country = "TO"
TR Country = "TR"
TT Country = "TT"
TV Country = "TV"
TW Country = "TW"
TZ Country = "TZ"
UA Country = "UA"
UG Country = "UG"
UM Country = "UM"
US Country = "US"
UY Country = "UY"
UZ Country = "UZ"
VA Country = "VA"
VC Country = "VC"
VE Country = "VE"
VG Country = "VG"
VI Country = "VI"
VN Country = "VN"
VU Country = "VU"
WF Country = "WF"
WS Country = "WS"
XX Country = "XX"
YE Country = "YE"
YT Country = "YT"
ZA Country = "ZA"
ZM Country = "ZM"
ZW Country = "ZW"
)
// Defines values for Currency.
const (
AED Currency = "AED"
AFN Currency = "AFN"
ALL Currency = "ALL"
AMD Currency = "AMD"
ANG Currency = "ANG"
AOA Currency = "AOA"
ARS Currency = "ARS"
AUD Currency = "AUD"
AWG Currency = "AWG"
AZN Currency = "AZN"
BAM Currency = "BAM"
BBD Currency = "BBD"
BDT Currency = "BDT"
BGN Currency = "BGN"
BHD Currency = "BHD"
BIF Currency = "BIF"
BMD Currency = "BMD"
BND Currency = "BND"
BOB Currency = "BOB"
BRL Currency = "BRL"
BSD Currency = "BSD"
BTN Currency = "BTN"
BWP Currency = "BWP"
BYR Currency = "BYR"
BZD Currency = "BZD"
CAD Currency = "CAD"
CHF Currency = "CHF"
CLP Currency = "CLP"
CNY Currency = "CNY"
COP Currency = "COP"
CRC Currency = "CRC"
CUC Currency = "CUC"
CUP Currency = "CUP"
CVE Currency = "CVE"
CZK Currency = "CZK"
DJF Currency = "DJF"
DKK Currency = "DKK"
DOP Currency = "DOP"
DZD Currency = "DZD"
EGP Currency = "EGP"
ERN Currency = "ERN"
ETB Currency = "ETB"
ETH Currency = "ETH"
EUR Currency = "EUR"
FJD Currency = "FJD"
FKP Currency = "FKP"
GBP Currency = "GBP"
GEL Currency = "GEL"
GHS Currency = "GHS"
GIP Currency = "GIP"
GMD Currency = "GMD"
GNF Currency = "GNF"
GTQ Currency = "GTQ"
GYD Currency = "GYD"
HKD Currency = "HKD"
HNL Currency = "HNL"
HRK Currency = "HRK"
HTG Currency = "HTG"
HUF Currency = "HUF"
IDR Currency = "IDR"
ILS Currency = "ILS"
INR Currency = "INR"
IQD Currency = "IQD"
IRR Currency = "IRR"
ISK Currency = "ISK"
JMD Currency = "JMD"
JOD Currency = "JOD"
JPY Currency = "JPY"
KES Currency = "KES"
KGS Currency = "KGS"
KHR Currency = "KHR"
KMF Currency = "KMF"
KPW Currency = "KPW"
KRW Currency = "KRW"
KWD Currency = "KWD"
KYD Currency = "KYD"
KZT Currency = "KZT"
LAK Currency = "LAK"
LBP Currency = "LBP"
LKR Currency = "LKR"
LRD Currency = "LRD"
LSL Currency = "LSL"
LTC Currency = "LTC"
LTL Currency = "LTL"
LYD Currency = "LYD"
MAD Currency = "MAD"
MBTC Currency = "mBTC"
MDL Currency = "MDL"
METH Currency = "mETH"
MGA Currency = "MGA"
MKD Currency = "MKD"
MLTC Currency = "mLTC"
MMK Currency = "MMK"
MNT Currency = "MNT"
MOP Currency = "MOP"
MRO Currency = "MRO"
MUR Currency = "MUR"
MVR Currency = "MVR"
MWK Currency = "MWK"
MXN Currency = "MXN"
MYR Currency = "MYR"
MZN Currency = "MZN"
NAD Currency = "NAD"
NGN Currency = "NGN"
NIO Currency = "NIO"
NOK Currency = "NOK"
NPR Currency = "NPR"
NZD Currency = "NZD"
OMR Currency = "OMR"
PAB Currency = "PAB"
PEN Currency = "PEN"
PGK Currency = "PGK"
PHP Currency = "PHP"
PKR Currency = "PKR"
PLN Currency = "PLN"
PYG Currency = "PYG"
QAR Currency = "QAR"
RON Currency = "RON"
RSD Currency = "RSD"
RUB Currency = "RUB"
RWF Currency = "RWF"
SAR Currency = "SAR"
SBD Currency = "SBD"
SCR Currency = "SCR"
SDG Currency = "SDG"
SEK Currency = "SEK"
SGD Currency = "SGD"
SLL Currency = "SLL"
SOC Currency = "SOC"
SOS Currency = "SOS"
SRD Currency = "SRD"
SSP Currency = "SSP"
SYP Currency = "SYP"
SZL Currency = "SZL"
THB Currency = "THB"
TJS Currency = "TJS"
TMT Currency = "TMT"
TND Currency = "TND"
TOP Currency = "TOP"
TRY Currency = "TRY"
TTD Currency = "TTD"
TWD Currency = "TWD"
TZS Currency = "TZS"
UAH Currency = "UAH"
UBTC Currency = "uBTC"
UETH Currency = "uETH"
UGX Currency = "UGX"
ULTC Currency = "uLTC"
USD Currency = "USD"
UYU Currency = "UYU"
UZS Currency = "UZS"
VEF Currency = "VEF"
VND Currency = "VND"
VUV Currency = "VUV"
WST Currency = "WST"
XCD Currency = "XCD"
XOF Currency = "XOF"
XPF Currency = "XPF"
XXX Currency = "XXX"
YER Currency = "YER"
ZAR Currency = "ZAR"
ZMW Currency = "ZMW"
ZWD Currency = "ZWD"
)
// Defines values for Language.
const (
De Language = "de"
En Language = "en"
Es Language = "es"
Ja Language = "ja"
Ko Language = "ko"
Pt Language = "pt"
Ru Language = "ru"
Th Language = "th"
Tr Language = "tr"
Vi Language = "vi"
Zh Language = "zh"
)
// Defines values for Platform.
const (
GPLDESKTOP Platform = "GPL_DESKTOP"
GPLMOBILE Platform = "GPL_MOBILE"
)
// Defines values for Status.
const (
RSERRORBETLIMITEXCEEDED Status = "RS_ERROR_BET_LIMIT_EXCEEDED"
RSERRORDUPLICATETRANSACTION Status = "RS_ERROR_DUPLICATE_TRANSACTION"
RSERRORINVALIDGAME Status = "RS_ERROR_INVALID_GAME"
RSERRORINVALIDSIGNATURE Status = "RS_ERROR_INVALID_SIGNATURE"
RSERRORINVALIDTOKEN Status = "RS_ERROR_INVALID_TOKEN"
RSERRORNOTENOUGHMONEY Status = "RS_ERROR_NOT_ENOUGH_MONEY"
RSERRORTIMEOUT Status = "RS_ERROR_TIMEOUT"
RSERRORTOKENEXPIRED Status = "RS_ERROR_TOKEN_EXPIRED"
RSERRORTRANSACTIONDOESNOTEXIST Status = "RS_ERROR_TRANSACTION_DOES_NOT_EXIST"
RSERRORTRANSACTIONROLLEDBACK Status = "RS_ERROR_TRANSACTION_ROLLED_BACK"
RSERRORUNKNOWN Status = "RS_ERROR_UNKNOWN"
RSERRORUSERDISABLED Status = "RS_ERROR_USER_DISABLED"
RSERRORWRONGCURRENCY Status = "RS_ERROR_WRONG_CURRENCY"
RSERRORWRONGSYNTAX Status = "RS_ERROR_WRONG_SYNTAX"
RSERRORWRONGTYPES Status = "RS_ERROR_WRONG_TYPES"
RSOK Status = "RS_OK"
)
// BalanceResponse defines model for BalanceResponse.
type BalanceResponse struct {
// Balance We use integers to represent the amount of money. To convert real float value to integer we multiply it by 100000. Example: $3.56 must be represented as 356000
Balance *MoneyAmount `json:"balance,omitempty"`
// Currency ISO 4217 currency code. Following enum contains all currencies supported by our system. Existing of currency in this list doesn't mean that all providers support native game play with it. Please contact us to know which provider supports which currencies.
Currency *Currency `json:"currency,omitempty"`
// RequestUuid Standard 16-byte UUID. This id can be seen as network layer action. An id of an action that is generated for each our call to Operator. Used to sync Hub88 and Operator sides for debugging purposes. Operator has to respond with the same request_uuid as the one that was received in request.
RequestUuid RequestUuid `json:"request_uuid"`
// Status Response status usage:<br/>RS_OK - when transaction was processed correctly or was already processed before.<br/>RS_ERROR_UNKNOWN - use this when you need a generic error code<br/>RS_ERROR_TIMEOUT - when the server was disconnected by timeout<br/>RS_ERROR_INVALID_TOKEN - when token never existed or is not associated to this player.<br/>RS_ERROR_INVALID_GAME - when the game doesn't exist<br/>RS_ERROR_WRONG_CURRENCY - when the currency is not active or does not exist<br/>RS_ERROR_NOT_ENOUGH_MONEY - when user is short of money<br/>RS_ERROR_USER_DISABLED when user is banned or inactive<br/>RS_ERROR_INVALID_SIGNATURE - when signature doesn't match<br/>RS_ERROR_TOKEN_EXPIRED - when a new token exists (this rule applies only for /wallet/bet)<br/>RS_ERROR_WRONG_SYNTAX - message can't be decoded to JSON<br/>RS_ERROR_WRONG_TYPES - i.e. when a type should be integer and came as string<br/>RS_ERROR_DUPLICATE_TRANSACTION - when the same transaction_uuid appears but for a different user, round and game, otherwise returns RS_OK<br/>RS_ERROR_TRANSACTION_DOES_NOT_EXIST - when doing a 'win' transaction and the 'bet' transaction id doesn't exist<br/>RS_ERROR_TRANSACTION_ROLLED_BACK - when a 'win' transaction happens in name of a rolled back transaction (when receiving a 'rollback' replies with 'RS_OK'<br/>RS_ERROR_BET_LIMIT_EXCEEDED - when the user exceeded its limits
Status Status `json:"status"`
// User Unique User ID in the Operator�s system. In case of DEMO gameplay, this parameter may be omitted.
User *User `json:"user,omitempty"`
}
// Game Caleta game item
type Game struct {
// BlockedCountries List of blocked countries. Game shouldn�t be shown and launched for users from these countries.
BlockedCountries BlockedCountries `json:"blocked_countries"`
// Category Game category. Following enum contains all possible values.
Category Category `json:"category"`
// Enabled Shows whether game is enabled or not
Enabled bool `json:"enabled"`
// GameId Deprecated: Use `game_code` instead.<br/>Unique game ID Caleta system. Can be obtained from `/api/game/list` endpoint.<br/>Note: this value may change from each server (staging, production)
GameId GameId `json:"game_id"`
// Name Verbose game name
Name string `json:"name"`
// Platforms List of supported platforms
Platforms []Platform `json:"platforms"`
// Product Name of the game product (Game Provider).
Product Product `json:"product"`
// UrlBackground Game background image URL
UrlBackground string `json:"url_background"`
// UrlThumb Game preview image URL
UrlThumb string `json:"url_thumb"`
}
// Games defines model for Games.
type Games = []Game
// BlockedCountries List of blocked countries. Game shouldn�t be shown and launched for users from these countries.
type BlockedCountries = []Country
// CampaignUuid Each Free Bet campaign contains an unique identifier on Caleta side. Campaings holds information of game where Free Bet will happen, total of spins, bet value and period of campaign.
type CampaignUuid = string
// Category Game category. Following enum contains all possible values.
type Category string
// Country User's country ISO 3166-1 code. Following enum contains all supported values.
type Country string
// Currency ISO 4217 currency code. Following enum contains all currencies supported by our system. Existing of currency in this list doesn't mean that all providers support native game play with it. Please contact us to know which provider supports which currencies.
type Currency string
// GameCode Unique Game Code on Caleta system. Can be obtained from `/api/game/list` endpoint. This variable intends to replace `game_id`.
type GameCode = string
// GameId Deprecated: Use `game_code` instead.<br/>Unique game ID Caleta system. Can be obtained from `/api/game/list` endpoint.<br/>Note: this value may change from each server (staging, production)
type GameId = int
// GameListBody defines model for game_list_body.
type GameListBody struct {
// OperatorId Unique identifier of Operator at Caleta Gaming System. Used to authorize incoming requests. Can be obtained Caleta back office after Operator is registered and set up Caleta system.
OperatorId OperatorId `json:"operator_id"`
}
// GameRoundBody defines model for game_round_body.
type GameRoundBody struct {
// OperatorId Unique identifier of Operator at Caleta Gaming System. Used to authorize incoming requests. Can be obtained Caleta back office after Operator is registered and set up Caleta system.
OperatorId OperatorId `json:"operator_id"`
// Round Game round id. Used to relate all bets and wins in one round. All transactions related to the same round will have the same value in this field. It's unique through whole system.
Round *Round `json:"round,omitempty"`
// SubPartnerId Id of Operator's sub-partner (brand, whitelabel, site, etc.) which uses same integration and credentials as Operator.
SubPartnerId *SubPartnerId `json:"sub_partner_id,omitempty"`
// TransactionUuid Unique wallet transaction.
TransactionUuid *TransactionUuid `json:"transaction_uuid,omitempty"`
// User Unique User ID in the Operator�s system. In case of DEMO gameplay, this parameter may be omitted.
User *User `json:"user,omitempty"`
}
// GameUrlBody defines model for game_url_body.
type GameUrlBody struct {
// Country User's country ISO 3166-1 code. Following enum contains all supported values.
Country Country `json:"country"`
// Currency ISO 4217 currency code. Following enum contains all currencies supported by our system. Existing of currency in this list doesn't mean that all providers support native game play with it. Please contact us to know which provider supports which currencies.
Currency Currency `json:"currency"`
// DepositUrl Some games have button that redirects User to page where he can deposit money. Put your URL to deposit page here.
DepositUrl *string `json:"deposit_url,omitempty"`
// GameCode Unique Game Code on Caleta system. Can be obtained from `/api/game/list` endpoint. This variable intends to replace `game_id`.
GameCode GameCode `json:"game_code"`
// GameId Deprecated: Use `game_code` instead.<br/>Unique game ID Caleta system. Can be obtained from `/api/game/list` endpoint.<br/>Note: this value may change from each server (staging, production)
GameId *GameId `json:"game_id,omitempty"`
// Lang Supported ISO 639-1 language code, default is 'en'.
Lang Language `json:"lang"`
// LobbyUrl Most games have a `Home` button that redirects the User back to the lobby. Put the lobby URL here.
LobbyUrl string `json:"lobby_url"`
// OperatorId Unique identifier of Operator at Caleta Gaming System. Used to authorize incoming requests. Can be obtained Caleta back office after Operator is registered and set up Caleta system.
OperatorId OperatorId `json:"operator_id"`
// SubPartnerId Id of Operator's sub-partner (brand, whitelabel, site, etc.) which uses same integration and credentials as Operator.
SubPartnerId SubPartnerId `json:"sub_partner_id"`
// Token Operator's back end generates a token associated with the User, game, his or her current currency and maybe other parameters depending on the Operator's preferences. The token acts as an ID parameter for the game session. It is important that the currency is not changed during the current game session. If the User changes the currency or display unit, the Operator's backend needs to generate a new token and re-open the game with new token. In case of DEMO gameplay, this parameter may be omitted.<br/>A token should be valid for all bet transactions until a new one is generated, expired tokens should continue be valid for Win/Rollback transactions if is related to a previous existing bet.
Token *Token `json:"token,omitempty"`
// User Unique User ID in the Operator�s system. In case of DEMO gameplay, this parameter may be omitted.
User *User `json:"user,omitempty"`
}
// InlineResponse200 defines model for inline_response_200.
type InlineResponse200 struct {
// Url Landing URL of chosen game
Url *string `json:"url,omitempty"`
}
// InlineResponse2001 defines model for inline_response_200_1.
type InlineResponse2001 struct {
// Token Operator's back end generates a token associated with the User, game, his or her current currency and maybe other parameters depending on the Operator's preferences. The token acts as an ID parameter for the game session. It is important that the currency is not changed during the current game session. If the User changes the currency or display unit, the Operator's backend needs to generate a new token and re-open the game with new token. In case of DEMO gameplay, this parameter may be omitted.<br/>A token should be valid for all bet transactions until a new one is generated, expired tokens should continue be valid for Win/Rollback transactions if is related to a previous existing bet.
Token *Token `json:"token,omitempty"`
}
// InlineResponse404 defines model for inline_response_404.
type InlineResponse404 struct {
// Error Reason why request failed
Error *string `json:"error,omitempty"`
}
// IsFree Flag which shows that transaction was generated by a promotional tool (FreeSpins, etc). Usually, these transactions are credited to bonus wallets (if available).
type IsFree = bool
// Language Supported ISO 639-1 language code, default is 'en'.
type Language string
// MoneyAmount We use integers to represent the amount of money. To convert real float value to integer we multiply it by 100000. Example: $3.56 must be represented as 356000
type MoneyAmount = int
// MsgTimestamp Event or transaction timestamp in UTC
type MsgTimestamp caletaDate
// OperatorId Unique identifier of Operator at Caleta Gaming System. Used to authorize incoming requests. Can be obtained Caleta back office after Operator is registered and set up Caleta system.
type OperatorId = string
// Platform User's platform. Affects what kind of game layout will be returned. `GPL_MOBILE` for mobiles and `GPL_DESKTOP` for desktop mode. Some Providers ignore this option and choose mode based on User's browser attributes (user-agent, resolution, ratio, orientation).
type Platform string
// Product Name of the game product (Game Provider).
type Product = string
// RequestUuid Standard 16-byte UUID. This id can be seen as network layer action. An id of an action that is generated for each our call to Operator. Used to sync Hub88 and Operator sides for debugging purposes. Operator has to respond with the same request_uuid as the one that was received in request.
type RequestUuid = string
// RewardUuid This holds the uuid of a reward given to a player on Caleta side. Rewards holds information about which campaigns belong, player, quantity left of Free Bets.
type RewardUuid = string
// Round Game round id. Used to relate all bets and wins in one round. All transactions related to the same round will have the same value in this field. It's unique through whole system.
type Round = string
// RoundClosed Denotes when the round is closed
type RoundClosed = bool
// Status Response status usage:<br/>RS_OK - when transaction was processed correctly or was already processed before.<br/>RS_ERROR_UNKNOWN - use this when you need a generic error code<br/>RS_ERROR_TIMEOUT - when the server was disconnected by timeout<br/>RS_ERROR_INVALID_TOKEN - when token never existed or is not associated to this player.<br/>RS_ERROR_INVALID_GAME - when the game doesn't exist<br/>RS_ERROR_WRONG_CURRENCY - when the currency is not active or does not exist<br/>RS_ERROR_NOT_ENOUGH_MONEY - when user is short of money<br/>RS_ERROR_USER_DISABLED when user is banned or inactive<br/>RS_ERROR_INVALID_SIGNATURE - when signature doesn't match<br/>RS_ERROR_TOKEN_EXPIRED - when a new token exists (this rule applies only for /wallet/bet)<br/>RS_ERROR_WRONG_SYNTAX - message can't be decoded to JSON<br/>RS_ERROR_WRONG_TYPES - i.e. when a type should be integer and came as string<br/>RS_ERROR_DUPLICATE_TRANSACTION - when the same transaction_uuid appears but for a different user, round and game, otherwise returns RS_OK<br/>RS_ERROR_TRANSACTION_DOES_NOT_EXIST - when doing a 'win' transaction and the 'bet' transaction id doesn't exist<br/>RS_ERROR_TRANSACTION_ROLLED_BACK - when a 'win' transaction happens in name of a rolled back transaction (when receiving a 'rollback' replies with 'RS_OK'<br/>RS_ERROR_BET_LIMIT_EXCEEDED - when the user exceeded its limits
type Status string
// SubPartnerId Id of Operator's sub-partner (brand, whitelabel, site, etc.) which uses same integration and credentials as Operator.
type SubPartnerId = string
// SupplierUser The name of the user in Provider's system (in case Operator needs to find user in Provder's back office or report problem with the user). If value is NULL, the Operator can search for their own user_id.
type SupplierUser = string
// Token Operator's back end generates a token associated with the User, game, his or her current currency and maybe other parameters depending on the Operator's preferences. The token acts as an ID parameter for the game session. It is important that the currency is not changed during the current game session. If the User changes the currency or display unit, the Operator's backend needs to generate a new token and re-open the game with new token. In case of DEMO gameplay, this parameter may be omitted.<br/>A token should be valid for all bet transactions until a new one is generated, expired tokens should continue be valid for Win/Rollback transactions if is related to a previous existing bet.
type Token = string
// TransactionUuid Unique wallet transaction.
type TransactionUuid = string
// User Unique User ID in the Operator�s system. In case of DEMO gameplay, this parameter may be omitted.
type User = string
// WalletBalanceBody defines model for wallet_balance_body.
type WalletBalanceBody struct {
// GameCode Unique Game Code on Caleta system. Can be obtained from `/api/game/list` endpoint. This variable intends to replace `game_id`.
GameCode GameCode `json:"game_code"`
// GameId Deprecated: Use `game_code` instead.<br/>Unique game ID Caleta system. Can be obtained from `/api/game/list` endpoint.<br/>Note: this value may change from each server (staging, production)
GameId *GameId `json:"game_id,omitempty"`
// RequestUuid Standard 16-byte UUID. This id can be seen as network layer action. An id of an action that is generated for each our call to Operator. Used to sync Hub88 and Operator sides for debugging purposes. Operator has to respond with the same request_uuid as the one that was received in request.
RequestUuid RequestUuid `json:"request_uuid"`
// SupplierUser The name of the user in Provider's system (in case Operator needs to find user in Provder's back office or report problem with the user). If value is NULL, the Operator can search for their own user_id.
SupplierUser SupplierUser `json:"supplier_user"`
// Token Operator's back end generates a token associated with the User, game, his or her current currency and maybe other parameters depending on the Operator's preferences. The token acts as an ID parameter for the game session. It is important that the currency is not changed during the current game session. If the User changes the currency or display unit, the Operator's backend needs to generate a new token and re-open the game with new token. In case of DEMO gameplay, this parameter may be omitted.<br/>A token should be valid for all bet transactions until a new one is generated, expired tokens should continue be valid for Win/Rollback transactions if is related to a previous existing bet.
Token Token `json:"token"`
}
// WalletBetBody defines model for wallet_bet_body.
type WalletBetBody struct {
// Amount We use integers to represent the amount of money. To convert real float value to integer we multiply it by 100000. Example: $3.56 must be represented as 356000
Amount MoneyAmount `json:"amount"`
// Bet Field for metadata related to transaction, such as type of bet, value, time, etc. Differs from game to game. Not relevant for transaction processing procedure but could be useful for statistics or activity backtracking.
Bet *string `json:"bet,omitempty"`
// CampaignUuid Each Free Bet campaign contains an unique identifier on Caleta side. Campaings holds information of game where Free Bet will happen, total of spins, bet value and period of campaign.
CampaignUuid *CampaignUuid `json:"campaign_uuid,omitempty"`
// Currency ISO 4217 currency code. Following enum contains all currencies supported by our system. Existing of currency in this list doesn't mean that all providers support native game play with it. Please contact us to know which provider supports which currencies.
Currency Currency `json:"currency"`
// GameCode Unique Game Code on Caleta system. Can be obtained from `/api/game/list` endpoint. This variable intends to replace `game_id`.
GameCode GameCode `json:"game_code"`
// GameId Deprecated: Use `game_code` instead.<br/>Unique game ID Caleta system. Can be obtained from `/api/game/list` endpoint.<br/>Note: this value may change from each server (staging, production)
GameId *GameId `json:"game_id,omitempty"`
// IsFree Flag which shows that transaction was generated by a promotional tool (FreeSpins, etc). Usually, these transactions are credited to bonus wallets (if available).
IsFree IsFree `json:"is_free"`
// RequestUuid Standard 16-byte UUID. This id can be seen as network layer action. An id of an action that is generated for each our call to Operator. Used to sync Hub88 and Operator sides for debugging purposes. Operator has to respond with the same request_uuid as the one that was received in request.
RequestUuid RequestUuid `json:"request_uuid"`
// RewardUuid This holds the uuid of a reward given to a player on Caleta side. Rewards holds information about which campaigns belong, player, quantity left of Free Bets.
RewardUuid *RewardUuid `json:"reward_uuid,omitempty"`
// Round Game round id. Used to relate all bets and wins in one round. All transactions related to the same round will have the same value in this field. It's unique through whole system.
Round Round `json:"round"`
// RoundClosed Denotes when the round is closed
RoundClosed RoundClosed `json:"round_closed"`
// SupplierUser The name of the user in Provider's system (in case Operator needs to find user in Provder's back office or report problem with the user). If value is NULL, the Operator can search for their own user_id.
SupplierUser SupplierUser `json:"supplier_user"`
// Token Operator's back end generates a token associated with the User, game, his or her current currency and maybe other parameters depending on the Operator's preferences. The token acts as an ID parameter for the game session. It is important that the currency is not changed during the current game session. If the User changes the currency or display unit, the Operator's backend needs to generate a new token and re-open the game with new token. In case of DEMO gameplay, this parameter may be omitted.<br/>A token should be valid for all bet transactions until a new one is generated, expired tokens should continue be valid for Win/Rollback transactions if is related to a previous existing bet.
Token Token `json:"token"`
// TransactionUuid Unique wallet transaction.
TransactionUuid TransactionUuid `json:"transaction_uuid"`
}
// WalletCheckBody defines model for wallet_check_body.
type WalletCheckBody struct {
// Token Operator's back end generates a token associated with the User, game, his or her current currency and maybe other parameters depending on the Operator's preferences. The token acts as an ID parameter for the game session. It is important that the currency is not changed during the current game session. If the User changes the currency or display unit, the Operator's backend needs to generate a new token and re-open the game with new token. In case of DEMO gameplay, this parameter may be omitted.<br/>A token should be valid for all bet transactions until a new one is generated, expired tokens should continue be valid for Win/Rollback transactions if is related to a previous existing bet.
Token Token `json:"token"`
}
// WalletRollbackBody defines model for wallet_rollback_body.
type WalletRollbackBody struct {
// GameCode Unique Game Code on Caleta system. Can be obtained from `/api/game/list` endpoint. This variable intends to replace `game_id`.
GameCode GameCode `json:"game_code"`
// GameId Deprecated: Use `game_code` instead.<br/>Unique game ID Caleta system. Can be obtained from `/api/game/list` endpoint.<br/>Note: this value may change from each server (staging, production)
GameId *GameId `json:"game_id,omitempty"`
// IsFree Flag which shows that transaction was generated by a promotional tool (FreeSpins, etc). Usually, these transactions are credited to bonus wallets (if available).
IsFree *IsFree `json:"is_free,omitempty"`
// ReferenceTransactionUuid Unique identifier of the transaction that this transaction is referencing. In case of rollback, this field will contain transaction_uuid of the transaction which needs to be rolled back. In case of win, there will be transaction_uuid of the bet to which this win is related.
ReferenceTransactionUuid string `json:"reference_transaction_uuid"`
// RequestUuid Standard 16-byte UUID. This id can be seen as network layer action. An id of an action that is generated for each our call to Operator. Used to sync Hub88 and Operator sides for debugging purposes. Operator has to respond with the same request_uuid as the one that was received in request.
RequestUuid RequestUuid `json:"request_uuid"`
// Round Game round id. Used to relate all bets and wins in one round. All transactions related to the same round will have the same value in this field. It's unique through whole system.
Round Round `json:"round"`
// RoundClosed Denotes when the round is closed
RoundClosed RoundClosed `json:"round_closed"`
// Token Operator's back end generates a token associated with the User, game, his or her current currency and maybe other parameters depending on the Operator's preferences. The token acts as an ID parameter for the game session. It is important that the currency is not changed during the current game session. If the User changes the currency or display unit, the Operator's backend needs to generate a new token and re-open the game with new token. In case of DEMO gameplay, this parameter may be omitted.<br/>A token should be valid for all bet transactions until a new one is generated, expired tokens should continue be valid for Win/Rollback transactions if is related to a previous existing bet.
Token Token `json:"token"`
// TransactionUuid Unique wallet transaction.
TransactionUuid TransactionUuid `json:"transaction_uuid"`
// User Unique User ID in the Operator�s system. In case of DEMO gameplay, this parameter may be omitted.
User *User `json:"user,omitempty"`
}
// WalletWinBody defines model for wallet_win_body.
type WalletWinBody struct {
// Amount We use integers to represent the amount of money. To convert real float value to integer we multiply it by 100000. Example: $3.56 must be represented as 356000
Amount MoneyAmount `json:"amount"`
// Bet Field for metadata related to transaction, such as type of bet, value, time, etc. Differs from game to game. Not relevant for transaction processing procedure but could be useful for statistics or activity backtracking.
Bet *string `json:"bet,omitempty"`
// CampaignUuid Each Free Bet campaign contains an unique identifier on Caleta side. Campaings holds information of game where Free Bet will happen, total of spins, bet value and period of campaign.
CampaignUuid *CampaignUuid `json:"campaign_uuid,omitempty"`
// Currency ISO 4217 currency code. Following enum contains all currencies supported by our system. Existing of currency in this list doesn't mean that all providers support native game play with it. Please contact us to know which provider supports which currencies.
Currency Currency `json:"currency"`
// GameCode Unique Game Code on Caleta system. Can be obtained from `/api/game/list` endpoint. This variable intends to replace `game_id`.
GameCode GameCode `json:"game_code"`
// GameId Deprecated: Use `game_code` instead.<br/>Unique game ID Caleta system. Can be obtained from `/api/game/list` endpoint.<br/>Note: this value may change from each server (staging, production)
GameId *GameId `json:"game_id,omitempty"`
// IsFree Flag which shows that transaction was generated by a promotional tool (FreeSpins, etc). Usually, these transactions are credited to bonus wallets (if available).
IsFree IsFree `json:"is_free"`
// JackpotWin This field is included if a jackpot win occurred. The reported value indicate how much of the win amount was contributed to from winning the jackpot. This value is represented as an integer similar to amount.
JackpotWin *int `json:"jackpot_win,omitempty"`
// ReferenceTransactionUuid Unique identifier of the transaction that this transaction is referencing. In case of rollback, this field will contain transaction_uuid of the transaction which needs to be rolled back. In case of win, there will be transaction_uuid of the bet to which this win is related.
ReferenceTransactionUuid string `json:"reference_transaction_uuid"`
// RequestUuid Standard 16-byte UUID. This id can be seen as network layer action. An id of an action that is generated for each our call to Operator. Used to sync Hub88 and Operator sides for debugging purposes. Operator has to respond with the same request_uuid as the one that was received in request.
RequestUuid RequestUuid `json:"request_uuid"`
// RewardUuid This holds the uuid of a reward given to a player on Caleta side. Rewards holds information about which campaigns belong, player, quantity left of Free Bets.
RewardUuid *RewardUuid `json:"reward_uuid,omitempty"`
// Round Game round id. Used to relate all bets and wins in one round. All transactions related to the same round will have the same value in this field. It's unique through whole system.
Round Round `json:"round"`
// RoundClosed Denotes when the round is closed
RoundClosed RoundClosed `json:"round_closed"`
// SupplierUser The name of the user in Provider's system (in case Operator needs to find user in Provder's back office or report problem with the user). If value is NULL, the Operator can search for their own user_id.
SupplierUser SupplierUser `json:"supplier_user"`
// Token Operator's back end generates a token associated with the User, game, his or her current currency and maybe other parameters depending on the Operator's preferences. The token acts as an ID parameter for the game session. It is important that the currency is not changed during the current game session. If the User changes the currency or display unit, the Operator's backend needs to generate a new token and re-open the game with new token. In case of DEMO gameplay, this parameter may be omitted.<br/>A token should be valid for all bet transactions until a new one is generated, expired tokens should continue be valid for Win/Rollback transactions if is related to a previous existing bet.
Token Token `json:"token"`
// TransactionUuid Unique wallet transaction.
TransactionUuid TransactionUuid `json:"transaction_uuid"`
}
// GamelistParams defines parameters for Gamelist.
type GamelistParams struct {
// XAuthSignature RSA-SHA256 is used to sign the request body using the private key. The signature is validated using the public key associated with provided operator_id.
XAuthSignature string `json:"X-Auth-Signature"`
}
// GameroundParams defines parameters for Gameround.
type GameroundParams struct {
// XAuthSignature RSA-SHA256 is used to sign the request body using the private key. The signature is validated using the public key associated with provided operator_id.
XAuthSignature string `json:"X-Auth-Signature"`
}
// GameurlParams defines parameters for Gameurl.
type GameurlParams struct {
// XAuthSignature RSA-SHA256 is used to sign the request body using the private key. The signature is validated using the public key associated with provided operator_id.
XAuthSignature string `json:"X-Auth-Signature"`
}
// WalletbalanceParams defines parameters for Walletbalance.
type WalletbalanceParams struct {
// XAuthSignature RSA-SHA256 is used to sign the request body using the private key. The signature is validated using the public key sent to operator.
XAuthSignature string `json:"X-Auth-Signature"`
}
// WalletbetParams defines parameters for Walletbet.
type WalletbetParams struct {
// XAuthSignature RSA-SHA256 is used to sign the request body using the private key. The signature is validated using the public key sent to operator.
XAuthSignature string `json:"X-Auth-Signature"`
XMsgTimestamp *MsgTimestamp `json:"X-Msg-Timestamp,omitempty"`
}
// WalletcheckParams defines parameters for Walletcheck.
type WalletcheckParams struct {
// XAuthSignature RSA-SHA256 is used to sign the request body using the private key. The signature is validated using the public key associated with provided operator_id.
XAuthSignature string `json:"X-Auth-Signature"`
}
// WalletrollbackParams defines parameters for Walletrollback.
type WalletrollbackParams struct {
// XAuthSignature RSA-SHA256 is used to sign the request body using the private key. The signature is validated using the public key sent to operator.
XAuthSignature string `json:"X-Auth-Signature"`
XMsgTimestamp *MsgTimestamp `json:"X-Msg-Timestamp,omitempty"`
}
// TransactionwinParams defines parameters for Transactionwin.
type TransactionwinParams struct {
// XAuthSignature RSA-SHA256 is used to sign the request body using the private key. The signature is validated using the public key sent to operator.
XAuthSignature string `json:"X-Auth-Signature"`
XMsgTimestamp *MsgTimestamp `json:"X-Msg-Timestamp,omitempty"`
}
// GamelistJSONRequestBody defines body for Gamelist for application/json ContentType.
type GamelistJSONRequestBody = GameListBody
// GameroundJSONRequestBody defines body for Gameround for application/json ContentType.
type GameroundJSONRequestBody = GameRoundBody
// GameurlJSONRequestBody defines body for Gameurl for application/json ContentType.
type GameurlJSONRequestBody = GameUrlBody
// WalletbalanceJSONRequestBody defines body for Walletbalance for application/json ContentType.
type WalletbalanceJSONRequestBody = WalletBalanceBody
// WalletbetJSONRequestBody defines body for Walletbet for application/json ContentType.
type WalletbetJSONRequestBody = WalletBetBody
// WalletcheckJSONRequestBody defines body for Walletcheck for application/json ContentType.
type WalletcheckJSONRequestBody = WalletCheckBody
// WalletrollbackJSONRequestBody defines body for Walletrollback for application/json ContentType.
type WalletrollbackJSONRequestBody = WalletRollbackBody
// TransactionwinJSONRequestBody defines body for Transactionwin for application/json ContentType.
type TransactionwinJSONRequestBody = WalletWinBody