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




    export type WexinCallbackPayloadBody = {
        userName?: string
        payId?: string
        totalAmount?: number
        attr1?: string
        attr2?: string
        attr3?: string
        attr4?: string
        attr5?: string
    }

export class WexinCallbackPayload extends Payload {

    getTopic(): string { return 'wexin-callback' }
    getVersion(): string { return '1.5' }
    getMajorVersion(): number { return 1 }
    body: WexinCallbackPayloadBody
}
export class WexinCallbackHandlerPayload extends HandlerPayload {

    body: WexinCallbackPayloadBody
}
