Package org.jboss.as.quickstarts.payment.events

Examples of org.jboss.as.quickstarts.payment.events.PaymentEvent


    private String paymentOption = PaymentTypeEnum.DEBIT.toString();

    // Pay Action
    public String pay() {

        PaymentEvent currentEvtPayload = new PaymentEvent();
        currentEvtPayload.setType(PaymentTypeEnum.fromString(paymentOption));
        currentEvtPayload.setAmount(amount);
        currentEvtPayload.setDatetime(new Date());

        switch (currentEvtPayload.getType()) {
            case DEBIT:

                debitEventProducer.fire(currentEvtPayload);

                break;
View Full Code Here


    private String paymentOption = PaymentTypeEnum.DEBIT.toString();

    // Pay Action
    public String pay() {

        PaymentEvent currentEvtPayload = new PaymentEvent();
        currentEvtPayload.setType(PaymentTypeEnum.fromString(paymentOption));
        currentEvtPayload.setAmount(amount);
        currentEvtPayload.setDatetime(new Date());

        switch (currentEvtPayload.getType()) {
            case DEBIT:

                debitEventProducer.fire(currentEvtPayload);

                break;
View Full Code Here

TOP

Related Classes of org.jboss.as.quickstarts.payment.events.PaymentEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.