protobuf-platform 1.2.548 → 1.2.551

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.548",
3
+ "version": "1.2.551",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -69,6 +69,7 @@ service Payment {
69
69
  rpc syncCurrencies(SyncCurrenciesRequest) returns (PaymentStatusResponse);
70
70
  // BackOffice internal financial operations
71
71
  rpc createManualDeposit(ManualDepositRequest) returns (FinancialOperationResponse);
72
+ rpc reconcileDeposit(DepositReconciliationRequest) returns (FinancialOperationResponse);
72
73
  rpc createCompensation(CompensationRequest) returns (FinancialOperationResponse);
73
74
  rpc readListCompensations(PaginationRequest) returns (CompensationItemsResponse);
74
75
  rpc createConfiscation(ConfiscationRequest) returns (FinancialOperationResponse);
@@ -110,6 +111,11 @@ message PaymentSearchRequest {
110
111
  repeated string withdrawal_status_code = 18;
111
112
  optional int32 config_is_active = 19;
112
113
  repeated string currency_type = 20;
114
+ optional string external_ref = 21;
115
+ optional string created_at_from = 22;
116
+ optional string created_at_to = 23;
117
+ optional string completed_at_from = 24;
118
+ optional string completed_at_to = 25;
113
119
  }
114
120
  message ItemsBunchRequest {
115
121
  repeated int32 ids = 1;
@@ -579,6 +585,7 @@ message WithdrawalItem {
579
585
  optional string payment_provider_image_cdn = 18;
580
586
  optional string payment_method_image = 19;
581
587
  optional string payment_method_image_cdn = 20;
588
+ optional string completed_at = 21;
582
589
  }
583
590
  message WithdrawalItemsResponse {
584
591
  repeated WithdrawalItem items = 1;
@@ -938,7 +945,18 @@ message ManualDepositRequest {
938
945
  optional string external_payment_id = 9;
939
946
  optional string external_transaction_id = 10;
940
947
  }
941
- // compensation_type values: compensation, reward, other_credit, balance_transfer_credit
948
+ message DepositReconciliationRequest {
949
+ int32 deposit_id = 1;
950
+ string amount_paid = 2;
951
+ optional string external_payment_id = 3;
952
+ optional string external_transaction_id = 4;
953
+ optional string provider_completed_at = 5;
954
+ string reason = 6;
955
+ optional string internal_comment = 7;
956
+ optional string transaction_code = 8;
957
+ string idempotency_id = 9;
958
+ }
959
+ // compensation_type values: compensation, reward, other_credit, balance_transfer_credit, adjustment
942
960
  message CompensationRequest {
943
961
  int32 user_id = 1;
944
962
  int64 amount_minor = 2;
@@ -191,6 +191,17 @@ function deserialize_payment_DepositItemsResponse(buffer_arg) {
191
191
  return payment_pb.DepositItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
192
192
  }
193
193
 
194
+ function serialize_payment_DepositReconciliationRequest(arg) {
195
+ if (!(arg instanceof payment_pb.DepositReconciliationRequest)) {
196
+ throw new Error('Expected argument of type payment.DepositReconciliationRequest');
197
+ }
198
+ return Buffer.from(arg.serializeBinary());
199
+ }
200
+
201
+ function deserialize_payment_DepositReconciliationRequest(buffer_arg) {
202
+ return payment_pb.DepositReconciliationRequest.deserializeBinary(new Uint8Array(buffer_arg));
203
+ }
204
+
194
205
  function serialize_payment_DepositRedirectFormRequest(arg) {
195
206
  if (!(arg instanceof payment_pb.DepositRedirectFormRequest)) {
196
207
  throw new Error('Expected argument of type payment.DepositRedirectFormRequest');
@@ -1492,6 +1503,17 @@ createManualDeposit: {
1492
1503
  responseSerialize: serialize_payment_FinancialOperationResponse,
1493
1504
  responseDeserialize: deserialize_payment_FinancialOperationResponse,
1494
1505
  },
1506
+ reconcileDeposit: {
1507
+ path: '/payment.Payment/reconcileDeposit',
1508
+ requestStream: false,
1509
+ responseStream: false,
1510
+ requestType: payment_pb.DepositReconciliationRequest,
1511
+ responseType: payment_pb.FinancialOperationResponse,
1512
+ requestSerialize: serialize_payment_DepositReconciliationRequest,
1513
+ requestDeserialize: deserialize_payment_DepositReconciliationRequest,
1514
+ responseSerialize: serialize_payment_FinancialOperationResponse,
1515
+ responseDeserialize: deserialize_payment_FinancialOperationResponse,
1516
+ },
1495
1517
  createCompensation: {
1496
1518
  path: '/payment.Payment/createCompensation',
1497
1519
  requestStream: false,
@@ -47,6 +47,7 @@ goog.exportSymbol('proto.payment.CurrencyMetadataResponse', null, global);
47
47
  goog.exportSymbol('proto.payment.CurrencyResponse', null, global);
48
48
  goog.exportSymbol('proto.payment.DepositItem', null, global);
49
49
  goog.exportSymbol('proto.payment.DepositItemsResponse', null, global);
50
+ goog.exportSymbol('proto.payment.DepositReconciliationRequest', null, global);
50
51
  goog.exportSymbol('proto.payment.DepositRedirectFormRequest', null, global);
51
52
  goog.exportSymbol('proto.payment.DepositRedirectFormResponse', null, global);
52
53
  goog.exportSymbol('proto.payment.DepositResponse', null, global);
@@ -2210,6 +2211,27 @@ if (goog.DEBUG && !COMPILED) {
2210
2211
  */
2211
2212
  proto.payment.ManualDepositRequest.displayName = 'proto.payment.ManualDepositRequest';
2212
2213
  }
2214
+ /**
2215
+ * Generated by JsPbCodeGenerator.
2216
+ * @param {Array=} opt_data Optional initial data array, typically from a
2217
+ * server response, or constructed directly in Javascript. The array is used
2218
+ * in place and becomes part of the constructed object. It is not cloned.
2219
+ * If no data is provided, the constructed object will be empty, but still
2220
+ * valid.
2221
+ * @extends {jspb.Message}
2222
+ * @constructor
2223
+ */
2224
+ proto.payment.DepositReconciliationRequest = function(opt_data) {
2225
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2226
+ };
2227
+ goog.inherits(proto.payment.DepositReconciliationRequest, jspb.Message);
2228
+ if (goog.DEBUG && !COMPILED) {
2229
+ /**
2230
+ * @public
2231
+ * @override
2232
+ */
2233
+ proto.payment.DepositReconciliationRequest.displayName = 'proto.payment.DepositReconciliationRequest';
2234
+ }
2213
2235
  /**
2214
2236
  * Generated by JsPbCodeGenerator.
2215
2237
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -3488,7 +3510,12 @@ proto.payment.PaymentSearchRequest.toObject = function(includeInstance, msg) {
3488
3510
  operationStatusCodeList: (f = jspb.Message.getRepeatedField(msg, 17)) == null ? undefined : f,
3489
3511
  withdrawalStatusCodeList: (f = jspb.Message.getRepeatedField(msg, 18)) == null ? undefined : f,
3490
3512
  configIsActive: jspb.Message.getFieldWithDefault(msg, 19, 0),
3491
- currencyTypeList: (f = jspb.Message.getRepeatedField(msg, 20)) == null ? undefined : f
3513
+ currencyTypeList: (f = jspb.Message.getRepeatedField(msg, 20)) == null ? undefined : f,
3514
+ externalRef: jspb.Message.getFieldWithDefault(msg, 21, ""),
3515
+ createdAtFrom: jspb.Message.getFieldWithDefault(msg, 22, ""),
3516
+ createdAtTo: jspb.Message.getFieldWithDefault(msg, 23, ""),
3517
+ completedAtFrom: jspb.Message.getFieldWithDefault(msg, 24, ""),
3518
+ completedAtTo: jspb.Message.getFieldWithDefault(msg, 25, "")
3492
3519
  };
3493
3520
 
3494
3521
  if (includeInstance) {
@@ -3613,6 +3640,26 @@ proto.payment.PaymentSearchRequest.deserializeBinaryFromReader = function(msg, r
3613
3640
  var value = /** @type {string} */ (reader.readString());
3614
3641
  msg.addCurrencyType(value);
3615
3642
  break;
3643
+ case 21:
3644
+ var value = /** @type {string} */ (reader.readString());
3645
+ msg.setExternalRef(value);
3646
+ break;
3647
+ case 22:
3648
+ var value = /** @type {string} */ (reader.readString());
3649
+ msg.setCreatedAtFrom(value);
3650
+ break;
3651
+ case 23:
3652
+ var value = /** @type {string} */ (reader.readString());
3653
+ msg.setCreatedAtTo(value);
3654
+ break;
3655
+ case 24:
3656
+ var value = /** @type {string} */ (reader.readString());
3657
+ msg.setCompletedAtFrom(value);
3658
+ break;
3659
+ case 25:
3660
+ var value = /** @type {string} */ (reader.readString());
3661
+ msg.setCompletedAtTo(value);
3662
+ break;
3616
3663
  default:
3617
3664
  reader.skipField();
3618
3665
  break;
@@ -3782,6 +3829,41 @@ proto.payment.PaymentSearchRequest.serializeBinaryToWriter = function(message, w
3782
3829
  f
3783
3830
  );
3784
3831
  }
3832
+ f = /** @type {string} */ (jspb.Message.getField(message, 21));
3833
+ if (f != null) {
3834
+ writer.writeString(
3835
+ 21,
3836
+ f
3837
+ );
3838
+ }
3839
+ f = /** @type {string} */ (jspb.Message.getField(message, 22));
3840
+ if (f != null) {
3841
+ writer.writeString(
3842
+ 22,
3843
+ f
3844
+ );
3845
+ }
3846
+ f = /** @type {string} */ (jspb.Message.getField(message, 23));
3847
+ if (f != null) {
3848
+ writer.writeString(
3849
+ 23,
3850
+ f
3851
+ );
3852
+ }
3853
+ f = /** @type {string} */ (jspb.Message.getField(message, 24));
3854
+ if (f != null) {
3855
+ writer.writeString(
3856
+ 24,
3857
+ f
3858
+ );
3859
+ }
3860
+ f = /** @type {string} */ (jspb.Message.getField(message, 25));
3861
+ if (f != null) {
3862
+ writer.writeString(
3863
+ 25,
3864
+ f
3865
+ );
3866
+ }
3785
3867
  };
3786
3868
 
3787
3869
 
@@ -4516,6 +4598,186 @@ proto.payment.PaymentSearchRequest.prototype.clearCurrencyTypeList = function()
4516
4598
  };
4517
4599
 
4518
4600
 
4601
+ /**
4602
+ * optional string external_ref = 21;
4603
+ * @return {string}
4604
+ */
4605
+ proto.payment.PaymentSearchRequest.prototype.getExternalRef = function() {
4606
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 21, ""));
4607
+ };
4608
+
4609
+
4610
+ /**
4611
+ * @param {string} value
4612
+ * @return {!proto.payment.PaymentSearchRequest} returns this
4613
+ */
4614
+ proto.payment.PaymentSearchRequest.prototype.setExternalRef = function(value) {
4615
+ return jspb.Message.setField(this, 21, value);
4616
+ };
4617
+
4618
+
4619
+ /**
4620
+ * Clears the field making it undefined.
4621
+ * @return {!proto.payment.PaymentSearchRequest} returns this
4622
+ */
4623
+ proto.payment.PaymentSearchRequest.prototype.clearExternalRef = function() {
4624
+ return jspb.Message.setField(this, 21, undefined);
4625
+ };
4626
+
4627
+
4628
+ /**
4629
+ * Returns whether this field is set.
4630
+ * @return {boolean}
4631
+ */
4632
+ proto.payment.PaymentSearchRequest.prototype.hasExternalRef = function() {
4633
+ return jspb.Message.getField(this, 21) != null;
4634
+ };
4635
+
4636
+
4637
+ /**
4638
+ * optional string created_at_from = 22;
4639
+ * @return {string}
4640
+ */
4641
+ proto.payment.PaymentSearchRequest.prototype.getCreatedAtFrom = function() {
4642
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 22, ""));
4643
+ };
4644
+
4645
+
4646
+ /**
4647
+ * @param {string} value
4648
+ * @return {!proto.payment.PaymentSearchRequest} returns this
4649
+ */
4650
+ proto.payment.PaymentSearchRequest.prototype.setCreatedAtFrom = function(value) {
4651
+ return jspb.Message.setField(this, 22, value);
4652
+ };
4653
+
4654
+
4655
+ /**
4656
+ * Clears the field making it undefined.
4657
+ * @return {!proto.payment.PaymentSearchRequest} returns this
4658
+ */
4659
+ proto.payment.PaymentSearchRequest.prototype.clearCreatedAtFrom = function() {
4660
+ return jspb.Message.setField(this, 22, undefined);
4661
+ };
4662
+
4663
+
4664
+ /**
4665
+ * Returns whether this field is set.
4666
+ * @return {boolean}
4667
+ */
4668
+ proto.payment.PaymentSearchRequest.prototype.hasCreatedAtFrom = function() {
4669
+ return jspb.Message.getField(this, 22) != null;
4670
+ };
4671
+
4672
+
4673
+ /**
4674
+ * optional string created_at_to = 23;
4675
+ * @return {string}
4676
+ */
4677
+ proto.payment.PaymentSearchRequest.prototype.getCreatedAtTo = function() {
4678
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 23, ""));
4679
+ };
4680
+
4681
+
4682
+ /**
4683
+ * @param {string} value
4684
+ * @return {!proto.payment.PaymentSearchRequest} returns this
4685
+ */
4686
+ proto.payment.PaymentSearchRequest.prototype.setCreatedAtTo = function(value) {
4687
+ return jspb.Message.setField(this, 23, value);
4688
+ };
4689
+
4690
+
4691
+ /**
4692
+ * Clears the field making it undefined.
4693
+ * @return {!proto.payment.PaymentSearchRequest} returns this
4694
+ */
4695
+ proto.payment.PaymentSearchRequest.prototype.clearCreatedAtTo = function() {
4696
+ return jspb.Message.setField(this, 23, undefined);
4697
+ };
4698
+
4699
+
4700
+ /**
4701
+ * Returns whether this field is set.
4702
+ * @return {boolean}
4703
+ */
4704
+ proto.payment.PaymentSearchRequest.prototype.hasCreatedAtTo = function() {
4705
+ return jspb.Message.getField(this, 23) != null;
4706
+ };
4707
+
4708
+
4709
+ /**
4710
+ * optional string completed_at_from = 24;
4711
+ * @return {string}
4712
+ */
4713
+ proto.payment.PaymentSearchRequest.prototype.getCompletedAtFrom = function() {
4714
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 24, ""));
4715
+ };
4716
+
4717
+
4718
+ /**
4719
+ * @param {string} value
4720
+ * @return {!proto.payment.PaymentSearchRequest} returns this
4721
+ */
4722
+ proto.payment.PaymentSearchRequest.prototype.setCompletedAtFrom = function(value) {
4723
+ return jspb.Message.setField(this, 24, value);
4724
+ };
4725
+
4726
+
4727
+ /**
4728
+ * Clears the field making it undefined.
4729
+ * @return {!proto.payment.PaymentSearchRequest} returns this
4730
+ */
4731
+ proto.payment.PaymentSearchRequest.prototype.clearCompletedAtFrom = function() {
4732
+ return jspb.Message.setField(this, 24, undefined);
4733
+ };
4734
+
4735
+
4736
+ /**
4737
+ * Returns whether this field is set.
4738
+ * @return {boolean}
4739
+ */
4740
+ proto.payment.PaymentSearchRequest.prototype.hasCompletedAtFrom = function() {
4741
+ return jspb.Message.getField(this, 24) != null;
4742
+ };
4743
+
4744
+
4745
+ /**
4746
+ * optional string completed_at_to = 25;
4747
+ * @return {string}
4748
+ */
4749
+ proto.payment.PaymentSearchRequest.prototype.getCompletedAtTo = function() {
4750
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 25, ""));
4751
+ };
4752
+
4753
+
4754
+ /**
4755
+ * @param {string} value
4756
+ * @return {!proto.payment.PaymentSearchRequest} returns this
4757
+ */
4758
+ proto.payment.PaymentSearchRequest.prototype.setCompletedAtTo = function(value) {
4759
+ return jspb.Message.setField(this, 25, value);
4760
+ };
4761
+
4762
+
4763
+ /**
4764
+ * Clears the field making it undefined.
4765
+ * @return {!proto.payment.PaymentSearchRequest} returns this
4766
+ */
4767
+ proto.payment.PaymentSearchRequest.prototype.clearCompletedAtTo = function() {
4768
+ return jspb.Message.setField(this, 25, undefined);
4769
+ };
4770
+
4771
+
4772
+ /**
4773
+ * Returns whether this field is set.
4774
+ * @return {boolean}
4775
+ */
4776
+ proto.payment.PaymentSearchRequest.prototype.hasCompletedAtTo = function() {
4777
+ return jspb.Message.getField(this, 25) != null;
4778
+ };
4779
+
4780
+
4519
4781
 
