diff --git a/us-enrichment-api/lookup.go b/us-enrichment-api/lookup.go index 158a027..ace12d2 100644 --- a/us-enrichment-api/lookup.go +++ b/us-enrichment-api/lookup.go @@ -12,6 +12,8 @@ type enrichmentLookup interface { UnmarshalResponse([]byte) error } +//////////////////////////////////////////////////////////////////////////////////////// + type financialLookup struct { SmartyKey string Response []*FinancialResponse @@ -33,6 +35,8 @@ func (f *financialLookup) UnmarshalResponse(bytes []byte) error { return json.Unmarshal(bytes, &f.Response) } +//////////////////////////////////////////////////////////////////////////////////////// + type principalLookup struct { SmartyKey string Response []*PrincipalResponse @@ -54,6 +58,8 @@ func (p *principalLookup) UnmarshalResponse(bytes []byte) error { return json.Unmarshal(bytes, &p.Response) } +//////////////////////////////////////////////////////////////////////////////////////// + const ( financialDataSubset = "financial" principalDataSubset = "principal"