protobuf-platform 1.2.612 → 1.2.615
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 +8 -1
- package/analytic/analytic_pb.js +244 -2
- package/config/config.proto +1 -0
- package/config/config_pb.js +49 -1
- package/game/game.proto +16 -0
- package/game/game_pb.js +747 -3
- package/package.json +1 -1
- package/payment/payment.proto +12 -0
- package/payment/payment_grpc_pb.js +33 -0
- package/payment/payment_pb.js +472 -0
- package/user/user.proto +4 -0
- package/user/user_grpc_pb.js +22 -0
- package/user/user_pb.js +152 -0
package/package.json
CHANGED
package/payment/payment.proto
CHANGED
|
@@ -58,6 +58,7 @@ service Payment {
|
|
|
58
58
|
rpc getUserKycFinancialSnapshot(GetUserKycFinancialSnapshotRequest) returns (GetUserKycFinancialSnapshotResponse);
|
|
59
59
|
rpc getUserCashbackPaymentOperands(GetUserCashbackPaymentOperandsRequest) returns (GetUserCashbackPaymentOperandsResponse);
|
|
60
60
|
rpc getUserFinancialSummary(GetUserFinancialSummaryRequest) returns (GetUserFinancialSummaryResponse);
|
|
61
|
+
rpc resolveGameWalletContext(ResolveGameWalletContextRequest) returns (ResolveGameWalletContextResponse);
|
|
61
62
|
//Segmentation
|
|
62
63
|
rpc getSegmentedUsers(SegmentedUserRequest) returns (SegmentedUserResponse);
|
|
63
64
|
//Currency source-of-truth
|
|
@@ -918,6 +919,17 @@ message GetUserFinancialSummaryResponse {
|
|
|
918
919
|
int64 profitability_result_minor = 9;
|
|
919
920
|
string profitability_status = 10;
|
|
920
921
|
}
|
|
922
|
+
message ResolveGameWalletContextRequest {
|
|
923
|
+
int32 user_id = 1;
|
|
924
|
+
optional string wallet_currency = 2;
|
|
925
|
+
}
|
|
926
|
+
message ResolveGameWalletContextResponse {
|
|
927
|
+
int32 user_id = 1;
|
|
928
|
+
string wallet_currency = 2;
|
|
929
|
+
int32 currency_scale = 3;
|
|
930
|
+
int64 balance_minor = 4;
|
|
931
|
+
string balance_major = 5;
|
|
932
|
+
}
|
|
921
933
|
//Segmentation
|
|
922
934
|
message SegmentedUserRequest {
|
|
923
935
|
optional float deposit_amount_min = 1;
|
|
@@ -796,6 +796,28 @@ function deserialize_payment_ProviderTranslationResponse(buffer_arg) {
|
|
|
796
796
|
return payment_pb.ProviderTranslationResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
797
797
|
}
|
|
798
798
|
|
|
799
|
+
function serialize_payment_ResolveGameWalletContextRequest(arg) {
|
|
800
|
+
if (!(arg instanceof payment_pb.ResolveGameWalletContextRequest)) {
|
|
801
|
+
throw new Error('Expected argument of type payment.ResolveGameWalletContextRequest');
|
|
802
|
+
}
|
|
803
|
+
return Buffer.from(arg.serializeBinary());
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
function deserialize_payment_ResolveGameWalletContextRequest(buffer_arg) {
|
|
807
|
+
return payment_pb.ResolveGameWalletContextRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
function serialize_payment_ResolveGameWalletContextResponse(arg) {
|
|
811
|
+
if (!(arg instanceof payment_pb.ResolveGameWalletContextResponse)) {
|
|
812
|
+
throw new Error('Expected argument of type payment.ResolveGameWalletContextResponse');
|
|
813
|
+
}
|
|
814
|
+
return Buffer.from(arg.serializeBinary());
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
function deserialize_payment_ResolveGameWalletContextResponse(buffer_arg) {
|
|
818
|
+
return payment_pb.ResolveGameWalletContextResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
819
|
+
}
|
|
820
|
+
|
|
799
821
|
function serialize_payment_SegmentedUserRequest(arg) {
|
|
800
822
|
if (!(arg instanceof payment_pb.SegmentedUserRequest)) {
|
|
801
823
|
throw new Error('Expected argument of type payment.SegmentedUserRequest');
|
|
@@ -1466,6 +1488,17 @@ userPaymentsInfo: {
|
|
|
1466
1488
|
responseSerialize: serialize_payment_GetUserFinancialSummaryResponse,
|
|
1467
1489
|
responseDeserialize: deserialize_payment_GetUserFinancialSummaryResponse,
|
|
1468
1490
|
},
|
|
1491
|
+
resolveGameWalletContext: {
|
|
1492
|
+
path: '/payment.Payment/resolveGameWalletContext',
|
|
1493
|
+
requestStream: false,
|
|
1494
|
+
responseStream: false,
|
|
1495
|
+
requestType: payment_pb.ResolveGameWalletContextRequest,
|
|
1496
|
+
responseType: payment_pb.ResolveGameWalletContextResponse,
|
|
1497
|
+
requestSerialize: serialize_payment_ResolveGameWalletContextRequest,
|
|
1498
|
+
requestDeserialize: deserialize_payment_ResolveGameWalletContextRequest,
|
|
1499
|
+
responseSerialize: serialize_payment_ResolveGameWalletContextResponse,
|
|
1500
|
+
responseDeserialize: deserialize_payment_ResolveGameWalletContextResponse,
|
|
1501
|
+
},
|
|
1469
1502
|
// Segmentation
|
|
1470
1503
|
getSegmentedUsers: {
|
|
1471
1504
|
path: '/payment.Payment/getSegmentedUsers',
|
package/payment/payment_pb.js
CHANGED
|
@@ -118,6 +118,8 @@ goog.exportSymbol('proto.payment.ProviderResponse', null, global);
|
|
|
118
118
|
goog.exportSymbol('proto.payment.ProviderTranslationItem', null, global);
|
|
119
119
|
goog.exportSymbol('proto.payment.ProviderTranslationRequest', null, global);
|
|
120
120
|
goog.exportSymbol('proto.payment.ProviderTranslationResponse', null, global);
|
|
121
|
+
goog.exportSymbol('proto.payment.ResolveGameWalletContextRequest', null, global);
|
|
122
|
+
goog.exportSymbol('proto.payment.ResolveGameWalletContextResponse', null, global);
|
|
121
123
|
goog.exportSymbol('proto.payment.SegmentedUserRequest', null, global);
|
|
122
124
|
goog.exportSymbol('proto.payment.SegmentedUserResponse', null, global);
|
|
123
125
|
goog.exportSymbol('proto.payment.SyncCurrenciesRequest', null, global);
|
|
@@ -1965,6 +1967,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
1965
1967
|
*/
|
|
1966
1968
|
proto.payment.GetUserFinancialSummaryResponse.displayName = 'proto.payment.GetUserFinancialSummaryResponse';
|
|
1967
1969
|
}
|
|
1970
|
+
/**
|
|
1971
|
+
* Generated by JsPbCodeGenerator.
|
|
1972
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1973
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1974
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1975
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1976
|
+
* valid.
|
|
1977
|
+
* @extends {jspb.Message}
|
|
1978
|
+
* @constructor
|
|
1979
|
+
*/
|
|
1980
|
+
proto.payment.ResolveGameWalletContextRequest = function(opt_data) {
|
|
1981
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1982
|
+
};
|
|
1983
|
+
goog.inherits(proto.payment.ResolveGameWalletContextRequest, jspb.Message);
|
|
1984
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1985
|
+
/**
|
|
1986
|
+
* @public
|
|
1987
|
+
* @override
|
|
1988
|
+
*/
|
|
1989
|
+
proto.payment.ResolveGameWalletContextRequest.displayName = 'proto.payment.ResolveGameWalletContextRequest';
|
|
1990
|
+
}
|
|
1991
|
+
/**
|
|
1992
|
+
* Generated by JsPbCodeGenerator.
|
|
1993
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1994
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1995
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1996
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1997
|
+
* valid.
|
|
1998
|
+
* @extends {jspb.Message}
|
|
1999
|
+
* @constructor
|
|
2000
|
+
*/
|
|
2001
|
+
proto.payment.ResolveGameWalletContextResponse = function(opt_data) {
|
|
2002
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
2003
|
+
};
|
|
2004
|
+
goog.inherits(proto.payment.ResolveGameWalletContextResponse, jspb.Message);
|
|
2005
|
+
if (goog.DEBUG && !COMPILED) {
|
|
2006
|
+
/**
|
|
2007
|
+
* @public
|
|
2008
|
+
* @override
|
|
2009
|
+
*/
|
|
2010
|
+
proto.payment.ResolveGameWalletContextResponse.displayName = 'proto.payment.ResolveGameWalletContextResponse';
|
|
2011
|
+
}
|
|
1968
2012
|
/**
|
|
1969
2013
|
* Generated by JsPbCodeGenerator.
|
|
1970
2014
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -39442,6 +39486,434 @@ proto.payment.GetUserFinancialSummaryResponse.prototype.setProfitabilityStatus =
|
|
|
39442
39486
|
|
|
39443
39487
|
|
|
39444
39488
|
|
|
39489
|
+
|
|
39490
|
+
|
|
39491
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
39492
|
+
/**
|
|
39493
|
+
* Creates an object representation of this proto.
|
|
39494
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
39495
|
+
* Optional fields that are not set will be set to undefined.
|
|
39496
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
39497
|
+
* For the list of reserved names please see:
|
|
39498
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
39499
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
39500
|
+
* JSPB instance for transitional soy proto support:
|
|
39501
|
+
* http://goto/soy-param-migration
|
|
39502
|
+
* @return {!Object}
|
|
39503
|
+
*/
|
|
39504
|
+
proto.payment.ResolveGameWalletContextRequest.prototype.toObject = function(opt_includeInstance) {
|
|
39505
|
+
return proto.payment.ResolveGameWalletContextRequest.toObject(opt_includeInstance, this);
|
|
39506
|
+
};
|
|
39507
|
+
|
|
39508
|
+
|
|
39509
|
+
/**
|
|
39510
|
+
* Static version of the {@see toObject} method.
|
|
39511
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
39512
|
+
* the JSPB instance for transitional soy proto support:
|
|
39513
|
+
* http://goto/soy-param-migration
|
|
39514
|
+
* @param {!proto.payment.ResolveGameWalletContextRequest} msg The msg instance to transform.
|
|
39515
|
+
* @return {!Object}
|
|
39516
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
39517
|
+
*/
|
|
39518
|
+
proto.payment.ResolveGameWalletContextRequest.toObject = function(includeInstance, msg) {
|
|
39519
|
+
var f, obj = {
|
|
39520
|
+
userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
39521
|
+
walletCurrency: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
39522
|
+
};
|
|
39523
|
+
|
|
39524
|
+
if (includeInstance) {
|
|
39525
|
+
obj.$jspbMessageInstance = msg;
|
|
39526
|
+
}
|
|
39527
|
+
return obj;
|
|
39528
|
+
};
|
|
39529
|
+
}
|
|
39530
|
+
|
|
39531
|
+
|
|
39532
|
+
/**
|
|
39533
|
+
* Deserializes binary data (in protobuf wire format).
|
|
39534
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
39535
|
+
* @return {!proto.payment.ResolveGameWalletContextRequest}
|
|
39536
|
+
*/
|
|
39537
|
+
proto.payment.ResolveGameWalletContextRequest.deserializeBinary = function(bytes) {
|
|
39538
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
39539
|
+
var msg = new proto.payment.ResolveGameWalletContextRequest;
|
|
39540
|
+
return proto.payment.ResolveGameWalletContextRequest.deserializeBinaryFromReader(msg, reader);
|
|
39541
|
+
};
|
|
39542
|
+
|
|
39543
|
+
|
|
39544
|
+
/**
|
|
39545
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
39546
|
+
* given reader into the given message object.
|
|
39547
|
+
* @param {!proto.payment.ResolveGameWalletContextRequest} msg The message object to deserialize into.
|
|
39548
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
39549
|
+
* @return {!proto.payment.ResolveGameWalletContextRequest}
|
|
39550
|
+
*/
|
|
39551
|
+
proto.payment.ResolveGameWalletContextRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
39552
|
+
while (reader.nextField()) {
|
|
39553
|
+
if (reader.isEndGroup()) {
|
|
39554
|
+
break;
|
|
39555
|
+
}
|
|
39556
|
+
var field = reader.getFieldNumber();
|
|
39557
|
+
switch (field) {
|
|
39558
|
+
case 1:
|
|
39559
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
39560
|
+
msg.setUserId(value);
|
|
39561
|
+
break;
|
|
39562
|
+
case 2:
|
|
39563
|
+
var value = /** @type {string} */ (reader.readString());
|
|
39564
|
+
msg.setWalletCurrency(value);
|
|
39565
|
+
break;
|
|
39566
|
+
default:
|
|
39567
|
+
reader.skipField();
|
|
39568
|
+
break;
|
|
39569
|
+
}
|
|
39570
|
+
}
|
|
39571
|
+
return msg;
|
|
39572
|
+
};
|
|
39573
|
+
|
|
39574
|
+
|
|
39575
|
+
/**
|
|
39576
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
39577
|
+
* @return {!Uint8Array}
|
|
39578
|
+
*/
|
|
39579
|
+
proto.payment.ResolveGameWalletContextRequest.prototype.serializeBinary = function() {
|
|
39580
|
+
var writer = new jspb.BinaryWriter();
|
|
39581
|
+
proto.payment.ResolveGameWalletContextRequest.serializeBinaryToWriter(this, writer);
|
|
39582
|
+
return writer.getResultBuffer();
|
|
39583
|
+
};
|
|
39584
|
+
|
|
39585
|
+
|
|
39586
|
+
/**
|
|
39587
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
39588
|
+
* format), writing to the given BinaryWriter.
|
|
39589
|
+
* @param {!proto.payment.ResolveGameWalletContextRequest} message
|
|
39590
|
+
* @param {!jspb.BinaryWriter} writer
|
|
39591
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
39592
|
+
*/
|
|
39593
|
+
proto.payment.ResolveGameWalletContextRequest.serializeBinaryToWriter = function(message, writer) {
|
|
39594
|
+
var f = undefined;
|
|
39595
|
+
f = message.getUserId();
|
|
39596
|
+
if (f !== 0) {
|
|
39597
|
+
writer.writeInt32(
|
|
39598
|
+
1,
|
|
39599
|
+
f
|
|
39600
|
+
);
|
|
39601
|
+
}
|
|
39602
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
|
39603
|
+
if (f != null) {
|
|
39604
|
+
writer.writeString(
|
|
39605
|
+
2,
|
|
39606
|
+
f
|
|
39607
|
+
);
|
|
39608
|
+
}
|
|
39609
|
+
};
|
|
39610
|
+
|
|
39611
|
+
|
|
39612
|
+
/**
|
|
39613
|
+
* optional int32 user_id = 1;
|
|
39614
|
+
* @return {number}
|
|
39615
|
+
*/
|
|
39616
|
+
proto.payment.ResolveGameWalletContextRequest.prototype.getUserId = function() {
|
|
39617
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
39618
|
+
};
|
|
39619
|
+
|
|
39620
|
+
|
|
39621
|
+
/**
|
|
39622
|
+
* @param {number} value
|
|
39623
|
+
* @return {!proto.payment.ResolveGameWalletContextRequest} returns this
|
|
39624
|
+
*/
|
|
39625
|
+
proto.payment.ResolveGameWalletContextRequest.prototype.setUserId = function(value) {
|
|
39626
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
39627
|
+
};
|
|
39628
|
+
|
|
39629
|
+
|
|
39630
|
+
/**
|
|
39631
|
+
* optional string wallet_currency = 2;
|
|
39632
|
+
* @return {string}
|
|
39633
|
+
*/
|
|
39634
|
+
proto.payment.ResolveGameWalletContextRequest.prototype.getWalletCurrency = function() {
|
|
39635
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
39636
|
+
};
|
|
39637
|
+
|
|
39638
|
+
|
|
39639
|
+
/**
|
|
39640
|
+
* @param {string} value
|
|
39641
|
+
* @return {!proto.payment.ResolveGameWalletContextRequest} returns this
|
|
39642
|
+
*/
|
|
39643
|
+
proto.payment.ResolveGameWalletContextRequest.prototype.setWalletCurrency = function(value) {
|
|
39644
|
+
return jspb.Message.setField(this, 2, value);
|
|
39645
|
+
};
|
|
39646
|
+
|
|
39647
|
+
|
|
39648
|
+
/**
|
|
39649
|
+
* Clears the field making it undefined.
|
|
39650
|
+
* @return {!proto.payment.ResolveGameWalletContextRequest} returns this
|
|
39651
|
+
*/
|
|
39652
|
+
proto.payment.ResolveGameWalletContextRequest.prototype.clearWalletCurrency = function() {
|
|
39653
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
39654
|
+
};
|
|
39655
|
+
|
|
39656
|
+
|
|
39657
|
+
/**
|
|
39658
|
+
* Returns whether this field is set.
|
|
39659
|
+
* @return {boolean}
|
|
39660
|
+
*/
|
|
39661
|
+
proto.payment.ResolveGameWalletContextRequest.prototype.hasWalletCurrency = function() {
|
|
39662
|
+
return jspb.Message.getField(this, 2) != null;
|
|
39663
|
+
};
|
|
39664
|
+
|
|
39665
|
+
|
|
39666
|
+
|
|
39667
|
+
|
|
39668
|
+
|
|
39669
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
39670
|
+
/**
|
|
39671
|
+
* Creates an object representation of this proto.
|
|
39672
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
39673
|
+
* Optional fields that are not set will be set to undefined.
|
|
39674
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
39675
|
+
* For the list of reserved names please see:
|
|
39676
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
39677
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
39678
|
+
* JSPB instance for transitional soy proto support:
|
|
39679
|
+
* http://goto/soy-param-migration
|
|
39680
|
+
* @return {!Object}
|
|
39681
|
+
*/
|
|
39682
|
+
proto.payment.ResolveGameWalletContextResponse.prototype.toObject = function(opt_includeInstance) {
|
|
39683
|
+
return proto.payment.ResolveGameWalletContextResponse.toObject(opt_includeInstance, this);
|
|
39684
|
+
};
|
|
39685
|
+
|
|
39686
|
+
|
|
39687
|
+
/**
|
|
39688
|
+
* Static version of the {@see toObject} method.
|
|
39689
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
39690
|
+
* the JSPB instance for transitional soy proto support:
|
|
39691
|
+
* http://goto/soy-param-migration
|
|
39692
|
+
* @param {!proto.payment.ResolveGameWalletContextResponse} msg The msg instance to transform.
|
|
39693
|
+
* @return {!Object}
|
|
39694
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
39695
|
+
*/
|
|
39696
|
+
proto.payment.ResolveGameWalletContextResponse.toObject = function(includeInstance, msg) {
|
|
39697
|
+
var f, obj = {
|
|
39698
|
+
userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
39699
|
+
walletCurrency: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
39700
|
+
currencyScale: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
39701
|
+
balanceMinor: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
39702
|
+
balanceMajor: jspb.Message.getFieldWithDefault(msg, 5, "")
|
|
39703
|
+
};
|
|
39704
|
+
|
|
39705
|
+
if (includeInstance) {
|
|
39706
|
+
obj.$jspbMessageInstance = msg;
|
|
39707
|
+
}
|
|
39708
|
+
return obj;
|
|
39709
|
+
};
|
|
39710
|
+
}
|
|
39711
|
+
|
|
39712
|
+
|
|
39713
|
+
/**
|
|
39714
|
+
* Deserializes binary data (in protobuf wire format).
|
|
39715
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
39716
|
+
* @return {!proto.payment.ResolveGameWalletContextResponse}
|
|
39717
|
+
*/
|
|
39718
|
+
proto.payment.ResolveGameWalletContextResponse.deserializeBinary = function(bytes) {
|
|
39719
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
39720
|
+
var msg = new proto.payment.ResolveGameWalletContextResponse;
|
|
39721
|
+
return proto.payment.ResolveGameWalletContextResponse.deserializeBinaryFromReader(msg, reader);
|
|
39722
|
+
};
|
|
39723
|
+
|
|
39724
|
+
|
|
39725
|
+
/**
|
|
39726
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
39727
|
+
* given reader into the given message object.
|
|
39728
|
+
* @param {!proto.payment.ResolveGameWalletContextResponse} msg The message object to deserialize into.
|
|
39729
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
39730
|
+
* @return {!proto.payment.ResolveGameWalletContextResponse}
|
|
39731
|
+
*/
|
|
39732
|
+
proto.payment.ResolveGameWalletContextResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
39733
|
+
while (reader.nextField()) {
|
|
39734
|
+
if (reader.isEndGroup()) {
|
|
39735
|
+
break;
|
|
39736
|
+
}
|
|
39737
|
+
var field = reader.getFieldNumber();
|
|
39738
|
+
switch (field) {
|
|
39739
|
+
case 1:
|
|
39740
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
39741
|
+
msg.setUserId(value);
|
|
39742
|
+
break;
|
|
39743
|
+
case 2:
|
|
39744
|
+
var value = /** @type {string} */ (reader.readString());
|
|
39745
|
+
msg.setWalletCurrency(value);
|
|
39746
|
+
break;
|
|
39747
|
+
case 3:
|
|
39748
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
39749
|
+
msg.setCurrencyScale(value);
|
|
39750
|
+
break;
|
|
39751
|
+
case 4:
|
|
39752
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
39753
|
+
msg.setBalanceMinor(value);
|
|
39754
|
+
break;
|
|
39755
|
+
case 5:
|
|
39756
|
+
var value = /** @type {string} */ (reader.readString());
|
|
39757
|
+
msg.setBalanceMajor(value);
|
|
39758
|
+
break;
|
|
39759
|
+
default:
|
|
39760
|
+
reader.skipField();
|
|
39761
|
+
break;
|
|
39762
|
+
}
|
|
39763
|
+
}
|
|
39764
|
+
return msg;
|
|
39765
|
+
};
|
|
39766
|
+
|
|
39767
|
+
|
|
39768
|
+
/**
|
|
39769
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
39770
|
+
* @return {!Uint8Array}
|
|
39771
|
+
*/
|
|
39772
|
+
proto.payment.ResolveGameWalletContextResponse.prototype.serializeBinary = function() {
|
|
39773
|
+
var writer = new jspb.BinaryWriter();
|
|
39774
|
+
proto.payment.ResolveGameWalletContextResponse.serializeBinaryToWriter(this, writer);
|
|
39775
|
+
return writer.getResultBuffer();
|
|
39776
|
+
};
|
|
39777
|
+
|
|
39778
|
+
|
|
39779
|
+
/**
|
|
39780
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
39781
|
+
* format), writing to the given BinaryWriter.
|
|
39782
|
+
* @param {!proto.payment.ResolveGameWalletContextResponse} message
|
|
39783
|
+
* @param {!jspb.BinaryWriter} writer
|
|
39784
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
39785
|
+
*/
|
|
39786
|
+
proto.payment.ResolveGameWalletContextResponse.serializeBinaryToWriter = function(message, writer) {
|
|
39787
|
+
var f = undefined;
|
|
39788
|
+
f = message.getUserId();
|
|
39789
|
+
if (f !== 0) {
|
|
39790
|
+
writer.writeInt32(
|
|
39791
|
+
1,
|
|
39792
|
+
f
|
|
39793
|
+
);
|
|
39794
|
+
}
|
|
39795
|
+
f = message.getWalletCurrency();
|
|
39796
|
+
if (f.length > 0) {
|
|
39797
|
+
writer.writeString(
|
|
39798
|
+
2,
|
|
39799
|
+
f
|
|
39800
|
+
);
|
|
39801
|
+
}
|
|
39802
|
+
f = message.getCurrencyScale();
|
|
39803
|
+
if (f !== 0) {
|
|
39804
|
+
writer.writeInt32(
|
|
39805
|
+
3,
|
|
39806
|
+
f
|
|
39807
|
+
);
|
|
39808
|
+
}
|
|
39809
|
+
f = message.getBalanceMinor();
|
|
39810
|
+
if (f !== 0) {
|
|
39811
|
+
writer.writeInt64(
|
|
39812
|
+
4,
|
|
39813
|
+
f
|
|
39814
|
+
);
|
|
39815
|
+
}
|
|
39816
|
+
f = message.getBalanceMajor();
|
|
39817
|
+
if (f.length > 0) {
|
|
39818
|
+
writer.writeString(
|
|
39819
|
+
5,
|
|
39820
|
+
f
|
|
39821
|
+
);
|
|
39822
|
+
}
|
|
39823
|
+
};
|
|
39824
|
+
|
|
39825
|
+
|
|
39826
|
+
/**
|
|
39827
|
+
* optional int32 user_id = 1;
|
|
39828
|
+
* @return {number}
|
|
39829
|
+
*/
|
|
39830
|
+
proto.payment.ResolveGameWalletContextResponse.prototype.getUserId = function() {
|
|
39831
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
39832
|
+
};
|
|
39833
|
+
|
|
39834
|
+
|
|
39835
|
+
/**
|
|
39836
|
+
* @param {number} value
|
|
39837
|
+
* @return {!proto.payment.ResolveGameWalletContextResponse} returns this
|
|
39838
|
+
*/
|
|
39839
|
+
proto.payment.ResolveGameWalletContextResponse.prototype.setUserId = function(value) {
|
|
39840
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
39841
|
+
};
|
|
39842
|
+
|
|
39843
|
+
|
|
39844
|
+
/**
|
|
39845
|
+
* optional string wallet_currency = 2;
|
|
39846
|
+
* @return {string}
|
|
39847
|
+
*/
|
|
39848
|
+
proto.payment.ResolveGameWalletContextResponse.prototype.getWalletCurrency = function() {
|
|
39849
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
39850
|
+
};
|
|
39851
|
+
|
|
39852
|
+
|
|
39853
|
+
/**
|
|
39854
|
+
* @param {string} value
|
|
39855
|
+
* @return {!proto.payment.ResolveGameWalletContextResponse} returns this
|
|
39856
|
+
*/
|
|
39857
|
+
proto.payment.ResolveGameWalletContextResponse.prototype.setWalletCurrency = function(value) {
|
|
39858
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
39859
|
+
};
|
|
39860
|
+
|
|
39861
|
+
|
|
39862
|
+
/**
|
|
39863
|
+
* optional int32 currency_scale = 3;
|
|
39864
|
+
* @return {number}
|
|
39865
|
+
*/
|
|
39866
|
+
proto.payment.ResolveGameWalletContextResponse.prototype.getCurrencyScale = function() {
|
|
39867
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
39868
|
+
};
|
|
39869
|
+
|
|
39870
|
+
|
|
39871
|
+
/**
|
|
39872
|
+
* @param {number} value
|
|
39873
|
+
* @return {!proto.payment.ResolveGameWalletContextResponse} returns this
|
|
39874
|
+
*/
|
|
39875
|
+
proto.payment.ResolveGameWalletContextResponse.prototype.setCurrencyScale = function(value) {
|
|
39876
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
39877
|
+
};
|
|
39878
|
+
|
|
39879
|
+
|
|
39880
|
+
/**
|
|
39881
|
+
* optional int64 balance_minor = 4;
|
|
39882
|
+
* @return {number}
|
|
39883
|
+
*/
|
|
39884
|
+
proto.payment.ResolveGameWalletContextResponse.prototype.getBalanceMinor = function() {
|
|
39885
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
39886
|
+
};
|
|
39887
|
+
|
|
39888
|
+
|
|
39889
|
+
/**
|
|
39890
|
+
* @param {number} value
|
|
39891
|
+
* @return {!proto.payment.ResolveGameWalletContextResponse} returns this
|
|
39892
|
+
*/
|
|
39893
|
+
proto.payment.ResolveGameWalletContextResponse.prototype.setBalanceMinor = function(value) {
|
|
39894
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
39895
|
+
};
|
|
39896
|
+
|
|
39897
|
+
|
|
39898
|
+
/**
|
|
39899
|
+
* optional string balance_major = 5;
|
|
39900
|
+
* @return {string}
|
|
39901
|
+
*/
|
|
39902
|
+
proto.payment.ResolveGameWalletContextResponse.prototype.getBalanceMajor = function() {
|
|
39903
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
39904
|
+
};
|
|
39905
|
+
|
|
39906
|
+
|
|
39907
|
+
/**
|
|
39908
|
+
* @param {string} value
|
|
39909
|
+
* @return {!proto.payment.ResolveGameWalletContextResponse} returns this
|
|
39910
|
+
*/
|
|
39911
|
+
proto.payment.ResolveGameWalletContextResponse.prototype.setBalanceMajor = function(value) {
|
|
39912
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
39913
|
+
};
|
|
39914
|
+
|
|
39915
|
+
|
|
39916
|
+
|
|
39445
39917
|
/**
|
|
39446
39918
|
* List of repeated fields within this message type.
|
|
39447
39919
|
* @private {!Array<number>}
|
package/user/user.proto
CHANGED
|
@@ -176,6 +176,7 @@ service User {
|
|
|
176
176
|
//Confirmations
|
|
177
177
|
rpc attemptEmailConfirmation(EmailConfirmationRequest) returns (ConfirmationStatusResponse);
|
|
178
178
|
rpc setEmailConfirmed(EmailConfirmedRequest) returns (ConfirmationStatusResponse);
|
|
179
|
+
rpc requestEmailVerification(RequestEmailVerificationRequest) returns (ConfirmationStatusResponse);
|
|
179
180
|
rpc attemptResetPasswordConfirmation(ResetPasswordConfirmationRequest) returns (ConfirmationStatusResponse);
|
|
180
181
|
rpc setNewPassword(SetNewPasswordConfirmedRequest) returns (ConfirmationStatusResponse);
|
|
181
182
|
rpc attemptSmsResetPasswordConfirmation(SmsResetPasswordConfirmationRequest) returns (ConfirmationStatusResponse);
|
|
@@ -2052,6 +2053,9 @@ message ConfirmationStatusResponse {
|
|
|
2052
2053
|
message EmailConfirmedRequest {
|
|
2053
2054
|
string token = 1;
|
|
2054
2055
|
}
|
|
2056
|
+
message RequestEmailVerificationRequest {
|
|
2057
|
+
int32 user_id = 1;
|
|
2058
|
+
}
|
|
2055
2059
|
message SetNewPasswordConfirmedRequest {
|
|
2056
2060
|
string token = 1;
|
|
2057
2061
|
string new_password = 2;
|
package/user/user_grpc_pb.js
CHANGED
|
@@ -1390,6 +1390,17 @@ function deserialize_user_ReplaceVerificationProfileDataRequirementsResponse(buf
|
|
|
1390
1390
|
return user_pb.ReplaceVerificationProfileDataRequirementsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1391
1391
|
}
|
|
1392
1392
|
|
|
1393
|
+
function serialize_user_RequestEmailVerificationRequest(arg) {
|
|
1394
|
+
if (!(arg instanceof user_pb.RequestEmailVerificationRequest)) {
|
|
1395
|
+
throw new Error('Expected argument of type user.RequestEmailVerificationRequest');
|
|
1396
|
+
}
|
|
1397
|
+
return Buffer.from(arg.serializeBinary());
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1400
|
+
function deserialize_user_RequestEmailVerificationRequest(buffer_arg) {
|
|
1401
|
+
return user_pb.RequestEmailVerificationRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1393
1404
|
function serialize_user_ReserveResponsibleGamingDepositRequest(arg) {
|
|
1394
1405
|
if (!(arg instanceof user_pb.ReserveResponsibleGamingDepositRequest)) {
|
|
1395
1406
|
throw new Error('Expected argument of type user.ReserveResponsibleGamingDepositRequest');
|
|
@@ -3942,6 +3953,17 @@ attemptEmailConfirmation: {
|
|
|
3942
3953
|
responseSerialize: serialize_user_ConfirmationStatusResponse,
|
|
3943
3954
|
responseDeserialize: deserialize_user_ConfirmationStatusResponse,
|
|
3944
3955
|
},
|
|
3956
|
+
requestEmailVerification: {
|
|
3957
|
+
path: '/user.User/requestEmailVerification',
|
|
3958
|
+
requestStream: false,
|
|
3959
|
+
responseStream: false,
|
|
3960
|
+
requestType: user_pb.RequestEmailVerificationRequest,
|
|
3961
|
+
responseType: user_pb.ConfirmationStatusResponse,
|
|
3962
|
+
requestSerialize: serialize_user_RequestEmailVerificationRequest,
|
|
3963
|
+
requestDeserialize: deserialize_user_RequestEmailVerificationRequest,
|
|
3964
|
+
responseSerialize: serialize_user_ConfirmationStatusResponse,
|
|
3965
|
+
responseDeserialize: deserialize_user_ConfirmationStatusResponse,
|
|
3966
|
+
},
|
|
3945
3967
|
attemptResetPasswordConfirmation: {
|
|
3946
3968
|
path: '/user.User/attemptResetPasswordConfirmation',
|
|
3947
3969
|
requestStream: false,
|