@cbm-common/cbm-types 0.0.365 → 0.0.366
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/lib/domain/models/billing.domain.model.d.ts +10 -0
- package/lib/domain/repositories/billing.domain.repository.d.ts +2 -0
- package/lib/infrastructure/repositories/billing.infrastructure.repository.d.ts +2 -0
- package/lib/infrastructure/services/billing.infrastructure.service.d.ts +3 -0
- package/package.json +1 -1
|
@@ -49,4 +49,14 @@ export declare namespace CbmBillingModel {
|
|
|
49
49
|
nacionalidad?: string;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
+
interface GetPlacaBody {
|
|
53
|
+
placa: string;
|
|
54
|
+
}
|
|
55
|
+
/** Datos del vehículo y rubros de matriculación, con los nombres reales de api-scrap. */
|
|
56
|
+
type GetPlacaResponse = CbmIdentificationModel.SearchPlacaResponse;
|
|
57
|
+
interface GetChasisBody {
|
|
58
|
+
chasis: string;
|
|
59
|
+
}
|
|
60
|
+
/** Misma respuesta que la consulta por placa. */
|
|
61
|
+
type GetChasisResponse = CbmIdentificationModel.SearchChasisResponse;
|
|
52
62
|
}
|
|
@@ -6,4 +6,6 @@ export declare class CbmBillingDomainRepository implements ICbmBillingInfrastruc
|
|
|
6
6
|
constructor(service: ICbmBillingInfrastructureRepository);
|
|
7
7
|
getRucSri(data: CbmBillingModel.GetRucSriBody): Observable<CbmBillingModel.GetRucSriResponse>;
|
|
8
8
|
getCedula(data: CbmBillingModel.GetCedulaBody): Observable<CbmBillingModel.GetCedulaResponse>;
|
|
9
|
+
getPlaca(data: CbmBillingModel.GetPlacaBody): Observable<CbmBillingModel.GetPlacaResponse>;
|
|
10
|
+
getChasis(data: CbmBillingModel.GetChasisBody): Observable<CbmBillingModel.GetChasisResponse>;
|
|
9
11
|
}
|
|
@@ -3,4 +3,6 @@ import { CbmBillingModel } from '../../domain/models/billing.domain.model';
|
|
|
3
3
|
export interface ICbmBillingInfrastructureRepository {
|
|
4
4
|
getRucSri(data: CbmBillingModel.GetRucSriBody): Observable<CbmBillingModel.GetRucSriResponse>;
|
|
5
5
|
getCedula(data: CbmBillingModel.GetCedulaBody): Observable<CbmBillingModel.GetCedulaResponse>;
|
|
6
|
+
getPlaca(data: CbmBillingModel.GetPlacaBody): Observable<CbmBillingModel.GetPlacaResponse>;
|
|
7
|
+
getChasis(data: CbmBillingModel.GetChasisBody): Observable<CbmBillingModel.GetChasisResponse>;
|
|
6
8
|
}
|
|
@@ -13,6 +13,9 @@ export declare class CbmBillingInfrastructureService implements ICbmBillingInfra
|
|
|
13
13
|
constructor(identificationService: CbmIdentificationInfrastructureService);
|
|
14
14
|
getRucSri(data: CbmBillingModel.GetRucSriBody): Observable<CbmBillingModel.GetRucSriResponse>;
|
|
15
15
|
getCedula(data: CbmBillingModel.GetCedulaBody): Observable<CbmBillingModel.GetCedulaResponse>;
|
|
16
|
+
/** Placa y chasis son consultas nuevas: devuelven la respuesta de api-scrap tal cual, sin formato anterior. */
|
|
17
|
+
getPlaca(data: CbmBillingModel.GetPlacaBody): Observable<CbmBillingModel.GetPlacaResponse>;
|
|
18
|
+
getChasis(data: CbmBillingModel.GetChasisBody): Observable<CbmBillingModel.GetChasisResponse>;
|
|
16
19
|
/**
|
|
17
20
|
* Las pantallas leen el error como `error.error.message` (muchas sin `?.`), igual que respondía ms-util.
|
|
18
21
|
* api-scrap usa `{ detail }` y un fallo de red no trae cuerpo, así que todo error sale con esa misma forma.
|