protobuf-platform 1.2.714 → 1.2.716

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.714",
3
+ "version": "1.2.716",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -182,6 +182,8 @@ message ProviderTranslationRequest {
182
182
  optional string title = 3;
183
183
  optional string description = 4;
184
184
  optional int32 is_active = 5;
185
+ // Explicit WYSIWYG clear. Independent of field 4 so omission and "" stay distinct.
186
+ optional bool clear_description = 6;
185
187
  }
186
188
  message GetProviderTranslationRequest {
187
189
  int32 payment_provider_id = 1;
@@ -641,6 +643,8 @@ message GetWithdrawalRequest {
641
643
  int32 id = 1;
642
644
  optional string status_code = 2;
643
645
  optional int32 maker_id = 3;
646
+ // Manual status-change note. A transition to declined requires this non-empty
647
+ // operator decline reason. It is not a PSP error, provider rejection, or player-facing text.
644
648
  optional string reason = 4;
645
649
  }
646
650
  message WithdrawalResponse {
@@ -667,6 +671,9 @@ message WithdrawalResponse {
667
671
  optional string origin = 21;
668
672
  optional string canonical_status = 22;
669
673
  repeated string allowed_status_actions = 23;
674
+ // Operator-provided manual decline reason. Internal back-office data.
675
+ // Absent for historical declines and automatic PSP failures.
676
+ optional string operator_decline_reason = 24;
670
677
  }
671
678
  message WithdrawalItem {
672
679
  int32 id = 1;
@@ -693,6 +700,9 @@ message WithdrawalItem {
693
700
  optional string origin = 22;
694
701
  optional string canonical_status = 23;
695
702
  repeated string allowed_status_actions = 24;
703
+ // Operator-provided manual decline reason. Internal back-office data.
704
+ // Absent for historical declines and automatic PSP failures.
705
+ optional string operator_decline_reason = 25;
696
706
  }
697
707
  message WithdrawalItemsResponse {
698
708
  repeated WithdrawalItem items = 1;
@@ -7152,7 +7152,8 @@ proto.payment.ProviderTranslationRequest.toObject = function(includeInstance, ms
7152
7152
  locale: jspb.Message.getFieldWithDefault(msg, 2, ""),
7153
7153
  title: jspb.Message.getFieldWithDefault(msg, 3, ""),
7154
7154
  description: jspb.Message.getFieldWithDefault(msg, 4, ""),
7155
- isActive: jspb.Message.getFieldWithDefault(msg, 5, 0)
7155
+ isActive: jspb.Message.getFieldWithDefault(msg, 5, 0),
7156
+ clearDescription: jspb.Message.getBooleanFieldWithDefault(msg, 6, false)
7156
7157
  };
7157
7158
 
7158
7159
  if (includeInstance) {
@@ -7209,6 +7210,10 @@ proto.payment.ProviderTranslationRequest.deserializeBinaryFromReader = function(
7209
7210
  var value = /** @type {number} */ (reader.readInt32());
7210
7211
  msg.setIsActive(value);
7211
7212
  break;
7213
+ case 6:
7214
+ var value = /** @type {boolean} */ (reader.readBool());
7215
+ msg.setClearDescription(value);
7216
+ break;
7212
7217
  default:
7213
7218
  reader.skipField();
7214
7219
  break;
@@ -7273,6 +7278,13 @@ proto.payment.ProviderTranslationRequest.serializeBinaryToWriter = function(mess
7273
7278
  f
7274
7279
  );
7275
7280
  }
7281
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 6));
7282
+ if (f != null) {
7283
+ writer.writeBool(
7284
+ 6,
7285
+ f
7286
+ );
7287
+ }
7276
7288
  };
7277
7289
 
7278
7290
 
@@ -7456,6 +7468,42 @@ proto.payment.ProviderTranslationRequest.prototype.hasIsActive = function() {
7456
7468
  };
7457
7469
 
7458
7470
 
7471
+ /**
7472
+ * optional bool clear_description = 6;
7473
+ * @return {boolean}
7474
+ */
7475
+ proto.payment.ProviderTranslationRequest.prototype.getClearDescription = function() {
7476
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
7477
+ };
7478
+
7479
+
7480
+ /**
7481
+ * @param {boolean} value
7482
+ * @return {!proto.payment.ProviderTranslationRequest} returns this
7483
+ */
7484
+ proto.payment.ProviderTranslationRequest.prototype.setClearDescription = function(value) {
7485
+ return jspb.Message.setField(this, 6, value);
7486
+ };
7487
+
7488
+
7489
+ /**
7490
+ * Clears the field making it undefined.
7491
+ * @return {!proto.payment.ProviderTranslationRequest} returns this
7492
+ */
7493
+ proto.payment.ProviderTranslationRequest.prototype.clearClearDescription = function() {
7494
+ return jspb.Message.setField(this, 6, undefined);
7495
+ };
7496
+
7497
+
7498
+ /**
7499
+ * Returns whether this field is set.
7500
+ * @return {boolean}
7501
+ */
7502
+ proto.payment.ProviderTranslationRequest.prototype.hasClearDescription = function() {
7503
+ return jspb.Message.getField(this, 6) != null;
7504
+ };
7505
+
7506
+
7459
7507
 
7460
7508
 
7461
7509
 
@@ -27738,7 +27786,8 @@ proto.payment.WithdrawalResponse.toObject = function(includeInstance, msg) {
27738
27786
  paymentMethodImageCdn: jspb.Message.getFieldWithDefault(msg, 20, ""),
27739
27787
  origin: jspb.Message.getFieldWithDefault(msg, 21, ""),
27740
27788
  canonicalStatus: jspb.Message.getFieldWithDefault(msg, 22, ""),
27741
- allowedStatusActionsList: (f = jspb.Message.getRepeatedField(msg, 23)) == null ? undefined : f
27789
+ allowedStatusActionsList: (f = jspb.Message.getRepeatedField(msg, 23)) == null ? undefined : f,
27790
+ operatorDeclineReason: jspb.Message.getFieldWithDefault(msg, 24, "")
27742
27791
  };
27743
27792
 
27744
27793
  if (includeInstance) {
@@ -27867,6 +27916,10 @@ proto.payment.WithdrawalResponse.deserializeBinaryFromReader = function(msg, rea
27867
27916
  var value = /** @type {string} */ (reader.readString());
27868
27917
  msg.addAllowedStatusActions(value);
27869
27918
  break;
27919
+ case 24:
27920
+ var value = /** @type {string} */ (reader.readString());
27921
+ msg.setOperatorDeclineReason(value);
27922
+ break;
27870
27923
  default:
27871
27924
  reader.skipField();
27872
27925
  break;
@@ -28057,6 +28110,13 @@ proto.payment.WithdrawalResponse.serializeBinaryToWriter = function(message, wri
28057
28110
  f
28058
28111
  );
28059
28112
  }
28113
+ f = /** @type {string} */ (jspb.Message.getField(message, 24));
28114
+ if (f != null) {
28115
+ writer.writeString(
28116
+ 24,
28117
+ f
28118
+ );
28119
+ }
28060
28120
  };
28061
28121
 
28062
28122
 
@@ -28871,6 +28931,42 @@ proto.payment.WithdrawalResponse.prototype.clearAllowedStatusActionsList = funct
28871
28931
  };
28872
28932
 
28873
28933
 
28934
+ /**
28935
+ * optional string operator_decline_reason = 24;
28936
+ * @return {string}
28937
+ */
28938
+ proto.payment.WithdrawalResponse.prototype.getOperatorDeclineReason = function() {
28939
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 24, ""));
28940
+ };
28941
+
28942
+
28943
+ /**
28944
+ * @param {string} value
28945
+ * @return {!proto.payment.WithdrawalResponse} returns this
28946
+ */
28947
+ proto.payment.WithdrawalResponse.prototype.setOperatorDeclineReason = function(value) {
28948
+ return jspb.Message.setField(this, 24, value);
28949
+ };
28950
+
28951
+
28952
+ /**
28953
+ * Clears the field making it undefined.
28954
+ * @return {!proto.payment.WithdrawalResponse} returns this
28955
+ */
28956
+ proto.payment.WithdrawalResponse.prototype.clearOperatorDeclineReason = function() {
28957
+ return jspb.Message.setField(this, 24, undefined);
28958
+ };
28959
+
28960
+
28961
+ /**
28962
+ * Returns whether this field is set.
28963
+ * @return {boolean}
28964
+ */
28965
+ proto.payment.WithdrawalResponse.prototype.hasOperatorDeclineReason = function() {
28966
+ return jspb.Message.getField(this, 24) != null;
28967
+ };
28968
+
28969
+
28874
28970
 
