Class ServiceAction.CreditGrant.Amount

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

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

    • Amount

      public Amount()
  • Method Details

    • getCustomPricingUnit

      The custom pricing unit amount of the credit grant. Required if type is custom_pricing_unit.
    • getMonetary

      public Amount getMonetary()
      The monetary amount of the credit grant. Required if type is monetary.
    • getType

      public String getType()
      The type of the credit grant amount. We currently support monetary and custom_pricing_unit billing credits.

      One of custom_pricing_unit, or monetary.

    • setCustomPricingUnit

      public void setCustomPricingUnit(ServiceAction.CreditGrant.Amount.CustomPricingUnit customPricingUnit)
      The custom pricing unit amount of the credit grant. Required if type is custom_pricing_unit.
    • setMonetary

      public void setMonetary(Amount monetary)
      The monetary amount of the credit grant. Required if type is monetary.
    • setType

      public void setType(String type)
      The type of the credit grant amount. We currently support monetary and custom_pricing_unit billing credits.

      One of custom_pricing_unit, or monetary.

    • 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