protobuf-platform 1.2.329 → 1.2.330

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.
@@ -15,6 +15,7 @@ service Config {
15
15
  //Currency Rates
16
16
  rpc getCurrencyRate(CurrencyRateRequest) returns (CurrencyRateResponse);
17
17
  rpc getCurrenciesRates(CurrenciesRatesRequest) returns (CurrenciesRatesResponse);
18
+ rpc refreshCurrenciesRates(RefreshCurrenciesRatesRequest) returns (CurrenciesRatesResponse);
18
19
  //Countries
19
20
  rpc getCountriesList(PaginationRequest) returns (CountriesResponse);
20
21
  //OpenAI
@@ -130,10 +131,20 @@ message CurrenciesRatesRequest {
130
131
  string currency_to = 4;
131
132
  }
132
133
 
134
+ message RefreshCurrenciesRatesRequest {
135
+ string environment = 1;
136
+ string customer = 2;
137
+ repeated string currency_from = 3;
138
+ optional string currency_to = 4;
139
+ }
140
+
133
141
  message CurrencyRateItem {
134
142
  string currency_from = 1;
135
143
  string currency_to = 2;
136
144
  double rate = 3;
145
+ optional string source = 4;
146
+ optional string fetched_at = 5;
147
+ optional string updated_at = 6;
137
148
  }
138
149
 
139
150
  message CurrenciesRatesResponse {
@@ -378,6 +378,17 @@ function deserialize_config_R2FileResponse(buffer_arg) {
378
378
  return config_pb.R2FileResponse.deserializeBinary(new Uint8Array(buffer_arg));
379
379
  }
380
380
 
381
+ function serialize_config_RefreshCurrenciesRatesRequest(arg) {
382
+ if (!(arg instanceof config_pb.RefreshCurrenciesRatesRequest)) {
383
+ throw new Error('Expected argument of type config.RefreshCurrenciesRatesRequest');
384
+ }
385
+ return Buffer.from(arg.serializeBinary());
386
+ }
387
+
388
+ function deserialize_config_RefreshCurrenciesRatesRequest(buffer_arg) {
389
+ return config_pb.RefreshCurrenciesRatesRequest.deserializeBinary(new Uint8Array(buffer_arg));
390
+ }
391
+
381
392
  function serialize_config_SettingsRequest(arg) {
382
393
  if (!(arg instanceof config_pb.SettingsRequest)) {
383
394
  throw new Error('Expected argument of type config.SettingsRequest');
@@ -549,6 +560,17 @@ getCurrencyRate: {
549
560
  responseSerialize: serialize_config_CurrenciesRatesResponse,
550
561
  responseDeserialize: deserialize_config_CurrenciesRatesResponse,
551
562
  },
563
+ refreshCurrenciesRates: {
564
+ path: '/config.Config/refreshCurrenciesRates',
565
+ requestStream: false,
566
+ responseStream: false,
567
+ requestType: config_pb.RefreshCurrenciesRatesRequest,
568
+ responseType: config_pb.CurrenciesRatesResponse,
569
+ requestSerialize: serialize_config_RefreshCurrenciesRatesRequest,
570
+ requestDeserialize: deserialize_config_RefreshCurrenciesRatesRequest,
571
+ responseSerialize: serialize_config_CurrenciesRatesResponse,
572
+ responseDeserialize: deserialize_config_CurrenciesRatesResponse,
573
+ },
552
574
  // Countries
553
575
  getCountriesList: {
554
576
  path: '/config.Config/getCountriesList',
@@ -60,6 +60,7 @@ goog.exportSymbol('proto.config.R2FileListRequest', null, global);
60
60
  goog.exportSymbol('proto.config.R2FileListResponse', null, global);
61
61
  goog.exportSymbol('proto.config.R2FileRequest', null, global);
62
62
  goog.exportSymbol('proto.config.R2FileResponse', null, global);
63
+ goog.exportSymbol('proto.config.RefreshCurrenciesRatesRequest', null, global);
63
64
  goog.exportSymbol('proto.config.SettingsRequest', null, global);
64
65
  goog.exportSymbol('proto.config.SettingsResponse', null, global);
65
66
  goog.exportSymbol('proto.config.VerifyPrivateR2ObjectRequest', null, global);
@@ -425,6 +426,27 @@ if (goog.DEBUG && !COMPILED) {
425
426
  */
426
427
  proto.config.CurrenciesRatesRequest.displayName = 'proto.config.CurrenciesRatesRequest';
427
428
  }
429
+ /**
430
+ * Generated by JsPbCodeGenerator.
431
+ * @param {Array=} opt_data Optional initial data array, typically from a
432
+ * server response, or constructed directly in Javascript. The array is used
433
+ * in place and becomes part of the constructed object. It is not cloned.
434
+ * If no data is provided, the constructed object will be empty, but still
435
+ * valid.
436
+ * @extends {jspb.Message}
437
+ * @constructor
438
+ */
439
+ proto.config.RefreshCurrenciesRatesRequest = function(opt_data) {
440
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.config.RefreshCurrenciesRatesRequest.repeatedFields_, null);
441
+ };
442
+ goog.inherits(proto.config.RefreshCurrenciesRatesRequest, jspb.Message);
443
+ if (goog.DEBUG && !COMPILED) {
444
+ /**
445
+ * @public
446
+ * @override
447
+ */
448
+ proto.config.RefreshCurrenciesRatesRequest.displayName = 'proto.config.RefreshCurrenciesRatesRequest';
449
+ }
428
450
  /**
429
451
  * Generated by JsPbCodeGenerator.
430
452
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -4752,6 +4774,270 @@ proto.config.CurrenciesRatesRequest.prototype.setCurrencyTo = function(value) {
4752
4774
 
4753
4775
 
4754
4776
 
4777
+ /**
4778
+ * List of repeated fields within this message type.
4779
+ * @private {!Array<number>}
4780
+ * @const
4781
+ */
4782
+ proto.config.RefreshCurrenciesRatesRequest.repeatedFields_ = [3];
4783
+
4784
+
4785
+
4786
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4787
+ /**
4788
+ * Creates an object representation of this proto.
4789
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4790
+ * Optional fields that are not set will be set to undefined.
4791
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4792
+ * For the list of reserved names please see:
4793
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4794
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4795
+ * JSPB instance for transitional soy proto support:
4796
+ * http://goto/soy-param-migration
4797
+ * @return {!Object}
4798
+ */
4799
+ proto.config.RefreshCurrenciesRatesRequest.prototype.toObject = function(opt_includeInstance) {
4800
+ return proto.config.RefreshCurrenciesRatesRequest.toObject(opt_includeInstance, this);
4801
+ };
4802
+
4803
+
4804
+ /**
4805
+ * Static version of the {@see toObject} method.
4806
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4807
+ * the JSPB instance for transitional soy proto support:
4808
+ * http://goto/soy-param-migration
4809
+ * @param {!proto.config.RefreshCurrenciesRatesRequest} msg The msg instance to transform.
4810
+ * @return {!Object}
4811
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4812
+ */
4813
+ proto.config.RefreshCurrenciesRatesRequest.toObject = function(includeInstance, msg) {
4814
+ var f, obj = {
4815
+ environment: jspb.Message.getFieldWithDefault(msg, 1, ""),
4816
+ customer: jspb.Message.getFieldWithDefault(msg, 2, ""),
4817
+ currencyFromList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
4818
+ currencyTo: jspb.Message.getFieldWithDefault(msg, 4, "")
4819
+ };
4820
+
4821
+ if (includeInstance) {
4822
+ obj.$jspbMessageInstance = msg;
4823
+ }
4824
+ return obj;
4825
+ };
4826
+ }
4827
+
4828
+
4829
+ /**
4830
+ * Deserializes binary data (in protobuf wire format).
4831
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4832
+ * @return {!proto.config.RefreshCurrenciesRatesRequest}
4833
+ */
4834
+ proto.config.RefreshCurrenciesRatesRequest.deserializeBinary = function(bytes) {
4835
+ var reader = new jspb.BinaryReader(bytes);
4836
+ var msg = new proto.config.RefreshCurrenciesRatesRequest;
4837
+ return proto.config.RefreshCurrenciesRatesRequest.deserializeBinaryFromReader(msg, reader);
4838
+ };
4839
+
4840
+
4841
+ /**
4842
+ * Deserializes binary data (in protobuf wire format) from the
4843
+ * given reader into the given message object.
4844
+ * @param {!proto.config.RefreshCurrenciesRatesRequest} msg The message object to deserialize into.
4845
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4846
+ * @return {!proto.config.RefreshCurrenciesRatesRequest}
4847
+ */
4848
+ proto.config.RefreshCurrenciesRatesRequest.deserializeBinaryFromReader = function(msg, reader) {
4849
+ while (reader.nextField()) {
4850
+ if (reader.isEndGroup()) {
4851
+ break;
4852
+ }
4853
+ var field = reader.getFieldNumber();
4854
+ switch (field) {
4855
+ case 1:
4856
+ var value = /** @type {string} */ (reader.readString());
4857
+ msg.setEnvironment(value);
4858
+ break;
4859
+ case 2:
4860
+ var value = /** @type {string} */ (reader.readString());
4861
+ msg.setCustomer(value);
4862
+ break;
4863
+ case 3:
4864
+ var value = /** @type {string} */ (reader.readString());
4865
+ msg.addCurrencyFrom(value);
4866
+ break;
4867
+ case 4:
4868
+ var value = /** @type {string} */ (reader.readString());
4869
+ msg.setCurrencyTo(value);
4870
+ break;
4871
+ default:
4872
+ reader.skipField();
4873
+ break;
4874
+ }
4875
+ }
4876
+ return msg;
4877
+ };
4878
+
4879
+
4880
+ /**
4881
+ * Serializes the message to binary data (in protobuf wire format).
4882
+ * @return {!Uint8Array}
4883
+ */
4884
+ proto.config.RefreshCurrenciesRatesRequest.prototype.serializeBinary = function() {
4885
+ var writer = new jspb.BinaryWriter();
4886
+ proto.config.RefreshCurrenciesRatesRequest.serializeBinaryToWriter(this, writer);
4887
+ return writer.getResultBuffer();
4888
+ };
4889
+
4890
+
4891
+ /**
4892
+ * Serializes the given message to binary data (in protobuf wire
4893
+ * format), writing to the given BinaryWriter.
4894
+ * @param {!proto.config.RefreshCurrenciesRatesRequest} message
4895
+ * @param {!jspb.BinaryWriter} writer
4896
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4897
+ */
4898
+ proto.config.RefreshCurrenciesRatesRequest.serializeBinaryToWriter = function(message, writer) {
4899
+ var f = undefined;
4900
+ f = message.getEnvironment();
4901
+ if (f.length > 0) {
4902
+ writer.writeString(
4903
+ 1,
4904
+ f
4905
+ );
4906
+ }
4907
+ f = message.getCustomer();
4908
+ if (f.length > 0) {
4909
+ writer.writeString(
4910
+ 2,
4911
+ f
4912
+ );
4913
+ }
4914
+ f = message.getCurrencyFromList();
4915
+ if (f.length > 0) {
4916
+ writer.writeRepeatedString(
4917
+ 3,
4918
+ f
4919
+ );
4920
+ }
4921
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
4922
+ if (f != null) {
4923
+ writer.writeString(
4924
+ 4,
4925
+ f
4926
+ );
4927
+ }
4928
+ };
4929
+
4930
+
4931
+ /**
4932
+ * optional string environment = 1;
4933
+ * @return {string}
4934
+ */
4935
+ proto.config.RefreshCurrenciesRatesRequest.prototype.getEnvironment = function() {
4936
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
4937
+ };
4938
+
4939
+
4940
+ /**
4941
+ * @param {string} value
4942
+ * @return {!proto.config.RefreshCurrenciesRatesRequest} returns this
4943
+ */
4944
+ proto.config.RefreshCurrenciesRatesRequest.prototype.setEnvironment = function(value) {
4945
+ return jspb.Message.setProto3StringField(this, 1, value);
4946
+ };
4947
+
4948
+
4949
+ /**
4950
+ * optional string customer = 2;
4951
+ * @return {string}
4952
+ */
4953
+ proto.config.RefreshCurrenciesRatesRequest.prototype.getCustomer = function() {
4954
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
4955
+ };
4956
+
4957
+
4958
+ /**
4959
+ * @param {string} value
4960
+ * @return {!proto.config.RefreshCurrenciesRatesRequest} returns this
4961
+ */
4962
+ proto.config.RefreshCurrenciesRatesRequest.prototype.setCustomer = function(value) {
4963
+ return jspb.Message.setProto3StringField(this, 2, value);
4964
+ };
4965
+
4966
+
4967
+ /**
4968
+ * repeated string currency_from = 3;
4969
+ * @return {!Array<string>}
4970
+ */
4971
+ proto.config.RefreshCurrenciesRatesRequest.prototype.getCurrencyFromList = function() {
4972
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
4973
+ };
4974
+
4975
+
4976
+ /**
4977
+ * @param {!Array<string>} value
4978
+ * @return {!proto.config.RefreshCurrenciesRatesRequest} returns this
4979
+ */
4980
+ proto.config.RefreshCurrenciesRatesRequest.prototype.setCurrencyFromList = function(value) {
4981
+ return jspb.Message.setField(this, 3, value || []);
4982
+ };
4983
+
4984
+
4985
+ /**
4986
+ * @param {string} value
4987
+ * @param {number=} opt_index
4988
+ * @return {!proto.config.RefreshCurrenciesRatesRequest} returns this
4989
+ */
4990
+ proto.config.RefreshCurrenciesRatesRequest.prototype.addCurrencyFrom = function(value, opt_index) {
4991
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
4992
+ };
4993
+
4994
+
4995
+ /**
4996
+ * Clears the list making it empty but non-null.
4997
+ * @return {!proto.config.RefreshCurrenciesRatesRequest} returns this
4998
+ */
4999
+ proto.config.RefreshCurrenciesRatesRequest.prototype.clearCurrencyFromList = function() {
5000
+ return this.setCurrencyFromList([]);
5001
+ };
5002
+
5003
+
5004
+ /**
5005
+ * optional string currency_to = 4;
5006
+ * @return {string}
5007
+ */
5008
+ proto.config.RefreshCurrenciesRatesRequest.prototype.getCurrencyTo = function() {
5009
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
5010
+ };
5011
+
5012
+
5013
+ /**
5014
+ * @param {string} value
5015
+ * @return {!proto.config.RefreshCurrenciesRatesRequest} returns this
5016
+ */
5017
+ proto.config.RefreshCurrenciesRatesRequest.prototype.setCurrencyTo = function(value) {
5018
+ return jspb.Message.setField(this, 4, value);
5019
+ };
5020
+
5021
+
5022
+ /**
5023
+ * Clears the field making it undefined.
5024
+ * @return {!proto.config.RefreshCurrenciesRatesRequest} returns this
5025
+ */
5026
+ proto.config.RefreshCurrenciesRatesRequest.prototype.clearCurrencyTo = function() {
5027
+ return jspb.Message.setField(this, 4, undefined);
5028
+ };
5029
+
5030
+
5031
+ /**
5032
+ * Returns whether this field is set.
5033
+ * @return {boolean}
5034
+ */
5035
+ proto.config.RefreshCurrenciesRatesRequest.prototype.hasCurrencyTo = function() {
5036
+ return jspb.Message.getField(this, 4) != null;
5037
+ };
5038
+
5039
+
5040
+
4755
5041
 
4756
5042
 
4757
5043
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -4785,7 +5071,10 @@ proto.config.CurrencyRateItem.toObject = function(includeInstance, msg) {
4785
5071
  var f, obj = {
4786
5072
  currencyFrom: jspb.Message.getFieldWithDefault(msg, 1, ""),
4787
5073
  currencyTo: jspb.Message.getFieldWithDefault(msg, 2, ""),
4788
- rate: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0)
5074
+ rate: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
5075
+ source: jspb.Message.getFieldWithDefault(msg, 4, ""),
5076
+ fetchedAt: jspb.Message.getFieldWithDefault(msg, 5, ""),
5077
+ updatedAt: jspb.Message.getFieldWithDefault(msg, 6, "")
4789
5078
  };
4790
5079
 
4791
5080
  if (includeInstance) {
@@ -4834,6 +5123,18 @@ proto.config.CurrencyRateItem.deserializeBinaryFromReader = function(msg, reader
4834
5123
  var value = /** @type {number} */ (reader.readDouble());
4835
5124
  msg.setRate(value);
4836
5125
  break;
5126
+ case 4:
5127
+ var value = /** @type {string} */ (reader.readString());
5128
+ msg.setSource(value);
5129
+ break;
5130
+ case 5:
5131
+ var value = /** @type {string} */ (reader.readString());
5132
+ msg.setFetchedAt(value);
5133
+ break;
5134
+ case 6:
5135
+ var value = /** @type {string} */ (reader.readString());
5136
+ msg.setUpdatedAt(value);
5137
+ break;
4837
5138
  default:
4838
5139
  reader.skipField();
4839
5140
  break;
@@ -4884,6 +5185,27 @@ proto.config.CurrencyRateItem.serializeBinaryToWriter = function(message, writer
4884
5185
  f
4885
5186
  );
4886
5187
  }
5188
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
5189
+ if (f != null) {
5190
+ writer.writeString(
5191
+ 4,
5192
+ f
5193
+ );
5194
+ }
5195
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
5196
+ if (f != null) {
5197
+ writer.writeString(
5198
+ 5,
5199
+ f
5200
+ );
5201
+ }
5202
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
5203
+ if (f != null) {
5204
+ writer.writeString(
5205
+ 6,
5206
+ f
5207
+ );
5208
+ }
4887
5209
  };
4888
5210
 
4889
5211
 
@@ -4941,6 +5263,114 @@ proto.config.CurrencyRateItem.prototype.setRate = function(value) {
4941
5263
  };
4942
5264
 
4943
5265
 
5266
+ /**
5267
+ * optional string source = 4;
5268
+ * @return {string}
5269
+ */
5270
+ proto.config.CurrencyRateItem.prototype.getSource = function() {
5271
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
5272
+ };
5273
+
5274
+
5275
+ /**
5276
+ * @param {string} value
5277
+ * @return {!proto.config.CurrencyRateItem} returns this
5278
+ */
5279
+ proto.config.CurrencyRateItem.prototype.setSource = function(value) {
5280
+ return jspb.Message.setField(this, 4, value);
5281
+ };
5282
+
5283
+
5284
+ /**
5285
+ * Clears the field making it undefined.
5286
+ * @return {!proto.config.CurrencyRateItem} returns this
5287
+ */
5288
+ proto.config.CurrencyRateItem.prototype.clearSource = function() {
5289
+ return jspb.Message.setField(this, 4, undefined);
5290
+ };
5291
+
5292
+
5293
+ /**
5294
+ * Returns whether this field is set.
5295
+ * @return {boolean}
5296
+ */
5297
+ proto.config.CurrencyRateItem.prototype.hasSource = function() {
5298
+ return jspb.Message.getField(this, 4) != null;
5299
+ };
5300
+
5301
+
5302
+ /**
5303
+ * optional string fetched_at = 5;
5304
+ * @return {string}
5305
+ */
5306
+ proto.config.CurrencyRateItem.prototype.getFetchedAt = function() {
5307
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
5308
+ };
5309
+
5310
+
5311
+ /**
5312
+ * @param {string} value
5313
+ * @return {!proto.config.CurrencyRateItem} returns this
5314
+ */
5315
+ proto.config.CurrencyRateItem.prototype.setFetchedAt = function(value) {
5316
+ return jspb.Message.setField(this, 5, value);
5317
+ };
5318
+
5319
+
5320
+ /**
5321
+ * Clears the field making it undefined.
5322
+ * @return {!proto.config.CurrencyRateItem} returns this
5323
+ */
5324
+ proto.config.CurrencyRateItem.prototype.clearFetchedAt = function() {
5325
+ return jspb.Message.setField(this, 5, undefined);
5326
+ };
5327
+
5328
+
5329
+ /**
5330
+ * Returns whether this field is set.
5331
+ * @return {boolean}
5332
+ */
5333
+ proto.config.CurrencyRateItem.prototype.hasFetchedAt = function() {
5334
+ return jspb.Message.getField(this, 5) != null;
5335
+ };
5336
+
5337
+
5338
+ /**
5339
+ * optional string updated_at = 6;
5340
+ * @return {string}
5341
+ */
5342
+ proto.config.CurrencyRateItem.prototype.getUpdatedAt = function() {
5343
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
5344
+ };
5345
+
5346
+
5347
+ /**
5348
+ * @param {string} value
5349
+ * @return {!proto.config.CurrencyRateItem} returns this
5350
+ */
5351
+ proto.config.CurrencyRateItem.prototype.setUpdatedAt = function(value) {
5352
+ return jspb.Message.setField(this, 6, value);
5353
+ };
5354
+
5355
+
5356
+ /**
5357
+ * Clears the field making it undefined.
5358
+ * @return {!proto.config.CurrencyRateItem} returns this
5359
+ */
5360
+ proto.config.CurrencyRateItem.prototype.clearUpdatedAt = function() {
5361
+ return jspb.Message.setField(this, 6, undefined);
5362
+ };
5363
+
5364
+
5365
+ /**
5366
+ * Returns whether this field is set.
5367
+ * @return {boolean}
5368
+ */
5369
+ proto.config.CurrencyRateItem.prototype.hasUpdatedAt = function() {
5370
+ return jspb.Message.getField(this, 6) != null;
5371
+ };
5372
+
5373
+
4944
5374
 
4945
5375
  /**
4946
5376
  * List of repeated fields within this message type.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.329",
3
+ "version": "1.2.330",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -54,6 +54,7 @@ service Payment {
54
54
  //Currency directory
55
55
  rpc readSingleCurrency(GetCurrencyRequest) returns (CurrencyResponse);
56
56
  rpc readListCurrencies(PaginationRequest) returns (CurrencyItemsResponse);
57
+ rpc updateSingleCurrency(UpdateCurrencyRequest) returns (CurrencyResponse);
57
58
  rpc syncCurrencies(SyncCurrenciesRequest) returns (PaymentStatusResponse);
58
59
  }
59
60
  //Technical
@@ -563,6 +564,11 @@ message CurrenciesMetadataResponse {
563
564
  message GetCurrencyRequest {
564
565
  int32 id = 1;
565
566
  }
567
+ message UpdateCurrencyRequest {
568
+ int32 id = 1;
569
+ optional int32 is_active = 2;
570
+ optional int32 admin_updated_id = 3;
571
+ }
566
572
  message SyncCurrenciesRequest {
567
573
  optional string source = 1;
568
574
  }
@@ -521,6 +521,17 @@ function deserialize_payment_SyncCurrenciesRequest(buffer_arg) {
521
521
  return payment_pb.SyncCurrenciesRequest.deserializeBinary(new Uint8Array(buffer_arg));
522
522
  }
523
523
 
524
+ function serialize_payment_UpdateCurrencyRequest(arg) {
525
+ if (!(arg instanceof payment_pb.UpdateCurrencyRequest)) {
526
+ throw new Error('Expected argument of type payment.UpdateCurrencyRequest');
527
+ }
528
+ return Buffer.from(arg.serializeBinary());
529
+ }
530
+
531
+ function deserialize_payment_UpdateCurrencyRequest(buffer_arg) {
532
+ return payment_pb.UpdateCurrencyRequest.deserializeBinary(new Uint8Array(buffer_arg));
533
+ }
534
+
524
535
  function serialize_payment_UserDepositItemsResponse(arg) {
525
536
  if (!(arg instanceof payment_pb.UserDepositItemsResponse)) {
526
537
  throw new Error('Expected argument of type payment.UserDepositItemsResponse');
@@ -1061,6 +1072,17 @@ readSingleCurrency: {
1061
1072
  responseSerialize: serialize_payment_CurrencyItemsResponse,
1062
1073
  responseDeserialize: deserialize_payment_CurrencyItemsResponse,
1063
1074
  },
1075
+ updateSingleCurrency: {
1076
+ path: '/payment.Payment/updateSingleCurrency',
1077
+ requestStream: false,
1078
+ responseStream: false,
1079
+ requestType: payment_pb.UpdateCurrencyRequest,
1080
+ responseType: payment_pb.CurrencyResponse,
1081
+ requestSerialize: serialize_payment_UpdateCurrencyRequest,
1082
+ requestDeserialize: deserialize_payment_UpdateCurrencyRequest,
1083
+ responseSerialize: serialize_payment_CurrencyResponse,
1084
+ responseDeserialize: deserialize_payment_CurrencyResponse,
1085
+ },
1064
1086
  syncCurrencies: {
1065
1087
  path: '/payment.Payment/syncCurrencies',
1066
1088
  requestStream: false,
@@ -83,6 +83,7 @@ goog.exportSymbol('proto.payment.ProviderTranslationResponse', null, global);
83
83
  goog.exportSymbol('proto.payment.SegmentedUserRequest', null, global);
84
84
  goog.exportSymbol('proto.payment.SegmentedUserResponse', null, global);
85
85
  goog.exportSymbol('proto.payment.SyncCurrenciesRequest', null, global);
86
+ goog.exportSymbol('proto.payment.UpdateCurrencyRequest', null, global);
86
87
  goog.exportSymbol('proto.payment.UserDepositItem', null, global);
87
88
  goog.exportSymbol('proto.payment.UserDepositItemsResponse', null, global);
88
89
  goog.exportSymbol('proto.payment.UserPaymentMethodItem', null, global);
@@ -1501,6 +1502,27 @@ if (goog.DEBUG && !COMPILED) {
1501
1502
  */
1502
1503
  proto.payment.GetCurrencyRequest.displayName = 'proto.payment.GetCurrencyRequest';
1503
1504
  }
1505
+ /**
1506
+ * Generated by JsPbCodeGenerator.
1507
+ * @param {Array=} opt_data Optional initial data array, typically from a
1508
+ * server response, or constructed directly in Javascript. The array is used
1509
+ * in place and becomes part of the constructed object. It is not cloned.
1510
+ * If no data is provided, the constructed object will be empty, but still
1511
+ * valid.
1512
+ * @extends {jspb.Message}
1513
+ * @constructor
1514
+ */
1515
+ proto.payment.UpdateCurrencyRequest = function(opt_data) {
1516
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1517
+ };
1518
+ goog.inherits(proto.payment.UpdateCurrencyRequest, jspb.Message);
1519
+ if (goog.DEBUG && !COMPILED) {
1520
+ /**
1521
+ * @public
1522
+ * @override
1523
+ */
1524
+ proto.payment.UpdateCurrencyRequest.displayName = 'proto.payment.UpdateCurrencyRequest';
1525
+ }
1504
1526
  /**
1505
1527
  * Generated by JsPbCodeGenerator.
1506
1528
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -23933,6 +23955,232 @@ proto.payment.GetCurrencyRequest.prototype.setId = function(value) {
23933
23955
 
23934
23956
 
23935
23957
 
23958
+ if (jspb.Message.GENERATE_TO_OBJECT) {
23959
+ /**
23960
+ * Creates an object representation of this proto.
23961
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
23962
+ * Optional fields that are not set will be set to undefined.
23963
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
23964
+ * For the list of reserved names please see:
23965
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
23966
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
23967
+ * JSPB instance for transitional soy proto support:
23968
+ * http://goto/soy-param-migration
23969
+ * @return {!Object}
23970
+ */
23971
+ proto.payment.UpdateCurrencyRequest.prototype.toObject = function(opt_includeInstance) {
23972
+ return proto.payment.UpdateCurrencyRequest.toObject(opt_includeInstance, this);
23973
+ };
23974
+
23975
+
23976
+ /**
23977
+ * Static version of the {@see toObject} method.
23978
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
23979
+ * the JSPB instance for transitional soy proto support:
23980
+ * http://goto/soy-param-migration
23981
+ * @param {!proto.payment.UpdateCurrencyRequest} msg The msg instance to transform.
23982
+ * @return {!Object}
23983
+ * @suppress {unusedLocalVariables} f is only used for nested messages
23984
+ */
23985
+ proto.payment.UpdateCurrencyRequest.toObject = function(includeInstance, msg) {
23986
+ var f, obj = {
23987
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
23988
+ isActive: jspb.Message.getFieldWithDefault(msg, 2, 0),
23989
+ adminUpdatedId: jspb.Message.getFieldWithDefault(msg, 3, 0)
23990
+ };
23991
+
23992
+ if (includeInstance) {
23993
+ obj.$jspbMessageInstance = msg;
23994
+ }
23995
+ return obj;
23996
+ };
23997
+ }
23998
+
23999
+
24000
+ /**
24001
+ * Deserializes binary data (in protobuf wire format).
24002
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
24003
+ * @return {!proto.payment.UpdateCurrencyRequest}
24004
+ */
24005
+ proto.payment.UpdateCurrencyRequest.deserializeBinary = function(bytes) {
24006
+ var reader = new jspb.BinaryReader(bytes);
24007
+ var msg = new proto.payment.UpdateCurrencyRequest;
24008
+ return proto.payment.UpdateCurrencyRequest.deserializeBinaryFromReader(msg, reader);
24009
+ };
24010
+
24011
+
24012
+ /**
24013
+ * Deserializes binary data (in protobuf wire format) from the
24014
+ * given reader into the given message object.
24015
+ * @param {!proto.payment.UpdateCurrencyRequest} msg The message object to deserialize into.
24016
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
24017
+ * @return {!proto.payment.UpdateCurrencyRequest}
24018
+ */
24019
+ proto.payment.UpdateCurrencyRequest.deserializeBinaryFromReader = function(msg, reader) {
24020
+ while (reader.nextField()) {
24021
+ if (reader.isEndGroup()) {
24022
+ break;
24023
+ }
24024
+ var field = reader.getFieldNumber();
24025
+ switch (field) {
24026
+ case 1:
24027
+ var value = /** @type {number} */ (reader.readInt32());
24028
+ msg.setId(value);
24029
+ break;
24030
+ case 2:
24031
+ var value = /** @type {number} */ (reader.readInt32());
24032
+ msg.setIsActive(value);
24033
+ break;
24034
+ case 3:
24035
+ var value = /** @type {number} */ (reader.readInt32());
24036
+ msg.setAdminUpdatedId(value);
24037
+ break;
24038
+ default:
24039
+ reader.skipField();
24040
+ break;
24041
+ }
24042
+ }
24043
+ return msg;
24044
+ };
24045
+
24046
+
24047
+ /**
24048
+ * Serializes the message to binary data (in protobuf wire format).
24049
+ * @return {!Uint8Array}
24050
+ */
24051
+ proto.payment.UpdateCurrencyRequest.prototype.serializeBinary = function() {
24052
+ var writer = new jspb.BinaryWriter();
24053
+ proto.payment.UpdateCurrencyRequest.serializeBinaryToWriter(this, writer);
24054
+ return writer.getResultBuffer();
24055
+ };
24056
+
24057
+
24058
+ /**
24059
+ * Serializes the given message to binary data (in protobuf wire
24060
+ * format), writing to the given BinaryWriter.
24061
+ * @param {!proto.payment.UpdateCurrencyRequest} message
24062
+ * @param {!jspb.BinaryWriter} writer
24063
+ * @suppress {unusedLocalVariables} f is only used for nested messages
24064
+ */
24065
+ proto.payment.UpdateCurrencyRequest.serializeBinaryToWriter = function(message, writer) {
24066
+ var f = undefined;
24067
+ f = message.getId();
24068
+ if (f !== 0) {
24069
+ writer.writeInt32(
24070
+ 1,
24071
+ f
24072
+ );
24073
+ }
24074
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
24075
+ if (f != null) {
24076
+ writer.writeInt32(
24077
+ 2,
24078
+ f
24079
+ );
24080
+ }
24081
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
24082
+ if (f != null) {
24083
+ writer.writeInt32(
24084
+ 3,
24085
+ f
24086
+ );
24087
+ }
24088
+ };
24089
+
24090
+
24091
+ /**
24092
+ * optional int32 id = 1;
24093
+ * @return {number}
24094
+ */
24095
+ proto.payment.UpdateCurrencyRequest.prototype.getId = function() {
24096
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
24097
+ };
24098
+
24099
+
24100
+ /**
24101
+ * @param {number} value
24102
+ * @return {!proto.payment.UpdateCurrencyRequest} returns this
24103
+ */
24104
+ proto.payment.UpdateCurrencyRequest.prototype.setId = function(value) {
24105
+ return jspb.Message.setProto3IntField(this, 1, value);
24106
+ };
24107
+
24108
+
24109
+ /**
24110
+ * optional int32 is_active = 2;
24111
+ * @return {number}
24112
+ */
24113
+ proto.payment.UpdateCurrencyRequest.prototype.getIsActive = function() {
24114
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
24115
+ };
24116
+
24117
+
24118
+ /**
24119
+ * @param {number} value
24120
+ * @return {!proto.payment.UpdateCurrencyRequest} returns this
24121
+ */
24122
+ proto.payment.UpdateCurrencyRequest.prototype.setIsActive = function(value) {
24123
+ return jspb.Message.setField(this, 2, value);
24124
+ };
24125
+
24126
+
24127
+ /**
24128
+ * Clears the field making it undefined.
24129
+ * @return {!proto.payment.UpdateCurrencyRequest} returns this
24130
+ */
24131
+ proto.payment.UpdateCurrencyRequest.prototype.clearIsActive = function() {
24132
+ return jspb.Message.setField(this, 2, undefined);
24133
+ };
24134
+
24135
+
24136
+ /**
24137
+ * Returns whether this field is set.
24138
+ * @return {boolean}
24139
+ */
24140
+ proto.payment.UpdateCurrencyRequest.prototype.hasIsActive = function() {
24141
+ return jspb.Message.getField(this, 2) != null;
24142
+ };
24143
+
24144
+
24145
+ /**
24146
+ * optional int32 admin_updated_id = 3;
24147
+ * @return {number}
24148
+ */
24149
+ proto.payment.UpdateCurrencyRequest.prototype.getAdminUpdatedId = function() {
24150
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
24151
+ };
24152
+
24153
+
24154
+ /**
24155
+ * @param {number} value
24156
+ * @return {!proto.payment.UpdateCurrencyRequest} returns this
24157
+ */
24158
+ proto.payment.UpdateCurrencyRequest.prototype.setAdminUpdatedId = function(value) {
24159
+ return jspb.Message.setField(this, 3, value);
24160
+ };
24161
+
24162
+
24163
+ /**
24164
+ * Clears the field making it undefined.
24165
+ * @return {!proto.payment.UpdateCurrencyRequest} returns this
24166
+ */
24167
+ proto.payment.UpdateCurrencyRequest.prototype.clearAdminUpdatedId = function() {
24168
+ return jspb.Message.setField(this, 3, undefined);
24169
+ };
24170
+
24171
+
24172
+ /**
24173
+ * Returns whether this field is set.
24174
+ * @return {boolean}
24175
+ */
24176
+ proto.payment.UpdateCurrencyRequest.prototype.hasAdminUpdatedId = function() {
24177
+ return jspb.Message.getField(this, 3) != null;
24178
+ };
24179
+
24180
+
24181
+
24182
+
24183
+
23936
24184
  if (jspb.Message.GENERATE_TO_OBJECT) {
23937
24185
  /**
23938
24186
  * Creates an object representation of this proto.