Class ExistingSubscriptionItemDetail
java.lang.Object
com.broadleafcommerce.cartoperation.domain.subscription.ExistingSubscriptionItemDetail
- All Implemented Interfaces:
Serializable
Contains details describing an existing subscription item when entering a modify-subscription
flow such as for edit, upgrade, or downgrade.
- Since:
- Cart Operation Service 2.3.0, Release Train 2.3.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe add-on keyAdditional attributes to include.Details describing existing subscription item-level adjustments.The quantity of the itemThe reference of the itemThe type of the item referenceThe sku of the itemThe unique identifier for the parentItem.The reference type of the parentItem.The id of the subscription iteminthashCode()voidsetAddOnKey(String addOnKey) The add-on keyvoidsetAttributes(Map<String, Object> attributes) Additional attributes to include.voidsetExistingItemAdjustmentDetails(List<ExistingSubscriptionItemAdjustmentDetail> existingItemAdjustmentDetails) Details describing existing subscription item-level adjustments.voidsetItemQuantity(Integer itemQuantity) The quantity of the itemvoidsetItemRef(String itemRef) The reference of the itemvoidsetItemRefType(String itemRefType) The type of the item referencevoidsetItemSku(String itemSku) The sku of the itemvoidsetParentItemRef(String parentItemRef) The unique identifier for the parentItem.voidsetParentItemRefType(String parentItemRefType) The reference type of the parentItem.voidsetSubscriptionItemId(String subscriptionItemId) The id of the subscription itemtoString()
-
Constructor Details
-
ExistingSubscriptionItemDetail
public ExistingSubscriptionItemDetail()
-
-
Method Details
-
getSubscriptionItemId
The id of the subscription item -
getItemRefType
The type of the item reference -
getItemRef
The reference of the item -
getItemSku
The sku of the item -
getAddOnKey
The add-on key -
getItemQuantity
The quantity of the item -
getParentItemRefType
The reference type of the parentItem. Usually, it would be "BLC_PRODUCT". -
getParentItemRef
The unique identifier for the parentItem. In case of "BLC_PRODUCT", this field would point to the productId. -
getExistingItemAdjustmentDetails
Details describing existing subscription item-level adjustments. -
getAttributes
Additional attributes to include. -
setSubscriptionItemId
The id of the subscription item -
setItemRefType
The type of the item reference -
setItemRef
The reference of the item -
setItemSku
The sku of the item -
setAddOnKey
The add-on key -
setItemQuantity
The quantity of the item -
setParentItemRefType
The reference type of the parentItem. Usually, it would be "BLC_PRODUCT". -
setParentItemRef
The unique identifier for the parentItem. In case of "BLC_PRODUCT", this field would point to the productId. -
setExistingItemAdjustmentDetails
public void setExistingItemAdjustmentDetails(List<ExistingSubscriptionItemAdjustmentDetail> existingItemAdjustmentDetails) Details describing existing subscription item-level adjustments. -
setAttributes
Additional attributes to include. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-