@Deprecated public class CompatibilityCisSubscriptionFacade extends AbstractSubscriptionFacade
AbstractSubscriptionFacade.| Constructor and Description |
|---|
CompatibilityCisSubscriptionFacade()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
CCPaymentInfoData |
changePaymentMethod(CCPaymentInfoData paymentInfo,
java.lang.String action,
boolean propagate,
java.util.Map<java.lang.String,java.lang.String> parameters)
Deprecated.
Changes an existing payment method.
|
SubscriptionData |
changeSubscriptionState(java.lang.String subscriptionId,
java.lang.String newStatus,
java.util.Map<java.lang.String,java.lang.String> parameters)
Deprecated.
Updates the state of an existing subscription.
|
protected SubscriptionPaymentData |
combineCisResponseDataResults(java.util.List<SubscriptionPaymentData> cisResults)
Deprecated.
|
protected java.util.List<CisLineItem> |
convertCisLineItems(AbstractOrderData orderData)
Deprecated.
|
protected AnnotationHashMap |
convertVendorParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
Deprecated.
|
CCPaymentInfoData |
createPaymentSubscription(java.util.Map<java.lang.String,java.lang.String> paymentParameters)
Deprecated.
Creates a payment subscription on the hybris side.
|
SubscriptionPaymentData |
createSubscriptions(OrderData order,
java.util.Map<java.lang.String,java.lang.String> parameters)
Deprecated.
Creates subscriptions for the given order and current user.
|
SubscriptionData |
extendSubscriptionTermDuration(java.lang.String subscriptionId,
java.lang.Integer contractDurationExtension,
java.util.Map<java.lang.String,java.lang.String> parameters)
Deprecated.
Extends the subscription term duration of an existing subscription.
|
SubscriptionPaymentData |
finalizeTransaction(java.lang.String authorizationRequestId,
java.lang.String authorizationRequestToken,
java.util.Map<java.lang.String,java.lang.String> parameters)
Deprecated.
Finalizes an established subscription with the subscription billing provider.
|
protected java.lang.String |
generateMerchantTransactionDescription(AbstractOrderData orderData,
java.lang.String customerId)
Deprecated.
|
protected java.lang.String |
generateMerchantTransactionId(AbstractOrderData orderData,
java.lang.String customerId)
Deprecated.
|
protected BaseSiteService |
getBaseSiteService()
Deprecated.
|
SubscriptionBillingDetailFileStream |
getBillingActivityDetail(java.lang.String billingActivityId,
java.util.Map<java.lang.String,java.lang.String> parameters)
Deprecated.
Returns a file stream containing detail information for the specified billing activity.
|
java.util.List<SubscriptionBillingData> |
getBillingActivityList(java.lang.String subscriptionId,
java.util.Map<java.lang.String,java.lang.String> parameters)
Deprecated.
Returns a list of billing activities for the given subscription.
|
protected Converter<java.util.Map<java.lang.String,java.lang.String>,CCPaymentInfoData> |
getCcPaymentInfoDataConverter()
Deprecated.
|
protected Converter<AddressData,CisAddress> |
getCisAddressConverter()
Deprecated.
|
protected Converter<RestResponse,CCPaymentInfoData> |
getCisCCPaymentInfoDataConverter()
Deprecated.
|
protected java.lang.String |
getCisClientRef(AbstractOrderData orderData)
Deprecated.
|
protected Converter<OrderEntryData,CisLineItem> |
getCisLineItemConverter()
Deprecated.
|
protected Converter<RestResponse,SubscriptionPaymentData> |
getCisPaymentConverter()
Deprecated.
|
protected Converter<CisSubscriptionData,SubscriptionData> |
getCisSubscriptionConverter()
Deprecated.
|
protected Converter<OrderEntryData,CisSubscriptionItem> |
getCisSubscriptionItemConverter()
Deprecated.
|
protected Converter<AbstractOrderData,CisSubscriptionOrder> |
getCisSubscriptionOrderConverter()
Deprecated.
|
protected CisSubscriptionService |
getCisSubscriptionService()
Deprecated.
|
protected Converter<CreditCardPaymentInfoModel,CCPaymentInfoData> |
getCreditCardPaymentInfoConverter()
Deprecated.
|
protected Converter<CustomerModel,CustomerData> |
getCustomerConverter()
Deprecated.
|
protected java.lang.String |
getMerchantPaymentMethodIdFromPaymentInfo(CCPaymentInfoData paymentInfo)
Deprecated.
|
protected PriceData |
getPayNowPrice(AbstractOrderData orderData)
Deprecated.
|
protected SiteBaseUrlResolutionService |
getSiteBaseUrlResolutionService()
Deprecated.
|
SubscriptionData |
getSubscription(java.lang.String subscriptionId)
Deprecated.
Returns the subscription with the given ID.
|
protected java.lang.String |
getSubscriptionEffectiveFrom()
Deprecated.
Needs to be overridden with provider specific logic to return the correct value for effectiveFrom
|
java.util.Collection<SubscriptionData> |
getSubscriptions()
Deprecated.
Returns all subscriptions for the current user.
|
protected java.lang.String |
getSubscriptionSettlement()
Deprecated.
Needs to be overridden with provider specific logic to return the correct value for settlement
|
java.util.List<SubscriptionBillingData> |
getUpgradePreviewBillings(java.lang.String subscriptionId,
java.lang.String upgradeId)
Deprecated.
Returns a list of the possible billing changes between the current subscription and an upgrade option.
|
protected boolean |
hasNewSubscriptions(AbstractOrderData orderData)
Deprecated.
|
protected boolean |
hasPayNowPrice(AbstractOrderData orderData)
Deprecated.
|
protected boolean |
hasSubscriptionUpgrades(AbstractOrderData orderData)
Deprecated.
|
java.lang.String |
hpfUrl()
Deprecated.
Returns the HPF URL.
|
SubscriptionPaymentData |
initializeTransaction(java.lang.String clientIpAddress,
java.lang.String returnUrl,
java.lang.String cancelReturnUrl,
java.util.Map<java.lang.String,java.lang.String> parameters)
Deprecated.
Initializes a transaction with the subscription billing provider.
|
protected SubscriptionPaymentData |
processPayNow(AbstractOrderData orderData,
java.util.Map<java.lang.String,java.lang.String> parameters)
Deprecated.
|
protected SubscriptionPaymentData |
processSubscription(AbstractOrderData orderData,
java.util.Map<java.lang.String,java.lang.String> parameters)
Deprecated.
|
protected java.util.List<SubscriptionPaymentData> |
processSubscriptionUpgrades(AbstractOrderData orderData,
java.util.Map<java.lang.String,java.lang.String> parameters)
Deprecated.
Processes the entries that upgrade an existing subscription to another subscription product
|
SubscriptionPaymentData |
replacePaymentMethod(java.lang.String subscriptionId,
java.lang.String paymentMethodId,
java.util.Map<java.lang.String,java.lang.String> parameters)
Deprecated.
Replaces the payment method for the given subscription.
|
SubscriptionData |
replacePaymentMethod(java.lang.String subscriptionId,
java.lang.String paymentMethodId,
java.lang.String effectiveFrom,
java.util.Map<java.lang.String,java.lang.String> parameters)
Deprecated.
|
void |
setBaseSiteService(BaseSiteService baseSiteService)
Deprecated.
|
void |
setCcPaymentInfoDataConverter(Converter<java.util.Map<java.lang.String,java.lang.String>,CCPaymentInfoData> ccPaymentInfoDataConverter)
Deprecated.
|
void |
setCisAddressConverter(Converter<AddressData,CisAddress> cisAddressConverter)
Deprecated.
|
void |
setCisCCPaymentInfoDataConverter(Converter<RestResponse,CCPaymentInfoData> cisCCPaymentInfoDataConverter)
Deprecated.
|
void |
setCisLineItemConverter(Converter<OrderEntryData,CisLineItem> cisLineItemConverter)
Deprecated.
|
void |
setCisPaymentConverter(Converter<RestResponse,SubscriptionPaymentData> cisPaymentConverter)
Deprecated.
|
void |
setCisSubscriptionConverter(Converter<CisSubscriptionData,SubscriptionData> cisSubscriptionConverter)
Deprecated.
|
void |
setCisSubscriptionItemConverter(Converter<OrderEntryData,CisSubscriptionItem> cisSubscriptionItemConverter)
Deprecated.
|
void |
setCisSubscriptionOrderConverter(Converter<AbstractOrderData,CisSubscriptionOrder> cisSubscriptionOrderConverter)
Deprecated.
|
void |
setCisSubscriptionService(CisSubscriptionService cisSubscriptionService)
Deprecated.
|
void |
setCreditCardPaymentInfoConverter(Converter<CreditCardPaymentInfoModel,CCPaymentInfoData> creditCardPaymentInfoConverter)
Deprecated.
|
void |
setCustomerConverter(Converter<CustomerModel,CustomerData> customerConverter)
Deprecated.
|
void |
setSiteBaseUrlResolutionService(SiteBaseUrlResolutionService siteBaseUrlResolutionService)
Deprecated.
|
SubscriptionPaymentData |
updateProfile(java.util.Map<java.lang.String,java.lang.String> parameters)
Deprecated.
Creates or updates a subscription profile for the current user.
|
SubscriptionPaymentData |
updateSubscription(java.lang.String subscriptionId,
boolean force,
SubscriptionUpdateActionEnum action,
java.util.Map<java.lang.String,java.lang.String> parameters)
Deprecated.
Updates the given subscription (e.g.
|
SubscriptionData |
updateSubscriptionAutorenewal(java.lang.String subscriptionId,
boolean isAutorenewal,
java.util.Map<java.lang.String,java.lang.String> parameters)
Deprecated.
Updates the auto-renewal status of an existing subscription.
|
createEmptyCCPaymentInfoData, createEmptySubscriptionPaymentData, getBaseStoreService, getCartService, getCheckoutFacade, getCurrencyIso, getCurrentCustomerId, getCustomerAccountService, getCustomerResolutionService, getModelService, getOrderEntryForOrderCodeAndEntryNumber, getOrderService, getProductFacade, getSubscriptionEndDate, getSubscriptionsForPaymentMethod, getUpsellingOptionsForSubscription, setBaseStoreService, setCartService, setCheckoutFacade, setCustomerAccountService, setCustomerResolutionService, setModelService, setOrderService, setProductFacade, updateCreatedPaymentMethodpublic CompatibilityCisSubscriptionFacade()
public SubscriptionPaymentData updateProfile(java.util.Map<java.lang.String,java.lang.String> parameters) throws SubscriptionFacadeException
SubscriptionFacadeparameters - provider specific parametersSubscriptionPaymentData containing the results of the operationSubscriptionFacadeExceptionpublic SubscriptionPaymentData createSubscriptions(OrderData order, java.util.Map<java.lang.String,java.lang.String> parameters) throws SubscriptionFacadeException
SubscriptionFacadeorder - the order to create the subscriptions forparameters - provider specific parametersSubscriptionPaymentData containing the results of the operationSubscriptionFacadeExceptionpublic SubscriptionPaymentData initializeTransaction(java.lang.String clientIpAddress, java.lang.String returnUrl, java.lang.String cancelReturnUrl, java.util.Map<java.lang.String,java.lang.String> parameters) throws SubscriptionFacadeException
SubscriptionFacadeclientIpAddress - the IP address of the calling client. May be empty.returnUrl - the URL to redirect to after the silent from post. May not be null or empty.cancelReturnUrl - the URL to redirect to in case of errors after the silent from post. May not be null or empty.parameters - provider specific parametersSubscriptionPaymentData containing the results of the operation (hpfUrl and session token).
result.getParameters().get("sessionTransactionToken") returns not-null String value.SubscriptionFacadeExceptionpublic java.lang.String hpfUrl()
throws SubscriptionFacadeException
SubscriptionFacadeSubscriptionFacadeExceptionpublic SubscriptionPaymentData finalizeTransaction(java.lang.String authorizationRequestId, java.lang.String authorizationRequestToken, java.util.Map<java.lang.String,java.lang.String> parameters) throws SubscriptionFacadeException
SubscriptionFacadeauthorizationRequestId - the request IDauthorizationRequestToken - the request token retrieved from the result of a SubscriptionFacade.initializeTransaction(java.lang.String, java.lang.String, java.lang.String, java.util.Map<java.lang.String, java.lang.String>) call.parameters - provider specific parametersSubscriptionPaymentData containing the results of the operationSubscriptionFacadeExceptionpublic CCPaymentInfoData changePaymentMethod(CCPaymentInfoData paymentInfo, java.lang.String action, boolean propagate, java.util.Map<java.lang.String,java.lang.String> parameters) throws SubscriptionFacadeException
SubscriptionFacadepaymentInfo - CCPaymentInfoData the updated payment informationaction - String the change action to perform (currently supported: "enable",
"disable")propagate - determines whether to propagate the change to all billing subscriptions using the given payment methodparameters - provider specific parametersCCPaymentInfoData containing the results of the operationSubscriptionFacadeExceptionprotected java.lang.String getMerchantPaymentMethodIdFromPaymentInfo(CCPaymentInfoData paymentInfo)
public SubscriptionPaymentData replacePaymentMethod(java.lang.String subscriptionId, java.lang.String paymentMethodId, java.util.Map<java.lang.String,java.lang.String> parameters) throws SubscriptionFacadeException
SubscriptionFacadesubscriptionId - the ID of the subscription to replace the payment method forpaymentMethodId - the ID of the new payment method which replaces the current oneparameters - provider specific parametersSubscriptionPaymentData containing the results of the operationSubscriptionFacadeExceptionpublic SubscriptionPaymentData updateSubscription(java.lang.String subscriptionId, boolean force, SubscriptionUpdateActionEnum action, java.util.Map<java.lang.String,java.lang.String> parameters) throws SubscriptionFacadeException
SubscriptionFacadesubscriptionId - the subscription to updateforce - determines whether to force the update or notaction - the update action to performparameters - provider specific parametersSubscriptionPaymentData containing the results of the operationSubscriptionFacadeExceptionpublic SubscriptionData updateSubscriptionAutorenewal(java.lang.String subscriptionId, boolean isAutorenewal, java.util.Map<java.lang.String,java.lang.String> parameters) throws SubscriptionFacadeException
SubscriptionFacadesubscriptionId - the ID of the subscriptionisAutorenewal - the new auto-renewal status of the subscriptionparameters - provider specific parametersSubscriptionData containing the results of the operationSubscriptionFacadeExceptionpublic SubscriptionData extendSubscriptionTermDuration(java.lang.String subscriptionId, java.lang.Integer contractDurationExtension, java.util.Map<java.lang.String,java.lang.String> parameters) throws SubscriptionFacadeException
SubscriptionFacadesubscriptionId - the ID of the subscriptioncontractDurationExtension - extends the duration x timesparameters - provider specific parametersSubscriptionData containing the results of the operationSubscriptionFacadeExceptionpublic java.util.Collection<SubscriptionData> getSubscriptions() throws SubscriptionFacadeException
SubscriptionFacadeCollection<SubscriptionData> the current user's subscriptionSubscriptionFacadeExceptionpublic SubscriptionData getSubscription(java.lang.String subscriptionId) throws SubscriptionFacadeException
SubscriptionFacadesubscriptionId - the ID of the subscriptionSubscriptionData the subscription with the given IDSubscriptionFacadeExceptionpublic SubscriptionData changeSubscriptionState(java.lang.String subscriptionId, java.lang.String newStatus, java.util.Map<java.lang.String,java.lang.String> parameters) throws SubscriptionFacadeException
SubscriptionFacadesubscriptionId - the ID of the subscriptionnewStatus - new status of the subscriptionparameters - provider specific parametersSubscriptionData containing the results of the operationSubscriptionFacadeExceptionpublic CCPaymentInfoData createPaymentSubscription(java.util.Map<java.lang.String,java.lang.String> paymentParameters) throws SubscriptionFacadeException
SubscriptionFacadepaymentParameters - parameters retrieved from the result of a SubscriptionFacade.finalizeTransaction(java.lang.String, java.lang.String, java.util.Map<java.lang.String, java.lang.String>) call.CCPaymentInfoData the payment information created based on the given parametersSubscriptionFacadeExceptionprotected SubscriptionPaymentData processSubscription(AbstractOrderData orderData, java.util.Map<java.lang.String,java.lang.String> parameters) throws SubscriptionFacadeException
SubscriptionFacadeExceptionprotected java.util.List<SubscriptionPaymentData> processSubscriptionUpgrades(AbstractOrderData orderData, java.util.Map<java.lang.String,java.lang.String> parameters) throws SubscriptionFacadeException
SubscriptionFacadeExceptionprotected SubscriptionPaymentData processPayNow(AbstractOrderData orderData, java.util.Map<java.lang.String,java.lang.String> parameters) throws SubscriptionFacadeException
SubscriptionFacadeExceptionprotected AnnotationHashMap convertVendorParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
protected boolean hasPayNowPrice(AbstractOrderData orderData)
protected PriceData getPayNowPrice(AbstractOrderData orderData)
protected java.lang.String getSubscriptionEffectiveFrom()
CisSubscriptionUpgradeRequest#setEffectiveFrom(String)protected java.lang.String getSubscriptionSettlement()
CisSubscriptionUpgradeRequest#setSettlement(String)protected boolean hasNewSubscriptions(AbstractOrderData orderData)
protected boolean hasSubscriptionUpgrades(AbstractOrderData orderData)
protected SubscriptionPaymentData combineCisResponseDataResults(java.util.List<SubscriptionPaymentData> cisResults)
protected java.util.List<CisLineItem> convertCisLineItems(AbstractOrderData orderData)
protected java.lang.String generateMerchantTransactionId(AbstractOrderData orderData, java.lang.String customerId)
protected java.lang.String generateMerchantTransactionDescription(AbstractOrderData orderData, java.lang.String customerId)
protected java.lang.String getCisClientRef(AbstractOrderData orderData)
protected CisSubscriptionService getCisSubscriptionService()
public void setCisSubscriptionService(CisSubscriptionService cisSubscriptionService)
protected Converter<RestResponse,SubscriptionPaymentData> getCisPaymentConverter()
public void setCisPaymentConverter(Converter<RestResponse,SubscriptionPaymentData> cisPaymentConverter)
protected Converter<AddressData,CisAddress> getCisAddressConverter()
public void setCisAddressConverter(Converter<AddressData,CisAddress> cisAddressConverter)
protected Converter<AbstractOrderData,CisSubscriptionOrder> getCisSubscriptionOrderConverter()
public void setCisSubscriptionOrderConverter(Converter<AbstractOrderData,CisSubscriptionOrder> cisSubscriptionOrderConverter)
protected BaseSiteService getBaseSiteService()
public void setBaseSiteService(BaseSiteService baseSiteService)
protected SiteBaseUrlResolutionService getSiteBaseUrlResolutionService()
public void setSiteBaseUrlResolutionService(SiteBaseUrlResolutionService siteBaseUrlResolutionService)
protected Converter<OrderEntryData,CisLineItem> getCisLineItemConverter()
public void setCisLineItemConverter(Converter<OrderEntryData,CisLineItem> cisLineItemConverter)
protected Converter<CreditCardPaymentInfoModel,CCPaymentInfoData> getCreditCardPaymentInfoConverter()
getCreditCardPaymentInfoConverter in class AbstractSubscriptionFacadepublic void setCreditCardPaymentInfoConverter(Converter<CreditCardPaymentInfoModel,CCPaymentInfoData> creditCardPaymentInfoConverter)
setCreditCardPaymentInfoConverter in class AbstractSubscriptionFacadeprotected Converter<java.util.Map<java.lang.String,java.lang.String>,CCPaymentInfoData> getCcPaymentInfoDataConverter()
public void setCcPaymentInfoDataConverter(Converter<java.util.Map<java.lang.String,java.lang.String>,CCPaymentInfoData> ccPaymentInfoDataConverter)
protected Converter<CustomerModel,CustomerData> getCustomerConverter()
public void setCustomerConverter(Converter<CustomerModel,CustomerData> customerConverter)
protected Converter<CisSubscriptionData,SubscriptionData> getCisSubscriptionConverter()
public void setCisSubscriptionConverter(Converter<CisSubscriptionData,SubscriptionData> cisSubscriptionConverter)
protected Converter<OrderEntryData,CisSubscriptionItem> getCisSubscriptionItemConverter()
public void setCisSubscriptionItemConverter(Converter<OrderEntryData,CisSubscriptionItem> cisSubscriptionItemConverter)
public SubscriptionData replacePaymentMethod(java.lang.String subscriptionId, java.lang.String paymentMethodId, java.lang.String effectiveFrom, java.util.Map<java.lang.String,java.lang.String> parameters) throws SubscriptionFacadeException
subscriptionId - the ID of the subscriptionpaymentMethodId - the ID of the payment method to seteffectiveFrom - determines when the replacement will take effectparameters - provider specific parametersSubscriptionData containing the results of the operationSubscriptionFacadeExceptionpublic java.util.List<SubscriptionBillingData> getBillingActivityList(java.lang.String subscriptionId, java.util.Map<java.lang.String,java.lang.String> parameters) throws SubscriptionFacadeException
SubscriptionFacadesubscriptionId - the ID of the subscriptionparameters - provider specific parametersList<SubscriptionBillingData>SubscriptionFacadeExceptionpublic SubscriptionBillingDetailFileStream getBillingActivityDetail(java.lang.String billingActivityId, java.util.Map<java.lang.String,java.lang.String> parameters) throws SubscriptionFacadeException
SubscriptionFacadebillingActivityId - the ID of the billing activityparameters - provider specific parametersSubscriptionBillingDetailFileStreamSubscriptionFacadeExceptionpublic java.util.List<SubscriptionBillingData> getUpgradePreviewBillings(java.lang.String subscriptionId, java.lang.String upgradeId) throws SubscriptionFacadeException
SubscriptionFacadesubscriptionId - the current subscriptionupgradeId - the upgrade optionList of SubscriptionBillingDataSubscriptionFacadeExceptionprotected Converter<RestResponse,CCPaymentInfoData> getCisCCPaymentInfoDataConverter()
public void setCisCCPaymentInfoDataConverter(Converter<RestResponse,CCPaymentInfoData> cisCCPaymentInfoDataConverter)
Copyright © 2017 SAP SE. All Rights Reserved.