Przeglądaj źródła

Lender name is for the direct lending money agencies.

master
sp 4 lat temu
rodzic
commit
d43f1879f1
1 zmienionych plików z 3 dodań i 4 usunięć
  1. +3
    -4
      pay-in-decode.go

+ 3
- 4
pay-in-decode.go Wyświetl plik

@@ -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 {

Ładowanie…
Anuluj
Zapisz