@fintekkers/ledger-models 1.1.0 → 1.1.2

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.
Files changed (32) hide show
  1. package/catalog/measures.json +25 -18
  2. package/node/fintekkers/models/portfolio/amortisation_elections_grpc_pb.js +1 -0
  3. package/node/fintekkers/models/portfolio/amortisation_elections_pb.d.ts +51 -0
  4. package/node/fintekkers/models/portfolio/amortisation_elections_pb.js +266 -0
  5. package/node/fintekkers/models/portfolio/portfolio_pb.d.ts +7 -0
  6. package/node/fintekkers/models/portfolio/portfolio_pb.js +54 -1
  7. package/node/fintekkers/models/position/tax_lot_grpc_pb.js +1 -0
  8. package/node/fintekkers/models/position/tax_lot_pb.d.ts +44 -0
  9. package/node/fintekkers/models/position/tax_lot_pb.js +303 -0
  10. package/node/fintekkers/requests/valuation/cost_basis_input.test.d.ts +7 -0
  11. package/node/fintekkers/requests/valuation/cost_basis_input.test.js +69 -0
  12. package/node/fintekkers/requests/valuation/cost_basis_input.test.js.map +1 -0
  13. package/node/fintekkers/requests/valuation/cost_basis_input.test.ts +78 -0
  14. package/node/fintekkers/requests/valuation/product_inputs_pb.d.ts +48 -0
  15. package/node/fintekkers/requests/valuation/product_inputs_pb.js +393 -3
  16. package/node/wrappers/models/security/BondSecurity.test.js +3 -3
  17. package/node/wrappers/models/security/BondSecurity.test.js.map +1 -1
  18. package/node/wrappers/models/security/BondSecurity.test.ts +3 -3
  19. package/node/wrappers/models/security/security-roundtrip.test.js +4 -4
  20. package/node/wrappers/models/security/security-roundtrip.test.js.map +1 -1
  21. package/node/wrappers/models/security/security-roundtrip.test.ts +4 -4
  22. package/node/wrappers/models/security/security.d.ts +2 -2
  23. package/node/wrappers/models/security/security.js +3 -3
  24. package/node/wrappers/models/security/security.js.map +1 -1
  25. package/node/wrappers/models/security/security.test.js +6 -0
  26. package/node/wrappers/models/security/security.test.js.map +1 -1
  27. package/node/wrappers/models/security/security.test.ts +7 -0
  28. package/node/wrappers/models/security/security.ts +3 -3
  29. package/node/wrappers/models/transaction/transaction.js +1 -1
  30. package/node/wrappers/models/transaction/transaction.js.map +1 -1
  31. package/node/wrappers/models/transaction/transaction.ts +1 -1
  32. package/package.json +1 -1
@@ -21,6 +21,10 @@ var global = (function() {
21
21
  return Function('return this')();
22
22
  }.call(null));
23
23
 
24
+ var fintekkers_models_portfolio_amortisation_elections_pb = require('../../../fintekkers/models/portfolio/amortisation_elections_pb.js');
25
+ goog.object.extend(proto, fintekkers_models_portfolio_amortisation_elections_pb);
26
+ var fintekkers_models_position_tax_lot_pb = require('../../../fintekkers/models/position/tax_lot_pb.js');
27
+ goog.object.extend(proto, fintekkers_models_position_tax_lot_pb);
24
28
  var fintekkers_models_security_security_pb = require('../../../fintekkers/models/security/security_pb.js');
25
29
  goog.object.extend(proto, fintekkers_models_security_security_pb);
26
30
  var fintekkers_models_security_index_index_type_pb = require('../../../fintekkers/models/security/index/index_type_pb.js');
@@ -30,6 +34,7 @@ goog.object.extend(proto, fintekkers_models_util_decimal_value_pb);
30
34
  var fintekkers_models_util_local_date_pb = require('../../../fintekkers/models/util/local_date_pb.js');
31
35
  goog.object.extend(proto, fintekkers_models_util_local_date_pb);
32
36
  goog.exportSymbol('proto.fintekkers.requests.valuation.BondInput', null, global);
37
+ goog.exportSymbol('proto.fintekkers.requests.valuation.CostBasisInput', null, global);
33
38
  goog.exportSymbol('proto.fintekkers.requests.valuation.CurvePoint', null, global);
34
39
  goog.exportSymbol('proto.fintekkers.requests.valuation.FrnInput', null, global);
35
40
  goog.exportSymbol('proto.fintekkers.requests.valuation.InflationIndexInput', null, global);
@@ -106,6 +111,27 @@ if (goog.DEBUG && !COMPILED) {
106
111
  */
107
112
  proto.fintekkers.requests.valuation.TipsInput.displayName = 'proto.fintekkers.requests.valuation.TipsInput';
108
113
  }
