protobuf-platform 1.2.511 → 1.2.513

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.
@@ -201,6 +201,10 @@ message UserCashbackInformationDefinitionItem {
201
201
  optional int32 claim_expiration_hours = 8;
202
202
  optional int32 is_active = 9;
203
203
  }
204
+ message CurrentCashback {
205
+ int32 level = 1;
206
+ string type = 2;
207
+ }
204
208
  message GetUserCashbackInformationResponse {
205
209
  string currency = 1;
206
210
  int32 currency_scale = 2;
@@ -214,5 +218,8 @@ message GetUserCashbackInformationResponse {
214
218
  optional string image_cdn = 10;
215
219
  optional bool is_claimable = 11;
216
220
  optional int32 claimable_cashback_user_id = 12;
221
+ string preview_amount_minor = 13;
222
+ int64 cashback_user_id = 14;
223
+ CurrentCashback current_cashback = 15;
217
224
  }
218
225
 
@@ -35,6 +35,7 @@ goog.exportSymbol('proto.cashback.CashbackStatusResponse', null, global);
35
35
  goog.exportSymbol('proto.cashback.CashbackUserRequest', null, global);
36
36
  goog.exportSymbol('proto.cashback.ClaimCashbackRequest', null, global);
37
37
  goog.exportSymbol('proto.cashback.ClaimCashbackResponse', null, global);
38
+ goog.exportSymbol('proto.cashback.CurrentCashback', null, global);
38
39
  goog.exportSymbol('proto.cashback.File', null, global);
39
40
  goog.exportSymbol('proto.cashback.GetCashbackRequest', null, global);
40
41
  goog.exportSymbol('proto.cashback.GetFileRequest', null, global);
@@ -639,6 +640,27 @@ if (goog.DEBUG && !COMPILED) {
639
640
  */
640
641
  proto.cashback.UserCashbackInformationDefinitionItem.displayName = 'proto.cashback.UserCashbackInformationDefinitionItem';
641
642
  }
643
+ /**
644
+ * Generated by JsPbCodeGenerator.
645
+ * @param {Array=} opt_data Optional initial data array, typically from a
646
+ * server response, or constructed directly in Javascript. The array is used
647
+ * in place and becomes part of the constructed object. It is not cloned.
648
+ * If no data is provided, the constructed object will be empty, but still
649
+ * valid.
650
+ * @extends {jspb.Message}
651
+ * @constructor
652
+ */
653
+ proto.cashback.CurrentCashback = function(opt_data) {
654
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
655
+ };
656
+ goog.inherits(proto.cashback.CurrentCashback, jspb.Message);
657
+ if (goog.DEBUG && !COMPILED) {
658
+ /**
659
+ * @public
660
+ * @override
661
+ */
662
+ proto.cashback.CurrentCashback.displayName = 'proto.cashback.CurrentCashback';
663
+ }
642
664
  /**
643
665
  * Generated by JsPbCodeGenerator.
644
666
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -8914,6 +8936,166 @@ proto.cashback.UserCashbackInformationDefinitionItem.prototype.hasIsActive = fun
8914
8936
 
8915
8937
 
8916
8938
 
8939
+
8940
+
8941
+ if (jspb.Message.GENERATE_TO_OBJECT) {
8942
+ /**
8943
+ * Creates an object representation of this proto.
8944
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
8945
+ * Optional fields that are not set will be set to undefined.
8946
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8947
+ * For the list of reserved names please see:
8948
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
8949
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
8950
+ * JSPB instance for transitional soy proto support:
8951
+ * http://goto/soy-param-migration
8952
+ * @return {!Object}
8953
+ */
8954
+ proto.cashback.CurrentCashback.prototype.toObject = function(opt_includeInstance) {
8955
+ return proto.cashback.CurrentCashback.toObject(opt_includeInstance, this);
8956
+ };
8957
+
8958
+
8959
+ /**
8960
+ * Static version of the {@see toObject} method.
8961
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
8962
+ * the JSPB instance for transitional soy proto support:
8963
+ * http://goto/soy-param-migration
8964
+ * @param {!proto.cashback.CurrentCashback} msg The msg instance to transform.
8965
+ * @return {!Object}
8966
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8967
+ */
8968
+ proto.cashback.CurrentCashback.toObject = function(includeInstance, msg) {
8969
+ var f, obj = {
8970
+ level: jspb.Message.getFieldWithDefault(msg, 1, 0),
8971
+ type: jspb.Message.getFieldWithDefault(msg, 2, "")
8972
+ };
8973
+
8974
+ if (includeInstance) {
8975
+ obj.$jspbMessageInstance = msg;
8976
+ }
8977
+ return obj;
8978
+ };
8979
+ }
8980
+
8981
+
8982
+ /**
8983
+ * Deserializes binary data (in protobuf wire format).
8984
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
8985
+ * @return {!proto.cashback.CurrentCashback}
8986
+ */
8987
+ proto.cashback.CurrentCashback.deserializeBinary = function(bytes) {
8988
+ var reader = new jspb.BinaryReader(bytes);
8989
+ var msg = new proto.cashback.CurrentCashback;
8990
+ return proto.cashback.CurrentCashback.deserializeBinaryFromReader(msg, reader);
8991
+ };
8992
+
8993
+
8994
+ /**
8995
+ * Deserializes binary data (in protobuf wire format) from the
8996
+ * given reader into the given message object.
8997
+ * @param {!proto.cashback.CurrentCashback} msg The message object to deserialize into.
8998
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8999
+ * @return {!proto.cashback.CurrentCashback}
9000
+ */
9001
+ proto.cashback.CurrentCashback.deserializeBinaryFromReader = function(msg, reader) {
9002
+ while (reader.nextField()) {
9003
+ if (reader.isEndGroup()) {
9004
+ break;
9005
+ }
9006
+ var field = reader.getFieldNumber();
9007
+ switch (field) {
9008
+ case 1:
9009
+ var value = /** @type {number} */ (reader.readInt32());
9010
+ msg.setLevel(value);
9011
+ break;
9012
+ case 2:
9013
+ var value = /** @type {string} */ (reader.readString());
9014
+ msg.setType(value);
9015
+ break;
9016
+ default:
9017
+ reader.skipField();
9018
+ break;
9019
+ }
9020
+ }
9021
+ return msg;
9022
+ };
9023
+
9024
+
9025
+ /**
9026
+ * Serializes the message to binary data (in protobuf wire format).
9027
+ * @return {!Uint8Array}
9028
+ */
9029
+ proto.cashback.CurrentCashback.prototype.serializeBinary = function() {
9030
+ var writer = new jspb.BinaryWriter();
9031
+ proto.cashback.CurrentCashback.serializeBinaryToWriter(this, writer);
9032
+ return writer.getResultBuffer();
9033
+ };
9034
+
9035
+
9036
+ /**
9037
+ * Serializes the given message to binary data (in protobuf wire
9038
+ * format), writing to the given BinaryWriter.
9039
+ * @param {!proto.cashback.CurrentCashback} message
9040
+ * @param {!jspb.BinaryWriter} writer
9041
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9042
+ */
9043
+ proto.cashback.CurrentCashback.serializeBinaryToWriter = function(message, writer) {
9044
+ var f = undefined;
9045
+ f = message.getLevel();
9046
+ if (f !== 0) {
9047
+ writer.writeInt32(
9048
+ 1,
9049
+ f
9050
+ );
9051
+ }
9052
+ f = message.getType();
9053
+ if (f.length > 0) {
9054
+ writer.writeString(
9055
+ 2,
9056
+ f
9057
+ );
9058
+ }
9059
+ };
9060
+
9061
+
9062
+ /**
9063
+ * optional int32 level = 1;
9064
+ * @return {number}
9065
+ */
9066
+ proto.cashback.CurrentCashback.prototype.getLevel = function() {
9067
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
9068
+ };
9069
+
9070
+
9071
+ /**
9072
+ * @param {number} value
9073
+ * @return {!proto.cashback.CurrentCashback} returns this
9074
+ */
9075
+ proto.cashback.CurrentCashback.prototype.setLevel = function(value) {
9076
+ return jspb.Message.setProto3IntField(this, 1, value);
9077
+ };
9078
+
9079
+
9080
+ /**
9081
+ * optional string type = 2;
9082
+ * @return {string}
9083
+ */
9084
+ proto.cashback.CurrentCashback.prototype.getType = function() {
9085
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
9086
+ };
9087
+
9088
+
9089
+ /**
9090
+ * @param {string} value
9091
+ * @return {!proto.cashback.CurrentCashback} returns this
9092
+ */
9093
+ proto.cashback.CurrentCashback.prototype.setType = function(value) {
9094
+ return jspb.Message.setProto3StringField(this, 2, value);
9095
+ };
9096
+
9097
+
9098
+
8917
9099
  /**
8918
9100
  * List of repeated fields within this message type.
8919
9101
  * @private {!Array<number>}
@@ -8964,7 +9146,10 @@ proto.cashback.GetUserCashbackInformationResponse.toObject = function(includeIns
8964
9146
  image: jspb.Message.getFieldWithDefault(msg, 9, ""),
8965
9147
  imageCdn: jspb.Message.getFieldWithDefault(msg, 10, ""),
8966
9148
  isClaimable: jspb.Message.getBooleanFieldWithDefault(msg, 11, false),
8967
- claimableCashbackUserId: jspb.Message.getFieldWithDefault(msg, 12, 0)
9149
+ claimableCashbackUserId: jspb.Message.getFieldWithDefault(msg, 12, 0),
9150
+ previewAmountMinor: jspb.Message.getFieldWithDefault(msg, 13, ""),
9151
+ cashbackUserId: jspb.Message.getFieldWithDefault(msg, 14, 0),
9152
+ currentCashback: (f = msg.getCurrentCashback()) && proto.cashback.CurrentCashback.toObject(includeInstance, f)
8968
9153
  };
8969
9154
 
8970
9155
  if (includeInstance) {
@@ -9050,6 +9235,19 @@ proto.cashback.GetUserCashbackInformationResponse.deserializeBinaryFromReader =
9050
9235
  var value = /** @type {number} */ (reader.readInt32());
