RefundTransactionDetails Class

  • java.lang.Object
    • com.azure.resourcemanager.billing.models.RefundTransactionDetails

Implements

public class RefundTransactionDetails
implements JsonSerializable<RefundTransactionDetails>

The refund details of a transaction.

Constructor Summary

Constructor Description
RefundTransactionDetails()

Creates an instance of RefundTransactionDetails class.

Method Summary

Modifier and Type Method and Description
RefundTransactionDetailsAmountRefunded amountRefunded()

Get the amountRefunded property: The amount refunded.

RefundTransactionDetailsAmountRequested amountRequested()

Get the amountRequested property: The amount of refund requested.

static RefundTransactionDetails fromJson(JsonReader jsonReader)

Reads an instance of RefundTransactionDetails from the JsonReader.

String refundOperationId()

Get the refundOperationId property: The ID of refund operation.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RefundTransactionDetails withAmountRefunded(RefundTransactionDetailsAmountRefunded amountRefunded)

Set the amountRefunded property: The amount refunded.

RefundTransactionDetails withAmountRequested(RefundTransactionDetailsAmountRequested amountRequested)

Set the amountRequested property: The amount of refund requested.

RefundTransactionDetails withRefundOperationId(String refundOperationId)

Set the refundOperationId property: The ID of refund operation.

Methods inherited from java.lang.Object

Constructor Details

RefundTransactionDetails

public RefundTransactionDetails()

Creates an instance of RefundTransactionDetails class.

Method Details

amountRefunded

public RefundTransactionDetailsAmountRefunded amountRefunded()

Get the amountRefunded property: The amount refunded.

Returns:

the amountRefunded value.

amountRequested

public RefundTransactionDetailsAmountRequested amountRequested()

Get the amountRequested property: The amount of refund requested.

Returns:

the amountRequested value.

fromJson

public static RefundTransactionDetails fromJson(JsonReader jsonReader)

Reads an instance of RefundTransactionDetails from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the RefundTransactionDetails.

refundOperationId

public String refundOperationId()

Get the refundOperationId property: The ID of refund operation.

Returns:

the refundOperationId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAmountRefunded

public RefundTransactionDetails withAmountRefunded(RefundTransactionDetailsAmountRefunded amountRefunded)

Set the amountRefunded property: The amount refunded.

Parameters:

amountRefunded - the amountRefunded value to set.

Returns:

the RefundTransactionDetails object itself.

withAmountRequested

public RefundTransactionDetails withAmountRequested(RefundTransactionDetailsAmountRequested amountRequested)

Set the amountRequested property: The amount of refund requested.

Parameters:

amountRequested - the amountRequested value to set.

Returns:

the RefundTransactionDetails object itself.

withRefundOperationId

public RefundTransactionDetails withRefundOperationId(String refundOperationId)

Set the refundOperationId property: The ID of refund operation.

Parameters:

refundOperationId - the refundOperationId value to set.

Returns:

the RefundTransactionDetails object itself.

Applies to