114
+ /**
115
+ * Generated by JsPbCodeGenerator.
116
+ * @param {Array=} opt_data Optional initial data array, typically from a
117
+ * server response, or constructed directly in Javascript. The array is used
118
+ * in place and becomes part of the constructed object. It is not cloned.
119
+ * If no data is provided, the constructed object will be empty, but still
120
+ * valid.
121
+ * @extends {jspb.Message}
122
+ * @constructor
123
+ */
124
+ proto.fintekkers.requests.valuation.CostBasisInput = function(opt_data) {
125
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.fintekkers.requests.valuation.CostBasisInput.repeatedFields_, null);
126
+ };
127
+ goog.inherits(proto.fintekkers.requests.valuation.CostBasisInput, jspb.Message);
128
+ if (goog.DEBUG && !COMPILED) {
129
+ /**
130
+ * @public
131
+ * @override
132
+ */
133
+ proto.fintekkers.requests.valuation.CostBasisInput.displayName = 'proto.fintekkers.requests.valuation.CostBasisInput';
134
+ }
109
135
  /**
110
136
  * Generated by JsPbCodeGenerator.
111
137
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -609,7 +635,8 @@ proto.fintekkers.requests.valuation.BondInput.toObject = function(includeInstanc
609
635
  var f, obj = {
610
636
  security: (f = msg.getSecurity()) && fintekkers_models_security_security_pb.SecurityProto.toObject(includeInstance, f),
611
637
  cleanPrice: (f = msg.getCleanPrice()) && fintekkers_models_util_decimal_value_pb.DecimalValueProto.toObject(includeInstance, f),
612
- benchmarkCurve: (f = msg.getBenchmarkCurve()) && proto.fintekkers.requests.valuation.SecurityBasedCurveInput.toObject(includeInstance, f)
638
+ benchmarkCurve: (f = msg.getBenchmarkCurve()) && proto.fintekkers.requests.valuation.SecurityBasedCurveInput.toObject(includeInstance, f),
639
+ costBasis: (f = msg.getCostBasis()) && proto.fintekkers.requests.valuation.CostBasisInput.toObject(includeInstance, f)
613
640
  };
614
641
 
615
642
  if (includeInstance) {
@@ -661,6 +688,11 @@ proto.fintekkers.requests.valuation.BondInput.deserializeBinaryFromReader = func
661
688
  reader.readMessage(value,proto.fintekkers.requests.valuation.SecurityBasedCurveInput.deserializeBinaryFromReader);
662
689
  msg.setBenchmarkCurve(value);
663
690
  break;
691
+ case 20:
692
+ var value = new proto.fintekkers.requests.valuation.CostBasisInput;
693
+ reader.readMessage(value,proto.fintekkers.requests.valuation.CostBasisInput.deserializeBinaryFromReader);
694
+ msg.setCostBasis(value);
695
+ break;
664
696
  default:
665
697
  reader.skipField();
666
698
  break;
@@ -714,6 +746,14 @@ proto.fintekkers.requests.valuation.BondInput.serializeBinaryToWriter = function
714
746
  proto.fintekkers.requests.valuation.SecurityBasedCurveInput.serializeBinaryToWriter
715
747
  );
716
748
  }
749
+ f = message.getCostBasis();
750
+ if (f != null) {
751
+ writer.writeMessage(
752
+ 20,
753
+ f,
754
+ proto.fintekkers.requests.valuation.CostBasisInput.serializeBinaryToWriter
755
+ );
756
+ }
717
757
  };
718
758
 
719
759
 
@@ -828,6 +868,43 @@ proto.fintekkers.requests.valuation.BondInput.prototype.hasBenchmarkCurve = func
828
868
  };
829
869
 
830
870
 
871
+ /**
872
+ * optional CostBasisInput cost_basis = 20;
873
+ * @return {?proto.fintekkers.requests.valuation.CostBasisInput}
874
+ */
875
+ proto.fintekkers.requests.valuation.BondInput.prototype.getCostBasis = function() {
876
+ return /** @type{?proto.fintekkers.requests.valuation.CostBasisInput} */ (
877
+ jspb.Message.getWrapperField(this, proto.fintekkers.requests.valuation.CostBasisInput, 20));
878
+ };
879
+
880
+
881
+ /**
882
+ * @param {?proto.fintekkers.requests.valuation.CostBasisInput|undefined} value
883
+ * @return {!proto.fintekkers.requests.valuation.BondInput} returns this
884
+ */
885
+ proto.fintekkers.requests.valuation.BondInput.prototype.setCostBasis = function(value) {
886
+ return jspb.Message.setWrapperField(this, 20, value);
887
+ };
888
+
889
+
890
+ /**
891
+ * Clears the message field making it undefined.
892
+ * @return {!proto.fintekkers.requests.valuation.BondInput} returns this
893
+ */
894
+ proto.fintekkers.requests.valuation.BondInput.prototype.clearCostBasis = function() {
895
+ return this.setCostBasis(undefined);
896
+ };
897
+
898
+
899
+ /**
900
+ * Returns whether this field is set.
901
+ * @return {boolean}
902
+ */
903
+ proto.fintekkers.requests.valuation.BondInput.prototype.hasCostBasis = function() {
904
+ return jspb.Message.getField(this, 20) != null;
905
+ };
906
+
907
+
831
908
 