9051
9236
  msg.setClaimableCashbackUserId(value);
9052
9237
  break;
9238
+ case 13:
9239
+ var value = /** @type {string} */ (reader.readString());
9240
+ msg.setPreviewAmountMinor(value);
9241
+ break;
9242
+ case 14:
9243
+ var value = /** @type {number} */ (reader.readInt64());
9244
+ msg.setCashbackUserId(value);
9245
+ break;
9246
+ case 15:
9247
+ var value = new proto.cashback.CurrentCashback;
9248
+ reader.readMessage(value,proto.cashback.CurrentCashback.deserializeBinaryFromReader);
9249
+ msg.setCurrentCashback(value);
9250
+ break;
9053
9251
  default:
9054
9252
  reader.skipField();
9055
9253
  break;
@@ -9164,6 +9362,28 @@ proto.cashback.GetUserCashbackInformationResponse.serializeBinaryToWriter = func
9164
9362
  f
9165
9363
  );
9166
9364
  }
9365
+ f = message.getPreviewAmountMinor();
9366
+ if (f.length > 0) {
9367
+ writer.writeString(
9368
+ 13,
9369
+ f
9370
+ );
9371
+ }
9372
+ f = message.getCashbackUserId();
9373
+ if (f !== 0) {
9374
+ writer.writeInt64(
9375
+ 14,
9376
+ f
9377
+ );
9378
+ }
9379
+ f = message.getCurrentCashback();
9380
+ if (f != null) {
9381
+ writer.writeMessage(
9382
+ 15,
9383
+ f,
9384
+ proto.cashback.CurrentCashback.serializeBinaryToWriter
9385
+ );
9386
+ }
9167
9387
  };
