Skip to content

Commit

Permalink
Accept payload config on SubscriptionCancel Event
Browse files Browse the repository at this point in the history
This goes along with the changes in #168. At the time, I just missed this one.

[Semantic versioning](https://semver.org/) says this change would bump the version to `1.6.1`.
  • Loading branch information
aaiezza committed May 6, 2019
1 parent 54f60b9 commit d8b8ef5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<groupId>com.appdirect</groupId>
<artifactId>service-integration-sdk</artifactId>
<packaging>jar</packaging>
<version>1.61-SNAPSHOT</version>
<version>1.62-SNAPSHOT</version>
<name>SDK for service integration</name>

<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

package com.appdirect.sdk.appmarket.events;

import java.util.HashMap;
import java.util.Map;

import lombok.EqualsAndHashCode;
Expand All @@ -25,17 +26,30 @@
@Getter
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
public class SubscriptionCancel extends EventWithContext {
public class SubscriptionCancel extends EventWithContextWithConfiguration {
private String accountIdentifier;

public SubscriptionCancel(String consumerKeyUsedByTheRequest,
String accountIdentifier,
Map<String, String[]> queryParameters,
EventFlag flag,
String eventToken,
String marketplaceUrl) {
String marketplaceUrl,
Map<String, String> configuration) {

super(consumerKeyUsedByTheRequest, queryParameters, flag, eventToken, marketplaceUrl);
super(consumerKeyUsedByTheRequest, queryParameters, flag, eventToken, marketplaceUrl, configuration);
this.accountIdentifier = accountIdentifier;
}

@Deprecated
public SubscriptionCancel(String consumerKeyUsedByTheRequest,
String accountIdentifier,
Map<String, String[]> queryParameters,
EventFlag flag,
String eventToken,
String marketplaceUrl) {

this(consumerKeyUsedByTheRequest, accountIdentifier, queryParameters,
flag, eventToken, marketplaceUrl, new HashMap<>());
}
}

0 comments on commit d8b8ef5

Please sign in to comment.