832
909
 
833
910
 
@@ -862,7 +939,8 @@ proto.fintekkers.requests.valuation.TipsInput.toObject = function(includeInstanc
862
939
  var f, obj = {
863
940
  security: (f = msg.getSecurity()) && fintekkers_models_security_security_pb.SecurityProto.toObject(includeInstance, f),
864
941
  cleanPrice: (f = msg.getCleanPrice()) && fintekkers_models_util_decimal_value_pb.DecimalValueProto.toObject(includeInstance, f),
865
- cpi: (f = msg.getCpi()) && proto.fintekkers.requests.valuation.InflationIndexInput.toObject(includeInstance, f)
942
+ cpi: (f = msg.getCpi()) && proto.fintekkers.requests.valuation.InflationIndexInput.toObject(includeInstance, f),
943
+ costBasis: (f = msg.getCostBasis()) && proto.fintekkers.requests.valuation.CostBasisInput.toObject(includeInstance, f)
866
944
  };
867
945
 
868
946
  if (includeInstance) {
@@ -914,6 +992,11 @@ proto.fintekkers.requests.valuation.TipsInput.deserializeBinaryFromReader = func
914
992
  reader.readMessage(value,proto.fintekkers.requests.valuation.InflationIndexInput.deserializeBinaryFromReader);
915
993
  msg.setCpi(value);
916
994
  break;
995
+ case 20:
996
+ var value = new proto.fintekkers.requests.valuation.CostBasisInput;
997
+ reader.readMessage(value,proto.fintekkers.requests.valuation.CostBasisInput.deserializeBinaryFromReader);
998
+ msg.setCostBasis(value);
999
+ break;
917
1000
  default:
918
1001
  reader.skipField();
919
1002
  break;
@@ -967,6 +1050,14 @@ proto.fintekkers.requests.valuation.TipsInput.serializeBinaryToWriter = function
967
1050
  proto.fintekkers.requests.valuation.InflationIndexInput.serializeBinaryToWriter
968
1051
  );
969
1052
  }
1053
+ f = message.getCostBasis();
1054
+ if (f != null) {
1055
+ writer.writeMessage(
1056
+ 20,
1057
+ f,
1058
+ proto.fintekkers.requests.valuation.CostBasisInput.serializeBinaryToWriter
1059
+ );
1060
+ }
970
1061
  };
971
1062
 
972
1063
 
@@ -1081,6 +1172,254 @@ proto.fintekkers.requests.valuation.TipsInput.prototype.hasCpi = function() {
1081
1172
  };
1082
1173
 
1083
1174
 
