protobuf-platform 1.2.401 → 1.2.403
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 +9 -0
- package/bonus/bonus_grpc_pb.js +22 -0
- package/bonus/bonus_pb.js +374 -0
- package/package.json +1 -1
- package/promocode/promocode.proto +22 -12
- package/promocode/promocode_grpc_pb.js +2 -2
- package/promocode/promocode_pb.js +757 -282
package/bonus/bonus.proto
CHANGED
|
@@ -24,6 +24,7 @@ service Bonus {
|
|
|
24
24
|
rpc cancelUserBonus(GetUserBonusRequest) returns (BonusStatusResponse);
|
|
25
25
|
rpc activateUserBonus(GetUserBonusRequest) returns (BonusStatusResponse);
|
|
26
26
|
rpc applyUserPromocodeToUserBonus(ApplyUserPromocodeToUserBonusRequest) returns (BonusStatusResponse);
|
|
27
|
+
rpc applyUserBonusPromocode(ApplyUserBonusPromocodeRequest) returns (BonusStatusResponse);
|
|
27
28
|
rpc getUserBonuses(PaginationRequest) returns (UserBonusItemsResponse);
|
|
28
29
|
rpc checkBonusForUser(GetUserBonusRequest) returns (UserBonusItem);
|
|
29
30
|
rpc getUserBonusesHistory(PaginationRequest) returns (UserBonusItemsResponse);
|
|
@@ -338,6 +339,14 @@ message ApplyUserPromocodeToUserBonusRequest {
|
|
|
338
339
|
optional string country = 5;
|
|
339
340
|
optional string locale = 6;
|
|
340
341
|
}
|
|
342
|
+
message ApplyUserBonusPromocodeRequest {
|
|
343
|
+
int32 user_id = 1;
|
|
344
|
+
string promo_code = 2;
|
|
345
|
+
optional int32 user_bonus_id = 3;
|
|
346
|
+
optional string currency = 4;
|
|
347
|
+
optional string country = 5;
|
|
348
|
+
optional string locale = 6;
|
|
349
|
+
}
|
|
341
350
|
message UserBonusItemsResponse {
|
|
342
351
|
repeated UserBonusItem items = 1;
|
|
343
352
|
optional int32 total_pages = 2;
|
package/bonus/bonus_grpc_pb.js
CHANGED
|
@@ -15,6 +15,17 @@ function deserialize_bonus_ActiveWageringUserBonusesResponse(buffer_arg) {
|
|
|
15
15
|
return bonus_pb.ActiveWageringUserBonusesResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
+
function serialize_bonus_ApplyUserBonusPromocodeRequest(arg) {
|
|
19
|
+
if (!(arg instanceof bonus_pb.ApplyUserBonusPromocodeRequest)) {
|
|
20
|
+
throw new Error('Expected argument of type bonus.ApplyUserBonusPromocodeRequest');
|
|
21
|
+
}
|
|
22
|
+
return Buffer.from(arg.serializeBinary());
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function deserialize_bonus_ApplyUserBonusPromocodeRequest(buffer_arg) {
|
|
26
|
+
return bonus_pb.ApplyUserBonusPromocodeRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
27
|
+
}
|
|
28
|
+
|
|
18
29
|
function serialize_bonus_ApplyUserPromocodeToUserBonusRequest(arg) {
|
|
19
30
|
if (!(arg instanceof bonus_pb.ApplyUserPromocodeToUserBonusRequest)) {
|
|
20
31
|
throw new Error('Expected argument of type bonus.ApplyUserPromocodeToUserBonusRequest');
|
|
@@ -635,6 +646,17 @@ claimUserBonus: {
|
|
|
635
646
|
responseSerialize: serialize_bonus_BonusStatusResponse,
|
|
636
647
|
responseDeserialize: deserialize_bonus_BonusStatusResponse,
|
|
637
648
|
},
|
|
649
|
+
applyUserBonusPromocode: {
|
|
650
|
+
path: '/bonus.Bonus/applyUserBonusPromocode',
|
|
651
|
+
requestStream: false,
|
|
652
|
+
responseStream: false,
|
|
653
|
+
requestType: bonus_pb.ApplyUserBonusPromocodeRequest,
|
|
654
|
+
responseType: bonus_pb.BonusStatusResponse,
|
|
655
|
+
requestSerialize: serialize_bonus_ApplyUserBonusPromocodeRequest,
|
|
656
|
+
requestDeserialize: deserialize_bonus_ApplyUserBonusPromocodeRequest,
|
|
657
|
+
responseSerialize: serialize_bonus_BonusStatusResponse,
|
|
658
|
+
responseDeserialize: deserialize_bonus_BonusStatusResponse,
|
|
659
|
+
},
|
|
638
660
|
getUserBonuses: {
|
|
639
661
|
path: '/bonus.Bonus/getUserBonuses',
|
|
640
662
|
requestStream: false,
|
package/bonus/bonus_pb.js
CHANGED
|
@@ -24,6 +24,7 @@ var global = (function() {
|
|
|
24
24
|
goog.exportSymbol('proto.bonus.ActivationRule', null, global);
|
|
25
25
|
goog.exportSymbol('proto.bonus.ActiveWageringUserBonusItem', null, global);
|
|
26
26
|
goog.exportSymbol('proto.bonus.ActiveWageringUserBonusesResponse', null, global);
|
|
27
|
+
goog.exportSymbol('proto.bonus.ApplyUserBonusPromocodeRequest', null, global);
|
|
27
28
|
goog.exportSymbol('proto.bonus.ApplyUserPromocodeToUserBonusRequest', null, global);
|
|
28
29
|
goog.exportSymbol('proto.bonus.BetsRange', null, global);
|
|
29
30
|
goog.exportSymbol('proto.bonus.BonusActivationRulesRequest', null, global);
|
|
@@ -769,6 +770,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
769
770
|
*/
|
|
770
771
|
proto.bonus.ApplyUserPromocodeToUserBonusRequest.displayName = 'proto.bonus.ApplyUserPromocodeToUserBonusRequest';
|
|
771
772
|
}
|
|
773
|
+
/**
|
|
774
|
+
* Generated by JsPbCodeGenerator.
|
|
775
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
776
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
777
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
778
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
779
|
+
* valid.
|
|
780
|
+
* @extends {jspb.Message}
|
|
781
|
+
* @constructor
|
|
782
|
+
*/
|
|
783
|
+
proto.bonus.ApplyUserBonusPromocodeRequest = function(opt_data) {
|
|
784
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
785
|
+
};
|
|
786
|
+
goog.inherits(proto.bonus.ApplyUserBonusPromocodeRequest, jspb.Message);
|
|
787
|
+
if (goog.DEBUG && !COMPILED) {
|
|
788
|
+
/**
|
|
789
|
+
* @public
|
|
790
|
+
* @override
|
|
791
|
+
*/
|
|
792
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.displayName = 'proto.bonus.ApplyUserBonusPromocodeRequest';
|
|
793
|
+
}
|
|
772
794
|
/**
|
|
773
795
|
* Generated by JsPbCodeGenerator.
|
|
774
796
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -14886,6 +14908,358 @@ proto.bonus.ApplyUserPromocodeToUserBonusRequest.prototype.hasLocale = function(
|
|
|
14886
14908
|
|
|
14887
14909
|
|
|
14888
14910
|
|
|
14911
|
+
|
|
14912
|
+
|
|
14913
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
14914
|
+
/**
|
|
14915
|
+
* Creates an object representation of this proto.
|
|
14916
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
14917
|
+
* Optional fields that are not set will be set to undefined.
|
|
14918
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
14919
|
+
* For the list of reserved names please see:
|
|
14920
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
14921
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
14922
|
+
* JSPB instance for transitional soy proto support:
|
|
14923
|
+
* http://goto/soy-param-migration
|
|
14924
|
+
* @return {!Object}
|
|
14925
|
+
*/
|
|
14926
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.prototype.toObject = function(opt_includeInstance) {
|
|
14927
|
+
return proto.bonus.ApplyUserBonusPromocodeRequest.toObject(opt_includeInstance, this);
|
|
14928
|
+
};
|
|
14929
|
+
|
|
14930
|
+
|
|
14931
|
+
/**
|
|
14932
|
+
* Static version of the {@see toObject} method.
|
|
14933
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
14934
|
+
* the JSPB instance for transitional soy proto support:
|
|
14935
|
+
* http://goto/soy-param-migration
|
|
14936
|
+
* @param {!proto.bonus.ApplyUserBonusPromocodeRequest} msg The msg instance to transform.
|
|
14937
|
+
* @return {!Object}
|
|
14938
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
14939
|
+
*/
|
|
14940
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.toObject = function(includeInstance, msg) {
|
|
14941
|
+
var f, obj = {
|
|
14942
|
+
userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
14943
|
+
promoCode: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
14944
|
+
userBonusId: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
14945
|
+
currency: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
14946
|
+
country: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
14947
|
+
locale: jspb.Message.getFieldWithDefault(msg, 6, "")
|
|
14948
|
+
};
|
|
14949
|
+
|
|
14950
|
+
if (includeInstance) {
|
|
14951
|
+
obj.$jspbMessageInstance = msg;
|
|
14952
|
+
}
|
|
14953
|
+
return obj;
|
|
14954
|
+
};
|
|
14955
|
+
}
|
|
14956
|
+
|
|
14957
|
+
|
|
14958
|
+
/**
|
|
14959
|
+
* Deserializes binary data (in protobuf wire format).
|
|
14960
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
14961
|
+
* @return {!proto.bonus.ApplyUserBonusPromocodeRequest}
|
|
14962
|
+
*/
|
|
14963
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.deserializeBinary = function(bytes) {
|
|
14964
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
14965
|
+
var msg = new proto.bonus.ApplyUserBonusPromocodeRequest;
|
|
14966
|
+
return proto.bonus.ApplyUserBonusPromocodeRequest.deserializeBinaryFromReader(msg, reader);
|
|
14967
|
+
};
|
|
14968
|
+
|
|
14969
|
+
|
|
14970
|
+
/**
|
|
14971
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
14972
|
+
* given reader into the given message object.
|
|
14973
|
+
* @param {!proto.bonus.ApplyUserBonusPromocodeRequest} msg The message object to deserialize into.
|
|
14974
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
14975
|
+
* @return {!proto.bonus.ApplyUserBonusPromocodeRequest}
|
|
14976
|
+
*/
|
|
14977
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
14978
|
+
while (reader.nextField()) {
|
|
14979
|
+
if (reader.isEndGroup()) {
|
|
14980
|
+
break;
|
|
14981
|
+
}
|
|
14982
|
+
var field = reader.getFieldNumber();
|
|
14983
|
+
switch (field) {
|
|
14984
|
+
case 1:
|
|
14985
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
14986
|
+
msg.setUserId(value);
|
|
14987
|
+
break;
|
|
14988
|
+
case 2:
|
|
14989
|
+
var value = /** @type {string} */ (reader.readString());
|
|
14990
|
+
msg.setPromoCode(value);
|
|
14991
|
+
break;
|
|
14992
|
+
case 3:
|
|
14993
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
14994
|
+
msg.setUserBonusId(value);
|
|
14995
|
+
break;
|
|
14996
|
+
case 4:
|
|
14997
|
+
var value = /** @type {string} */ (reader.readString());
|
|
14998
|
+
msg.setCurrency(value);
|
|
14999
|
+
break;
|
|
15000
|
+
case 5:
|
|
15001
|
+
var value = /** @type {string} */ (reader.readString());
|
|
15002
|
+
msg.setCountry(value);
|
|
15003
|
+
break;
|
|
15004
|
+
case 6:
|
|
15005
|
+
var value = /** @type {string} */ (reader.readString());
|
|
15006
|
+
msg.setLocale(value);
|
|
15007
|
+
break;
|
|
15008
|
+
default:
|
|
15009
|
+
reader.skipField();
|
|
15010
|
+
break;
|
|
15011
|
+
}
|
|
15012
|
+
}
|
|
15013
|
+
return msg;
|
|
15014
|
+
};
|
|
15015
|
+
|
|
15016
|
+
|
|
15017
|
+
/**
|
|
15018
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
15019
|
+
* @return {!Uint8Array}
|
|
15020
|
+
*/
|
|
15021
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.prototype.serializeBinary = function() {
|
|
15022
|
+
var writer = new jspb.BinaryWriter();
|
|
15023
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.serializeBinaryToWriter(this, writer);
|
|
15024
|
+
return writer.getResultBuffer();
|
|
15025
|
+
};
|
|
15026
|
+
|
|
15027
|
+
|
|
15028
|
+
/**
|
|
15029
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
15030
|
+
* format), writing to the given BinaryWriter.
|
|
15031
|
+
* @param {!proto.bonus.ApplyUserBonusPromocodeRequest} message
|
|
15032
|
+
* @param {!jspb.BinaryWriter} writer
|
|
15033
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
15034
|
+
*/
|
|
15035
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.serializeBinaryToWriter = function(message, writer) {
|
|
15036
|
+
var f = undefined;
|
|
15037
|
+
f = message.getUserId();
|
|
15038
|
+
if (f !== 0) {
|
|
15039
|
+
writer.writeInt32(
|
|
15040
|
+
1,
|
|
15041
|
+
f
|
|
15042
|
+
);
|
|
15043
|
+
}
|
|
15044
|
+
f = message.getPromoCode();
|
|
15045
|
+
if (f.length > 0) {
|
|
15046
|
+
writer.writeString(
|
|
15047
|
+
2,
|
|
15048
|
+
f
|
|
15049
|
+
);
|
|
15050
|
+
}
|
|
15051
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
|
15052
|
+
if (f != null) {
|
|
15053
|
+
writer.writeInt32(
|
|
15054
|
+
3,
|
|
15055
|
+
f
|
|
15056
|
+
);
|
|
15057
|
+
}
|
|
15058
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
|
15059
|
+
if (f != null) {
|
|
15060
|
+
writer.writeString(
|
|
15061
|
+
4,
|
|
15062
|
+
f
|
|
15063
|
+
);
|
|
15064
|
+
}
|
|
15065
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 5));
|
|
15066
|
+
if (f != null) {
|
|
15067
|
+
writer.writeString(
|
|
15068
|
+
5,
|
|
15069
|
+
f
|
|
15070
|
+
);
|
|
15071
|
+
}
|
|
15072
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 6));
|
|
15073
|
+
if (f != null) {
|
|
15074
|
+
writer.writeString(
|
|
15075
|
+
6,
|
|
15076
|
+
f
|
|
15077
|
+
);
|
|
15078
|
+
}
|
|
15079
|
+
};
|
|
15080
|
+
|
|
15081
|
+
|
|
15082
|
+
/**
|
|
15083
|
+
* optional int32 user_id = 1;
|
|
15084
|
+
* @return {number}
|
|
15085
|
+
*/
|
|
15086
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.prototype.getUserId = function() {
|
|
15087
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
15088
|
+
};
|
|
15089
|
+
|
|
15090
|
+
|
|
15091
|
+
/**
|
|
15092
|
+
* @param {number} value
|
|
15093
|
+
* @return {!proto.bonus.ApplyUserBonusPromocodeRequest} returns this
|
|
15094
|
+
*/
|
|
15095
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.prototype.setUserId = function(value) {
|
|
15096
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
15097
|
+
};
|
|
15098
|
+
|
|
15099
|
+
|
|
15100
|
+
/**
|
|
15101
|
+
* optional string promo_code = 2;
|
|
15102
|
+
* @return {string}
|
|
15103
|
+
*/
|
|
15104
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.prototype.getPromoCode = function() {
|
|
15105
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
15106
|
+
};
|
|
15107
|
+
|
|
15108
|
+
|
|
15109
|
+
/**
|
|
15110
|
+
* @param {string} value
|
|
15111
|
+
* @return {!proto.bonus.ApplyUserBonusPromocodeRequest} returns this
|
|
15112
|
+
*/
|
|
15113
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.prototype.setPromoCode = function(value) {
|
|
15114
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
15115
|
+
};
|
|
15116
|
+
|
|
15117
|
+
|
|
15118
|
+
/**
|
|
15119
|
+
* optional int32 user_bonus_id = 3;
|
|
15120
|
+
* @return {number}
|
|
15121
|
+
*/
|
|
15122
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.prototype.getUserBonusId = function() {
|
|
15123
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
15124
|
+
};
|
|
15125
|
+
|
|
15126
|
+
|
|
15127
|
+
/**
|
|
15128
|
+
* @param {number} value
|
|
15129
|
+
* @return {!proto.bonus.ApplyUserBonusPromocodeRequest} returns this
|
|
15130
|
+
*/
|
|
15131
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.prototype.setUserBonusId = function(value) {
|
|
15132
|
+
return jspb.Message.setField(this, 3, value);
|
|
15133
|
+
};
|
|
15134
|
+
|
|
15135
|
+
|
|
15136
|
+
/**
|
|
15137
|
+
* Clears the field making it undefined.
|
|
15138
|
+
* @return {!proto.bonus.ApplyUserBonusPromocodeRequest} returns this
|
|
15139
|
+
*/
|
|
15140
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.prototype.clearUserBonusId = function() {
|
|
15141
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
15142
|
+
};
|
|
15143
|
+
|
|
15144
|
+
|
|
15145
|
+
/**
|
|
15146
|
+
* Returns whether this field is set.
|
|
15147
|
+
* @return {boolean}
|
|
15148
|
+
*/
|
|
15149
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.prototype.hasUserBonusId = function() {
|
|
15150
|
+
return jspb.Message.getField(this, 3) != null;
|
|
15151
|
+
};
|
|
15152
|
+
|
|
15153
|
+
|
|
15154
|
+
/**
|
|
15155
|
+
* optional string currency = 4;
|
|
15156
|
+
* @return {string}
|
|
15157
|
+
*/
|
|
15158
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.prototype.getCurrency = function() {
|
|
15159
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
15160
|
+
};
|
|
15161
|
+
|
|
15162
|
+
|
|
15163
|
+
/**
|
|
15164
|
+
* @param {string} value
|
|
15165
|
+
* @return {!proto.bonus.ApplyUserBonusPromocodeRequest} returns this
|
|
15166
|
+
*/
|
|
15167
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.prototype.setCurrency = function(value) {
|
|
15168
|
+
return jspb.Message.setField(this, 4, value);
|
|
15169
|
+
};
|
|
15170
|
+
|
|
15171
|
+
|
|
15172
|
+
/**
|
|
15173
|
+
* Clears the field making it undefined.
|
|
15174
|
+
* @return {!proto.bonus.ApplyUserBonusPromocodeRequest} returns this
|
|
15175
|
+
*/
|
|
15176
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.prototype.clearCurrency = function() {
|
|
15177
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
15178
|
+
};
|
|
15179
|
+
|
|
15180
|
+
|
|
15181
|
+
/**
|
|
15182
|
+
* Returns whether this field is set.
|
|
15183
|
+
* @return {boolean}
|
|
15184
|
+
*/
|
|
15185
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.prototype.hasCurrency = function() {
|
|
15186
|
+
return jspb.Message.getField(this, 4) != null;
|
|
15187
|
+
};
|
|
15188
|
+
|
|
15189
|
+
|
|
15190
|
+
/**
|
|
15191
|
+
* optional string country = 5;
|
|
15192
|
+
* @return {string}
|
|
15193
|
+
*/
|
|
15194
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.prototype.getCountry = function() {
|
|
15195
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
15196
|
+
};
|
|
15197
|
+
|
|
15198
|
+
|
|
15199
|
+
/**
|
|
15200
|
+
* @param {string} value
|
|
15201
|
+
* @return {!proto.bonus.ApplyUserBonusPromocodeRequest} returns this
|
|
15202
|
+
*/
|
|
15203
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.prototype.setCountry = function(value) {
|
|
15204
|
+
return jspb.Message.setField(this, 5, value);
|
|
15205
|
+
};
|
|
15206
|
+
|
|
15207
|
+
|
|
15208
|
+
/**
|
|
15209
|
+
* Clears the field making it undefined.
|
|
15210
|
+
* @return {!proto.bonus.ApplyUserBonusPromocodeRequest} returns this
|
|
15211
|
+
*/
|
|
15212
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.prototype.clearCountry = function() {
|
|
15213
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
15214
|
+
};
|
|
15215
|
+
|
|
15216
|
+
|
|
15217
|
+
/**
|
|
15218
|
+
* Returns whether this field is set.
|
|
15219
|
+
* @return {boolean}
|
|
15220
|
+
*/
|
|
15221
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.prototype.hasCountry = function() {
|
|
15222
|
+
return jspb.Message.getField(this, 5) != null;
|
|
15223
|
+
};
|
|
15224
|
+
|
|
15225
|
+
|
|
15226
|
+
/**
|
|
15227
|
+
* optional string locale = 6;
|
|
15228
|
+
* @return {string}
|
|
15229
|
+
*/
|
|
15230
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.prototype.getLocale = function() {
|
|
15231
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
15232
|
+
};
|
|
15233
|
+
|
|
15234
|
+
|
|
15235
|
+
/**
|
|
15236
|
+
* @param {string} value
|
|
15237
|
+
* @return {!proto.bonus.ApplyUserBonusPromocodeRequest} returns this
|
|
15238
|
+
*/
|
|
15239
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.prototype.setLocale = function(value) {
|
|
15240
|
+
return jspb.Message.setField(this, 6, value);
|
|
15241
|
+
};
|
|
15242
|
+
|
|
15243
|
+
|
|
15244
|
+
/**
|
|
15245
|
+
* Clears the field making it undefined.
|
|
15246
|
+
* @return {!proto.bonus.ApplyUserBonusPromocodeRequest} returns this
|
|
15247
|
+
*/
|
|
15248
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.prototype.clearLocale = function() {
|
|
15249
|
+
return jspb.Message.setField(this, 6, undefined);
|
|
15250
|
+
};
|
|
15251
|
+
|
|
15252
|
+
|
|
15253
|
+
/**
|
|
15254
|
+
* Returns whether this field is set.
|
|
15255
|
+
* @return {boolean}
|
|
15256
|
+
*/
|
|
15257
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.prototype.hasLocale = function() {
|
|
15258
|
+
return jspb.Message.getField(this, 6) != null;
|
|
15259
|
+
};
|
|
15260
|
+
|
|
15261
|
+
|
|
15262
|
+
|
|
14889
15263
|
/**
|
|
14890
15264
|
* List of repeated fields within this message type.
|
|
14891
15265
|
* @private {!Array<number>}
|
package/package.json
CHANGED
|
@@ -12,9 +12,9 @@ service Promocode {
|
|
|
12
12
|
rpc readListCodes(PaginationRequest) returns (CodeItemsResponse);
|
|
13
13
|
rpc updateCodesInBunch(ItemsBunchRequest) returns (CodeStatusResponse);
|
|
14
14
|
//Bonus masks (BO)
|
|
15
|
-
rpc createBonusMask(BonusMaskRequest) returns (BonusMaskResponse);
|
|
15
|
+
rpc createBonusMask(stream BonusMaskRequest) returns (BonusMaskResponse);
|
|
16
16
|
rpc readBonusMask(GetBonusMaskRequest) returns (BonusMaskResponse);
|
|
17
|
-
rpc updateBonusMask(BonusMaskRequest) returns (BonusMaskResponse);
|
|
17
|
+
rpc updateBonusMask(stream BonusMaskRequest) returns (BonusMaskResponse);
|
|
18
18
|
rpc deleteBonusMask(GetBonusMaskRequest) returns (BonusMaskStatusResponse);
|
|
19
19
|
rpc readListBonusMasks(BonusMaskPaginationRequest) returns (BonusMaskItemsResponse);
|
|
20
20
|
//User promocodes (runtime)
|
|
@@ -104,10 +104,20 @@ message CodeStatusResponse {
|
|
|
104
104
|
string status = 1;
|
|
105
105
|
}
|
|
106
106
|
//Bonus mask CRUD
|
|
107
|
+
message File {
|
|
108
|
+
bytes media = 1;
|
|
109
|
+
optional string file_role = 2;
|
|
110
|
+
}
|
|
107
111
|
message GetBonusMaskRequest {
|
|
108
112
|
int32 id = 1;
|
|
109
113
|
}
|
|
110
114
|
message BonusMaskRequest {
|
|
115
|
+
oneof request {
|
|
116
|
+
BonusMaskItemRequest bonus_mask_data = 1;
|
|
117
|
+
File file = 2;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
message BonusMaskItemRequest {
|
|
111
121
|
optional int32 id = 1;
|
|
112
122
|
optional int32 promocode_id = 2;
|
|
113
123
|
optional int32 target_bonus_id = 3;
|
|
@@ -117,16 +127,14 @@ message BonusMaskRequest {
|
|
|
117
127
|
optional int32 is_active = 6;
|
|
118
128
|
optional string title = 7;
|
|
119
129
|
optional string description = 8;
|
|
120
|
-
optional
|
|
121
|
-
optional
|
|
122
|
-
optional
|
|
123
|
-
optional
|
|
124
|
-
optional
|
|
125
|
-
optional string
|
|
126
|
-
optional int32
|
|
127
|
-
optional string
|
|
128
|
-
optional int32 free_spins_total_amount = 17;
|
|
129
|
-
optional string free_spins_max_win = 18;
|
|
130
|
+
optional int32 payout_multiplier = 9;
|
|
131
|
+
optional int32 wager_multiplier = 10;
|
|
132
|
+
optional string deposit_percentage_value = 11;
|
|
133
|
+
optional string deposit_percentage_max = 12;
|
|
134
|
+
optional int32 free_spins_game_id = 13;
|
|
135
|
+
optional string free_spins_spin_amount = 14;
|
|
136
|
+
optional int32 free_spins_total_amount = 15;
|
|
137
|
+
optional string free_spins_max_win = 16;
|
|
130
138
|
}
|
|
131
139
|
message BonusMaskItem {
|
|
132
140
|
optional int32 id = 1;
|
|
@@ -148,6 +156,8 @@ message BonusMaskItem {
|
|
|
148
156
|
optional string free_spins_spin_amount = 16;
|
|
149
157
|
optional int32 free_spins_total_amount = 17;
|
|
150
158
|
optional string free_spins_max_win = 18;
|
|
159
|
+
optional string image = 19;
|
|
160
|
+
optional string mobile_image = 20;
|
|
151
161
|
}
|
|
152
162
|
message BonusMaskResponse {
|
|
153
163
|
BonusMaskItem data = 1;
|
|
@@ -318,7 +318,7 @@ createSingleCode: {
|
|
|
318
318
|
// Bonus masks (BO)
|
|
319
319
|
createBonusMask: {
|
|
320
320
|
path: '/promocode.Promocode/createBonusMask',
|
|
321
|
-
requestStream:
|
|
321
|
+
requestStream: true,
|
|
322
322
|
responseStream: false,
|
|
323
323
|
requestType: promocode_pb.BonusMaskRequest,
|
|
324
324
|
responseType: promocode_pb.BonusMaskResponse,
|
|
@@ -340,7 +340,7 @@ createBonusMask: {
|
|
|
340
340
|
},
|
|
341
341
|
updateBonusMask: {
|
|
342
342
|
path: '/promocode.Promocode/updateBonusMask',
|
|
343
|
-
requestStream:
|
|
343
|
+
requestStream: true,
|
|
344
344
|
responseStream: false,
|
|
345
345
|
requestType: promocode_pb.BonusMaskRequest,
|
|
346
346
|
responseType: promocode_pb.BonusMaskResponse,
|