@Embeddable public class SubscriptionProductImpl extends Object implements SubscriptionProduct, org.broadleafcommerce.common.copy.MultiTenantCloneable<SubscriptionProduct>
SubscriptionProduct.| Modifier and Type | Class and Description |
|---|---|
static class |
SubscriptionProductImpl.Presentation |
| Modifier and Type | Field and Description |
|---|---|
protected org.broadleafcommerce.core.catalog.domain.Product |
product |
protected Boolean |
upgradeable |
protected String |
upgradeFamilyType |
| Constructor and Description |
|---|
SubscriptionProductImpl() |
| Modifier and Type | Method and Description |
|---|---|
<G extends SubscriptionProduct> |
createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext multiTenantCopyContext) |
boolean |
equals(Object o) |
BillingFrequencyType |
getBillingFrequencyType()
Returns the billing frequency type of this SKU.
|
org.broadleafcommerce.core.catalog.domain.Product |
getProduct() |
Boolean |
getSubscription() |
boolean |
getUpgradeable()
Returns true if this product is upgradable.
|
String |
getUpgradeFamilyType()
This property returns the upgrade family for products that are upgradable.
|
int |
hashCode() |
void |
setBillingFrequencyType(BillingFrequencyType billingFrequencyType) |
void |
setProduct(org.broadleafcommerce.core.catalog.domain.Product product) |
void |
setSubscription(Boolean subscription) |
void |
setUpgradeable(boolean upgradeable)
Set whether or not this product is upgradable.
|
void |
setUpgradeFamilyType(String upgradeFamilyType)
Set the upgrade family type.
|
protected org.broadleafcommerce.core.catalog.domain.Product product
protected Boolean upgradeable
protected String upgradeFamilyType
public boolean getUpgradeable()
SubscriptionProductgetUpgradeable in interface SubscriptionProductpublic void setUpgradeable(boolean upgradeable)
SubscriptionProductsetUpgradeable in interface SubscriptionProductpublic String getUpgradeFamilyType()
SubscriptionProductgetUpgradeFamilyType in interface SubscriptionProductpublic void setUpgradeFamilyType(String upgradeFamilyType)
SubscriptionProductsetUpgradeFamilyType in interface SubscriptionProductSubscriptionSku#getUpgradeLevel()}public <G extends SubscriptionProduct> org.broadleafcommerce.common.copy.CreateResponse<G> createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext multiTenantCopyContext) throws CloneNotSupportedException
createOrRetrieveCopyInstance in interface org.broadleafcommerce.common.copy.MultiTenantCloneable<SubscriptionProduct>CloneNotSupportedExceptionpublic BillingFrequencyType getBillingFrequencyType()
SubscriptionProductBillingFrequencyType from the parent SubscriptionProduct
Allows a Product to have a set of SKUs for different billing frequencies.getBillingFrequencyType in interface SubscriptionProductpublic Boolean getSubscription()
getSubscription in interface SubscriptionProductpublic void setSubscription(Boolean subscription)
setSubscription in interface SubscriptionProductpublic void setBillingFrequencyType(BillingFrequencyType billingFrequencyType)
setBillingFrequencyType in interface SubscriptionProductpublic void setProduct(org.broadleafcommerce.core.catalog.domain.Product product)
public org.broadleafcommerce.core.catalog.domain.Product getProduct()
Copyright © 2020. All rights reserved.