28875
28971
  /**
28876
28972
  * List of repeated fields within this message type.
@@ -28933,7 +29029,8 @@ proto.payment.WithdrawalItem.toObject = function(includeInstance, msg) {
28933
29029
  completedAt: jspb.Message.getFieldWithDefault(msg, 21, ""),
28934
29030
  origin: jspb.Message.getFieldWithDefault(msg, 22, ""),
28935
29031
  canonicalStatus: jspb.Message.getFieldWithDefault(msg, 23, ""),
28936
- allowedStatusActionsList: (f = jspb.Message.getRepeatedField(msg, 24)) == null ? undefined : f
29032
+ allowedStatusActionsList: (f = jspb.Message.getRepeatedField(msg, 24)) == null ? undefined : f,
29033
+ operatorDeclineReason: jspb.Message.getFieldWithDefault(msg, 25, "")
28937
29034
  };
28938
29035
 
28939
29036
  if (includeInstance) {
@@ -29066,6 +29163,10 @@ proto.payment.WithdrawalItem.deserializeBinaryFromReader = function(msg, reader)
29066
29163
  var value = /** @type {string} */ (reader.readString());
29067
29164
  msg.addAllowedStatusActions(value);
29068
29165
  break;
29166
+ case 25:
29167
+ var value = /** @type {string} */ (reader.readString());
29168
+ msg.setOperatorDeclineReason(value);
29169
+ break;
29069
29170
  default:
