Error de tipado

This commit is contained in:
2026-03-06 11:06:15 +01:00
parent 58bedc42f1
commit 81eb986313
2 changed files with 6 additions and 4 deletions

View File

@@ -230,8 +230,7 @@ export class SimUseCases {
correlation_id: suspendData.correlation_id,
operationPayload: {
dueDate: suspendData.dueDate,
identifier: suspendData.identifier,
customerAccountCode: suspendData.customerAccountCode,
identifier: suspendData.identifier
},
url: OPERATION_URL,
iccid: suspendData.identifier.identifiers[0], //
@@ -243,7 +242,10 @@ export class SimUseCases {
const OPERATION_URL = "/actions/terminateLine"
return this.generateUseCase({
correlation_id: terminationData.correlation_id,
operationPayload: terminationData,
operationPayload: {
dueDate: terminationData.dueDate,
identifier: terminationData.identifier
},
url: OPERATION_URL,
iccid: terminationData.identifier.identifiers[0], //
operation: "terminate"

View File

@@ -3,7 +3,6 @@ export type ActionData = {
correlation_id?: string;
dueDate: string, // isodate
filter?: {} // no se si hace falta
customerAccountCode: "9.49411.10" | string,
identifier: {
identifiers: string[]
identifierType: "IMSI" | "MSISDN" | "REFERENCE" | "ICCID" | "IMEI"
@@ -11,6 +10,7 @@ export type ActionData = {
}
export type ActivationData = ActionData & {
customerAccountCode: "9.49411.10" | string,
offer: {
code: string | "SAVEFAMILY1" | "SAVEFAMILY2",
services: any[]