Class Order.Credit

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.Order.Credit
All Implemented Interfaces:
StripeObjectInterface
Enclosing class:
Order

public static class Order.Credit extends StripeObject
  • Constructor Details

    • Credit

      public Credit()
  • Method Details

    • getAmount

      public Long getAmount()
      The amount of this credit to apply to the order.
    • getGiftCard

      public Order.Credit.GiftCard getGiftCard()
      Details for a gift card.
    • getIneligibleLineItems

      public List<String> getIneligibleLineItems()
      Line items on this order that are ineligible for this credit.
    • getType

      public String getType()
      The type of credit to apply to the order, only gift_card currently supported.

      Equal to gift_card.

    • setAmount

      public void setAmount(Long amount)
      The amount of this credit to apply to the order.
    • setGiftCard

      public void setGiftCard(Order.Credit.GiftCard giftCard)
      Details for a gift card.
    • setIneligibleLineItems

      public void setIneligibleLineItems(List<String> ineligibleLineItems)
      Line items on this order that are ineligible for this credit.
    • setType

      public void setType(String type)
      The type of credit to apply to the order, only gift_card currently supported.

      Equal to gift_card.

    • 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