protobuf-platform 1.2.329 → 1.2.332

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.332",
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
@@ -298,6 +299,7 @@ message AttemptDepositRequest {
298
299
  optional string user_email = 12;
299
300
  optional string user_public_id = 13;
300
301
  optional string token_id = 14;
302
+ optional string user_agent = 15;
301
303
  }
302
304
  message GetDepositRequest {
303
305
  int32 id = 1;
@@ -563,6 +565,11 @@ message CurrenciesMetadataResponse {
563
565
  message GetCurrencyRequest {
564
566
  int32 id = 1;
565
567
  }
568
+ message UpdateCurrencyRequest {
569
+ int32 id = 1;
570
+ optional int32 is_active = 2;
571
+ optional int32 admin_updated_id = 3;
572
+ }
566
573
  message SyncCurrenciesRequest {
567
574
  optional string source = 1;
568
575
  }
@@ -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
@@ -11800,7 +11822,8 @@ proto.payment.AttemptDepositRequest.toObject = function(includeInstance, msg) {
11800
11822
  userLastName: jspb.Message.getFieldWithDefault(msg, 11, ""),
11801
11823
  userEmail: jspb.Message.getFieldWithDefault(msg, 12, ""),
11802
11824
  userPublicId: jspb.Message.getFieldWithDefault(msg, 13, ""),
11803
- tokenId: jspb.Message.getFieldWithDefault(msg, 14, "")
11825
+ tokenId: jspb.Message.getFieldWithDefault(msg, 14, ""),
11826
+ userAgent: jspb.Message.getFieldWithDefault(msg, 15, "")
11804
11827
  };
11805
11828
 
11806
11829
  if (includeInstance) {
@@ -11893,6 +11916,10 @@ proto.payment.AttemptDepositRequest.deserializeBinaryFromReader = function(msg,
11893
11916
  var value = /** @type {string} */ (reader.readString());
11894
11917
  msg.setTokenId(value);
11895
11918
  break;
11919
+ case 15:
11920
+ var value = /** @type {string} */ (reader.readString());
11921
+ msg.setUserAgent(value);
11922
+ break;
11896
11923
  default:
11897
11924
  reader.skipField();
11898
11925
  break;
@@ -12020,6 +12047,13 @@ proto.payment.AttemptDepositRequest.serializeBinaryToWriter = function(message,
12020
12047
  f
12021
12048
  );
12022
12049
  }
12050
+ f = /** @type {string} */ (jspb.Message.getField(message, 15));
12051
+ if (f != null) {
12052
+ writer.writeString(
12053
+ 15,
12054
+ f
12055
+ );
12056
+ }
12023
12057
  };
12024
12058
 
12025
12059
 
@@ -12473,6 +12507,42 @@ proto.payment.AttemptDepositRequest.prototype.hasTokenId = function() {
12473
12507
  };
12474
12508
 
12475
12509
 
12510
+ /**
12511
+ * optional string user_agent = 15;
12512
+ * @return {string}
12513
+ */
12514
+ proto.payment.AttemptDepositRequest.prototype.getUserAgent = function() {
12515
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
12516
+ };
12517
+
12518
+
12519
+ /**
12520
+ * @param {string} value
12521
+ * @return {!proto.payment.AttemptDepositRequest} returns this
12522
+ */
12523
+ proto.payment.AttemptDepositRequest.prototype.setUserAgent = function(value) {
12524
+ return jspb.Message.setField(this, 15, value);
12525
+ };
12526
+
12527
+
12528
+ /**
12529
+ * Clears the field making it undefined.
12530
+ * @return {!proto.payment.AttemptDepositRequest} returns this
12531
+ */
12532
+ proto.payment.AttemptDepositRequest.prototype.clearUserAgent = function() {
12533
+ return jspb.Message.setField(this, 15, undefined);
12534
+ };
12535
+
12536
+
12537
+ /**
12538
+ * Returns whether this field is set.
12539
+ * @return {boolean}
12540
+ */
12541
+ proto.payment.AttemptDepositRequest.prototype.hasUserAgent = function() {
12542
+ return jspb.Message.getField(this, 15) != null;
12543
+ };
12544
+
12545
+
12476
12546
 
12477
12547
 
12478
12548
 
@@ -23933,6 +24003,232 @@ proto.payment.GetCurrencyRequest.prototype.setId = function(value) {
23933
24003
 
23934
24004
 
23935
24005
 
24006
+ if (jspb.Message.GENERATE_TO_OBJECT) {
24007
+ /**
24008
+ * Creates an object representation of this proto.
24009
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
24010
+ * Optional fields that are not set will be set to undefined.
24011
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
24012
+ * For the list of reserved names please see:
24013
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
24014
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
24015
+ * JSPB instance for transitional soy proto support:
24016
+ * http://goto/soy-param-migration
24017
+ * @return {!Object}
24018
+ */
24019
+ proto.payment.UpdateCurrencyRequest.prototype.toObject = function(opt_includeInstance) {
24020
+ return proto.payment.UpdateCurrencyRequest.toObject(opt_includeInstance, this);
24021
+ };
24022
+
24023
+
24024
+ /**
24025
+ * Static version of the {@see toObject} method.
24026
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
24027
+ * the JSPB instance for transitional soy proto support:
24028
+ * http://goto/soy-param-migration
24029
+ * @param {!proto.payment.UpdateCurrencyRequest} msg The msg instance to transform.
24030
+ * @return {!Object}
24031
+ * @suppress {unusedLocalVariables} f is only used for nested messages
24032
+ */
24033
+ proto.payment.UpdateCurrencyRequest.toObject = function(includeInstance, msg) {
24034
+ var f, obj = {
24035
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
24036
+ isActive: jspb.Message.getFieldWithDefault(msg, 2, 0),
24037
+ adminUpdatedId: jspb.Message.getFieldWithDefault(msg, 3, 0)
24038
+ };
24039
+
24040
+ if (includeInstance) {
24041
+ obj.$jspbMessageInstance = msg;
24042
+ }
24043
+ return obj;
24044
+ };
24045
+ }
24046
+
24047
+
24048
+ /**
24049
+ * Deserializes binary data (in protobuf wire format).
24050
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
24051
+ * @return {!proto.payment.UpdateCurrencyRequest}
24052
+ */
24053
+ proto.payment.UpdateCurrencyRequest.deserializeBinary = function(bytes) {
24054
+ var reader = new jspb.BinaryReader(bytes);
24055
+ var msg = new proto.payment.UpdateCurrencyRequest;
24056
+ return proto.payment.UpdateCurrencyRequest.deserializeBinaryFromReader(msg, reader);
24057
+ };
24058
+
24059
+
24060
+ /**
24061
+ * Deserializes binary data (in protobuf wire format) from the
24062
+ * given reader into the given message object.
24063
+ * @param {!proto.payment.UpdateCurrencyRequest} msg The message object to deserialize into.
24064
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
24065
+ * @return {!proto.payment.UpdateCurrencyRequest}
24066
+ */
24067
+ proto.payment.UpdateCurrencyRequest.deserializeBinaryFromReader = function(msg, reader) {
24068
+ while (reader.nextField()) {
24069
+ if (reader.isEndGroup()) {
24070
+ break;
24071
+ }
24072
+ var field = reader.getFieldNumber();
24073
+ switch (field) {
24074
+ case 1:
24075
+ var value = /** @type {number} */ (reader.readInt32());
24076
+ msg.setId(value);
24077
+ break;
24078
+ case 2:
24079
+ var value = /** @type {number} */ (reader.readInt32());
24080
+ msg.setIsActive(value);
24081
+ break;
24082
+ case 3:
24083
+ var value = /** @type {number} */ (reader.readInt32());
24084
+ msg.setAdminUpdatedId(value);
24085
+ break;
24086
+ default:
24087
+ reader.skipField();
24088
+ break;
24089
+ }
24090
+ }
24091
+ return msg;
24092
+ };
24093
+
24094
+
24095
+ /**
24096
+ * Serializes the message to binary data (in protobuf wire format).
24097
+ * @return {!Uint8Array}
24098
+ */
24099
+ proto.payment.UpdateCurrencyRequest.prototype.serializeBinary = function() {
24100
+ var writer = new jspb.BinaryWriter();
24101
+ proto.payment.UpdateCurrencyRequest.serializeBinaryToWriter(this, writer);
24102
+ return writer.getResultBuffer();
24103
+ };
24104
+
24105
+
24106
+ /**
24107
+ * Serializes the given message to binary data (in protobuf wire
24108
+ * format), writing to the given BinaryWriter.
24109
+ * @param {!proto.payment.UpdateCurrencyRequest} message
24110
+ * @param {!jspb.BinaryWriter} writer
24111
+ * @suppress {unusedLocalVariables} f is only used for nested messages
24112
+ */
24113
+ proto.payment.UpdateCurrencyRequest.serializeBinaryToWriter = function(message, writer) {
24114
+ var f = undefined;
24115
+ f = message.getId();
24116
+ if (f !== 0) {
24117
+ writer.writeInt32(
24118
+ 1,
24119
+ f
24120
+ );
24121
+ }
24122
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
24123
+ if (f != null) {
24124
+ writer.writeInt32(
24125
+ 2,
24126
+ f
24127
+ );
24128
+ }
24129
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
24130
+ if (f != null) {
24131
+ writer.writeInt32(
24132
+ 3,
24133
+ f
24134
+ );
24135
+ }
24136
+ };
24137
+
24138
+
24139
+ /**
24140
+ * optional int32 id = 1;
24141
+ * @return {number}
24142
+ */
24143
+ proto.payment.UpdateCurrencyRequest.prototype.getId = function() {
24144
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
24145
+ };
24146
+
24147
+
24148
+ /**
24149
+ * @param {number} value
24150
+ * @return {!proto.payment.UpdateCurrencyRequest} returns this
24151
+ */
24152
+ proto.payment.UpdateCurrencyRequest.prototype.setId = function(value) {
24153
+ return jspb.Message.setProto3IntField(this, 1, value);
24154
+ };
24155
+
24156
+
24157
+ /**
24158
+ * optional int32 is_active = 2;
24159
+ * @return {number}
24160
+ */
24161
+ proto.payment.UpdateCurrencyRequest.prototype.getIsActive = function() {
24162
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
24163
+ };
24164
+
24165
+
24166
+ /**
24167
+ * @param {number} value
24168
+ * @return {!proto.payment.UpdateCurrencyRequest} returns this
24169
+ */
24170
+ proto.payment.UpdateCurrencyRequest.prototype.setIsActive = function(value) {
24171
+ return jspb.Message.setField(this, 2, value);
24172
+ };
24173
+
24174
+
24175
+ /**
24176
+ * Clears the field making it undefined.
24177
+ * @return {!proto.payment.UpdateCurrencyRequest} returns this
24178
+ */
24179
+ proto.payment.UpdateCurrencyRequest.prototype.clearIsActive = function() {
24180
+ return jspb.Message.setField(this, 2, undefined);
24181
+ };
24182
+
24183
+
24184
+ /**
24185
+ * Returns whether this field is set.
24186
+ * @return {boolean}
24187
+ */
24188
+ proto.payment.UpdateCurrencyRequest.prototype.hasIsActive = function() {
24189
+ return jspb.Message.getField(this, 2) != null;
24190
+ };
24191
+
24192
+
24193
+ /**
24194
+ * optional int32 admin_updated_id = 3;
24195
+ * @return {number}
24196
+ */
24197
+ proto.payment.UpdateCurrencyRequest.prototype.getAdminUpdatedId = function() {
24198
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
24199
+ };
24200
+
24201
+
24202
+ /**
24203
+ * @param {number} value
24204
+ * @return {!proto.payment.UpdateCurrencyRequest} returns this
24205
+ */
24206
+ proto.payment.UpdateCurrencyRequest.prototype.setAdminUpdatedId = function(value) {
24207
+ return jspb.Message.setField(this, 3, value);
24208
+ };
24209
+
24210
+
24211
+ /**
24212
+ * Clears the field making it undefined.
24213
+ * @return {!proto.payment.UpdateCurrencyRequest} returns this
24214
+ */
24215
+ proto.payment.UpdateCurrencyRequest.prototype.clearAdminUpdatedId = function() {
24216
+ return jspb.Message.setField(this, 3, undefined);
24217
+ };
24218
+
24219
+
24220
+ /**
24221
+ * Returns whether this field is set.
24222
+ * @return {boolean}
24223
+ */
24224
+ proto.payment.UpdateCurrencyRequest.prototype.hasAdminUpdatedId = function() {
24225
+ return jspb.Message.getField(this, 3) != null;
24226
+ };
24227
+
24228
+
24229
+
24230
+
24231
+
23936
24232
  if (jspb.Message.GENERATE_TO_OBJECT) {
23937
24233
  /**
23938
24234
  * Creates an object representation of this proto.