Class SubscriptionOwnerInfo

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

public class SubscriptionOwnerInfo extends Object implements Serializable
DTO that contains information about the owner of a subscription, e.g. account-owned vs. customer-owned.

This DTO is typically used for determining what subscriptions to apply price changes to.

See Also:
  • Constructor Details

    • SubscriptionOwnerInfo

      public SubscriptionOwnerInfo(com.broadleafcommerce.data.tracking.core.Trackable subscription)
      Simple constructor injection for conversion.
      Parameters:
      subscription - The persistent entity to convert
  • Method Details

    • getUserRef

      public String getUserRef()
      Reference to the user to whom this subscription belongs. Generally, this is an account reference.
    • getUserRefType

      public String getUserRefType()
      Type of user owning this subscription
    • getSubscriptionId

      public String getSubscriptionId()
      Identifier for the subscription
    • getApplicationId

      public String getApplicationId()
      The application associated with the subscription
    • 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