Class Credits

java.lang.Object
ai.vectros.types.Credits

public final class Credits extends Object
  • Method Details

    • getUsed

      public Optional<Long> getUsed()
      Returns:
      Credits consumed this period (rounded down to whole credits)
    • getUsedMilli

      public Optional<Long> getUsedMilli()
      Returns:
      Credits consumed this period in milli-credit precision (1 credit = 1000 milli-credits). Use this for exact accounting and for cross-checking per-environment totals — the rounded used value can differ from live.used + test.used by up to 1 credit per category due to independent truncation. The milli value is exact.
    • getLimit

      public Optional<Long> getLimit()
      Returns:
      Plan monthly credit limit. Null for unlimited (enterprise) plans.
    • getRemaining

      public Optional<Long> getRemaining()
      Returns:
      Remaining credits before plan limit hit. Null for unlimited plans.
    • getBreakdown

      public Optional<CreditBreakdown> getBreakdown()
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
    • hashCode

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

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

      public static Credits.Builder builder()