1175
+ /**
1176
+ * optional CostBasisInput cost_basis = 20;
1177
+ * @return {?proto.fintekkers.requests.valuation.CostBasisInput}
1178
+ */
1179
+ proto.fintekkers.requests.valuation.TipsInput.prototype.getCostBasis = function() {
1180
+ return /** @type{?proto.fintekkers.requests.valuation.CostBasisInput} */ (
1181
+ jspb.Message.getWrapperField(this, proto.fintekkers.requests.valuation.CostBasisInput, 20));
1182
+ };
1183
+
1184
+
1185
+ /**
1186
+ * @param {?proto.fintekkers.requests.valuation.CostBasisInput|undefined} value
1187
+ * @return {!proto.fintekkers.requests.valuation.TipsInput} returns this
1188
+ */
1189
+ proto.fintekkers.requests.valuation.TipsInput.prototype.setCostBasis = function(value) {
1190
+ return jspb.Message.setWrapperField(this, 20, value);
1191
+ };
1192
+
1193
+
1194
+ /**
1195
+ * Clears the message field making it undefined.
1196
+ * @return {!proto.fintekkers.requests.valuation.TipsInput} returns this
1197
+ */
1198
+ proto.fintekkers.requests.valuation.TipsInput.prototype.clearCostBasis = function() {
1199
+ return this.setCostBasis(undefined);
1200
+ };
1201
+
1202
+
1203
+ /**
1204
+ * Returns whether this field is set.
1205
+ * @return {boolean}
1206
+ */
1207
+ proto.fintekkers.requests.valuation.TipsInput.prototype.hasCostBasis = function() {
1208
+ return jspb.Message.getField(this, 20) != null;
1209
+ };
1210
+
1211
+
1212
+
1213
+ /**
1214
+ * List of repeated fields within this message type.
1215
+ * @private {!Array<number>}
1216
+ * @const
1217
+ */
1218
+ proto.fintekkers.requests.valuation.CostBasisInput.repeatedFields_ = [2];
1219
+
1220
+
1221
+
1222
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1223
+ /**
1224
+ * Creates an object representation of this proto.
1225
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1226
+ * Optional fields that are not set will be set to undefined.
1227
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1228
+ * For the list of reserved names please see:
1229
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1230
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1231
+ * JSPB instance for transitional soy proto support:
1232
+ * http://goto/soy-param-migration
1233
+ * @return {!Object}
1234
+ */
1235
+ proto.fintekkers.requests.valuation.CostBasisInput.prototype.toObject = function(opt_includeInstance) {
1236
+ return proto.fintekkers.requests.valuation.CostBasisInput.toObject(opt_includeInstance, this);
1237
+ };
1238
+
1239
+
1240
+ /**
1241
+ * Static version of the {@see toObject} method.
1242
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1243
+ * the JSPB instance for transitional soy proto support:
1244
+ * http://goto/soy-param-migration
1245
+ * @param {!proto.fintekkers.requests.valuation.CostBasisInput} msg The msg instance to transform.
1246
+ * @return {!Object}
1247
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1248
+ */
1249
+ proto.fintekkers.requests.valuation.CostBasisInput.toObject = function(includeInstance, msg) {
1250
+ var f, obj = {
1251
+ elections: (f = msg.getElections()) && fintekkers_models_portfolio_amortisation_elections_pb.AmortisationElectionsProto.toObject(includeInstance, f),
1252
+ lotsList: jspb.Message.toObjectList(msg.getLotsList(),
1253
+ fintekkers_models_position_tax_lot_pb.TaxLotProto.toObject, includeInstance)
1254
+ };
1255
+
1256
+ if (includeInstance) {
1257
+ obj.$jspbMessageInstance = msg;
1258
+ }
1259
+ return obj;
1260
+ };
1261
+ }
1262
+
1263
+
1264
+ /**
1265
+ * Deserializes binary data (in protobuf wire format).
1266
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1267
+ * @return {!proto.fintekkers.requests.valuation.CostBasisInput}
1268
+ */
1269
+ proto.fintekkers.requests.valuation.CostBasisInput.deserializeBinary = function(bytes) {
1270
+ var reader = new jspb.BinaryReader(bytes);
1271
+ var msg = new proto.fintekkers.requests.valuation.CostBasisInput;
1272
+ return proto.fintekkers.requests.valuation.CostBasisInput.deserializeBinaryFromReader(msg, reader);
1273
+ };
1274
+
1275
+
1276
+ /**
1277
+ * Deserializes binary data (in protobuf wire format) from the
1278
+ * given reader into the given message object.
1279
+ * @param {!proto.fintekkers.requests.valuation.CostBasisInput} msg The message object to deserialize into.
1280
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1281
+ * @return {!proto.fintekkers.requests.valuation.CostBasisInput}
1282
+ */
1283
+ proto.fintekkers.requests.valuation.CostBasisInput.deserializeBinaryFromReader = function(msg, reader) {
1284
+ while (reader.nextField()) {
1285
+ if (reader.isEndGroup()) {
1286
+ break;
1287
+ }
1288
+ var field = reader.getFieldNumber();
1289
+ switch (field) {
1290
+ case 1:
1291
+ var value = new fintekkers_models_portfolio_amortisation_elections_pb.AmortisationElectionsProto;
1292
+ reader.readMessage(value,fintekkers_models_portfolio_amortisation_elections_pb.AmortisationElectionsProto.deserializeBinaryFromReader);
1293
+ msg.setElections(value);
1294
+ break;
1295
+ case 2:
1296
+ var value = new fintekkers_models_position_tax_lot_pb.TaxLotProto;
1297
+ reader.readMessage(value,fintekkers_models_position_tax_lot_pb.TaxLotProto.deserializeBinaryFromReader);
1298
+ msg.addLots(value);
1299
+ break;
1300
+ default:
1301
+ reader.skipField();
1302
+ break;
1303
+ }
1304
+ }
1305
+ return msg;
1306
+ };
1307
+
1308
+
1309
+ /**
1310
+ * Serializes the message to binary data (in protobuf wire format).
1311
+ * @return {!Uint8Array}
1312
+ */
1313
+ proto.fintekkers.requests.valuation.CostBasisInput.prototype.serializeBinary = function() {
1314
+ var writer = new jspb.BinaryWriter();
1315
+ proto.fintekkers.requests.valuation.CostBasisInput.serializeBinaryToWriter(this, writer);
1316
+ return writer.getResultBuffer();
1317
+ };
1318
+
1319
+
1320
+ /**
1321
+ * Serializes the given message to binary data (in protobuf wire
1322
+ * format), writing to the given BinaryWriter.
1323
+ * @param {!proto.fintekkers.requests.valuation.CostBasisInput} message
1324
+ * @param {!jspb.BinaryWriter} writer
1325
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1326
+ */
1327
+ proto.fintekkers.requests.valuation.CostBasisInput.serializeBinaryToWriter = function(message, writer) {
1328
+ var f = undefined;
1329
+ f = message.getElections();
1330
+ if (f != null) {
1331
+ writer.writeMessage(
1332
+ 1,
1333
+ f,
1334
+ fintekkers_models_portfolio_amortisation_elections_pb.AmortisationElectionsProto.serializeBinaryToWriter
1335
+ );
1336
+ }
1337
+ f = message.getLotsList();
1338
+ if (f.length > 0) {
1339
+ writer.writeRepeatedMessage(
1340
+ 2,
1341
+ f,
1342
+ fintekkers_models_position_tax_lot_pb.TaxLotProto.serializeBinaryToWriter
1343
+ );
1344
+ }
1345
+ };
1346
+
1347
+
1348
+ /**
1349
+ * optional fintekkers.models.portfolio.AmortisationElectionsProto elections = 1;
1350
+ * @return {?proto.fintekkers.models.portfolio.AmortisationElectionsProto}
1351
+ */
1352
+ proto.fintekkers.requests.valuation.CostBasisInput.prototype.getElections = function() {
1353
+ return /** @type{?proto.fintekkers.models.portfolio.AmortisationElectionsProto} */ (
1354
+ jspb.Message.getWrapperField(this, fintekkers_models_portfolio_amortisation_elections_pb.AmortisationElectionsProto, 1));
1355
+ };
1356
+
1357
+
1358
+ /**
1359
+ * @param {?proto.fintekkers.models.portfolio.AmortisationElectionsProto|undefined} value
1360
+ * @return {!proto.fintekkers.requests.valuation.CostBasisInput} returns this
1361
+ */
1362
+ proto.fintekkers.requests.valuation.CostBasisInput.prototype.setElections = function(value) {
1363
+ return jspb.Message.setWrapperField(this, 1, value);
1364
+ };
1365
+
1366
+
1367
+ /**
1368
+ * Clears the message field making it undefined.
1369
+ * @return {!proto.fintekkers.requests.valuation.CostBasisInput} returns this
1370
+ */
1371
+ proto.fintekkers.requests.valuation.CostBasisInput.prototype.clearElections = function() {
1372
+ return this.setElections(undefined);
1373
+ };
1374
+
1375
+
1376
+ /**
1377
+ * Returns whether this field is set.
1378
+ * @return {boolean}
1379
+ */
1380
+ proto.fintekkers.requests.valuation.CostBasisInput.prototype.hasElections = function() {
1381
+ return jspb.Message.getField(this, 1) != null;
1382
+ };
1383
+
1384
+
1385
+ /**
1386
+ * repeated fintekkers.models.position.TaxLotProto lots = 2;
1387
+ * @return {!Array<!proto.fintekkers.models.position.TaxLotProto>}
1388
+ */
1389
+ proto.fintekkers.requests.valuation.CostBasisInput.prototype.getLotsList = function() {
1390
+ return /** @type{!Array<!proto.fintekkers.models.position.TaxLotProto>} */ (
1391
+ jspb.Message.getRepeatedWrapperField(this, fintekkers_models_position_tax_lot_pb.TaxLotProto, 2));
1392
+ };
1393
+
1394
+
1395
+ /**
1396
+ * @param {!Array<!proto.fintekkers.models.position.TaxLotProto>} value
1397
+ * @return {!proto.fintekkers.requests.valuation.CostBasisInput} returns this
1398
+ */
1399
+ proto.fintekkers.requests.valuation.CostBasisInput.prototype.setLotsList = function(value) {
1400
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
1401
+ };
1402
+
1403
+
1404
+ /**
1405
+ * @param {!proto.fintekkers.models.position.TaxLotProto=} opt_value
1406
+ * @param {number=} opt_index
1407
+ * @return {!proto.fintekkers.models.position.TaxLotProto}
1408
+ */
1409
+ proto.fintekkers.requests.valuation.CostBasisInput.prototype.addLots = function(opt_value, opt_index) {
1410
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.fintekkers.models.position.TaxLotProto, opt_index);
1411
+ };
1412
+
1413
+
1414
+ /**
1415
+ * Clears the list making it empty but non-null.
1416
+ * @return {!proto.fintekkers.requests.valuation.CostBasisInput} returns this
1417
+ */
1418
+ proto.fintekkers.requests.valuation.CostBasisInput.prototype.clearLotsList = function() {
1419
+ return this.setLotsList([]);
1420
+ };
1421
+
1422
+
1084
1423
 
