@fintekkers/ledger-models 0.4.65 → 1.1.1
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/catalog/measures.json +11 -5
- package/node/fintekkers/models/portfolio/amortisation_elections_grpc_pb.js +1 -0
- package/node/fintekkers/models/portfolio/amortisation_elections_pb.d.ts +51 -0
- package/node/fintekkers/models/portfolio/amortisation_elections_pb.js +266 -0
- package/node/fintekkers/models/portfolio/portfolio_pb.d.ts +7 -0
- package/node/fintekkers/models/portfolio/portfolio_pb.js +54 -1
- package/node/fintekkers/models/position/tax_lot_grpc_pb.js +1 -0
- package/node/fintekkers/models/position/tax_lot_pb.d.ts +44 -0
- package/node/fintekkers/models/position/tax_lot_pb.js +303 -0
- package/node/fintekkers/requests/valuation/cost_basis_input.test.d.ts +7 -0
- package/node/fintekkers/requests/valuation/cost_basis_input.test.js +69 -0
- package/node/fintekkers/requests/valuation/cost_basis_input.test.js.map +1 -0
- package/node/fintekkers/requests/valuation/cost_basis_input.test.ts +78 -0
- package/node/fintekkers/requests/valuation/product_inputs_pb.d.ts +48 -0
- package/node/fintekkers/requests/valuation/product_inputs_pb.js +393 -3
- package/package.json +1 -1
package/catalog/measures.json
CHANGED
|
@@ -57,12 +57,18 @@
|
|
|
57
57
|
"name": "ADJUSTED_COST_BASIS",
|
|
58
58
|
"enum_value": 4,
|
|
59
59
|
"display_name": "Adjusted Cost Basis",
|
|
60
|
-
"description": "
|
|
61
|
-
"formula":
|
|
62
|
-
"units": "
|
|
60
|
+
"description": "Tax amortised cost, per 100 face, quantity-weighted over the open lots. Tax basis only; book (GAAP/IFRS) cost is out of scope. Inputs: cost_basis (CostBasisInput) on BondInput, TipsInput or FrnInput.",
|
|
61
|
+
"formula": "AdjustedCostBasis = sum(open_quantity_i * acb_i) / sum(open_quantity_i) over CostBasisInput.lots, where acb_i is lot i's amortised cost per 100 face at the valuation date. OID: always accreted (mandatory, whatever the elections) at constant yield from the issue price (IssuanceProto.price_for_single_price_auction, MDI-82), reduced by any acquisition premium. Premium (IRC §171): amortised at constant yield if elected. Market discount: accreted only with INCLUDE_CURRENTLY, ratably or at constant yield per market_discount_accrual; otherwise left until disposition. De minimis: OID and market discount below 0.25% × complete years to maturity are treated as zero.",
|
|
62
|
+
"units": "Price per 100 face (% of par). TIPS: per 100 original face, in nominal dollars",
|
|
63
63
|
"category": "cost",
|
|
64
|
-
"applies_to": ["
|
|
65
|
-
"model_assumptions": [
|
|
64
|
+
"applies_to": ["TREASURY_NOTE", "TREASURY_BOND", "SOVEREIGN_BOND", "CORP_BOND", "MUNI_BOND", "TIPS", "TREASURY_FRN"],
|
|
65
|
+
"model_assumptions": [
|
|
66
|
+
"Accrual start: from each lot's open_date plus the product's settlement lag (e.g. T+1 for Treasuries)",
|
|
67
|
+
"Elections: CostBasisInput.elections, copied from PortfolioProto.amortisation_elections; unset fields use the defaults (PREMIUM_ELECTED, AT_DISPOSITION, RATABLE)",
|
|
68
|
+
"TIPS: amortise in real terms, then multiply by the index ratio at the valuation date, giving a figure per 100 original face in nominal dollars",
|
|
69
|
+
"FRN: use the equivalent fixed rate from the fixing at settlement",
|
|
70
|
+
"No lots: the measure is absent, with a \"no open lots\" warning, never 0"
|
|
71
|
+
],
|
|
66
72
|
"implemented": false
|
|
67
73
|
},
|
|
68
74
|
{
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// GENERATED CODE -- NO SERVICES IN PROTO
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// package: fintekkers.models.portfolio
|
|
2
|
+
// file: fintekkers/models/portfolio/amortisation_elections.proto
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
|
|
7
|
+
import * as jspb from "google-protobuf";
|
|
8
|
+
|
|
9
|
+
export class AmortisationElectionsProto extends jspb.Message {
|
|
10
|
+
getBondPremium(): PremiumAmortisationElectionProto;
|
|
11
|
+
setBondPremium(value: PremiumAmortisationElectionProto): AmortisationElectionsProto;
|
|
12
|
+
getMarketDiscountInclusion(): MarketDiscountInclusionProto;
|
|
13
|
+
setMarketDiscountInclusion(value: MarketDiscountInclusionProto): AmortisationElectionsProto;
|
|
14
|
+
getMarketDiscountAccrual(): MarketDiscountAccrualMethodProto;
|
|
15
|
+
setMarketDiscountAccrual(value: MarketDiscountAccrualMethodProto): AmortisationElectionsProto;
|
|
16
|
+
|
|
17
|
+
serializeBinary(): Uint8Array;
|
|
18
|
+
toObject(includeInstance?: boolean): AmortisationElectionsProto.AsObject;
|
|
19
|
+
static toObject(includeInstance: boolean, msg: AmortisationElectionsProto): AmortisationElectionsProto.AsObject;
|
|
20
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
21
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
22
|
+
static serializeBinaryToWriter(message: AmortisationElectionsProto, writer: jspb.BinaryWriter): void;
|
|
23
|
+
static deserializeBinary(bytes: Uint8Array): AmortisationElectionsProto;
|
|
24
|
+
static deserializeBinaryFromReader(message: AmortisationElectionsProto, reader: jspb.BinaryReader): AmortisationElectionsProto;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export namespace AmortisationElectionsProto {
|
|
28
|
+
export type AsObject = {
|
|
29
|
+
bondPremium: PremiumAmortisationElectionProto,
|
|
30
|
+
marketDiscountInclusion: MarketDiscountInclusionProto,
|
|
31
|
+
marketDiscountAccrual: MarketDiscountAccrualMethodProto,
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export enum PremiumAmortisationElectionProto {
|
|
36
|
+
UNSPECIFIED_PREMIUM_ELECTION = 0,
|
|
37
|
+
PREMIUM_ELECTED = 1,
|
|
38
|
+
PREMIUM_NOT_ELECTED = 2,
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export enum MarketDiscountInclusionProto {
|
|
42
|
+
UNSPECIFIED_MARKET_DISCOUNT_INCLUSION = 0,
|
|
43
|
+
AT_DISPOSITION = 1,
|
|
44
|
+
INCLUDE_CURRENTLY = 2,
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export enum MarketDiscountAccrualMethodProto {
|
|
48
|
+
UNSPECIFIED_ACCRUAL_METHOD = 0,
|
|
49
|
+
RATABLE = 1,
|
|
50
|
+
CONSTANT_YIELD = 2,
|
|
51
|
+
}
|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
// source: fintekkers/models/portfolio/amortisation_elections.proto
|
|
2
|
+
/**
|
|
3
|
+
* @fileoverview
|
|
4
|
+
* @enhanceable
|
|
5
|
+
* @suppress {missingRequire} reports error on implicit type usages.
|
|
6
|
+
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
7
|
+
* field starts with 'MSG_' and isn't a translatable message.
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
11
|
+
/* eslint-disable */
|
|
12
|
+
// @ts-nocheck
|
|
13
|
+
|
|
14
|
+
var jspb = require('google-protobuf');
|
|
15
|
+
var goog = jspb;
|
|
16
|
+
var global = (function() {
|
|
17
|
+
if (this) { return this; }
|
|
18
|
+
if (typeof window !== 'undefined') { return window; }
|
|
19
|
+
if (typeof global !== 'undefined') { return global; }
|
|
20
|
+
if (typeof self !== 'undefined') { return self; }
|
|
21
|
+
return Function('return this')();
|
|
22
|
+
}.call(null));
|
|
23
|
+
|
|
24
|
+
goog.exportSymbol('proto.fintekkers.models.portfolio.AmortisationElectionsProto', null, global);
|
|
25
|
+
goog.exportSymbol('proto.fintekkers.models.portfolio.MarketDiscountAccrualMethodProto', null, global);
|
|
26
|
+
goog.exportSymbol('proto.fintekkers.models.portfolio.MarketDiscountInclusionProto', null, global);
|
|
27
|
+
goog.exportSymbol('proto.fintekkers.models.portfolio.PremiumAmortisationElectionProto', null, global);
|
|
28
|
+
/**
|
|
29
|
+
* Generated by JsPbCodeGenerator.
|
|
30
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
31
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
32
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
33
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
34
|
+
* valid.
|
|
35
|
+
* @extends {jspb.Message}
|
|
36
|
+
* @constructor
|
|
37
|
+
*/
|
|
38
|
+
proto.fintekkers.models.portfolio.AmortisationElectionsProto = function(opt_data) {
|
|
39
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
40
|
+
};
|
|
41
|
+
goog.inherits(proto.fintekkers.models.portfolio.AmortisationElectionsProto, jspb.Message);
|
|
42
|
+
if (goog.DEBUG && !COMPILED) {
|
|
43
|
+
/**
|
|
44
|
+
* @public
|
|
45
|
+
* @override
|
|
46
|
+
*/
|
|
47
|
+
proto.fintekkers.models.portfolio.AmortisationElectionsProto.displayName = 'proto.fintekkers.models.portfolio.AmortisationElectionsProto';
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
53
|
+
/**
|
|
54
|
+
* Creates an object representation of this proto.
|
|
55
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
56
|
+
* Optional fields that are not set will be set to undefined.
|
|
57
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
58
|
+
* For the list of reserved names please see:
|
|
59
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
60
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
61
|
+
* JSPB instance for transitional soy proto support:
|
|
62
|
+
* http://goto/soy-param-migration
|
|
63
|
+
* @return {!Object}
|
|
64
|
+
*/
|
|
65
|
+
proto.fintekkers.models.portfolio.AmortisationElectionsProto.prototype.toObject = function(opt_includeInstance) {
|
|
66
|
+
return proto.fintekkers.models.portfolio.AmortisationElectionsProto.toObject(opt_includeInstance, this);
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Static version of the {@see toObject} method.
|
|
72
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
73
|
+
* the JSPB instance for transitional soy proto support:
|
|
74
|
+
* http://goto/soy-param-migration
|
|
75
|
+
* @param {!proto.fintekkers.models.portfolio.AmortisationElectionsProto} msg The msg instance to transform.
|
|
76
|
+
* @return {!Object}
|
|
77
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
78
|
+
*/
|
|
79
|
+
proto.fintekkers.models.portfolio.AmortisationElectionsProto.toObject = function(includeInstance, msg) {
|
|
80
|
+
var f, obj = {
|
|
81
|
+
bondPremium: jspb.Message.getFieldWithDefault(msg, 10, 0),
|
|
82
|
+
marketDiscountInclusion: jspb.Message.getFieldWithDefault(msg, 11, 0),
|
|
83
|
+
marketDiscountAccrual: jspb.Message.getFieldWithDefault(msg, 12, 0)
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
if (includeInstance) {
|
|
87
|
+
obj.$jspbMessageInstance = msg;
|
|
88
|
+
}
|
|
89
|
+
return obj;
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Deserializes binary data (in protobuf wire format).
|
|
96
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
97
|
+
* @return {!proto.fintekkers.models.portfolio.AmortisationElectionsProto}
|
|
98
|
+
*/
|
|
99
|
+
proto.fintekkers.models.portfolio.AmortisationElectionsProto.deserializeBinary = function(bytes) {
|
|
100
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
101
|
+
var msg = new proto.fintekkers.models.portfolio.AmortisationElectionsProto;
|
|
102
|
+
return proto.fintekkers.models.portfolio.AmortisationElectionsProto.deserializeBinaryFromReader(msg, reader);
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
108
|
+
* given reader into the given message object.
|
|
109
|
+
* @param {!proto.fintekkers.models.portfolio.AmortisationElectionsProto} msg The message object to deserialize into.
|
|
110
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
111
|
+
* @return {!proto.fintekkers.models.portfolio.AmortisationElectionsProto}
|
|
112
|
+
*/
|
|
113
|
+
proto.fintekkers.models.portfolio.AmortisationElectionsProto.deserializeBinaryFromReader = function(msg, reader) {
|
|
114
|
+
while (reader.nextField()) {
|
|
115
|
+
if (reader.isEndGroup()) {
|
|
116
|
+
break;
|
|
117
|
+
}
|
|
118
|
+
var field = reader.getFieldNumber();
|
|
119
|
+
switch (field) {
|
|
120
|
+
case 10:
|
|
121
|
+
var value = /** @type {!proto.fintekkers.models.portfolio.PremiumAmortisationElectionProto} */ (reader.readEnum());
|
|
122
|
+
msg.setBondPremium(value);
|
|
123
|
+
break;
|
|
124
|
+
case 11:
|
|
125
|
+
var value = /** @type {!proto.fintekkers.models.portfolio.MarketDiscountInclusionProto} */ (reader.readEnum());
|
|
126
|
+
msg.setMarketDiscountInclusion(value);
|
|
127
|
+
break;
|
|
128
|
+
case 12:
|
|
129
|
+
var value = /** @type {!proto.fintekkers.models.portfolio.MarketDiscountAccrualMethodProto} */ (reader.readEnum());
|
|
130
|
+
msg.setMarketDiscountAccrual(value);
|
|
131
|
+
break;
|
|
132
|
+
default:
|
|
133
|
+
reader.skipField();
|
|
134
|
+
break;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
return msg;
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
143
|
+
* @return {!Uint8Array}
|
|
144
|
+
*/
|
|
145
|
+
proto.fintekkers.models.portfolio.AmortisationElectionsProto.prototype.serializeBinary = function() {
|
|
146
|
+
var writer = new jspb.BinaryWriter();
|
|
147
|
+
proto.fintekkers.models.portfolio.AmortisationElectionsProto.serializeBinaryToWriter(this, writer);
|
|
148
|
+
return writer.getResultBuffer();
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
154
|
+
* format), writing to the given BinaryWriter.
|
|
155
|
+
* @param {!proto.fintekkers.models.portfolio.AmortisationElectionsProto} message
|
|
156
|
+
* @param {!jspb.BinaryWriter} writer
|
|
157
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
158
|
+
*/
|
|
159
|
+
proto.fintekkers.models.portfolio.AmortisationElectionsProto.serializeBinaryToWriter = function(message, writer) {
|
|
160
|
+
var f = undefined;
|
|
161
|
+
f = message.getBondPremium();
|
|
162
|
+
if (f !== 0.0) {
|
|
163
|
+
writer.writeEnum(
|
|
164
|
+
10,
|
|
165
|
+
f
|
|
166
|
+
);
|
|
167
|
+
}
|
|
168
|
+
f = message.getMarketDiscountInclusion();
|
|
169
|
+
if (f !== 0.0) {
|
|
170
|
+
writer.writeEnum(
|
|
171
|
+
11,
|
|
172
|
+
f
|
|
173
|
+
);
|
|
174
|
+
}
|
|
175
|
+
f = message.getMarketDiscountAccrual();
|
|
176
|
+
if (f !== 0.0) {
|
|
177
|
+
writer.writeEnum(
|
|
178
|
+
12,
|
|
179
|
+
f
|
|
180
|
+
);
|
|
181
|
+
}
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* optional PremiumAmortisationElectionProto bond_premium = 10;
|
|
187
|
+
* @return {!proto.fintekkers.models.portfolio.PremiumAmortisationElectionProto}
|
|
188
|
+
*/
|
|
189
|
+
proto.fintekkers.models.portfolio.AmortisationElectionsProto.prototype.getBondPremium = function() {
|
|
190
|
+
return /** @type {!proto.fintekkers.models.portfolio.PremiumAmortisationElectionProto} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* @param {!proto.fintekkers.models.portfolio.PremiumAmortisationElectionProto} value
|
|
196
|
+
* @return {!proto.fintekkers.models.portfolio.AmortisationElectionsProto} returns this
|
|
197
|
+
*/
|
|
198
|
+
proto.fintekkers.models.portfolio.AmortisationElectionsProto.prototype.setBondPremium = function(value) {
|
|
199
|
+
return jspb.Message.setProto3EnumField(this, 10, value);
|
|
200
|
+
};
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* optional MarketDiscountInclusionProto market_discount_inclusion = 11;
|
|
205
|
+
* @return {!proto.fintekkers.models.portfolio.MarketDiscountInclusionProto}
|
|
206
|
+
*/
|
|
207
|
+
proto.fintekkers.models.portfolio.AmortisationElectionsProto.prototype.getMarketDiscountInclusion = function() {
|
|
208
|
+
return /** @type {!proto.fintekkers.models.portfolio.MarketDiscountInclusionProto} */ (jspb.Message.getFieldWithDefault(this, 11, 0));
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* @param {!proto.fintekkers.models.portfolio.MarketDiscountInclusionProto} value
|
|
214
|
+
* @return {!proto.fintekkers.models.portfolio.AmortisationElectionsProto} returns this
|
|
215
|
+
*/
|
|
216
|
+
proto.fintekkers.models.portfolio.AmortisationElectionsProto.prototype.setMarketDiscountInclusion = function(value) {
|
|
217
|
+
return jspb.Message.setProto3EnumField(this, 11, value);
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* optional MarketDiscountAccrualMethodProto market_discount_accrual = 12;
|
|
223
|
+
* @return {!proto.fintekkers.models.portfolio.MarketDiscountAccrualMethodProto}
|
|
224
|
+
*/
|
|
225
|
+
proto.fintekkers.models.portfolio.AmortisationElectionsProto.prototype.getMarketDiscountAccrual = function() {
|
|
226
|
+
return /** @type {!proto.fintekkers.models.portfolio.MarketDiscountAccrualMethodProto} */ (jspb.Message.getFieldWithDefault(this, 12, 0));
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* @param {!proto.fintekkers.models.portfolio.MarketDiscountAccrualMethodProto} value
|
|
232
|
+
* @return {!proto.fintekkers.models.portfolio.AmortisationElectionsProto} returns this
|
|
233
|
+
*/
|
|
234
|
+
proto.fintekkers.models.portfolio.AmortisationElectionsProto.prototype.setMarketDiscountAccrual = function(value) {
|
|
235
|
+
return jspb.Message.setProto3EnumField(this, 12, value);
|
|
236
|
+
};
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* @enum {number}
|
|
241
|
+
*/
|
|
242
|
+
proto.fintekkers.models.portfolio.PremiumAmortisationElectionProto = {
|
|
243
|
+
UNSPECIFIED_PREMIUM_ELECTION: 0,
|
|
244
|
+
PREMIUM_ELECTED: 1,
|
|
245
|
+
PREMIUM_NOT_ELECTED: 2
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* @enum {number}
|
|
250
|
+
*/
|
|
251
|
+
proto.fintekkers.models.portfolio.MarketDiscountInclusionProto = {
|
|
252
|
+
UNSPECIFIED_MARKET_DISCOUNT_INCLUSION: 0,
|
|
253
|
+
AT_DISPOSITION: 1,
|
|
254
|
+
INCLUDE_CURRENTLY: 2
|
|
255
|
+
};
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* @enum {number}
|
|
259
|
+
*/
|
|
260
|
+
proto.fintekkers.models.portfolio.MarketDiscountAccrualMethodProto = {
|
|
261
|
+
UNSPECIFIED_ACCRUAL_METHOD: 0,
|
|
262
|
+
RATABLE: 1,
|
|
263
|
+
CONSTANT_YIELD: 2
|
|
264
|
+
};
|
|
265
|
+
|
|
266
|
+
goog.object.extend(exports, proto.fintekkers.models.portfolio);
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
/* eslint-disable */
|
|
6
6
|
|
|
7
7
|
import * as jspb from "google-protobuf";
|
|
8
|
+
import * as fintekkers_models_portfolio_amortisation_elections_pb from "../../../fintekkers/models/portfolio/amortisation_elections_pb";
|
|
8
9
|
import * as fintekkers_models_util_local_timestamp_pb from "../../../fintekkers/models/util/local_timestamp_pb";
|
|
9
10
|
import * as fintekkers_models_util_uuid_pb from "../../../fintekkers/models/util/uuid_pb";
|
|
10
11
|
import * as fintekkers_models_util_object_type_pb from "../../../fintekkers/models/util/object_type_pb";
|
|
@@ -43,6 +44,11 @@ export class PortfolioProto extends jspb.Message {
|
|
|
43
44
|
getPortfolioName(): string;
|
|
44
45
|
setPortfolioName(value: string): PortfolioProto;
|
|
45
46
|
|
|
47
|
+
hasAmortisationElections(): boolean;
|
|
48
|
+
clearAmortisationElections(): void;
|
|
49
|
+
getAmortisationElections(): fintekkers_models_portfolio_amortisation_elections_pb.AmortisationElectionsProto | undefined;
|
|
50
|
+
setAmortisationElections(value?: fintekkers_models_portfolio_amortisation_elections_pb.AmortisationElectionsProto): PortfolioProto;
|
|
51
|
+
|
|
46
52
|
serializeBinary(): Uint8Array;
|
|
47
53
|
toObject(includeInstance?: boolean): PortfolioProto.AsObject;
|
|
48
54
|
static toObject(includeInstance: boolean, msg: PortfolioProto): PortfolioProto.AsObject;
|
|
@@ -63,5 +69,6 @@ export namespace PortfolioProto {
|
|
|
63
69
|
validFrom?: fintekkers_models_util_local_timestamp_pb.LocalTimestampProto.AsObject,
|
|
64
70
|
validTo?: fintekkers_models_util_local_timestamp_pb.LocalTimestampProto.AsObject,
|
|
65
71
|
portfolioName: string,
|
|
72
|
+
amortisationElections?: fintekkers_models_portfolio_amortisation_elections_pb.AmortisationElectionsProto.AsObject,
|
|
66
73
|
}
|
|
67
74
|
}
|
|
@@ -21,6 +21,8 @@ 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);
|
|
24
26
|
var fintekkers_models_util_local_timestamp_pb = require('../../../fintekkers/models/util/local_timestamp_pb.js');
|
|
25
27
|
goog.object.extend(proto, fintekkers_models_util_local_timestamp_pb);
|
|
26
28
|
var fintekkers_models_util_uuid_pb = require('../../../fintekkers/models/util/uuid_pb.js');
|
|
@@ -90,7 +92,8 @@ proto.fintekkers.models.portfolio.PortfolioProto.toObject = function(includeInst
|
|
|
90
92
|
isLink: jspb.Message.getBooleanFieldWithDefault(msg, 7, false),
|
|
91
93
|
validFrom: (f = msg.getValidFrom()) && fintekkers_models_util_local_timestamp_pb.LocalTimestampProto.toObject(includeInstance, f),
|
|
92
94
|
validTo: (f = msg.getValidTo()) && fintekkers_models_util_local_timestamp_pb.LocalTimestampProto.toObject(includeInstance, f),
|
|
93
|
-
portfolioName: jspb.Message.getFieldWithDefault(msg, 10, "")
|
|
95
|
+
portfolioName: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
96
|
+
amortisationElections: (f = msg.getAmortisationElections()) && fintekkers_models_portfolio_amortisation_elections_pb.AmortisationElectionsProto.toObject(includeInstance, f)
|
|
94
97
|
};
|
|
95
98
|
|
|
96
99
|
if (includeInstance) {
|
|
@@ -164,6 +167,11 @@ proto.fintekkers.models.portfolio.PortfolioProto.deserializeBinaryFromReader = f
|
|
|
164
167
|
var value = /** @type {string} */ (reader.readString());
|
|
165
168
|
msg.setPortfolioName(value);
|
|
166
169
|
break;
|
|
170
|
+
case 11:
|
|
171
|
+
var value = new fintekkers_models_portfolio_amortisation_elections_pb.AmortisationElectionsProto;
|
|
172
|
+
reader.readMessage(value,fintekkers_models_portfolio_amortisation_elections_pb.AmortisationElectionsProto.deserializeBinaryFromReader);
|
|
173
|
+
msg.setAmortisationElections(value);
|
|
174
|
+
break;
|
|
167
175
|
default:
|
|
168
176
|
reader.skipField();
|
|
169
177
|
break;
|
|
@@ -254,6 +262,14 @@ proto.fintekkers.models.portfolio.PortfolioProto.serializeBinaryToWriter = funct
|
|
|
254
262
|
f
|
|
255
263
|
);
|
|
256
264
|
}
|
|
265
|
+
f = message.getAmortisationElections();
|
|
266
|
+
if (f != null) {
|
|
267
|
+
writer.writeMessage(
|
|
268
|
+
11,
|
|
269
|
+
f,
|
|
270
|
+
fintekkers_models_portfolio_amortisation_elections_pb.AmortisationElectionsProto.serializeBinaryToWriter
|
|
271
|
+
);
|
|
272
|
+
}
|
|
257
273
|
};
|
|
258
274
|
|
|
259
275
|
|
|
@@ -496,4 +512,41 @@ proto.fintekkers.models.portfolio.PortfolioProto.prototype.setPortfolioName = fu
|
|
|
496
512
|
};
|
|
497
513
|
|
|
498
514
|
|
|
515
|
+
/**
|
|
516
|
+
* optional AmortisationElectionsProto amortisation_elections = 11;
|
|
517
|
+
* @return {?proto.fintekkers.models.portfolio.AmortisationElectionsProto}
|
|
518
|
+
*/
|
|
519
|
+
proto.fintekkers.models.portfolio.PortfolioProto.prototype.getAmortisationElections = function() {
|
|
520
|
+
return /** @type{?proto.fintekkers.models.portfolio.AmortisationElectionsProto} */ (
|
|
521
|
+
jspb.Message.getWrapperField(this, fintekkers_models_portfolio_amortisation_elections_pb.AmortisationElectionsProto, 11));
|
|
522
|
+
};
|
|
523
|
+
|
|
524
|
+
|
|
525
|
+
/**
|
|
526
|
+
* @param {?proto.fintekkers.models.portfolio.AmortisationElectionsProto|undefined} value
|
|
527
|
+
* @return {!proto.fintekkers.models.portfolio.PortfolioProto} returns this
|
|
528
|
+
*/
|
|
529
|
+
proto.fintekkers.models.portfolio.PortfolioProto.prototype.setAmortisationElections = function(value) {
|
|
530
|
+
return jspb.Message.setWrapperField(this, 11, value);
|
|
531
|
+
};
|
|
532
|
+
|
|
533
|
+
|
|
534
|
+
/**
|
|
535
|
+
* Clears the message field making it undefined.
|
|
536
|
+
* @return {!proto.fintekkers.models.portfolio.PortfolioProto} returns this
|
|
537
|
+
*/
|
|
538
|
+
proto.fintekkers.models.portfolio.PortfolioProto.prototype.clearAmortisationElections = function() {
|
|
539
|
+
return this.setAmortisationElections(undefined);
|
|
540
|
+
};
|
|
541
|
+
|
|
542
|
+
|
|
543
|
+
/**
|
|
544
|
+
* Returns whether this field is set.
|
|
545
|
+
* @return {boolean}
|
|
546
|
+
*/
|
|
547
|
+
proto.fintekkers.models.portfolio.PortfolioProto.prototype.hasAmortisationElections = function() {
|
|
548
|
+
return jspb.Message.getField(this, 11) != null;
|
|
549
|
+
};
|
|
550
|
+
|
|
551
|
+
|
|
499
552
|
goog.object.extend(exports, proto.fintekkers.models.portfolio);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// GENERATED CODE -- NO SERVICES IN PROTO
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// package: fintekkers.models.position
|
|
2
|
+
// file: fintekkers/models/position/tax_lot.proto
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
|
|
7
|
+
import * as jspb from "google-protobuf";
|
|
8
|
+
import * as fintekkers_models_util_decimal_value_pb from "../../../fintekkers/models/util/decimal_value_pb";
|
|
9
|
+
import * as fintekkers_models_util_local_date_pb from "../../../fintekkers/models/util/local_date_pb";
|
|
10
|
+
|
|
11
|
+
export class TaxLotProto extends jspb.Message {
|
|
12
|
+
|
|
13
|
+
hasOpenDate(): boolean;
|
|
14
|
+
clearOpenDate(): void;
|
|
15
|
+
getOpenDate(): fintekkers_models_util_local_date_pb.LocalDateProto | undefined;
|
|
16
|
+
setOpenDate(value?: fintekkers_models_util_local_date_pb.LocalDateProto): TaxLotProto;
|
|
17
|
+
|
|
18
|
+
hasOpenQuantity(): boolean;
|
|
19
|
+
clearOpenQuantity(): void;
|
|
20
|
+
getOpenQuantity(): fintekkers_models_util_decimal_value_pb.DecimalValueProto | undefined;
|
|
21
|
+
setOpenQuantity(value?: fintekkers_models_util_decimal_value_pb.DecimalValueProto): TaxLotProto;
|
|
22
|
+
|
|
23
|
+
hasPrice(): boolean;
|
|
24
|
+
clearPrice(): void;
|
|
25
|
+
getPrice(): fintekkers_models_util_decimal_value_pb.DecimalValueProto | undefined;
|
|
26
|
+
setPrice(value?: fintekkers_models_util_decimal_value_pb.DecimalValueProto): TaxLotProto;
|
|
27
|
+
|
|
28
|
+
serializeBinary(): Uint8Array;
|
|
29
|
+
toObject(includeInstance?: boolean): TaxLotProto.AsObject;
|
|
30
|
+
static toObject(includeInstance: boolean, msg: TaxLotProto): TaxLotProto.AsObject;
|
|
31
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
32
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
33
|
+
static serializeBinaryToWriter(message: TaxLotProto, writer: jspb.BinaryWriter): void;
|
|
34
|
+
static deserializeBinary(bytes: Uint8Array): TaxLotProto;
|
|
35
|
+
static deserializeBinaryFromReader(message: TaxLotProto, reader: jspb.BinaryReader): TaxLotProto;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export namespace TaxLotProto {
|
|
39
|
+
export type AsObject = {
|
|
40
|
+
openDate?: fintekkers_models_util_local_date_pb.LocalDateProto.AsObject,
|
|
41
|
+
openQuantity?: fintekkers_models_util_decimal_value_pb.DecimalValueProto.AsObject,
|
|
42
|
+
price?: fintekkers_models_util_decimal_value_pb.DecimalValueProto.AsObject,
|
|
43
|
+
}
|
|
44
|
+
}
|