protobuf-platform 1.2.396 → 1.2.398
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/bonus/bonus.proto +2 -0
- package/bonus/bonus_pb.js +98 -2
- package/cms/cms.proto +2 -0
- package/cms/cms_pb.js +98 -2
- package/package.json +1 -1
- package/payment/payment.proto +10 -0
- package/payment/payment_grpc_pb.js +33 -0
- package/payment/payment_pb.js +469 -0
- package/promocode/promocode.proto +160 -1
- package/promocode/promocode_grpc_pb.js +189 -0
- package/promocode/promocode_pb.js +6333 -93
package/payment/payment_pb.js
CHANGED
|
@@ -23,6 +23,8 @@ var global = (function() {
|
|
|
23
23
|
|
|
24
24
|
goog.exportSymbol('proto.payment.AttemptDepositRequest', null, global);
|
|
25
25
|
goog.exportSymbol('proto.payment.AttemptWithdrawalRequest', null, global);
|
|
26
|
+
goog.exportSymbol('proto.payment.CheckFastDepositRequest', null, global);
|
|
27
|
+
goog.exportSymbol('proto.payment.CheckFastDepositResponse', null, global);
|
|
26
28
|
goog.exportSymbol('proto.payment.CryptoDepositInstructions', null, global);
|
|
27
29
|
goog.exportSymbol('proto.payment.CurrenciesMetadataResponse', null, global);
|
|
28
30
|
goog.exportSymbol('proto.payment.CurrencyItem', null, global);
|
|
@@ -1444,6 +1446,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
1444
1446
|
*/
|
|
1445
1447
|
proto.payment.UserPaymentMethodsResponse.displayName = 'proto.payment.UserPaymentMethodsResponse';
|
|
1446
1448
|
}
|
|
1449
|
+
/**
|
|
1450
|
+
* Generated by JsPbCodeGenerator.
|
|
1451
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1452
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1453
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1454
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1455
|
+
* valid.
|
|
1456
|
+
* @extends {jspb.Message}
|
|
1457
|
+
* @constructor
|
|
1458
|
+
*/
|
|
1459
|
+
proto.payment.CheckFastDepositRequest = function(opt_data) {
|
|
1460
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1461
|
+
};
|
|
1462
|
+
goog.inherits(proto.payment.CheckFastDepositRequest, jspb.Message);
|
|
1463
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1464
|
+
/**
|
|
1465
|
+
* @public
|
|
1466
|
+
* @override
|
|
1467
|
+
*/
|
|
1468
|
+
proto.payment.CheckFastDepositRequest.displayName = 'proto.payment.CheckFastDepositRequest';
|
|
1469
|
+
}
|
|
1470
|
+
/**
|
|
1471
|
+
* Generated by JsPbCodeGenerator.
|
|
1472
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1473
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1474
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1475
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1476
|
+
* valid.
|
|
1477
|
+
* @extends {jspb.Message}
|
|
1478
|
+
* @constructor
|
|
1479
|
+
*/
|
|
1480
|
+
proto.payment.CheckFastDepositResponse = function(opt_data) {
|
|
1481
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1482
|
+
};
|
|
1483
|
+
goog.inherits(proto.payment.CheckFastDepositResponse, jspb.Message);
|
|
1484
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1485
|
+
/**
|
|
1486
|
+
* @public
|
|
1487
|
+
* @override
|
|
1488
|
+
*/
|
|
1489
|
+
proto.payment.CheckFastDepositResponse.displayName = 'proto.payment.CheckFastDepositResponse';
|
|
1490
|
+
}
|
|
1447
1491
|
/**
|
|
1448
1492
|
* Generated by JsPbCodeGenerator.
|
|
1449
1493
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -25114,6 +25158,431 @@ proto.payment.UserPaymentMethodsResponse.prototype.hasTotalItems = function() {
|
|
|
25114
25158
|
|
|
25115
25159
|
|
|
25116
25160
|
|
|
25161
|
+
|
|
25162
|
+
|
|
25163
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
25164
|
+
/**
|
|
25165
|
+
* Creates an object representation of this proto.
|
|
25166
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
25167
|
+
* Optional fields that are not set will be set to undefined.
|
|
25168
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
25169
|
+
* For the list of reserved names please see:
|
|
25170
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
25171
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
25172
|
+
* JSPB instance for transitional soy proto support:
|
|
25173
|
+
* http://goto/soy-param-migration
|
|
25174
|
+
* @return {!Object}
|
|
25175
|
+
*/
|
|
25176
|
+
proto.payment.CheckFastDepositRequest.prototype.toObject = function(opt_includeInstance) {
|
|
25177
|
+
return proto.payment.CheckFastDepositRequest.toObject(opt_includeInstance, this);
|
|
25178
|
+
};
|
|
25179
|
+
|
|
25180
|
+
|
|
25181
|
+
/**
|
|
25182
|
+
* Static version of the {@see toObject} method.
|
|
25183
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
25184
|
+
* the JSPB instance for transitional soy proto support:
|
|
25185
|
+
* http://goto/soy-param-migration
|
|
25186
|
+
* @param {!proto.payment.CheckFastDepositRequest} msg The msg instance to transform.
|
|
25187
|
+
* @return {!Object}
|
|
25188
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
25189
|
+
*/
|
|
25190
|
+
proto.payment.CheckFastDepositRequest.toObject = function(includeInstance, msg) {
|
|
25191
|
+
var f, obj = {
|
|
25192
|
+
userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
25193
|
+
currency: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
25194
|
+
country: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
25195
|
+
currencyType: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
25196
|
+
};
|
|
25197
|
+
|
|
25198
|
+
if (includeInstance) {
|
|
25199
|
+
obj.$jspbMessageInstance = msg;
|
|
25200
|
+
}
|
|
25201
|
+
return obj;
|
|
25202
|
+
};
|
|
25203
|
+
}
|
|
25204
|
+
|
|
25205
|
+
|
|
25206
|
+
/**
|
|
25207
|
+
* Deserializes binary data (in protobuf wire format).
|
|
25208
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
25209
|
+
* @return {!proto.payment.CheckFastDepositRequest}
|
|
25210
|
+
*/
|
|
25211
|
+
proto.payment.CheckFastDepositRequest.deserializeBinary = function(bytes) {
|
|
25212
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
25213
|
+
var msg = new proto.payment.CheckFastDepositRequest;
|
|
25214
|
+
return proto.payment.CheckFastDepositRequest.deserializeBinaryFromReader(msg, reader);
|
|
25215
|
+
};
|
|
25216
|
+
|
|
25217
|
+
|
|
25218
|
+
/**
|
|
25219
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
25220
|
+
* given reader into the given message object.
|
|
25221
|
+
* @param {!proto.payment.CheckFastDepositRequest} msg The message object to deserialize into.
|
|
25222
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
25223
|
+
* @return {!proto.payment.CheckFastDepositRequest}
|
|
25224
|
+
*/
|
|
25225
|
+
proto.payment.CheckFastDepositRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
25226
|
+
while (reader.nextField()) {
|
|
25227
|
+
if (reader.isEndGroup()) {
|
|
25228
|
+
break;
|
|
25229
|
+
}
|
|
25230
|
+
var field = reader.getFieldNumber();
|
|
25231
|
+
switch (field) {
|
|
25232
|
+
case 1:
|
|
25233
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
25234
|
+
msg.setUserId(value);
|
|
25235
|
+
break;
|
|
25236
|
+
case 2:
|
|
25237
|
+
var value = /** @type {string} */ (reader.readString());
|
|
25238
|
+
msg.setCurrency(value);
|
|
25239
|
+
break;
|
|
25240
|
+
case 3:
|
|
25241
|
+
var value = /** @type {string} */ (reader.readString());
|
|
25242
|
+
msg.setCountry(value);
|
|
25243
|
+
break;
|
|
25244
|
+
case 4:
|
|
25245
|
+
var value = /** @type {string} */ (reader.readString());
|
|
25246
|
+
msg.setCurrencyType(value);
|
|
25247
|
+
break;
|
|
25248
|
+
default:
|
|
25249
|
+
reader.skipField();
|
|
25250
|
+
break;
|
|
25251
|
+
}
|
|
25252
|
+
}
|
|
25253
|
+
return msg;
|
|
25254
|
+
};
|
|
25255
|
+
|
|
25256
|
+
|
|
25257
|
+
/**
|
|
25258
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
25259
|
+
* @return {!Uint8Array}
|
|
25260
|
+
*/
|
|
25261
|
+
proto.payment.CheckFastDepositRequest.prototype.serializeBinary = function() {
|
|
25262
|
+
var writer = new jspb.BinaryWriter();
|
|
25263
|
+
proto.payment.CheckFastDepositRequest.serializeBinaryToWriter(this, writer);
|
|
25264
|
+
return writer.getResultBuffer();
|
|
25265
|
+
};
|
|
25266
|
+
|
|
25267
|
+
|
|
25268
|
+
/**
|
|
25269
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
25270
|
+
* format), writing to the given BinaryWriter.
|
|
25271
|
+
* @param {!proto.payment.CheckFastDepositRequest} message
|
|
25272
|
+
* @param {!jspb.BinaryWriter} writer
|
|
25273
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
25274
|
+
*/
|
|
25275
|
+
proto.payment.CheckFastDepositRequest.serializeBinaryToWriter = function(message, writer) {
|
|
25276
|
+
var f = undefined;
|
|
25277
|
+
f = message.getUserId();
|
|
25278
|
+
if (f !== 0) {
|
|
25279
|
+
writer.writeInt32(
|
|
25280
|
+
1,
|
|
25281
|
+
f
|
|
25282
|
+
);
|
|
25283
|
+
}
|
|
25284
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
|
25285
|
+
if (f != null) {
|
|
25286
|
+
writer.writeString(
|
|
25287
|
+
2,
|
|
25288
|
+
f
|
|
25289
|
+
);
|
|
25290
|
+
}
|
|
25291
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
25292
|
+
if (f != null) {
|
|
25293
|
+
writer.writeString(
|
|
25294
|
+
3,
|
|
25295
|
+
f
|
|
25296
|
+
);
|
|
25297
|
+
}
|
|
25298
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
|
25299
|
+
if (f != null) {
|
|
25300
|
+
writer.writeString(
|
|
25301
|
+
4,
|
|
25302
|
+
f
|
|
25303
|
+
);
|
|
25304
|
+
}
|
|
25305
|
+
};
|
|
25306
|
+
|
|
25307
|
+
|
|
25308
|
+
/**
|
|
25309
|
+
* optional int32 user_id = 1;
|
|
25310
|
+
* @return {number}
|
|
25311
|
+
*/
|
|
25312
|
+
proto.payment.CheckFastDepositRequest.prototype.getUserId = function() {
|
|
25313
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
25314
|
+
};
|
|
25315
|
+
|
|
25316
|
+
|
|
25317
|
+
/**
|
|
25318
|
+
* @param {number} value
|
|
25319
|
+
* @return {!proto.payment.CheckFastDepositRequest} returns this
|
|
25320
|
+
*/
|
|
25321
|
+
proto.payment.CheckFastDepositRequest.prototype.setUserId = function(value) {
|
|
25322
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
25323
|
+
};
|
|
25324
|
+
|
|
25325
|
+
|
|
25326
|
+
/**
|
|
25327
|
+
* optional string currency = 2;
|
|
25328
|
+
* @return {string}
|
|
25329
|
+
*/
|
|
25330
|
+
proto.payment.CheckFastDepositRequest.prototype.getCurrency = function() {
|
|
25331
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
25332
|
+
};
|
|
25333
|
+
|
|
25334
|
+
|
|
25335
|
+
/**
|
|
25336
|
+
* @param {string} value
|
|
25337
|
+
* @return {!proto.payment.CheckFastDepositRequest} returns this
|
|
25338
|
+
*/
|
|
25339
|
+
proto.payment.CheckFastDepositRequest.prototype.setCurrency = function(value) {
|
|
25340
|
+
return jspb.Message.setField(this, 2, value);
|
|
25341
|
+
};
|
|
25342
|
+
|
|
25343
|
+
|
|
25344
|
+
/**
|
|
25345
|
+
* Clears the field making it undefined.
|
|
25346
|
+
* @return {!proto.payment.CheckFastDepositRequest} returns this
|
|
25347
|
+
*/
|
|
25348
|
+
proto.payment.CheckFastDepositRequest.prototype.clearCurrency = function() {
|
|
25349
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
25350
|
+
};
|
|
25351
|
+
|
|
25352
|
+
|
|
25353
|
+
/**
|
|
25354
|
+
* Returns whether this field is set.
|
|
25355
|
+
* @return {boolean}
|
|
25356
|
+
*/
|
|
25357
|
+
proto.payment.CheckFastDepositRequest.prototype.hasCurrency = function() {
|
|
25358
|
+
return jspb.Message.getField(this, 2) != null;
|
|
25359
|
+
};
|
|
25360
|
+
|
|
25361
|
+
|
|
25362
|
+
/**
|
|
25363
|
+
* optional string country = 3;
|
|
25364
|
+
* @return {string}
|
|
25365
|
+
*/
|
|
25366
|
+
proto.payment.CheckFastDepositRequest.prototype.getCountry = function() {
|
|
25367
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
25368
|
+
};
|
|
25369
|
+
|
|
25370
|
+
|
|
25371
|
+
/**
|
|
25372
|
+
* @param {string} value
|
|
25373
|
+
* @return {!proto.payment.CheckFastDepositRequest} returns this
|
|
25374
|
+
*/
|
|
25375
|
+
proto.payment.CheckFastDepositRequest.prototype.setCountry = function(value) {
|
|
25376
|
+
return jspb.Message.setField(this, 3, value);
|
|
25377
|
+
};
|
|
25378
|
+
|
|
25379
|
+
|
|
25380
|
+
/**
|
|
25381
|
+
* Clears the field making it undefined.
|
|
25382
|
+
* @return {!proto.payment.CheckFastDepositRequest} returns this
|
|
25383
|
+
*/
|
|
25384
|
+
proto.payment.CheckFastDepositRequest.prototype.clearCountry = function() {
|
|
25385
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
25386
|
+
};
|
|
25387
|
+
|
|
25388
|
+
|
|
25389
|
+
/**
|
|
25390
|
+
* Returns whether this field is set.
|
|
25391
|
+
* @return {boolean}
|
|
25392
|
+
*/
|
|
25393
|
+
proto.payment.CheckFastDepositRequest.prototype.hasCountry = function() {
|
|
25394
|
+
return jspb.Message.getField(this, 3) != null;
|
|
25395
|
+
};
|
|
25396
|
+
|
|
25397
|
+
|
|
25398
|
+
/**
|
|
25399
|
+
* optional string currency_type = 4;
|
|
25400
|
+
* @return {string}
|
|
25401
|
+
*/
|
|
25402
|
+
proto.payment.CheckFastDepositRequest.prototype.getCurrencyType = function() {
|
|
25403
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
25404
|
+
};
|
|
25405
|
+
|
|
25406
|
+
|
|
25407
|
+
/**
|
|
25408
|
+
* @param {string} value
|
|
25409
|
+
* @return {!proto.payment.CheckFastDepositRequest} returns this
|
|
25410
|
+
*/
|
|
25411
|
+
proto.payment.CheckFastDepositRequest.prototype.setCurrencyType = function(value) {
|
|
25412
|
+
return jspb.Message.setField(this, 4, value);
|
|
25413
|
+
};
|
|
25414
|
+
|
|
25415
|
+
|
|
25416
|
+
/**
|
|
25417
|
+
* Clears the field making it undefined.
|
|
25418
|
+
* @return {!proto.payment.CheckFastDepositRequest} returns this
|
|
25419
|
+
*/
|
|
25420
|
+
proto.payment.CheckFastDepositRequest.prototype.clearCurrencyType = function() {
|
|
25421
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
25422
|
+
};
|
|
25423
|
+
|
|
25424
|
+
|
|
25425
|
+
/**
|
|
25426
|
+
* Returns whether this field is set.
|
|
25427
|
+
* @return {boolean}
|
|
25428
|
+
*/
|
|
25429
|
+
proto.payment.CheckFastDepositRequest.prototype.hasCurrencyType = function() {
|
|
25430
|
+
return jspb.Message.getField(this, 4) != null;
|
|
25431
|
+
};
|
|
25432
|
+
|
|
25433
|
+
|
|
25434
|
+
|
|
25435
|
+
|
|
25436
|
+
|
|
25437
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
25438
|
+
/**
|
|
25439
|
+
* Creates an object representation of this proto.
|
|
25440
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
25441
|
+
* Optional fields that are not set will be set to undefined.
|
|
25442
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
25443
|
+
* For the list of reserved names please see:
|
|
25444
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
25445
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
25446
|
+
* JSPB instance for transitional soy proto support:
|
|
25447
|
+
* http://goto/soy-param-migration
|
|
25448
|
+
* @return {!Object}
|
|
25449
|
+
*/
|
|
25450
|
+
proto.payment.CheckFastDepositResponse.prototype.toObject = function(opt_includeInstance) {
|
|
25451
|
+
return proto.payment.CheckFastDepositResponse.toObject(opt_includeInstance, this);
|
|
25452
|
+
};
|
|
25453
|
+
|
|
25454
|
+
|
|
25455
|
+
/**
|
|
25456
|
+
* Static version of the {@see toObject} method.
|
|
25457
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
25458
|
+
* the JSPB instance for transitional soy proto support:
|
|
25459
|
+
* http://goto/soy-param-migration
|
|
25460
|
+
* @param {!proto.payment.CheckFastDepositResponse} msg The msg instance to transform.
|
|
25461
|
+
* @return {!Object}
|
|
25462
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
25463
|
+
*/
|
|
25464
|
+
proto.payment.CheckFastDepositResponse.toObject = function(includeInstance, msg) {
|
|
25465
|
+
var f, obj = {
|
|
25466
|
+
method: (f = msg.getMethod()) && proto.payment.UserPaymentMethodItem.toObject(includeInstance, f)
|
|
25467
|
+
};
|
|
25468
|
+
|
|
25469
|
+
if (includeInstance) {
|
|
25470
|
+
obj.$jspbMessageInstance = msg;
|
|
25471
|
+
}
|
|
25472
|
+
return obj;
|
|
25473
|
+
};
|
|
25474
|
+
}
|
|
25475
|
+
|
|
25476
|
+
|
|
25477
|
+
/**
|
|
25478
|
+
* Deserializes binary data (in protobuf wire format).
|
|
25479
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
25480
|
+
* @return {!proto.payment.CheckFastDepositResponse}
|
|
25481
|
+
*/
|
|
25482
|
+
proto.payment.CheckFastDepositResponse.deserializeBinary = function(bytes) {
|
|
25483
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
25484
|
+
var msg = new proto.payment.CheckFastDepositResponse;
|
|
25485
|
+
return proto.payment.CheckFastDepositResponse.deserializeBinaryFromReader(msg, reader);
|
|
25486
|
+
};
|
|
25487
|
+
|
|
25488
|
+
|
|
25489
|
+
/**
|
|
25490
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
25491
|
+
* given reader into the given message object.
|
|
25492
|
+
* @param {!proto.payment.CheckFastDepositResponse} msg The message object to deserialize into.
|
|
25493
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
25494
|
+
* @return {!proto.payment.CheckFastDepositResponse}
|
|
25495
|
+
*/
|
|
25496
|
+
proto.payment.CheckFastDepositResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
25497
|
+
while (reader.nextField()) {
|
|
25498
|
+
if (reader.isEndGroup()) {
|
|
25499
|
+
break;
|
|
25500
|
+
}
|
|
25501
|
+
var field = reader.getFieldNumber();
|
|
25502
|
+
switch (field) {
|
|
25503
|
+
case 1:
|
|
25504
|
+
var value = new proto.payment.UserPaymentMethodItem;
|
|
25505
|
+
reader.readMessage(value,proto.payment.UserPaymentMethodItem.deserializeBinaryFromReader);
|
|
25506
|
+
msg.setMethod(value);
|
|
25507
|
+
break;
|
|
25508
|
+
default:
|
|
25509
|
+
reader.skipField();
|
|
25510
|
+
break;
|
|
25511
|
+
}
|
|
25512
|
+
}
|
|
25513
|
+
return msg;
|
|
25514
|
+
};
|
|
25515
|
+
|
|
25516
|
+
|
|
25517
|
+
/**
|
|
25518
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
25519
|
+
* @return {!Uint8Array}
|
|
25520
|
+
*/
|
|
25521
|
+
proto.payment.CheckFastDepositResponse.prototype.serializeBinary = function() {
|
|
25522
|
+
var writer = new jspb.BinaryWriter();
|
|
25523
|
+
proto.payment.CheckFastDepositResponse.serializeBinaryToWriter(this, writer);
|
|
25524
|
+
return writer.getResultBuffer();
|
|
25525
|
+
};
|
|
25526
|
+
|
|
25527
|
+
|
|
25528
|
+
/**
|
|
25529
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
25530
|
+
* format), writing to the given BinaryWriter.
|
|
25531
|
+
* @param {!proto.payment.CheckFastDepositResponse} message
|
|
25532
|
+
* @param {!jspb.BinaryWriter} writer
|
|
25533
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
25534
|
+
*/
|
|
25535
|
+
proto.payment.CheckFastDepositResponse.serializeBinaryToWriter = function(message, writer) {
|
|
25536
|
+
var f = undefined;
|
|
25537
|
+
f = message.getMethod();
|
|
25538
|
+
if (f != null) {
|
|
25539
|
+
writer.writeMessage(
|
|
25540
|
+
1,
|
|
25541
|
+
f,
|
|
25542
|
+
proto.payment.UserPaymentMethodItem.serializeBinaryToWriter
|
|
25543
|
+
);
|
|
25544
|
+
}
|
|
25545
|
+
};
|
|
25546
|
+
|
|
25547
|
+
|
|
25548
|
+
/**
|
|
25549
|
+
* optional UserPaymentMethodItem method = 1;
|
|
25550
|
+
* @return {?proto.payment.UserPaymentMethodItem}
|
|
25551
|
+
*/
|
|
25552
|
+
proto.payment.CheckFastDepositResponse.prototype.getMethod = function() {
|
|
25553
|
+
return /** @type{?proto.payment.UserPaymentMethodItem} */ (
|
|
25554
|
+
jspb.Message.getWrapperField(this, proto.payment.UserPaymentMethodItem, 1));
|
|
25555
|
+
};
|
|
25556
|
+
|
|
25557
|
+
|
|
25558
|
+
/**
|
|
25559
|
+
* @param {?proto.payment.UserPaymentMethodItem|undefined} value
|
|
25560
|
+
* @return {!proto.payment.CheckFastDepositResponse} returns this
|
|
25561
|
+
*/
|
|
25562
|
+
proto.payment.CheckFastDepositResponse.prototype.setMethod = function(value) {
|
|
25563
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
25564
|
+
};
|
|
25565
|
+
|
|
25566
|
+
|
|
25567
|
+
/**
|
|
25568
|
+
* Clears the message field making it undefined.
|
|
25569
|
+
* @return {!proto.payment.CheckFastDepositResponse} returns this
|
|
25570
|
+
*/
|
|
25571
|
+
proto.payment.CheckFastDepositResponse.prototype.clearMethod = function() {
|
|
25572
|
+
return this.setMethod(undefined);
|
|
25573
|
+
};
|
|
25574
|
+
|
|
25575
|
+
|
|
25576
|
+
/**
|
|
25577
|
+
* Returns whether this field is set.
|
|
25578
|
+
* @return {boolean}
|
|
25579
|
+
*/
|
|
25580
|
+
proto.payment.CheckFastDepositResponse.prototype.hasMethod = function() {
|
|
25581
|
+
return jspb.Message.getField(this, 1) != null;
|
|
25582
|
+
};
|
|
25583
|
+
|
|
25584
|
+
|
|
25585
|
+
|
|
25117
25586
|
/**
|
|
25118
25587
|
* List of repeated fields within this message type.
|
|
25119
25588
|
* @private {!Array<number>}
|
|
@@ -11,6 +11,15 @@ service Promocode {
|
|
|
11
11
|
rpc deleteSingleCode(GetCodeRequest) returns (CodeStatusResponse);
|
|
12
12
|
rpc readListCodes(PaginationRequest) returns (CodeItemsResponse);
|
|
13
13
|
rpc updateCodesInBunch(ItemsBunchRequest) returns (CodeStatusResponse);
|
|
14
|
+
//Bonus masks (BO)
|
|
15
|
+
rpc createBonusMask(BonusMaskRequest) returns (BonusMaskResponse);
|
|
16
|
+
rpc readBonusMask(GetBonusMaskRequest) returns (BonusMaskResponse);
|
|
17
|
+
rpc updateBonusMask(BonusMaskRequest) returns (BonusMaskResponse);
|
|
18
|
+
rpc deleteBonusMask(GetBonusMaskRequest) returns (BonusMaskStatusResponse);
|
|
19
|
+
rpc readListBonusMasks(BonusMaskPaginationRequest) returns (BonusMaskItemsResponse);
|
|
20
|
+
//User promocodes (runtime)
|
|
21
|
+
rpc applyUserPromocode(ApplyUserPromocodeRequest) returns (ApplyUserPromocodeResponse);
|
|
22
|
+
rpc batchGetUserPromocodeSnapshots(BatchGetUserPromocodeSnapshotsRequest) returns (BatchGetUserPromocodeSnapshotsResponse);
|
|
14
23
|
}
|
|
15
24
|
message PingRequest { string ping = 1; }
|
|
16
25
|
message PongResponse { string pong = 1; }
|
|
@@ -30,6 +39,12 @@ message SearchRequest {
|
|
|
30
39
|
optional string title = 1;
|
|
31
40
|
optional string code = 2;
|
|
32
41
|
optional int32 is_active = 3;
|
|
42
|
+
// Business-allowed: "signup" | "bonus" | "deposit"
|
|
43
|
+
optional string activation_area = 4;
|
|
44
|
+
// Business-allowed: "bonus"
|
|
45
|
+
optional string target_domain = 5;
|
|
46
|
+
// Business-allowed: "enhance" | "grant"
|
|
47
|
+
optional string application_mode = 6;
|
|
33
48
|
}
|
|
34
49
|
message ItemsBunchRequest {
|
|
35
50
|
repeated int32 ids = 1;
|
|
@@ -47,6 +62,15 @@ message CodeRequest {
|
|
|
47
62
|
optional int32 max_used_count = 5;
|
|
48
63
|
optional int32 is_active = 6;
|
|
49
64
|
optional string type = 7;
|
|
65
|
+
// Business-allowed: "signup" | "bonus" | "deposit"
|
|
66
|
+
optional string activation_area = 8;
|
|
67
|
+
// Business-allowed: "bonus"
|
|
68
|
+
optional string target_domain = 9;
|
|
69
|
+
// Business-allowed: "enhance" | "grant"
|
|
70
|
+
optional string application_mode = 10;
|
|
71
|
+
optional string starts_at = 11;
|
|
72
|
+
optional string ends_at = 12;
|
|
73
|
+
optional int32 max_uses_per_user = 13;
|
|
50
74
|
}
|
|
51
75
|
message CodeItem {
|
|
52
76
|
optional int32 id = 1;
|
|
@@ -57,6 +81,15 @@ message CodeItem {
|
|
|
57
81
|
optional int32 current_used_count = 6;
|
|
58
82
|
optional int32 is_active = 7;
|
|
59
83
|
optional string type = 8;
|
|
84
|
+
// Business-allowed: "signup" | "bonus" | "deposit"
|
|
85
|
+
optional string activation_area = 9;
|
|
86
|
+
// Business-allowed: "bonus"
|
|
87
|
+
optional string target_domain = 10;
|
|
88
|
+
// Business-allowed: "enhance" | "grant"
|
|
89
|
+
optional string application_mode = 11;
|
|
90
|
+
optional string starts_at = 12;
|
|
91
|
+
optional string ends_at = 13;
|
|
92
|
+
optional int32 max_uses_per_user = 14;
|
|
60
93
|
}
|
|
61
94
|
message CodeResponse {
|
|
62
95
|
CodeItem data = 1;
|
|
@@ -68,4 +101,130 @@ message CodeItemsResponse {
|
|
|
68
101
|
}
|
|
69
102
|
message CodeStatusResponse {
|
|
70
103
|
string status = 1;
|
|
71
|
-
}
|
|
104
|
+
}
|
|
105
|
+
//Bonus mask CRUD
|
|
106
|
+
message GetBonusMaskRequest {
|
|
107
|
+
int32 id = 1;
|
|
108
|
+
}
|
|
109
|
+
message BonusMaskRequest {
|
|
110
|
+
optional int32 id = 1;
|
|
111
|
+
optional int32 promocode_id = 2;
|
|
112
|
+
optional int32 target_bonus_id = 3;
|
|
113
|
+
// Business-allowed: "signup" | "bonus" | "deposit"
|
|
114
|
+
optional string activation_area = 4;
|
|
115
|
+
optional string currency = 5;
|
|
116
|
+
optional int32 is_active = 6;
|
|
117
|
+
optional string title = 7;
|
|
118
|
+
optional string description = 8;
|
|
119
|
+
optional string image_cdn = 9;
|
|
120
|
+
optional string mobile_image_cdn = 10;
|
|
121
|
+
optional int32 payout_multiplier = 11;
|
|
122
|
+
optional int32 wager_multiplier = 12;
|
|
123
|
+
optional string deposit_percentage_value = 13;
|
|
124
|
+
optional string deposit_percentage_max = 14;
|
|
125
|
+
optional int32 free_spins_game_id = 15;
|
|
126
|
+
optional string free_spins_spin_amount = 16;
|
|
127
|
+
optional int32 free_spins_total_amount = 17;
|
|
128
|
+
optional string free_spins_max_win = 18;
|
|
129
|
+
}
|
|
130
|
+
message BonusMaskItem {
|
|
131
|
+
optional int32 id = 1;
|
|
132
|
+
optional int32 promocode_id = 2;
|
|
133
|
+
optional int32 target_bonus_id = 3;
|
|
134
|
+
// Business-allowed: "signup" | "bonus" | "deposit"
|
|
135
|
+
optional string activation_area = 4;
|
|
136
|
+
optional string currency = 5;
|
|
137
|
+
optional int32 is_active = 6;
|
|
138
|
+
optional string title = 7;
|
|
139
|
+
optional string description = 8;
|
|
140
|
+
optional string image_cdn = 9;
|
|
141
|
+
optional string mobile_image_cdn = 10;
|
|
142
|
+
optional int32 payout_multiplier = 11;
|
|
143
|
+
optional int32 wager_multiplier = 12;
|
|
144
|
+
optional string deposit_percentage_value = 13;
|
|
145
|
+
optional string deposit_percentage_max = 14;
|
|
146
|
+
optional int32 free_spins_game_id = 15;
|
|
147
|
+
optional string free_spins_spin_amount = 16;
|
|
148
|
+
optional int32 free_spins_total_amount = 17;
|
|
149
|
+
optional string free_spins_max_win = 18;
|
|
150
|
+
}
|
|
151
|
+
message BonusMaskResponse {
|
|
152
|
+
BonusMaskItem data = 1;
|
|
153
|
+
}
|
|
154
|
+
message BonusMaskItemsResponse {
|
|
155
|
+
repeated BonusMaskItem items = 1;
|
|
156
|
+
optional int32 total_pages = 2;
|
|
157
|
+
optional int32 total_items = 3;
|
|
158
|
+
}
|
|
159
|
+
message BonusMaskSearchRequest {
|
|
160
|
+
optional int32 promocode_id = 1;
|
|
161
|
+
optional int32 target_bonus_id = 2;
|
|
162
|
+
// Business-allowed: "signup" | "bonus" | "deposit"
|
|
163
|
+
optional string activation_area = 3;
|
|
164
|
+
optional string currency = 4;
|
|
165
|
+
optional int32 is_active = 5;
|
|
166
|
+
}
|
|
167
|
+
message BonusMaskPaginationRequest {
|
|
168
|
+
int32 limit = 1;
|
|
169
|
+
int32 offset = 2;
|
|
170
|
+
optional string order = 3;
|
|
171
|
+
optional BonusMaskSearchRequest additional_search_params = 4;
|
|
172
|
+
}
|
|
173
|
+
message BonusMaskStatusResponse {
|
|
174
|
+
string status = 1;
|
|
175
|
+
}
|
|
176
|
+
//User promocode runtime
|
|
177
|
+
message ApplyUserPromocodeRequest {
|
|
178
|
+
int32 user_id = 1;
|
|
179
|
+
string code = 2;
|
|
180
|
+
// Business-allowed: "signup" | "bonus" | "deposit"
|
|
181
|
+
string activation_area = 3;
|
|
182
|
+
// Business-allowed: "bonus"
|
|
183
|
+
string target_domain = 4;
|
|
184
|
+
// Business-allowed: "enhance" | "grant"
|
|
185
|
+
optional string application_mode = 5;
|
|
186
|
+
optional string target_entity_type = 6;
|
|
187
|
+
optional int32 target_entity_id = 7;
|
|
188
|
+
optional string currency = 8;
|
|
189
|
+
string idempotency_key = 9;
|
|
190
|
+
}
|
|
191
|
+
message ApplyUserPromocodeResponse {
|
|
192
|
+
int32 user_promocode_id = 1;
|
|
193
|
+
int32 promocode_id = 2;
|
|
194
|
+
optional string source_mask_type = 3;
|
|
195
|
+
optional int32 source_mask_id = 4;
|
|
196
|
+
// Business-allowed: "signup" | "bonus" | "deposit"
|
|
197
|
+
optional string activation_area = 5;
|
|
198
|
+
// Business-allowed: "bonus"
|
|
199
|
+
optional string target_domain = 6;
|
|
200
|
+
// Business-allowed: "enhance" | "grant"
|
|
201
|
+
optional string application_mode = 7;
|
|
202
|
+
optional string target_entity_type = 8;
|
|
203
|
+
optional int32 target_entity_id = 9;
|
|
204
|
+
optional string currency = 10;
|
|
205
|
+
optional string snapshot = 11;
|
|
206
|
+
optional string status = 12;
|
|
207
|
+
}
|
|
208
|
+
message BatchGetUserPromocodeSnapshotsRequest {
|
|
209
|
+
repeated int32 user_promocode_ids = 1;
|
|
210
|
+
}
|
|
211
|
+
message UserPromocodeSnapshotItem {
|
|
212
|
+
int32 user_promocode_id = 1;
|
|
213
|
+
int32 promocode_id = 2;
|
|
214
|
+
optional string source_mask_type = 3;
|
|
215
|
+
optional int32 source_mask_id = 4;
|
|
216
|
+
// Business-allowed: "signup" | "bonus" | "deposit"
|
|
217
|
+
optional string activation_area = 5;
|
|
218
|
+
// Business-allowed: "bonus"
|
|
219
|
+
optional string target_domain = 6;
|
|
220
|
+
// Business-allowed: "enhance" | "grant"
|
|
221
|
+
optional string application_mode = 7;
|
|
222
|
+
optional string target_entity_type = 8;
|
|
223
|
+
optional int32 target_entity_id = 9;
|
|
224
|
+
optional string currency = 10;
|
|
225
|
+
optional string snapshot = 11;
|
|
226
|
+
optional string status = 12;
|
|
227
|
+
}
|
|
228
|
+
message BatchGetUserPromocodeSnapshotsResponse {
|
|
229
|
+
repeated UserPromocodeSnapshotItem items = 1;
|
|
230
|
+
}
|