protobuf-platform 1.2.668 → 1.2.670

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/AGENTS.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Read [Project Rules](../../platform-rules/PROJECT_RULES.md) for the canonical shared execution policy; this file specializes the protobuf commands.
4
4
 
5
- - Repository directory: `protobuf`; npm package: `protobuf-platform`. Work locally on `main`, never switch to local `staging`. The Project Rules' final push command targets `origin HEAD:staging` without changing this local branch; do not execute it without explicit push authorization. This is a contract package, not a running service; it owns no database, queues or migrations.
5
+ - Repository directory: `protobuf`; npm package: `protobuf-platform`. Work locally on `main`, never switch to local `staging`, and never apply the service-staging push flow to this repository. Protobuf `main` mutation, publication and push follow the dedicated lifecycle in Project Rules. This is a contract package, not a running service; it owns no database, queues or migrations.
6
6
  - Inspect this repository first for every business master task. Reuse existing contracts when sufficient and record `PROTOBUF_CHANGE_NOT_REQUIRED` when no change is needed.
7
7
  - A new/material contract decision or breaking change needs explicit approval of that exact change; additive approval never authorizes breaking compatibility. If approval is missing, report `PROTOBUF_CHANGE_APPROVAL_REQUIRED` with the exact contract, insufficiency, compatibility and affected repositories. Contract work precedes dependent implementation.
8
8
  - Sources are domain `*.proto` files; `update_protobuf.sh` writes colocated `*_pb.js` and `*_grpc_pb.js`; `index.js` exports domain bindings.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.668",
3
+ "version": "1.2.670",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -614,6 +614,8 @@ message AttemptWithdrawalRequest {
614
614
  optional string request_currency = 39;
615
615
  optional string antifraud_session = 40;
616
616
  optional string user_agent = 41;
617
+ // Card security code for the withdrawal attempt. Consumers must keep it transient.
618
+ optional string cvv = 42;
617
619
  }
618
620
  message GetWithdrawalRequest {
619
621
  int32 id = 1;
@@ -782,6 +784,13 @@ message UserWithdrawalItemsResponse {
782
784
  optional int32 total_pages = 2;
783
785
  optional int32 total_items = 3;
784
786
  }
787
+ // Posted deposit-method reward nested on the originating deposit history item.
788
+ // Omitted entirely when that deposit has no successfully credited reward.
789
+ message UserPaymentHistoryReward {
790
+ string percent = 1;
791
+ string amount = 2;
792
+ string currency = 3;
793
+ }
785
794
  message UserPaymentHistoryItem {
786
795
  string transaction_type = 1;
787
796
  int32 transaction_id = 2;
@@ -807,6 +816,7 @@ message UserPaymentHistoryItem {
807
816
  optional float provider_amount_attempt = 22;
808
817
  optional float provider_amount_paid = 23;
809
818
  optional string provider_currency = 24;
819
+ optional UserPaymentHistoryReward reward = 25;
810
820
  }
811
821
  message UserPaymentHistoryItemsResponse {
812
822
  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
@@ -24769,7 +24791,8 @@ proto.payment.AttemptWithdrawalRequest.toObject = function(includeInstance, msg)
24769
24791
  cryptoWallet: jspb.Message.getFieldWithDefault(msg, 38, ""),
24770
24792
  requestCurrency: jspb.Message.getFieldWithDefault(msg, 39, ""),
24771
24793
  antifraudSession: jspb.Message.getFieldWithDefault(msg, 40, ""),
24772
- userAgent: jspb.Message.getFieldWithDefault(msg, 41, "")
24794
+ userAgent: jspb.Message.getFieldWithDefault(msg, 41, ""),
24795
+ cvv: jspb.Message.getFieldWithDefault(msg, 42, "")
24773
24796
  };
24774
24797
 
24775
24798
  if (includeInstance) {
@@ -24970,6 +24993,10 @@ proto.payment.AttemptWithdrawalRequest.deserializeBinaryFromReader = function(ms
24970
24993
  var value = /** @type {string} */ (reader.readString());
24971
24994
  msg.setUserAgent(value);
24972
24995
  break;
24996
+ case 42:
24997
+ var value = /** @type {string} */ (reader.readString());
24998
+ msg.setCvv(value);
24999
+ break;
24973
25000
  default:
24974
25001
  reader.skipField();
24975
25002
  break;
@@ -25286,6 +25313,13 @@ proto.payment.AttemptWithdrawalRequest.serializeBinaryToWriter = function(messag
25286
25313
  f
25287
25314
  );
25288
25315
  }
25316
+ f = /** @type {string} */ (jspb.Message.getField(message, 42));
25317
+ if (f != null) {
25318
+ writer.writeString(
25319
+ 42,
25320
+ f
25321
+ );
25322
+ }
25289
25323
  };
25290
25324
 
25291
25325
 
@@ -26711,6 +26745,42 @@ proto.payment.AttemptWithdrawalRequest.prototype.hasUserAgent = function() {
26711
26745
  };
26712
26746
 
26713
26747
 
26748
+ /**
26749
+ * optional string cvv = 42;
26750
+ * @return {string}
26751
+ */
26752
+ proto.payment.AttemptWithdrawalRequest.prototype.getCvv = function() {
26753
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 42, ""));
26754
+ };
26755
+
26756
+
26757
+ /**
26758
+ * @param {string} value
26759
+ * @return {!proto.payment.AttemptWithdrawalRequest} returns this
26760
+ */
26761
+ proto.payment.AttemptWithdrawalRequest.prototype.setCvv = function(value) {
26762
+ return jspb.Message.setField(this, 42, value);
26763
+ };
26764
+
26765
+
26766
+ /**
26767
+ * Clears the field making it undefined.
26768
+ * @return {!proto.payment.AttemptWithdrawalRequest} returns this
26769
+ */
26770
+ proto.payment.AttemptWithdrawalRequest.prototype.clearCvv = function() {
26771
+ return jspb.Message.setField(this, 42, undefined);
26772
+ };
26773
+
26774
+
26775
+ /**
26776
+ * Returns whether this field is set.
26777
+ * @return {boolean}
26778
+ */
26779
+ proto.payment.AttemptWithdrawalRequest.prototype.hasCvv = function() {
26780
+ return jspb.Message.getField(this, 42) != null;
26781
+ };
26782
+
26783
+
26714
26784
 
