Class ServiceAction.CreditGrant

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.v2.billing.ServiceAction.CreditGrant
All Implemented Interfaces:
StripeObjectInterface
Enclosing class:
ServiceAction

public static class ServiceAction.CreditGrant extends StripeObject
For more details about CreditGrant, please refer to the API Reference.
  • Constructor Details

    • CreditGrant

      public CreditGrant()
  • Method Details

    • getAmount

      The amount of the credit grant.
    • getApplicabilityConfig

      public ServiceAction.CreditGrant.ApplicabilityConfig getApplicabilityConfig()
      Defines the scope where the credit grant is applicable.
    • getCategory

      public String getCategory()
      The category of the credit grant.

      One of paid, or promotional.

    • getExpiryConfig

      public ServiceAction.CreditGrant.ExpiryConfig getExpiryConfig()
      The expiry configuration for the credit grant.
    • getName

      public String getName()
      A descriptive name shown in dashboard.
    • getPriority

      public Integer getPriority()
      The desired priority for applying this credit grant. If not specified, it will be set to the default value of 50. The highest priority is 0 and the lowest is 100.
    • setAmount

      public void setAmount(ServiceAction.CreditGrant.Amount amount)
      The amount of the credit grant.
    • setApplicabilityConfig

      public void setApplicabilityConfig(ServiceAction.CreditGrant.ApplicabilityConfig applicabilityConfig)
      Defines the scope where the credit grant is applicable.
    • setCategory

      public void setCategory(String category)
      The category of the credit grant.

      One of paid, or promotional.

    • setExpiryConfig

      public void setExpiryConfig(ServiceAction.CreditGrant.ExpiryConfig expiryConfig)
      The expiry configuration for the credit grant.
    • setName

      public void setName(String name)
      A descriptive name shown in dashboard.
    • setPriority

      public void setPriority(Integer priority)
      The desired priority for applying this credit grant. If not specified, it will be set to the default value of 50. The highest priority is 0 and the lowest is 100.
    • 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