Beispiel #1
0
 @Subscribe
 public void handleSubscriptionEvents(final EffectiveSubscriptionInternalEvent eventEffective) {
   log.info(String.format("Got subscription event %s", eventEffective.toString()));
   switch (eventEffective.getTransitionType()) {
     case TRANSFER:
       assertEqualsNicely(NextEvent.TRANSFER);
       notifyIfStackEmpty();
       break;
     case CREATE:
       assertEqualsNicely(NextEvent.CREATE);
       notifyIfStackEmpty();
       break;
     case CANCEL:
       assertEqualsNicely(NextEvent.CANCEL);
       notifyIfStackEmpty();
       break;
     case CHANGE:
       assertEqualsNicely(NextEvent.CHANGE);
       notifyIfStackEmpty();
       break;
     case UNCANCEL:
       assertEqualsNicely(NextEvent.UNCANCEL);
       notifyIfStackEmpty();
       break;
     case PHASE:
       assertEqualsNicely(NextEvent.PHASE);
       notifyIfStackEmpty();
       break;
     case BCD_CHANGE:
       assertEqualsNicely(NextEvent.BCD_CHANGE);
       notifyIfStackEmpty();
       break;
     default:
       throw new RuntimeException(
           "Unexpected event type " + eventEffective.getRequestedTransitionTime());
   }
 }
Beispiel #2
0
 @Subscribe
 public void handlePaymentPluginErrorEvents(final PaymentPluginErrorInternalEvent event) {
   log.info(String.format("Got PaymentPluginError event %s", event.toString()));
   assertEqualsNicely(NextEvent.PAYMENT_PLUGIN_ERROR);
   notifyIfStackEmpty();
 }
Beispiel #3
0
 @Subscribe
 public void handlePaymentEvents(final PaymentInfoInternalEvent event) {
   log.info(String.format("Got PaymentInfo event %s", event.toString()));
   assertEqualsNicely(NextEvent.PAYMENT);
   notifyIfStackEmpty();
 }
Beispiel #4
0
 @Subscribe
 public void handleInvoicePaymentErrorEvents(final InvoicePaymentErrorInternalEvent event) {
   log.info(String.format("Got InvoicePaymentError event %s", event.toString()));
   assertEqualsNicely(NextEvent.INVOICE_PAYMENT_ERROR);
   notifyIfStackEmpty();
 }
Beispiel #5
0
 @Subscribe
 public void handleInvoiceAdjustmentEvents(final InvoiceAdjustmentInternalEvent event) {
   log.info(String.format("Got Invoice adjustment event %s", event.toString()));
   assertEqualsNicely(NextEvent.INVOICE_ADJUSTMENT);
   notifyIfStackEmpty();
 }
Beispiel #6
0
 @Subscribe
 public void handleInvoiceEvents(final InvoiceCreationInternalEvent event) {
   log.info(String.format("Got Invoice event %s", event.toString()));
   assertEqualsNicely(NextEvent.INVOICE);
   notifyIfStackEmpty();
 }
Beispiel #7
0
 @Subscribe
 public synchronized void processTagDefinitonEvent(final TagDefinitionInternalEvent event) {
   log.info(String.format("Got TagDefinitionInternalEvent event %s", event.toString()));
   assertEqualsNicely(NextEvent.TAG_DEFINITION);
   notifyIfStackEmpty();
 }
Beispiel #8
0
 @Subscribe
 public synchronized void processCustomFieldEvent(final CustomFieldEvent event) {
   log.info(String.format("Got CustomFieldEvent event %s", event.toString()));
   assertEqualsNicely(NextEvent.CUSTOM_FIELD);
   notifyIfStackEmpty();
 }
Beispiel #9
0
 @Subscribe
 public void handleEntitlementEvents(final BlockingTransitionInternalEvent event) {
   log.info(String.format("Got entitlement event %s", event.toString()));
   assertEqualsNicely(NextEvent.BLOCK);
   notifyIfStackEmpty();
 }
Beispiel #10
0
 @Subscribe
 public void handleBroadcastEvents(final BroadcastInternalEvent event) {
   log.info(String.format("Got BroadcastInternalEvent event %s", event.toString()));
   assertEqualsNicely(NextEvent.BROADCAST_SERVICE);
   notifyIfStackEmpty();
 }