Class SubscriptionWithItems

java.lang.Object
com.broadleafcommerce.orderoperation.domain.subscription.SubscriptionWithItems
All Implemented Interfaces:
Serializable

public class SubscriptionWithItems extends Object implements Serializable
This is a container for a Subscription and a list of SubscriptionItem.
Since:
Order Operation Service 2.2.0, Release Train 2.3.0
See Also:
  • Constructor Details

    • SubscriptionWithItems

      public SubscriptionWithItems()
  • Method Details

    • addAttribute

      public void addAttribute(String name, Object value)
      Takes in any additional attributes passed in the request not matching any defined properties.
      Parameters:
      name - Name of the additional attribute
      value - Value of the additional attribute
    • getAttribute

      public Map<String,Object> getAttribute()
      Return any additional attributes passed in the request not matching any defined properties.
      Returns:
      any additional attributes passed in the request not matching any defined properties.
    • getSubscription

      public Subscription getSubscription()
    • getSubscriptionItems

      public List<SubscriptionItem> getSubscriptionItems()
    • getAttributes

      public Map<String,Object> getAttributes()
      Map holding any additional attributes passed in the request not matching any defined properties.
    • setSubscription

      public void setSubscription(Subscription subscription)
    • setSubscriptionItems

      public void setSubscriptionItems(List<SubscriptionItem> subscriptionItems)
    • setAttributes

      public void setAttributes(Map<String,Object> attributes)
      Map holding any additional attributes passed in the request not matching any defined properties.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object