Skip to content

Commit a143a31

Browse files
authored
Merge pull request #131 from pluggyai/feat/add-purchase-date-to-investiment
feat: add purchaseDate field to Investment
2 parents ced693f + 60df1e0 commit a143a31

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/types/deserialized.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,12 @@ export type DeserializedInvestmentTransaction = Omit<
3131

3232
export type DeserializedInvestment = Omit<
3333
Investment,
34-
'date' | 'dueDate' | 'issueDate' | 'transactions'
34+
'date' | 'dueDate' | 'issueDate' | 'purchaseDate' | 'transactions'
3535
> & {
3636
date?: string
3737
dueDate?: string
3838
issueDate?: string
39+
purchaseDate?: string
3940
transactions: DeserializedInvestmentTransaction[]
4041
}
4142

src/types/investment.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,8 @@ export type Investment = {
236236
issuer: string | null
237237
/** Date when the investment was issued. (Normally FIXED_INCOME investments are issued by an entity) */
238238
issueDate: Date | null
239+
/** Date when the investment was purchased. */
240+
purchaseDate: Date | null
239241
/** Fixed rate for the investment. (Normally only available in FIXED_INCOME types) */
240242
rate: number | null
241243
/** Fixed rate type for the investment, ie. CDI. (Normally only available in FIXED_INCOME types) */

0 commit comments

Comments
 (0)