import { Payload, PayloadBody, HandlerPayload, Publisher, Consumer, BaseEventHandler, DefaultVersionSchedule } from 'ec-base'
export { Publisher as CpPayPublisher }
export { Consumer, BaseEventHandler, DefaultVersionSchedule }




    export type CpPayPayloadBody = {
        userId?: string
        userName?: string
        carPlateNum?: string
        isPostPaid?: boolean
    }

export class CpPayPayload extends Payload {

    getTopic(): string { return 'cp-pay' }
    getVersion(): string { return '1.0' }
    getMajorVersion(): number { return 1 }
    body: CpPayPayloadBody
}
export class CpPayHandlerPayload extends HandlerPayload {

    body: CpPayPayloadBody
}