1085
1424
  /**
1086
1425
  * Oneof group definitions for this message. Each group defines the field
@@ -1774,7 +2113,8 @@ proto.fintekkers.requests.valuation.FrnInput.toObject = function(includeInstance
1774
2113
  cleanPrice: (f = msg.getCleanPrice()) && fintekkers_models_util_decimal_value_pb.DecimalValueProto.toObject(includeInstance, f),
1775
2114
  curve: (f = msg.getCurve()) && proto.fintekkers.requests.valuation.YieldCurveInput.toObject(includeInstance, f),
1776
2115
  fixingsList: jspb.Message.toObjectList(msg.getFixingsList(),
1777
- proto.fintekkers.requests.valuation.ReferenceRateFixingProto.toObject, includeInstance)
2116
+ proto.fintekkers.requests.valuation.ReferenceRateFixingProto.toObject, includeInstance),
2117
+ costBasis: (f = msg.getCostBasis()) && proto.fintekkers.requests.valuation.CostBasisInput.toObject(includeInstance, f)
1778
2118
  };
1779
2119
 
1780
2120
  if (includeInstance) {
@@ -1831,6 +2171,11 @@ proto.fintekkers.requests.valuation.FrnInput.deserializeBinaryFromReader = funct
1831
2171
  reader.readMessage(value,proto.fintekkers.requests.valuation.ReferenceRateFixingProto.deserializeBinaryFromReader);
1832
2172
  msg.addFixings(value);
1833
2173
  break;
2174
+ case 20:
2175
+ var value = new proto.fintekkers.requests.valuation.CostBasisInput;
2176
+ reader.readMessage(value,proto.fintekkers.requests.valuation.CostBasisInput.deserializeBinaryFromReader);
2177
+ msg.setCostBasis(value);
2178
+ break;
1834
2179
  default:
1835
2180
  reader.skipField();
1836
2181
  break;
@@ -1892,6 +2237,14 @@ proto.fintekkers.requests.valuation.FrnInput.serializeBinaryToWriter = function(
1892
2237
  proto.fintekkers.requests.valuation.ReferenceRateFixingProto.serializeBinaryToWriter
1893
2238
  );
1894
2239
  }
2240
+ f = message.getCostBasis();
2241
+ if (f != null) {
2242
+ writer.writeMessage(
2243
+ 20,
2244
+ f,
2245
+ proto.fintekkers.requests.valuation.CostBasisInput.serializeBinaryToWriter
2246
+ );
2247
+ }
1895
2248
  };
1896
2249
 
1897
2250
 
@@ -2044,6 +2397,43 @@ proto.fintekkers.requests.valuation.FrnInput.prototype.clearFixingsList = functi
2044
2397
  };
2045
2398
 
2046
2399
 
2400
+ /**
2401
+ * optional CostBasisInput cost_basis = 20;
2402
+ * @return {?proto.fintekkers.requests.valuation.CostBasisInput}
2403
+ */
2404
+ proto.fintekkers.requests.valuation.FrnInput.prototype.getCostBasis = function() {
2405
+ return /** @type{?proto.fintekkers.requests.valuation.CostBasisInput} */ (
2406
+ jspb.Message.getWrapperField(this, proto.fintekkers.requests.valuation.CostBasisInput, 20));
2407
+ };
2408
+
2409
+
2410
+ /**
2411
+ * @param {?proto.fintekkers.requests.valuation.CostBasisInput|undefined} value
2412
+ * @return {!proto.fintekkers.requests.valuation.FrnInput} returns this
2413
+ */
2414
+ proto.fintekkers.requests.valuation.FrnInput.prototype.setCostBasis = function(value) {
2415
+ return jspb.Message.setWrapperField(this, 20, value);
2416
+ };
2417
+
2418
+
2419
+ /**
2420
+ * Clears the message field making it undefined.
2421
+ * @return {!proto.fintekkers.requests.valuation.FrnInput} returns this
2422
+ */
2423
+ proto.fintekkers.requests.valuation.FrnInput.prototype.clearCostBasis = function() {
2424
+ return this.setCostBasis(undefined);
2425
+ };
2426
+
2427
+
2428
+ /**
2429
+ * Returns whether this field is set.
2430
+ * @return {boolean}
2431
+ */
2432
+ proto.fintekkers.requests.valuation.FrnInput.prototype.hasCostBasis = function() {
2433
+ return jspb.Message.getField(this, 20) != null;
2434
+ };
2435
+
2436
+
2047
2437
 
