mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-22 21:55:39 +00:00
bug5773: Fixed refund behavior when auto cancelation is done. Now the payment amount will be refunded to origin account.
- merged bug5805, because need this improvements to have a full picture of changes regarding subscriptions before adding additional UI elements, like new information/confirmation dialogs.
This commit is contained in:
+2
@@ -8,6 +8,7 @@ import com.chargebee.models.Subscription;
|
||||
import com.chargebee.models.Subscription.CancelForItemsRequest;
|
||||
import com.chargebee.models.enums.AccountReceivablesHandling;
|
||||
import com.chargebee.models.enums.CreditOptionForCurrentTermCharges;
|
||||
import com.chargebee.models.enums.RefundableCreditsHandling;
|
||||
import com.sap.sse.security.subscription.SubscriptionApiBaseService;
|
||||
import com.sap.sse.security.subscription.SubscriptionApiRequestProcessor;
|
||||
|
||||
@@ -37,6 +38,7 @@ public class ChargebeeCancelSubscriptionRequest extends ChargebeeApiRequest {
|
||||
CancelForItemsRequest request = Subscription.cancelForItems(subscriptionId)
|
||||
.creditOptionForCurrentTermCharges(CreditOptionForCurrentTermCharges.PRORATE)
|
||||
.accountReceivablesHandling(AccountReceivablesHandling.SCHEDULE_PAYMENT_COLLECTION)
|
||||
.refundableCreditsHandling(RefundableCreditsHandling.SCHEDULE_REFUND)
|
||||
.endOfTerm(false);
|
||||
return new ChargebeeInternalApiRequestWrapper(request);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user