Error key evento
This commit is contained in:
@@ -19,7 +19,7 @@ export class SimRouter {
|
|||||||
["activate", this.simController.activate()],
|
["activate", this.simController.activate()],
|
||||||
["pause", this.simController.suspend()],
|
["pause", this.simController.suspend()],
|
||||||
["cancel", this.simController.terminate()],
|
["cancel", this.simController.terminate()],
|
||||||
["reactivation", this.simController.reActivate()],
|
["reactivate", this.simController.reActivate()],
|
||||||
["preActivate", this.simController.preActivate()]
|
["preActivate", this.simController.preActivate()]
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -145,6 +145,7 @@ export class SimController {
|
|||||||
onSuccess: console.log
|
onSuccess: console.log
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
public cancelation() {
|
public cancelation() {
|
||||||
return this.controllerGenerator<{ iccid: string }, { iccid: string, compañia: string }>({
|
return this.controllerGenerator<{ iccid: string }, { iccid: string, compañia: string }>({
|
||||||
validator: iccidValidator,
|
validator: iccidValidator,
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ export class SimUsecases {
|
|||||||
async reActivation(args: { iccid: string, compañia: string, offer: string }):
|
async reActivation(args: { iccid: string, compañia: string, offer: string }):
|
||||||
Promise<Result<string, { iccid: string, message_id: string, operation: "reactivate" }>> {
|
Promise<Result<string, { iccid: string, message_id: string, operation: "reactivate" }>> {
|
||||||
const activationEvent = <SimEvents.activation>{
|
const activationEvent = <SimEvents.activation>{
|
||||||
key: `sim.${args.compañia}.reactivation`,
|
key: `sim.${args.compañia}.reactivate`,
|
||||||
payload: {
|
payload: {
|
||||||
iccid: args.iccid,
|
iccid: args.iccid,
|
||||||
offer: args.offer
|
offer: args.offer
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ export namespace SimEvents {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export type reActivation = DomainEvent & {
|
export type reActivation = DomainEvent & {
|
||||||
key: `sim.${string}.reActivate`,
|
key: `sim.${string}.reactivate`,
|
||||||
payload: {
|
payload: {
|
||||||
iccid: string
|
iccid: string
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user