Add outcome type to subscription information endpoint
This commit is contained in:
parent
c2bb46f41d
commit
355996bafc
|
@ -677,17 +677,20 @@ public class SubscriptionController {
|
||||||
private final String message;
|
private final String message;
|
||||||
private final String outcomeNetworkStatus;
|
private final String outcomeNetworkStatus;
|
||||||
private final String outcomeReason;
|
private final String outcomeReason;
|
||||||
|
private final String outcomeType;
|
||||||
|
|
||||||
@JsonCreator
|
@JsonCreator
|
||||||
public ChargeFailure(
|
public ChargeFailure(
|
||||||
@JsonProperty("code") String code,
|
@JsonProperty("code") String code,
|
||||||
@JsonProperty("message") String message,
|
@JsonProperty("message") String message,
|
||||||
@JsonProperty("outcomeNetworkStatus") String outcomeNetworkStatus,
|
@JsonProperty("outcomeNetworkStatus") String outcomeNetworkStatus,
|
||||||
@JsonProperty("outcomeReason") String outcomeReason) {
|
@JsonProperty("outcomeReason") String outcomeReason,
|
||||||
|
@JsonProperty("outcomeType") String outcomeType) {
|
||||||
this.code = code;
|
this.code = code;
|
||||||
this.message = message;
|
this.message = message;
|
||||||
this.outcomeNetworkStatus = outcomeNetworkStatus;
|
this.outcomeNetworkStatus = outcomeNetworkStatus;
|
||||||
this.outcomeReason = outcomeReason;
|
this.outcomeReason = outcomeReason;
|
||||||
|
this.outcomeType = outcomeType;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getCode() {
|
public String getCode() {
|
||||||
|
@ -705,6 +708,10 @@ public class SubscriptionController {
|
||||||
public String getOutcomeReason() {
|
public String getOutcomeReason() {
|
||||||
return outcomeReason;
|
return outcomeReason;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getOutcomeType() {
|
||||||
|
return outcomeType;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private final Subscription subscription;
|
private final Subscription subscription;
|
||||||
|
@ -754,7 +761,8 @@ public class SubscriptionController {
|
||||||
charge.getFailureCode(),
|
charge.getFailureCode(),
|
||||||
charge.getFailureMessage(),
|
charge.getFailureMessage(),
|
||||||
outcome != null ? outcome.getNetworkStatus() : null,
|
outcome != null ? outcome.getNetworkStatus() : null,
|
||||||
outcome != null ? outcome.getReason() : null);
|
outcome != null ? outcome.getReason() : null,
|
||||||
|
outcome != null ? outcome.getType() : null);
|
||||||
}
|
}
|
||||||
return Response.ok(
|
return Response.ok(
|
||||||
new GetSubscriptionInformationResponse(
|
new GetSubscriptionInformationResponse(
|
||||||
|
|
Loading…
Reference in New Issue