CreditSummaryInner Class

public final class CreditSummaryInner
extends ProxyResource

A credit summary resource.

Constructor Summary

Constructor Description
CreditSummaryInner()

Creates an instance of CreditSummaryInner class.

Method Summary

Modifier and Type Method and Description
CreditBalanceSummary balanceSummary()

Get the balanceSummary property: Summary of balances associated with this credit summary.

String billingCurrency()

Get the billingCurrency property: The billing currency.

String creditCurrency()

Get the creditCurrency property: The credit currency.

String etag()

Get the etag property: eTag of the resource.

String etagPropertiesEtag()

Get the etag property: The eTag for the resource.

Amount expiredCredit()

Get the expiredCredit property: Expired credit.

static CreditSummaryInner fromJson(JsonReader jsonReader)

Reads an instance of CreditSummaryInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String name()

Get the name property: The name of the resource.

Amount pendingCreditAdjustments()

Get the pendingCreditAdjustments property: Pending credit adjustments.

Amount pendingEligibleCharges()

Get the pendingEligibleCharges property: Pending eligible charges.

Reseller reseller()

Get the reseller property: Credit's reseller.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

CreditSummaryInner withEtag(String etag)

Set the etag property: eTag of the resource.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

CreditSummaryInner

public CreditSummaryInner()

Creates an instance of CreditSummaryInner class.

Method Details

balanceSummary

public CreditBalanceSummary balanceSummary()

Get the balanceSummary property: Summary of balances associated with this credit summary.

Returns:

the balanceSummary value.

billingCurrency

public String billingCurrency()

Get the billingCurrency property: The billing currency.

Returns:

the billingCurrency value.

creditCurrency

public String creditCurrency()

Get the creditCurrency property: The credit currency.

Returns:

the creditCurrency value.

etag

public String etag()

Get the etag property: eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.

Returns:

the etag value.

etagPropertiesEtag

public String etagPropertiesEtag()

Get the etag property: The eTag for the resource.

Returns:

the etag value.

expiredCredit

public Amount expiredCredit()

Get the expiredCredit property: Expired credit.

Returns:

the expiredCredit value.

fromJson

public static CreditSummaryInner fromJson(JsonReader jsonReader)

Reads an instance of CreditSummaryInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of CreditSummaryInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

CreditSummaryInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

CreditSummaryInner.name()

Returns:

the name value.

pendingCreditAdjustments

public Amount pendingCreditAdjustments()

Get the pendingCreditAdjustments property: Pending credit adjustments.

Returns:

the pendingCreditAdjustments value.

pendingEligibleCharges

public Amount pendingEligibleCharges()

Get the pendingEligibleCharges property: Pending eligible charges.

Returns:

the pendingEligibleCharges value.

reseller

public Reseller reseller()

Get the reseller property: Credit's reseller.

Returns:

the reseller value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

CreditSummaryInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

CreditSummaryInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withEtag

public CreditSummaryInner withEtag(String etag)

Set the etag property: eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.

Parameters:

etag - the etag value to set.

Returns:

the CreditSummaryInner object itself.

Applies to