Bug de correlation_id en las llamadas a objenious
This commit is contained in:
@@ -4,4 +4,8 @@ enableGlobalCache: false
|
|||||||
|
|
||||||
nodeLinker: node-modules
|
nodeLinker: node-modules
|
||||||
|
|
||||||
npmRegistryServer: "https://git.savefamilygps.net/api/packages/alvarsanmartin/npm/"
|
npmScopes:
|
||||||
|
db-migrate:
|
||||||
|
npmRegistryServer: "https://git.savefamilygps.net/api/packages/alvarsanmartin/npm/"
|
||||||
|
|
||||||
|
npmRegistryServer: "https://registry.npmjs.org/"
|
||||||
|
|||||||
@@ -110,7 +110,10 @@ export class SimUseCases {
|
|||||||
const OPERATION_URL = "/actions/activateLine"
|
const OPERATION_URL = "/actions/activateLine"
|
||||||
return async () => {
|
return async () => {
|
||||||
const req = this.httpClient.client.post(OPERATION_URL, {
|
const req = this.httpClient.client.post(OPERATION_URL, {
|
||||||
...activationData
|
dueDate: activationData.dueDate,
|
||||||
|
identifier: activationData.identifier,
|
||||||
|
costummerAccountCode: activationData.customerAccountCode,
|
||||||
|
offer: activationData.offer
|
||||||
})
|
})
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@@ -225,7 +228,11 @@ export class SimUseCases {
|
|||||||
const OPERATION_URL = "/actions/suspendLine"
|
const OPERATION_URL = "/actions/suspendLine"
|
||||||
return this.generateUseCase({
|
return this.generateUseCase({
|
||||||
correlation_id: suspendData.correlation_id,
|
correlation_id: suspendData.correlation_id,
|
||||||
operationPayload: suspendData,
|
operationPayload: {
|
||||||
|
dueDate: suspendData.dueDate,
|
||||||
|
identifier: suspendData.identifier,
|
||||||
|
customerAccountCode: suspendData.customerAccountCode,
|
||||||
|
},
|
||||||
url: OPERATION_URL,
|
url: OPERATION_URL,
|
||||||
iccid: suspendData.identifier.identifiers[0], //
|
iccid: suspendData.identifier.identifiers[0], //
|
||||||
operation: "suspend"
|
operation: "suspend"
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ export type ActionData = {
|
|||||||
correlation_id?: string;
|
correlation_id?: string;
|
||||||
dueDate: string, // isodate
|
dueDate: string, // isodate
|
||||||
filter?: {} // no se si hace falta
|
filter?: {} // no se si hace falta
|
||||||
|
customerAccountCode: "9.49411.10" | string,
|
||||||
identifier: {
|
identifier: {
|
||||||
identifiers: string[]
|
identifiers: string[]
|
||||||
identifierType: "IMSI" | "MSISDN" | "REFERENCE" | "ICCID" | "IMEI"
|
identifierType: "IMSI" | "MSISDN" | "REFERENCE" | "ICCID" | "IMEI"
|
||||||
@@ -10,7 +11,6 @@ export type ActionData = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export type ActivationData = ActionData & {
|
export type ActivationData = ActionData & {
|
||||||
customerAccountCode: "9.49411.10" | string,
|
|
||||||
offer: {
|
offer: {
|
||||||
code: string | "SAVEFAMILY1" | "SAVEFAMILY2",
|
code: string | "SAVEFAMILY1" | "SAVEFAMILY2",
|
||||||
services: any[]
|
services: any[]
|
||||||
|
|||||||
Reference in New Issue
Block a user