protobuf-platform 1.2.598 → 1.2.602
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/game/game.proto +8 -0
- package/game/game_grpc_pb.js +33 -0
- package/game/game_pb.js +334 -0
- package/package.json +1 -1
- package/payment/payment.proto +19 -0
- package/payment/payment_grpc_pb.js +33 -0
- package/payment/payment_pb.js +574 -0
package/game/game.proto
CHANGED
|
@@ -56,6 +56,7 @@ service Game {
|
|
|
56
56
|
rpc getProviderCutoverSnapshot(ProviderCutoverRequest) returns (ProviderCutoverSnapshotResponse);
|
|
57
57
|
rpc prepareProviderCutover(ProviderCutoverRequest) returns (ProviderCutoverAcceptedResponse);
|
|
58
58
|
rpc replaceProviderCutoverPlacements(ProviderCutoverRequest) returns (ProviderCutoverAcceptedResponse);
|
|
59
|
+
rpc startProviderDemoAvailabilityCheck(ProviderDemoAvailabilityCheckRequest) returns (ProviderDemoAvailabilityCheckAcceptedResponse);
|
|
59
60
|
//Games
|
|
60
61
|
rpc parseGames(ParseGamesRequest) returns (ParseGamesResponse);
|
|
61
62
|
rpc readSingleGame(GetGameRequest) returns (GameResponse);
|
|
@@ -552,6 +553,13 @@ message ProviderCutoverSnapshotResponse {
|
|
|
552
553
|
int32 problems_total = 17;
|
|
553
554
|
repeated ProviderCutoverProblemItem problems = 18;
|
|
554
555
|
}
|
|
556
|
+
message ProviderDemoAvailabilityCheckRequest {
|
|
557
|
+
string provider_slug = 1;
|
|
558
|
+
}
|
|
559
|
+
message ProviderDemoAvailabilityCheckAcceptedResponse {
|
|
560
|
+
string status = 1;
|
|
561
|
+
string job_id = 2;
|
|
562
|
+
}
|
|
555
563
|
|
|
556
564
|
//Games Common
|
|
557
565
|
message ParseGamesRequest { string vendor = 1; }
|
package/game/game_grpc_pb.js
CHANGED
|
@@ -983,6 +983,28 @@ function deserialize_game_ProviderCutoverSnapshotResponse(buffer_arg) {
|
|
|
983
983
|
return game_pb.ProviderCutoverSnapshotResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
984
984
|
}
|
|
985
985
|
|
|
986
|
+
function serialize_game_ProviderDemoAvailabilityCheckAcceptedResponse(arg) {
|
|
987
|
+
if (!(arg instanceof game_pb.ProviderDemoAvailabilityCheckAcceptedResponse)) {
|
|
988
|
+
throw new Error('Expected argument of type game.ProviderDemoAvailabilityCheckAcceptedResponse');
|
|
989
|
+
}
|
|
990
|
+
return Buffer.from(arg.serializeBinary());
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
function deserialize_game_ProviderDemoAvailabilityCheckAcceptedResponse(buffer_arg) {
|
|
994
|
+
return game_pb.ProviderDemoAvailabilityCheckAcceptedResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
function serialize_game_ProviderDemoAvailabilityCheckRequest(arg) {
|
|
998
|
+
if (!(arg instanceof game_pb.ProviderDemoAvailabilityCheckRequest)) {
|
|
999
|
+
throw new Error('Expected argument of type game.ProviderDemoAvailabilityCheckRequest');
|
|
1000
|
+
}
|
|
1001
|
+
return Buffer.from(arg.serializeBinary());
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
function deserialize_game_ProviderDemoAvailabilityCheckRequest(buffer_arg) {
|
|
1005
|
+
return game_pb.ProviderDemoAvailabilityCheckRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1006
|
+
}
|
|
1007
|
+
|
|
986
1008
|
function serialize_game_ProviderItemsResponse(arg) {
|
|
987
1009
|
if (!(arg instanceof game_pb.ProviderItemsResponse)) {
|
|
988
1010
|
throw new Error('Expected argument of type game.ProviderItemsResponse');
|
|
@@ -1959,6 +1981,17 @@ createSingleProvider: {
|
|
|
1959
1981
|
responseSerialize: serialize_game_ProviderCutoverAcceptedResponse,
|
|
1960
1982
|
responseDeserialize: deserialize_game_ProviderCutoverAcceptedResponse,
|
|
1961
1983
|
},
|
|
1984
|
+
startProviderDemoAvailabilityCheck: {
|
|
1985
|
+
path: '/game.Game/startProviderDemoAvailabilityCheck',
|
|
1986
|
+
requestStream: false,
|
|
1987
|
+
responseStream: false,
|
|
1988
|
+
requestType: game_pb.ProviderDemoAvailabilityCheckRequest,
|
|
1989
|
+
responseType: game_pb.ProviderDemoAvailabilityCheckAcceptedResponse,
|
|
1990
|
+
requestSerialize: serialize_game_ProviderDemoAvailabilityCheckRequest,
|
|
1991
|
+
requestDeserialize: deserialize_game_ProviderDemoAvailabilityCheckRequest,
|
|
1992
|
+
responseSerialize: serialize_game_ProviderDemoAvailabilityCheckAcceptedResponse,
|
|
1993
|
+
responseDeserialize: deserialize_game_ProviderDemoAvailabilityCheckAcceptedResponse,
|
|
1994
|
+
},
|
|
1962
1995
|
// Games
|
|
1963
1996
|
parseGames: {
|
|
1964
1997
|
path: '/game.Game/parseGames',
|
package/game/game_pb.js
CHANGED
|
@@ -146,6 +146,8 @@ goog.exportSymbol('proto.game.ProviderCutoverProblemItem', null, global);
|
|
|
146
146
|
goog.exportSymbol('proto.game.ProviderCutoverProviderItem', null, global);
|
|
147
147
|
goog.exportSymbol('proto.game.ProviderCutoverRequest', null, global);
|
|
148
148
|
goog.exportSymbol('proto.game.ProviderCutoverSnapshotResponse', null, global);
|
|
149
|
+
goog.exportSymbol('proto.game.ProviderDemoAvailabilityCheckAcceptedResponse', null, global);
|
|
150
|
+
goog.exportSymbol('proto.game.ProviderDemoAvailabilityCheckRequest', null, global);
|
|
149
151
|
goog.exportSymbol('proto.game.ProviderItem', null, global);
|
|
150
152
|
goog.exportSymbol('proto.game.ProviderItemRequest', null, global);
|
|
151
153
|
goog.exportSymbol('proto.game.ProviderItemsResponse', null, global);
|
|
@@ -1469,6 +1471,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
1469
1471
|
*/
|
|
1470
1472
|
proto.game.ProviderCutoverSnapshotResponse.displayName = 'proto.game.ProviderCutoverSnapshotResponse';
|
|
1471
1473
|
}
|
|
1474
|
+
/**
|
|
1475
|
+
* Generated by JsPbCodeGenerator.
|
|
1476
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1477
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1478
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1479
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1480
|
+
* valid.
|
|
1481
|
+
* @extends {jspb.Message}
|
|
1482
|
+
* @constructor
|
|
1483
|
+
*/
|
|
1484
|
+
proto.game.ProviderDemoAvailabilityCheckRequest = function(opt_data) {
|
|
1485
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1486
|
+
};
|
|
1487
|
+
goog.inherits(proto.game.ProviderDemoAvailabilityCheckRequest, jspb.Message);
|
|
1488
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1489
|
+
/**
|
|
1490
|
+
* @public
|
|
1491
|
+
* @override
|
|
1492
|
+
*/
|
|
1493
|
+
proto.game.ProviderDemoAvailabilityCheckRequest.displayName = 'proto.game.ProviderDemoAvailabilityCheckRequest';
|
|
1494
|
+
}
|
|
1495
|
+
/**
|
|
1496
|
+
* Generated by JsPbCodeGenerator.
|
|
1497
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1498
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1499
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1500
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1501
|
+
* valid.
|
|
1502
|
+
* @extends {jspb.Message}
|
|
1503
|
+
* @constructor
|
|
1504
|
+
*/
|
|
1505
|
+
proto.game.ProviderDemoAvailabilityCheckAcceptedResponse = function(opt_data) {
|
|
1506
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1507
|
+
};
|
|
1508
|
+
goog.inherits(proto.game.ProviderDemoAvailabilityCheckAcceptedResponse, jspb.Message);
|
|
1509
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1510
|
+
/**
|
|
1511
|
+
* @public
|
|
1512
|
+
* @override
|
|
1513
|
+
*/
|
|
1514
|
+
proto.game.ProviderDemoAvailabilityCheckAcceptedResponse.displayName = 'proto.game.ProviderDemoAvailabilityCheckAcceptedResponse';
|
|
1515
|
+
}
|
|
1472
1516
|
/**
|
|
1473
1517
|
* Generated by JsPbCodeGenerator.
|
|
1474
1518
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -22182,6 +22226,296 @@ proto.game.ProviderCutoverSnapshotResponse.prototype.clearProblemsList = functio
|
|
|
22182
22226
|
|
|
22183
22227
|
|
|
22184
22228
|
|
|
22229
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
22230
|
+
/**
|
|
22231
|
+
* Creates an object representation of this proto.
|
|
22232
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
22233
|
+
* Optional fields that are not set will be set to undefined.
|
|
22234
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
22235
|
+
* For the list of reserved names please see:
|
|
22236
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
22237
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
22238
|
+
* JSPB instance for transitional soy proto support:
|
|
22239
|
+
* http://goto/soy-param-migration
|
|
22240
|
+
* @return {!Object}
|
|
22241
|
+
*/
|
|
22242
|
+
proto.game.ProviderDemoAvailabilityCheckRequest.prototype.toObject = function(opt_includeInstance) {
|
|
22243
|
+
return proto.game.ProviderDemoAvailabilityCheckRequest.toObject(opt_includeInstance, this);
|
|
22244
|
+
};
|
|
22245
|
+
|
|
22246
|
+
|
|
22247
|
+
/**
|
|
22248
|
+
* Static version of the {@see toObject} method.
|
|
22249
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
22250
|
+
* the JSPB instance for transitional soy proto support:
|
|
22251
|
+
* http://goto/soy-param-migration
|
|
22252
|
+
* @param {!proto.game.ProviderDemoAvailabilityCheckRequest} msg The msg instance to transform.
|
|
22253
|
+
* @return {!Object}
|
|
22254
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
22255
|
+
*/
|
|
22256
|
+
proto.game.ProviderDemoAvailabilityCheckRequest.toObject = function(includeInstance, msg) {
|
|
22257
|
+
var f, obj = {
|
|
22258
|
+
providerSlug: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
22259
|
+
};
|
|
22260
|
+
|
|
22261
|
+
if (includeInstance) {
|
|
22262
|
+
obj.$jspbMessageInstance = msg;
|
|
22263
|
+
}
|
|
22264
|
+
return obj;
|
|
22265
|
+
};
|
|
22266
|
+
}
|
|
22267
|
+
|
|
22268
|
+
|
|
22269
|
+
/**
|
|
22270
|
+
* Deserializes binary data (in protobuf wire format).
|
|
22271
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
22272
|
+
* @return {!proto.game.ProviderDemoAvailabilityCheckRequest}
|
|
22273
|
+
*/
|
|
22274
|
+
proto.game.ProviderDemoAvailabilityCheckRequest.deserializeBinary = function(bytes) {
|
|
22275
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
22276
|
+
var msg = new proto.game.ProviderDemoAvailabilityCheckRequest;
|
|
22277
|
+
return proto.game.ProviderDemoAvailabilityCheckRequest.deserializeBinaryFromReader(msg, reader);
|
|
22278
|
+
};
|
|
22279
|
+
|
|
22280
|
+
|
|
22281
|
+
/**
|
|
22282
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
22283
|
+
* given reader into the given message object.
|
|
22284
|
+
* @param {!proto.game.ProviderDemoAvailabilityCheckRequest} msg The message object to deserialize into.
|
|
22285
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
22286
|
+
* @return {!proto.game.ProviderDemoAvailabilityCheckRequest}
|
|
22287
|
+
*/
|
|
22288
|
+
proto.game.ProviderDemoAvailabilityCheckRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
22289
|
+
while (reader.nextField()) {
|
|
22290
|
+
if (reader.isEndGroup()) {
|
|
22291
|
+
break;
|
|
22292
|
+
}
|
|
22293
|
+
var field = reader.getFieldNumber();
|
|
22294
|
+
switch (field) {
|
|
22295
|
+
case 1:
|
|
22296
|
+
var value = /** @type {string} */ (reader.readString());
|
|
22297
|
+
msg.setProviderSlug(value);
|
|
22298
|
+
break;
|
|
22299
|
+
default:
|
|
22300
|
+
reader.skipField();
|
|
22301
|
+
break;
|
|
22302
|
+
}
|
|
22303
|
+
}
|
|
22304
|
+
return msg;
|
|
22305
|
+
};
|
|
22306
|
+
|
|
22307
|
+
|
|
22308
|
+
/**
|
|
22309
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
22310
|
+
* @return {!Uint8Array}
|
|
22311
|
+
*/
|
|
22312
|
+
proto.game.ProviderDemoAvailabilityCheckRequest.prototype.serializeBinary = function() {
|
|
22313
|
+
var writer = new jspb.BinaryWriter();
|
|
22314
|
+
proto.game.ProviderDemoAvailabilityCheckRequest.serializeBinaryToWriter(this, writer);
|
|
22315
|
+
return writer.getResultBuffer();
|
|
22316
|
+
};
|
|
22317
|
+
|
|
22318
|
+
|
|
22319
|
+
/**
|
|
22320
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
22321
|
+
* format), writing to the given BinaryWriter.
|
|
22322
|
+
* @param {!proto.game.ProviderDemoAvailabilityCheckRequest} message
|
|
22323
|
+
* @param {!jspb.BinaryWriter} writer
|
|
22324
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
22325
|
+
*/
|
|
22326
|
+
proto.game.ProviderDemoAvailabilityCheckRequest.serializeBinaryToWriter = function(message, writer) {
|
|
22327
|
+
var f = undefined;
|
|
22328
|
+
f = message.getProviderSlug();
|
|
22329
|
+
if (f.length > 0) {
|
|
22330
|
+
writer.writeString(
|
|
22331
|
+
1,
|
|
22332
|
+
f
|
|
22333
|
+
);
|
|
22334
|
+
}
|
|
22335
|
+
};
|
|
22336
|
+
|
|
22337
|
+
|
|
22338
|
+
/**
|
|
22339
|
+
* optional string provider_slug = 1;
|
|
22340
|
+
* @return {string}
|
|
22341
|
+
*/
|
|
22342
|
+
proto.game.ProviderDemoAvailabilityCheckRequest.prototype.getProviderSlug = function() {
|
|
22343
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
22344
|
+
};
|
|
22345
|
+
|
|
22346
|
+
|
|
22347
|
+
/**
|
|
22348
|
+
* @param {string} value
|
|
22349
|
+
* @return {!proto.game.ProviderDemoAvailabilityCheckRequest} returns this
|
|
22350
|
+
*/
|
|
22351
|
+
proto.game.ProviderDemoAvailabilityCheckRequest.prototype.setProviderSlug = function(value) {
|
|
22352
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
22353
|
+
};
|
|
22354
|
+
|
|
22355
|
+
|
|
22356
|
+
|
|
22357
|
+
|
|
22358
|
+
|
|
22359
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
22360
|
+
/**
|
|
22361
|
+
* Creates an object representation of this proto.
|
|
22362
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
22363
|
+
* Optional fields that are not set will be set to undefined.
|
|
22364
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
22365
|
+
* For the list of reserved names please see:
|
|
22366
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
22367
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
22368
|
+
* JSPB instance for transitional soy proto support:
|
|
22369
|
+
* http://goto/soy-param-migration
|
|
22370
|
+
* @return {!Object}
|
|
22371
|
+
*/
|
|
22372
|
+
proto.game.ProviderDemoAvailabilityCheckAcceptedResponse.prototype.toObject = function(opt_includeInstance) {
|
|
22373
|
+
return proto.game.ProviderDemoAvailabilityCheckAcceptedResponse.toObject(opt_includeInstance, this);
|
|
22374
|
+
};
|
|
22375
|
+
|
|
22376
|
+
|
|
22377
|
+
/**
|
|
22378
|
+
* Static version of the {@see toObject} method.
|
|
22379
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
22380
|
+
* the JSPB instance for transitional soy proto support:
|
|
22381
|
+
* http://goto/soy-param-migration
|
|
22382
|
+
* @param {!proto.game.ProviderDemoAvailabilityCheckAcceptedResponse} msg The msg instance to transform.
|
|
22383
|
+
* @return {!Object}
|
|
22384
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
22385
|
+
*/
|
|
22386
|
+
proto.game.ProviderDemoAvailabilityCheckAcceptedResponse.toObject = function(includeInstance, msg) {
|
|
22387
|
+
var f, obj = {
|
|
22388
|
+
status: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
22389
|
+
jobId: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
22390
|
+
};
|
|
22391
|
+
|
|
22392
|
+
if (includeInstance) {
|
|
22393
|
+
obj.$jspbMessageInstance = msg;
|
|
22394
|
+
}
|
|
22395
|
+
return obj;
|
|
22396
|
+
};
|
|
22397
|
+
}
|
|
22398
|
+
|
|
22399
|
+
|
|
22400
|
+
/**
|
|
22401
|
+
* Deserializes binary data (in protobuf wire format).
|
|
22402
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
22403
|
+
* @return {!proto.game.ProviderDemoAvailabilityCheckAcceptedResponse}
|
|
22404
|
+
*/
|
|
22405
|
+
proto.game.ProviderDemoAvailabilityCheckAcceptedResponse.deserializeBinary = function(bytes) {
|
|
22406
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
22407
|
+
var msg = new proto.game.ProviderDemoAvailabilityCheckAcceptedResponse;
|
|
22408
|
+
return proto.game.ProviderDemoAvailabilityCheckAcceptedResponse.deserializeBinaryFromReader(msg, reader);
|
|
22409
|
+
};
|
|
22410
|
+
|
|
22411
|
+
|
|
22412
|
+
/**
|
|
22413
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
22414
|
+
* given reader into the given message object.
|
|
22415
|
+
* @param {!proto.game.ProviderDemoAvailabilityCheckAcceptedResponse} msg The message object to deserialize into.
|
|
22416
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
22417
|
+
* @return {!proto.game.ProviderDemoAvailabilityCheckAcceptedResponse}
|
|
22418
|
+
*/
|
|
22419
|
+
proto.game.ProviderDemoAvailabilityCheckAcceptedResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
22420
|
+
while (reader.nextField()) {
|
|
22421
|
+
if (reader.isEndGroup()) {
|
|
22422
|
+
break;
|
|
22423
|
+
}
|
|
22424
|
+
var field = reader.getFieldNumber();
|
|
22425
|
+
switch (field) {
|
|
22426
|
+
case 1:
|
|
22427
|
+
var value = /** @type {string} */ (reader.readString());
|
|
22428
|
+
msg.setStatus(value);
|
|
22429
|
+
break;
|
|
22430
|
+
case 2:
|
|
22431
|
+
var value = /** @type {string} */ (reader.readString());
|
|
22432
|
+
msg.setJobId(value);
|
|
22433
|
+
break;
|
|
22434
|
+
default:
|
|
22435
|
+
reader.skipField();
|
|
22436
|
+
break;
|
|
22437
|
+
}
|
|
22438
|
+
}
|
|
22439
|
+
return msg;
|
|
22440
|
+
};
|
|
22441
|
+
|
|
22442
|
+
|
|
22443
|
+
/**
|
|
22444
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
22445
|
+
* @return {!Uint8Array}
|
|
22446
|
+
*/
|
|
22447
|
+
proto.game.ProviderDemoAvailabilityCheckAcceptedResponse.prototype.serializeBinary = function() {
|
|
22448
|
+
var writer = new jspb.BinaryWriter();
|
|
22449
|
+
proto.game.ProviderDemoAvailabilityCheckAcceptedResponse.serializeBinaryToWriter(this, writer);
|
|
22450
|
+
return writer.getResultBuffer();
|
|
22451
|
+
};
|
|
22452
|
+
|
|
22453
|
+
|
|
22454
|
+
/**
|
|
22455
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
22456
|
+
* format), writing to the given BinaryWriter.
|
|
22457
|
+
* @param {!proto.game.ProviderDemoAvailabilityCheckAcceptedResponse} message
|
|
22458
|
+
* @param {!jspb.BinaryWriter} writer
|
|
22459
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
22460
|
+
*/
|
|
22461
|
+
proto.game.ProviderDemoAvailabilityCheckAcceptedResponse.serializeBinaryToWriter = function(message, writer) {
|
|
22462
|
+
var f = undefined;
|
|
22463
|
+
f = message.getStatus();
|
|
22464
|
+
if (f.length > 0) {
|
|
22465
|
+
writer.writeString(
|
|
22466
|
+
1,
|
|
22467
|
+
f
|
|
22468
|
+
);
|
|
22469
|
+
}
|
|
22470
|
+
f = message.getJobId();
|
|
22471
|
+
if (f.length > 0) {
|
|
22472
|
+
writer.writeString(
|
|
22473
|
+
2,
|
|
22474
|
+
f
|
|
22475
|
+
);
|
|
22476
|
+
}
|
|
22477
|
+
};
|
|
22478
|
+
|
|
22479
|
+
|
|
22480
|
+
/**
|
|
22481
|
+
* optional string status = 1;
|
|
22482
|
+
* @return {string}
|
|
22483
|
+
*/
|
|
22484
|
+
proto.game.ProviderDemoAvailabilityCheckAcceptedResponse.prototype.getStatus = function() {
|
|
22485
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
22486
|
+
};
|
|
22487
|
+
|
|
22488
|
+
|
|
22489
|
+
/**
|
|
22490
|
+
* @param {string} value
|
|
22491
|
+
* @return {!proto.game.ProviderDemoAvailabilityCheckAcceptedResponse} returns this
|
|
22492
|
+
*/
|
|
22493
|
+
proto.game.ProviderDemoAvailabilityCheckAcceptedResponse.prototype.setStatus = function(value) {
|
|
22494
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
22495
|
+
};
|
|
22496
|
+
|
|
22497
|
+
|
|
22498
|
+
/**
|
|
22499
|
+
* optional string job_id = 2;
|
|
22500
|
+
* @return {string}
|
|
22501
|
+
*/
|
|
22502
|
+
proto.game.ProviderDemoAvailabilityCheckAcceptedResponse.prototype.getJobId = function() {
|
|
22503
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
22504
|
+
};
|
|
22505
|
+
|
|
22506
|
+
|
|
22507
|
+
/**
|
|
22508
|
+
* @param {string} value
|
|
22509
|
+
* @return {!proto.game.ProviderDemoAvailabilityCheckAcceptedResponse} returns this
|
|
22510
|
+
*/
|
|
22511
|
+
proto.game.ProviderDemoAvailabilityCheckAcceptedResponse.prototype.setJobId = function(value) {
|
|
22512
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
22513
|
+
};
|
|
22514
|
+
|
|
22515
|
+
|
|
22516
|
+
|
|
22517
|
+
|
|
22518
|
+
|
|
22185
22519
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
22186
22520
|
/**
|
|
22187
22521
|
* Creates an object representation of this proto.
|
package/package.json
CHANGED
package/payment/payment.proto
CHANGED
|
@@ -57,6 +57,7 @@ service Payment {
|
|
|
57
57
|
rpc getWithdrawalWagerBucketHistory(GetWithdrawalWagerBucketHistoryRequest) returns (GetWithdrawalWagerBucketHistoryResponse);
|
|
58
58
|
rpc getUserKycFinancialSnapshot(GetUserKycFinancialSnapshotRequest) returns (GetUserKycFinancialSnapshotResponse);
|
|
59
59
|
rpc getUserCashbackPaymentOperands(GetUserCashbackPaymentOperandsRequest) returns (GetUserCashbackPaymentOperandsResponse);
|
|
60
|
+
rpc getUserFinancialSummary(GetUserFinancialSummaryRequest) returns (GetUserFinancialSummaryResponse);
|
|
60
61
|
//Segmentation
|
|
61
62
|
rpc getSegmentedUsers(SegmentedUserRequest) returns (SegmentedUserResponse);
|
|
62
63
|
//Currency source-of-truth
|
|
@@ -899,6 +900,24 @@ message GetUserCashbackPaymentOperandsResponse {
|
|
|
899
900
|
optional int32 completed_deposits_count = 6;
|
|
900
901
|
optional int32 completed_withdrawals_count = 7;
|
|
901
902
|
}
|
|
903
|
+
message GetUserFinancialSummaryRequest {
|
|
904
|
+
int32 user_id = 1;
|
|
905
|
+
}
|
|
906
|
+
message GetUserFinancialSummaryResponse {
|
|
907
|
+
int32 user_id = 1;
|
|
908
|
+
string currency = 2;
|
|
909
|
+
int32 currency_scale = 3;
|
|
910
|
+
|
|
911
|
+
int64 real_balance_minor = 4;
|
|
912
|
+
int64 bonus_balance_minor = 5;
|
|
913
|
+
int64 withdrawal_hold_minor = 6;
|
|
914
|
+
|
|
915
|
+
int64 total_deposits_minor = 7;
|
|
916
|
+
int64 total_withdrawals_minor = 8;
|
|
917
|
+
|
|
918
|
+
int64 profitability_result_minor = 9;
|
|
919
|
+
string profitability_status = 10;
|
|
920
|
+
}
|
|
902
921
|
//Segmentation
|
|
903
922
|
message SegmentedUserRequest {
|
|
904
923
|
optional float deposit_amount_min = 1;
|
|
@@ -444,6 +444,28 @@ function deserialize_payment_GetUserDepositCountRequest(buffer_arg) {
|
|
|
444
444
|
return payment_pb.GetUserDepositCountRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
445
445
|
}
|
|
446
446
|
|
|
447
|
+
function serialize_payment_GetUserFinancialSummaryRequest(arg) {
|
|
448
|
+
if (!(arg instanceof payment_pb.GetUserFinancialSummaryRequest)) {
|
|
449
|
+
throw new Error('Expected argument of type payment.GetUserFinancialSummaryRequest');
|
|
450
|
+
}
|
|
451
|
+
return Buffer.from(arg.serializeBinary());
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
function deserialize_payment_GetUserFinancialSummaryRequest(buffer_arg) {
|
|
455
|
+
return payment_pb.GetUserFinancialSummaryRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
function serialize_payment_GetUserFinancialSummaryResponse(arg) {
|
|
459
|
+
if (!(arg instanceof payment_pb.GetUserFinancialSummaryResponse)) {
|
|
460
|
+
throw new Error('Expected argument of type payment.GetUserFinancialSummaryResponse');
|
|
461
|
+
}
|
|
462
|
+
return Buffer.from(arg.serializeBinary());
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
function deserialize_payment_GetUserFinancialSummaryResponse(buffer_arg) {
|
|
466
|
+
return payment_pb.GetUserFinancialSummaryResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
467
|
+
}
|
|
468
|
+
|
|
447
469
|
function serialize_payment_GetUserKycFinancialSnapshotRequest(arg) {
|
|
448
470
|
if (!(arg instanceof payment_pb.GetUserKycFinancialSnapshotRequest)) {
|
|
449
471
|
throw new Error('Expected argument of type payment.GetUserKycFinancialSnapshotRequest');
|
|
@@ -1433,6 +1455,17 @@ userPaymentsInfo: {
|
|
|
1433
1455
|
responseSerialize: serialize_payment_GetUserCashbackPaymentOperandsResponse,
|
|
1434
1456
|
responseDeserialize: deserialize_payment_GetUserCashbackPaymentOperandsResponse,
|
|
1435
1457
|
},
|
|
1458
|
+
getUserFinancialSummary: {
|
|
1459
|
+
path: '/payment.Payment/getUserFinancialSummary',
|
|
1460
|
+
requestStream: false,
|
|
1461
|
+
responseStream: false,
|
|
1462
|
+
requestType: payment_pb.GetUserFinancialSummaryRequest,
|
|
1463
|
+
responseType: payment_pb.GetUserFinancialSummaryResponse,
|
|
1464
|
+
requestSerialize: serialize_payment_GetUserFinancialSummaryRequest,
|
|
1465
|
+
requestDeserialize: deserialize_payment_GetUserFinancialSummaryRequest,
|
|
1466
|
+
responseSerialize: serialize_payment_GetUserFinancialSummaryResponse,
|
|
1467
|
+
responseDeserialize: deserialize_payment_GetUserFinancialSummaryResponse,
|
|
1468
|
+
},
|
|
1436
1469
|
// Segmentation
|
|
1437
1470
|
getSegmentedUsers: {
|
|
1438
1471
|
path: '/payment.Payment/getSegmentedUsers',
|
package/payment/payment_pb.js
CHANGED
|
@@ -73,6 +73,8 @@ goog.exportSymbol('proto.payment.GetProviderTranslationRequest', null, global);
|
|
|
73
73
|
goog.exportSymbol('proto.payment.GetUserCashbackPaymentOperandsRequest', null, global);
|
|
74
74
|
goog.exportSymbol('proto.payment.GetUserCashbackPaymentOperandsResponse', null, global);
|
|
75
75
|
goog.exportSymbol('proto.payment.GetUserDepositCountRequest', null, global);
|
|
76
|
+
goog.exportSymbol('proto.payment.GetUserFinancialSummaryRequest', null, global);
|
|
77
|
+
goog.exportSymbol('proto.payment.GetUserFinancialSummaryResponse', null, global);
|
|
76
78
|
goog.exportSymbol('proto.payment.GetUserKycFinancialSnapshotRequest', null, global);
|
|
77
79
|
goog.exportSymbol('proto.payment.GetUserKycFinancialSnapshotResponse', null, global);
|
|
78
80
|
goog.exportSymbol('proto.payment.GetUserPaymentsInfoRequest', null, global);
|
|
@@ -1921,6 +1923,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
1921
1923
|
*/
|
|
1922
1924
|
proto.payment.GetUserCashbackPaymentOperandsResponse.displayName = 'proto.payment.GetUserCashbackPaymentOperandsResponse';
|
|
1923
1925
|
}
|
|
1926
|
+
/**
|
|
1927
|
+
* Generated by JsPbCodeGenerator.
|
|
1928
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1929
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1930
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1931
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1932
|
+
* valid.
|
|
1933
|
+
* @extends {jspb.Message}
|
|
1934
|
+
* @constructor
|
|
1935
|
+
*/
|
|
1936
|
+
proto.payment.GetUserFinancialSummaryRequest = function(opt_data) {
|
|
1937
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1938
|
+
};
|
|
1939
|
+
goog.inherits(proto.payment.GetUserFinancialSummaryRequest, jspb.Message);
|
|
1940
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1941
|
+
/**
|
|
1942
|
+
* @public
|
|
1943
|
+
* @override
|
|
1944
|
+
*/
|
|
1945
|
+
proto.payment.GetUserFinancialSummaryRequest.displayName = 'proto.payment.GetUserFinancialSummaryRequest';
|
|
1946
|
+
}
|
|
1947
|
+
/**
|
|
1948
|
+
* Generated by JsPbCodeGenerator.
|
|
1949
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1950
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1951
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1952
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1953
|
+
* valid.
|
|
1954
|
+
* @extends {jspb.Message}
|
|
1955
|
+
* @constructor
|
|
1956
|
+
*/
|
|
1957
|
+
proto.payment.GetUserFinancialSummaryResponse = function(opt_data) {
|
|
1958
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1959
|
+
};
|
|
1960
|
+
goog.inherits(proto.payment.GetUserFinancialSummaryResponse, jspb.Message);
|
|
1961
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1962
|
+
/**
|
|
1963
|
+
* @public
|
|
1964
|
+
* @override
|
|
1965
|
+
*/
|
|
1966
|
+
proto.payment.GetUserFinancialSummaryResponse.displayName = 'proto.payment.GetUserFinancialSummaryResponse';
|
|
1967
|
+
}
|
|
1924
1968
|
/**
|
|
1925
1969
|
* Generated by JsPbCodeGenerator.
|
|
1926
1970
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -38868,6 +38912,536 @@ proto.payment.GetUserCashbackPaymentOperandsResponse.prototype.hasCompletedWithd
|
|
|
38868
38912
|
|
|
38869
38913
|
|
|
38870
38914
|
|
|
38915
|
+
|
|
38916
|
+
|
|
38917
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
38918
|
+
/**
|
|
38919
|
+
* Creates an object representation of this proto.
|
|
38920
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
38921
|
+
* Optional fields that are not set will be set to undefined.
|
|
38922
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
38923
|
+
* For the list of reserved names please see:
|
|
38924
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
38925
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
38926
|
+
* JSPB instance for transitional soy proto support:
|
|
38927
|
+
* http://goto/soy-param-migration
|
|
38928
|
+
* @return {!Object}
|
|
38929
|
+
*/
|
|
38930
|
+
proto.payment.GetUserFinancialSummaryRequest.prototype.toObject = function(opt_includeInstance) {
|
|
38931
|
+
return proto.payment.GetUserFinancialSummaryRequest.toObject(opt_includeInstance, this);
|
|
38932
|
+
};
|
|
38933
|
+
|
|
38934
|
+
|
|
38935
|
+
/**
|
|
38936
|
+
* Static version of the {@see toObject} method.
|
|
38937
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
38938
|
+
* the JSPB instance for transitional soy proto support:
|
|
38939
|
+
* http://goto/soy-param-migration
|
|
38940
|
+
* @param {!proto.payment.GetUserFinancialSummaryRequest} msg The msg instance to transform.
|
|
38941
|
+
* @return {!Object}
|
|
38942
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
38943
|
+
*/
|
|
38944
|
+
proto.payment.GetUserFinancialSummaryRequest.toObject = function(includeInstance, msg) {
|
|
38945
|
+
var f, obj = {
|
|
38946
|
+
userId: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
38947
|
+
};
|
|
38948
|
+
|
|
38949
|
+
if (includeInstance) {
|
|
38950
|
+
obj.$jspbMessageInstance = msg;
|
|
38951
|
+
}
|
|
38952
|
+
return obj;
|
|
38953
|
+
};
|
|
38954
|
+
}
|
|
38955
|
+
|
|
38956
|
+
|
|
38957
|
+
/**
|
|
38958
|
+
* Deserializes binary data (in protobuf wire format).
|
|
38959
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
38960
|
+
* @return {!proto.payment.GetUserFinancialSummaryRequest}
|
|
38961
|
+
*/
|
|
38962
|
+
proto.payment.GetUserFinancialSummaryRequest.deserializeBinary = function(bytes) {
|
|
38963
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
38964
|
+
var msg = new proto.payment.GetUserFinancialSummaryRequest;
|
|
38965
|
+
return proto.payment.GetUserFinancialSummaryRequest.deserializeBinaryFromReader(msg, reader);
|
|
38966
|
+
};
|
|
38967
|
+
|
|
38968
|
+
|
|
38969
|
+
/**
|
|
38970
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
38971
|
+
* given reader into the given message object.
|
|
38972
|
+
* @param {!proto.payment.GetUserFinancialSummaryRequest} msg The message object to deserialize into.
|
|
38973
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
38974
|
+
* @return {!proto.payment.GetUserFinancialSummaryRequest}
|
|
38975
|
+
*/
|
|
38976
|
+
proto.payment.GetUserFinancialSummaryRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
38977
|
+
while (reader.nextField()) {
|
|
38978
|
+
if (reader.isEndGroup()) {
|
|
38979
|
+
break;
|
|
38980
|
+
}
|
|
38981
|
+
var field = reader.getFieldNumber();
|
|
38982
|
+
switch (field) {
|
|
38983
|
+
case 1:
|
|
38984
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
38985
|
+
msg.setUserId(value);
|
|
38986
|
+
break;
|
|
38987
|
+
default:
|
|
38988
|
+
reader.skipField();
|
|
38989
|
+
break;
|
|
38990
|
+
}
|
|
38991
|
+
}
|
|
38992
|
+
return msg;
|
|
38993
|
+
};
|
|
38994
|
+
|
|
38995
|
+
|
|
38996
|
+
/**
|
|
38997
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
38998
|
+
* @return {!Uint8Array}
|
|
38999
|
+
*/
|
|
39000
|
+
proto.payment.GetUserFinancialSummaryRequest.prototype.serializeBinary = function() {
|
|
39001
|
+
var writer = new jspb.BinaryWriter();
|
|
39002
|
+
proto.payment.GetUserFinancialSummaryRequest.serializeBinaryToWriter(this, writer);
|
|
39003
|
+
return writer.getResultBuffer();
|
|
39004
|
+
};
|
|
39005
|
+
|
|
39006
|
+
|
|
39007
|
+
/**
|
|
39008
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
39009
|
+
* format), writing to the given BinaryWriter.
|
|
39010
|
+
* @param {!proto.payment.GetUserFinancialSummaryRequest} message
|
|
39011
|
+
* @param {!jspb.BinaryWriter} writer
|
|
39012
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
39013
|
+
*/
|
|
39014
|
+
proto.payment.GetUserFinancialSummaryRequest.serializeBinaryToWriter = function(message, writer) {
|
|
39015
|
+
var f = undefined;
|
|
39016
|
+
f = message.getUserId();
|
|
39017
|
+
if (f !== 0) {
|
|
39018
|
+
writer.writeInt32(
|
|
39019
|
+
1,
|
|
39020
|
+
f
|
|
39021
|
+
);
|
|
39022
|
+
}
|
|
39023
|
+
};
|
|
39024
|
+
|
|
39025
|
+
|
|
39026
|
+
/**
|
|
39027
|
+
* optional int32 user_id = 1;
|
|
39028
|
+
* @return {number}
|
|
39029
|
+
*/
|
|
39030
|
+
proto.payment.GetUserFinancialSummaryRequest.prototype.getUserId = function() {
|
|
39031
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
39032
|
+
};
|
|
39033
|
+
|
|
39034
|
+
|
|
39035
|
+
/**
|
|
39036
|
+
* @param {number} value
|
|
39037
|
+
* @return {!proto.payment.GetUserFinancialSummaryRequest} returns this
|
|
39038
|
+
*/
|
|
39039
|
+
proto.payment.GetUserFinancialSummaryRequest.prototype.setUserId = function(value) {
|
|
39040
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
39041
|
+
};
|
|
39042
|
+
|
|
39043
|
+
|
|
39044
|
+
|
|
39045
|
+
|
|
39046
|
+
|
|
39047
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
39048
|
+
/**
|
|
39049
|
+
* Creates an object representation of this proto.
|
|
39050
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
39051
|
+
* Optional fields that are not set will be set to undefined.
|
|
39052
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
39053
|
+
* For the list of reserved names please see:
|
|
39054
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
39055
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
39056
|
+
* JSPB instance for transitional soy proto support:
|
|
39057
|
+
* http://goto/soy-param-migration
|
|
39058
|
+
* @return {!Object}
|
|
39059
|
+
*/
|
|
39060
|
+
proto.payment.GetUserFinancialSummaryResponse.prototype.toObject = function(opt_includeInstance) {
|
|
39061
|
+
return proto.payment.GetUserFinancialSummaryResponse.toObject(opt_includeInstance, this);
|
|
39062
|
+
};
|
|
39063
|
+
|
|
39064
|
+
|
|
39065
|
+
/**
|
|
39066
|
+
* Static version of the {@see toObject} method.
|
|
39067
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
39068
|
+
* the JSPB instance for transitional soy proto support:
|
|
39069
|
+
* http://goto/soy-param-migration
|
|
39070
|
+
* @param {!proto.payment.GetUserFinancialSummaryResponse} msg The msg instance to transform.
|
|
39071
|
+
* @return {!Object}
|
|
39072
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
39073
|
+
*/
|
|
39074
|
+
proto.payment.GetUserFinancialSummaryResponse.toObject = function(includeInstance, msg) {
|
|
39075
|
+
var f, obj = {
|
|
39076
|
+
userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
39077
|
+
currency: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
39078
|
+
currencyScale: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
39079
|
+
realBalanceMinor: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
39080
|
+
bonusBalanceMinor: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
39081
|
+
withdrawalHoldMinor: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
39082
|
+
totalDepositsMinor: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
39083
|
+
totalWithdrawalsMinor: jspb.Message.getFieldWithDefault(msg, 8, 0),
|
|
39084
|
+
profitabilityResultMinor: jspb.Message.getFieldWithDefault(msg, 9, 0),
|
|
39085
|
+
profitabilityStatus: jspb.Message.getFieldWithDefault(msg, 10, "")
|
|
39086
|
+
};
|
|
39087
|
+
|
|
39088
|
+
if (includeInstance) {
|
|
39089
|
+
obj.$jspbMessageInstance = msg;
|
|
39090
|
+
}
|
|
39091
|
+
return obj;
|
|
39092
|
+
};
|
|
39093
|
+
}
|
|
39094
|
+
|
|
39095
|
+
|
|
39096
|
+
/**
|
|
39097
|
+
* Deserializes binary data (in protobuf wire format).
|
|
39098
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
39099
|
+
* @return {!proto.payment.GetUserFinancialSummaryResponse}
|
|
39100
|
+
*/
|
|
39101
|
+
proto.payment.GetUserFinancialSummaryResponse.deserializeBinary = function(bytes) {
|
|
39102
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
39103
|
+
var msg = new proto.payment.GetUserFinancialSummaryResponse;
|
|
39104
|
+
return proto.payment.GetUserFinancialSummaryResponse.deserializeBinaryFromReader(msg, reader);
|
|
39105
|
+
};
|
|
39106
|
+
|
|
39107
|
+
|
|
39108
|
+
/**
|
|
39109
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
39110
|
+
* given reader into the given message object.
|
|
39111
|
+
* @param {!proto.payment.GetUserFinancialSummaryResponse} msg The message object to deserialize into.
|
|
39112
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
39113
|
+
* @return {!proto.payment.GetUserFinancialSummaryResponse}
|
|
39114
|
+
*/
|
|
39115
|
+
proto.payment.GetUserFinancialSummaryResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
39116
|
+
while (reader.nextField()) {
|
|
39117
|
+
if (reader.isEndGroup()) {
|
|
39118
|
+
break;
|
|
39119
|
+
}
|
|
39120
|
+
var field = reader.getFieldNumber();
|
|
39121
|
+
switch (field) {
|
|
39122
|
+
case 1:
|
|
39123
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
39124
|
+
msg.setUserId(value);
|
|
39125
|
+
break;
|
|
39126
|
+
case 2:
|
|
39127
|
+
var value = /** @type {string} */ (reader.readString());
|
|
39128
|
+
msg.setCurrency(value);
|
|
39129
|
+
break;
|
|
39130
|
+
case 3:
|
|
39131
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
39132
|
+
msg.setCurrencyScale(value);
|
|
39133
|
+
break;
|
|
39134
|
+
case 4:
|
|
39135
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
39136
|
+
msg.setRealBalanceMinor(value);
|
|
39137
|
+
break;
|
|
39138
|
+
case 5:
|
|
39139
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
39140
|
+
msg.setBonusBalanceMinor(value);
|
|
39141
|
+
break;
|
|
39142
|
+
case 6:
|
|
39143
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
39144
|
+
msg.setWithdrawalHoldMinor(value);
|
|
39145
|
+
break;
|
|
39146
|
+
case 7:
|
|
39147
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
39148
|
+
msg.setTotalDepositsMinor(value);
|
|
39149
|
+
break;
|
|
39150
|
+
case 8:
|
|
39151
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
39152
|
+
msg.setTotalWithdrawalsMinor(value);
|
|
39153
|
+
break;
|
|
39154
|
+
case 9:
|
|
39155
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
39156
|
+
msg.setProfitabilityResultMinor(value);
|
|
39157
|
+
break;
|
|
39158
|
+
case 10:
|
|
39159
|
+
var value = /** @type {string} */ (reader.readString());
|
|
39160
|
+
msg.setProfitabilityStatus(value);
|
|
39161
|
+
break;
|
|
39162
|
+
default:
|
|
39163
|
+
reader.skipField();
|
|
39164
|
+
break;
|
|
39165
|
+
}
|
|
39166
|
+
}
|
|
39167
|
+
return msg;
|
|
39168
|
+
};
|
|
39169
|
+
|
|
39170
|
+
|
|
39171
|
+
/**
|
|
39172
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
39173
|
+
* @return {!Uint8Array}
|
|
39174
|
+
*/
|
|
39175
|
+
proto.payment.GetUserFinancialSummaryResponse.prototype.serializeBinary = function() {
|
|
39176
|
+
var writer = new jspb.BinaryWriter();
|
|
39177
|
+
proto.payment.GetUserFinancialSummaryResponse.serializeBinaryToWriter(this, writer);
|
|
39178
|
+
return writer.getResultBuffer();
|
|
39179
|
+
};
|
|
39180
|
+
|
|
39181
|
+
|
|
39182
|
+
/**
|
|
39183
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
39184
|
+
* format), writing to the given BinaryWriter.
|
|
39185
|
+
* @param {!proto.payment.GetUserFinancialSummaryResponse} message
|
|
39186
|
+
* @param {!jspb.BinaryWriter} writer
|
|
39187
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
39188
|
+
*/
|
|
39189
|
+
proto.payment.GetUserFinancialSummaryResponse.serializeBinaryToWriter = function(message, writer) {
|
|
39190
|
+
var f = undefined;
|
|
39191
|
+
f = message.getUserId();
|
|
39192
|
+
if (f !== 0) {
|
|
39193
|
+
writer.writeInt32(
|
|
39194
|
+
1,
|
|
39195
|
+
f
|
|
39196
|
+
);
|
|
39197
|
+
}
|
|
39198
|
+
f = message.getCurrency();
|
|
39199
|
+
if (f.length > 0) {
|
|
39200
|
+
writer.writeString(
|
|
39201
|
+
2,
|
|
39202
|
+
f
|
|
39203
|
+
);
|
|
39204
|
+
}
|
|
39205
|
+
f = message.getCurrencyScale();
|
|
39206
|
+
if (f !== 0) {
|
|
39207
|
+
writer.writeInt32(
|
|
39208
|
+
3,
|
|
39209
|
+
f
|
|
39210
|
+
);
|
|
39211
|
+
}
|
|
39212
|
+
f = message.getRealBalanceMinor();
|
|
39213
|
+
if (f !== 0) {
|
|
39214
|
+
writer.writeInt64(
|
|
39215
|
+
4,
|
|
39216
|
+
f
|
|
39217
|
+
);
|
|
39218
|
+
}
|
|
39219
|
+
f = message.getBonusBalanceMinor();
|
|
39220
|
+
if (f !== 0) {
|
|
39221
|
+
writer.writeInt64(
|
|
39222
|
+
5,
|
|
39223
|
+
f
|
|
39224
|
+
);
|
|
39225
|
+
}
|
|
39226
|
+
f = message.getWithdrawalHoldMinor();
|
|
39227
|
+
if (f !== 0) {
|
|
39228
|
+
writer.writeInt64(
|
|
39229
|
+
6,
|
|
39230
|
+
f
|
|
39231
|
+
);
|
|
39232
|
+
}
|
|
39233
|
+
f = message.getTotalDepositsMinor();
|
|
39234
|
+
if (f !== 0) {
|
|
39235
|
+
writer.writeInt64(
|
|
39236
|
+
7,
|
|
39237
|
+
f
|
|
39238
|
+
);
|
|
39239
|
+
}
|
|
39240
|
+
f = message.getTotalWithdrawalsMinor();
|
|
39241
|
+
if (f !== 0) {
|
|
39242
|
+
writer.writeInt64(
|
|
39243
|
+
8,
|
|
39244
|
+
f
|
|
39245
|
+
);
|
|
39246
|
+
}
|
|
39247
|
+
f = message.getProfitabilityResultMinor();
|
|
39248
|
+
if (f !== 0) {
|
|
39249
|
+
writer.writeInt64(
|
|
39250
|
+
9,
|
|
39251
|
+
f
|
|
39252
|
+
);
|
|
39253
|
+
}
|
|
39254
|
+
f = message.getProfitabilityStatus();
|
|
39255
|
+
if (f.length > 0) {
|
|
39256
|
+
writer.writeString(
|
|
39257
|
+
10,
|
|
39258
|
+
f
|
|
39259
|
+
);
|
|
39260
|
+
}
|
|
39261
|
+
};
|
|
39262
|
+
|
|
39263
|
+
|
|
39264
|
+
/**
|
|
39265
|
+
* optional int32 user_id = 1;
|
|
39266
|
+
* @return {number}
|
|
39267
|
+
*/
|
|
39268
|
+
proto.payment.GetUserFinancialSummaryResponse.prototype.getUserId = function() {
|
|
39269
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
39270
|
+
};
|
|
39271
|
+
|
|
39272
|
+
|
|
39273
|
+
/**
|
|
39274
|
+
* @param {number} value
|
|
39275
|
+
* @return {!proto.payment.GetUserFinancialSummaryResponse} returns this
|
|
39276
|
+
*/
|
|
39277
|
+
proto.payment.GetUserFinancialSummaryResponse.prototype.setUserId = function(value) {
|
|
39278
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
39279
|
+
};
|
|
39280
|
+
|
|
39281
|
+
|
|
39282
|
+
/**
|
|
39283
|
+
* optional string currency = 2;
|
|
39284
|
+
* @return {string}
|
|
39285
|
+
*/
|
|
39286
|
+
proto.payment.GetUserFinancialSummaryResponse.prototype.getCurrency = function() {
|
|
39287
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
39288
|
+
};
|
|
39289
|
+
|
|
39290
|
+
|
|
39291
|
+
/**
|
|
39292
|
+
* @param {string} value
|
|
39293
|
+
* @return {!proto.payment.GetUserFinancialSummaryResponse} returns this
|
|
39294
|
+
*/
|
|
39295
|
+
proto.payment.GetUserFinancialSummaryResponse.prototype.setCurrency = function(value) {
|
|
39296
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
39297
|
+
};
|
|
39298
|
+
|
|
39299
|
+
|
|
39300
|
+
/**
|
|
39301
|
+
* optional int32 currency_scale = 3;
|
|
39302
|
+
* @return {number}
|
|
39303
|
+
*/
|
|
39304
|
+
proto.payment.GetUserFinancialSummaryResponse.prototype.getCurrencyScale = function() {
|
|
39305
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
39306
|
+
};
|
|
39307
|
+
|
|
39308
|
+
|
|
39309
|
+
/**
|
|
39310
|
+
* @param {number} value
|
|
39311
|
+
* @return {!proto.payment.GetUserFinancialSummaryResponse} returns this
|
|
39312
|
+
*/
|
|
39313
|
+
proto.payment.GetUserFinancialSummaryResponse.prototype.setCurrencyScale = function(value) {
|
|
39314
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
39315
|
+
};
|
|
39316
|
+
|
|
39317
|
+
|
|
39318
|
+
/**
|
|
39319
|
+
* optional int64 real_balance_minor = 4;
|
|
39320
|
+
* @return {number}
|
|
39321
|
+
*/
|
|
39322
|
+
proto.payment.GetUserFinancialSummaryResponse.prototype.getRealBalanceMinor = function() {
|
|
39323
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
39324
|
+
};
|
|
39325
|
+
|
|
39326
|
+
|
|
39327
|
+
/**
|
|
39328
|
+
* @param {number} value
|
|
39329
|
+
* @return {!proto.payment.GetUserFinancialSummaryResponse} returns this
|
|
39330
|
+
*/
|
|
39331
|
+
proto.payment.GetUserFinancialSummaryResponse.prototype.setRealBalanceMinor = function(value) {
|
|
39332
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
39333
|
+
};
|
|
39334
|
+
|
|
39335
|
+
|
|
39336
|
+
/**
|
|
39337
|
+
* optional int64 bonus_balance_minor = 5;
|
|
39338
|
+
* @return {number}
|
|
39339
|
+
*/
|
|
39340
|
+
proto.payment.GetUserFinancialSummaryResponse.prototype.getBonusBalanceMinor = function() {
|
|
39341
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
39342
|
+
};
|
|
39343
|
+
|
|
39344
|
+
|
|
39345
|
+
/**
|
|
39346
|
+
* @param {number} value
|
|
39347
|
+
* @return {!proto.payment.GetUserFinancialSummaryResponse} returns this
|
|
39348
|
+
*/
|
|
39349
|
+
proto.payment.GetUserFinancialSummaryResponse.prototype.setBonusBalanceMinor = function(value) {
|
|
39350
|
+
return jspb.Message.setProto3IntField(this, 5, value);
|
|
39351
|
+
};
|
|
39352
|
+
|
|
39353
|
+
|
|
39354
|
+
/**
|
|
39355
|
+
* optional int64 withdrawal_hold_minor = 6;
|
|
39356
|
+
* @return {number}
|
|
39357
|
+
*/
|
|
39358
|
+
proto.payment.GetUserFinancialSummaryResponse.prototype.getWithdrawalHoldMinor = function() {
|
|
39359
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
|
39360
|
+
};
|
|
39361
|
+
|
|
39362
|
+
|
|
39363
|
+
/**
|
|
39364
|
+
* @param {number} value
|
|
39365
|
+
* @return {!proto.payment.GetUserFinancialSummaryResponse} returns this
|
|
39366
|
+
*/
|
|
39367
|
+
proto.payment.GetUserFinancialSummaryResponse.prototype.setWithdrawalHoldMinor = function(value) {
|
|
39368
|
+
return jspb.Message.setProto3IntField(this, 6, value);
|
|
39369
|
+
};
|
|
39370
|
+
|
|
39371
|
+
|
|
39372
|
+
/**
|
|
39373
|
+
* optional int64 total_deposits_minor = 7;
|
|
39374
|
+
* @return {number}
|
|
39375
|
+
*/
|
|
39376
|
+
proto.payment.GetUserFinancialSummaryResponse.prototype.getTotalDepositsMinor = function() {
|
|
39377
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
39378
|
+
};
|
|
39379
|
+
|
|
39380
|
+
|
|
39381
|
+
/**
|
|
39382
|
+
* @param {number} value
|
|
39383
|
+
* @return {!proto.payment.GetUserFinancialSummaryResponse} returns this
|
|
39384
|
+
*/
|
|
39385
|
+
proto.payment.GetUserFinancialSummaryResponse.prototype.setTotalDepositsMinor = function(value) {
|
|
39386
|
+
return jspb.Message.setProto3IntField(this, 7, value);
|
|
39387
|
+
};
|
|
39388
|
+
|
|
39389
|
+
|
|
39390
|
+
/**
|
|
39391
|
+
* optional int64 total_withdrawals_minor = 8;
|
|
39392
|
+
* @return {number}
|
|
39393
|
+
*/
|
|
39394
|
+
proto.payment.GetUserFinancialSummaryResponse.prototype.getTotalWithdrawalsMinor = function() {
|
|
39395
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
|
|
39396
|
+
};
|
|
39397
|
+
|
|
39398
|
+
|
|
39399
|
+
/**
|
|
39400
|
+
* @param {number} value
|
|
39401
|
+
* @return {!proto.payment.GetUserFinancialSummaryResponse} returns this
|
|
39402
|
+
*/
|
|
39403
|
+
proto.payment.GetUserFinancialSummaryResponse.prototype.setTotalWithdrawalsMinor = function(value) {
|
|
39404
|
+
return jspb.Message.setProto3IntField(this, 8, value);
|
|
39405
|
+
};
|
|
39406
|
+
|
|
39407
|
+
|
|
39408
|
+
/**
|
|
39409
|
+
* optional int64 profitability_result_minor = 9;
|
|
39410
|
+
* @return {number}
|
|
39411
|
+
*/
|
|
39412
|
+
proto.payment.GetUserFinancialSummaryResponse.prototype.getProfitabilityResultMinor = function() {
|
|
39413
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
|
|
39414
|
+
};
|
|
39415
|
+
|
|
39416
|
+
|
|
39417
|
+
/**
|
|
39418
|
+
* @param {number} value
|
|
39419
|
+
* @return {!proto.payment.GetUserFinancialSummaryResponse} returns this
|
|
39420
|
+
*/
|
|
39421
|
+
proto.payment.GetUserFinancialSummaryResponse.prototype.setProfitabilityResultMinor = function(value) {
|
|
39422
|
+
return jspb.Message.setProto3IntField(this, 9, value);
|
|
39423
|
+
};
|
|
39424
|
+
|
|
39425
|
+
|
|
39426
|
+
/**
|
|
39427
|
+
* optional string profitability_status = 10;
|
|
39428
|
+
* @return {string}
|
|
39429
|
+
*/
|
|
39430
|
+
proto.payment.GetUserFinancialSummaryResponse.prototype.getProfitabilityStatus = function() {
|
|
39431
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
|
39432
|
+
};
|
|
39433
|
+
|
|
39434
|
+
|
|
39435
|
+
/**
|
|
39436
|
+
* @param {string} value
|
|
39437
|
+
* @return {!proto.payment.GetUserFinancialSummaryResponse} returns this
|
|
39438
|
+
*/
|
|
39439
|
+
proto.payment.GetUserFinancialSummaryResponse.prototype.setProfitabilityStatus = function(value) {
|
|
39440
|
+
return jspb.Message.setProto3StringField(this, 10, value);
|
|
39441
|
+
};
|
|
39442
|
+
|
|
39443
|
+
|
|
39444
|
+
|
|
38871
39445
|
/**
|
|
38872
39446
|
* List of repeated fields within this message type.
|
|
38873
39447
|
* @private {!Array<number>}
|