Class SubscriptionItem


  • public class SubscriptionItem
    extends Object
    SubscriptionItem
    • Constructor Detail

      • SubscriptionItem

        public SubscriptionItem()
    • Method Detail

      • endDate

        public SubscriptionItem endDate​(org.threeten.bp.OffsetDateTime endDate)
        Date when the subscription to this product will end
        Parameters:
        endDate - OffsetDateTime
        Returns:
        SubscriptionItem
      • getEndDate

        public org.threeten.bp.OffsetDateTime getEndDate()
        Date when the subscription to this product will end
        Returns:
        endDate
      • setEndDate

        public void setEndDate​(org.threeten.bp.OffsetDateTime endDate)
        Date when the subscription to this product will end
        Parameters:
        endDate - OffsetDateTime
      • id

        public SubscriptionItem id​(UUID id)
        The unique identifier of the subscription item.
        Parameters:
        id - UUID
        Returns:
        SubscriptionItem
      • getId

        public UUID getId()
        The unique identifier of the subscription item.
        Returns:
        id
      • setId

        public void setId​(UUID id)
        The unique identifier of the subscription item.
        Parameters:
        id - UUID
      • price

        public SubscriptionItem price​(Price price)
        price
        Parameters:
        price - Price
        Returns:
        SubscriptionItem
      • getPrice

        public Price getPrice()
        Get price
        Returns:
        price
      • setPrice

        public void setPrice​(Price price)
        price
        Parameters:
        price - Price
      • product

        public SubscriptionItem product​(Product product)
        product
        Parameters:
        product - Product
        Returns:
        SubscriptionItem
      • getProduct

        public Product getProduct()
        Get product
        Returns:
        product
      • setProduct

        public void setProduct​(Product product)
        product
        Parameters:
        product - Product
      • startDate

        public SubscriptionItem startDate​(org.threeten.bp.OffsetDateTime startDate)
        Date the subscription started, or will start. Note: this could be in the future for downgrades or reduced number of seats that haven't taken effect yet.
        Parameters:
        startDate - OffsetDateTime
        Returns:
        SubscriptionItem
      • getStartDate

        public org.threeten.bp.OffsetDateTime getStartDate()
        Date the subscription started, or will start. Note: this could be in the future for downgrades or reduced number of seats that haven't taken effect yet.
        Returns:
        startDate
      • setStartDate

        public void setStartDate​(org.threeten.bp.OffsetDateTime startDate)
        Date the subscription started, or will start. Note: this could be in the future for downgrades or reduced number of seats that haven't taken effect yet.
        Parameters:
        startDate - OffsetDateTime
      • testMode

        public SubscriptionItem testMode​(Boolean testMode)
        If the subscription is a test subscription
        Parameters:
        testMode - Boolean
        Returns:
        SubscriptionItem
      • getTestMode

        public Boolean getTestMode()
        If the subscription is a test subscription
        Returns:
        testMode
      • setTestMode

        public void setTestMode​(Boolean testMode)
        If the subscription is a test subscription
        Parameters:
        testMode - Boolean
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object