Repositorio de nos completo
This commit is contained in:
@@ -6,30 +6,28 @@
|
||||
* - Control de errores más preciso
|
||||
*
|
||||
*/
|
||||
|
||||
import { NosHttpClient } from "infrastructure/NosHttpClient";
|
||||
import { NosRepository } from "infrastructure/NOSRepository";
|
||||
|
||||
export class SimNosUsecases {
|
||||
constructor(
|
||||
private httpClient: NosHttpClient
|
||||
private httpClient: NosHttpClient,
|
||||
private nosRepository: NosRepository
|
||||
) {
|
||||
}
|
||||
|
||||
public activate() {
|
||||
const PATH = '/provisioning'
|
||||
const PRODUCT_ID = 1330 // No se que es, preguntar a Ivan
|
||||
|
||||
return async (args: { iccid: string }) => {
|
||||
const data = {
|
||||
productSetId: PRODUCT_ID
|
||||
}
|
||||
try {
|
||||
const res = await this.httpClient.client.post(PATH, data)
|
||||
} catch (e) {
|
||||
console.error(e)
|
||||
}
|
||||
return (args: { iccid: string }) => {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public suspend() {
|
||||
|
||||
}
|
||||
|
||||
public terminate() {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user