Class PriceOutput

java.lang.Object
ai.reveng.model.PriceOutput

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class PriceOutput extends Object
PriceOutput
  • Field Details

  • Constructor Details

    • PriceOutput

      public PriceOutput()
  • Method Details

    • currency

      public PriceOutput currency(@Nonnull String currency)
    • getCurrency

      @Nonnull public String getCurrency()
      Lowercase ISO 4217 currency code (e.g. \"usd\", \"gbp\").
      Returns:
      currency
    • setCurrency

      public void setCurrency(@Nonnull String currency)
    • id

      public PriceOutput id(@Nonnull String id)
    • getId

      @Nonnull public String getId()
      Price ID.
      Returns:
      id
    • setId

      public void setId(@Nonnull String id)
    • interval

      public PriceOutput interval(@Nonnull PriceOutput.IntervalEnum interval)
    • getInterval

      @Nonnull public PriceOutput.IntervalEnum getInterval()
      Billing interval at which the price recurs.
      Returns:
      interval
    • setInterval

      public void setInterval(@Nonnull PriceOutput.IntervalEnum interval)
    • unitAmount

      public PriceOutput unitAmount(@Nonnull Long unitAmount)
    • getUnitAmount

      @Nonnull public Long getUnitAmount()
      Price per billing interval, expressed in the smallest unit of the currency (e.g. cents for USD, pence for GBP).
      Returns:
      unitAmount
    • setUnitAmount

      public void setUnitAmount(@Nonnull Long unitAmount)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to PriceOutput
    • fromJson

      public static PriceOutput fromJson(String jsonString) throws IOException
      Create an instance of PriceOutput given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of PriceOutput
      Throws:
      IOException - if the JSON string is invalid with respect to PriceOutput
    • toJson

      public String toJson()
      Convert an instance of PriceOutput to an JSON string
      Returns:
      JSON string