26715
26785
 
26716
26786
 
@@ -33991,6 +34061,196 @@ proto.payment.UserWithdrawalItemsResponse.prototype.hasTotalItems = function() {
33991
34061
 
33992
34062
 
33993
34063
 
34064
+ if (jspb.Message.GENERATE_TO_OBJECT) {
34065
+ /**
34066
+ * Creates an object representation of this proto.
34067
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
34068
+ * Optional fields that are not set will be set to undefined.
34069
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
34070
+ * For the list of reserved names please see:
34071
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
34072
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
34073
+ * JSPB instance for transitional soy proto support:
34074
+ * http://goto/soy-param-migration
34075
+ * @return {!Object}
34076
+ */
34077
+ proto.payment.UserPaymentHistoryReward.prototype.toObject = function(opt_includeInstance) {
34078
+ return proto.payment.UserPaymentHistoryReward.toObject(opt_includeInstance, this);
34079
+ };
34080
+
34081
+
34082
+ /**
34083
+ * Static version of the {@see toObject} method.
34084
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
34085
+ * the JSPB instance for transitional soy proto support:
34086
+ * http://goto/soy-param-migration
34087
+ * @param {!proto.payment.UserPaymentHistoryReward} msg The msg instance to transform.
34088
+ * @return {!Object}
34089
+ * @suppress {unusedLocalVariables} f is only used for nested messages
34090
+ */
34091
+ proto.payment.UserPaymentHistoryReward.toObject = function(includeInstance, msg) {
34092
+ var f, obj = {
34093
+ percent: jspb.Message.getFieldWithDefault(msg, 1, ""),
34094
+ amount: jspb.Message.getFieldWithDefault(msg, 2, ""),
34095
+ currency: jspb.Message.getFieldWithDefault(msg, 3, "")
34096
+ };
34097
+
34098
+ if (includeInstance) {
34099
+ obj.$jspbMessageInstance = msg;
34100
+ }
34101
+ return obj;
34102
+ };
34103
+ }
34104
+
34105
+
34106
+ /**
34107
+ * Deserializes binary data (in protobuf wire format).
34108
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
34109
+ * @return {!proto.payment.UserPaymentHistoryReward}
34110
+ */
34111
+ proto.payment.UserPaymentHistoryReward.deserializeBinary = function(bytes) {
34112
+ var reader = new jspb.BinaryReader(bytes);
34113
+ var msg = new proto.payment.UserPaymentHistoryReward;
34114
+ return proto.payment.UserPaymentHistoryReward.deserializeBinaryFromReader(msg, reader);
34115
+ };
34116
+
34117
+
34118
+ /**
34119
+ * Deserializes binary data (in protobuf wire format) from the
34120
+ * given reader into the given message object.
34121
+ * @param {!proto.payment.UserPaymentHistoryReward} msg The message object to deserialize into.
34122
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
34123
+ * @return {!proto.payment.UserPaymentHistoryReward}
34124
+ */
34125
+ proto.payment.UserPaymentHistoryReward.deserializeBinaryFromReader = function(msg, reader) {
34126
+ while (reader.nextField()) {
34127
+ if (reader.isEndGroup()) {
34128
+ break;
34129
+ }
34130
+ var field = reader.getFieldNumber();
34131
+ switch (field) {
34132
+ case 1:
34133
+ var value = /** @type {string} */ (reader.readString());
34134
+ msg.setPercent(value);
34135
+ break;
34136
+ case 2:
34137
+ var value = /** @type {string} */ (reader.readString());
34138
+ msg.setAmount(value);
34139
+ break;
34140
+ case 3:
34141
+ var value = /** @type {string} */ (reader.readString());
34142
+ msg.setCurrency(value);
34143
+ break;
34144
+ default:
34145
+ reader.skipField();
34146
+ break;
34147
+ }
34148
+ }
34149
+ return msg;
34150
+ };
34151
+
34152
+
34153
+ /**
34154
+ * Serializes the message to binary data (in protobuf wire format).
34155
+ * @return {!Uint8Array}
34156
+ */
34157
+ proto.payment.UserPaymentHistoryReward.prototype.serializeBinary = function() {
34158
+ var writer = new jspb.BinaryWriter();
34159
+ proto.payment.UserPaymentHistoryReward.serializeBinaryToWriter(this, writer);
34160
+ return writer.getResultBuffer();
34161
+ };
34162
+
34163
+
34164
+ /**
34165
+ * Serializes the given message to binary data (in protobuf wire
34166
+ * format), writing to the given BinaryWriter.
34167
+ * @param {!proto.payment.UserPaymentHistoryReward} message
34168
+ * @param {!jspb.BinaryWriter} writer
34169
+ * @suppress {unusedLocalVariables} f is only used for nested messages
34170
+ */
34171
+ proto.payment.UserPaymentHistoryReward.serializeBinaryToWriter = function(message, writer) {
34172
+ var f = undefined;
34173
+ f = message.getPercent();
34174
+ if (f.length > 0) {
34175
+ writer.writeString(
34176
+ 1,
34177
+ f
34178
+ );
34179
+ }
34180
+ f = message.getAmount();
34181
+ if (f.length > 0) {
34182
+ writer.writeString(
34183
+ 2,
34184
+ f
34185
+ );
34186
+ }
34187
+ f = message.getCurrency();
34188
+ if (f.length > 0) {
34189
+ writer.writeString(
34190
+ 3,
34191
+ f
34192
+ );
34193
+ }
34194
+ };
34195
+
34196
+
34197
+ /**
34198
+ * optional string percent = 1;
34199
+ * @return {string}
34200
+ */
34201
+ proto.payment.UserPaymentHistoryReward.prototype.getPercent = function() {
34202
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
34203
+ };
34204
+
34205
+
34206
+ /**
34207
+ * @param {string} value
34208
+ * @return {!proto.payment.UserPaymentHistoryReward} returns this
34209
+ */
34210
+ proto.payment.UserPaymentHistoryReward.prototype.setPercent = function(value) {
34211
+ return jspb.Message.setProto3StringField(this, 1, value);
34212
+ };
34213
+
34214
+
34215
+ /**
34216
+ * optional string amount = 2;
34217
+ * @return {string}
34218
+ */
34219
+ proto.payment.UserPaymentHistoryReward.prototype.getAmount = function() {
34220
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
34221
+ };
34222
+
34223
+
34224
+ /**
34225
+ * @param {string} value
34226
+ * @return {!proto.payment.UserPaymentHistoryReward} returns this
34227
+ */
34228
+ proto.payment.UserPaymentHistoryReward.prototype.setAmount = function(value) {
34229
+ return jspb.Message.setProto3StringField(this, 2, value);
34230
+ };
34231
+
34232
+
34233
+ /**
34234
+ * optional string currency = 3;
34235
+ * @return {string}
34236
+ */
34237
+ proto.payment.UserPaymentHistoryReward.prototype.getCurrency = function() {
34238
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
34239
+ };
34240
+
34241
+
34242
+ /**
34243
+ * @param {string} value
34244
+ * @return {!proto.payment.UserPaymentHistoryReward} returns this
34245
+ */
34246
+ proto.payment.UserPaymentHistoryReward.prototype.setCurrency = function(value) {
34247
+ return jspb.Message.setProto3StringField(this, 3, value);
34248
+ };
34249
+
34250
+
34251
+
34252
+
34253
+
33994
34254
  if (jspb.Message.GENERATE_TO_OBJECT) {
33995
34255
  /**
33996
34256
  * Creates an object representation of this proto.
@@ -34043,7 +34303,8 @@ proto.payment.UserPaymentHistoryItem.toObject = function(includeInstance, msg) {
34043
34303
  creditedCurrency: jspb.Message.getFieldWithDefault(msg, 21, ""),
34044
34304
  providerAmountAttempt: jspb.Message.getFloatingPointFieldWithDefault(msg, 22, 0.0),
34045
34305
  providerAmountPaid: jspb.Message.getFloatingPointFieldWithDefault(msg, 23, 0.0),
34046
- providerCurrency: jspb.Message.getFieldWithDefault(msg, 24, "")
34306
+ providerCurrency: jspb.Message.getFieldWithDefault(msg, 24, ""),
34307
+ reward: (f = msg.getReward()) && proto.payment.UserPaymentHistoryReward.toObject(includeInstance, f)
34047
34308
  };
34048
34309
 
34049
34310
  if (includeInstance) {
@@ -34176,6 +34437,11 @@ proto.payment.UserPaymentHistoryItem.deserializeBinaryFromReader = function(msg,
34176
34437
  var value = /** @type {string} */ (reader.readString());
34177
34438
  msg.setProviderCurrency(value);
34178
34439
  break;
34440
+ case 25:
34441
+ var value = new proto.payment.UserPaymentHistoryReward;
34442
+ reader.readMessage(value,proto.payment.UserPaymentHistoryReward.deserializeBinaryFromReader);
34443
+ msg.setReward(value);
34444
+ break;
34179
34445
  default:
34180
34446
  reader.skipField();
34181
34447
  break;
@@ -34373,6 +34639,14 @@ proto.payment.UserPaymentHistoryItem.serializeBinaryToWriter = function(message,
34373
34639
  f
34374
34640
  );
34375
34641
  }
34642
+ f = message.getReward();
34643
+ if (f != null) {
34644
+ writer.writeMessage(
34645
+ 25,
34646
+ f,
34647
+ proto.payment.UserPaymentHistoryReward.serializeBinaryToWriter
34648
+ );
34649
+ }
34376
34650
  };
