Class Coupon.Script

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.Coupon.Script
All Implemented Interfaces:
HasId, StripeObjectInterface
Enclosing class:
Coupon

public static class Coupon.Script extends StripeObject implements HasId
For more details about Script, please refer to the API Reference.
  • Constructor Details

    • Script

      public Script()
  • Method Details

    • getConfiguration

      public Map<String,Object> getConfiguration()
      The configuration values of the script. The keys and values are specific to the script implementation.
    • getDisplayName

      public String getDisplayName()
      The name of the script used to calculate the discount.
    • setConfiguration

      public void setConfiguration(Map<String,Object> configuration)
      The configuration values of the script. The keys and values are specific to the script implementation.
    • setDisplayName

      public void setDisplayName(String displayName)
      The name of the script used to calculate the discount.
    • setId

      public void setId(String id)
      The script implementation ID for this coupon.
    • 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
    • getId

      public String getId()
      The script implementation ID for this coupon.
      Specified by:
      getId in interface HasId