protobuf-platform 1.2.327 → 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.
- package/cms/cms.proto +3 -0
- package/cms/cms_pb.js +146 -2
- package/config/config.proto +11 -0
- package/config/config_grpc_pb.js +22 -0
- package/config/config_pb.js +431 -1
- package/package.json +1 -1
- package/payment/payment.proto +6 -0
- package/payment/payment_grpc_pb.js +22 -0
- package/payment/payment_pb.js +248 -0
package/cms/cms.proto
CHANGED
|
@@ -379,6 +379,7 @@ message PageRequest {
|
|
|
379
379
|
optional string title = 3;
|
|
380
380
|
optional string content = 4;
|
|
381
381
|
optional int32 is_active = 5;
|
|
382
|
+
optional string effective_from = 6;
|
|
382
383
|
}
|
|
383
384
|
message PageItem {
|
|
384
385
|
int32 id = 1;
|
|
@@ -387,6 +388,8 @@ message PageItem {
|
|
|
387
388
|
optional string content = 4;
|
|
388
389
|
optional int32 is_active = 5;
|
|
389
390
|
repeated TranslationItem translations = 6;
|
|
391
|
+
optional string effective_from = 7;
|
|
392
|
+
optional string last_updated = 8;
|
|
390
393
|
}
|
|
391
394
|
message PageResponse {
|
|
392
395
|
PageItem data = 1;
|
package/cms/cms_pb.js
CHANGED
|
@@ -15185,7 +15185,8 @@ proto.cms.PageRequest.toObject = function(includeInstance, msg) {
|
|
|
15185
15185
|
slug: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
15186
15186
|
title: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
15187
15187
|
content: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
15188
|
-
isActive: jspb.Message.getFieldWithDefault(msg, 5, 0)
|
|
15188
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
15189
|
+
effectiveFrom: jspb.Message.getFieldWithDefault(msg, 6, "")
|
|
15189
15190
|
};
|
|
15190
15191
|
|
|
15191
15192
|
if (includeInstance) {
|
|
@@ -15242,6 +15243,10 @@ proto.cms.PageRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
15242
15243
|
var value = /** @type {number} */ (reader.readInt32());
|
|
15243
15244
|
msg.setIsActive(value);
|
|
15244
15245
|
break;
|
|
15246
|
+
case 6:
|
|
15247
|
+
var value = /** @type {string} */ (reader.readString());
|
|
15248
|
+
msg.setEffectiveFrom(value);
|
|
15249
|
+
break;
|
|
15245
15250
|
default:
|
|
15246
15251
|
reader.skipField();
|
|
15247
15252
|
break;
|
|
@@ -15306,6 +15311,13 @@ proto.cms.PageRequest.serializeBinaryToWriter = function(message, writer) {
|
|
|
15306
15311
|
f
|
|
15307
15312
|
);
|
|
15308
15313
|
}
|
|
15314
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 6));
|
|
15315
|
+
if (f != null) {
|
|
15316
|
+
writer.writeString(
|
|
15317
|
+
6,
|
|
15318
|
+
f
|
|
15319
|
+
);
|
|
15320
|
+
}
|
|
15309
15321
|
};
|
|
15310
15322
|
|
|
15311
15323
|
|
|
@@ -15489,6 +15501,42 @@ proto.cms.PageRequest.prototype.hasIsActive = function() {
|
|
|
15489
15501
|
};
|
|
15490
15502
|
|
|
15491
15503
|
|
|
15504
|
+
/**
|
|
15505
|
+
* optional string effective_from = 6;
|
|
15506
|
+
* @return {string}
|
|
15507
|
+
*/
|
|
15508
|
+
proto.cms.PageRequest.prototype.getEffectiveFrom = function() {
|
|
15509
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
15510
|
+
};
|
|
15511
|
+
|
|
15512
|
+
|
|
15513
|
+
/**
|
|
15514
|
+
* @param {string} value
|
|
15515
|
+
* @return {!proto.cms.PageRequest} returns this
|
|
15516
|
+
*/
|
|
15517
|
+
proto.cms.PageRequest.prototype.setEffectiveFrom = function(value) {
|
|
15518
|
+
return jspb.Message.setField(this, 6, value);
|
|
15519
|
+
};
|
|
15520
|
+
|
|
15521
|
+
|
|
15522
|
+
/**
|
|
15523
|
+
* Clears the field making it undefined.
|
|
15524
|
+
* @return {!proto.cms.PageRequest} returns this
|
|
15525
|
+
*/
|
|
15526
|
+
proto.cms.PageRequest.prototype.clearEffectiveFrom = function() {
|
|
15527
|
+
return jspb.Message.setField(this, 6, undefined);
|
|
15528
|
+
};
|
|
15529
|
+
|
|
15530
|
+
|
|
15531
|
+
/**
|
|
15532
|
+
* Returns whether this field is set.
|
|
15533
|
+
* @return {boolean}
|
|
15534
|
+
*/
|
|
15535
|
+
proto.cms.PageRequest.prototype.hasEffectiveFrom = function() {
|
|
15536
|
+
return jspb.Message.getField(this, 6) != null;
|
|
15537
|
+
};
|
|
15538
|
+
|
|
15539
|
+
|
|
15492
15540
|
|
|
15493
15541
|
/**
|
|
15494
15542
|
* List of repeated fields within this message type.
|
|
@@ -15534,7 +15582,9 @@ proto.cms.PageItem.toObject = function(includeInstance, msg) {
|
|
|
15534
15582
|
content: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
15535
15583
|
isActive: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
15536
15584
|
translationsList: jspb.Message.toObjectList(msg.getTranslationsList(),
|
|
15537
|
-
proto.cms.TranslationItem.toObject, includeInstance)
|
|
15585
|
+
proto.cms.TranslationItem.toObject, includeInstance),
|
|
15586
|
+
effectiveFrom: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
15587
|
+
lastUpdated: jspb.Message.getFieldWithDefault(msg, 8, "")
|
|
15538
15588
|
};
|
|
15539
15589
|
|
|
15540
15590
|
if (includeInstance) {
|
|
@@ -15596,6 +15646,14 @@ proto.cms.PageItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
15596
15646
|
reader.readMessage(value,proto.cms.TranslationItem.deserializeBinaryFromReader);
|
|
15597
15647
|
msg.addTranslations(value);
|
|
15598
15648
|
break;
|
|
15649
|
+
case 7:
|
|
15650
|
+
var value = /** @type {string} */ (reader.readString());
|
|
15651
|
+
msg.setEffectiveFrom(value);
|
|
15652
|
+
break;
|
|
15653
|
+
case 8:
|
|
15654
|
+
var value = /** @type {string} */ (reader.readString());
|
|
15655
|
+
msg.setLastUpdated(value);
|
|
15656
|
+
break;
|
|
15599
15657
|
default:
|
|
15600
15658
|
reader.skipField();
|
|
15601
15659
|
break;
|
|
@@ -15668,6 +15726,20 @@ proto.cms.PageItem.serializeBinaryToWriter = function(message, writer) {
|
|
|
15668
15726
|
proto.cms.TranslationItem.serializeBinaryToWriter
|
|
15669
15727
|
);
|
|
15670
15728
|
}
|
|
15729
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 7));
|
|
15730
|
+
if (f != null) {
|
|
15731
|
+
writer.writeString(
|
|
15732
|
+
7,
|
|
15733
|
+
f
|
|
15734
|
+
);
|
|
15735
|
+
}
|
|
15736
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 8));
|
|
15737
|
+
if (f != null) {
|
|
15738
|
+
writer.writeString(
|
|
15739
|
+
8,
|
|
15740
|
+
f
|
|
15741
|
+
);
|
|
15742
|
+
}
|
|
15671
15743
|
};
|
|
15672
15744
|
|
|
15673
15745
|
|
|
@@ -15835,6 +15907,78 @@ proto.cms.PageItem.prototype.clearTranslationsList = function() {
|
|
|
15835
15907
|
};
|
|
15836
15908
|
|
|
15837
15909
|
|
|
15910
|
+
/**
|
|
15911
|
+
* optional string effective_from = 7;
|
|
15912
|
+
* @return {string}
|
|
15913
|
+
*/
|
|
15914
|
+
proto.cms.PageItem.prototype.getEffectiveFrom = function() {
|
|
15915
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
15916
|
+
};
|
|
15917
|
+
|
|
15918
|
+
|
|
15919
|
+
/**
|
|
15920
|
+
* @param {string} value
|
|
15921
|
+
* @return {!proto.cms.PageItem} returns this
|
|
15922
|
+
*/
|
|
15923
|
+
proto.cms.PageItem.prototype.setEffectiveFrom = function(value) {
|
|
15924
|
+
return jspb.Message.setField(this, 7, value);
|
|
15925
|
+
};
|
|
15926
|
+
|
|
15927
|
+
|
|
15928
|
+
/**
|
|
15929
|
+
* Clears the field making it undefined.
|
|
15930
|
+
* @return {!proto.cms.PageItem} returns this
|
|
15931
|
+
*/
|
|
15932
|
+
proto.cms.PageItem.prototype.clearEffectiveFrom = function() {
|
|
15933
|
+
return jspb.Message.setField(this, 7, undefined);
|
|
15934
|
+
};
|
|
15935
|
+
|
|
15936
|
+
|
|
15937
|
+
/**
|
|
15938
|
+
* Returns whether this field is set.
|
|
15939
|
+
* @return {boolean}
|
|
15940
|
+
*/
|
|
15941
|
+
proto.cms.PageItem.prototype.hasEffectiveFrom = function() {
|
|
15942
|
+
return jspb.Message.getField(this, 7) != null;
|
|
15943
|
+
};
|
|
15944
|
+
|
|
15945
|
+
|
|
15946
|
+
/**
|
|
15947
|
+
* optional string last_updated = 8;
|
|
15948
|
+
* @return {string}
|
|
15949
|
+
*/
|
|
15950
|
+
proto.cms.PageItem.prototype.getLastUpdated = function() {
|
|
15951
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
15952
|
+
};
|
|
15953
|
+
|
|
15954
|
+
|
|
15955
|
+
/**
|
|
15956
|
+
* @param {string} value
|
|
15957
|
+
* @return {!proto.cms.PageItem} returns this
|
|
15958
|
+
*/
|
|
15959
|
+
proto.cms.PageItem.prototype.setLastUpdated = function(value) {
|
|
15960
|
+
return jspb.Message.setField(this, 8, value);
|
|
15961
|
+
};
|
|
15962
|
+
|
|
15963
|
+
|
|
15964
|
+
/**
|
|
15965
|
+
* Clears the field making it undefined.
|
|
15966
|
+
* @return {!proto.cms.PageItem} returns this
|
|
15967
|
+
*/
|
|
15968
|
+
proto.cms.PageItem.prototype.clearLastUpdated = function() {
|
|
15969
|
+
return jspb.Message.setField(this, 8, undefined);
|
|
15970
|
+
};
|
|
15971
|
+
|
|
15972
|
+
|
|
15973
|
+
/**
|
|
15974
|
+
* Returns whether this field is set.
|
|
15975
|
+
* @return {boolean}
|
|
15976
|
+
*/
|
|
15977
|
+
proto.cms.PageItem.prototype.hasLastUpdated = function() {
|
|
15978
|
+
return jspb.Message.getField(this, 8) != null;
|
|
15979
|
+
};
|
|
15980
|
+
|
|
15981
|
+
|
|
15838
15982
|
|
|
15839
15983
|
|
|
15840
15984
|
|
package/config/config.proto
CHANGED
|
@@ -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 {
|
package/config/config_grpc_pb.js
CHANGED
|
@@ -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',
|
package/config/config_pb.js
CHANGED
|
@@ -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
package/payment/payment.proto
CHANGED
|
@@ -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,
|
package/payment/payment_pb.js
CHANGED
|
@@ -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.
|