public abstract class AbstractSubscriptionFacade extends java.lang.Object implements SubscriptionFacade
| Constructor and Description |
|---|
AbstractSubscriptionFacade() |
| Modifier and Type | Method and Description |
|---|---|
protected CCPaymentInfoData |
createEmptyCCPaymentInfoData()
Creates an empty
CCPaymentInfoData object. |
protected SubscriptionPaymentData |
createEmptySubscriptionPaymentData()
Creates an empty
SubscriptionPaymentData object. |
protected BaseStoreService |
getBaseStoreService() |
protected CartService |
getCartService() |
protected CheckoutFacade |
getCheckoutFacade() |
protected Converter<CreditCardPaymentInfoModel,CCPaymentInfoData> |
getCreditCardPaymentInfoConverter() |
protected java.lang.String |
getCurrencyIso() |
protected java.lang.String |
getCurrentCustomerId() |
protected CustomerAccountService |
getCustomerAccountService() |
protected CustomerResolutionService |
getCustomerResolutionService() |
protected ModelService |
getModelService() |
AbstractOrderEntryModel |
getOrderEntryForOrderCodeAndEntryNumber(java.lang.String orderCode,
int entryNumber)
Returns the
AbstractOrderEntryModel for the given orderCode and entryNumber. |
protected OrderService |
getOrderService() |
protected ProductFacade |
getProductFacade() |
java.util.Date |
getSubscriptionEndDate(ProductData subscriptionProductData,
java.util.Date startDate)
Calculates an end date for a subscription product based on its subscription term details.
|
java.util.List<SubscriptionData> |
getSubscriptionsForPaymentMethod(java.lang.String paymentMethodId)
Returns a list of subscriptions for the given paymentMethodId of the current user.
|
java.util.List<ProductData> |
getUpsellingOptionsForSubscription(java.lang.String productCode)
Returns a list of possible upgrade options for the given subscription product.
|
void |
setBaseStoreService(BaseStoreService baseStoreService) |
void |
setCartService(CartService cartService) |
void |
setCheckoutFacade(CheckoutFacade checkoutFacade) |
void |
setCreditCardPaymentInfoConverter(Converter<CreditCardPaymentInfoModel,CCPaymentInfoData> creditCardPaymentInfoConverter) |
void |
setCustomerAccountService(CustomerAccountService customerAccountService) |
void |
setCustomerResolutionService(CustomerResolutionService customerResolutionService) |
void |
setModelService(ModelService modelService) |
void |
setOrderService(OrderService orderService) |
void |
setProductFacade(ProductFacade productFacade) |
CCPaymentInfoData |
updateCreatedPaymentMethod(CCPaymentInfoData paymentInfo,
java.util.Map<java.lang.String,java.lang.String> paramMap)
Updates an newly-created Payment Type with the Subscription Service information.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchangePaymentMethod, changeSubscriptionState, createPaymentSubscription, createSubscriptions, extendSubscriptionTermDuration, finalizeTransaction, getBillingActivityDetail, getBillingActivityList, getSubscription, getSubscriptions, getUpgradePreviewBillings, hpfUrl, initializeTransaction, replacePaymentMethod, replacePaymentMethod, updateProfile, updateSubscription, updateSubscriptionAutorenewalprotected CCPaymentInfoData createEmptyCCPaymentInfoData()
CCPaymentInfoData object.CCPaymentInfoData objectprotected SubscriptionPaymentData createEmptySubscriptionPaymentData()
SubscriptionPaymentData object.SubscriptionPaymentData objectprotected java.lang.String getCurrencyIso()
public java.util.Date getSubscriptionEndDate(ProductData subscriptionProductData, java.util.Date startDate)
SubscriptionFacadegetSubscriptionEndDate in interface SubscriptionFacadestartDate - start date of the subscriptionpublic java.util.List<ProductData> getUpsellingOptionsForSubscription(java.lang.String productCode)
SubscriptionFacadegetUpsellingOptionsForSubscription in interface SubscriptionFacadeList of ProductDataprotected java.lang.String getCurrentCustomerId()
public AbstractOrderEntryModel getOrderEntryForOrderCodeAndEntryNumber(java.lang.String orderCode, int entryNumber)
SubscriptionFacadeAbstractOrderEntryModel for the given orderCode and entryNumber.getOrderEntryForOrderCodeAndEntryNumber in interface SubscriptionFacadeAbstractOrderEntryModel or null if not foundpublic java.util.List<SubscriptionData> getSubscriptionsForPaymentMethod(java.lang.String paymentMethodId) throws SubscriptionFacadeException
SubscriptionFacadegetSubscriptionsForPaymentMethod in interface SubscriptionFacadepaymentMethodId - the ID of the payment methodSubscriptionFacadeExceptionpublic CCPaymentInfoData updateCreatedPaymentMethod(CCPaymentInfoData paymentInfo, java.util.Map<java.lang.String,java.lang.String> paramMap) throws SubscriptionFacadeException
SubscriptionFacadeSubscriptionFacade.changePaymentMethod(CCPaymentInfoData, String, boolean, Map) because it must be used only during the
creation of a new payment method (created by the PaymentFacade).
SubscriptionFacade.changePaymentMethod(CCPaymentInfoData, String, boolean, Map) must be used changing details at a later
time.updateCreatedPaymentMethod in interface SubscriptionFacadepaymentInfo - the payment info data relating to the recently-created Payment TypeparamMap - the detail map containing new subscription information.SubscriptionFacadeExceptionprotected CartService getCartService()
public void setCartService(CartService cartService)
protected CheckoutFacade getCheckoutFacade()
public void setCheckoutFacade(CheckoutFacade checkoutFacade)
protected Converter<CreditCardPaymentInfoModel,CCPaymentInfoData> getCreditCardPaymentInfoConverter()
public void setCreditCardPaymentInfoConverter(Converter<CreditCardPaymentInfoModel,CCPaymentInfoData> creditCardPaymentInfoConverter)
protected CustomerResolutionService getCustomerResolutionService()
public void setCustomerResolutionService(CustomerResolutionService customerResolutionService)
protected ProductFacade getProductFacade()
public void setProductFacade(ProductFacade productFacade)
protected CustomerAccountService getCustomerAccountService()
public void setCustomerAccountService(CustomerAccountService customerAccountService)
protected BaseStoreService getBaseStoreService()
public void setBaseStoreService(BaseStoreService baseStoreService)
protected OrderService getOrderService()
public void setOrderService(OrderService orderService)
protected ModelService getModelService()
public void setModelService(ModelService modelService)
Copyright © 2018 SAP SE. All Rights Reserved.