protobuf-platform 1.2.468 → 1.2.471

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 CHANGED
@@ -21,6 +21,8 @@ service Bonus {
21
21
  rpc updateBonusesInBunch(ItemsBunchRequest) returns (BonusStatusResponse);
22
22
  //Users
23
23
  rpc claimUserBonus(GetUserBonusRequest) returns (BonusStatusResponse);
24
+ // Idempotent dynamic grant keyed by grant_source + grant_id.
25
+ rpc grantDynamicUserBonus(GrantDynamicUserBonusRequest) returns (GrantDynamicUserBonusResponse);
24
26
  rpc cancelUserBonus(GetUserBonusRequest) returns (BonusStatusResponse);
25
27
  rpc activateUserBonus(GetUserBonusRequest) returns (BonusStatusResponse);
26
28
  rpc applyUserPromocodeToUserBonus(ApplyUserPromocodeToUserBonusRequest) returns (BonusStatusResponse);
@@ -218,10 +220,10 @@ message BonusItem {
218
220
  optional string category = 36;
219
221
  optional string mobile_image = 37;
220
222
  optional string mobile_image_cdn = 38;
221
- repeated int32 wager_games_list_ids = 39;
222
- repeated int32 excluded_segment_ids = 40;
223
+ repeated int64 wager_games_list_ids = 39;
224
+ repeated int64 excluded_segment_ids = 40;
223
225
  // Business-allowed: "any" | "real" | "bonus"
224
- optional string wager_balance_priority = 41;
226
+ string wager_balance_priority = 41;
225
227
  }
226
228
  message BonusItemsResponse {
227
229
  repeated BonusItem items = 1;
@@ -361,6 +363,20 @@ message ApplyUserBonusPromocodeRequest {
361
363
  optional string country = 5;
362
364
  optional string locale = 6;
363
365
  }
366
+ message GrantDynamicUserBonusRequest {
367
+ int32 user_id = 1;
368
+ int32 bonus_template_id = 2;
369
+ // Caller domain identifier; combined with grant_id for idempotency.
370
+ string grant_source = 3;
371
+ string grant_id = 4;
372
+ string currency = 5;
373
+ // Decimal string in account currency.
374
+ string amount = 6;
375
+ }
376
+ message GrantDynamicUserBonusResponse {
377
+ int32 user_bonus_id = 1;
378
+ string status = 2;
379
+ }
364
380
  message UserBonusItemsResponse {
365
381
  repeated UserBonusItem items = 1;
366
382
  optional int32 total_pages = 2;
@@ -334,6 +334,28 @@ function deserialize_bonus_GetUserBonusRequest(buffer_arg) {
334
334
  return bonus_pb.GetUserBonusRequest.deserializeBinary(new Uint8Array(buffer_arg));
335
335
  }
336
336
 
337
+ function serialize_bonus_GrantDynamicUserBonusRequest(arg) {
338
+ if (!(arg instanceof bonus_pb.GrantDynamicUserBonusRequest)) {
339
+ throw new Error('Expected argument of type bonus.GrantDynamicUserBonusRequest');
340
+ }
341
+ return Buffer.from(arg.serializeBinary());
342
+ }
343
+
344
+ function deserialize_bonus_GrantDynamicUserBonusRequest(buffer_arg) {
345
+ return bonus_pb.GrantDynamicUserBonusRequest.deserializeBinary(new Uint8Array(buffer_arg));
346
+ }
347
+
348
+ function serialize_bonus_GrantDynamicUserBonusResponse(arg) {
349
+ if (!(arg instanceof bonus_pb.GrantDynamicUserBonusResponse)) {
350
+ throw new Error('Expected argument of type bonus.GrantDynamicUserBonusResponse');
351
+ }
352
+ return Buffer.from(arg.serializeBinary());
353
+ }
354
+
355
+ function deserialize_bonus_GrantDynamicUserBonusResponse(buffer_arg) {
356
+ return bonus_pb.GrantDynamicUserBonusResponse.deserializeBinary(new Uint8Array(buffer_arg));
357
+ }
358
+
337
359
  function serialize_bonus_ItemsBunchRequest(arg) {
338
360
  if (!(arg instanceof bonus_pb.ItemsBunchRequest)) {
339
361
  throw new Error('Expected argument of type bonus.ItemsBunchRequest');
@@ -613,6 +635,18 @@ claimUserBonus: {
613
635
  responseSerialize: serialize_bonus_BonusStatusResponse,
614
636
  responseDeserialize: deserialize_bonus_BonusStatusResponse,
615
637
  },
638
+ // Idempotent dynamic grant keyed by grant_source + grant_id.
639
+ grantDynamicUserBonus: {
640
+ path: '/bonus.Bonus/grantDynamicUserBonus',
641
+ requestStream: false,
642
+ responseStream: false,
643
+ requestType: bonus_pb.GrantDynamicUserBonusRequest,
644
+ responseType: bonus_pb.GrantDynamicUserBonusResponse,
645
+ requestSerialize: serialize_bonus_GrantDynamicUserBonusRequest,
646
+ requestDeserialize: deserialize_bonus_GrantDynamicUserBonusRequest,
647
+ responseSerialize: serialize_bonus_GrantDynamicUserBonusResponse,
648
+ responseDeserialize: deserialize_bonus_GrantDynamicUserBonusResponse,
649
+ },
616
650
  cancelUserBonus: {
617
651
  path: '/bonus.Bonus/cancelUserBonus',
618
652
  requestStream: false,
package/bonus/bonus_pb.js CHANGED
@@ -67,6 +67,8 @@ goog.exportSymbol('proto.bonus.GetDepositEligibleUserBonusesRequest', null, glob
67
67
  goog.exportSymbol('proto.bonus.GetFileRequest', null, global);
68
68
  goog.exportSymbol('proto.bonus.GetUserBonusHistoryRequest', null, global);
69
69
  goog.exportSymbol('proto.bonus.GetUserBonusRequest', null, global);
70
+ goog.exportSymbol('proto.bonus.GrantDynamicUserBonusRequest', null, global);
71
+ goog.exportSymbol('proto.bonus.GrantDynamicUserBonusResponse', null, global);
70
72
  goog.exportSymbol('proto.bonus.ItemsBunchRequest', null, global);
71
73
  goog.exportSymbol('proto.bonus.PaginationRequest', null, global);
72
74
  goog.exportSymbol('proto.bonus.PingRequest', null, global);
@@ -791,6 +793,48 @@ if (goog.DEBUG && !COMPILED) {
791
793
  */
792
794
  proto.bonus.ApplyUserBonusPromocodeRequest.displayName = 'proto.bonus.ApplyUserBonusPromocodeRequest';
793
795
  }
796
+ /**
797
+ * Generated by JsPbCodeGenerator.
798
+ * @param {Array=} opt_data Optional initial data array, typically from a
799
+ * server response, or constructed directly in Javascript. The array is used
800
+ * in place and becomes part of the constructed object. It is not cloned.
801
+ * If no data is provided, the constructed object will be empty, but still
802
+ * valid.
803
+ * @extends {jspb.Message}
804
+ * @constructor
805
+ */
806
+ proto.bonus.GrantDynamicUserBonusRequest = function(opt_data) {
807
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
808
+ };
809
+ goog.inherits(proto.bonus.GrantDynamicUserBonusRequest, jspb.Message);
810
+ if (goog.DEBUG && !COMPILED) {
811
+ /**
812
+ * @public
813
+ * @override
814
+ */
815
+ proto.bonus.GrantDynamicUserBonusRequest.displayName = 'proto.bonus.GrantDynamicUserBonusRequest';
816
+ }
817
+ /**
818
+ * Generated by JsPbCodeGenerator.
819
+ * @param {Array=} opt_data Optional initial data array, typically from a
820
+ * server response, or constructed directly in Javascript. The array is used
821
+ * in place and becomes part of the constructed object. It is not cloned.
822
+ * If no data is provided, the constructed object will be empty, but still
823
+ * valid.
824
+ * @extends {jspb.Message}
825
+ * @constructor
826
+ */
827
+ proto.bonus.GrantDynamicUserBonusResponse = function(opt_data) {
828
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
829
+ };
830
+ goog.inherits(proto.bonus.GrantDynamicUserBonusResponse, jspb.Message);
831
+ if (goog.DEBUG && !COMPILED) {
832
+ /**
833
+ * @public
834
+ * @override
835
+ */
836
+ proto.bonus.GrantDynamicUserBonusResponse.displayName = 'proto.bonus.GrantDynamicUserBonusResponse';
837
+ }
794
838
  /**
795
839
  * Generated by JsPbCodeGenerator.
796
840
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -7440,13 +7484,13 @@ proto.bonus.BonusItem.deserializeBinaryFromReader = function(msg, reader) {
7440
7484
  msg.setMobileImageCdn(value);
7441
7485
  break;
7442
7486
  case 39:
7443
- var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
7487
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt64() : [reader.readInt64()]);
7444
7488
  for (var i = 0; i < values.length; i++) {
7445
7489
  msg.addWagerGamesListIds(values[i]);
7446
7490
  }
7447
7491
  break;
7448
7492
  case 40:
7449
- var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
7493
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt64() : [reader.readInt64()]);
7450
7494
  for (var i = 0; i < values.length; i++) {
7451
7495
  msg.addExcludedSegmentIds(values[i]);
7452
7496
  }
@@ -7759,20 +7803,20 @@ proto.bonus.BonusItem.serializeBinaryToWriter = function(message, writer) {
7759
7803
  }
7760
7804
  f = message.getWagerGamesListIdsList();
7761
7805
  if (f.length > 0) {
7762
- writer.writePackedInt32(
7806
+ writer.writePackedInt64(
7763
7807
  39,
7764
7808
  f
7765
7809
  );
7766
7810
  }
7767
7811
  f = message.getExcludedSegmentIdsList();
7768
7812
  if (f.length > 0) {
7769
- writer.writePackedInt32(
7813
+ writer.writePackedInt64(
7770
7814
  40,
7771
7815
  f
7772
7816
  );
7773
7817
  }
7774
- f = /** @type {string} */ (jspb.Message.getField(message, 41));
7775
- if (f != null) {
7818
+ f = message.getWagerBalancePriority();
7819
+ if (f.length > 0) {
7776
7820
  writer.writeString(
7777
7821
  41,
7778
7822
  f
@@ -9165,7 +9209,7 @@ proto.bonus.BonusItem.prototype.hasMobileImageCdn = function() {
9165
9209
 
9166
9210
 
9167
9211
  /**
9168
- * repeated int32 wager_games_list_ids = 39;
9212
+ * repeated int64 wager_games_list_ids = 39;
9169
9213
  * @return {!Array<number>}
9170
9214
  */
9171
9215
  proto.bonus.BonusItem.prototype.getWagerGamesListIdsList = function() {
@@ -9202,7 +9246,7 @@ proto.bonus.BonusItem.prototype.clearWagerGamesListIdsList = function() {
9202
9246
 
9203
9247
 
9204
9248
  /**
9205
- * repeated int32 excluded_segment_ids = 40;
9249
+ * repeated int64 excluded_segment_ids = 40;
9206
9250
  * @return {!Array<number>}
9207
9251
  */
9208
9252
  proto.bonus.BonusItem.prototype.getExcludedSegmentIdsList = function() {
@@ -9252,25 +9296,7 @@ proto.bonus.BonusItem.prototype.getWagerBalancePriority = function() {
9252
9296
  * @return {!proto.bonus.BonusItem} returns this
9253
9297
  */
9254
9298
  proto.bonus.BonusItem.prototype.setWagerBalancePriority = function(value) {
9255
- return jspb.Message.setField(this, 41, value);
9256
- };
9257
-
9258
-
9259
- /**
9260
- * Clears the field making it undefined.
9261
- * @return {!proto.bonus.BonusItem} returns this
9262
- */
9263
- proto.bonus.BonusItem.prototype.clearWagerBalancePriority = function() {
9264
- return jspb.Message.setField(this, 41, undefined);
9265
- };
9266
-
9267
-
9268
- /**
9269
- * Returns whether this field is set.
9270
- * @return {boolean}
9271
- */
9272
- proto.bonus.BonusItem.prototype.hasWagerBalancePriority = function() {
9273
- return jspb.Message.getField(this, 41) != null;
9299
+ return jspb.Message.setProto3StringField(this, 41, value);
9274
9300
  };
9275
9301
 
9276
9302
 
@@ -15704,6 +15730,446 @@ proto.bonus.ApplyUserBonusPromocodeRequest.prototype.hasLocale = function() {
15704
15730
 
15705
15731
 
15706
15732
 
15733
+
15734
+
15735
+ if (jspb.Message.GENERATE_TO_OBJECT) {
15736
+ /**
15737
+ * Creates an object representation of this proto.
15738
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
15739
+ * Optional fields that are not set will be set to undefined.
15740
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
15741
+ * For the list of reserved names please see:
15742
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
15743
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
15744
+ * JSPB instance for transitional soy proto support:
15745
+ * http://goto/soy-param-migration
15746
+ * @return {!Object}
15747
+ */
15748
+ proto.bonus.GrantDynamicUserBonusRequest.prototype.toObject = function(opt_includeInstance) {
15749
+ return proto.bonus.GrantDynamicUserBonusRequest.toObject(opt_includeInstance, this);
15750
+ };
15751
+
15752
+
15753
+ /**
15754
+ * Static version of the {@see toObject} method.
15755
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
15756
+ * the JSPB instance for transitional soy proto support:
15757
+ * http://goto/soy-param-migration
15758
+ * @param {!proto.bonus.GrantDynamicUserBonusRequest} msg The msg instance to transform.
15759
+ * @return {!Object}
15760
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15761
+ */
15762
+ proto.bonus.GrantDynamicUserBonusRequest.toObject = function(includeInstance, msg) {
15763
+ var f, obj = {
15764
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
15765
+ bonusTemplateId: jspb.Message.getFieldWithDefault(msg, 2, 0),
15766
+ grantSource: jspb.Message.getFieldWithDefault(msg, 3, ""),
15767
+ grantId: jspb.Message.getFieldWithDefault(msg, 4, ""),
15768
+ currency: jspb.Message.getFieldWithDefault(msg, 5, ""),
15769
+ amount: jspb.Message.getFieldWithDefault(msg, 6, "")
15770
+ };
15771
+
15772
+ if (includeInstance) {
15773
+ obj.$jspbMessageInstance = msg;
15774
+ }
15775
+ return obj;
15776
+ };
15777
+ }
15778
+
15779
+
15780
+ /**
15781
+ * Deserializes binary data (in protobuf wire format).
15782
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
15783
+ * @return {!proto.bonus.GrantDynamicUserBonusRequest}
15784
+ */
15785
+ proto.bonus.GrantDynamicUserBonusRequest.deserializeBinary = function(bytes) {
15786
+ var reader = new jspb.BinaryReader(bytes);
15787
+ var msg = new proto.bonus.GrantDynamicUserBonusRequest;
15788
+ return proto.bonus.GrantDynamicUserBonusRequest.deserializeBinaryFromReader(msg, reader);
15789
+ };
15790
+
15791
+
15792
+ /**
15793
+ * Deserializes binary data (in protobuf wire format) from the
15794
+ * given reader into the given message object.
15795
+ * @param {!proto.bonus.GrantDynamicUserBonusRequest} msg The message object to deserialize into.
15796
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
15797
+ * @return {!proto.bonus.GrantDynamicUserBonusRequest}
15798
+ */
15799
+ proto.bonus.GrantDynamicUserBonusRequest.deserializeBinaryFromReader = function(msg, reader) {
15800
+ while (reader.nextField()) {
15801
+ if (reader.isEndGroup()) {
15802
+ break;
15803
+ }
15804
+ var field = reader.getFieldNumber();
15805
+ switch (field) {
15806
+ case 1:
15807
+ var value = /** @type {number} */ (reader.readInt32());
15808
+ msg.setUserId(value);
15809
+ break;
15810
+ case 2:
15811
+ var value = /** @type {number} */ (reader.readInt32());
15812
+ msg.setBonusTemplateId(value);
15813
+ break;
15814
+ case 3:
15815
+ var value = /** @type {string} */ (reader.readString());
15816
+ msg.setGrantSource(value);
15817
+ break;
15818
+ case 4:
15819
+ var value = /** @type {string} */ (reader.readString());
15820
+ msg.setGrantId(value);
15821
+ break;
15822
+ case 5:
15823
+ var value = /** @type {string} */ (reader.readString());
15824
+ msg.setCurrency(value);
15825
+ break;
15826
+ case 6:
15827
+ var value = /** @type {string} */ (reader.readString());
15828
+ msg.setAmount(value);
15829
+ break;
15830
+ default:
15831
+ reader.skipField();
15832
+ break;
15833
+ }
15834
+ }
15835
+ return msg;
15836
+ };
15837
+
15838
+
15839
+ /**
15840
+ * Serializes the message to binary data (in protobuf wire format).
15841
+ * @return {!Uint8Array}
15842
+ */
15843
+ proto.bonus.GrantDynamicUserBonusRequest.prototype.serializeBinary = function() {
15844
+ var writer = new jspb.BinaryWriter();
15845
+ proto.bonus.GrantDynamicUserBonusRequest.serializeBinaryToWriter(this, writer);
15846
+ return writer.getResultBuffer();
15847
+ };
15848
+
15849
+
15850
+ /**
15851
+ * Serializes the given message to binary data (in protobuf wire
15852
+ * format), writing to the given BinaryWriter.
15853
+ * @param {!proto.bonus.GrantDynamicUserBonusRequest} message
15854
+ * @param {!jspb.BinaryWriter} writer
15855
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15856
+ */
15857
+ proto.bonus.GrantDynamicUserBonusRequest.serializeBinaryToWriter = function(message, writer) {
15858
+ var f = undefined;
15859
+ f = message.getUserId();
15860
+ if (f !== 0) {
15861
+ writer.writeInt32(
15862
+ 1,
15863
+ f
15864
+ );
15865
+ }
15866
+ f = message.getBonusTemplateId();
15867
+ if (f !== 0) {
15868
+ writer.writeInt32(
15869
+ 2,
15870
+ f
15871
+ );
15872
+ }
15873
+ f = message.getGrantSource();
15874
+ if (f.length > 0) {
15875
+ writer.writeString(
15876
+ 3,
15877
+ f
15878
+ );
15879
+ }
15880
+ f = message.getGrantId();
15881
+ if (f.length > 0) {
15882
+ writer.writeString(
15883
+ 4,
15884
+ f
15885
+ );
15886
+ }
15887
+ f = message.getCurrency();
15888
+ if (f.length > 0) {
15889
+ writer.writeString(
15890
+ 5,
15891
+ f
15892
+ );
15893
+ }
15894
+ f = message.getAmount();
15895
+ if (f.length > 0) {
15896
+ writer.writeString(
15897
+ 6,
15898
+ f
15899
+ );
15900
+ }
15901
+ };
15902
+
15903
+
15904
+ /**
15905
+ * optional int32 user_id = 1;
15906
+ * @return {number}
15907
+ */
15908
+ proto.bonus.GrantDynamicUserBonusRequest.prototype.getUserId = function() {
15909
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
15910
+ };
15911
+
15912
+
15913
+ /**
15914
+ * @param {number} value
15915
+ * @return {!proto.bonus.GrantDynamicUserBonusRequest} returns this
15916
+ */
15917
+ proto.bonus.GrantDynamicUserBonusRequest.prototype.setUserId = function(value) {
15918
+ return jspb.Message.setProto3IntField(this, 1, value);
15919
+ };
15920
+
15921
+
15922
+ /**
15923
+ * optional int32 bonus_template_id = 2;
15924
+ * @return {number}
15925
+ */
15926
+ proto.bonus.GrantDynamicUserBonusRequest.prototype.getBonusTemplateId = function() {
15927
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
15928
+ };
15929
+
15930
+
15931
+ /**
15932
+ * @param {number} value
15933
+ * @return {!proto.bonus.GrantDynamicUserBonusRequest} returns this
15934
+ */
15935
+ proto.bonus.GrantDynamicUserBonusRequest.prototype.setBonusTemplateId = function(value) {
15936
+ return jspb.Message.setProto3IntField(this, 2, value);
15937
+ };
15938
+
15939
+
15940
+ /**
15941
+ * optional string grant_source = 3;
15942
+ * @return {string}
15943
+ */
15944
+ proto.bonus.GrantDynamicUserBonusRequest.prototype.getGrantSource = function() {
15945
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
15946
+ };
15947
+
15948
+
15949
+ /**
15950
+ * @param {string} value
15951
+ * @return {!proto.bonus.GrantDynamicUserBonusRequest} returns this
15952
+ */
15953
+ proto.bonus.GrantDynamicUserBonusRequest.prototype.setGrantSource = function(value) {
15954
+ return jspb.Message.setProto3StringField(this, 3, value);
15955
+ };
15956
+
15957
+
15958
+ /**
15959
+ * optional string grant_id = 4;
15960
+ * @return {string}
15961
+ */
15962
+ proto.bonus.GrantDynamicUserBonusRequest.prototype.getGrantId = function() {
15963
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
15964
+ };
15965
+
15966
+
15967
+ /**
15968
+ * @param {string} value
15969
+ * @return {!proto.bonus.GrantDynamicUserBonusRequest} returns this
15970
+ */
15971
+ proto.bonus.GrantDynamicUserBonusRequest.prototype.setGrantId = function(value) {
15972
+ return jspb.Message.setProto3StringField(this, 4, value);
15973
+ };
15974
+
15975
+
15976
+ /**
15977
+ * optional string currency = 5;
15978
+ * @return {string}
15979
+ */
15980
+ proto.bonus.GrantDynamicUserBonusRequest.prototype.getCurrency = function() {
15981
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
15982
+ };
15983
+
15984
+
15985
+ /**
15986
+ * @param {string} value
15987
+ * @return {!proto.bonus.GrantDynamicUserBonusRequest} returns this
15988
+ */
15989
+ proto.bonus.GrantDynamicUserBonusRequest.prototype.setCurrency = function(value) {
15990
+ return jspb.Message.setProto3StringField(this, 5, value);
15991
+ };
15992
+
15993
+
15994
+ /**
15995
+ * optional string amount = 6;
15996
+ * @return {string}
15997
+ */
15998
+ proto.bonus.GrantDynamicUserBonusRequest.prototype.getAmount = function() {
15999
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
16000
+ };
16001
+
16002
+
16003
+ /**
16004
+ * @param {string} value
16005
+ * @return {!proto.bonus.GrantDynamicUserBonusRequest} returns this
16006
+ */
16007
+ proto.bonus.GrantDynamicUserBonusRequest.prototype.setAmount = function(value) {
16008
+ return jspb.Message.setProto3StringField(this, 6, value);
16009
+ };
16010
+
16011
+
16012
+
16013
+
16014
+
16015
+ if (jspb.Message.GENERATE_TO_OBJECT) {
16016
+ /**
16017
+ * Creates an object representation of this proto.
16018
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
16019
+ * Optional fields that are not set will be set to undefined.
16020
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
16021
+ * For the list of reserved names please see:
16022
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
16023
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
16024
+ * JSPB instance for transitional soy proto support:
16025
+ * http://goto/soy-param-migration
16026
+ * @return {!Object}
16027
+ */
16028
+ proto.bonus.GrantDynamicUserBonusResponse.prototype.toObject = function(opt_includeInstance) {
16029
+ return proto.bonus.GrantDynamicUserBonusResponse.toObject(opt_includeInstance, this);
16030
+ };
16031
+
16032
+
16033
+ /**
16034
+ * Static version of the {@see toObject} method.
16035
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
16036
+ * the JSPB instance for transitional soy proto support:
16037
+ * http://goto/soy-param-migration
16038
+ * @param {!proto.bonus.GrantDynamicUserBonusResponse} msg The msg instance to transform.
16039
+ * @return {!Object}
16040
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16041
+ */
16042
+ proto.bonus.GrantDynamicUserBonusResponse.toObject = function(includeInstance, msg) {
16043
+ var f, obj = {
16044
+ userBonusId: jspb.Message.getFieldWithDefault(msg, 1, 0),
16045
+ status: jspb.Message.getFieldWithDefault(msg, 2, "")
16046
+ };
16047
+
16048
+ if (includeInstance) {
16049
+ obj.$jspbMessageInstance = msg;
16050
+ }
16051
+ return obj;
16052
+ };
16053
+ }
16054
+
16055
+
16056
+ /**
16057
+ * Deserializes binary data (in protobuf wire format).
16058
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
16059
+ * @return {!proto.bonus.GrantDynamicUserBonusResponse}
16060
+ */
16061
+ proto.bonus.GrantDynamicUserBonusResponse.deserializeBinary = function(bytes) {
16062
+ var reader = new jspb.BinaryReader(bytes);
16063
+ var msg = new proto.bonus.GrantDynamicUserBonusResponse;
16064
+ return proto.bonus.GrantDynamicUserBonusResponse.deserializeBinaryFromReader(msg, reader);
16065
+ };
16066
+
16067
+
16068
+ /**
16069
+ * Deserializes binary data (in protobuf wire format) from the
16070
+ * given reader into the given message object.
16071
+ * @param {!proto.bonus.GrantDynamicUserBonusResponse} msg The message object to deserialize into.
16072
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
16073
+ * @return {!proto.bonus.GrantDynamicUserBonusResponse}
16074
+ */
16075
+ proto.bonus.GrantDynamicUserBonusResponse.deserializeBinaryFromReader = function(msg, reader) {
16076
+ while (reader.nextField()) {
16077
+ if (reader.isEndGroup()) {
16078
+ break;
16079
+ }
16080
+ var field = reader.getFieldNumber();
16081
+ switch (field) {
16082
+ case 1:
16083
+ var value = /** @type {number} */ (reader.readInt32());
16084
+ msg.setUserBonusId(value);
16085
+ break;
16086
+ case 2:
16087
+ var value = /** @type {string} */ (reader.readString());
16088
+ msg.setStatus(value);
16089
+ break;
16090
+ default:
16091
+ reader.skipField();
16092
+ break;
16093
+ }
16094
+ }
16095
+ return msg;
16096
+ };
16097
+
16098
+
16099
+ /**
16100
+ * Serializes the message to binary data (in protobuf wire format).
16101
+ * @return {!Uint8Array}
16102
+ */
16103
+ proto.bonus.GrantDynamicUserBonusResponse.prototype.serializeBinary = function() {
16104
+ var writer = new jspb.BinaryWriter();
16105
+ proto.bonus.GrantDynamicUserBonusResponse.serializeBinaryToWriter(this, writer);
16106
+ return writer.getResultBuffer();
16107
+ };
16108
+
16109
+
16110
+ /**
16111
+ * Serializes the given message to binary data (in protobuf wire
16112
+ * format), writing to the given BinaryWriter.
16113
+ * @param {!proto.bonus.GrantDynamicUserBonusResponse} message
16114
+ * @param {!jspb.BinaryWriter} writer
16115
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16116
+ */
16117
+ proto.bonus.GrantDynamicUserBonusResponse.serializeBinaryToWriter = function(message, writer) {
16118
+ var f = undefined;
16119
+ f = message.getUserBonusId();
16120
+ if (f !== 0) {
16121
+ writer.writeInt32(
16122
+ 1,
16123
+ f
16124
+ );
16125
+ }
16126
+ f = message.getStatus();
16127
+ if (f.length > 0) {
16128
+ writer.writeString(
16129
+ 2,
16130
+ f
16131
+ );
16132
+ }
16133
+ };
16134
+
16135
+
16136
+ /**
16137
+ * optional int32 user_bonus_id = 1;
16138
+ * @return {number}
16139
+ */
16140
+ proto.bonus.GrantDynamicUserBonusResponse.prototype.getUserBonusId = function() {
16141
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
16142
+ };
16143
+
16144
+
16145
+ /**
16146
+ * @param {number} value
16147
+ * @return {!proto.bonus.GrantDynamicUserBonusResponse} returns this
16148
+ */
16149
+ proto.bonus.GrantDynamicUserBonusResponse.prototype.setUserBonusId = function(value) {
16150
+ return jspb.Message.setProto3IntField(this, 1, value);
16151
+ };
16152
+
16153
+
16154
+ /**
16155
+ * optional string status = 2;
16156
+ * @return {string}
16157
+ */
16158
+ proto.bonus.GrantDynamicUserBonusResponse.prototype.getStatus = function() {
16159
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
16160
+ };
16161
+
16162
+
16163
+ /**
16164
+ * @param {string} value
16165
+ * @return {!proto.bonus.GrantDynamicUserBonusResponse} returns this
16166
+ */
16167
+ proto.bonus.GrantDynamicUserBonusResponse.prototype.setStatus = function(value) {
16168
+ return jspb.Message.setProto3StringField(this, 2, value);
16169
+ };
16170
+
16171
+
16172
+
15707
16173
  /**
15708
16174
  * List of repeated fields within this message type.
15709
16175
  * @private {!Array<number>}
@@ -61,6 +61,7 @@ message CashbackItem {
61
61
  optional string type = 9;
62
62
  optional string checking_at = 10;
63
63
  repeated CashbackConfigItem config = 11;
64
+ optional int32 bonus_template_id = 12;
64
65
  }
65
66
  message CashbackRequest {
66
67
  oneof request {
@@ -77,6 +78,7 @@ message CashbackItemRequest {
77
78
  optional int32 level = 7;
78
79
  optional string type = 8;
79
80
  optional string checking_at = 9;
81
+ optional int32 bonus_template_id = 10;
80
82
  }
81
83
  message GetCashbackRequest {
82
84
  int32 id = 1;
@@ -143,6 +145,7 @@ message UserCashbackItem {
143
145
  optional float remaining_to_min = 17;
144
146
  optional int32 cashback_user_id = 18;
145
147
  repeated CashbackGamePreview games = 19;
148
+ optional int32 user_bonus_id = 20;
146
149
  }
147
150
  message CashbackUserRequest {
148
151
  int32 user_id = 1;
@@ -166,6 +169,7 @@ message ReactivateCashbackRequest {
166
169
  }
167
170
  message ClaimCashbackResponse {
168
171
  string status = 1;
172
+ optional int32 user_bonus_id = 2;
169
173
  }
170
174
  message UserCashbackResponse {
171
175
  UserCashbackItem data = 1;
@@ -2373,7 +2373,8 @@ proto.cashback.CashbackItem.toObject = function(includeInstance, msg) {
2373
2373
  type: jspb.Message.getFieldWithDefault(msg, 9, ""),
2374
2374
  checkingAt: jspb.Message.getFieldWithDefault(msg, 10, ""),
2375
2375
  configList: jspb.Message.toObjectList(msg.getConfigList(),
2376
- proto.cashback.CashbackConfigItem.toObject, includeInstance)
2376
+ proto.cashback.CashbackConfigItem.toObject, includeInstance),
2377
+ bonusTemplateId: jspb.Message.getFieldWithDefault(msg, 12, 0)
2377
2378
  };
2378
2379
 
2379
2380
  if (includeInstance) {
@@ -2451,6 +2452,10 @@ proto.cashback.CashbackItem.deserializeBinaryFromReader = function(msg, reader)
2451
2452
  reader.readMessage(value,proto.cashback.CashbackConfigItem.deserializeBinaryFromReader);
2452
2453
  msg.addConfig(value);
2453
2454
  break;
2455
+ case 12:
2456
+ var value = /** @type {number} */ (reader.readInt32());
2457
+ msg.setBonusTemplateId(value);
2458
+ break;
2454
2459
  default:
2455
2460
  reader.skipField();
2456
2461
  break;
@@ -2551,6 +2556,13 @@ proto.cashback.CashbackItem.serializeBinaryToWriter = function(message, writer)
2551
2556
  proto.cashback.CashbackConfigItem.serializeBinaryToWriter
2552
2557
  );
2553
2558
  }
2559
+ f = /** @type {number} */ (jspb.Message.getField(message, 12));
2560
+ if (f != null) {
2561
+ writer.writeInt32(
2562
+ 12,
2563
+ f
2564
+ );
2565
+ }
2554
2566
  };
2555
2567
 
2556
2568
 
@@ -2916,6 +2928,42 @@ proto.cashback.CashbackItem.prototype.clearConfigList = function() {
2916
2928
  };
2917
2929
 
2918
2930
 
2931
+ /**
2932
+ * optional int32 bonus_template_id = 12;
2933
+ * @return {number}
2934
+ */
2935
+ proto.cashback.CashbackItem.prototype.getBonusTemplateId = function() {
2936
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0));
2937
+ };
2938
+
2939
+
2940
+ /**
2941
+ * @param {number} value
2942
+ * @return {!proto.cashback.CashbackItem} returns this
2943
+ */
2944
+ proto.cashback.CashbackItem.prototype.setBonusTemplateId = function(value) {
2945
+ return jspb.Message.setField(this, 12, value);
2946
+ };
2947
+
2948
+
2949
+ /**
2950
+ * Clears the field making it undefined.
2951
+ * @return {!proto.cashback.CashbackItem} returns this
2952
+ */
2953
+ proto.cashback.CashbackItem.prototype.clearBonusTemplateId = function() {
2954
+ return jspb.Message.setField(this, 12, undefined);
2955
+ };
2956
+
2957
+
2958
+ /**
2959
+ * Returns whether this field is set.
2960
+ * @return {boolean}
2961
+ */
2962
+ proto.cashback.CashbackItem.prototype.hasBonusTemplateId = function() {
2963
+ return jspb.Message.getField(this, 12) != null;
2964
+ };
2965
+
2966
+
2919
2967
 
2920
2968
  /**
2921
2969
  * Oneof group definitions for this message. Each group defines the field
@@ -3183,7 +3231,8 @@ proto.cashback.CashbackItemRequest.toObject = function(includeInstance, msg) {
3183
3231
  image: jspb.Message.getFieldWithDefault(msg, 6, ""),
3184
3232
  level: jspb.Message.getFieldWithDefault(msg, 7, 0),
3185
3233
  type: jspb.Message.getFieldWithDefault(msg, 8, ""),
3186
- checkingAt: jspb.Message.getFieldWithDefault(msg, 9, "")
3234
+ checkingAt: jspb.Message.getFieldWithDefault(msg, 9, ""),
3235
+ bonusTemplateId: jspb.Message.getFieldWithDefault(msg, 10, 0)
3187
3236
  };
3188
3237
 
3189
3238
  if (includeInstance) {
@@ -3252,6 +3301,10 @@ proto.cashback.CashbackItemRequest.deserializeBinaryFromReader = function(msg, r
3252
3301
  var value = /** @type {string} */ (reader.readString());
3253
3302
  msg.setCheckingAt(value);
3254
3303
  break;
3304
+ case 10:
3305
+ var value = /** @type {number} */ (reader.readInt32());
3306
+ msg.setBonusTemplateId(value);
3307
+ break;
3255
3308
  default:
3256
3309
  reader.skipField();
3257
3310
  break;
@@ -3337,6 +3390,13 @@ proto.cashback.CashbackItemRequest.serializeBinaryToWriter = function(message, w
3337
3390
  f
3338
3391
  );
3339
3392
  }
3393
+ f = /** @type {number} */ (jspb.Message.getField(message, 10));
3394
+ if (f != null) {
3395
+ writer.writeInt32(
3396
+ 10,
3397
+ f
3398
+ );
3399
+ }
3340
3400
  };
3341
3401
 
3342
3402
 
@@ -3628,6 +3688,42 @@ proto.cashback.CashbackItemRequest.prototype.hasCheckingAt = function() {
3628
3688
  };
3629
3689
 
3630
3690
 
3691
+ /**
3692
+ * optional int32 bonus_template_id = 10;
3693
+ * @return {number}
3694
+ */
3695
+ proto.cashback.CashbackItemRequest.prototype.getBonusTemplateId = function() {
3696
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
3697
+ };
3698
+
3699
+
3700
+ /**
3701
+ * @param {number} value
3702
+ * @return {!proto.cashback.CashbackItemRequest} returns this
3703
+ */
3704
+ proto.cashback.CashbackItemRequest.prototype.setBonusTemplateId = function(value) {
3705
+ return jspb.Message.setField(this, 10, value);
3706
+ };
3707
+
3708
+
3709
+ /**
3710
+ * Clears the field making it undefined.
3711
+ * @return {!proto.cashback.CashbackItemRequest} returns this
3712
+ */
3713
+ proto.cashback.CashbackItemRequest.prototype.clearBonusTemplateId = function() {
3714
+ return jspb.Message.setField(this, 10, undefined);
3715
+ };
3716
+
3717
+
3718
+ /**
3719
+ * Returns whether this field is set.
3720
+ * @return {boolean}
3721
+ */
3722
+ proto.cashback.CashbackItemRequest.prototype.hasBonusTemplateId = function() {
3723
+ return jspb.Message.getField(this, 10) != null;
3724
+ };
3725
+
3726
+
3631
3727
 
3632
3728
 
3633
3729
 
@@ -5395,7 +5491,8 @@ proto.cashback.UserCashbackItem.toObject = function(includeInstance, msg) {
5395
5491
  remainingToMin: jspb.Message.getFloatingPointFieldWithDefault(msg, 17, 0.0),
5396
5492
  cashbackUserId: jspb.Message.getFieldWithDefault(msg, 18, 0),
5397
5493
  gamesList: jspb.Message.toObjectList(msg.getGamesList(),
5398
- proto.cashback.CashbackGamePreview.toObject, includeInstance)
5494
+ proto.cashback.CashbackGamePreview.toObject, includeInstance),
5495
+ userBonusId: jspb.Message.getFieldWithDefault(msg, 20, 0)
5399
5496
  };
5400
5497
 
5401
5498
  if (includeInstance) {
@@ -5510,6 +5607,10 @@ proto.cashback.UserCashbackItem.deserializeBinaryFromReader = function(msg, read
5510
5607
  reader.readMessage(value,proto.cashback.CashbackGamePreview.deserializeBinaryFromReader);
5511
5608
  msg.addGames(value);
5512
5609
  break;
5610
+ case 20:
5611
+ var value = /** @type {number} */ (reader.readInt32());
5612
+ msg.setUserBonusId(value);
5613
+ break;
5513
5614
  default:
5514
5615
  reader.skipField();
5515
5616
  break;
@@ -5674,6 +5775,13 @@ proto.cashback.UserCashbackItem.serializeBinaryToWriter = function(message, writ
5674
5775
  proto.cashback.CashbackGamePreview.serializeBinaryToWriter
5675
5776
  );
5676
5777
  }
5778
+ f = /** @type {number} */ (jspb.Message.getField(message, 20));
5779
+ if (f != null) {
5780
+ writer.writeInt32(
5781
+ 20,
5782
+ f
5783
+ );
5784
+ }
5677
5785
  };
5678
5786
 
5679
5787
 
@@ -6256,6 +6364,42 @@ proto.cashback.UserCashbackItem.prototype.clearGamesList = function() {
6256
6364
  };
6257
6365
 
6258
6366
 
6367
+ /**
6368
+ * optional int32 user_bonus_id = 20;
6369
+ * @return {number}
6370
+ */
6371
+ proto.cashback.UserCashbackItem.prototype.getUserBonusId = function() {
6372
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 20, 0));
6373
+ };
6374
+
6375
+
6376
+ /**
6377
+ * @param {number} value
6378
+ * @return {!proto.cashback.UserCashbackItem} returns this
6379
+ */
6380
+ proto.cashback.UserCashbackItem.prototype.setUserBonusId = function(value) {
6381
+ return jspb.Message.setField(this, 20, value);
6382
+ };
6383
+
6384
+
6385
+ /**
6386
+ * Clears the field making it undefined.
6387
+ * @return {!proto.cashback.UserCashbackItem} returns this
6388
+ */
6389
+ proto.cashback.UserCashbackItem.prototype.clearUserBonusId = function() {
6390
+ return jspb.Message.setField(this, 20, undefined);
6391
+ };
6392
+
6393
+
6394
+ /**
6395
+ * Returns whether this field is set.
6396
+ * @return {boolean}
6397
+ */
6398
+ proto.cashback.UserCashbackItem.prototype.hasUserBonusId = function() {
6399
+ return jspb.Message.getField(this, 20) != null;
6400
+ };
6401
+
6402
+
6259
6403
 
6260
6404
 
6261
6405
 
@@ -7186,7 +7330,8 @@ proto.cashback.ClaimCashbackResponse.prototype.toObject = function(opt_includeIn
7186
7330
  */
7187
7331
  proto.cashback.ClaimCashbackResponse.toObject = function(includeInstance, msg) {
7188
7332
  var f, obj = {
7189
- status: jspb.Message.getFieldWithDefault(msg, 1, "")
7333
+ status: jspb.Message.getFieldWithDefault(msg, 1, ""),
7334
+ userBonusId: jspb.Message.getFieldWithDefault(msg, 2, 0)
7190
7335
  };
7191
7336
 
7192
7337
  if (includeInstance) {
@@ -7227,6 +7372,10 @@ proto.cashback.ClaimCashbackResponse.deserializeBinaryFromReader = function(msg,
7227
7372
  var value = /** @type {string} */ (reader.readString());
7228
7373
  msg.setStatus(value);
7229
7374
  break;
7375
+ case 2:
7376
+ var value = /** @type {number} */ (reader.readInt32());
7377
+ msg.setUserBonusId(value);
7378
+ break;
7230
7379
  default:
7231
7380
  reader.skipField();
7232
7381
  break;
@@ -7263,6 +7412,13 @@ proto.cashback.ClaimCashbackResponse.serializeBinaryToWriter = function(message,
7263
7412
  f
7264
7413
  );
7265
7414
  }
7415
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
7416
+ if (f != null) {
7417
+ writer.writeInt32(
7418
+ 2,
7419
+ f
7420
+ );
7421
+ }
7266
7422
  };
7267
7423
 
7268
7424
 
@@ -7284,6 +7440,42 @@ proto.cashback.ClaimCashbackResponse.prototype.setStatus = function(value) {
7284
7440
  };
7285
7441
 
7286
7442
 
7443
+ /**
7444
+ * optional int32 user_bonus_id = 2;
7445
+ * @return {number}
7446
+ */
7447
+ proto.cashback.ClaimCashbackResponse.prototype.getUserBonusId = function() {
7448
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
7449
+ };
7450
+
7451
+
7452
+ /**
7453
+ * @param {number} value
7454
+ * @return {!proto.cashback.ClaimCashbackResponse} returns this
7455
+ */
7456
+ proto.cashback.ClaimCashbackResponse.prototype.setUserBonusId = function(value) {
7457
+ return jspb.Message.setField(this, 2, value);
7458
+ };
7459
+
7460
+
7461
+ /**
7462
+ * Clears the field making it undefined.
7463
+ * @return {!proto.cashback.ClaimCashbackResponse} returns this
7464
+ */
7465
+ proto.cashback.ClaimCashbackResponse.prototype.clearUserBonusId = function() {
7466
+ return jspb.Message.setField(this, 2, undefined);
7467
+ };
7468
+
7469
+
7470
+ /**
7471
+ * Returns whether this field is set.
7472
+ * @return {boolean}
7473
+ */
7474
+ proto.cashback.ClaimCashbackResponse.prototype.hasUserBonusId = function() {
7475
+ return jspb.Message.getField(this, 2) != null;
7476
+ };
7477
+
7478
+
7287
7479
 
7288
7480
 
7289
7481
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.468",
3
+ "version": "1.2.471",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -639,6 +639,7 @@ message UserPaymentMethodItem {
639
639
  optional string provider_payment_id = 17;
640
640
  optional string flow_type = 18;
641
641
  repeated CashierFieldItem cashier_fields = 19;
642
+ optional string provider_currency = 20;
642
643
  }
643
644
  message UserPaymentMethodsResponse {
644
645
  repeated UserPaymentMethodItem items = 1;
@@ -26938,7 +26938,8 @@ proto.payment.UserPaymentMethodItem.toObject = function(includeInstance, msg) {
26938
26938
  providerPaymentId: jspb.Message.getFieldWithDefault(msg, 17, ""),
26939
26939
  flowType: jspb.Message.getFieldWithDefault(msg, 18, ""),
26940
26940
  cashierFieldsList: jspb.Message.toObjectList(msg.getCashierFieldsList(),
26941
- proto.payment.CashierFieldItem.toObject, includeInstance)
26941
+ proto.payment.CashierFieldItem.toObject, includeInstance),
26942
+ providerCurrency: jspb.Message.getFieldWithDefault(msg, 20, "")
26942
26943
  };
26943
26944
 
26944
26945
  if (includeInstance) {
@@ -27052,6 +27053,10 @@ proto.payment.UserPaymentMethodItem.deserializeBinaryFromReader = function(msg,
27052
27053
  reader.readMessage(value,proto.payment.CashierFieldItem.deserializeBinaryFromReader);
27053
27054
  msg.addCashierFields(value);
27054
27055
  break;
27056
+ case 20:
27057
+ var value = /** @type {string} */ (reader.readString());
27058
+ msg.setProviderCurrency(value);
27059
+ break;
27055
27060
  default:
27056
27061
  reader.skipField();
27057
27062
  break;
@@ -27215,6 +27220,13 @@ proto.payment.UserPaymentMethodItem.serializeBinaryToWriter = function(message,
27215
27220
  proto.payment.CashierFieldItem.serializeBinaryToWriter
27216
27221
  );
27217
27222
  }
27223
+ f = /** @type {string} */ (jspb.Message.getField(message, 20));
27224
+ if (f != null) {
27225
+ writer.writeString(
27226
+ 20,
27227
+ f
27228
+ );
27229
+ }
27218
27230
  };
27219
27231
 
27220
27232
 
@@ -27778,6 +27790,42 @@ proto.payment.UserPaymentMethodItem.prototype.clearCashierFieldsList = function(
27778
27790
  };
27779
27791
 
27780
27792
 
27793
+ /**
27794
+ * optional string provider_currency = 20;
27795
+ * @return {string}
27796
+ */
27797
+ proto.payment.UserPaymentMethodItem.prototype.getProviderCurrency = function() {
27798
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, ""));
27799
+ };
27800
+
27801
+
27802
+ /**
27803
+ * @param {string} value
27804
+ * @return {!proto.payment.UserPaymentMethodItem} returns this
27805
+ */
27806
+ proto.payment.UserPaymentMethodItem.prototype.setProviderCurrency = function(value) {
27807
+ return jspb.Message.setField(this, 20, value);
27808
+ };
27809
+
27810
+
27811
+ /**
27812
+ * Clears the field making it undefined.
27813
+ * @return {!proto.payment.UserPaymentMethodItem} returns this
27814
+ */
27815
+ proto.payment.UserPaymentMethodItem.prototype.clearProviderCurrency = function() {
27816
+ return jspb.Message.setField(this, 20, undefined);
27817
+ };
27818
+
27819
+
27820
+ /**
27821
+ * Returns whether this field is set.
27822
+ * @return {boolean}
27823
+ */
27824
+ proto.payment.UserPaymentMethodItem.prototype.hasProviderCurrency = function() {
27825
+ return jspb.Message.getField(this, 20) != null;
27826
+ };
27827
+
27828
+
27781
27829
 
27782
27830
  /**
27783
27831
  * List of repeated fields within this message type.