29070
29171
  reader.skipField();
29071
29172
  break;
@@ -29263,6 +29364,13 @@ proto.payment.WithdrawalItem.serializeBinaryToWriter = function(message, writer)
29263
29364
  f
29264
29365
  );
29265
29366
  }
29367
+ f = /** @type {string} */ (jspb.Message.getField(message, 25));
29368
+ if (f != null) {
29369
+ writer.writeString(
29370
+ 25,
29371
+ f
29372
+ );
29373
+ }
29266
29374
  };
29267
29375
 
29268
29376
 
@@ -30023,6 +30131,42 @@ proto.payment.WithdrawalItem.prototype.clearAllowedStatusActionsList = function(
30023
30131
  };
30024
30132
 
30025
30133
 
30134
+ /**
30135
+ * optional string operator_decline_reason = 25;
30136
+ * @return {string}
30137
+ */
30138
+ proto.payment.WithdrawalItem.prototype.getOperatorDeclineReason = function() {
30139
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 25, ""));
30140
+ };
30141
+
30142
+
30143
+ /**
30144
+ * @param {string} value
30145
+ * @return {!proto.payment.WithdrawalItem} returns this
30146
+ */
30147
+ proto.payment.WithdrawalItem.prototype.setOperatorDeclineReason = function(value) {
30148
+ return jspb.Message.setField(this, 25, value);
30149
+ };
30150
+
30151
+
30152
+ /**
30153
+ * Clears the field making it undefined.
30154
+ * @return {!proto.payment.WithdrawalItem} returns this
30155
+ */
30156
+ proto.payment.WithdrawalItem.prototype.clearOperatorDeclineReason = function() {
30157
+ return jspb.Message.setField(this, 25, undefined);
30158
+ };
30159
+
30160
+
30161
+ /**
30162
+ * Returns whether this field is set.
30163
+ * @return {boolean}
30164
+ */
30165
+ proto.payment.WithdrawalItem.prototype.hasOperatorDeclineReason = function() {
30166
+ return jspb.Message.getField(this, 25) != null;
30167
+ };
30168
+
30169
+
30026
30170
 
30027
30171
  /**
30028
30172
  * List of repeated fields within this message type.