Skip to content

Commit

Permalink
Fix regression introduced by ec0877b
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrossie committed Jul 10, 2015
1 parent 9ecb47c commit 7a48354
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 6 deletions.
Expand Up @@ -24,6 +24,7 @@
import org.killbill.billing.events.PaymentErrorInternalEvent; import org.killbill.billing.events.PaymentErrorInternalEvent;


import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;


public class DefaultPaymentErrorEvent extends DefaultPaymentInternalEvent implements PaymentErrorInternalEvent { public class DefaultPaymentErrorEvent extends DefaultPaymentInternalEvent implements PaymentErrorInternalEvent {
Expand All @@ -47,6 +48,12 @@ public DefaultPaymentErrorEvent(@JsonProperty("accountId") final UUID accountId,
this.message = message; this.message = message;
} }


@JsonIgnore
@Override
public BusInternalEventType getBusEventType() {
return BusInternalEventType.PAYMENT_ERROR;
}

@Override @Override
public String getMessage() { public String getMessage() {
return message; return message;
Expand Down
Expand Up @@ -23,6 +23,7 @@
import org.killbill.billing.catalog.api.Currency; import org.killbill.billing.catalog.api.Currency;
import org.killbill.billing.events.PaymentInfoInternalEvent; import org.killbill.billing.events.PaymentInfoInternalEvent;


import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;


public class DefaultPaymentInfoEvent extends DefaultPaymentInternalEvent implements PaymentInfoInternalEvent { public class DefaultPaymentInfoEvent extends DefaultPaymentInternalEvent implements PaymentInfoInternalEvent {
Expand All @@ -41,6 +42,13 @@ public DefaultPaymentInfoEvent(@JsonProperty("accountId") final UUID accountId,
super(accountId, paymentId, paymentTransactionId, amount, currency, status, transactionType, effectiveDate, searchKey1, searchKey2, userToken); super(accountId, paymentId, paymentTransactionId, amount, currency, status, transactionType, effectiveDate, searchKey1, searchKey2, userToken);
} }


@JsonIgnore
@Override
public BusInternalEventType getBusEventType() {
return BusInternalEventType.PAYMENT_INFO;
}


@Override @Override
protected Class getPaymentInternalEventClass() { protected Class getPaymentInternalEventClass() {
return DefaultPaymentInfoEvent.class; return DefaultPaymentInfoEvent.class;
Expand Down
Expand Up @@ -63,12 +63,6 @@ public DefaultPaymentInternalEvent(@JsonProperty("accountId") final UUID account
this.effectiveDate = effectiveDate; this.effectiveDate = effectiveDate;
} }


@JsonIgnore
@Override
public BusInternalEventType getBusEventType() {
return BusInternalEventType.PAYMENT_INFO;
}

@Override @Override
public UUID getAccountId() { public UUID getAccountId() {
return accountId; return accountId;
Expand Down
Expand Up @@ -24,6 +24,7 @@
import org.killbill.billing.events.PaymentPluginErrorInternalEvent; import org.killbill.billing.events.PaymentPluginErrorInternalEvent;


import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;


public class DefaultPaymentPluginErrorEvent extends DefaultPaymentInternalEvent implements PaymentPluginErrorInternalEvent { public class DefaultPaymentPluginErrorEvent extends DefaultPaymentInternalEvent implements PaymentPluginErrorInternalEvent {
Expand All @@ -47,6 +48,12 @@ public DefaultPaymentPluginErrorEvent(@JsonProperty("accountId") final UUID acco
this.message = message; this.message = message;
} }


@JsonIgnore
@Override
public BusInternalEventType getBusEventType() {
return BusInternalEventType.PAYMENT_PLUGIN_ERROR;
}

@Override @Override
public String getMessage() { public String getMessage() {
return message; return message;
Expand Down

1 comment on commit 7a48354

@pierre
Copy link
Member

@pierre pierre commented on 7a48354 Jul 11, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.