|
| 1 | +package ai.pluggy.client.response; |
| 2 | + |
| 3 | +import lombok.Builder; |
| 4 | +import lombok.Data; |
| 5 | + |
| 6 | +/** |
| 7 | + * Only available when item.status is 'PARTIAL_SUCCESS'. |
| 8 | + * Provides fine-grained information, per product, about their latest collection state. |
| 9 | + * |
| 10 | + * If a product was not requested at all, its entry will be null. |
| 11 | + * If it was requested, it's entry will reflect if it has been collected or not. |
| 12 | + * If collected, isUpdated will be true, and lastUpdatedAt will be the Date when it happened |
| 13 | + * If not collected, isUpdated will be false, and lastUpdatedAt will be null it wasn't ever collected before, or the previous date if it was. |
| 14 | + */ |
| 15 | +@Data |
| 16 | +@Builder |
| 17 | +public class ItemStatusDetail { |
| 18 | + /** Collection details for 'ACCOUNTS' product, or null if it was not requested at all. */ |
| 19 | + private ItemProductState accounts; |
| 20 | + /** Collection details for 'CREDIT_CARDS' product, or null if it was not requested at all. */ |
| 21 | + private ItemProductState creditCards; |
| 22 | + /** Collection details for account 'TRANSACTIONS' product, or null if it was not requested at all. */ |
| 23 | + private ItemProductState transactions; |
| 24 | + /** Collection details for 'INVESTMENTS' product, or null if it was not requested at all. */ |
| 25 | + private ItemProductState investments; |
| 26 | + /** Collection details for 'INVESTMENT_TRANSACTIONS' product, or null if it was not requested at all. */ |
| 27 | + private ItemProductState investmentTransactions; |
| 28 | + /** Collection details for 'IDENTITY' product, or null if it was not requested at all. */ |
| 29 | + private ItemProductState identity; |
| 30 | + /** Collection details for 'PAYMENT_DATA' product, or null if it was not requested at all. */ |
| 31 | + private ItemProductState paymentData; |
| 32 | + /** Collection details for 'INCOME_REPORT' product, or null if it was not requested at all. */ |
| 33 | + private ItemProductState incomeReports; |
| 34 | + /** Collection details for 'PORTFOLIO' product, or null if it was not requested at all. */ |
| 35 | + private ItemProductState portfolio; |
| 36 | + /** Collection details for 'LOAN' product, or null if it was not requested at all. */ |
| 37 | + private ItemProductState loans; |
| 38 | + /** Collection details for 'OPPORTUNITIES' product, or null if it was not requested at all. */ |
| 39 | + private ItemProductState opportunities; |
| 40 | + /** Collection details for 'BENEFIT' product, or null if it was not requested at all. */ |
| 41 | + private ItemProductState benefits; |
| 42 | +} |
0 commit comments