Skip to content

Commit

Permalink
Add missing boolean parameter to getSubscriptionStatus method call
Browse files Browse the repository at this point in the history
  • Loading branch information
katherine-signal committed Nov 17, 2023
1 parent 7fbc327 commit db7f18a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ public CompletableFuture<ReceiptItem> getReceiptItem(String subscriptionId) {
.thenApply(subscription -> getLatestTransactionForSubscription(subscription)
.map(transaction -> {
if (!getPaymentStatus(transaction.getStatus()).equals(PaymentStatus.SUCCEEDED)) {
final SubscriptionStatus subscriptionStatus = getSubscriptionStatus(subscription.getStatus());
final SubscriptionStatus subscriptionStatus = getSubscriptionStatus(subscription.getStatus(), true);
if (subscriptionStatus.equals(SubscriptionStatus.ACTIVE) || subscriptionStatus.equals(SubscriptionStatus.PAST_DUE)) {
throw new WebApplicationException(Response.Status.NO_CONTENT);
}
Expand Down

0 comments on commit db7f18a

Please sign in to comment.