2048
2438
 
2049
2439
 
@@ -24,7 +24,7 @@ test('test BondSecurity.getTenor() returns correct Tenor for 10-year bond with a
24
24
  testBondSecurityTenorWithAsOfDate();
25
25
  });
26
26
  function testBondSecurityCreation() {
27
- // Create a SecurityProto with BOND_SECURITY type, coupon type, and coupon frequency
27
+ // Create a SecurityProto with a bond product type, coupon type, and coupon frequency
28
28
  const securityProto = new security_pb_1.SecurityProto();
29
29
  securityProto.setUuid(uuid_1.UUID.random().toUUIDProto());
30
30
  securityProto.setProductType(product_type_pb_1.ProductTypeProto.TREASURY_NOTE);
@@ -52,7 +52,7 @@ function testBondSecurityCreation() {
52
52
  assert(couponFrequency.toString() === 'SEMIANNUALLY', `Expected coupon frequency SEMIANNUALLY, got ${couponFrequency.toString()}`);
53
53
  }
54
54
  function testBondSecurityTenor() {
55
- // Create a SecurityProto with BOND_SECURITY type and dates for a 10-year bond
55
+ // Create a SecurityProto with a bond product type and dates for a 10-year bond
56
56
  const securityProto = new security_pb_1.SecurityProto();
57
57
  securityProto.setUuid(uuid_1.UUID.random().toUUIDProto());
58
58
  securityProto.setProductType(product_type_pb_1.ProductTypeProto.TREASURY_NOTE);
@@ -120,7 +120,7 @@ function testBondSecurityTenor() {
120
120
  assert(tenor2.toString() === 'TERM: 2Y6M', `Expected "TERM: 2Y6M", got "${tenor2.toString()}"`);
121
121
  }
122
122
  function testBondSecurityTenorWithAsOfDate() {
123
- // Create a SecurityProto with BOND_SECURITY type and dates for a 10-year bond
123
+ // Create a SecurityProto with a bond product type and dates for a 10-year bond
124
124
  const securityProto = new security_pb_1.SecurityProto();
125
125
  securityProto.setProductType(product_type_pb_1.ProductTypeProto.TREASURY_NOTE);
126
126
  const bond3 = new security_pb_1.BondDetailsProto();
@@ -1 +1 @@
1
- {"version":3,"file":"BondSecurity.test.js","sourceRoot":"","sources":["BondSecurity.test.ts"],"names":[],"mappings":";;;;;AAAA,iCAAkC;AAClC,0DAAkC;AAClC,kEAA0C;AAC1C,iFAAkG;AAClG,yFAAuF;AACvF,uFAAqF;AACrF,iGAA+F;AAC/F,iFAA+E;AAE/E,wCAAqC;AAErC,qFAAmF;AACnF,8CAAqE;AAErE,IAAI,CAAC,kFAAkF,EAAE,GAAG,EAAE;IAC1F,wBAAwB,EAAE,CAAC;AAC/B,CAAC,CAAC,CAAC;AAEH,IAAI,CAAC,qEAAqE,EAAE,GAAG,EAAE;IAC7E,qBAAqB,EAAE,CAAC;AAC5B,CAAC,CAAC,CAAC;AAEH,IAAI,CAAC,qFAAqF,EAAE,GAAG,EAAE;IAC7F,iCAAiC,EAAE,CAAC;AACxC,CAAC,CAAC,CAAC;AAEH,SAAS,wBAAwB;IAC7B,oFAAoF;IACpF,MAAM,aAAa,GAAG,IAAI,2BAAa,EAAE,CAAC;IAC1C,aAAa,CAAC,OAAO,CAAC,WAAI,CAAC,MAAM,EAAE,CAAC,WAAW,EAA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KAAK,CAAC,QAAQ,EAAE,CAAC;IAChC,MAAM,CAAC,MAAM,KAAK,IAAI,EAAE,2BAA2B,CAAC,CAAC;IACrD,IAAI,MAAM,EAAE;QACR,MAAM,CAAC,MAAM,CAAC,KAAK,KAAK,CAAC,EAAE,yBAAyB,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC;QACpE,MAAM,CAAC,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,0BAA0B,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;QACvE,MAAM,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,EAAE,wBAAwB,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;KACpE;IAED,yBAAyB;IACzB,MAAM,gBAAgB,GAAG,KAAK,CAAC,mBAAmB,EAAE,CAAC;IACrD,MAAM,CAAC,gBAAgB,KAAK,IAAI,EAAE,yCAAyC,gBAAgB,GAAG,CAAC,CAAC;IAEhG,MAAM,WAAW,GAAG,KAAK,CAAC,QAAQ,EAAE,CAAC;IACrC,MAAM,CAAC,WAAW,KAAK,UAAU,EAAE,6BAA6B,WAAW,GAAG,CAAC,CAAC;AACpF,CAAC"}
@@ -25,7 +25,7 @@ test('test BondSecurity.getTenor() returns correct Tenor for 10-year bond with a
25
25
  });
26
26
 
27
27
  function testBondSecurityCreation(): void {
28
- // Create a SecurityProto with BOND_SECURITY type, coupon type, and coupon frequency
28
+ // Create a SecurityProto with a bond product type, coupon type, and coupon frequency
29
29
  const securityProto = new SecurityProto();
30
30
  securityProto.setUuid(UUID.random().toUUIDProto());
31
31
  securityProto.setProductType(ProductTypeProto.TREASURY_NOTE);
@@ -58,7 +58,7 @@ function testBondSecurityCreation(): void {
58
58
  }
59
59
 
60
60
  function testBondSecurityTenor(): void {
61
- // Create a SecurityProto with BOND_SECURITY type and dates for a 10-year bond
61
+ // Create a SecurityProto with a bond product type and dates for a 10-year bond
62
62
  const securityProto = new SecurityProto();
63
63
  securityProto.setUuid(UUID.random().toUUIDProto());
64
64
  securityProto.setProductType(ProductTypeProto.TREASURY_NOTE);
@@ -138,7 +138,7 @@ function testBondSecurityTenor(): void {
138
138
  }
139
139
 
140
140
  function testBondSecurityTenorWithAsOfDate(): void {
141
- // Create a SecurityProto with BOND_SECURITY type and dates for a 10-year bond
141
+ // Create a SecurityProto with a bond product type and dates for a 10-year bond
142
142
  const securityProto = new SecurityProto();
143
143
 
144
144
  securityProto.setProductType(ProductTypeProto.TREASURY_NOTE);
@@ -32,7 +32,7 @@ function makeIdentifier(type, value) {
32
32
  return new identifier_pb_1.IdentifierProto().setIdentifierType(type).setIdentifierValue(value);
33
33
  }
34
34
  describe('SecurityProto Round-Trip Serialization — All 6 Security Types', () => {
35
- test('BOND_SECURITY: all bond fields survive round-trip', () => {
35
+ test('BOND: all bond fields survive round-trip', () => {
36
36
  const original = new security_pb_2.SecurityProto();
37
37
  original.setProductType(product_type_pb_1.ProductTypeProto.TREASURY_NOTE);
38
38
  original.setAssetClass('Fixed Income');
@@ -126,7 +126,7 @@ describe('SecurityProto Round-Trip Serialization — All 6 Security Types', () =
126
126
  expect((0, decimal_1.toCanonicalString)((0, decimal_1.decodeDecimal)(parsedFrn.getSpread()))).toBe('50');
127
127
  expect(parsedFrn.getReferenceRateIndex()).toBe(index_type_pb_1.IndexTypeProto.T_BILL_13_WEEK);
128
128
  });
129
- test('EQUITY_SECURITY: identifier + asset_class survive round-trip', () => {
129
+ test('STOCK: identifier + asset_class survive round-trip', () => {
130
130
  const original = new security_pb_2.SecurityProto();
131
131
  original.setProductType(product_type_pb_1.ProductTypeProto.COMMON_STOCK);
132
132
  original.setAssetClass('Equity');
@@ -144,7 +144,7 @@ describe('SecurityProto Round-Trip Serialization — All 6 Security Types', () =
144
144
  expect(parsed.getIdentifiersList()[0].getIdentifierValue()).toBe('AAPL');
145
145
  expect(parsed.getIdentifiersList()[0].getIdentifierType()).toBe(identifier_type_pb_1.IdentifierTypeProto.EXCH_TICKER);
146
146
  });
147
- test('CASH_SECURITY: cash_id + settlement fields survive round-trip', () => {
147
+ test('CASH_INSTRUMENT: cash_id + settlement fields survive round-trip', () => {
148
148
  const original = new security_pb_2.SecurityProto();
149
149
  original.setProductType(product_type_pb_1.ProductTypeProto.CURRENCY);
150
150
  original.setAssetClass('Cash');
@@ -162,7 +162,7 @@ describe('SecurityProto Round-Trip Serialization — All 6 Security Types', () =
162
162
  expect(parsed.getIdentifiersList()[0].getIdentifierValue()).toBe('USD');
163
163
  expect(parsed.getIdentifiersList()[0].getIdentifierType()).toBe(identifier_type_pb_1.IdentifierTypeProto.CASH);
164
164
  });
165
- test('INDEX_SECURITY: index_type + inflation_index_type survive round-trip', () => {
165
+ test('INDEX: index_type + inflation_index_type survive round-trip', () => {
166
166
  const original = new security_pb_2.SecurityProto();
167
167
  original.setProductType(product_type_pb_1.ProductTypeProto.EQUITY_INDEX);
168
168
  original.setAssetClass('Index');