@sfinges/sf-solicitud 0.1.5 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -29,12 +29,13 @@ providers: [{ provide: APPLICATION_PERSON_SERVICE, useClass: MyPersonGateway }]
|
|
|
29
29
|
```ts
|
|
30
30
|
@Injectable({ providedIn: 'root' })
|
|
31
31
|
export class MyPersonGateway implements ApplicationPersonGateway {
|
|
32
|
-
//
|
|
33
|
-
|
|
32
|
+
// Tipo y número como los trae la solicitud; si falta alguno, la librería no llama y lo dice en pantalla.
|
|
33
|
+
// Los códigos (sexo, estado civil, lugares) van ya traducidos con los catálogos del host: la librería no traduce.
|
|
34
|
+
getPerson(documentType: string, documentNumber: string): Observable<ApplicationPerson | null> {
|
|
34
35
|
// null si no existe: la pantalla lo dice y no ofrece reintentar. Un error del observable sí ofrece reintentar.
|
|
35
36
|
}
|
|
36
37
|
// Opcional: sin este método la sección de cuentas no se muestra.
|
|
37
|
-
getAccounts?(documentType: string
|
|
38
|
+
getAccounts?(documentType: string, documentNumber: string): Observable<PersonAccount[]>;
|
|
38
39
|
}
|
|
39
40
|
```
|
|
40
41
|
|