4520
4782
  /**
4521
4783
  * List of repeated fields within this message type.
@@ -24688,7 +24950,8 @@ proto.payment.WithdrawalItem.toObject = function(includeInstance, msg) {
24688
24950
  paymentProviderTitle: jspb.Message.getFieldWithDefault(msg, 17, ""),
24689
24951
  paymentProviderImageCdn: jspb.Message.getFieldWithDefault(msg, 18, ""),
24690
24952
  paymentMethodImage: jspb.Message.getFieldWithDefault(msg, 19, ""),
24691
- paymentMethodImageCdn: jspb.Message.getFieldWithDefault(msg, 20, "")
24953
+ paymentMethodImageCdn: jspb.Message.getFieldWithDefault(msg, 20, ""),
24954
+ completedAt: jspb.Message.getFieldWithDefault(msg, 21, "")
24692
24955
  };
24693
24956
 
24694
24957
  if (includeInstance) {
@@ -24805,6 +25068,10 @@ proto.payment.WithdrawalItem.deserializeBinaryFromReader = function(msg, reader)
24805
25068
  var value = /** @type {string} */ (reader.readString());
24806
25069
  msg.setPaymentMethodImageCdn(value);
24807
25070
  break;
25071
+ case 21:
25072
+ var value = /** @type {string} */ (reader.readString());
25073
+ msg.setCompletedAt(value);
25074
+ break;
24808
25075
  default:
