Class Price.CurrencyOption

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.Price.CurrencyOption
All Implemented Interfaces:
StripeObjectInterface
Enclosing class:
Price

public static class Price.CurrencyOption extends StripeObject
  • Constructor Details

    • CurrencyOption

      public CurrencyOption()
  • Method Details

    • getCustomUnitAmount

      public Price.CurrencyOption.CustomUnitAmount getCustomUnitAmount()
      When set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links.
    • getTaxBehavior

      public String getTaxBehavior()
      Only required if a default tax behavior was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of inclusive, exclusive, or unspecified. Once specified as either inclusive or exclusive, it cannot be changed.
    • getTiers

      public List<Price.CurrencyOption.Tier> getTiers()
      Each element represents a pricing tier. This parameter requires billing_scheme to be set to tiered. See also the documentation for billing_scheme.
    • getUnitAmount

      public Long getUnitAmount()
      The unit amount in cents (or local equivalent) to be charged, represented as a whole integer if possible. Only set if billing_scheme=per_unit.
    • getUnitAmountDecimal

      public BigDecimal getUnitAmountDecimal()
      The unit amount in cents (or local equivalent) to be charged, represented as a decimal string with at most 12 decimal places. Only set if billing_scheme=per_unit.
    • setCustomUnitAmount

      public void setCustomUnitAmount(Price.CurrencyOption.CustomUnitAmount customUnitAmount)
      When set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links.
    • setTaxBehavior

      public void setTaxBehavior(String taxBehavior)
      Only required if a default tax behavior was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of inclusive, exclusive, or unspecified. Once specified as either inclusive or exclusive, it cannot be changed.
    • setTiers

      public void setTiers(List<Price.CurrencyOption.Tier> tiers)
      Each element represents a pricing tier. This parameter requires billing_scheme to be set to tiered. See also the documentation for billing_scheme.
    • setUnitAmount

      public void setUnitAmount(Long unitAmount)
      The unit amount in cents (or local equivalent) to be charged, represented as a whole integer if possible. Only set if billing_scheme=per_unit.
    • setUnitAmountDecimal

      public void setUnitAmountDecimal(BigDecimal unitAmountDecimal)
      The unit amount in cents (or local equivalent) to be charged, represented as a decimal string with at most 12 decimal places. Only set if billing_scheme=per_unit.
    • 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