Class SubscriptionOwnerInfo

java.lang.Object
com.broadleafcommerce.subscriptionoperation.domain.SubscriptionOwnerInfo

public class SubscriptionOwnerInfo extends Object
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.

  • Constructor Details

    • SubscriptionOwnerInfo

      public SubscriptionOwnerInfo(String userRef, String userRefType, String subscriptionId, String applicationId, Map<String,Object> additionalFields)
      Creates a new SubscriptionOwnerInfo instance.
      Parameters:
      userRef - Reference to the user to whom this subscription belongs
      userRefType - Type of user owning this subscription. Generally, this is an account reference.
      subscriptionId - Identifier for the subscription
      applicationId - The application associated with the subscription
      additionalFields -
    • SubscriptionOwnerInfo

      public SubscriptionOwnerInfo()
  • Method Details

    • getUserRef

      public String getUserRef()
      Reference to the user to whom this subscription belongs
    • getUserRefType

      public String getUserRefType()
      Type of user owning this subscription. Generally, this is an account reference.
    • getSubscriptionId

      public String getSubscriptionId()
      Identifier for the subscription
    • getApplicationId

      public String getApplicationId()
      The application associated with the subscription
    • getAdditionalFields

      public Map<String,Object> getAdditionalFields()
    • setUserRef

      public void setUserRef(String userRef)
      Reference to the user to whom this subscription belongs
    • setUserRefType

      public void setUserRefType(String userRefType)
      Type of user owning this subscription. Generally, this is an account reference.
    • setSubscriptionId

      public void setSubscriptionId(String subscriptionId)
      Identifier for the subscription
    • setApplicationId

      public void setApplicationId(String applicationId)
      The application associated with the subscription
    • setAdditionalFields

      public void setAdditionalFields(Map<String,Object> additionalFields)
    • 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