Class SpendSummary
-
- All Implemented Interfaces:
public final class SpendSummaryPer-member effective-limit report row (
GET /spend_limits/effective).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classSpendSummary.BuilderA builder for SpendSummary.
public final classSpendSummary.Actorpublic final classSpendSummary.Scopepublic final classSpendSummary.Source
-
Method Summary
Modifier and Type Method Description final SpendSummary.Actoractor()final Optional<String>amount()Effective limit amount as a non-negative integer decimal string in the minor unit of currency(cents for USD).final Stringcurrency()ISO 4217 code of the organization's billing currency; the unit for amountandperiod_to_date_spend.final SpendLimitPeriodperiod()Period this row's effective limit and spend are reported for. final StringperiodToDateSpend()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).final SpendSummary.Scopescope()final SpendSummary.Sourcesource()final StringspendLimitId()final JsonField<SpendSummary.Actor>_actor()Returns the raw JSON value of actor. final JsonField<String>_amount()Returns the raw JSON value of amount. final JsonField<String>_currency()Returns the raw JSON value of currency. final JsonField<SpendLimitPeriod>_period()Returns the raw JSON value of period. final JsonField<String>_periodToDateSpend()Returns the raw JSON value of periodToDateSpend. final JsonField<SpendSummary.Scope>_scope()Returns the raw JSON value of scope. final JsonField<SpendSummary.Source>_source()Returns the raw JSON value of source. final JsonField<String>_spendLimitId()Returns the raw JSON value of spendLimitId. final Map<String, JsonValue>_additionalProperties()final SpendSummary.BuildertoBuilder()final SpendSummaryvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static SpendSummary.Builderbuilder()Returns a mutable builder for constructing an instance of SpendSummary. -
-
Method Detail
-
actor
final SpendSummary.Actor actor()
-
amount
final Optional<String> amount()
Effective limit amount as a non-negative integer decimal string in the minor unit of
currency(cents for USD).nullmeans no limit applies for this row'speriod— 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
amountandperiod_to_date_spend.
-
period
final SpendLimitPeriod period()
Period this row's effective limit and spend are reported for.
-
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.
-
scope
final SpendSummary.Scope scope()
-
source
final SpendSummary.Source source()
-
spendLimitId
final String spendLimitId()
-
_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.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final SpendSummary.Builder toBuilder()
-
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()
-
-
-
-