Class SpendSummary

  • All Implemented Interfaces:

    
    public final class SpendSummary
    
                        

    Per-member effective-limit report row (GET /spend_limits/effective).

    • Constructor Detail

    • Method Detail

      • amount

         final Optional<String> amount()

        Effective limit amount as a non-negative integer decimal string in the minor unit of currency (cents for USD). null means no limit applies for this row's period — each period resolves independently, so another period may still cap this member.

      • currency

         final String currency()

        ISO 4217 code of the organization's billing currency; the unit for amount and period_to_date_spend.

      • periodToDateSpend

         final String periodToDateSpend()

        The member's spend so far in the current period, as a non-negative decimal string in the minor unit of currency (cents for USD). May carry fractional minor units up to three decimal places (e.g. "12050.5") — metered usage is not rounded to whole cents. Reads as "0" when the spend reading is temporarily unavailable.

      • _actor

         final JsonField<SpendSummary.Actor> _actor()

        Returns the raw JSON value of actor.

        Unlike actor, this method doesn't throw if the JSON field has an unexpected type.

      • _amount

         final JsonField<String> _amount()

        Returns the raw JSON value of amount.

        Unlike amount, this method doesn't throw if the JSON field has an unexpected type.

      • _currency

         final JsonField<String> _currency()

        Returns the raw JSON value of currency.

        Unlike currency, this method doesn't throw if the JSON field has an unexpected type.

      • _period

         final JsonField<SpendLimitPeriod> _period()

        Returns the raw JSON value of period.

        Unlike period, this method doesn't throw if the JSON field has an unexpected type.

      • _periodToDateSpend

         final JsonField<String> _periodToDateSpend()

        Returns the raw JSON value of periodToDateSpend.

        Unlike periodToDateSpend, this method doesn't throw if the JSON field has an unexpected type.

      • _scope

         final JsonField<SpendSummary.Scope> _scope()

        Returns the raw JSON value of scope.

        Unlike scope, this method doesn't throw if the JSON field has an unexpected type.

      • _source

         final JsonField<SpendSummary.Source> _source()

        Returns the raw JSON value of source.

        Unlike source, this method doesn't throw if the JSON field has an unexpected type.

      • _spendLimitId

         final JsonField<String> _spendLimitId()

        Returns the raw JSON value of spendLimitId.

        Unlike spendLimitId, this method doesn't throw if the JSON field has an unexpected type.

      • validate

         final SpendSummary validate()

        Validates that the types of all values in this object match their expected types recursively.

        This method is not forwards compatible with new types from the API for existing fields.

      • builder

         final static SpendSummary.Builder builder()

        Returns a mutable builder for constructing an instance of SpendSummary.

        The following fields are required:

        .actor()
        .amount()
        .currency()
        .period()
        .periodToDateSpend()
        .scope()
        .source()
        .spendLimitId()