1818
1919package org .killbill .billing .notification .plugin .api ;
2020
21- import com .fasterxml .jackson .annotation .JsonCreator ;
2221import com .fasterxml .jackson .annotation .JsonProperty ;
2322
2423public class SubscriptionMetadata {
@@ -30,16 +29,19 @@ public enum ActionType {
3029
3130 private ActionType actionType ;
3231 private String bundleExternalKey ;
32+ private boolean subscriptionChangeUndo ;
3333
3434 /**
3535 * This is needed for object deserialization.
3636 */
3737 public SubscriptionMetadata () {}
3838
3939 public SubscriptionMetadata (@ JsonProperty ("actionType" ) final ActionType actionType ,
40- @ JsonProperty ("bundleExternalKey" ) final String bundleExternalKey ) {
40+ @ JsonProperty ("bundleExternalKey" ) final String bundleExternalKey ,
41+ @ JsonProperty ("subscriptionChangeUndo" ) final boolean subscriptionChangeUndo ) {
4142 this .actionType = actionType ;
4243 this .bundleExternalKey = bundleExternalKey ;
44+ this .subscriptionChangeUndo = subscriptionChangeUndo ;
4345 }
4446
4547 public ActionType getActionType () {
@@ -49,4 +51,8 @@ public ActionType getActionType() {
4951 public String getBundleExternalKey () {
5052 return bundleExternalKey ;
5153 }
54+
55+ public boolean getSubscriptionChangeUndo () {
56+ return subscriptionChangeUndo ;
57+ }
5258}
0 commit comments