34377
34651
 
34378
34652
 
@@ -35168,6 +35442,43 @@ proto.payment.UserPaymentHistoryItem.prototype.hasProviderCurrency = function()
35168
35442
  };
35169
35443
 
35170
35444
 
35445
+ /**
35446
+ * optional UserPaymentHistoryReward reward = 25;
35447
+ * @return {?proto.payment.UserPaymentHistoryReward}
35448
+ */
35449
+ proto.payment.UserPaymentHistoryItem.prototype.getReward = function() {
35450
+ return /** @type{?proto.payment.UserPaymentHistoryReward} */ (
35451
+ jspb.Message.getWrapperField(this, proto.payment.UserPaymentHistoryReward, 25));
35452
+ };
35453
+
35454
+
35455
+ /**
35456
+ * @param {?proto.payment.UserPaymentHistoryReward|undefined} value
35457
+ * @return {!proto.payment.UserPaymentHistoryItem} returns this
35458
+ */
35459
+ proto.payment.UserPaymentHistoryItem.prototype.setReward = function(value) {
35460
+ return jspb.Message.setWrapperField(this, 25, value);
35461
+ };
35462
+
35463
+
35464
+ /**
35465
+ * Clears the message field making it undefined.
35466
+ * @return {!proto.payment.UserPaymentHistoryItem} returns this
35467
+ */
35468
+ proto.payment.UserPaymentHistoryItem.prototype.clearReward = function() {
35469
+ return this.setReward(undefined);
35470
+ };
35471
+
35472
+
35473
+ /**
35474
+ * Returns whether this field is set.
35475
+ * @return {boolean}
35476
+ */
35477
+ proto.payment.UserPaymentHistoryItem.prototype.hasReward = function() {
35478
+ return jspb.Message.getField(this, 25) != null;
35479
+ };
35480
+
35481
+
35171
35482
 
35172
35483
  /**
35173
35484
  * List of repeated fields within this message type.