protobuf-platform 1.2.624 → 1.2.628
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/cms/cms.proto +3 -1
- package/cms/cms_pb.js +97 -1
- package/game/game.proto +9 -0
- package/game/game_pb.js +360 -1
- package/package.json +1 -1
- package/payment/payment.proto +4 -1
- package/payment/payment_pb.js +146 -2
package/cms/cms.proto
CHANGED
|
@@ -731,6 +731,8 @@ message GetCustomWidgetForUserRequest {
|
|
|
731
731
|
optional string locale = 3;
|
|
732
732
|
optional bool is_mobile = 4;
|
|
733
733
|
optional bool admin_side = 5;
|
|
734
|
+
optional string country = 6; // Payment reward context, separate from widget visibility geo.
|
|
735
|
+
optional string currency = 7;
|
|
734
736
|
}
|
|
735
737
|
message CustomWidgetsItemsResponse {
|
|
736
738
|
repeated CustomWidgetItem items = 1;
|
|
@@ -1345,4 +1347,4 @@ message PresetCashierConfigsResponse {
|
|
|
1345
1347
|
repeated PresetCashierConfigItem items = 1;
|
|
1346
1348
|
optional int32 total_pages = 2;
|
|
1347
1349
|
optional int32 total_items = 3;
|
|
1348
|
-
}
|
|
1350
|
+
}
|
package/cms/cms_pb.js
CHANGED
|
@@ -30839,7 +30839,9 @@ proto.cms.GetCustomWidgetForUserRequest.toObject = function(includeInstance, msg
|
|
|
30839
30839
|
geo: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
30840
30840
|
locale: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
30841
30841
|
isMobile: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
|
|
30842
|
-
adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
|
|
30842
|
+
adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 5, false),
|
|
30843
|
+
country: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
30844
|
+
currency: jspb.Message.getFieldWithDefault(msg, 7, "")
|
|
30843
30845
|
};
|
|
30844
30846
|
|
|
30845
30847
|
if (includeInstance) {
|
|
@@ -30896,6 +30898,14 @@ proto.cms.GetCustomWidgetForUserRequest.deserializeBinaryFromReader = function(m
|
|
|
30896
30898
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
30897
30899
|
msg.setAdminSide(value);
|
|
30898
30900
|
break;
|
|
30901
|
+
case 6:
|
|
30902
|
+
var value = /** @type {string} */ (reader.readString());
|
|
30903
|
+
msg.setCountry(value);
|
|
30904
|
+
break;
|
|
30905
|
+
case 7:
|
|
30906
|
+
var value = /** @type {string} */ (reader.readString());
|
|
30907
|
+
msg.setCurrency(value);
|
|
30908
|
+
break;
|
|
30899
30909
|
default:
|
|
30900
30910
|
reader.skipField();
|
|
30901
30911
|
break;
|
|
@@ -30960,6 +30970,20 @@ proto.cms.GetCustomWidgetForUserRequest.serializeBinaryToWriter = function(messa
|
|
|
30960
30970
|
f
|
|
30961
30971
|
);
|
|
30962
30972
|
}
|
|
30973
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 6));
|
|
30974
|
+
if (f != null) {
|
|
30975
|
+
writer.writeString(
|
|
30976
|
+
6,
|
|
30977
|
+
f
|
|
30978
|
+
);
|
|
30979
|
+
}
|
|
30980
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 7));
|
|
30981
|
+
if (f != null) {
|
|
30982
|
+
writer.writeString(
|
|
30983
|
+
7,
|
|
30984
|
+
f
|
|
30985
|
+
);
|
|
30986
|
+
}
|
|
30963
30987
|
};
|
|
30964
30988
|
|
|
30965
30989
|
|
|
@@ -31125,6 +31149,78 @@ proto.cms.GetCustomWidgetForUserRequest.prototype.hasAdminSide = function() {
|
|
|
31125
31149
|
};
|
|
31126
31150
|
|
|
31127
31151
|
|
|
31152
|
+
/**
|
|
31153
|
+
* optional string country = 6;
|
|
31154
|
+
* @return {string}
|
|
31155
|
+
*/
|
|
31156
|
+
proto.cms.GetCustomWidgetForUserRequest.prototype.getCountry = function() {
|
|
31157
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
31158
|
+
};
|
|
31159
|
+
|
|
31160
|
+
|
|
31161
|
+
/**
|
|
31162
|
+
* @param {string} value
|
|
31163
|
+
* @return {!proto.cms.GetCustomWidgetForUserRequest} returns this
|
|
31164
|
+
*/
|
|
31165
|
+
proto.cms.GetCustomWidgetForUserRequest.prototype.setCountry = function(value) {
|
|
31166
|
+
return jspb.Message.setField(this, 6, value);
|
|
31167
|
+
};
|
|
31168
|
+
|
|
31169
|
+
|
|
31170
|
+
/**
|
|
31171
|
+
* Clears the field making it undefined.
|
|
31172
|
+
* @return {!proto.cms.GetCustomWidgetForUserRequest} returns this
|
|
31173
|
+
*/
|
|
31174
|
+
proto.cms.GetCustomWidgetForUserRequest.prototype.clearCountry = function() {
|
|
31175
|
+
return jspb.Message.setField(this, 6, undefined);
|
|
31176
|
+
};
|
|
31177
|
+
|
|
31178
|
+
|
|
31179
|
+
/**
|
|
31180
|
+
* Returns whether this field is set.
|
|
31181
|
+
* @return {boolean}
|
|
31182
|
+
*/
|
|
31183
|
+
proto.cms.GetCustomWidgetForUserRequest.prototype.hasCountry = function() {
|
|
31184
|
+
return jspb.Message.getField(this, 6) != null;
|
|
31185
|
+
};
|
|
31186
|
+
|
|
31187
|
+
|
|
31188
|
+
/**
|
|
31189
|
+
* optional string currency = 7;
|
|
31190
|
+
* @return {string}
|
|
31191
|
+
*/
|
|
31192
|
+
proto.cms.GetCustomWidgetForUserRequest.prototype.getCurrency = function() {
|
|
31193
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
31194
|
+
};
|
|
31195
|
+
|
|
31196
|
+
|
|
31197
|
+
/**
|
|
31198
|
+
* @param {string} value
|
|
31199
|
+
* @return {!proto.cms.GetCustomWidgetForUserRequest} returns this
|
|
31200
|
+
*/
|
|
31201
|
+
proto.cms.GetCustomWidgetForUserRequest.prototype.setCurrency = function(value) {
|
|
31202
|
+
return jspb.Message.setField(this, 7, value);
|
|
31203
|
+
};
|
|
31204
|
+
|
|
31205
|
+
|
|
31206
|
+
/**
|
|
31207
|
+
* Clears the field making it undefined.
|
|
31208
|
+
* @return {!proto.cms.GetCustomWidgetForUserRequest} returns this
|
|
31209
|
+
*/
|
|
31210
|
+
proto.cms.GetCustomWidgetForUserRequest.prototype.clearCurrency = function() {
|
|
31211
|
+
return jspb.Message.setField(this, 7, undefined);
|
|
31212
|
+
};
|
|
31213
|
+
|
|
31214
|
+
|
|
31215
|
+
/**
|
|
31216
|
+
* Returns whether this field is set.
|
|
31217
|
+
* @return {boolean}
|
|
31218
|
+
*/
|
|
31219
|
+
proto.cms.GetCustomWidgetForUserRequest.prototype.hasCurrency = function() {
|
|
31220
|
+
return jspb.Message.getField(this, 7) != null;
|
|
31221
|
+
};
|
|
31222
|
+
|
|
31223
|
+
|
|
31128
31224
|
|
|
31129
31225
|
/**
|
|
31130
31226
|
* List of repeated fields within this message type.
|
package/game/game.proto
CHANGED
|
@@ -727,6 +727,15 @@ message GameItemsResponse {
|
|
|
727
727
|
repeated GameItem items = 1;
|
|
728
728
|
optional int32 total_pages = 2;
|
|
729
729
|
optional int32 total_items = 3;
|
|
730
|
+
map<string, GameSearchScope> scopes = 4;
|
|
731
|
+
}
|
|
732
|
+
/** Public display fields shared by category, collection and tag search scopes. */
|
|
733
|
+
message GameSearchScope {
|
|
734
|
+
string title = 1;
|
|
735
|
+
string slug = 2;
|
|
736
|
+
optional string description = 3;
|
|
737
|
+
optional string image = 4;
|
|
738
|
+
optional string icon = 5;
|
|
730
739
|
}
|
|
731
740
|
message GameStatusResponse {
|
|
732
741
|
string status = 1;
|
package/game/game_pb.js
CHANGED
|
@@ -98,6 +98,7 @@ goog.exportSymbol('proto.game.GameRequest', null, global);
|
|
|
98
98
|
goog.exportSymbol('proto.game.GameRequest.RequestCase', null, global);
|
|
99
99
|
goog.exportSymbol('proto.game.GameResponse', null, global);
|
|
100
100
|
goog.exportSymbol('proto.game.GameSearchRequest', null, global);
|
|
101
|
+
goog.exportSymbol('proto.game.GameSearchScope', null, global);
|
|
101
102
|
goog.exportSymbol('proto.game.GameSnapshotItem', null, global);
|
|
102
103
|
goog.exportSymbol('proto.game.GameSnapshotItemsResponse', null, global);
|
|
103
104
|
goog.exportSymbol('proto.game.GameStatusResponse', null, global);
|
|
@@ -2083,6 +2084,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
2083
2084
|
*/
|
|
2084
2085
|
proto.game.GameItemsResponse.displayName = 'proto.game.GameItemsResponse';
|
|
2085
2086
|
}
|
|
2087
|
+
/**
|
|
2088
|
+
* Generated by JsPbCodeGenerator.
|
|
2089
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
2090
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
2091
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
2092
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
2093
|
+
* valid.
|
|
2094
|
+
* @extends {jspb.Message}
|
|
2095
|
+
* @constructor
|
|
2096
|
+
*/
|
|
2097
|
+
proto.game.GameSearchScope = function(opt_data) {
|
|
2098
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
2099
|
+
};
|
|
2100
|
+
goog.inherits(proto.game.GameSearchScope, jspb.Message);
|
|
2101
|
+
if (goog.DEBUG && !COMPILED) {
|
|
2102
|
+
/**
|
|
2103
|
+
* @public
|
|
2104
|
+
* @override
|
|
2105
|
+
*/
|
|
2106
|
+
proto.game.GameSearchScope.displayName = 'proto.game.GameSearchScope';
|
|
2107
|
+
}
|
|
2086
2108
|
/**
|
|
2087
2109
|
* Generated by JsPbCodeGenerator.
|
|
2088
2110
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -29958,7 +29980,8 @@ proto.game.GameItemsResponse.toObject = function(includeInstance, msg) {
|
|
|
29958
29980
|
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
|
29959
29981
|
proto.game.GameItem.toObject, includeInstance),
|
|
29960
29982
|
totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
29961
|
-
totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
29983
|
+
totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
29984
|
+
scopesMap: (f = msg.getScopesMap()) ? f.toObject(includeInstance, proto.game.GameSearchScope.toObject) : []
|
|
29962
29985
|
};
|
|
29963
29986
|
|
|
29964
29987
|
if (includeInstance) {
|
|
@@ -30008,6 +30031,12 @@ proto.game.GameItemsResponse.deserializeBinaryFromReader = function(msg, reader)
|
|
|
30008
30031
|
var value = /** @type {number} */ (reader.readInt32());
|
|
30009
30032
|
msg.setTotalItems(value);
|
|
30010
30033
|
break;
|
|
30034
|
+
case 4:
|
|
30035
|
+
var value = msg.getScopesMap();
|
|
30036
|
+
reader.readMessage(value, function(message, reader) {
|
|
30037
|
+
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.game.GameSearchScope.deserializeBinaryFromReader, "", new proto.game.GameSearchScope());
|
|
30038
|
+
});
|
|
30039
|
+
break;
|
|
30011
30040
|
default:
|
|
30012
30041
|
reader.skipField();
|
|
30013
30042
|
break;
|
|
@@ -30059,6 +30088,10 @@ proto.game.GameItemsResponse.serializeBinaryToWriter = function(message, writer)
|
|
|
30059
30088
|
f
|
|
30060
30089
|
);
|
|
30061
30090
|
}
|
|
30091
|
+
f = message.getScopesMap(true);
|
|
30092
|
+
if (f && f.getLength() > 0) {
|
|
30093
|
+
f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.game.GameSearchScope.serializeBinaryToWriter);
|
|
30094
|
+
}
|
|
30062
30095
|
};
|
|
30063
30096
|
|
|
30064
30097
|
|
|
@@ -30172,6 +30205,332 @@ proto.game.GameItemsResponse.prototype.hasTotalItems = function() {
|
|
|
30172
30205
|
};
|
|
30173
30206
|
|
|
30174
30207
|
|
|
30208
|
+
/**
|
|
30209
|
+
* map<string, GameSearchScope> scopes = 4;
|
|
30210
|
+
* @param {boolean=} opt_noLazyCreate Do not create the map if
|
|
30211
|
+
* empty, instead returning `undefined`
|
|
30212
|
+
* @return {!jspb.Map<string,!proto.game.GameSearchScope>}
|
|
30213
|
+
*/
|
|
30214
|
+
proto.game.GameItemsResponse.prototype.getScopesMap = function(opt_noLazyCreate) {
|
|
30215
|
+
return /** @type {!jspb.Map<string,!proto.game.GameSearchScope>} */ (
|
|
30216
|
+
jspb.Message.getMapField(this, 4, opt_noLazyCreate,
|
|
30217
|
+
proto.game.GameSearchScope));
|
|
30218
|
+
};
|
|
30219
|
+
|
|
30220
|
+
|
|
30221
|
+
/**
|
|
30222
|
+
* Clears values from the map. The map will be non-null.
|
|
30223
|
+
* @return {!proto.game.GameItemsResponse} returns this
|
|
30224
|
+
*/
|
|
30225
|
+
proto.game.GameItemsResponse.prototype.clearScopesMap = function() {
|
|
30226
|
+
this.getScopesMap().clear();
|
|
30227
|
+
return this;};
|
|
30228
|
+
|
|
30229
|
+
|
|
30230
|
+
|
|
30231
|
+
|
|
30232
|
+
|
|
30233
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
30234
|
+
/**
|
|
30235
|
+
* Creates an object representation of this proto.
|
|
30236
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
30237
|
+
* Optional fields that are not set will be set to undefined.
|
|
30238
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
30239
|
+
* For the list of reserved names please see:
|
|
30240
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
30241
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
30242
|
+
* JSPB instance for transitional soy proto support:
|
|
30243
|
+
* http://goto/soy-param-migration
|
|
30244
|
+
* @return {!Object}
|
|
30245
|
+
*/
|
|
30246
|
+
proto.game.GameSearchScope.prototype.toObject = function(opt_includeInstance) {
|
|
30247
|
+
return proto.game.GameSearchScope.toObject(opt_includeInstance, this);
|
|
30248
|
+
};
|
|
30249
|
+
|
|
30250
|
+
|
|
30251
|
+
/**
|
|
30252
|
+
* Static version of the {@see toObject} method.
|
|
30253
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
30254
|
+
* the JSPB instance for transitional soy proto support:
|
|
30255
|
+
* http://goto/soy-param-migration
|
|
30256
|
+
* @param {!proto.game.GameSearchScope} msg The msg instance to transform.
|
|
30257
|
+
* @return {!Object}
|
|
30258
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
30259
|
+
*/
|
|
30260
|
+
proto.game.GameSearchScope.toObject = function(includeInstance, msg) {
|
|
30261
|
+
var f, obj = {
|
|
30262
|
+
title: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
30263
|
+
slug: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
30264
|
+
description: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
30265
|
+
image: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
30266
|
+
icon: jspb.Message.getFieldWithDefault(msg, 5, "")
|
|
30267
|
+
};
|
|
30268
|
+
|
|
30269
|
+
if (includeInstance) {
|
|
30270
|
+
obj.$jspbMessageInstance = msg;
|
|
30271
|
+
}
|
|
30272
|
+
return obj;
|
|
30273
|
+
};
|
|
30274
|
+
}
|
|
30275
|
+
|
|
30276
|
+
|
|
30277
|
+
/**
|
|
30278
|
+
* Deserializes binary data (in protobuf wire format).
|
|
30279
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
30280
|
+
* @return {!proto.game.GameSearchScope}
|
|
30281
|
+
*/
|
|
30282
|
+
proto.game.GameSearchScope.deserializeBinary = function(bytes) {
|
|
30283
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
30284
|
+
var msg = new proto.game.GameSearchScope;
|
|
30285
|
+
return proto.game.GameSearchScope.deserializeBinaryFromReader(msg, reader);
|
|
30286
|
+
};
|
|
30287
|
+
|
|
30288
|
+
|
|
30289
|
+
/**
|
|
30290
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
30291
|
+
* given reader into the given message object.
|
|
30292
|
+
* @param {!proto.game.GameSearchScope} msg The message object to deserialize into.
|
|
30293
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
30294
|
+
* @return {!proto.game.GameSearchScope}
|
|
30295
|
+
*/
|
|
30296
|
+
proto.game.GameSearchScope.deserializeBinaryFromReader = function(msg, reader) {
|
|
30297
|
+
while (reader.nextField()) {
|
|
30298
|
+
if (reader.isEndGroup()) {
|
|
30299
|
+
break;
|
|
30300
|
+
}
|
|
30301
|
+
var field = reader.getFieldNumber();
|
|
30302
|
+
switch (field) {
|
|
30303
|
+
case 1:
|
|
30304
|
+
var value = /** @type {string} */ (reader.readString());
|
|
30305
|
+
msg.setTitle(value);
|
|
30306
|
+
break;
|
|
30307
|
+
case 2:
|
|
30308
|
+
var value = /** @type {string} */ (reader.readString());
|
|
30309
|
+
msg.setSlug(value);
|
|
30310
|
+
break;
|
|
30311
|
+
case 3:
|
|
30312
|
+
var value = /** @type {string} */ (reader.readString());
|
|
30313
|
+
msg.setDescription(value);
|
|
30314
|
+
break;
|
|
30315
|
+
case 4:
|
|
30316
|
+
var value = /** @type {string} */ (reader.readString());
|
|
30317
|
+
msg.setImage(value);
|
|
30318
|
+
break;
|
|
30319
|
+
case 5:
|
|
30320
|
+
var value = /** @type {string} */ (reader.readString());
|
|
30321
|
+
msg.setIcon(value);
|
|
30322
|
+
break;
|
|
30323
|
+
default:
|
|
30324
|
+
reader.skipField();
|
|
30325
|
+
break;
|
|
30326
|
+
}
|
|
30327
|
+
}
|
|
30328
|
+
return msg;
|
|
30329
|
+
};
|
|
30330
|
+
|
|
30331
|
+
|
|
30332
|
+
/**
|
|
30333
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
30334
|
+
* @return {!Uint8Array}
|
|
30335
|
+
*/
|
|
30336
|
+
proto.game.GameSearchScope.prototype.serializeBinary = function() {
|
|
30337
|
+
var writer = new jspb.BinaryWriter();
|
|
30338
|
+
proto.game.GameSearchScope.serializeBinaryToWriter(this, writer);
|
|
30339
|
+
return writer.getResultBuffer();
|
|
30340
|
+
};
|
|
30341
|
+
|
|
30342
|
+
|
|
30343
|
+
/**
|
|
30344
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
30345
|
+
* format), writing to the given BinaryWriter.
|
|
30346
|
+
* @param {!proto.game.GameSearchScope} message
|
|
30347
|
+
* @param {!jspb.BinaryWriter} writer
|
|
30348
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
30349
|
+
*/
|
|
30350
|
+
proto.game.GameSearchScope.serializeBinaryToWriter = function(message, writer) {
|
|
30351
|
+
var f = undefined;
|
|
30352
|
+
f = message.getTitle();
|
|
30353
|
+
if (f.length > 0) {
|
|
30354
|
+
writer.writeString(
|
|
30355
|
+
1,
|
|
30356
|
+
f
|
|
30357
|
+
);
|
|
30358
|
+
}
|
|
30359
|
+
f = message.getSlug();
|
|
30360
|
+
if (f.length > 0) {
|
|
30361
|
+
writer.writeString(
|
|
30362
|
+
2,
|
|
30363
|
+
f
|
|
30364
|
+
);
|
|
30365
|
+
}
|
|
30366
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
30367
|
+
if (f != null) {
|
|
30368
|
+
writer.writeString(
|
|
30369
|
+
3,
|
|
30370
|
+
f
|
|
30371
|
+
);
|
|
30372
|
+
}
|
|
30373
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
|
30374
|
+
if (f != null) {
|
|
30375
|
+
writer.writeString(
|
|
30376
|
+
4,
|
|
30377
|
+
f
|
|
30378
|
+
);
|
|
30379
|
+
}
|
|
30380
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 5));
|
|
30381
|
+
if (f != null) {
|
|
30382
|
+
writer.writeString(
|
|
30383
|
+
5,
|
|
30384
|
+
f
|
|
30385
|
+
);
|
|
30386
|
+
}
|
|
30387
|
+
};
|
|
30388
|
+
|
|
30389
|
+
|
|
30390
|
+
/**
|
|
30391
|
+
* optional string title = 1;
|
|
30392
|
+
* @return {string}
|
|
30393
|
+
*/
|
|
30394
|
+
proto.game.GameSearchScope.prototype.getTitle = function() {
|
|
30395
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
30396
|
+
};
|
|
30397
|
+
|
|
30398
|
+
|
|
30399
|
+
/**
|
|
30400
|
+
* @param {string} value
|
|
30401
|
+
* @return {!proto.game.GameSearchScope} returns this
|
|
30402
|
+
*/
|
|
30403
|
+
proto.game.GameSearchScope.prototype.setTitle = function(value) {
|
|
30404
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
30405
|
+
};
|
|
30406
|
+
|
|
30407
|
+
|
|
30408
|
+
/**
|
|
30409
|
+
* optional string slug = 2;
|
|
30410
|
+
* @return {string}
|
|
30411
|
+
*/
|
|
30412
|
+
proto.game.GameSearchScope.prototype.getSlug = function() {
|
|
30413
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
30414
|
+
};
|
|
30415
|
+
|
|
30416
|
+
|
|
30417
|
+
/**
|
|
30418
|
+
* @param {string} value
|
|
30419
|
+
* @return {!proto.game.GameSearchScope} returns this
|
|
30420
|
+
*/
|
|
30421
|
+
proto.game.GameSearchScope.prototype.setSlug = function(value) {
|
|
30422
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
30423
|
+
};
|
|
30424
|
+
|
|
30425
|
+
|
|
30426
|
+
/**
|
|
30427
|
+
* optional string description = 3;
|
|
30428
|
+
* @return {string}
|
|
30429
|
+
*/
|
|
30430
|
+
proto.game.GameSearchScope.prototype.getDescription = function() {
|
|
30431
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
30432
|
+
};
|
|
30433
|
+
|
|
30434
|
+
|
|
30435
|
+
/**
|
|
30436
|
+
* @param {string} value
|
|
30437
|
+
* @return {!proto.game.GameSearchScope} returns this
|
|
30438
|
+
*/
|
|
30439
|
+
proto.game.GameSearchScope.prototype.setDescription = function(value) {
|
|
30440
|
+
return jspb.Message.setField(this, 3, value);
|
|
30441
|
+
};
|
|
30442
|
+
|
|
30443
|
+
|
|
30444
|
+
/**
|
|
30445
|
+
* Clears the field making it undefined.
|
|
30446
|
+
* @return {!proto.game.GameSearchScope} returns this
|
|
30447
|
+
*/
|
|
30448
|
+
proto.game.GameSearchScope.prototype.clearDescription = function() {
|
|
30449
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
30450
|
+
};
|
|
30451
|
+
|
|
30452
|
+
|
|
30453
|
+
/**
|
|
30454
|
+
* Returns whether this field is set.
|
|
30455
|
+
* @return {boolean}
|
|
30456
|
+
*/
|
|
30457
|
+
proto.game.GameSearchScope.prototype.hasDescription = function() {
|
|
30458
|
+
return jspb.Message.getField(this, 3) != null;
|
|
30459
|
+
};
|
|
30460
|
+
|
|
30461
|
+
|
|
30462
|
+
/**
|
|
30463
|
+
* optional string image = 4;
|
|
30464
|
+
* @return {string}
|
|
30465
|
+
*/
|
|
30466
|
+
proto.game.GameSearchScope.prototype.getImage = function() {
|
|
30467
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
30468
|
+
};
|
|
30469
|
+
|
|
30470
|
+
|
|
30471
|
+
/**
|
|
30472
|
+
* @param {string} value
|
|
30473
|
+
* @return {!proto.game.GameSearchScope} returns this
|
|
30474
|
+
*/
|
|
30475
|
+
proto.game.GameSearchScope.prototype.setImage = function(value) {
|
|
30476
|
+
return jspb.Message.setField(this, 4, value);
|
|
30477
|
+
};
|
|
30478
|
+
|
|
30479
|
+
|
|
30480
|
+
/**
|
|
30481
|
+
* Clears the field making it undefined.
|
|
30482
|
+
* @return {!proto.game.GameSearchScope} returns this
|
|
30483
|
+
*/
|
|
30484
|
+
proto.game.GameSearchScope.prototype.clearImage = function() {
|
|
30485
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
30486
|
+
};
|
|
30487
|
+
|
|
30488
|
+
|
|
30489
|
+
/**
|
|
30490
|
+
* Returns whether this field is set.
|
|
30491
|
+
* @return {boolean}
|
|
30492
|
+
*/
|
|
30493
|
+
proto.game.GameSearchScope.prototype.hasImage = function() {
|
|
30494
|
+
return jspb.Message.getField(this, 4) != null;
|
|
30495
|
+
};
|
|
30496
|
+
|
|
30497
|
+
|
|
30498
|
+
/**
|
|
30499
|
+
* optional string icon = 5;
|
|
30500
|
+
* @return {string}
|
|
30501
|
+
*/
|
|
30502
|
+
proto.game.GameSearchScope.prototype.getIcon = function() {
|
|
30503
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
30504
|
+
};
|
|
30505
|
+
|
|
30506
|
+
|
|
30507
|
+
/**
|
|
30508
|
+
* @param {string} value
|
|
30509
|
+
* @return {!proto.game.GameSearchScope} returns this
|
|
30510
|
+
*/
|
|
30511
|
+
proto.game.GameSearchScope.prototype.setIcon = function(value) {
|
|
30512
|
+
return jspb.Message.setField(this, 5, value);
|
|
30513
|
+
};
|
|
30514
|
+
|
|
30515
|
+
|
|
30516
|
+
/**
|
|
30517
|
+
* Clears the field making it undefined.
|
|
30518
|
+
* @return {!proto.game.GameSearchScope} returns this
|
|
30519
|
+
*/
|
|
30520
|
+
proto.game.GameSearchScope.prototype.clearIcon = function() {
|
|
30521
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
30522
|
+
};
|
|
30523
|
+
|
|
30524
|
+
|
|
30525
|
+
/**
|
|
30526
|
+
* Returns whether this field is set.
|
|
30527
|
+
* @return {boolean}
|
|
30528
|
+
*/
|
|
30529
|
+
proto.game.GameSearchScope.prototype.hasIcon = function() {
|
|
30530
|
+
return jspb.Message.getField(this, 5) != null;
|
|
30531
|
+
};
|
|
30532
|
+
|
|
30533
|
+
|
|
30175
30534
|
|
|
30176
30535
|
|
|
30177
30536
|
|
package/package.json
CHANGED
package/payment/payment.proto
CHANGED
|
@@ -237,6 +237,8 @@ message PoorMethodsRequest {
|
|
|
237
237
|
}
|
|
238
238
|
message GetPaymentMethodSnapshotsByIdsRequest {
|
|
239
239
|
repeated int32 ids = 1;
|
|
240
|
+
optional string country = 2; // Exact reward config context; no payment-processing fallbacks.
|
|
241
|
+
optional string currency = 3;
|
|
240
242
|
}
|
|
241
243
|
message PaymentMethodSnapshotItem {
|
|
242
244
|
int32 id = 1;
|
|
@@ -252,6 +254,7 @@ message PaymentMethodSnapshotItem {
|
|
|
252
254
|
optional string provider_title = 11;
|
|
253
255
|
optional string provider_image = 12;
|
|
254
256
|
optional string provider_image_cdn = 13;
|
|
257
|
+
optional int32 reward_percent = 14; // From the exact method + country + currency config.
|
|
255
258
|
}
|
|
256
259
|
message PaymentMethodSnapshotItemsResponse {
|
|
257
260
|
repeated PaymentMethodSnapshotItem items = 1;
|
|
@@ -1208,4 +1211,4 @@ message FinancialOperationResponse {
|
|
|
1208
1211
|
optional int64 required_wager_minor = 16;
|
|
1209
1212
|
optional string created_at = 17;
|
|
1210
1213
|
optional string completed_at = 18;
|
|
1211
|
-
}
|
|
1214
|
+
}
|
package/payment/payment_pb.js
CHANGED
|
@@ -10201,7 +10201,9 @@ proto.payment.GetPaymentMethodSnapshotsByIdsRequest.prototype.toObject = functio
|
|
|
10201
10201
|
*/
|
|
10202
10202
|
proto.payment.GetPaymentMethodSnapshotsByIdsRequest.toObject = function(includeInstance, msg) {
|
|
10203
10203
|
var f, obj = {
|
|
10204
|
-
idsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
|
|
10204
|
+
idsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
|
|
10205
|
+
country: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
10206
|
+
currency: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
10205
10207
|
};
|
|
10206
10208
|
|
|
10207
10209
|
if (includeInstance) {
|
|
@@ -10244,6 +10246,14 @@ proto.payment.GetPaymentMethodSnapshotsByIdsRequest.deserializeBinaryFromReader
|
|
|
10244
10246
|
msg.addIds(values[i]);
|
|
10245
10247
|
}
|
|
10246
10248
|
break;
|
|
10249
|
+
case 2:
|
|
10250
|
+
var value = /** @type {string} */ (reader.readString());
|
|
10251
|
+
msg.setCountry(value);
|
|
10252
|
+
break;
|
|
10253
|
+
case 3:
|
|
10254
|
+
var value = /** @type {string} */ (reader.readString());
|
|
10255
|
+
msg.setCurrency(value);
|
|
10256
|
+
break;
|
|
10247
10257
|
default:
|
|
10248
10258
|
reader.skipField();
|
|
10249
10259
|
break;
|
|
@@ -10280,6 +10290,20 @@ proto.payment.GetPaymentMethodSnapshotsByIdsRequest.serializeBinaryToWriter = fu
|
|
|
10280
10290
|
f
|
|
10281
10291
|
);
|
|
10282
10292
|
}
|
|
10293
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
|
10294
|
+
if (f != null) {
|
|
10295
|
+
writer.writeString(
|
|
10296
|
+
2,
|
|
10297
|
+
f
|
|
10298
|
+
);
|
|
10299
|
+
}
|
|
10300
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
10301
|
+
if (f != null) {
|
|
10302
|
+
writer.writeString(
|
|
10303
|
+
3,
|
|
10304
|
+
f
|
|
10305
|
+
);
|
|
10306
|
+
}
|
|
10283
10307
|
};
|
|
10284
10308
|
|
|
10285
10309
|
|
|
@@ -10320,6 +10344,78 @@ proto.payment.GetPaymentMethodSnapshotsByIdsRequest.prototype.clearIdsList = fun
|
|
|
10320
10344
|
};
|
|
10321
10345
|
|
|
10322
10346
|
|
|
10347
|
+
/**
|
|
10348
|
+
* optional string country = 2;
|
|
10349
|
+
* @return {string}
|
|
10350
|
+
*/
|
|
10351
|
+
proto.payment.GetPaymentMethodSnapshotsByIdsRequest.prototype.getCountry = function() {
|
|
10352
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
10353
|
+
};
|
|
10354
|
+
|
|
10355
|
+
|
|
10356
|
+
/**
|
|
10357
|
+
* @param {string} value
|
|
10358
|
+
* @return {!proto.payment.GetPaymentMethodSnapshotsByIdsRequest} returns this
|
|
10359
|
+
*/
|
|
10360
|
+
proto.payment.GetPaymentMethodSnapshotsByIdsRequest.prototype.setCountry = function(value) {
|
|
10361
|
+
return jspb.Message.setField(this, 2, value);
|
|
10362
|
+
};
|
|
10363
|
+
|
|
10364
|
+
|
|
10365
|
+
/**
|
|
10366
|
+
* Clears the field making it undefined.
|
|
10367
|
+
* @return {!proto.payment.GetPaymentMethodSnapshotsByIdsRequest} returns this
|
|
10368
|
+
*/
|
|
10369
|
+
proto.payment.GetPaymentMethodSnapshotsByIdsRequest.prototype.clearCountry = function() {
|
|
10370
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
10371
|
+
};
|
|
10372
|
+
|
|
10373
|
+
|
|
10374
|
+
/**
|
|
10375
|
+
* Returns whether this field is set.
|
|
10376
|
+
* @return {boolean}
|
|
10377
|
+
*/
|
|
10378
|
+
proto.payment.GetPaymentMethodSnapshotsByIdsRequest.prototype.hasCountry = function() {
|
|
10379
|
+
return jspb.Message.getField(this, 2) != null;
|
|
10380
|
+
};
|
|
10381
|
+
|
|
10382
|
+
|
|
10383
|
+
/**
|
|
10384
|
+
* optional string currency = 3;
|
|
10385
|
+
* @return {string}
|
|
10386
|
+
*/
|
|
10387
|
+
proto.payment.GetPaymentMethodSnapshotsByIdsRequest.prototype.getCurrency = function() {
|
|
10388
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
10389
|
+
};
|
|
10390
|
+
|
|
10391
|
+
|
|
10392
|
+
/**
|
|
10393
|
+
* @param {string} value
|
|
10394
|
+
* @return {!proto.payment.GetPaymentMethodSnapshotsByIdsRequest} returns this
|
|
10395
|
+
*/
|
|
10396
|
+
proto.payment.GetPaymentMethodSnapshotsByIdsRequest.prototype.setCurrency = function(value) {
|
|
10397
|
+
return jspb.Message.setField(this, 3, value);
|
|
10398
|
+
};
|
|
10399
|
+
|
|
10400
|
+
|
|
10401
|
+
/**
|
|
10402
|
+
* Clears the field making it undefined.
|
|
10403
|
+
* @return {!proto.payment.GetPaymentMethodSnapshotsByIdsRequest} returns this
|
|
10404
|
+
*/
|
|
10405
|
+
proto.payment.GetPaymentMethodSnapshotsByIdsRequest.prototype.clearCurrency = function() {
|
|
10406
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
10407
|
+
};
|
|
10408
|
+
|
|
10409
|
+
|
|
10410
|
+
/**
|
|
10411
|
+
* Returns whether this field is set.
|
|
10412
|
+
* @return {boolean}
|
|
10413
|
+
*/
|
|
10414
|
+
proto.payment.GetPaymentMethodSnapshotsByIdsRequest.prototype.hasCurrency = function() {
|
|
10415
|
+
return jspb.Message.getField(this, 3) != null;
|
|
10416
|
+
};
|
|
10417
|
+
|
|
10418
|
+
|
|
10323
10419
|
|
|
10324
10420
|
|
|
10325
10421
|
|
|
@@ -10364,7 +10460,8 @@ proto.payment.PaymentMethodSnapshotItem.toObject = function(includeInstance, msg
|
|
|
10364
10460
|
providerId: jspb.Message.getFieldWithDefault(msg, 10, 0),
|
|
10365
10461
|
providerTitle: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
|
10366
10462
|
providerImage: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
10367
|
-
providerImageCdn: jspb.Message.getFieldWithDefault(msg, 13, "")
|
|
10463
|
+
providerImageCdn: jspb.Message.getFieldWithDefault(msg, 13, ""),
|
|
10464
|
+
rewardPercent: jspb.Message.getFieldWithDefault(msg, 14, 0)
|
|
10368
10465
|
};
|
|
10369
10466
|
|
|
10370
10467
|
if (includeInstance) {
|
|
@@ -10453,6 +10550,10 @@ proto.payment.PaymentMethodSnapshotItem.deserializeBinaryFromReader = function(m
|
|
|
10453
10550
|
var value = /** @type {string} */ (reader.readString());
|
|
10454
10551
|
msg.setProviderImageCdn(value);
|
|
10455
10552
|
break;
|
|
10553
|
+
case 14:
|
|
10554
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
10555
|
+
msg.setRewardPercent(value);
|
|
10556
|
+
break;
|
|
10456
10557
|
default:
|
|
10457
10558
|
reader.skipField();
|
|
10458
10559
|
break;
|
|
@@ -10573,6 +10674,13 @@ proto.payment.PaymentMethodSnapshotItem.serializeBinaryToWriter = function(messa
|
|
|
10573
10674
|
f
|
|
10574
10675
|
);
|
|
10575
10676
|
}
|
|
10677
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 14));
|
|
10678
|
+
if (f != null) {
|
|
10679
|
+
writer.writeInt32(
|
|
10680
|
+
14,
|
|
10681
|
+
f
|
|
10682
|
+
);
|
|
10683
|
+
}
|
|
10576
10684
|
};
|
|
10577
10685
|
|
|
10578
10686
|
|
|
@@ -11026,6 +11134,42 @@ proto.payment.PaymentMethodSnapshotItem.prototype.hasProviderImageCdn = function
|
|
|
11026
11134
|
};
|
|
11027
11135
|
|
|
11028
11136
|
|
|
11137
|
+
/**
|
|
11138
|
+
* optional int32 reward_percent = 14;
|
|
11139
|
+
* @return {number}
|
|
11140
|
+
*/
|
|
11141
|
+
proto.payment.PaymentMethodSnapshotItem.prototype.getRewardPercent = function() {
|
|
11142
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0));
|
|
11143
|
+
};
|
|
11144
|
+
|
|
11145
|
+
|
|
11146
|
+
/**
|
|
11147
|
+
* @param {number} value
|
|
11148
|
+
* @return {!proto.payment.PaymentMethodSnapshotItem} returns this
|
|
11149
|
+
*/
|
|
11150
|
+
proto.payment.PaymentMethodSnapshotItem.prototype.setRewardPercent = function(value) {
|
|
11151
|
+
return jspb.Message.setField(this, 14, value);
|
|
11152
|
+
};
|
|
11153
|
+
|
|
11154
|
+
|
|
11155
|
+
/**
|
|
11156
|
+
* Clears the field making it undefined.
|
|
11157
|
+
* @return {!proto.payment.PaymentMethodSnapshotItem} returns this
|
|
11158
|
+
*/
|
|
11159
|
+
proto.payment.PaymentMethodSnapshotItem.prototype.clearRewardPercent = function() {
|
|
11160
|
+
return jspb.Message.setField(this, 14, undefined);
|
|
11161
|
+
};
|
|
11162
|
+
|
|
11163
|
+
|
|
11164
|
+
/**
|
|
11165
|
+
* Returns whether this field is set.
|
|
11166
|
+
* @return {boolean}
|
|
11167
|
+
*/
|
|
11168
|
+
proto.payment.PaymentMethodSnapshotItem.prototype.hasRewardPercent = function() {
|
|
11169
|
+
return jspb.Message.getField(this, 14) != null;
|
|
11170
|
+
};
|
|
11171
|
+
|
|
11172
|
+
|
|
11029
11173
|
|
|
11030
11174
|
/**
|
|
11031
11175
|
* List of repeated fields within this message type.
|