@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()
SubscriptionProduct
getUpgradeable
in interface SubscriptionProduct
public void setUpgradeable(boolean upgradeable)
SubscriptionProduct
setUpgradeable
in interface SubscriptionProduct
public String getUpgradeFamilyType()
SubscriptionProduct
getUpgradeFamilyType
in interface SubscriptionProduct
public void setUpgradeFamilyType(String upgradeFamilyType)
SubscriptionProduct
setUpgradeFamilyType
in interface SubscriptionProduct
SubscriptionSku#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>
CloneNotSupportedException
public BillingFrequencyType getBillingFrequencyType()
SubscriptionProduct
BillingFrequencyType
from the parent SubscriptionProduct
Allows a Product to have a set of SKUs for different billing frequencies.getBillingFrequencyType
in interface SubscriptionProduct
public Boolean getSubscription()
getSubscription
in interface SubscriptionProduct
public void setSubscription(Boolean subscription)
setSubscription
in interface SubscriptionProduct
public void setBillingFrequencyType(BillingFrequencyType billingFrequencyType)
setBillingFrequencyType
in interface SubscriptionProduct
public void setProduct(org.broadleafcommerce.core.catalog.domain.Product product)
public org.broadleafcommerce.core.catalog.domain.Product getProduct()
Copyright © 2020. All rights reserved.