Skip to content

Commit

Permalink
jaxrs: Minor tweaks for overdue json endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrossie committed Aug 31, 2016
1 parent c7308f8 commit 0c22ac5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Expand Up @@ -17,7 +17,6 @@

package org.killbill.billing.jaxrs.json;

import org.killbill.billing.catalog.api.CurrencyValueNull;
import org.killbill.billing.jaxrs.json.CatalogJson.DurationJson;
import org.killbill.billing.overdue.api.OverdueCondition;
import org.killbill.billing.util.tag.ControlTagType;
Expand Down
Expand Up @@ -17,8 +17,6 @@

package org.killbill.billing.jaxrs.json;

import org.killbill.billing.catalog.api.CurrencyValueNull;
import org.killbill.billing.overdue.api.OverdueApi;
import org.killbill.billing.overdue.api.OverdueApiException;
import org.killbill.billing.overdue.api.OverdueCancellationPolicy;
import org.killbill.billing.overdue.api.OverdueState;
Expand Down Expand Up @@ -59,7 +57,7 @@ public OverdueStateConfigJson(@JsonProperty("name") final String name,
public OverdueStateConfigJson(final OverdueState input) {
this.name = input.getName();
this.isClearState = input.isClearState();
this.condition = input.getOverdueCondition() != null ? new OverdueConditionJson(input.getOverdueCondition()) : null;
this.condition = input.getOverdueCondition() != null ? new OverdueConditionJson(input.getOverdueCondition()) : null;
this.externalMessage = input.getExternalMessage();
this.blockChanges = input.isBlockChanges();
this.disableEntitlement = input.isDisableEntitlementAndChangesBlocked();
Expand All @@ -77,7 +75,8 @@ public String getName() {
return name;
}

public Boolean getClearState() {
@JsonProperty("isClearState")
public Boolean isClearState() {
return isClearState;
}

Expand Down

1 comment on commit 0c22ac5

@pierre
Copy link
Member

@pierre pierre commented on 0c22ac5 Sep 1, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.