Skip to content

Commit 3e860bd

Browse files
Merge pull request #35 from reshmabidikar/work-for-1841
Work for 1841
2 parents 3a15b02 + 9d261b4 commit 3e860bd

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

notification/src/main/java/org/killbill/billing/notification/plugin/api/SubscriptionMetadata.java

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
package org.killbill.billing.notification.plugin.api;
2020

21-
import com.fasterxml.jackson.annotation.JsonCreator;
2221
import com.fasterxml.jackson.annotation.JsonProperty;
2322

2423
public 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

Comments
 (0)