Skip to content

Commit 9d261b4

Browse files
committed
Changes for 1841
1 parent c696fb5 commit 9d261b4

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

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

Lines changed: 8 additions & 2 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,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

Comments
 (0)