protobuf-platform 1.2.668 → 1.2.669

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.668",
3
+ "version": "1.2.669",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -782,6 +782,13 @@ message UserWithdrawalItemsResponse {
782
782
  optional int32 total_pages = 2;
783
783
  optional int32 total_items = 3;
784
784
  }
785
+ // Posted deposit-method reward nested on the originating deposit history item.
786
+ // Omitted entirely when that deposit has no successfully credited reward.
787
+ message UserPaymentHistoryReward {
788
+ string percent = 1;
789
+ string amount = 2;
790
+ string currency = 3;
791
+ }
785
792
  message UserPaymentHistoryItem {
786
793
  string transaction_type = 1;
787
794
  int32 transaction_id = 2;
@@ -807,6 +814,7 @@ message UserPaymentHistoryItem {
807
814
  optional float provider_amount_attempt = 22;
808
815
  optional float provider_amount_paid = 23;
809
816
  optional string provider_currency = 24;
817
+ optional UserPaymentHistoryReward reward = 25;
810
818
  }
811
819
  message UserPaymentHistoryItemsResponse {
812
820
  repeated UserPaymentHistoryItem items = 1;
@@ -148,6 +148,7 @@ goog.exportSymbol('proto.payment.UserDepositItem', null, global);
148
148
  goog.exportSymbol('proto.payment.UserDepositItemsResponse', null, global);
149
149
  goog.exportSymbol('proto.payment.UserPaymentHistoryItem', null, global);
150
150
  goog.exportSymbol('proto.payment.UserPaymentHistoryItemsResponse', null, global);
151
+ goog.exportSymbol('proto.payment.UserPaymentHistoryReward', null, global);
151
152
  goog.exportSymbol('proto.payment.UserPaymentMethodItem', null, global);
152
153
  goog.exportSymbol('proto.payment.UserPaymentMethodsResponse', null, global);
153
154
  goog.exportSymbol('proto.payment.UserPaymentsInfoResponse', null, global);
@@ -1629,6 +1630,27 @@ if (goog.DEBUG && !COMPILED) {
1629
1630
  */
1630
1631
  proto.payment.UserWithdrawalItemsResponse.displayName = 'proto.payment.UserWithdrawalItemsResponse';
1631
1632
  }
1633
+ /**
1634
+ * Generated by JsPbCodeGenerator.
1635
+ * @param {Array=} opt_data Optional initial data array, typically from a
1636
+ * server response, or constructed directly in Javascript. The array is used
1637
+ * in place and becomes part of the constructed object. It is not cloned.
1638
+ * If no data is provided, the constructed object will be empty, but still
1639
+ * valid.
1640
+ * @extends {jspb.Message}
1641
+ * @constructor
1642
+ */
1643
+ proto.payment.UserPaymentHistoryReward = function(opt_data) {
1644
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1645
+ };
1646
+ goog.inherits(proto.payment.UserPaymentHistoryReward, jspb.Message);
1647
+ if (goog.DEBUG && !COMPILED) {
1648
+ /**
1649
+ * @public
1650
+ * @override
1651
+ */
1652
+ proto.payment.UserPaymentHistoryReward.displayName = 'proto.payment.UserPaymentHistoryReward';
1653
+ }
1632
1654
  /**
1633
1655
  * Generated by JsPbCodeGenerator.
1634
1656
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -33991,6 +34013,196 @@ proto.payment.UserWithdrawalItemsResponse.prototype.hasTotalItems = function() {
33991
34013
 
33992
34014
 
33993
34015
 
34016
+ if (jspb.Message.GENERATE_TO_OBJECT) {
34017
+ /**
34018
+ * Creates an object representation of this proto.
34019
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
34020
+ * Optional fields that are not set will be set to undefined.
34021
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
34022
+ * For the list of reserved names please see:
34023
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
34024
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
34025
+ * JSPB instance for transitional soy proto support:
34026
+ * http://goto/soy-param-migration
34027
+ * @return {!Object}
34028
+ */
34029
+ proto.payment.UserPaymentHistoryReward.prototype.toObject = function(opt_includeInstance) {
34030
+ return proto.payment.UserPaymentHistoryReward.toObject(opt_includeInstance, this);
34031
+ };
34032
+
34033
+
34034
+ /**
34035
+ * Static version of the {@see toObject} method.
34036
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
34037
+ * the JSPB instance for transitional soy proto support:
34038
+ * http://goto/soy-param-migration
34039
+ * @param {!proto.payment.UserPaymentHistoryReward} msg The msg instance to transform.
34040
+ * @return {!Object}
34041
+ * @suppress {unusedLocalVariables} f is only used for nested messages
34042
+ */
34043
+ proto.payment.UserPaymentHistoryReward.toObject = function(includeInstance, msg) {
34044
+ var f, obj = {
34045
+ percent: jspb.Message.getFieldWithDefault(msg, 1, ""),
34046
+ amount: jspb.Message.getFieldWithDefault(msg, 2, ""),
34047
+ currency: jspb.Message.getFieldWithDefault(msg, 3, "")
34048
+ };
34049
+
34050
+ if (includeInstance) {
34051
+ obj.$jspbMessageInstance = msg;
34052
+ }
34053
+ return obj;
34054
+ };
34055
+ }
34056
+
34057
+
34058
+ /**
34059
+ * Deserializes binary data (in protobuf wire format).
34060
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
34061
+ * @return {!proto.payment.UserPaymentHistoryReward}
34062
+ */
34063
+ proto.payment.UserPaymentHistoryReward.deserializeBinary = function(bytes) {
34064
+ var reader = new jspb.BinaryReader(bytes);
34065
+ var msg = new proto.payment.UserPaymentHistoryReward;
34066
+ return proto.payment.UserPaymentHistoryReward.deserializeBinaryFromReader(msg, reader);
34067
+ };
34068
+
34069
+
34070
+ /**
34071
+ * Deserializes binary data (in protobuf wire format) from the
34072
+ * given reader into the given message object.
34073
+ * @param {!proto.payment.UserPaymentHistoryReward} msg The message object to deserialize into.
34074
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
34075
+ * @return {!proto.payment.UserPaymentHistoryReward}
34076
+ */
34077
+ proto.payment.UserPaymentHistoryReward.deserializeBinaryFromReader = function(msg, reader) {
34078
+ while (reader.nextField()) {
34079
+ if (reader.isEndGroup()) {
34080
+ break;
34081
+ }
34082
+ var field = reader.getFieldNumber();
34083
+ switch (field) {
34084
+ case 1:
34085
+ var value = /** @type {string} */ (reader.readString());
34086
+ msg.setPercent(value);
34087
+ break;
34088
+ case 2:
34089
+ var value = /** @type {string} */ (reader.readString());
34090
+ msg.setAmount(value);
34091
+ break;
34092
+ case 3:
34093
+ var value = /** @type {string} */ (reader.readString());
34094
+ msg.setCurrency(value);
34095
+ break;
34096
+ default:
34097
+ reader.skipField();
34098
+ break;
34099
+ }
34100
+ }
34101
+ return msg;
34102
+ };
34103
+
34104
+
34105
+ /**
34106
+ * Serializes the message to binary data (in protobuf wire format).
34107
+ * @return {!Uint8Array}
34108
+ */
34109
+ proto.payment.UserPaymentHistoryReward.prototype.serializeBinary = function() {
34110
+ var writer = new jspb.BinaryWriter();
34111
+ proto.payment.UserPaymentHistoryReward.serializeBinaryToWriter(this, writer);
34112
+ return writer.getResultBuffer();
34113
+ };
34114
+
34115
+
34116
+ /**
34117
+ * Serializes the given message to binary data (in protobuf wire
34118
+ * format), writing to the given BinaryWriter.
34119
+ * @param {!proto.payment.UserPaymentHistoryReward} message
34120
+ * @param {!jspb.BinaryWriter} writer
34121
+ * @suppress {unusedLocalVariables} f is only used for nested messages
34122
+ */
34123
+ proto.payment.UserPaymentHistoryReward.serializeBinaryToWriter = function(message, writer) {
34124
+ var f = undefined;
34125
+ f = message.getPercent();
34126
+ if (f.length > 0) {
34127
+ writer.writeString(
34128
+ 1,
34129
+ f
34130
+ );
34131
+ }
34132
+ f = message.getAmount();
34133
+ if (f.length > 0) {
34134
+ writer.writeString(
34135
+ 2,
34136
+ f
34137
+ );
34138
+ }
34139
+ f = message.getCurrency();
34140
+ if (f.length > 0) {
34141
+ writer.writeString(
34142
+ 3,
34143
+ f
34144
+ );
34145
+ }
34146
+ };
34147
+
34148
+
34149
+ /**
34150
+ * optional string percent = 1;
34151
+ * @return {string}
34152
+ */
34153
+ proto.payment.UserPaymentHistoryReward.prototype.getPercent = function() {
34154
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
34155
+ };
34156
+
34157
+
34158
+ /**
34159
+ * @param {string} value
34160
+ * @return {!proto.payment.UserPaymentHistoryReward} returns this
34161
+ */
34162
+ proto.payment.UserPaymentHistoryReward.prototype.setPercent = function(value) {
34163
+ return jspb.Message.setProto3StringField(this, 1, value);
34164
+ };
34165
+
34166
+
34167
+ /**
34168
+ * optional string amount = 2;
34169
+ * @return {string}
34170
+ */
34171
+ proto.payment.UserPaymentHistoryReward.prototype.getAmount = function() {
34172
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
34173
+ };
34174
+
34175
+
34176
+ /**
34177
+ * @param {string} value
34178
+ * @return {!proto.payment.UserPaymentHistoryReward} returns this
34179
+ */
34180
+ proto.payment.UserPaymentHistoryReward.prototype.setAmount = function(value) {
34181
+ return jspb.Message.setProto3StringField(this, 2, value);
34182
+ };
34183
+
34184
+
34185
+ /**
34186
+ * optional string currency = 3;
34187
+ * @return {string}
34188
+ */
34189
+ proto.payment.UserPaymentHistoryReward.prototype.getCurrency = function() {
34190
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
34191
+ };
34192
+
34193
+
34194
+ /**
34195
+ * @param {string} value
34196
+ * @return {!proto.payment.UserPaymentHistoryReward} returns this
34197
+ */
34198
+ proto.payment.UserPaymentHistoryReward.prototype.setCurrency = function(value) {
34199
+ return jspb.Message.setProto3StringField(this, 3, value);
34200
+ };
34201
+
34202
+
34203
+
34204
+
34205
+
33994
34206
  if (jspb.Message.GENERATE_TO_OBJECT) {
33995
34207
  /**
33996
34208
  * Creates an object representation of this proto.
@@ -34043,7 +34255,8 @@ proto.payment.UserPaymentHistoryItem.toObject = function(includeInstance, msg) {
34043
34255
  creditedCurrency: jspb.Message.getFieldWithDefault(msg, 21, ""),
34044
34256
  providerAmountAttempt: jspb.Message.getFloatingPointFieldWithDefault(msg, 22, 0.0),
34045
34257
  providerAmountPaid: jspb.Message.getFloatingPointFieldWithDefault(msg, 23, 0.0),
34046
- providerCurrency: jspb.Message.getFieldWithDefault(msg, 24, "")
34258
+ providerCurrency: jspb.Message.getFieldWithDefault(msg, 24, ""),
34259
+ reward: (f = msg.getReward()) && proto.payment.UserPaymentHistoryReward.toObject(includeInstance, f)
34047
34260
  };
34048
34261
 
34049
34262
  if (includeInstance) {
@@ -34176,6 +34389,11 @@ proto.payment.UserPaymentHistoryItem.deserializeBinaryFromReader = function(msg,
34176
34389
  var value = /** @type {string} */ (reader.readString());
34177
34390
  msg.setProviderCurrency(value);
34178
34391
  break;
34392
+ case 25:
34393
+ var value = new proto.payment.UserPaymentHistoryReward;
34394
+ reader.readMessage(value,proto.payment.UserPaymentHistoryReward.deserializeBinaryFromReader);
34395
+ msg.setReward(value);
34396
+ break;
34179
34397
  default:
34180
34398
  reader.skipField();
34181
34399
  break;
@@ -34373,6 +34591,14 @@ proto.payment.UserPaymentHistoryItem.serializeBinaryToWriter = function(message,
34373
34591
  f
34374
34592
  );
34375
34593
  }
34594
+ f = message.getReward();
34595
+ if (f != null) {
34596
+ writer.writeMessage(
34597
+ 25,
34598
+ f,
34599
+ proto.payment.UserPaymentHistoryReward.serializeBinaryToWriter
34600
+ );
34601
+ }
34376
34602
  };
