Class LineItem.Discount

    • Constructor Detail

      • Discount

        public Discount()
    • Method Detail

      • getAmount

        public java.lang.Long getAmount()
        The amount discounted.
      • getDiscount

        public LineItem.Discount getDiscount()
        A discount represents the actual application of a coupon to a particular customer. It contains information about when the discount began and when it will end.

        Related guide: Applying Discounts to Subscriptions.

      • setAmount

        public void setAmount​(java.lang.Long amount)
        The amount discounted.
      • setDiscount

        public void setDiscount​(LineItem.Discount discount)
        A discount represents the actual application of a coupon to a particular customer. It contains information about when the discount began and when it will end.

        Related guide: Applying Discounts to Subscriptions.

      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object