Commit 2a38be2
authored
feat(investment): add issueDate, purchaseDate, issuerCNPJ fields (#82)
The Pluggy API returns three Investment fields the DTO does not map. Under
Gson's FieldNamingPolicy.IDENTITY, Java field names must match the API JSON
keys byte-for-byte, so unmapped/misnamed fields are silently dropped to null.
- issueDate: the existing `issuerDate` field is a misnaming (extra `r`) with
no matching API key, so it was always null. Added the correct `issueDate`
and marked `issuerDate` @deprecated (kept for backward compatibility).
- purchaseDate: was not mapped.
- issuerCNPJ: was not mapped (casing verified against api.pluggy.ai/oas3.json,
CNPJ is upper-case in the spec).
issueDate/purchaseDate are date-time strings -> Date, matching the existing
`date`/`dueDate` mapping; issuerCNPJ is a string.1 parent 3e0295f commit 2a38be2
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
39 | 46 | | |
| 47 | + | |
| 48 | + | |
40 | 49 | | |
41 | 50 | | |
42 | 51 | | |
| |||
0 commit comments