class RedirectLinkBuilder {

    public String buildPaymentCancellationScaRedirectLink(String encryptedPaymentId, String redirectId, String internalRequestId,
                                                          String instanceId) {
        String scaRedirectLink = aspspProfileService.getPisPaymentCancellationRedirectUrlToAspsp()
                                     .replace(REDIRECT_URL, redirectId)
                                     .replace(ENCRYPTED_PAYMENT_ID, encryptedPaymentId)
                                     .replace(INTERNAL_REQUEST_ID, internalRequestId);
        return enrichByInstanceId(scaRedirectLink, instanceId);
    }

}