Error de tipado
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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[]
|
||||
|
||||
Reference in New Issue
Block a user