34377
34603
 
34378
34604
 
@@ -35168,6 +35394,43 @@ proto.payment.UserPaymentHistoryItem.prototype.hasProviderCurrency = function()
35168
35394
  };
35169
35395
 
35170
35396
 
35397
+ /**
35398
+ * optional UserPaymentHistoryReward reward = 25;
35399
+ * @return {?proto.payment.UserPaymentHistoryReward}
35400
+ */
35401
+ proto.payment.UserPaymentHistoryItem.prototype.getReward = function() {
35402
+ return /** @type{?proto.payment.UserPaymentHistoryReward} */ (
35403
+ jspb.Message.getWrapperField(this, proto.payment.UserPaymentHistoryReward, 25));
35404
+ };
35405
+
35406
+
35407
+ /**
35408
+ * @param {?proto.payment.UserPaymentHistoryReward|undefined} value
35409
+ * @return {!proto.payment.UserPaymentHistoryItem} returns this
35410
+ */
35411
+ proto.payment.UserPaymentHistoryItem.prototype.setReward = function(value) {
35412
+ return jspb.Message.setWrapperField(this, 25, value);
35413
+ };
35414
+
35415
+
35416
+ /**
35417
+ * Clears the message field making it undefined.
35418
+ * @return {!proto.payment.UserPaymentHistoryItem} returns this
35419
+ */
35420
+ proto.payment.UserPaymentHistoryItem.prototype.clearReward = function() {
35421
+ return this.setReward(undefined);
35422
+ };
35423
+
35424
+
35425
+ /**
35426
+ * Returns whether this field is set.
35427
+ * @return {boolean}
35428
+ */
35429
+ proto.payment.UserPaymentHistoryItem.prototype.hasReward = function() {
35430
+ return jspb.Message.getField(this, 25) != null;
35431
+ };
35432
+
35433
+
35171
35434
 
35172
35435
  /**
35173
35436
  * List of repeated fields within this message type.