24809
25076
  reader.skipField();
24810
25077
  break;
@@ -24974,6 +25241,13 @@ proto.payment.WithdrawalItem.serializeBinaryToWriter = function(message, writer)
24974
25241
  f
24975
25242
  );
24976
25243
  }
25244
+ f = /** @type {string} */ (jspb.Message.getField(message, 21));
25245
+ if (f != null) {
25246
+ writer.writeString(
25247
+ 21,
25248
+ f
25249
+ );
25250
+ }
24977
25251
  };
24978
25252
 
24979
25253
 
@@ -25589,6 +25863,42 @@ proto.payment.WithdrawalItem.prototype.hasPaymentMethodImageCdn = function() {
25589
25863
  };
25590
25864
 
25591
25865
 
25866
+ /**
25867
+ * optional string completed_at = 21;
25868
+ * @return {string}
25869
+ */
25870
+ proto.payment.WithdrawalItem.prototype.getCompletedAt = function() {
25871
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 21, ""));
25872
+ };
25873
+
25874
+
25875
+ /**
25876
+ * @param {string} value
25877
+ * @return {!proto.payment.WithdrawalItem} returns this
25878
+ */
25879
+ proto.payment.WithdrawalItem.prototype.setCompletedAt = function(value) {
25880
+ return jspb.Message.setField(this, 21, value);
25881
+ };
25882
+
25883
+
25884
+ /**
25885
+ * Clears the field making it undefined.
25886
+ * @return {!proto.payment.WithdrawalItem} returns this
25887
+ */
25888
+ proto.payment.WithdrawalItem.prototype.clearCompletedAt = function() {
25889
+ return jspb.Message.setField(this, 21, undefined);
25890
+ };
25891
+
25892
+
25893
+ /**
25894
+ * Returns whether this field is set.
25895
+ * @return {boolean}
25896
+ */
25897
+ proto.payment.WithdrawalItem.prototype.hasCompletedAt = function() {
25898
+ return jspb.Message.getField(this, 21) != null;
25899
+ };
25900
+
25901
+
25592
25902
 
