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,14 +29,19 @@ public enum ActionType {
3029
3130 private ActionType actionType ;
3231 private String bundleExternalKey ;
32+ private boolean subscriptionChangeUndo ;
3333
34+ /**
35+ * This is needed for object deserialization.
36+ */
3437 public SubscriptionMetadata () {}
3538
36- @ JsonCreator
3739 public SubscriptionMetadata (@ JsonProperty ("actionType" ) final ActionType actionType ,
38- @ JsonProperty ("bundleExternalKey" ) final String bundleExternalKey ) {
40+ @ JsonProperty ("bundleExternalKey" ) final String bundleExternalKey ,
41+ @ JsonProperty ("subscriptionChangeUndo" ) final boolean subscriptionChangeUndo ) {
3942 this .actionType = actionType ;
4043 this .bundleExternalKey = bundleExternalKey ;
44+ this .subscriptionChangeUndo = subscriptionChangeUndo ;
4145 }
4246
4347 public ActionType getActionType () {
@@ -47,4 +51,8 @@ public ActionType getActionType() {
4751 public String getBundleExternalKey () {
4852 return bundleExternalKey ;
4953 }
54+
55+ public boolean getSubscriptionChangeUndo () {
56+ return subscriptionChangeUndo ;
57+ }
5058}
0 commit comments