Class QuoteLine.Action

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.QuoteLine.Action
All Implemented Interfaces:
StripeObjectInterface
Enclosing class:
QuoteLine

public static class QuoteLine.Action extends StripeObject
  • Constructor Details

    • Action

      public Action()
  • Method Details

    • getAddDiscount

      public QuoteLine.Action.AddDiscount getAddDiscount()
      Details for the add_discount type.
    • getAddItem

      public QuoteLine.Action.AddItem getAddItem()
      Details for the add_item type.
    • getAddMetadata

      public Map<String,String> getAddMetadata()
      Details for the add_metadata type: specify a hash of key-value pairs.
    • getRemoveDiscount

      public QuoteLine.Action.RemoveDiscount getRemoveDiscount()
      Details for the remove_discount type.
    • getRemoveItem

      public QuoteLine.Action.RemoveItem getRemoveItem()
      Details for the remove_item type.
    • getRemoveMetadata

      public List<String> getRemoveMetadata()
      Details for the remove_metadata type: specify an array of metadata keys.
    • getSetDiscounts

      public List<QuoteLine.Action.SetDiscount> getSetDiscounts()
      Details for the set_discounts type.
    • getSetItems

      public List<QuoteLine.Action.SetItem> getSetItems()
      Details for the set_items type.
    • getSetMetadata

      public Map<String,String> getSetMetadata()
      Details for the set_metadata type: specify an array of key-value pairs.
    • getType

      public String getType()
      The type of action the quote line performs.

      One of add_discount, add_item, add_metadata, clear_discounts, clear_metadata, remove_discount, remove_item, remove_metadata, set_discounts, set_items, or set_metadata.

    • setAddDiscount

      public void setAddDiscount(QuoteLine.Action.AddDiscount addDiscount)
      Details for the add_discount type.
    • setAddItem

      public void setAddItem(QuoteLine.Action.AddItem addItem)
      Details for the add_item type.
    • setAddMetadata

      public void setAddMetadata(Map<String,String> addMetadata)
      Details for the add_metadata type: specify a hash of key-value pairs.
    • setRemoveDiscount

      public void setRemoveDiscount(QuoteLine.Action.RemoveDiscount removeDiscount)
      Details for the remove_discount type.
    • setRemoveItem

      public void setRemoveItem(QuoteLine.Action.RemoveItem removeItem)
      Details for the remove_item type.
    • setRemoveMetadata

      public void setRemoveMetadata(List<String> removeMetadata)
      Details for the remove_metadata type: specify an array of metadata keys.
    • setSetDiscounts

      public void setSetDiscounts(List<QuoteLine.Action.SetDiscount> setDiscounts)
      Details for the set_discounts type.
    • setSetItems

      public void setSetItems(List<QuoteLine.Action.SetItem> setItems)
      Details for the set_items type.
    • setSetMetadata

      public void setSetMetadata(Map<String,String> setMetadata)
      Details for the set_metadata type: specify an array of key-value pairs.
    • setType

      public void setType(String type)
      The type of action the quote line performs.

      One of add_discount, add_item, add_metadata, clear_discounts, clear_metadata, remove_discount, remove_item, remove_metadata, set_discounts, set_items, or set_metadata.

    • 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