25593
25903
  /**
25594
25904
  * List of repeated fields within this message type.
@@ -40505,6 +40815,466 @@ proto.payment.ManualDepositRequest.prototype.hasExternalTransactionId = function
40505
40815
 
40506
40816
 
40507
40817
 
40818
+ if (jspb.Message.GENERATE_TO_OBJECT) {
40819
+ /**
40820
+ * Creates an object representation of this proto.
40821
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
40822
+ * Optional fields that are not set will be set to undefined.
40823
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
40824
+ * For the list of reserved names please see:
40825
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
40826
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
40827
+ * JSPB instance for transitional soy proto support:
40828
+ * http://goto/soy-param-migration
40829
+ * @return {!Object}
40830
+ */
40831
+ proto.payment.DepositReconciliationRequest.prototype.toObject = function(opt_includeInstance) {
40832
+ return proto.payment.DepositReconciliationRequest.toObject(opt_includeInstance, this);
40833
+ };
40834
+
40835
+
40836
+ /**
40837
+ * Static version of the {@see toObject} method.
40838
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
40839
+ * the JSPB instance for transitional soy proto support:
40840
+ * http://goto/soy-param-migration
40841
+ * @param {!proto.payment.DepositReconciliationRequest} msg The msg instance to transform.
40842
+ * @return {!Object}
40843
+ * @suppress {unusedLocalVariables} f is only used for nested messages
40844
+ */
40845
+ proto.payment.DepositReconciliationRequest.toObject = function(includeInstance, msg) {
40846
+ var f, obj = {
40847
+ depositId: jspb.Message.getFieldWithDefault(msg, 1, 0),
40848
+ amountPaid: jspb.Message.getFieldWithDefault(msg, 2, ""),
40849
+ externalPaymentId: jspb.Message.getFieldWithDefault(msg, 3, ""),
40850
+ externalTransactionId: jspb.Message.getFieldWithDefault(msg, 4, ""),
40851
+ providerCompletedAt: jspb.Message.getFieldWithDefault(msg, 5, ""),
40852
+ reason: jspb.Message.getFieldWithDefault(msg, 6, ""),
40853
+ internalComment: jspb.Message.getFieldWithDefault(msg, 7, ""),
40854
+ transactionCode: jspb.Message.getFieldWithDefault(msg, 8, ""),
40855
+ idempotencyId: jspb.Message.getFieldWithDefault(msg, 9, "")
40856
+ };
40857
+
40858
+ if (includeInstance) {
40859
+ obj.$jspbMessageInstance = msg;
40860
+ }
40861
+ return obj;
40862
+ };
40863
+ }
40864
+
40865
+
40866
+ /**
40867
+ * Deserializes binary data (in protobuf wire format).
40868
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
40869
+ * @return {!proto.payment.DepositReconciliationRequest}
40870
+ */
40871
+ proto.payment.DepositReconciliationRequest.deserializeBinary = function(bytes) {
40872
+ var reader = new jspb.BinaryReader(bytes);
40873
+ var msg = new proto.payment.DepositReconciliationRequest;
40874
+ return proto.payment.DepositReconciliationRequest.deserializeBinaryFromReader(msg, reader);
40875
+ };
40876
+
40877
+
40878
+ /**
40879
+ * Deserializes binary data (in protobuf wire format) from the
40880
+ * given reader into the given message object.
40881
+ * @param {!proto.payment.DepositReconciliationRequest} msg The message object to deserialize into.
40882
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
40883
+ * @return {!proto.payment.DepositReconciliationRequest}
40884
+ */
40885
+ proto.payment.DepositReconciliationRequest.deserializeBinaryFromReader = function(msg, reader) {
40886
+ while (reader.nextField()) {
40887
+ if (reader.isEndGroup()) {
40888
+ break;
40889
+ }
40890
+ var field = reader.getFieldNumber();
40891
+ switch (field) {
40892
+ case 1:
40893
+ var value = /** @type {number} */ (reader.readInt32());
40894
+ msg.setDepositId(value);
40895
+ break;
40896
+ case 2:
40897
+ var value = /** @type {string} */ (reader.readString());
40898
+ msg.setAmountPaid(value);
40899
+ break;
40900
+ case 3:
40901
+ var value = /** @type {string} */ (reader.readString());
40902
+ msg.setExternalPaymentId(value);
40903
+ break;
40904
+ case 4:
40905
+ var value = /** @type {string} */ (reader.readString());
40906
+ msg.setExternalTransactionId(value);
40907
+ break;
40908
+ case 5:
40909
+ var value = /** @type {string} */ (reader.readString());
40910
+ msg.setProviderCompletedAt(value);
40911
+ break;
40912
+ case 6:
40913
+ var value = /** @type {string} */ (reader.readString());
40914
+ msg.setReason(value);
40915
+ break;
40916
+ case 7:
40917
+ var value = /** @type {string} */ (reader.readString());
40918
+ msg.setInternalComment(value);
40919
+ break;
40920
+ case 8:
40921
+ var value = /** @type {string} */ (reader.readString());
40922
+ msg.setTransactionCode(value);
40923
+ break;
40924
+ case 9:
40925
+ var value = /** @type {string} */ (reader.readString());
40926
+ msg.setIdempotencyId(value);
40927
+ break;
40928
+ default:
40929
+ reader.skipField();
40930
+ break;
40931
+ }
40932
+ }
40933
+ return msg;
40934
+ };
40935
+
40936
+
40937
+ /**
40938
+ * Serializes the message to binary data (in protobuf wire format).
40939
+ * @return {!Uint8Array}
40940
+ */
40941
+ proto.payment.DepositReconciliationRequest.prototype.serializeBinary = function() {
40942
+ var writer = new jspb.BinaryWriter();
40943
+ proto.payment.DepositReconciliationRequest.serializeBinaryToWriter(this, writer);
40944
+ return writer.getResultBuffer();
40945
+ };
40946
+
40947
+
40948
+ /**
40949
+ * Serializes the given message to binary data (in protobuf wire
40950
+ * format), writing to the given BinaryWriter.
40951
+ * @param {!proto.payment.DepositReconciliationRequest} message
40952
+ * @param {!jspb.BinaryWriter} writer
40953
+ * @suppress {unusedLocalVariables} f is only used for nested messages
40954
+ */
40955
+ proto.payment.DepositReconciliationRequest.serializeBinaryToWriter = function(message, writer) {
40956
+ var f = undefined;
40957
+ f = message.getDepositId();
40958
+ if (f !== 0) {
40959
+ writer.writeInt32(
40960
+ 1,
40961
+ f
40962
+ );
40963
+ }
40964
+ f = message.getAmountPaid();
40965
+ if (f.length > 0) {
40966
+ writer.writeString(
40967
+ 2,
40968
+ f
40969
+ );
40970
+ }
40971
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
40972
+ if (f != null) {
40973
+ writer.writeString(
40974
+ 3,
40975
+ f
40976
+ );
40977
+ }
40978
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
40979
+ if (f != null) {
40980
+ writer.writeString(
40981
+ 4,
40982
+ f
40983
+ );
40984
+ }
40985
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
40986
+ if (f != null) {
40987
+ writer.writeString(
40988
+ 5,
40989
+ f
40990
+ );
40991
+ }
40992
+ f = message.getReason();
40993
+ if (f.length > 0) {
40994
+ writer.writeString(
40995
+ 6,
40996
+ f
40997
+ );
40998
+ }
40999
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
41000
+ if (f != null) {
41001
+ writer.writeString(
41002
+ 7,
41003
+ f
41004
+ );
41005
+ }
41006
+ f = /** @type {string} */ (jspb.Message.getField(message, 8));
41007
+ if (f != null) {
41008
+ writer.writeString(
41009
+ 8,
41010
+ f
41011
+ );
41012
+ }
41013
+ f = message.getIdempotencyId();
41014
+ if (f.length > 0) {
41015
+ writer.writeString(
41016
+ 9,
41017
+ f
41018
+ );
41019
+ }
41020
+ };
41021
+
41022
+
41023
+ /**
41024
+ * optional int32 deposit_id = 1;
41025
+ * @return {number}
41026
+ */
41027
+ proto.payment.DepositReconciliationRequest.prototype.getDepositId = function() {
41028
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
41029
+ };
41030
+
41031
+
41032
+ /**
41033
+ * @param {number} value
41034
+ * @return {!proto.payment.DepositReconciliationRequest} returns this
41035
+ */
41036
+ proto.payment.DepositReconciliationRequest.prototype.setDepositId = function(value) {
41037
+ return jspb.Message.setProto3IntField(this, 1, value);
41038
+ };
41039
+
41040
+
41041
+ /**
41042
+ * optional string amount_paid = 2;
41043
+ * @return {string}
41044
+ */
41045
+ proto.payment.DepositReconciliationRequest.prototype.getAmountPaid = function() {
41046
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
41047
+ };
41048
+
41049
+
41050
+ /**
41051
+ * @param {string} value
41052
+ * @return {!proto.payment.DepositReconciliationRequest} returns this
41053
+ */
41054
+ proto.payment.DepositReconciliationRequest.prototype.setAmountPaid = function(value) {
41055
+ return jspb.Message.setProto3StringField(this, 2, value);
41056
+ };
41057
+
41058
+
41059
+ /**
41060
+ * optional string external_payment_id = 3;
41061
+ * @return {string}
41062
+ */
41063
+ proto.payment.DepositReconciliationRequest.prototype.getExternalPaymentId = function() {
41064
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
41065
+ };
41066
+
41067
+
41068
+ /**
41069
+ * @param {string} value
41070
+ * @return {!proto.payment.DepositReconciliationRequest} returns this
41071
+ */
41072
+ proto.payment.DepositReconciliationRequest.prototype.setExternalPaymentId = function(value) {
41073
+ return jspb.Message.setField(this, 3, value);
41074
+ };
41075
+
41076
+
41077
+ /**
41078
+ * Clears the field making it undefined.
41079
+ * @return {!proto.payment.DepositReconciliationRequest} returns this
41080
+ */
41081
+ proto.payment.DepositReconciliationRequest.prototype.clearExternalPaymentId = function() {
41082
+ return jspb.Message.setField(this, 3, undefined);
41083
+ };
41084
+
41085
+
41086
+ /**
41087
+ * Returns whether this field is set.
41088
+ * @return {boolean}
41089
+ */
41090
+ proto.payment.DepositReconciliationRequest.prototype.hasExternalPaymentId = function() {
41091
+ return jspb.Message.getField(this, 3) != null;
41092
+ };
41093
+
41094
+
41095
+ /**
41096
+ * optional string external_transaction_id = 4;
41097
+ * @return {string}
41098
+ */
41099
+ proto.payment.DepositReconciliationRequest.prototype.getExternalTransactionId = function() {
41100
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
41101
+ };
41102
+
41103
+
41104
+ /**
41105
+ * @param {string} value
41106
+ * @return {!proto.payment.DepositReconciliationRequest} returns this
41107
+ */
41108
+ proto.payment.DepositReconciliationRequest.prototype.setExternalTransactionId = function(value) {
41109
+ return jspb.Message.setField(this, 4, value);
41110
+ };
41111
+
41112
+
41113
+ /**
41114
+ * Clears the field making it undefined.
41115
+ * @return {!proto.payment.DepositReconciliationRequest} returns this
41116
+ */
41117
+ proto.payment.DepositReconciliationRequest.prototype.clearExternalTransactionId = function() {
41118
+ return jspb.Message.setField(this, 4, undefined);
41119
+ };
41120
+
41121
+
41122
+ /**
41123
+ * Returns whether this field is set.
41124
+ * @return {boolean}
41125
+ */
41126
+ proto.payment.DepositReconciliationRequest.prototype.hasExternalTransactionId = function() {
41127
+ return jspb.Message.getField(this, 4) != null;
41128
+ };
41129
+
41130
+
41131
+ /**
41132
+ * optional string provider_completed_at = 5;
41133
+ * @return {string}
41134
+ */
41135
+ proto.payment.DepositReconciliationRequest.prototype.getProviderCompletedAt = function() {
41136
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
41137
+ };
41138
+
41139
+
41140
+ /**
41141
+ * @param {string} value
41142
+ * @return {!proto.payment.DepositReconciliationRequest} returns this
41143
+ */
41144
+ proto.payment.DepositReconciliationRequest.prototype.setProviderCompletedAt = function(value) {
41145
+ return jspb.Message.setField(this, 5, value);
41146
+ };
41147
+
41148
+
41149
+ /**
41150
+ * Clears the field making it undefined.
41151
+ * @return {!proto.payment.DepositReconciliationRequest} returns this
41152
+ */
41153
+ proto.payment.DepositReconciliationRequest.prototype.clearProviderCompletedAt = function() {
41154
+ return jspb.Message.setField(this, 5, undefined);
41155
+ };
41156
+
41157
+
41158
+ /**
41159
+ * Returns whether this field is set.
41160
+ * @return {boolean}
41161
+ */
41162
+ proto.payment.DepositReconciliationRequest.prototype.hasProviderCompletedAt = function() {
41163
+ return jspb.Message.getField(this, 5) != null;
41164
+ };
41165
+
41166
+
41167
+ /**
41168
+ * optional string reason = 6;
41169
+ * @return {string}
41170
+ */
41171
+ proto.payment.DepositReconciliationRequest.prototype.getReason = function() {
41172
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
41173
+ };
41174
+
41175
+
41176
+ /**
41177
+ * @param {string} value
41178
+ * @return {!proto.payment.DepositReconciliationRequest} returns this
41179
+ */
41180
+ proto.payment.DepositReconciliationRequest.prototype.setReason = function(value) {
41181
+ return jspb.Message.setProto3StringField(this, 6, value);
41182
+ };
41183
+
41184
+
41185
+ /**
41186
+ * optional string internal_comment = 7;
41187
+ * @return {string}
41188
+ */
41189
+ proto.payment.DepositReconciliationRequest.prototype.getInternalComment = function() {
41190
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
41191
+ };
41192
+
41193
+
41194
+ /**
41195
+ * @param {string} value
41196
+ * @return {!proto.payment.DepositReconciliationRequest} returns this
41197
+ */
41198
+ proto.payment.DepositReconciliationRequest.prototype.setInternalComment = function(value) {
41199
+ return jspb.Message.setField(this, 7, value);
41200
+ };
41201
+
41202
+
41203
+ /**
41204
+ * Clears the field making it undefined.
41205
+ * @return {!proto.payment.DepositReconciliationRequest} returns this
41206
+ */
41207
+ proto.payment.DepositReconciliationRequest.prototype.clearInternalComment = function() {
41208
+ return jspb.Message.setField(this, 7, undefined);
41209
+ };
41210
+
41211
+
41212
+ /**
41213
+ * Returns whether this field is set.
41214
+ * @return {boolean}
41215
+ */
41216
+ proto.payment.DepositReconciliationRequest.prototype.hasInternalComment = function() {
41217
+ return jspb.Message.getField(this, 7) != null;
41218
+ };
41219
+
41220
+
41221
+ /**
41222
+ * optional string transaction_code = 8;
41223
+ * @return {string}
41224
+ */
41225
+ proto.payment.DepositReconciliationRequest.prototype.getTransactionCode = function() {
41226
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
41227
+ };
41228
+
41229
+
41230
+ /**
41231
+ * @param {string} value
41232
+ * @return {!proto.payment.DepositReconciliationRequest} returns this
41233
+ */
41234
+ proto.payment.DepositReconciliationRequest.prototype.setTransactionCode = function(value) {
41235
+ return jspb.Message.setField(this, 8, value);
41236
+ };
41237
+
41238
+
41239
+ /**
41240
+ * Clears the field making it undefined.
41241
+ * @return {!proto.payment.DepositReconciliationRequest} returns this
41242
+ */
41243
+ proto.payment.DepositReconciliationRequest.prototype.clearTransactionCode = function() {
41244
+ return jspb.Message.setField(this, 8, undefined);
41245
+ };
41246
+
41247
+
41248
+ /**
41249
+ * Returns whether this field is set.
41250
+ * @return {boolean}
41251
+ */
41252
+ proto.payment.DepositReconciliationRequest.prototype.hasTransactionCode = function() {
41253
+ return jspb.Message.getField(this, 8) != null;
41254
+ };
41255
+
41256
+
41257
+ /**
41258
+ * optional string idempotency_id = 9;
41259
+ * @return {string}
41260
+ */
41261
+ proto.payment.DepositReconciliationRequest.prototype.getIdempotencyId = function() {
41262
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
41263
+ };
41264
+
41265
+
41266
+ /**
41267
+ * @param {string} value
41268
+ * @return {!proto.payment.DepositReconciliationRequest} returns this
41269
+ */
41270
+ proto.payment.DepositReconciliationRequest.prototype.setIdempotencyId = function(value) {
41271
+ return jspb.Message.setProto3StringField(this, 9, value);
41272
+ };
41273
+
41274
+
41275
+
41276
+
41277
+
40508
41278
  if (jspb.Message.GENERATE_TO_OBJECT) {
40509
41279
  /**
40510
41280
  * Creates an object representation of this proto.