CreditType Class

public final class CreditType
extends ExpandableStringEnum<CreditType>

The credit type of the transaction. Applies only to credited transactions.

Field Summary

Modifier and Type Field and Description
static final CreditType AZURE_CREDIT_OFFER

Static value AzureCreditOffer for CreditType.

static final CreditType AZURE_FREE_CREDIT

Static value AzureFreeCredit for CreditType.

static final CreditType OTHER

Static value Other for CreditType.

static final CreditType REFUND

Static value Refund for CreditType.

static final CreditType SERVICE_INTERRUPTION

Static value ServiceInterruption for CreditType.

Constructor Summary

Constructor Description
CreditType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of CreditType value.

Method Summary

Modifier and Type Method and Description
static CreditType fromString(String name)

Creates or finds a CreditType from its string representation.

static Collection<CreditType> values()

Gets known CreditType values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

AZURE_CREDIT_OFFER

public static final CreditType AZURE_CREDIT_OFFER

Static value AzureCreditOffer for CreditType.

AZURE_FREE_CREDIT

public static final CreditType AZURE_FREE_CREDIT

Static value AzureFreeCredit for CreditType.

OTHER

public static final CreditType OTHER

Static value Other for CreditType.

REFUND

public static final CreditType REFUND

Static value Refund for CreditType.

SERVICE_INTERRUPTION

public static final CreditType SERVICE_INTERRUPTION

Static value ServiceInterruption for CreditType.

Constructor Details

CreditType

@Deprecated
public CreditType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of CreditType value.

Method Details

fromString

public static CreditType fromString(String name)

Creates or finds a CreditType from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding CreditType.

values

public static Collection<CreditType> values()

Gets known CreditType values.

Returns:

known CreditType values.

Applies to