protobuf-platform 1.2.683 → 1.2.685
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/loyalty/loyalty.proto +4 -1
- package/loyalty/loyalty_pb.js +147 -3
- package/package.json +1 -1
- package/payment/payment.proto +19 -0
- package/payment/payment_grpc_pb.js +34 -0
- package/payment/payment_pb.js +600 -0
- package/user/user.proto +23 -0
- package/user/user_grpc_pb.js +34 -0
- package/user/user_pb.js +462 -1
package/payment/payment_pb.js
CHANGED
|
@@ -96,6 +96,8 @@ goog.exportSymbol('proto.payment.GetWithdrawalWagerBucketHistoryResponse', null,
|
|
|
96
96
|
goog.exportSymbol('proto.payment.GetWithdrawalWagerSnapshotRequest', null, global);
|
|
97
97
|
goog.exportSymbol('proto.payment.GetWithdrawalWagerSnapshotResponse', null, global);
|
|
98
98
|
goog.exportSymbol('proto.payment.ItemsBunchRequest', null, global);
|
|
99
|
+
goog.exportSymbol('proto.payment.LoyaltyLevelUpRewardRequest', null, global);
|
|
100
|
+
goog.exportSymbol('proto.payment.LoyaltyLevelUpRewardResponse', null, global);
|
|
99
101
|
goog.exportSymbol('proto.payment.ManualDepositRequest', null, global);
|
|
100
102
|
goog.exportSymbol('proto.payment.MethodItem', null, global);
|
|
101
103
|
goog.exportSymbol('proto.payment.MethodItemRequest', null, global);
|
|
@@ -3016,6 +3018,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
3016
3018
|
*/
|
|
3017
3019
|
proto.payment.PaymentLifecycleStatusItemsResponse.displayName = 'proto.payment.PaymentLifecycleStatusItemsResponse';
|
|
3018
3020
|
}
|
|
3021
|
+
/**
|
|
3022
|
+
* Generated by JsPbCodeGenerator.
|
|
3023
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3024
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3025
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3026
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3027
|
+
* valid.
|
|
3028
|
+
* @extends {jspb.Message}
|
|
3029
|
+
* @constructor
|
|
3030
|
+
*/
|
|
3031
|
+
proto.payment.LoyaltyLevelUpRewardRequest = function(opt_data) {
|
|
3032
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3033
|
+
};
|
|
3034
|
+
goog.inherits(proto.payment.LoyaltyLevelUpRewardRequest, jspb.Message);
|
|
3035
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3036
|
+
/**
|
|
3037
|
+
* @public
|
|
3038
|
+
* @override
|
|
3039
|
+
*/
|
|
3040
|
+
proto.payment.LoyaltyLevelUpRewardRequest.displayName = 'proto.payment.LoyaltyLevelUpRewardRequest';
|
|
3041
|
+
}
|
|
3042
|
+
/**
|
|
3043
|
+
* Generated by JsPbCodeGenerator.
|
|
3044
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3045
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3046
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3047
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3048
|
+
* valid.
|
|
3049
|
+
* @extends {jspb.Message}
|
|
3050
|
+
* @constructor
|
|
3051
|
+
*/
|
|
3052
|
+
proto.payment.LoyaltyLevelUpRewardResponse = function(opt_data) {
|
|
3053
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.payment.LoyaltyLevelUpRewardResponse.repeatedFields_, null);
|
|
3054
|
+
};
|
|
3055
|
+
goog.inherits(proto.payment.LoyaltyLevelUpRewardResponse, jspb.Message);
|
|
3056
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3057
|
+
/**
|
|
3058
|
+
* @public
|
|
3059
|
+
* @override
|
|
3060
|
+
*/
|
|
3061
|
+
proto.payment.LoyaltyLevelUpRewardResponse.displayName = 'proto.payment.LoyaltyLevelUpRewardResponse';
|
|
3062
|
+
}
|
|
3019
3063
|
|
|
3020
3064
|
|
|
3021
3065
|
|
|
@@ -60222,6 +60266,562 @@ proto.payment.PaymentLifecycleStatusItemsResponse.prototype.clearLegacyWithdrawa
|
|
|
60222
60266
|
};
|
|
60223
60267
|
|
|
60224
60268
|
|
|
60269
|
+
|
|
60270
|
+
|
|
60271
|
+
|
|
60272
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
60273
|
+
/**
|
|
60274
|
+
* Creates an object representation of this proto.
|
|
60275
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
60276
|
+
* Optional fields that are not set will be set to undefined.
|
|
60277
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
60278
|
+
* For the list of reserved names please see:
|
|
60279
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
60280
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
60281
|
+
* JSPB instance for transitional soy proto support:
|
|
60282
|
+
* http://goto/soy-param-migration
|
|
60283
|
+
* @return {!Object}
|
|
60284
|
+
*/
|
|
60285
|
+
proto.payment.LoyaltyLevelUpRewardRequest.prototype.toObject = function(opt_includeInstance) {
|
|
60286
|
+
return proto.payment.LoyaltyLevelUpRewardRequest.toObject(opt_includeInstance, this);
|
|
60287
|
+
};
|
|
60288
|
+
|
|
60289
|
+
|
|
60290
|
+
/**
|
|
60291
|
+
* Static version of the {@see toObject} method.
|
|
60292
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
60293
|
+
* the JSPB instance for transitional soy proto support:
|
|
60294
|
+
* http://goto/soy-param-migration
|
|
60295
|
+
* @param {!proto.payment.LoyaltyLevelUpRewardRequest} msg The msg instance to transform.
|
|
60296
|
+
* @return {!Object}
|
|
60297
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
60298
|
+
*/
|
|
60299
|
+
proto.payment.LoyaltyLevelUpRewardRequest.toObject = function(includeInstance, msg) {
|
|
60300
|
+
var f, obj = {
|
|
60301
|
+
rewardIdentity: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
60302
|
+
userId: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
60303
|
+
amount: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
60304
|
+
currency: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
60305
|
+
};
|
|
60306
|
+
|
|
60307
|
+
if (includeInstance) {
|
|
60308
|
+
obj.$jspbMessageInstance = msg;
|
|
60309
|
+
}
|
|
60310
|
+
return obj;
|
|
60311
|
+
};
|
|
60312
|
+
}
|
|
60313
|
+
|
|
60314
|
+
|
|
60315
|
+
/**
|
|
60316
|
+
* Deserializes binary data (in protobuf wire format).
|
|
60317
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
60318
|
+
* @return {!proto.payment.LoyaltyLevelUpRewardRequest}
|
|
60319
|
+
*/
|
|
60320
|
+
proto.payment.LoyaltyLevelUpRewardRequest.deserializeBinary = function(bytes) {
|
|
60321
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
60322
|
+
var msg = new proto.payment.LoyaltyLevelUpRewardRequest;
|
|
60323
|
+
return proto.payment.LoyaltyLevelUpRewardRequest.deserializeBinaryFromReader(msg, reader);
|
|
60324
|
+
};
|
|
60325
|
+
|
|
60326
|
+
|
|
60327
|
+
/**
|
|
60328
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
60329
|
+
* given reader into the given message object.
|
|
60330
|
+
* @param {!proto.payment.LoyaltyLevelUpRewardRequest} msg The message object to deserialize into.
|
|
60331
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
60332
|
+
* @return {!proto.payment.LoyaltyLevelUpRewardRequest}
|
|
60333
|
+
*/
|
|
60334
|
+
proto.payment.LoyaltyLevelUpRewardRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
60335
|
+
while (reader.nextField()) {
|
|
60336
|
+
if (reader.isEndGroup()) {
|
|
60337
|
+
break;
|
|
60338
|
+
}
|
|
60339
|
+
var field = reader.getFieldNumber();
|
|
60340
|
+
switch (field) {
|
|
60341
|
+
case 1:
|
|
60342
|
+
var value = /** @type {string} */ (reader.readString());
|
|
60343
|
+
msg.setRewardIdentity(value);
|
|
60344
|
+
break;
|
|
60345
|
+
case 2:
|
|
60346
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
60347
|
+
msg.setUserId(value);
|
|
60348
|
+
break;
|
|
60349
|
+
case 3:
|
|
60350
|
+
var value = /** @type {string} */ (reader.readString());
|
|
60351
|
+
msg.setAmount(value);
|
|
60352
|
+
break;
|
|
60353
|
+
case 4:
|
|
60354
|
+
var value = /** @type {string} */ (reader.readString());
|
|
60355
|
+
msg.setCurrency(value);
|
|
60356
|
+
break;
|
|
60357
|
+
default:
|
|
60358
|
+
reader.skipField();
|
|
60359
|
+
break;
|
|
60360
|
+
}
|
|
60361
|
+
}
|
|
60362
|
+
return msg;
|
|
60363
|
+
};
|
|
60364
|
+
|
|
60365
|
+
|
|
60366
|
+
/**
|
|
60367
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
60368
|
+
* @return {!Uint8Array}
|
|
60369
|
+
*/
|
|
60370
|
+
proto.payment.LoyaltyLevelUpRewardRequest.prototype.serializeBinary = function() {
|
|
60371
|
+
var writer = new jspb.BinaryWriter();
|
|
60372
|
+
proto.payment.LoyaltyLevelUpRewardRequest.serializeBinaryToWriter(this, writer);
|
|
60373
|
+
return writer.getResultBuffer();
|
|
60374
|
+
};
|
|
60375
|
+
|
|
60376
|
+
|
|
60377
|
+
/**
|
|
60378
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
60379
|
+
* format), writing to the given BinaryWriter.
|
|
60380
|
+
* @param {!proto.payment.LoyaltyLevelUpRewardRequest} message
|
|
60381
|
+
* @param {!jspb.BinaryWriter} writer
|
|
60382
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
60383
|
+
*/
|
|
60384
|
+
proto.payment.LoyaltyLevelUpRewardRequest.serializeBinaryToWriter = function(message, writer) {
|
|
60385
|
+
var f = undefined;
|
|
60386
|
+
f = message.getRewardIdentity();
|
|
60387
|
+
if (f.length > 0) {
|
|
60388
|
+
writer.writeString(
|
|
60389
|
+
1,
|
|
60390
|
+
f
|
|
60391
|
+
);
|
|
60392
|
+
}
|
|
60393
|
+
f = message.getUserId();
|
|
60394
|
+
if (f !== 0) {
|
|
60395
|
+
writer.writeInt32(
|
|
60396
|
+
2,
|
|
60397
|
+
f
|
|
60398
|
+
);
|
|
60399
|
+
}
|
|
60400
|
+
f = message.getAmount();
|
|
60401
|
+
if (f.length > 0) {
|
|
60402
|
+
writer.writeString(
|
|
60403
|
+
3,
|
|
60404
|
+
f
|
|
60405
|
+
);
|
|
60406
|
+
}
|
|
60407
|
+
f = message.getCurrency();
|
|
60408
|
+
if (f.length > 0) {
|
|
60409
|
+
writer.writeString(
|
|
60410
|
+
4,
|
|
60411
|
+
f
|
|
60412
|
+
);
|
|
60413
|
+
}
|
|
60414
|
+
};
|
|
60415
|
+
|
|
60416
|
+
|
|
60417
|
+
/**
|
|
60418
|
+
* optional string reward_identity = 1;
|
|
60419
|
+
* @return {string}
|
|
60420
|
+
*/
|
|
60421
|
+
proto.payment.LoyaltyLevelUpRewardRequest.prototype.getRewardIdentity = function() {
|
|
60422
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
60423
|
+
};
|
|
60424
|
+
|
|
60425
|
+
|
|
60426
|
+
/**
|
|
60427
|
+
* @param {string} value
|
|
60428
|
+
* @return {!proto.payment.LoyaltyLevelUpRewardRequest} returns this
|
|
60429
|
+
*/
|
|
60430
|
+
proto.payment.LoyaltyLevelUpRewardRequest.prototype.setRewardIdentity = function(value) {
|
|
60431
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
60432
|
+
};
|
|
60433
|
+
|
|
60434
|
+
|
|
60435
|
+
/**
|
|
60436
|
+
* optional int32 user_id = 2;
|
|
60437
|
+
* @return {number}
|
|
60438
|
+
*/
|
|
60439
|
+
proto.payment.LoyaltyLevelUpRewardRequest.prototype.getUserId = function() {
|
|
60440
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
60441
|
+
};
|
|
60442
|
+
|
|
60443
|
+
|
|
60444
|
+
/**
|
|
60445
|
+
* @param {number} value
|
|
60446
|
+
* @return {!proto.payment.LoyaltyLevelUpRewardRequest} returns this
|
|
60447
|
+
*/
|
|
60448
|
+
proto.payment.LoyaltyLevelUpRewardRequest.prototype.setUserId = function(value) {
|
|
60449
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
60450
|
+
};
|
|
60451
|
+
|
|
60452
|
+
|
|
60453
|
+
/**
|
|
60454
|
+
* optional string amount = 3;
|
|
60455
|
+
* @return {string}
|
|
60456
|
+
*/
|
|
60457
|
+
proto.payment.LoyaltyLevelUpRewardRequest.prototype.getAmount = function() {
|
|
60458
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
60459
|
+
};
|
|
60460
|
+
|
|
60461
|
+
|
|
60462
|
+
/**
|
|
60463
|
+
* @param {string} value
|
|
60464
|
+
* @return {!proto.payment.LoyaltyLevelUpRewardRequest} returns this
|
|
60465
|
+
*/
|
|
60466
|
+
proto.payment.LoyaltyLevelUpRewardRequest.prototype.setAmount = function(value) {
|
|
60467
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
60468
|
+
};
|
|
60469
|
+
|
|
60470
|
+
|
|
60471
|
+
/**
|
|
60472
|
+
* optional string currency = 4;
|
|
60473
|
+
* @return {string}
|
|
60474
|
+
*/
|
|
60475
|
+
proto.payment.LoyaltyLevelUpRewardRequest.prototype.getCurrency = function() {
|
|
60476
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
60477
|
+
};
|
|
60478
|
+
|
|
60479
|
+
|
|
60480
|
+
/**
|
|
60481
|
+
* @param {string} value
|
|
60482
|
+
* @return {!proto.payment.LoyaltyLevelUpRewardRequest} returns this
|
|
60483
|
+
*/
|
|
60484
|
+
proto.payment.LoyaltyLevelUpRewardRequest.prototype.setCurrency = function(value) {
|
|
60485
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
60486
|
+
};
|
|
60487
|
+
|
|
60488
|
+
|
|
60489
|
+
|
|
60490
|
+
/**
|
|
60491
|
+
* List of repeated fields within this message type.
|
|
60492
|
+
* @private {!Array<number>}
|
|
60493
|
+
* @const
|
|
60494
|
+
*/
|
|
60495
|
+
proto.payment.LoyaltyLevelUpRewardResponse.repeatedFields_ = [6];
|
|
60496
|
+
|
|
60497
|
+
|
|
60498
|
+
|
|
60499
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
60500
|
+
/**
|
|
60501
|
+
* Creates an object representation of this proto.
|
|
60502
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
60503
|
+
* Optional fields that are not set will be set to undefined.
|
|
60504
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
60505
|
+
* For the list of reserved names please see:
|
|
60506
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
60507
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
60508
|
+
* JSPB instance for transitional soy proto support:
|
|
60509
|
+
* http://goto/soy-param-migration
|
|
60510
|
+
* @return {!Object}
|
|
60511
|
+
*/
|
|
60512
|
+
proto.payment.LoyaltyLevelUpRewardResponse.prototype.toObject = function(opt_includeInstance) {
|
|
60513
|
+
return proto.payment.LoyaltyLevelUpRewardResponse.toObject(opt_includeInstance, this);
|
|
60514
|
+
};
|
|
60515
|
+
|
|
60516
|
+
|
|
60517
|
+
/**
|
|
60518
|
+
* Static version of the {@see toObject} method.
|
|
60519
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
60520
|
+
* the JSPB instance for transitional soy proto support:
|
|
60521
|
+
* http://goto/soy-param-migration
|
|
60522
|
+
* @param {!proto.payment.LoyaltyLevelUpRewardResponse} msg The msg instance to transform.
|
|
60523
|
+
* @return {!Object}
|
|
60524
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
60525
|
+
*/
|
|
60526
|
+
proto.payment.LoyaltyLevelUpRewardResponse.toObject = function(includeInstance, msg) {
|
|
60527
|
+
var f, obj = {
|
|
60528
|
+
operationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
60529
|
+
operationPublicId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
60530
|
+
currency: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
60531
|
+
currencyScale: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
60532
|
+
amountMinor: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
60533
|
+
ledgerEntryIdsList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f,
|
|
60534
|
+
idempotentReplay: jspb.Message.getBooleanFieldWithDefault(msg, 7, false)
|
|
60535
|
+
};
|
|
60536
|
+
|
|
60537
|
+
if (includeInstance) {
|
|
60538
|
+
obj.$jspbMessageInstance = msg;
|
|
60539
|
+
}
|
|
60540
|
+
return obj;
|
|
60541
|
+
};
|
|
60542
|
+
}
|
|
60543
|
+
|
|
60544
|
+
|
|
60545
|
+
/**
|
|
60546
|
+
* Deserializes binary data (in protobuf wire format).
|
|
60547
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
60548
|
+
* @return {!proto.payment.LoyaltyLevelUpRewardResponse}
|
|
60549
|
+
*/
|
|
60550
|
+
proto.payment.LoyaltyLevelUpRewardResponse.deserializeBinary = function(bytes) {
|
|
60551
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
60552
|
+
var msg = new proto.payment.LoyaltyLevelUpRewardResponse;
|
|
60553
|
+
return proto.payment.LoyaltyLevelUpRewardResponse.deserializeBinaryFromReader(msg, reader);
|
|
60554
|
+
};
|
|
60555
|
+
|
|
60556
|
+
|
|
60557
|
+
/**
|
|
60558
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
60559
|
+
* given reader into the given message object.
|
|
60560
|
+
* @param {!proto.payment.LoyaltyLevelUpRewardResponse} msg The message object to deserialize into.
|
|
60561
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
60562
|
+
* @return {!proto.payment.LoyaltyLevelUpRewardResponse}
|
|
60563
|
+
*/
|
|
60564
|
+
proto.payment.LoyaltyLevelUpRewardResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
60565
|
+
while (reader.nextField()) {
|
|
60566
|
+
if (reader.isEndGroup()) {
|
|
60567
|
+
break;
|
|
60568
|
+
}
|
|
60569
|
+
var field = reader.getFieldNumber();
|
|
60570
|
+
switch (field) {
|
|
60571
|
+
case 1:
|
|
60572
|
+
var value = /** @type {string} */ (reader.readString());
|
|
60573
|
+
msg.setOperationId(value);
|
|
60574
|
+
break;
|
|
60575
|
+
case 2:
|
|
60576
|
+
var value = /** @type {string} */ (reader.readString());
|
|
60577
|
+
msg.setOperationPublicId(value);
|
|
60578
|
+
break;
|
|
60579
|
+
case 3:
|
|
60580
|
+
var value = /** @type {string} */ (reader.readString());
|
|
60581
|
+
msg.setCurrency(value);
|
|
60582
|
+
break;
|
|
60583
|
+
case 4:
|
|
60584
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
60585
|
+
msg.setCurrencyScale(value);
|
|
60586
|
+
break;
|
|
60587
|
+
case 5:
|
|
60588
|
+
var value = /** @type {string} */ (reader.readString());
|
|
60589
|
+
msg.setAmountMinor(value);
|
|
60590
|
+
break;
|
|
60591
|
+
case 6:
|
|
60592
|
+
var value = /** @type {string} */ (reader.readString());
|
|
60593
|
+
msg.addLedgerEntryIds(value);
|
|
60594
|
+
break;
|
|
60595
|
+
case 7:
|
|
60596
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
60597
|
+
msg.setIdempotentReplay(value);
|
|
60598
|
+
break;
|
|
60599
|
+
default:
|
|
60600
|
+
reader.skipField();
|
|
60601
|
+
break;
|
|
60602
|
+
}
|
|
60603
|
+
}
|
|
60604
|
+
return msg;
|
|
60605
|
+
};
|
|
60606
|
+
|
|
60607
|
+
|
|
60608
|
+
/**
|
|
60609
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
60610
|
+
* @return {!Uint8Array}
|
|
60611
|
+
*/
|
|
60612
|
+
proto.payment.LoyaltyLevelUpRewardResponse.prototype.serializeBinary = function() {
|
|
60613
|
+
var writer = new jspb.BinaryWriter();
|
|
60614
|
+
proto.payment.LoyaltyLevelUpRewardResponse.serializeBinaryToWriter(this, writer);
|
|
60615
|
+
return writer.getResultBuffer();
|
|
60616
|
+
};
|
|
60617
|
+
|
|
60618
|
+
|
|
60619
|
+
/**
|
|
60620
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
60621
|
+
* format), writing to the given BinaryWriter.
|
|
60622
|
+
* @param {!proto.payment.LoyaltyLevelUpRewardResponse} message
|
|
60623
|
+
* @param {!jspb.BinaryWriter} writer
|
|
60624
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
60625
|
+
*/
|
|
60626
|
+
proto.payment.LoyaltyLevelUpRewardResponse.serializeBinaryToWriter = function(message, writer) {
|
|
60627
|
+
var f = undefined;
|
|
60628
|
+
f = message.getOperationId();
|
|
60629
|
+
if (f.length > 0) {
|
|
60630
|
+
writer.writeString(
|
|
60631
|
+
1,
|
|
60632
|
+
f
|
|
60633
|
+
);
|
|
60634
|
+
}
|
|
60635
|
+
f = message.getOperationPublicId();
|
|
60636
|
+
if (f.length > 0) {
|
|
60637
|
+
writer.writeString(
|
|
60638
|
+
2,
|
|
60639
|
+
f
|
|
60640
|
+
);
|
|
60641
|
+
}
|
|
60642
|
+
f = message.getCurrency();
|
|
60643
|
+
if (f.length > 0) {
|
|
60644
|
+
writer.writeString(
|
|
60645
|
+
3,
|
|
60646
|
+
f
|
|
60647
|
+
);
|
|
60648
|
+
}
|
|
60649
|
+
f = message.getCurrencyScale();
|
|
60650
|
+
if (f !== 0) {
|
|
60651
|
+
writer.writeInt32(
|
|
60652
|
+
4,
|
|
60653
|
+
f
|
|
60654
|
+
);
|
|
60655
|
+
}
|
|
60656
|
+
f = message.getAmountMinor();
|
|
60657
|
+
if (f.length > 0) {
|
|
60658
|
+
writer.writeString(
|
|
60659
|
+
5,
|
|
60660
|
+
f
|
|
60661
|
+
);
|
|
60662
|
+
}
|
|
60663
|
+
f = message.getLedgerEntryIdsList();
|
|
60664
|
+
if (f.length > 0) {
|
|
60665
|
+
writer.writeRepeatedString(
|
|
60666
|
+
6,
|
|
60667
|
+
f
|
|
60668
|
+
);
|
|
60669
|
+
}
|
|
60670
|
+
f = message.getIdempotentReplay();
|
|
60671
|
+
if (f) {
|
|
60672
|
+
writer.writeBool(
|
|
60673
|
+
7,
|
|
60674
|
+
f
|
|
60675
|
+
);
|
|
60676
|
+
}
|
|
60677
|
+
};
|
|
60678
|
+
|
|
60679
|
+
|
|
60680
|
+
/**
|
|
60681
|
+
* optional string operation_id = 1;
|
|
60682
|
+
* @return {string}
|
|
60683
|
+
*/
|
|
60684
|
+
proto.payment.LoyaltyLevelUpRewardResponse.prototype.getOperationId = function() {
|
|
60685
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
60686
|
+
};
|
|
60687
|
+
|
|
60688
|
+
|
|
60689
|
+
/**
|
|
60690
|
+
* @param {string} value
|
|
60691
|
+
* @return {!proto.payment.LoyaltyLevelUpRewardResponse} returns this
|
|
60692
|
+
*/
|
|
60693
|
+
proto.payment.LoyaltyLevelUpRewardResponse.prototype.setOperationId = function(value) {
|
|
60694
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
60695
|
+
};
|
|
60696
|
+
|
|
60697
|
+
|
|
60698
|
+
/**
|
|
60699
|
+
* optional string operation_public_id = 2;
|
|
60700
|
+
* @return {string}
|
|
60701
|
+
*/
|
|
60702
|
+
proto.payment.LoyaltyLevelUpRewardResponse.prototype.getOperationPublicId = function() {
|
|
60703
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
60704
|
+
};
|
|
60705
|
+
|
|
60706
|
+
|
|
60707
|
+
/**
|
|
60708
|
+
* @param {string} value
|
|
60709
|
+
* @return {!proto.payment.LoyaltyLevelUpRewardResponse} returns this
|
|
60710
|
+
*/
|
|
60711
|
+
proto.payment.LoyaltyLevelUpRewardResponse.prototype.setOperationPublicId = function(value) {
|
|
60712
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
60713
|
+
};
|
|
60714
|
+
|
|
60715
|
+
|
|
60716
|
+
/**
|
|
60717
|
+
* optional string currency = 3;
|
|
60718
|
+
* @return {string}
|
|
60719
|
+
*/
|
|
60720
|
+
proto.payment.LoyaltyLevelUpRewardResponse.prototype.getCurrency = function() {
|
|
60721
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
60722
|
+
};
|
|
60723
|
+
|
|
60724
|
+
|
|
60725
|
+
/**
|
|
60726
|
+
* @param {string} value
|
|
60727
|
+
* @return {!proto.payment.LoyaltyLevelUpRewardResponse} returns this
|
|
60728
|
+
*/
|
|
60729
|
+
proto.payment.LoyaltyLevelUpRewardResponse.prototype.setCurrency = function(value) {
|
|
60730
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
60731
|
+
};
|
|
60732
|
+
|
|
60733
|
+
|
|
60734
|
+
/**
|
|
60735
|
+
* optional int32 currency_scale = 4;
|
|
60736
|
+
* @return {number}
|
|
60737
|
+
*/
|
|
60738
|
+
proto.payment.LoyaltyLevelUpRewardResponse.prototype.getCurrencyScale = function() {
|
|
60739
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
60740
|
+
};
|
|
60741
|
+
|
|
60742
|
+
|
|
60743
|
+
/**
|
|
60744
|
+
* @param {number} value
|
|
60745
|
+
* @return {!proto.payment.LoyaltyLevelUpRewardResponse} returns this
|
|
60746
|
+
*/
|
|
60747
|
+
proto.payment.LoyaltyLevelUpRewardResponse.prototype.setCurrencyScale = function(value) {
|
|
60748
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
60749
|
+
};
|
|
60750
|
+
|
|
60751
|
+
|
|
60752
|
+
/**
|
|
60753
|
+
* optional string amount_minor = 5;
|
|
60754
|
+
* @return {string}
|
|
60755
|
+
*/
|
|
60756
|
+
proto.payment.LoyaltyLevelUpRewardResponse.prototype.getAmountMinor = function() {
|
|
60757
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
60758
|
+
};
|
|
60759
|
+
|
|
60760
|
+
|
|
60761
|
+
/**
|
|
60762
|
+
* @param {string} value
|
|
60763
|
+
* @return {!proto.payment.LoyaltyLevelUpRewardResponse} returns this
|
|
60764
|
+
*/
|
|
60765
|
+
proto.payment.LoyaltyLevelUpRewardResponse.prototype.setAmountMinor = function(value) {
|
|
60766
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
60767
|
+
};
|
|
60768
|
+
|
|
60769
|
+
|
|
60770
|
+
/**
|
|
60771
|
+
* repeated string ledger_entry_ids = 6;
|
|
60772
|
+
* @return {!Array<string>}
|
|
60773
|
+
*/
|
|
60774
|
+
proto.payment.LoyaltyLevelUpRewardResponse.prototype.getLedgerEntryIdsList = function() {
|
|
60775
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 6));
|
|
60776
|
+
};
|
|
60777
|
+
|
|
60778
|
+
|
|
60779
|
+
/**
|
|
60780
|
+
* @param {!Array<string>} value
|
|
60781
|
+
* @return {!proto.payment.LoyaltyLevelUpRewardResponse} returns this
|
|
60782
|
+
*/
|
|
60783
|
+
proto.payment.LoyaltyLevelUpRewardResponse.prototype.setLedgerEntryIdsList = function(value) {
|
|
60784
|
+
return jspb.Message.setField(this, 6, value || []);
|
|
60785
|
+
};
|
|
60786
|
+
|
|
60787
|
+
|
|
60788
|
+
/**
|
|
60789
|
+
* @param {string} value
|
|
60790
|
+
* @param {number=} opt_index
|
|
60791
|
+
* @return {!proto.payment.LoyaltyLevelUpRewardResponse} returns this
|
|
60792
|
+
*/
|
|
60793
|
+
proto.payment.LoyaltyLevelUpRewardResponse.prototype.addLedgerEntryIds = function(value, opt_index) {
|
|
60794
|
+
return jspb.Message.addToRepeatedField(this, 6, value, opt_index);
|
|
60795
|
+
};
|
|
60796
|
+
|
|
60797
|
+
|
|
60798
|
+
/**
|
|
60799
|
+
* Clears the list making it empty but non-null.
|
|
60800
|
+
* @return {!proto.payment.LoyaltyLevelUpRewardResponse} returns this
|
|
60801
|
+
*/
|
|
60802
|
+
proto.payment.LoyaltyLevelUpRewardResponse.prototype.clearLedgerEntryIdsList = function() {
|
|
60803
|
+
return this.setLedgerEntryIdsList([]);
|
|
60804
|
+
};
|
|
60805
|
+
|
|
60806
|
+
|
|
60807
|
+
/**
|
|
60808
|
+
* optional bool idempotent_replay = 7;
|
|
60809
|
+
* @return {boolean}
|
|
60810
|
+
*/
|
|
60811
|
+
proto.payment.LoyaltyLevelUpRewardResponse.prototype.getIdempotentReplay = function() {
|
|
60812
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false));
|
|
60813
|
+
};
|
|
60814
|
+
|
|
60815
|
+
|
|
60816
|
+
/**
|
|
60817
|
+
* @param {boolean} value
|
|
60818
|
+
* @return {!proto.payment.LoyaltyLevelUpRewardResponse} returns this
|
|
60819
|
+
*/
|
|
60820
|
+
proto.payment.LoyaltyLevelUpRewardResponse.prototype.setIdempotentReplay = function(value) {
|
|
60821
|
+
return jspb.Message.setProto3BooleanField(this, 7, value);
|
|
60822
|
+
};
|
|
60823
|
+
|
|
60824
|
+
|
|
60225
60825
|
/**
|
|
60226
60826
|
* @enum {number}
|
|
60227
60827
|
*/
|
package/user/user.proto
CHANGED
|
@@ -11,6 +11,8 @@ service User {
|
|
|
11
11
|
rpc importPlayerInvitations(ImportPlayerInvitationsRequest) returns (ImportPlayerInvitationsResponse);
|
|
12
12
|
// Public neutral invitation activation. The token never contains an internal user id.
|
|
13
13
|
rpc activatePlayerInvitation(ActivatePlayerInvitationRequest) returns (ActivatePlayerInvitationResponse);
|
|
14
|
+
// Read-only invitation state. Does not consume or mutate the token.
|
|
15
|
+
rpc inspectPlayerInvitation(InspectPlayerInvitationRequest) returns (InspectPlayerInvitationResponse);
|
|
14
16
|
rpc loginOrCreateTelegram(TelegramLoginRequest) returns (LoggedInResponse);
|
|
15
17
|
rpc loginOrCreateTelegramOidc(TelegramOidcLoginRequest) returns (LoggedInResponse);
|
|
16
18
|
rpc loginOrCreateGoogle(GoogleLoginRequest) returns (LoggedInResponse);
|
|
@@ -2717,4 +2719,25 @@ message ActivatePlayerInvitationRequest {
|
|
|
2717
2719
|
message ActivatePlayerInvitationResponse {
|
|
2718
2720
|
PlayerInvitationActivationOutcome outcome = 1;
|
|
2719
2721
|
optional string user_public_id = 2;
|
|
2722
|
+
// Internal session handoff only. Gateway must not return this value to clients.
|
|
2723
|
+
optional string email = 3;
|
|
2724
|
+
}
|
|
2725
|
+
|
|
2726
|
+
message InspectPlayerInvitationRequest {
|
|
2727
|
+
string token = 1;
|
|
2728
|
+
}
|
|
2729
|
+
|
|
2730
|
+
enum PlayerInvitationInspectionStatus {
|
|
2731
|
+
PLAYER_INVITATION_INSPECTION_STATUS_UNSPECIFIED = 0;
|
|
2732
|
+
PLAYER_INVITATION_INSPECTION_STATUS_READY = 1;
|
|
2733
|
+
PLAYER_INVITATION_INSPECTION_STATUS_EXPIRED = 2;
|
|
2734
|
+
PLAYER_INVITATION_INSPECTION_STATUS_ALREADY_ACTIVATED = 3;
|
|
2735
|
+
PLAYER_INVITATION_INSPECTION_STATUS_ALREADY_USED = 4;
|
|
2736
|
+
PLAYER_INVITATION_INSPECTION_STATUS_INVALID = 5;
|
|
2737
|
+
}
|
|
2738
|
+
|
|
2739
|
+
message InspectPlayerInvitationResponse {
|
|
2740
|
+
PlayerInvitationInspectionStatus status = 1;
|
|
2741
|
+
optional string masked_email = 2;
|
|
2742
|
+
optional string expires_at = 3;
|
|
2720
2743
|
}
|
package/user/user_grpc_pb.js
CHANGED
|
@@ -796,6 +796,28 @@ function deserialize_user_IngestUserKycDocumentToProviderRequest(buffer_arg) {
|
|
|
796
796
|
return user_pb.IngestUserKycDocumentToProviderRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
797
797
|
}
|
|
798
798
|
|
|
799
|
+
function serialize_user_InspectPlayerInvitationRequest(arg) {
|
|
800
|
+
if (!(arg instanceof user_pb.InspectPlayerInvitationRequest)) {
|
|
801
|
+
throw new Error('Expected argument of type user.InspectPlayerInvitationRequest');
|
|
802
|
+
}
|
|
803
|
+
return Buffer.from(arg.serializeBinary());
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
function deserialize_user_InspectPlayerInvitationRequest(buffer_arg) {
|
|
807
|
+
return user_pb.InspectPlayerInvitationRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
function serialize_user_InspectPlayerInvitationResponse(arg) {
|
|
811
|
+
if (!(arg instanceof user_pb.InspectPlayerInvitationResponse)) {
|
|
812
|
+
throw new Error('Expected argument of type user.InspectPlayerInvitationResponse');
|
|
813
|
+
}
|
|
814
|
+
return Buffer.from(arg.serializeBinary());
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
function deserialize_user_InspectPlayerInvitationResponse(buffer_arg) {
|
|
818
|
+
return user_pb.InspectPlayerInvitationResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
819
|
+
}
|
|
820
|
+
|
|
799
821
|
function serialize_user_KycRequirementPresetResponse(arg) {
|
|
800
822
|
if (!(arg instanceof user_pb.KycRequirementPresetResponse)) {
|
|
801
823
|
throw new Error('Expected argument of type user.KycRequirementPresetResponse');
|
|
@@ -2638,6 +2660,18 @@ activatePlayerInvitation: {
|
|
|
2638
2660
|
responseSerialize: serialize_user_ActivatePlayerInvitationResponse,
|
|
2639
2661
|
responseDeserialize: deserialize_user_ActivatePlayerInvitationResponse,
|
|
2640
2662
|
},
|
|
2663
|
+
// Read-only invitation state. Does not consume or mutate the token.
|
|
2664
|
+
inspectPlayerInvitation: {
|
|
2665
|
+
path: '/user.User/inspectPlayerInvitation',
|
|
2666
|
+
requestStream: false,
|
|
2667
|
+
responseStream: false,
|
|
2668
|
+
requestType: user_pb.InspectPlayerInvitationRequest,
|
|
2669
|
+
responseType: user_pb.InspectPlayerInvitationResponse,
|
|
2670
|
+
requestSerialize: serialize_user_InspectPlayerInvitationRequest,
|
|
2671
|
+
requestDeserialize: deserialize_user_InspectPlayerInvitationRequest,
|
|
2672
|
+
responseSerialize: serialize_user_InspectPlayerInvitationResponse,
|
|
2673
|
+
responseDeserialize: deserialize_user_InspectPlayerInvitationResponse,
|
|
2674
|
+
},
|
|
2641
2675
|
loginOrCreateTelegram: {
|
|
2642
2676
|
path: '/user.User/loginOrCreateTelegram',
|
|
2643
2677
|
requestStream: false,
|