protobuf-platform 1.2.651 → 1.2.653
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/analytic/analytic.proto +15 -0
- package/analytic/analytic_grpc_pb.js +34 -0
- package/analytic/analytic_pb.js +364 -0
- package/package.json +1 -1
- package/payment/payment.proto +7 -0
- package/payment/payment_pb.js +98 -2
package/analytic/analytic.proto
CHANGED
|
@@ -23,6 +23,8 @@ service Analytic {
|
|
|
23
23
|
rpc getScaleoActivityBuckets(ScaleoActivityBucketsRequest) returns (ScaleoActivityBucketsResponse);
|
|
24
24
|
// Affiliate Data API: wager aggregation, filtering, sorting, and pagination are owned by analytic-service.
|
|
25
25
|
rpc getAffiliateWageredPlayers(GetAffiliateWageredPlayersRequest) returns (GetAffiliateWageredPlayersResponse);
|
|
26
|
+
// Lifetime casino Real GGR for one player. Analytic owns the aggregate.
|
|
27
|
+
rpc getUserCasinoRealGgr(GetUserCasinoRealGgrRequest) returns (GetUserCasinoRealGgrResponse);
|
|
26
28
|
}
|
|
27
29
|
|
|
28
30
|
//Technical
|
|
@@ -323,4 +325,17 @@ message GetAffiliateWageredPlayersResponse {
|
|
|
323
325
|
repeated AffiliateWageredPlayerItem items = 1;
|
|
324
326
|
optional int32 total_items = 2;
|
|
325
327
|
optional int32 total_pages = 3;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
// Lifetime casino Real GGR.
|
|
331
|
+
// real_ggr is the existing GameActions.ggr_real sum: real-money stakes minus real-money winnings.
|
|
332
|
+
// Bonus gameplay, sport, deposits, withdrawals, hold, and wallet balance are not included.
|
|
333
|
+
// No real-money gameplay returns a normalized zero. The sign is preserved.
|
|
334
|
+
message GetUserCasinoRealGgrRequest {
|
|
335
|
+
int32 user_id = 1;
|
|
336
|
+
}
|
|
337
|
+
message GetUserCasinoRealGgrResponse {
|
|
338
|
+
int32 user_id = 1;
|
|
339
|
+
string currency = 2; // Brand base currency of the stored aggregate.
|
|
340
|
+
string real_ggr = 3; // Signed major-unit decimal string.
|
|
326
341
|
}
|
|
@@ -70,6 +70,28 @@ function deserialize_analytic_GetAffiliateWageredPlayersResponse(buffer_arg) {
|
|
|
70
70
|
return analytic_pb.GetAffiliateWageredPlayersResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
+
function serialize_analytic_GetUserCasinoRealGgrRequest(arg) {
|
|
74
|
+
if (!(arg instanceof analytic_pb.GetUserCasinoRealGgrRequest)) {
|
|
75
|
+
throw new Error('Expected argument of type analytic.GetUserCasinoRealGgrRequest');
|
|
76
|
+
}
|
|
77
|
+
return Buffer.from(arg.serializeBinary());
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
function deserialize_analytic_GetUserCasinoRealGgrRequest(buffer_arg) {
|
|
81
|
+
return analytic_pb.GetUserCasinoRealGgrRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
function serialize_analytic_GetUserCasinoRealGgrResponse(arg) {
|
|
85
|
+
if (!(arg instanceof analytic_pb.GetUserCasinoRealGgrResponse)) {
|
|
86
|
+
throw new Error('Expected argument of type analytic.GetUserCasinoRealGgrResponse');
|
|
87
|
+
}
|
|
88
|
+
return Buffer.from(arg.serializeBinary());
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
function deserialize_analytic_GetUserCasinoRealGgrResponse(buffer_arg) {
|
|
92
|
+
return analytic_pb.GetUserCasinoRealGgrResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
93
|
+
}
|
|
94
|
+
|
|
73
95
|
function serialize_analytic_GlobalCasinoResponse(arg) {
|
|
74
96
|
if (!(arg instanceof analytic_pb.GlobalCasinoResponse)) {
|
|
75
97
|
throw new Error('Expected argument of type analytic.GlobalCasinoResponse');
|
|
@@ -323,6 +345,18 @@ getAffiliateWageredPlayers: {
|
|
|
323
345
|
responseSerialize: serialize_analytic_GetAffiliateWageredPlayersResponse,
|
|
324
346
|
responseDeserialize: deserialize_analytic_GetAffiliateWageredPlayersResponse,
|
|
325
347
|
},
|
|
348
|
+
// Lifetime casino Real GGR for one player. Analytic owns the aggregate.
|
|
349
|
+
getUserCasinoRealGgr: {
|
|
350
|
+
path: '/analytic.Analytic/getUserCasinoRealGgr',
|
|
351
|
+
requestStream: false,
|
|
352
|
+
responseStream: false,
|
|
353
|
+
requestType: analytic_pb.GetUserCasinoRealGgrRequest,
|
|
354
|
+
responseType: analytic_pb.GetUserCasinoRealGgrResponse,
|
|
355
|
+
requestSerialize: serialize_analytic_GetUserCasinoRealGgrRequest,
|
|
356
|
+
requestDeserialize: deserialize_analytic_GetUserCasinoRealGgrRequest,
|
|
357
|
+
responseSerialize: serialize_analytic_GetUserCasinoRealGgrResponse,
|
|
358
|
+
responseDeserialize: deserialize_analytic_GetUserCasinoRealGgrResponse,
|
|
359
|
+
},
|
|
326
360
|
};
|
|
327
361
|
|
|
328
362
|
exports.AnalyticClient = grpc.makeGenericClientConstructor(AnalyticService, 'Analytic');
|
package/analytic/analytic_pb.js
CHANGED
|
@@ -34,6 +34,8 @@ goog.exportSymbol('proto.analytic.GameItemWrapper', null, global);
|
|
|
34
34
|
goog.exportSymbol('proto.analytic.GamesResponse', null, global);
|
|
35
35
|
goog.exportSymbol('proto.analytic.GetAffiliateWageredPlayersRequest', null, global);
|
|
36
36
|
goog.exportSymbol('proto.analytic.GetAffiliateWageredPlayersResponse', null, global);
|
|
37
|
+
goog.exportSymbol('proto.analytic.GetUserCasinoRealGgrRequest', null, global);
|
|
38
|
+
goog.exportSymbol('proto.analytic.GetUserCasinoRealGgrResponse', null, global);
|
|
37
39
|
goog.exportSymbol('proto.analytic.GlobalCasinoItem', null, global);
|
|
38
40
|
goog.exportSymbol('proto.analytic.GlobalCasinoResponse', null, global);
|
|
39
41
|
goog.exportSymbol('proto.analytic.GlobalSearchRequest', null, global);
|
|
@@ -681,6 +683,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
681
683
|
*/
|
|
682
684
|
proto.analytic.GetAffiliateWageredPlayersResponse.displayName = 'proto.analytic.GetAffiliateWageredPlayersResponse';
|
|
683
685
|
}
|
|
686
|
+
/**
|
|
687
|
+
* Generated by JsPbCodeGenerator.
|
|
688
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
689
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
690
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
691
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
692
|
+
* valid.
|
|
693
|
+
* @extends {jspb.Message}
|
|
694
|
+
* @constructor
|
|
695
|
+
*/
|
|
696
|
+
proto.analytic.GetUserCasinoRealGgrRequest = function(opt_data) {
|
|
697
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
698
|
+
};
|
|
699
|
+
goog.inherits(proto.analytic.GetUserCasinoRealGgrRequest, jspb.Message);
|
|
700
|
+
if (goog.DEBUG && !COMPILED) {
|
|
701
|
+
/**
|
|
702
|
+
* @public
|
|
703
|
+
* @override
|
|
704
|
+
*/
|
|
705
|
+
proto.analytic.GetUserCasinoRealGgrRequest.displayName = 'proto.analytic.GetUserCasinoRealGgrRequest';
|
|
706
|
+
}
|
|
707
|
+
/**
|
|
708
|
+
* Generated by JsPbCodeGenerator.
|
|
709
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
710
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
711
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
712
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
713
|
+
* valid.
|
|
714
|
+
* @extends {jspb.Message}
|
|
715
|
+
* @constructor
|
|
716
|
+
*/
|
|
717
|
+
proto.analytic.GetUserCasinoRealGgrResponse = function(opt_data) {
|
|
718
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
719
|
+
};
|
|
720
|
+
goog.inherits(proto.analytic.GetUserCasinoRealGgrResponse, jspb.Message);
|
|
721
|
+
if (goog.DEBUG && !COMPILED) {
|
|
722
|
+
/**
|
|
723
|
+
* @public
|
|
724
|
+
* @override
|
|
725
|
+
*/
|
|
726
|
+
proto.analytic.GetUserCasinoRealGgrResponse.displayName = 'proto.analytic.GetUserCasinoRealGgrResponse';
|
|
727
|
+
}
|
|
684
728
|
|
|
685
729
|
|
|
686
730
|
|
|
@@ -12558,4 +12602,324 @@ proto.analytic.GetAffiliateWageredPlayersResponse.prototype.hasTotalPages = func
|
|
|
12558
12602
|
};
|
|
12559
12603
|
|
|
12560
12604
|
|
|
12605
|
+
|
|
12606
|
+
|
|
12607
|
+
|
|
12608
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
12609
|
+
/**
|
|
12610
|
+
* Creates an object representation of this proto.
|
|
12611
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
12612
|
+
* Optional fields that are not set will be set to undefined.
|
|
12613
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
12614
|
+
* For the list of reserved names please see:
|
|
12615
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
12616
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
12617
|
+
* JSPB instance for transitional soy proto support:
|
|
12618
|
+
* http://goto/soy-param-migration
|
|
12619
|
+
* @return {!Object}
|
|
12620
|
+
*/
|
|
12621
|
+
proto.analytic.GetUserCasinoRealGgrRequest.prototype.toObject = function(opt_includeInstance) {
|
|
12622
|
+
return proto.analytic.GetUserCasinoRealGgrRequest.toObject(opt_includeInstance, this);
|
|
12623
|
+
};
|
|
12624
|
+
|
|
12625
|
+
|
|
12626
|
+
/**
|
|
12627
|
+
* Static version of the {@see toObject} method.
|
|
12628
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
12629
|
+
* the JSPB instance for transitional soy proto support:
|
|
12630
|
+
* http://goto/soy-param-migration
|
|
12631
|
+
* @param {!proto.analytic.GetUserCasinoRealGgrRequest} msg The msg instance to transform.
|
|
12632
|
+
* @return {!Object}
|
|
12633
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
12634
|
+
*/
|
|
12635
|
+
proto.analytic.GetUserCasinoRealGgrRequest.toObject = function(includeInstance, msg) {
|
|
12636
|
+
var f, obj = {
|
|
12637
|
+
userId: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
12638
|
+
};
|
|
12639
|
+
|
|
12640
|
+
if (includeInstance) {
|
|
12641
|
+
obj.$jspbMessageInstance = msg;
|
|
12642
|
+
}
|
|
12643
|
+
return obj;
|
|
12644
|
+
};
|
|
12645
|
+
}
|
|
12646
|
+
|
|
12647
|
+
|
|
12648
|
+
/**
|
|
12649
|
+
* Deserializes binary data (in protobuf wire format).
|
|
12650
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
12651
|
+
* @return {!proto.analytic.GetUserCasinoRealGgrRequest}
|
|
12652
|
+
*/
|
|
12653
|
+
proto.analytic.GetUserCasinoRealGgrRequest.deserializeBinary = function(bytes) {
|
|
12654
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
12655
|
+
var msg = new proto.analytic.GetUserCasinoRealGgrRequest;
|
|
12656
|
+
return proto.analytic.GetUserCasinoRealGgrRequest.deserializeBinaryFromReader(msg, reader);
|
|
12657
|
+
};
|
|
12658
|
+
|
|
12659
|
+
|
|
12660
|
+
/**
|
|
12661
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
12662
|
+
* given reader into the given message object.
|
|
12663
|
+
* @param {!proto.analytic.GetUserCasinoRealGgrRequest} msg The message object to deserialize into.
|
|
12664
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
12665
|
+
* @return {!proto.analytic.GetUserCasinoRealGgrRequest}
|
|
12666
|
+
*/
|
|
12667
|
+
proto.analytic.GetUserCasinoRealGgrRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
12668
|
+
while (reader.nextField()) {
|
|
12669
|
+
if (reader.isEndGroup()) {
|
|
12670
|
+
break;
|
|
12671
|
+
}
|
|
12672
|
+
var field = reader.getFieldNumber();
|
|
12673
|
+
switch (field) {
|
|
12674
|
+
case 1:
|
|
12675
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
12676
|
+
msg.setUserId(value);
|
|
12677
|
+
break;
|
|
12678
|
+
default:
|
|
12679
|
+
reader.skipField();
|
|
12680
|
+
break;
|
|
12681
|
+
}
|
|
12682
|
+
}
|
|
12683
|
+
return msg;
|
|
12684
|
+
};
|
|
12685
|
+
|
|
12686
|
+
|
|
12687
|
+
/**
|
|
12688
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
12689
|
+
* @return {!Uint8Array}
|
|
12690
|
+
*/
|
|
12691
|
+
proto.analytic.GetUserCasinoRealGgrRequest.prototype.serializeBinary = function() {
|
|
12692
|
+
var writer = new jspb.BinaryWriter();
|
|
12693
|
+
proto.analytic.GetUserCasinoRealGgrRequest.serializeBinaryToWriter(this, writer);
|
|
12694
|
+
return writer.getResultBuffer();
|
|
12695
|
+
};
|
|
12696
|
+
|
|
12697
|
+
|
|
12698
|
+
/**
|
|
12699
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
12700
|
+
* format), writing to the given BinaryWriter.
|
|
12701
|
+
* @param {!proto.analytic.GetUserCasinoRealGgrRequest} message
|
|
12702
|
+
* @param {!jspb.BinaryWriter} writer
|
|
12703
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
12704
|
+
*/
|
|
12705
|
+
proto.analytic.GetUserCasinoRealGgrRequest.serializeBinaryToWriter = function(message, writer) {
|
|
12706
|
+
var f = undefined;
|
|
12707
|
+
f = message.getUserId();
|
|
12708
|
+
if (f !== 0) {
|
|
12709
|
+
writer.writeInt32(
|
|
12710
|
+
1,
|
|
12711
|
+
f
|
|
12712
|
+
);
|
|
12713
|
+
}
|
|
12714
|
+
};
|
|
12715
|
+
|
|
12716
|
+
|
|
12717
|
+
/**
|
|
12718
|
+
* optional int32 user_id = 1;
|
|
12719
|
+
* @return {number}
|
|
12720
|
+
*/
|
|
12721
|
+
proto.analytic.GetUserCasinoRealGgrRequest.prototype.getUserId = function() {
|
|
12722
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
12723
|
+
};
|
|
12724
|
+
|
|
12725
|
+
|
|
12726
|
+
/**
|
|
12727
|
+
* @param {number} value
|
|
12728
|
+
* @return {!proto.analytic.GetUserCasinoRealGgrRequest} returns this
|
|
12729
|
+
*/
|
|
12730
|
+
proto.analytic.GetUserCasinoRealGgrRequest.prototype.setUserId = function(value) {
|
|
12731
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
12732
|
+
};
|
|
12733
|
+
|
|
12734
|
+
|
|
12735
|
+
|
|
12736
|
+
|
|
12737
|
+
|
|
12738
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
12739
|
+
/**
|
|
12740
|
+
* Creates an object representation of this proto.
|
|
12741
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
12742
|
+
* Optional fields that are not set will be set to undefined.
|
|
12743
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
12744
|
+
* For the list of reserved names please see:
|
|
12745
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
12746
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
12747
|
+
* JSPB instance for transitional soy proto support:
|
|
12748
|
+
* http://goto/soy-param-migration
|
|
12749
|
+
* @return {!Object}
|
|
12750
|
+
*/
|
|
12751
|
+
proto.analytic.GetUserCasinoRealGgrResponse.prototype.toObject = function(opt_includeInstance) {
|
|
12752
|
+
return proto.analytic.GetUserCasinoRealGgrResponse.toObject(opt_includeInstance, this);
|
|
12753
|
+
};
|
|
12754
|
+
|
|
12755
|
+
|
|
12756
|
+
/**
|
|
12757
|
+
* Static version of the {@see toObject} method.
|
|
12758
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
12759
|
+
* the JSPB instance for transitional soy proto support:
|
|
12760
|
+
* http://goto/soy-param-migration
|
|
12761
|
+
* @param {!proto.analytic.GetUserCasinoRealGgrResponse} msg The msg instance to transform.
|
|
12762
|
+
* @return {!Object}
|
|
12763
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
12764
|
+
*/
|
|
12765
|
+
proto.analytic.GetUserCasinoRealGgrResponse.toObject = function(includeInstance, msg) {
|
|
12766
|
+
var f, obj = {
|
|
12767
|
+
userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
12768
|
+
currency: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
12769
|
+
realGgr: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
12770
|
+
};
|
|
12771
|
+
|
|
12772
|
+
if (includeInstance) {
|
|
12773
|
+
obj.$jspbMessageInstance = msg;
|
|
12774
|
+
}
|
|
12775
|
+
return obj;
|
|
12776
|
+
};
|
|
12777
|
+
}
|
|
12778
|
+
|
|
12779
|
+
|
|
12780
|
+
/**
|
|
12781
|
+
* Deserializes binary data (in protobuf wire format).
|
|
12782
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
12783
|
+
* @return {!proto.analytic.GetUserCasinoRealGgrResponse}
|
|
12784
|
+
*/
|
|
12785
|
+
proto.analytic.GetUserCasinoRealGgrResponse.deserializeBinary = function(bytes) {
|
|
12786
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
12787
|
+
var msg = new proto.analytic.GetUserCasinoRealGgrResponse;
|
|
12788
|
+
return proto.analytic.GetUserCasinoRealGgrResponse.deserializeBinaryFromReader(msg, reader);
|
|
12789
|
+
};
|
|
12790
|
+
|
|
12791
|
+
|
|
12792
|
+
/**
|
|
12793
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
12794
|
+
* given reader into the given message object.
|
|
12795
|
+
* @param {!proto.analytic.GetUserCasinoRealGgrResponse} msg The message object to deserialize into.
|
|
12796
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
12797
|
+
* @return {!proto.analytic.GetUserCasinoRealGgrResponse}
|
|
12798
|
+
*/
|
|
12799
|
+
proto.analytic.GetUserCasinoRealGgrResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
12800
|
+
while (reader.nextField()) {
|
|
12801
|
+
if (reader.isEndGroup()) {
|
|
12802
|
+
break;
|
|
12803
|
+
}
|
|
12804
|
+
var field = reader.getFieldNumber();
|
|
12805
|
+
switch (field) {
|
|
12806
|
+
case 1:
|
|
12807
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
12808
|
+
msg.setUserId(value);
|
|
12809
|
+
break;
|
|
12810
|
+
case 2:
|
|
12811
|
+
var value = /** @type {string} */ (reader.readString());
|
|
12812
|
+
msg.setCurrency(value);
|
|
12813
|
+
break;
|
|
12814
|
+
case 3:
|
|
12815
|
+
var value = /** @type {string} */ (reader.readString());
|
|
12816
|
+
msg.setRealGgr(value);
|
|
12817
|
+
break;
|
|
12818
|
+
default:
|
|
12819
|
+
reader.skipField();
|
|
12820
|
+
break;
|
|
12821
|
+
}
|
|
12822
|
+
}
|
|
12823
|
+
return msg;
|
|
12824
|
+
};
|
|
12825
|
+
|
|
12826
|
+
|
|
12827
|
+
/**
|
|
12828
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
12829
|
+
* @return {!Uint8Array}
|
|
12830
|
+
*/
|
|
12831
|
+
proto.analytic.GetUserCasinoRealGgrResponse.prototype.serializeBinary = function() {
|
|
12832
|
+
var writer = new jspb.BinaryWriter();
|
|
12833
|
+
proto.analytic.GetUserCasinoRealGgrResponse.serializeBinaryToWriter(this, writer);
|
|
12834
|
+
return writer.getResultBuffer();
|
|
12835
|
+
};
|
|
12836
|
+
|
|
12837
|
+
|
|
12838
|
+
/**
|
|
12839
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
12840
|
+
* format), writing to the given BinaryWriter.
|
|
12841
|
+
* @param {!proto.analytic.GetUserCasinoRealGgrResponse} message
|
|
12842
|
+
* @param {!jspb.BinaryWriter} writer
|
|
12843
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
12844
|
+
*/
|
|
12845
|
+
proto.analytic.GetUserCasinoRealGgrResponse.serializeBinaryToWriter = function(message, writer) {
|
|
12846
|
+
var f = undefined;
|
|
12847
|
+
f = message.getUserId();
|
|
12848
|
+
if (f !== 0) {
|
|
12849
|
+
writer.writeInt32(
|
|
12850
|
+
1,
|
|
12851
|
+
f
|
|
12852
|
+
);
|
|
12853
|
+
}
|
|
12854
|
+
f = message.getCurrency();
|
|
12855
|
+
if (f.length > 0) {
|
|
12856
|
+
writer.writeString(
|
|
12857
|
+
2,
|
|
12858
|
+
f
|
|
12859
|
+
);
|
|
12860
|
+
}
|
|
12861
|
+
f = message.getRealGgr();
|
|
12862
|
+
if (f.length > 0) {
|
|
12863
|
+
writer.writeString(
|
|
12864
|
+
3,
|
|
12865
|
+
f
|
|
12866
|
+
);
|
|
12867
|
+
}
|
|
12868
|
+
};
|
|
12869
|
+
|
|
12870
|
+
|
|
12871
|
+
/**
|
|
12872
|
+
* optional int32 user_id = 1;
|
|
12873
|
+
* @return {number}
|
|
12874
|
+
*/
|
|
12875
|
+
proto.analytic.GetUserCasinoRealGgrResponse.prototype.getUserId = function() {
|
|
12876
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
12877
|
+
};
|
|
12878
|
+
|
|
12879
|
+
|
|
12880
|
+
/**
|
|
12881
|
+
* @param {number} value
|
|
12882
|
+
* @return {!proto.analytic.GetUserCasinoRealGgrResponse} returns this
|
|
12883
|
+
*/
|
|
12884
|
+
proto.analytic.GetUserCasinoRealGgrResponse.prototype.setUserId = function(value) {
|
|
12885
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
12886
|
+
};
|
|
12887
|
+
|
|
12888
|
+
|
|
12889
|
+
/**
|
|
12890
|
+
* optional string currency = 2;
|
|
12891
|
+
* @return {string}
|
|
12892
|
+
*/
|
|
12893
|
+
proto.analytic.GetUserCasinoRealGgrResponse.prototype.getCurrency = function() {
|
|
12894
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
12895
|
+
};
|
|
12896
|
+
|
|
12897
|
+
|
|
12898
|
+
/**
|
|
12899
|
+
* @param {string} value
|
|
12900
|
+
* @return {!proto.analytic.GetUserCasinoRealGgrResponse} returns this
|
|
12901
|
+
*/
|
|
12902
|
+
proto.analytic.GetUserCasinoRealGgrResponse.prototype.setCurrency = function(value) {
|
|
12903
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
12904
|
+
};
|
|
12905
|
+
|
|
12906
|
+
|
|
12907
|
+
/**
|
|
12908
|
+
* optional string real_ggr = 3;
|
|
12909
|
+
* @return {string}
|
|
12910
|
+
*/
|
|
12911
|
+
proto.analytic.GetUserCasinoRealGgrResponse.prototype.getRealGgr = function() {
|
|
12912
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
12913
|
+
};
|
|
12914
|
+
|
|
12915
|
+
|
|
12916
|
+
/**
|
|
12917
|
+
* @param {string} value
|
|
12918
|
+
* @return {!proto.analytic.GetUserCasinoRealGgrResponse} returns this
|
|
12919
|
+
*/
|
|
12920
|
+
proto.analytic.GetUserCasinoRealGgrResponse.prototype.setRealGgr = function(value) {
|
|
12921
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
12922
|
+
};
|
|
12923
|
+
|
|
12924
|
+
|
|
12561
12925
|
goog.object.extend(exports, proto.analytic);
|
package/package.json
CHANGED
package/payment/payment.proto
CHANGED
|
@@ -282,6 +282,10 @@ message PaymentMethodConfigRequest {
|
|
|
282
282
|
optional int32 is_top = 16;
|
|
283
283
|
optional int32 is_popular = 17;
|
|
284
284
|
optional int32 is_new = 18;
|
|
285
|
+
// Major-unit cap on the deposit amount used as the percentage reward base.
|
|
286
|
+
// Unset on read means unlimited. Empty string on write clears the stored limit.
|
|
287
|
+
// "0" is an explicit zero reward base, not unlimited.
|
|
288
|
+
optional string reward_calculation_limit = 19;
|
|
285
289
|
}
|
|
286
290
|
message PaymentMethodConfigResponse {
|
|
287
291
|
int32 method_id = 1;
|
|
@@ -302,6 +306,9 @@ message PaymentMethodConfigResponse {
|
|
|
302
306
|
optional int32 is_top = 16;
|
|
303
307
|
optional int32 is_popular = 17;
|
|
304
308
|
optional int32 is_new = 18;
|
|
309
|
+
// Major-unit cap on the deposit amount used as the percentage reward base.
|
|
310
|
+
// Unset means unlimited. "0" is an explicit zero reward base, not unlimited.
|
|
311
|
+
optional string reward_calculation_limit = 19;
|
|
305
312
|
}
|
|
306
313
|
message CashierFieldsRequest {}
|
|
307
314
|
message CashierFieldItemsResponse {
|
package/payment/payment_pb.js
CHANGED
|
@@ -11565,7 +11565,8 @@ proto.payment.PaymentMethodConfigRequest.toObject = function(includeInstance, ms
|
|
|
11565
11565
|
isVip: jspb.Message.getFieldWithDefault(msg, 15, 0),
|
|
11566
11566
|
isTop: jspb.Message.getFieldWithDefault(msg, 16, 0),
|
|
11567
11567
|
isPopular: jspb.Message.getFieldWithDefault(msg, 17, 0),
|
|
11568
|
-
isNew: jspb.Message.getFieldWithDefault(msg, 18, 0)
|
|
11568
|
+
isNew: jspb.Message.getFieldWithDefault(msg, 18, 0),
|
|
11569
|
+
rewardCalculationLimit: jspb.Message.getFieldWithDefault(msg, 19, "")
|
|
11569
11570
|
};
|
|
11570
11571
|
|
|
11571
11572
|
if (includeInstance) {
|
|
@@ -11675,6 +11676,10 @@ proto.payment.PaymentMethodConfigRequest.deserializeBinaryFromReader = function(
|
|
|
11675
11676
|
var value = /** @type {number} */ (reader.readInt32());
|
|
11676
11677
|
msg.setIsNew(value);
|
|
11677
11678
|
break;
|
|
11679
|
+
case 19:
|
|
11680
|
+
var value = /** @type {string} */ (reader.readString());
|
|
11681
|
+
msg.setRewardCalculationLimit(value);
|
|
11682
|
+
break;
|
|
11678
11683
|
default:
|
|
11679
11684
|
reader.skipField();
|
|
11680
11685
|
break;
|
|
@@ -11831,6 +11836,13 @@ proto.payment.PaymentMethodConfigRequest.serializeBinaryToWriter = function(mess
|
|
|
11831
11836
|
f
|
|
11832
11837
|
);
|
|
11833
11838
|
}
|
|
11839
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 19));
|
|
11840
|
+
if (f != null) {
|
|
11841
|
+
writer.writeString(
|
|
11842
|
+
19,
|
|
11843
|
+
f
|
|
11844
|
+
);
|
|
11845
|
+
}
|
|
11834
11846
|
};
|
|
11835
11847
|
|
|
11836
11848
|
|
|
@@ -12430,6 +12442,42 @@ proto.payment.PaymentMethodConfigRequest.prototype.hasIsNew = function() {
|
|
|
12430
12442
|
};
|
|
12431
12443
|
|
|
12432
12444
|
|
|
12445
|
+
/**
|
|
12446
|
+
* optional string reward_calculation_limit = 19;
|
|
12447
|
+
* @return {string}
|
|
12448
|
+
*/
|
|
12449
|
+
proto.payment.PaymentMethodConfigRequest.prototype.getRewardCalculationLimit = function() {
|
|
12450
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, ""));
|
|
12451
|
+
};
|
|
12452
|
+
|
|
12453
|
+
|
|
12454
|
+
/**
|
|
12455
|
+
* @param {string} value
|
|
12456
|
+
* @return {!proto.payment.PaymentMethodConfigRequest} returns this
|
|
12457
|
+
*/
|
|
12458
|
+
proto.payment.PaymentMethodConfigRequest.prototype.setRewardCalculationLimit = function(value) {
|
|
12459
|
+
return jspb.Message.setField(this, 19, value);
|
|
12460
|
+
};
|
|
12461
|
+
|
|
12462
|
+
|
|
12463
|
+
/**
|
|
12464
|
+
* Clears the field making it undefined.
|
|
12465
|
+
* @return {!proto.payment.PaymentMethodConfigRequest} returns this
|
|
12466
|
+
*/
|
|
12467
|
+
proto.payment.PaymentMethodConfigRequest.prototype.clearRewardCalculationLimit = function() {
|
|
12468
|
+
return jspb.Message.setField(this, 19, undefined);
|
|
12469
|
+
};
|
|
12470
|
+
|
|
12471
|
+
|
|
12472
|
+
/**
|
|
12473
|
+
* Returns whether this field is set.
|
|
12474
|
+
* @return {boolean}
|
|
12475
|
+
*/
|
|
12476
|
+
proto.payment.PaymentMethodConfigRequest.prototype.hasRewardCalculationLimit = function() {
|
|
12477
|
+
return jspb.Message.getField(this, 19) != null;
|
|
12478
|
+
};
|
|
12479
|
+
|
|
12480
|
+
|
|
12433
12481
|
|
|
12434
12482
|
/**
|
|
12435
12483
|
* List of repeated fields within this message type.
|
|
@@ -12487,7 +12535,8 @@ proto.payment.PaymentMethodConfigResponse.toObject = function(includeInstance, m
|
|
|
12487
12535
|
isVip: jspb.Message.getFieldWithDefault(msg, 15, 0),
|
|
12488
12536
|
isTop: jspb.Message.getFieldWithDefault(msg, 16, 0),
|
|
12489
12537
|
isPopular: jspb.Message.getFieldWithDefault(msg, 17, 0),
|
|
12490
|
-
isNew: jspb.Message.getFieldWithDefault(msg, 18, 0)
|
|
12538
|
+
isNew: jspb.Message.getFieldWithDefault(msg, 18, 0),
|
|
12539
|
+
rewardCalculationLimit: jspb.Message.getFieldWithDefault(msg, 19, "")
|
|
12491
12540
|
};
|
|
12492
12541
|
|
|
12493
12542
|
if (includeInstance) {
|
|
@@ -12597,6 +12646,10 @@ proto.payment.PaymentMethodConfigResponse.deserializeBinaryFromReader = function
|
|
|
12597
12646
|
var value = /** @type {number} */ (reader.readInt32());
|
|
12598
12647
|
msg.setIsNew(value);
|
|
12599
12648
|
break;
|
|
12649
|
+
case 19:
|
|
12650
|
+
var value = /** @type {string} */ (reader.readString());
|
|
12651
|
+
msg.setRewardCalculationLimit(value);
|
|
12652
|
+
break;
|
|
12600
12653
|
default:
|
|
12601
12654
|
reader.skipField();
|
|
12602
12655
|
break;
|
|
@@ -12753,6 +12806,13 @@ proto.payment.PaymentMethodConfigResponse.serializeBinaryToWriter = function(mes
|
|
|
12753
12806
|
f
|
|
12754
12807
|
);
|
|
12755
12808
|
}
|
|
12809
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 19));
|
|
12810
|
+
if (f != null) {
|
|
12811
|
+
writer.writeString(
|
|
12812
|
+
19,
|
|
12813
|
+
f
|
|
12814
|
+
);
|
|
12815
|
+
}
|
|
12756
12816
|
};
|
|
12757
12817
|
|
|
12758
12818
|
|
|
@@ -13388,6 +13448,42 @@ proto.payment.PaymentMethodConfigResponse.prototype.hasIsNew = function() {
|
|
|
13388
13448
|
};
|
|
13389
13449
|
|
|
13390
13450
|
|
|
13451
|
+
/**
|
|
13452
|
+
* optional string reward_calculation_limit = 19;
|
|
13453
|
+
* @return {string}
|
|
13454
|
+
*/
|
|
13455
|
+
proto.payment.PaymentMethodConfigResponse.prototype.getRewardCalculationLimit = function() {
|
|
13456
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, ""));
|
|
13457
|
+
};
|
|
13458
|
+
|
|
13459
|
+
|
|
13460
|
+
/**
|
|
13461
|
+
* @param {string} value
|
|
13462
|
+
* @return {!proto.payment.PaymentMethodConfigResponse} returns this
|
|
13463
|
+
*/
|
|
13464
|
+
proto.payment.PaymentMethodConfigResponse.prototype.setRewardCalculationLimit = function(value) {
|
|
13465
|
+
return jspb.Message.setField(this, 19, value);
|
|
13466
|
+
};
|
|
13467
|
+
|
|
13468
|
+
|
|
13469
|
+
/**
|
|
13470
|
+
* Clears the field making it undefined.
|
|
13471
|
+
* @return {!proto.payment.PaymentMethodConfigResponse} returns this
|
|
13472
|
+
*/
|
|
13473
|
+
proto.payment.PaymentMethodConfigResponse.prototype.clearRewardCalculationLimit = function() {
|
|
13474
|
+
return jspb.Message.setField(this, 19, undefined);
|
|
13475
|
+
};
|
|
13476
|
+
|
|
13477
|
+
|
|
13478
|
+
/**
|
|
13479
|
+
* Returns whether this field is set.
|
|
13480
|
+
* @return {boolean}
|
|
13481
|
+
*/
|
|
13482
|
+
proto.payment.PaymentMethodConfigResponse.prototype.hasRewardCalculationLimit = function() {
|
|
13483
|
+
return jspb.Message.getField(this, 19) != null;
|
|
13484
|
+
};
|
|
13485
|
+
|
|
13486
|
+
|
|
13391
13487
|
|
|
13392
13488
|
|
|
13393
13489
|
|