9168
9388
 
9169
9389
 
@@ -9547,4 +9767,77 @@ proto.cashback.GetUserCashbackInformationResponse.prototype.hasClaimableCashback
9547
9767
  };
9548
9768
 
9549
9769
 
9770
+ /**
9771
+ * optional string preview_amount_minor = 13;
9772
+ * @return {string}
9773
+ */
9774
+ proto.cashback.GetUserCashbackInformationResponse.prototype.getPreviewAmountMinor = function() {
9775
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
9776
+ };
9777
+
9778
+
9779
+ /**
9780
+ * @param {string} value
9781
+ * @return {!proto.cashback.GetUserCashbackInformationResponse} returns this
9782
+ */
9783
+ proto.cashback.GetUserCashbackInformationResponse.prototype.setPreviewAmountMinor = function(value) {
9784
+ return jspb.Message.setProto3StringField(this, 13, value);
9785
+ };
9786
+
9787
+
9788
+ /**
9789
+ * optional int64 cashback_user_id = 14;
9790
+ * @return {number}
9791
+ */
9792
+ proto.cashback.GetUserCashbackInformationResponse.prototype.getCashbackUserId = function() {
9793
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0));
9794
+ };
9795
+
9796
+
9797
+ /**
9798
+ * @param {number} value
9799
+ * @return {!proto.cashback.GetUserCashbackInformationResponse} returns this
9800
+ */
9801
+ proto.cashback.GetUserCashbackInformationResponse.prototype.setCashbackUserId = function(value) {
9802
+ return jspb.Message.setProto3IntField(this, 14, value);
9803
+ };
9804
+
9805
+
9806
+ /**
9807
+ * optional CurrentCashback current_cashback = 15;
9808
+ * @return {?proto.cashback.CurrentCashback}
9809
+ */
9810
+ proto.cashback.GetUserCashbackInformationResponse.prototype.getCurrentCashback = function() {
9811
+ return /** @type{?proto.cashback.CurrentCashback} */ (
9812
+ jspb.Message.getWrapperField(this, proto.cashback.CurrentCashback, 15));
9813
+ };
9814
+
9815
+
9816
+ /**
9817
+ * @param {?proto.cashback.CurrentCashback|undefined} value
9818
+ * @return {!proto.cashback.GetUserCashbackInformationResponse} returns this
9819
+ */
9820
+ proto.cashback.GetUserCashbackInformationResponse.prototype.setCurrentCashback = function(value) {
9821
+ return jspb.Message.setWrapperField(this, 15, value);
9822
+ };
9823
+
9824
+
9825
+ /**
9826
+ * Clears the message field making it undefined.
9827
+ * @return {!proto.cashback.GetUserCashbackInformationResponse} returns this
9828
+ */
9829
+ proto.cashback.GetUserCashbackInformationResponse.prototype.clearCurrentCashback = function() {
9830
+ return this.setCurrentCashback(undefined);
9831
+ };
9832
+
9833
+
9834
+ /**
9835
+ * Returns whether this field is set.
9836
+ * @return {boolean}
9837
+ */
9838
+ proto.cashback.GetUserCashbackInformationResponse.prototype.hasCurrentCashback = function() {
9839
+ return jspb.Message.getField(this, 15) != null;
9840
+ };
9841
+
9842
+
9550
9843
  goog.object.extend(exports, proto.cashback);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.511",
3
+ "version": "1.2.513",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {