| @@ -21,7 +21,7 @@ type AiDecodeIncome struct { | |||
| } | |||
| type DecodeIncomeDetails struct { | |||
| Funders []loan.LenderType | |||
| Lender loan.LenderType | |||
| AAA []PayInAAARow | |||
| Connective_ANZ []ConnectiveRow | |||
| Connective_BOC []ConnectiveRow | |||
| @@ -42,8 +42,7 @@ func (m *AiDecodeIncome) decodeUploadToPayIn(ulMeta loan.Uploads, allowCachedRes | |||
| m.Id = ulMeta.Id | |||
| m.Input = ulMeta | |||
| m.ul.Upload = ulMeta | |||
| m.PayIn = make([]loan.PayIn, 0, 100) // finalized payIns, generated | |||
| m.Funders = make([]loan.LenderType, 0, 50) // array of valid funders | |||
| m.PayIn = make([]loan.PayIn, 0, 100) // finalized payIns, generated | |||
| if allowCachedResult { | |||
| e = m.ReadJson() | |||
| @@ -127,7 +126,7 @@ func (m *AiDecodeIncome) decodePdf() (e error) { | |||
| raw := string(out) | |||
| switch m.detectFunder(raw) { | |||
| case loan.Lender_AAA: | |||
| m.Funders = append(m.Funders, loan.Lender_AAA) | |||
| m.Lender = loan.Lender_AAA | |||
| e = m.decodeAAAPdf(raw) | |||
| // regardless of error, we pump in all available row successed so far | |||
| for _, row := range m.AAA { | |||