protobuf-platform 1.2.753 → 1.2.754
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/config/config.proto +25 -1
- package/config/config_grpc_pb.js +33 -0
- package/config/config_pb.js +902 -0
- package/package.json +1 -1
- package/scripts/verifyHistoricalFxContract.js +20 -0
package/config/config.proto
CHANGED
|
@@ -17,6 +17,7 @@ service Config {
|
|
|
17
17
|
rpc getCurrenciesRates(CurrenciesRatesRequest) returns (CurrenciesRatesResponse);
|
|
18
18
|
rpc refreshCurrenciesRates(RefreshCurrenciesRatesRequest) returns (CurrenciesRatesResponse);
|
|
19
19
|
rpc getCurrencyRatesMap(CurrencyRatesMapRequest) returns (CurrencyRatesMapResponse);
|
|
20
|
+
rpc getHistoricalCurrencyRates(HistoricalCurrencyRatesRequest) returns (HistoricalCurrencyRatesResponse);
|
|
20
21
|
rpc setManualCurrencyRate(SetManualCurrencyRateRequest) returns (CurrencyRateItemResponse);
|
|
21
22
|
//Countries
|
|
22
23
|
rpc getCountriesList(PaginationRequest) returns (CountriesResponse);
|
|
@@ -402,4 +403,27 @@ message CloudflareCacheInvalidationTargetResult {
|
|
|
402
403
|
message InvalidateCloudflareCacheResponse {
|
|
403
404
|
string status = 1;
|
|
404
405
|
repeated CloudflareCacheInvalidationTargetResult results = 2;
|
|
405
|
-
}
|
|
406
|
+
}
|
|
407
|
+
// Reference valuations only; never original settlement evidence. Rate direction is base -> quote.
|
|
408
|
+
message HistoricalCurrencyRatesRequest {
|
|
409
|
+
string environment = 1;
|
|
410
|
+
string customer = 2;
|
|
411
|
+
string utc_date = 3;
|
|
412
|
+
string base_currency = 4;
|
|
413
|
+
repeated string quote_currencies = 5; // 1..32 unique assets
|
|
414
|
+
}
|
|
415
|
+
message HistoricalCurrencyRateItem {
|
|
416
|
+
string base_currency = 1;
|
|
417
|
+
string quote_currency = 2;
|
|
418
|
+
string requested_date = 3;
|
|
419
|
+
string effective_date = 4;
|
|
420
|
+
string rate_decimal = 5; // Empty when unresolved; never a double.
|
|
421
|
+
string source = 6;
|
|
422
|
+
string provenance = 7;
|
|
423
|
+
uint32 precision = 8;
|
|
424
|
+
string unresolved_reason = 9;
|
|
425
|
+
string evidence_json = 10; // Original decimal text and provider observation dates.
|
|
426
|
+
}
|
|
427
|
+
message HistoricalCurrencyRatesResponse {
|
|
428
|
+
repeated HistoricalCurrencyRateItem items = 1;
|
|
429
|
+
}
|
package/config/config_grpc_pb.js
CHANGED
|
@@ -235,6 +235,28 @@ function deserialize_config_GlobalDataRequest(buffer_arg) {
|
|
|
235
235
|
return config_pb.GlobalDataRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
236
236
|
}
|
|
237
237
|
|
|
238
|
+
function serialize_config_HistoricalCurrencyRatesRequest(arg) {
|
|
239
|
+
if (!(arg instanceof config_pb.HistoricalCurrencyRatesRequest)) {
|
|
240
|
+
throw new Error('Expected argument of type config.HistoricalCurrencyRatesRequest');
|
|
241
|
+
}
|
|
242
|
+
return Buffer.from(arg.serializeBinary());
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
function deserialize_config_HistoricalCurrencyRatesRequest(buffer_arg) {
|
|
246
|
+
return config_pb.HistoricalCurrencyRatesRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
function serialize_config_HistoricalCurrencyRatesResponse(arg) {
|
|
250
|
+
if (!(arg instanceof config_pb.HistoricalCurrencyRatesResponse)) {
|
|
251
|
+
throw new Error('Expected argument of type config.HistoricalCurrencyRatesResponse');
|
|
252
|
+
}
|
|
253
|
+
return Buffer.from(arg.serializeBinary());
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
function deserialize_config_HistoricalCurrencyRatesResponse(buffer_arg) {
|
|
257
|
+
return config_pb.HistoricalCurrencyRatesResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
258
|
+
}
|
|
259
|
+
|
|
238
260
|
function serialize_config_InvalidateCloudflareCacheRequest(arg) {
|
|
239
261
|
if (!(arg instanceof config_pb.InvalidateCloudflareCacheRequest)) {
|
|
240
262
|
throw new Error('Expected argument of type config.InvalidateCloudflareCacheRequest');
|
|
@@ -648,6 +670,17 @@ getCurrencyRate: {
|
|
|
648
670
|
responseSerialize: serialize_config_CurrencyRatesMapResponse,
|
|
649
671
|
responseDeserialize: deserialize_config_CurrencyRatesMapResponse,
|
|
650
672
|
},
|
|
673
|
+
getHistoricalCurrencyRates: {
|
|
674
|
+
path: '/config.Config/getHistoricalCurrencyRates',
|
|
675
|
+
requestStream: false,
|
|
676
|
+
responseStream: false,
|
|
677
|
+
requestType: config_pb.HistoricalCurrencyRatesRequest,
|
|
678
|
+
responseType: config_pb.HistoricalCurrencyRatesResponse,
|
|
679
|
+
requestSerialize: serialize_config_HistoricalCurrencyRatesRequest,
|
|
680
|
+
requestDeserialize: deserialize_config_HistoricalCurrencyRatesRequest,
|
|
681
|
+
responseSerialize: serialize_config_HistoricalCurrencyRatesResponse,
|
|
682
|
+
responseDeserialize: deserialize_config_HistoricalCurrencyRatesResponse,
|
|
683
|
+
},
|
|
651
684
|
setManualCurrencyRate: {
|
|
652
685
|
path: '/config.Config/setManualCurrencyRate',
|
|
653
686
|
requestStream: false,
|
package/config/config_pb.js
CHANGED
|
@@ -49,6 +49,9 @@ goog.exportSymbol('proto.config.GetPrivateR2DownloadUrlRequest', null, global);
|
|
|
49
49
|
goog.exportSymbol('proto.config.GetPrivateR2DownloadUrlResponse', null, global);
|
|
50
50
|
goog.exportSymbol('proto.config.GetZoneRequest', null, global);
|
|
51
51
|
goog.exportSymbol('proto.config.GlobalDataRequest', null, global);
|
|
52
|
+
goog.exportSymbol('proto.config.HistoricalCurrencyRateItem', null, global);
|
|
53
|
+
goog.exportSymbol('proto.config.HistoricalCurrencyRatesRequest', null, global);
|
|
54
|
+
goog.exportSymbol('proto.config.HistoricalCurrencyRatesResponse', null, global);
|
|
52
55
|
goog.exportSymbol('proto.config.InvalidateCloudflareCacheRequest', null, global);
|
|
53
56
|
goog.exportSymbol('proto.config.InvalidateCloudflareCacheResponse', null, global);
|
|
54
57
|
goog.exportSymbol('proto.config.MirrorCountriesRequest', null, global);
|
|
@@ -1276,6 +1279,69 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
1276
1279
|
*/
|
|
1277
1280
|
proto.config.InvalidateCloudflareCacheResponse.displayName = 'proto.config.InvalidateCloudflareCacheResponse';
|
|
1278
1281
|
}
|
|
1282
|
+
/**
|
|
1283
|
+
* Generated by JsPbCodeGenerator.
|
|
1284
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1285
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1286
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1287
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1288
|
+
* valid.
|
|
1289
|
+
* @extends {jspb.Message}
|
|
1290
|
+
* @constructor
|
|
1291
|
+
*/
|
|
1292
|
+
proto.config.HistoricalCurrencyRatesRequest = function(opt_data) {
|
|
1293
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.config.HistoricalCurrencyRatesRequest.repeatedFields_, null);
|
|
1294
|
+
};
|
|
1295
|
+
goog.inherits(proto.config.HistoricalCurrencyRatesRequest, jspb.Message);
|
|
1296
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1297
|
+
/**
|
|
1298
|
+
* @public
|
|
1299
|
+
* @override
|
|
1300
|
+
*/
|
|
1301
|
+
proto.config.HistoricalCurrencyRatesRequest.displayName = 'proto.config.HistoricalCurrencyRatesRequest';
|
|
1302
|
+
}
|
|
1303
|
+
/**
|
|
1304
|
+
* Generated by JsPbCodeGenerator.
|
|
1305
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1306
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1307
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1308
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1309
|
+
* valid.
|
|
1310
|
+
* @extends {jspb.Message}
|
|
1311
|
+
* @constructor
|
|
1312
|
+
*/
|
|
1313
|
+
proto.config.HistoricalCurrencyRateItem = function(opt_data) {
|
|
1314
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1315
|
+
};
|
|
1316
|
+
goog.inherits(proto.config.HistoricalCurrencyRateItem, jspb.Message);
|
|
1317
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1318
|
+
/**
|
|
1319
|
+
* @public
|
|
1320
|
+
* @override
|
|
1321
|
+
*/
|
|
1322
|
+
proto.config.HistoricalCurrencyRateItem.displayName = 'proto.config.HistoricalCurrencyRateItem';
|
|
1323
|
+
}
|
|
1324
|
+
/**
|
|
1325
|
+
* Generated by JsPbCodeGenerator.
|
|
1326
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1327
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1328
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1329
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1330
|
+
* valid.
|
|
1331
|
+
* @extends {jspb.Message}
|
|
1332
|
+
* @constructor
|
|
1333
|
+
*/
|
|
1334
|
+
proto.config.HistoricalCurrencyRatesResponse = function(opt_data) {
|
|
1335
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.config.HistoricalCurrencyRatesResponse.repeatedFields_, null);
|
|
1336
|
+
};
|
|
1337
|
+
goog.inherits(proto.config.HistoricalCurrencyRatesResponse, jspb.Message);
|
|
1338
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1339
|
+
/**
|
|
1340
|
+
* @public
|
|
1341
|
+
* @override
|
|
1342
|
+
*/
|
|
1343
|
+
proto.config.HistoricalCurrencyRatesResponse.displayName = 'proto.config.HistoricalCurrencyRatesResponse';
|
|
1344
|
+
}
|
|
1279
1345
|
|
|
1280
1346
|
|
|
1281
1347
|
|
|
@@ -16253,6 +16319,842 @@ proto.config.InvalidateCloudflareCacheResponse.prototype.clearResultsList = func
|
|
|
16253
16319
|
};
|
|
16254
16320
|
|
|
16255
16321
|
|
|
16322
|
+
|
|
16323
|
+
/**
|
|
16324
|
+
* List of repeated fields within this message type.
|
|
16325
|
+
* @private {!Array<number>}
|
|
16326
|
+
* @const
|
|
16327
|
+
*/
|
|
16328
|
+
proto.config.HistoricalCurrencyRatesRequest.repeatedFields_ = [5];
|
|
16329
|
+
|
|
16330
|
+
|
|
16331
|
+
|
|
16332
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
16333
|
+
/**
|
|
16334
|
+
* Creates an object representation of this proto.
|
|
16335
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
16336
|
+
* Optional fields that are not set will be set to undefined.
|
|
16337
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
16338
|
+
* For the list of reserved names please see:
|
|
16339
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
16340
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
16341
|
+
* JSPB instance for transitional soy proto support:
|
|
16342
|
+
* http://goto/soy-param-migration
|
|
16343
|
+
* @return {!Object}
|
|
16344
|
+
*/
|
|
16345
|
+
proto.config.HistoricalCurrencyRatesRequest.prototype.toObject = function(opt_includeInstance) {
|
|
16346
|
+
return proto.config.HistoricalCurrencyRatesRequest.toObject(opt_includeInstance, this);
|
|
16347
|
+
};
|
|
16348
|
+
|
|
16349
|
+
|
|
16350
|
+
/**
|
|
16351
|
+
* Static version of the {@see toObject} method.
|
|
16352
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
16353
|
+
* the JSPB instance for transitional soy proto support:
|
|
16354
|
+
* http://goto/soy-param-migration
|
|
16355
|
+
* @param {!proto.config.HistoricalCurrencyRatesRequest} msg The msg instance to transform.
|
|
16356
|
+
* @return {!Object}
|
|
16357
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
16358
|
+
*/
|
|
16359
|
+
proto.config.HistoricalCurrencyRatesRequest.toObject = function(includeInstance, msg) {
|
|
16360
|
+
var f, obj = {
|
|
16361
|
+
environment: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
16362
|
+
customer: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
16363
|
+
utcDate: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
16364
|
+
baseCurrency: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
16365
|
+
quoteCurrenciesList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f
|
|
16366
|
+
};
|
|
16367
|
+
|
|
16368
|
+
if (includeInstance) {
|
|
16369
|
+
obj.$jspbMessageInstance = msg;
|
|
16370
|
+
}
|
|
16371
|
+
return obj;
|
|
16372
|
+
};
|
|
16373
|
+
}
|
|
16374
|
+
|
|
16375
|
+
|
|
16376
|
+
/**
|
|
16377
|
+
* Deserializes binary data (in protobuf wire format).
|
|
16378
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
16379
|
+
* @return {!proto.config.HistoricalCurrencyRatesRequest}
|
|
16380
|
+
*/
|
|
16381
|
+
proto.config.HistoricalCurrencyRatesRequest.deserializeBinary = function(bytes) {
|
|
16382
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
16383
|
+
var msg = new proto.config.HistoricalCurrencyRatesRequest;
|
|
16384
|
+
return proto.config.HistoricalCurrencyRatesRequest.deserializeBinaryFromReader(msg, reader);
|
|
16385
|
+
};
|
|
16386
|
+
|
|
16387
|
+
|
|
16388
|
+
/**
|
|
16389
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
16390
|
+
* given reader into the given message object.
|
|
16391
|
+
* @param {!proto.config.HistoricalCurrencyRatesRequest} msg The message object to deserialize into.
|
|
16392
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
16393
|
+
* @return {!proto.config.HistoricalCurrencyRatesRequest}
|
|
16394
|
+
*/
|
|
16395
|
+
proto.config.HistoricalCurrencyRatesRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
16396
|
+
while (reader.nextField()) {
|
|
16397
|
+
if (reader.isEndGroup()) {
|
|
16398
|
+
break;
|
|
16399
|
+
}
|
|
16400
|
+
var field = reader.getFieldNumber();
|
|
16401
|
+
switch (field) {
|
|
16402
|
+
case 1:
|
|
16403
|
+
var value = /** @type {string} */ (reader.readString());
|
|
16404
|
+
msg.setEnvironment(value);
|
|
16405
|
+
break;
|
|
16406
|
+
case 2:
|
|
16407
|
+
var value = /** @type {string} */ (reader.readString());
|
|
16408
|
+
msg.setCustomer(value);
|
|
16409
|
+
break;
|
|
16410
|
+
case 3:
|
|
16411
|
+
var value = /** @type {string} */ (reader.readString());
|
|
16412
|
+
msg.setUtcDate(value);
|
|
16413
|
+
break;
|
|
16414
|
+
case 4:
|
|
16415
|
+
var value = /** @type {string} */ (reader.readString());
|
|
16416
|
+
msg.setBaseCurrency(value);
|
|
16417
|
+
break;
|
|
16418
|
+
case 5:
|
|
16419
|
+
var value = /** @type {string} */ (reader.readString());
|
|
16420
|
+
msg.addQuoteCurrencies(value);
|
|
16421
|
+
break;
|
|
16422
|
+
default:
|
|
16423
|
+
reader.skipField();
|
|
16424
|
+
break;
|
|
16425
|
+
}
|
|
16426
|
+
}
|
|
16427
|
+
return msg;
|
|
16428
|
+
};
|
|
16429
|
+
|
|
16430
|
+
|
|
16431
|
+
/**
|
|
16432
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
16433
|
+
* @return {!Uint8Array}
|
|
16434
|
+
*/
|
|
16435
|
+
proto.config.HistoricalCurrencyRatesRequest.prototype.serializeBinary = function() {
|
|
16436
|
+
var writer = new jspb.BinaryWriter();
|
|
16437
|
+
proto.config.HistoricalCurrencyRatesRequest.serializeBinaryToWriter(this, writer);
|
|
16438
|
+
return writer.getResultBuffer();
|
|
16439
|
+
};
|
|
16440
|
+
|
|
16441
|
+
|
|
16442
|
+
/**
|
|
16443
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
16444
|
+
* format), writing to the given BinaryWriter.
|
|
16445
|
+
* @param {!proto.config.HistoricalCurrencyRatesRequest} message
|
|
16446
|
+
* @param {!jspb.BinaryWriter} writer
|
|
16447
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
16448
|
+
*/
|
|
16449
|
+
proto.config.HistoricalCurrencyRatesRequest.serializeBinaryToWriter = function(message, writer) {
|
|
16450
|
+
var f = undefined;
|
|
16451
|
+
f = message.getEnvironment();
|
|
16452
|
+
if (f.length > 0) {
|
|
16453
|
+
writer.writeString(
|
|
16454
|
+
1,
|
|
16455
|
+
f
|
|
16456
|
+
);
|
|
16457
|
+
}
|
|
16458
|
+
f = message.getCustomer();
|
|
16459
|
+
if (f.length > 0) {
|
|
16460
|
+
writer.writeString(
|
|
16461
|
+
2,
|
|
16462
|
+
f
|
|
16463
|
+
);
|
|
16464
|
+
}
|
|
16465
|
+
f = message.getUtcDate();
|
|
16466
|
+
if (f.length > 0) {
|
|
16467
|
+
writer.writeString(
|
|
16468
|
+
3,
|
|
16469
|
+
f
|
|
16470
|
+
);
|
|
16471
|
+
}
|
|
16472
|
+
f = message.getBaseCurrency();
|
|
16473
|
+
if (f.length > 0) {
|
|
16474
|
+
writer.writeString(
|
|
16475
|
+
4,
|
|
16476
|
+
f
|
|
16477
|
+
);
|
|
16478
|
+
}
|
|
16479
|
+
f = message.getQuoteCurrenciesList();
|
|
16480
|
+
if (f.length > 0) {
|
|
16481
|
+
writer.writeRepeatedString(
|
|
16482
|
+
5,
|
|
16483
|
+
f
|
|
16484
|
+
);
|
|
16485
|
+
}
|
|
16486
|
+
};
|
|
16487
|
+
|
|
16488
|
+
|
|
16489
|
+
/**
|
|
16490
|
+
* optional string environment = 1;
|
|
16491
|
+
* @return {string}
|
|
16492
|
+
*/
|
|
16493
|
+
proto.config.HistoricalCurrencyRatesRequest.prototype.getEnvironment = function() {
|
|
16494
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
16495
|
+
};
|
|
16496
|
+
|
|
16497
|
+
|
|
16498
|
+
/**
|
|
16499
|
+
* @param {string} value
|
|
16500
|
+
* @return {!proto.config.HistoricalCurrencyRatesRequest} returns this
|
|
16501
|
+
*/
|
|
16502
|
+
proto.config.HistoricalCurrencyRatesRequest.prototype.setEnvironment = function(value) {
|
|
16503
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
16504
|
+
};
|
|
16505
|
+
|
|
16506
|
+
|
|
16507
|
+
/**
|
|
16508
|
+
* optional string customer = 2;
|
|
16509
|
+
* @return {string}
|
|
16510
|
+
*/
|
|
16511
|
+
proto.config.HistoricalCurrencyRatesRequest.prototype.getCustomer = function() {
|
|
16512
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
16513
|
+
};
|
|
16514
|
+
|
|
16515
|
+
|
|
16516
|
+
/**
|
|
16517
|
+
* @param {string} value
|
|
16518
|
+
* @return {!proto.config.HistoricalCurrencyRatesRequest} returns this
|
|
16519
|
+
*/
|
|
16520
|
+
proto.config.HistoricalCurrencyRatesRequest.prototype.setCustomer = function(value) {
|
|
16521
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
16522
|
+
};
|
|
16523
|
+
|
|
16524
|
+
|
|
16525
|
+
/**
|
|
16526
|
+
* optional string utc_date = 3;
|
|
16527
|
+
* @return {string}
|
|
16528
|
+
*/
|
|
16529
|
+
proto.config.HistoricalCurrencyRatesRequest.prototype.getUtcDate = function() {
|
|
16530
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
16531
|
+
};
|
|
16532
|
+
|
|
16533
|
+
|
|
16534
|
+
/**
|
|
16535
|
+
* @param {string} value
|
|
16536
|
+
* @return {!proto.config.HistoricalCurrencyRatesRequest} returns this
|
|
16537
|
+
*/
|
|
16538
|
+
proto.config.HistoricalCurrencyRatesRequest.prototype.setUtcDate = function(value) {
|
|
16539
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
16540
|
+
};
|
|
16541
|
+
|
|
16542
|
+
|
|
16543
|
+
/**
|
|
16544
|
+
* optional string base_currency = 4;
|
|
16545
|
+
* @return {string}
|
|
16546
|
+
*/
|
|
16547
|
+
proto.config.HistoricalCurrencyRatesRequest.prototype.getBaseCurrency = function() {
|
|
16548
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
16549
|
+
};
|
|
16550
|
+
|
|
16551
|
+
|
|
16552
|
+
/**
|
|
16553
|
+
* @param {string} value
|
|
16554
|
+
* @return {!proto.config.HistoricalCurrencyRatesRequest} returns this
|
|
16555
|
+
*/
|
|
16556
|
+
proto.config.HistoricalCurrencyRatesRequest.prototype.setBaseCurrency = function(value) {
|
|
16557
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
16558
|
+
};
|
|
16559
|
+
|
|
16560
|
+
|
|
16561
|
+
/**
|
|
16562
|
+
* repeated string quote_currencies = 5;
|
|
16563
|
+
* @return {!Array<string>}
|
|
16564
|
+
*/
|
|
16565
|
+
proto.config.HistoricalCurrencyRatesRequest.prototype.getQuoteCurrenciesList = function() {
|
|
16566
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 5));
|
|
16567
|
+
};
|
|
16568
|
+
|
|
16569
|
+
|
|
16570
|
+
/**
|
|
16571
|
+
* @param {!Array<string>} value
|
|
16572
|
+
* @return {!proto.config.HistoricalCurrencyRatesRequest} returns this
|
|
16573
|
+
*/
|
|
16574
|
+
proto.config.HistoricalCurrencyRatesRequest.prototype.setQuoteCurrenciesList = function(value) {
|
|
16575
|
+
return jspb.Message.setField(this, 5, value || []);
|
|
16576
|
+
};
|
|
16577
|
+
|
|
16578
|
+
|
|
16579
|
+
/**
|
|
16580
|
+
* @param {string} value
|
|
16581
|
+
* @param {number=} opt_index
|
|
16582
|
+
* @return {!proto.config.HistoricalCurrencyRatesRequest} returns this
|
|
16583
|
+
*/
|
|
16584
|
+
proto.config.HistoricalCurrencyRatesRequest.prototype.addQuoteCurrencies = function(value, opt_index) {
|
|
16585
|
+
return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
|
|
16586
|
+
};
|
|
16587
|
+
|
|
16588
|
+
|
|
16589
|
+
/**
|
|
16590
|
+
* Clears the list making it empty but non-null.
|
|
16591
|
+
* @return {!proto.config.HistoricalCurrencyRatesRequest} returns this
|
|
16592
|
+
*/
|
|
16593
|
+
proto.config.HistoricalCurrencyRatesRequest.prototype.clearQuoteCurrenciesList = function() {
|
|
16594
|
+
return this.setQuoteCurrenciesList([]);
|
|
16595
|
+
};
|
|
16596
|
+
|
|
16597
|
+
|
|
16598
|
+
|
|
16599
|
+
|
|
16600
|
+
|
|
16601
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
16602
|
+
/**
|
|
16603
|
+
* Creates an object representation of this proto.
|
|
16604
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
16605
|
+
* Optional fields that are not set will be set to undefined.
|
|
16606
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
16607
|
+
* For the list of reserved names please see:
|
|
16608
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
16609
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
16610
|
+
* JSPB instance for transitional soy proto support:
|
|
16611
|
+
* http://goto/soy-param-migration
|
|
16612
|
+
* @return {!Object}
|
|
16613
|
+
*/
|
|
16614
|
+
proto.config.HistoricalCurrencyRateItem.prototype.toObject = function(opt_includeInstance) {
|
|
16615
|
+
return proto.config.HistoricalCurrencyRateItem.toObject(opt_includeInstance, this);
|
|
16616
|
+
};
|
|
16617
|
+
|
|
16618
|
+
|
|
16619
|
+
/**
|
|
16620
|
+
* Static version of the {@see toObject} method.
|
|
16621
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
16622
|
+
* the JSPB instance for transitional soy proto support:
|
|
16623
|
+
* http://goto/soy-param-migration
|
|
16624
|
+
* @param {!proto.config.HistoricalCurrencyRateItem} msg The msg instance to transform.
|
|
16625
|
+
* @return {!Object}
|
|
16626
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
16627
|
+
*/
|
|
16628
|
+
proto.config.HistoricalCurrencyRateItem.toObject = function(includeInstance, msg) {
|
|
16629
|
+
var f, obj = {
|
|
16630
|
+
baseCurrency: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
16631
|
+
quoteCurrency: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
16632
|
+
requestedDate: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
16633
|
+
effectiveDate: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
16634
|
+
rateDecimal: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
16635
|
+
source: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
16636
|
+
provenance: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
16637
|
+
precision: jspb.Message.getFieldWithDefault(msg, 8, 0),
|
|
16638
|
+
unresolvedReason: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
16639
|
+
evidenceJson: jspb.Message.getFieldWithDefault(msg, 10, "")
|
|
16640
|
+
};
|
|
16641
|
+
|
|
16642
|
+
if (includeInstance) {
|
|
16643
|
+
obj.$jspbMessageInstance = msg;
|
|
16644
|
+
}
|
|
16645
|
+
return obj;
|
|
16646
|
+
};
|
|
16647
|
+
}
|
|
16648
|
+
|
|
16649
|
+
|
|
16650
|
+
/**
|
|
16651
|
+
* Deserializes binary data (in protobuf wire format).
|
|
16652
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
16653
|
+
* @return {!proto.config.HistoricalCurrencyRateItem}
|
|
16654
|
+
*/
|
|
16655
|
+
proto.config.HistoricalCurrencyRateItem.deserializeBinary = function(bytes) {
|
|
16656
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
16657
|
+
var msg = new proto.config.HistoricalCurrencyRateItem;
|
|
16658
|
+
return proto.config.HistoricalCurrencyRateItem.deserializeBinaryFromReader(msg, reader);
|
|
16659
|
+
};
|
|
16660
|
+
|
|
16661
|
+
|
|
16662
|
+
/**
|
|
16663
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
16664
|
+
* given reader into the given message object.
|
|
16665
|
+
* @param {!proto.config.HistoricalCurrencyRateItem} msg The message object to deserialize into.
|
|
16666
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
16667
|
+
* @return {!proto.config.HistoricalCurrencyRateItem}
|
|
16668
|
+
*/
|
|
16669
|
+
proto.config.HistoricalCurrencyRateItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
16670
|
+
while (reader.nextField()) {
|
|
16671
|
+
if (reader.isEndGroup()) {
|
|
16672
|
+
break;
|
|
16673
|
+
}
|
|
16674
|
+
var field = reader.getFieldNumber();
|
|
16675
|
+
switch (field) {
|
|
16676
|
+
case 1:
|
|
16677
|
+
var value = /** @type {string} */ (reader.readString());
|
|
16678
|
+
msg.setBaseCurrency(value);
|
|
16679
|
+
break;
|
|
16680
|
+
case 2:
|
|
16681
|
+
var value = /** @type {string} */ (reader.readString());
|
|
16682
|
+
msg.setQuoteCurrency(value);
|
|
16683
|
+
break;
|
|
16684
|
+
case 3:
|
|
16685
|
+
var value = /** @type {string} */ (reader.readString());
|
|
16686
|
+
msg.setRequestedDate(value);
|
|
16687
|
+
break;
|
|
16688
|
+
case 4:
|
|
16689
|
+
var value = /** @type {string} */ (reader.readString());
|
|
16690
|
+
msg.setEffectiveDate(value);
|
|
16691
|
+
break;
|
|
16692
|
+
case 5:
|
|
16693
|
+
var value = /** @type {string} */ (reader.readString());
|
|
16694
|
+
msg.setRateDecimal(value);
|
|
16695
|
+
break;
|
|
16696
|
+
case 6:
|
|
16697
|
+
var value = /** @type {string} */ (reader.readString());
|
|
16698
|
+
msg.setSource(value);
|
|
16699
|
+
break;
|
|
16700
|
+
case 7:
|
|
16701
|
+
var value = /** @type {string} */ (reader.readString());
|
|
16702
|
+
msg.setProvenance(value);
|
|
16703
|
+
break;
|
|
16704
|
+
case 8:
|
|
16705
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
16706
|
+
msg.setPrecision(value);
|
|
16707
|
+
break;
|
|
16708
|
+
case 9:
|
|
16709
|
+
var value = /** @type {string} */ (reader.readString());
|
|
16710
|
+
msg.setUnresolvedReason(value);
|
|
16711
|
+
break;
|
|
16712
|
+
case 10:
|
|
16713
|
+
var value = /** @type {string} */ (reader.readString());
|
|
16714
|
+
msg.setEvidenceJson(value);
|
|
16715
|
+
break;
|
|
16716
|
+
default:
|
|
16717
|
+
reader.skipField();
|
|
16718
|
+
break;
|
|
16719
|
+
}
|
|
16720
|
+
}
|
|
16721
|
+
return msg;
|
|
16722
|
+
};
|
|
16723
|
+
|
|
16724
|
+
|
|
16725
|
+
/**
|
|
16726
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
16727
|
+
* @return {!Uint8Array}
|
|
16728
|
+
*/
|
|
16729
|
+
proto.config.HistoricalCurrencyRateItem.prototype.serializeBinary = function() {
|
|
16730
|
+
var writer = new jspb.BinaryWriter();
|
|
16731
|
+
proto.config.HistoricalCurrencyRateItem.serializeBinaryToWriter(this, writer);
|
|
16732
|
+
return writer.getResultBuffer();
|
|
16733
|
+
};
|
|
16734
|
+
|
|
16735
|
+
|
|
16736
|
+
/**
|
|
16737
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
16738
|
+
* format), writing to the given BinaryWriter.
|
|
16739
|
+
* @param {!proto.config.HistoricalCurrencyRateItem} message
|
|
16740
|
+
* @param {!jspb.BinaryWriter} writer
|
|
16741
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
16742
|
+
*/
|
|
16743
|
+
proto.config.HistoricalCurrencyRateItem.serializeBinaryToWriter = function(message, writer) {
|
|
16744
|
+
var f = undefined;
|
|
16745
|
+
f = message.getBaseCurrency();
|
|
16746
|
+
if (f.length > 0) {
|
|
16747
|
+
writer.writeString(
|
|
16748
|
+
1,
|
|
16749
|
+
f
|
|
16750
|
+
);
|
|
16751
|
+
}
|
|
16752
|
+
f = message.getQuoteCurrency();
|
|
16753
|
+
if (f.length > 0) {
|
|
16754
|
+
writer.writeString(
|
|
16755
|
+
2,
|
|
16756
|
+
f
|
|
16757
|
+
);
|
|
16758
|
+
}
|
|
16759
|
+
f = message.getRequestedDate();
|
|
16760
|
+
if (f.length > 0) {
|
|
16761
|
+
writer.writeString(
|
|
16762
|
+
3,
|
|
16763
|
+
f
|
|
16764
|
+
);
|
|
16765
|
+
}
|
|
16766
|
+
f = message.getEffectiveDate();
|
|
16767
|
+
if (f.length > 0) {
|
|
16768
|
+
writer.writeString(
|
|
16769
|
+
4,
|
|
16770
|
+
f
|
|
16771
|
+
);
|
|
16772
|
+
}
|
|
16773
|
+
f = message.getRateDecimal();
|
|
16774
|
+
if (f.length > 0) {
|
|
16775
|
+
writer.writeString(
|
|
16776
|
+
5,
|
|
16777
|
+
f
|
|
16778
|
+
);
|
|
16779
|
+
}
|
|
16780
|
+
f = message.getSource();
|
|
16781
|
+
if (f.length > 0) {
|
|
16782
|
+
writer.writeString(
|
|
16783
|
+
6,
|
|
16784
|
+
f
|
|
16785
|
+
);
|
|
16786
|
+
}
|
|
16787
|
+
f = message.getProvenance();
|
|
16788
|
+
if (f.length > 0) {
|
|
16789
|
+
writer.writeString(
|
|
16790
|
+
7,
|
|
16791
|
+
f
|
|
16792
|
+
);
|
|
16793
|
+
}
|
|
16794
|
+
f = message.getPrecision();
|
|
16795
|
+
if (f !== 0) {
|
|
16796
|
+
writer.writeUint32(
|
|
16797
|
+
8,
|
|
16798
|
+
f
|
|
16799
|
+
);
|
|
16800
|
+
}
|
|
16801
|
+
f = message.getUnresolvedReason();
|
|
16802
|
+
if (f.length > 0) {
|
|
16803
|
+
writer.writeString(
|
|
16804
|
+
9,
|
|
16805
|
+
f
|
|
16806
|
+
);
|
|
16807
|
+
}
|
|
16808
|
+
f = message.getEvidenceJson();
|
|
16809
|
+
if (f.length > 0) {
|
|
16810
|
+
writer.writeString(
|
|
16811
|
+
10,
|
|
16812
|
+
f
|
|
16813
|
+
);
|
|
16814
|
+
}
|
|
16815
|
+
};
|
|
16816
|
+
|
|
16817
|
+
|
|
16818
|
+
/**
|
|
16819
|
+
* optional string base_currency = 1;
|
|
16820
|
+
* @return {string}
|
|
16821
|
+
*/
|
|
16822
|
+
proto.config.HistoricalCurrencyRateItem.prototype.getBaseCurrency = function() {
|
|
16823
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
16824
|
+
};
|
|
16825
|
+
|
|
16826
|
+
|
|
16827
|
+
/**
|
|
16828
|
+
* @param {string} value
|
|
16829
|
+
* @return {!proto.config.HistoricalCurrencyRateItem} returns this
|
|
16830
|
+
*/
|
|
16831
|
+
proto.config.HistoricalCurrencyRateItem.prototype.setBaseCurrency = function(value) {
|
|
16832
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
16833
|
+
};
|
|
16834
|
+
|
|
16835
|
+
|
|
16836
|
+
/**
|
|
16837
|
+
* optional string quote_currency = 2;
|
|
16838
|
+
* @return {string}
|
|
16839
|
+
*/
|
|
16840
|
+
proto.config.HistoricalCurrencyRateItem.prototype.getQuoteCurrency = function() {
|
|
16841
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
16842
|
+
};
|
|
16843
|
+
|
|
16844
|
+
|
|
16845
|
+
/**
|
|
16846
|
+
* @param {string} value
|
|
16847
|
+
* @return {!proto.config.HistoricalCurrencyRateItem} returns this
|
|
16848
|
+
*/
|
|
16849
|
+
proto.config.HistoricalCurrencyRateItem.prototype.setQuoteCurrency = function(value) {
|
|
16850
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
16851
|
+
};
|
|
16852
|
+
|
|
16853
|
+
|
|
16854
|
+
/**
|
|
16855
|
+
* optional string requested_date = 3;
|
|
16856
|
+
* @return {string}
|
|
16857
|
+
*/
|
|
16858
|
+
proto.config.HistoricalCurrencyRateItem.prototype.getRequestedDate = function() {
|
|
16859
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
16860
|
+
};
|
|
16861
|
+
|
|
16862
|
+
|
|
16863
|
+
/**
|
|
16864
|
+
* @param {string} value
|
|
16865
|
+
* @return {!proto.config.HistoricalCurrencyRateItem} returns this
|
|
16866
|
+
*/
|
|
16867
|
+
proto.config.HistoricalCurrencyRateItem.prototype.setRequestedDate = function(value) {
|
|
16868
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
16869
|
+
};
|
|
16870
|
+
|
|
16871
|
+
|
|
16872
|
+
/**
|
|
16873
|
+
* optional string effective_date = 4;
|
|
16874
|
+
* @return {string}
|
|
16875
|
+
*/
|
|
16876
|
+
proto.config.HistoricalCurrencyRateItem.prototype.getEffectiveDate = function() {
|
|
16877
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
16878
|
+
};
|
|
16879
|
+
|
|
16880
|
+
|
|
16881
|
+
/**
|
|
16882
|
+
* @param {string} value
|
|
16883
|
+
* @return {!proto.config.HistoricalCurrencyRateItem} returns this
|
|
16884
|
+
*/
|
|
16885
|
+
proto.config.HistoricalCurrencyRateItem.prototype.setEffectiveDate = function(value) {
|
|
16886
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
16887
|
+
};
|
|
16888
|
+
|
|
16889
|
+
|
|
16890
|
+
/**
|
|
16891
|
+
* optional string rate_decimal = 5;
|
|
16892
|
+
* @return {string}
|
|
16893
|
+
*/
|
|
16894
|
+
proto.config.HistoricalCurrencyRateItem.prototype.getRateDecimal = function() {
|
|
16895
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
16896
|
+
};
|
|
16897
|
+
|
|
16898
|
+
|
|
16899
|
+
/**
|
|
16900
|
+
* @param {string} value
|
|
16901
|
+
* @return {!proto.config.HistoricalCurrencyRateItem} returns this
|
|
16902
|
+
*/
|
|
16903
|
+
proto.config.HistoricalCurrencyRateItem.prototype.setRateDecimal = function(value) {
|
|
16904
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
16905
|
+
};
|
|
16906
|
+
|
|
16907
|
+
|
|
16908
|
+
/**
|
|
16909
|
+
* optional string source = 6;
|
|
16910
|
+
* @return {string}
|
|
16911
|
+
*/
|
|
16912
|
+
proto.config.HistoricalCurrencyRateItem.prototype.getSource = function() {
|
|
16913
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
16914
|
+
};
|
|
16915
|
+
|
|
16916
|
+
|
|
16917
|
+
/**
|
|
16918
|
+
* @param {string} value
|
|
16919
|
+
* @return {!proto.config.HistoricalCurrencyRateItem} returns this
|
|
16920
|
+
*/
|
|
16921
|
+
proto.config.HistoricalCurrencyRateItem.prototype.setSource = function(value) {
|
|
16922
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
16923
|
+
};
|
|
16924
|
+
|
|
16925
|
+
|
|
16926
|
+
/**
|
|
16927
|
+
* optional string provenance = 7;
|
|
16928
|
+
* @return {string}
|
|
16929
|
+
*/
|
|
16930
|
+
proto.config.HistoricalCurrencyRateItem.prototype.getProvenance = function() {
|
|
16931
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
16932
|
+
};
|
|
16933
|
+
|
|
16934
|
+
|
|
16935
|
+
/**
|
|
16936
|
+
* @param {string} value
|
|
16937
|
+
* @return {!proto.config.HistoricalCurrencyRateItem} returns this
|
|
16938
|
+
*/
|
|
16939
|
+
proto.config.HistoricalCurrencyRateItem.prototype.setProvenance = function(value) {
|
|
16940
|
+
return jspb.Message.setProto3StringField(this, 7, value);
|
|
16941
|
+
};
|
|
16942
|
+
|
|
16943
|
+
|
|
16944
|
+
/**
|
|
16945
|
+
* optional uint32 precision = 8;
|
|
16946
|
+
* @return {number}
|
|
16947
|
+
*/
|
|
16948
|
+
proto.config.HistoricalCurrencyRateItem.prototype.getPrecision = function() {
|
|
16949
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
|
|
16950
|
+
};
|
|
16951
|
+
|
|
16952
|
+
|
|
16953
|
+
/**
|
|
16954
|
+
* @param {number} value
|
|
16955
|
+
* @return {!proto.config.HistoricalCurrencyRateItem} returns this
|
|
16956
|
+
*/
|
|
16957
|
+
proto.config.HistoricalCurrencyRateItem.prototype.setPrecision = function(value) {
|
|
16958
|
+
return jspb.Message.setProto3IntField(this, 8, value);
|
|
16959
|
+
};
|
|
16960
|
+
|
|
16961
|
+
|
|
16962
|
+
/**
|
|
16963
|
+
* optional string unresolved_reason = 9;
|
|
16964
|
+
* @return {string}
|
|
16965
|
+
*/
|
|
16966
|
+
proto.config.HistoricalCurrencyRateItem.prototype.getUnresolvedReason = function() {
|
|
16967
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
|
16968
|
+
};
|
|
16969
|
+
|
|
16970
|
+
|
|
16971
|
+
/**
|
|
16972
|
+
* @param {string} value
|
|
16973
|
+
* @return {!proto.config.HistoricalCurrencyRateItem} returns this
|
|
16974
|
+
*/
|
|
16975
|
+
proto.config.HistoricalCurrencyRateItem.prototype.setUnresolvedReason = function(value) {
|
|
16976
|
+
return jspb.Message.setProto3StringField(this, 9, value);
|
|
16977
|
+
};
|
|
16978
|
+
|
|
16979
|
+
|
|
16980
|
+
/**
|
|
16981
|
+
* optional string evidence_json = 10;
|
|
16982
|
+
* @return {string}
|
|
16983
|
+
*/
|
|
16984
|
+
proto.config.HistoricalCurrencyRateItem.prototype.getEvidenceJson = function() {
|
|
16985
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
|
16986
|
+
};
|
|
16987
|
+
|
|
16988
|
+
|
|
16989
|
+
/**
|
|
16990
|
+
* @param {string} value
|
|
16991
|
+
* @return {!proto.config.HistoricalCurrencyRateItem} returns this
|
|
16992
|
+
*/
|
|
16993
|
+
proto.config.HistoricalCurrencyRateItem.prototype.setEvidenceJson = function(value) {
|
|
16994
|
+
return jspb.Message.setProto3StringField(this, 10, value);
|
|
16995
|
+
};
|
|
16996
|
+
|
|
16997
|
+
|
|
16998
|
+
|
|
16999
|
+
/**
|
|
17000
|
+
* List of repeated fields within this message type.
|
|
17001
|
+
* @private {!Array<number>}
|
|
17002
|
+
* @const
|
|
17003
|
+
*/
|
|
17004
|
+
proto.config.HistoricalCurrencyRatesResponse.repeatedFields_ = [1];
|
|
17005
|
+
|
|
17006
|
+
|
|
17007
|
+
|
|
17008
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
17009
|
+
/**
|
|
17010
|
+
* Creates an object representation of this proto.
|
|
17011
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
17012
|
+
* Optional fields that are not set will be set to undefined.
|
|
17013
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
17014
|
+
* For the list of reserved names please see:
|
|
17015
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
17016
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
17017
|
+
* JSPB instance for transitional soy proto support:
|
|
17018
|
+
* http://goto/soy-param-migration
|
|
17019
|
+
* @return {!Object}
|
|
17020
|
+
*/
|
|
17021
|
+
proto.config.HistoricalCurrencyRatesResponse.prototype.toObject = function(opt_includeInstance) {
|
|
17022
|
+
return proto.config.HistoricalCurrencyRatesResponse.toObject(opt_includeInstance, this);
|
|
17023
|
+
};
|
|
17024
|
+
|
|
17025
|
+
|
|
17026
|
+
/**
|
|
17027
|
+
* Static version of the {@see toObject} method.
|
|
17028
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
17029
|
+
* the JSPB instance for transitional soy proto support:
|
|
17030
|
+
* http://goto/soy-param-migration
|
|
17031
|
+
* @param {!proto.config.HistoricalCurrencyRatesResponse} msg The msg instance to transform.
|
|
17032
|
+
* @return {!Object}
|
|
17033
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
17034
|
+
*/
|
|
17035
|
+
proto.config.HistoricalCurrencyRatesResponse.toObject = function(includeInstance, msg) {
|
|
17036
|
+
var f, obj = {
|
|
17037
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
|
17038
|
+
proto.config.HistoricalCurrencyRateItem.toObject, includeInstance)
|
|
17039
|
+
};
|
|
17040
|
+
|
|
17041
|
+
if (includeInstance) {
|
|
17042
|
+
obj.$jspbMessageInstance = msg;
|
|
17043
|
+
}
|
|
17044
|
+
return obj;
|
|
17045
|
+
};
|
|
17046
|
+
}
|
|
17047
|
+
|
|
17048
|
+
|
|
17049
|
+
/**
|
|
17050
|
+
* Deserializes binary data (in protobuf wire format).
|
|
17051
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
17052
|
+
* @return {!proto.config.HistoricalCurrencyRatesResponse}
|
|
17053
|
+
*/
|
|
17054
|
+
proto.config.HistoricalCurrencyRatesResponse.deserializeBinary = function(bytes) {
|
|
17055
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
17056
|
+
var msg = new proto.config.HistoricalCurrencyRatesResponse;
|
|
17057
|
+
return proto.config.HistoricalCurrencyRatesResponse.deserializeBinaryFromReader(msg, reader);
|
|
17058
|
+
};
|
|
17059
|
+
|
|
17060
|
+
|
|
17061
|
+
/**
|
|
17062
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
17063
|
+
* given reader into the given message object.
|
|
17064
|
+
* @param {!proto.config.HistoricalCurrencyRatesResponse} msg The message object to deserialize into.
|
|
17065
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
17066
|
+
* @return {!proto.config.HistoricalCurrencyRatesResponse}
|
|
17067
|
+
*/
|
|
17068
|
+
proto.config.HistoricalCurrencyRatesResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
17069
|
+
while (reader.nextField()) {
|
|
17070
|
+
if (reader.isEndGroup()) {
|
|
17071
|
+
break;
|
|
17072
|
+
}
|
|
17073
|
+
var field = reader.getFieldNumber();
|
|
17074
|
+
switch (field) {
|
|
17075
|
+
case 1:
|
|
17076
|
+
var value = new proto.config.HistoricalCurrencyRateItem;
|
|
17077
|
+
reader.readMessage(value,proto.config.HistoricalCurrencyRateItem.deserializeBinaryFromReader);
|
|
17078
|
+
msg.addItems(value);
|
|
17079
|
+
break;
|
|
17080
|
+
default:
|
|
17081
|
+
reader.skipField();
|
|
17082
|
+
break;
|
|
17083
|
+
}
|
|
17084
|
+
}
|
|
17085
|
+
return msg;
|
|
17086
|
+
};
|
|
17087
|
+
|
|
17088
|
+
|
|
17089
|
+
/**
|
|
17090
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
17091
|
+
* @return {!Uint8Array}
|
|
17092
|
+
*/
|
|
17093
|
+
proto.config.HistoricalCurrencyRatesResponse.prototype.serializeBinary = function() {
|
|
17094
|
+
var writer = new jspb.BinaryWriter();
|
|
17095
|
+
proto.config.HistoricalCurrencyRatesResponse.serializeBinaryToWriter(this, writer);
|
|
17096
|
+
return writer.getResultBuffer();
|
|
17097
|
+
};
|
|
17098
|
+
|
|
17099
|
+
|
|
17100
|
+
/**
|
|
17101
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
17102
|
+
* format), writing to the given BinaryWriter.
|
|
17103
|
+
* @param {!proto.config.HistoricalCurrencyRatesResponse} message
|
|
17104
|
+
* @param {!jspb.BinaryWriter} writer
|
|
17105
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
17106
|
+
*/
|
|
17107
|
+
proto.config.HistoricalCurrencyRatesResponse.serializeBinaryToWriter = function(message, writer) {
|
|
17108
|
+
var f = undefined;
|
|
17109
|
+
f = message.getItemsList();
|
|
17110
|
+
if (f.length > 0) {
|
|
17111
|
+
writer.writeRepeatedMessage(
|
|
17112
|
+
1,
|
|
17113
|
+
f,
|
|
17114
|
+
proto.config.HistoricalCurrencyRateItem.serializeBinaryToWriter
|
|
17115
|
+
);
|
|
17116
|
+
}
|
|
17117
|
+
};
|
|
17118
|
+
|
|
17119
|
+
|
|
17120
|
+
/**
|
|
17121
|
+
* repeated HistoricalCurrencyRateItem items = 1;
|
|
17122
|
+
* @return {!Array<!proto.config.HistoricalCurrencyRateItem>}
|
|
17123
|
+
*/
|
|
17124
|
+
proto.config.HistoricalCurrencyRatesResponse.prototype.getItemsList = function() {
|
|
17125
|
+
return /** @type{!Array<!proto.config.HistoricalCurrencyRateItem>} */ (
|
|
17126
|
+
jspb.Message.getRepeatedWrapperField(this, proto.config.HistoricalCurrencyRateItem, 1));
|
|
17127
|
+
};
|
|
17128
|
+
|
|
17129
|
+
|
|
17130
|
+
/**
|
|
17131
|
+
* @param {!Array<!proto.config.HistoricalCurrencyRateItem>} value
|
|
17132
|
+
* @return {!proto.config.HistoricalCurrencyRatesResponse} returns this
|
|
17133
|
+
*/
|
|
17134
|
+
proto.config.HistoricalCurrencyRatesResponse.prototype.setItemsList = function(value) {
|
|
17135
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
17136
|
+
};
|
|
17137
|
+
|
|
17138
|
+
|
|
17139
|
+
/**
|
|
17140
|
+
* @param {!proto.config.HistoricalCurrencyRateItem=} opt_value
|
|
17141
|
+
* @param {number=} opt_index
|
|
17142
|
+
* @return {!proto.config.HistoricalCurrencyRateItem}
|
|
17143
|
+
*/
|
|
17144
|
+
proto.config.HistoricalCurrencyRatesResponse.prototype.addItems = function(opt_value, opt_index) {
|
|
17145
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.config.HistoricalCurrencyRateItem, opt_index);
|
|
17146
|
+
};
|
|
17147
|
+
|
|
17148
|
+
|
|
17149
|
+
/**
|
|
17150
|
+
* Clears the list making it empty but non-null.
|
|
17151
|
+
* @return {!proto.config.HistoricalCurrencyRatesResponse} returns this
|
|
17152
|
+
*/
|
|
17153
|
+
proto.config.HistoricalCurrencyRatesResponse.prototype.clearItemsList = function() {
|
|
17154
|
+
return this.setItemsList([]);
|
|
17155
|
+
};
|
|
17156
|
+
|
|
17157
|
+
|
|
16256
17158
|
/**
|
|
16257
17159
|
* @enum {number}
|
|
16258
17160
|
*/
|
package/package.json
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const assert = require('node:assert/strict');
|
|
3
|
+
const { config } = require('..');
|
|
4
|
+
const { HistoricalCurrencyRatesRequest: Request, HistoricalCurrencyRatesResponse: Response,
|
|
5
|
+
HistoricalCurrencyRateItem: Item, CurrencyRatesMapRequest: Legacy } = config.messages;
|
|
6
|
+
const r = new Request();
|
|
7
|
+
r.setEnvironment('staging'); r.setCustomer('rtp'); r.setUtcDate('2026-07-02');
|
|
8
|
+
r.setBaseCurrency('EUR'); r.setQuoteCurrenciesList(['USD', 'GBP']);
|
|
9
|
+
assert.deepEqual(Request.deserializeBinary(r.serializeBinary()).toObject(), r.toObject());
|
|
10
|
+
const item = new Item();
|
|
11
|
+
item.setBaseCurrency('EUR'); item.setQuoteCurrency('USD');
|
|
12
|
+
item.setRequestedDate('2026-07-02'); item.setEffectiveDate('2026-07-02');
|
|
13
|
+
item.setRateDecimal('1.123456789012345678901234'); item.setPrecision(24);
|
|
14
|
+
item.setSource('frankfurter'); item.setProvenance('historical_reference');
|
|
15
|
+
item.setUnresolvedReason(''); item.setEvidenceJson('{"rate":"1.123456789012345678901234"}');
|
|
16
|
+
const response = new Response(); response.setItemsList([item]);
|
|
17
|
+
assert.deepEqual(Response.deserializeBinary(response.serializeBinary()).toObject(), response.toObject());
|
|
18
|
+
assert.equal(typeof config.service.ConfigService.getHistoricalCurrencyRates.requestSerialize, 'function');
|
|
19
|
+
assert.equal(typeof new Legacy().setWithdrawalLastKnownRate, 'function');
|
|
20
|
+
console.log('Historical FX contract: exact decimal wire, provenance, RPC and legacy compatibility PASS');
|