TransactionPropertiesRefundTransactionDetails Class

public final class TransactionPropertiesRefundTransactionDetails
extends RefundTransactionDetails

The refund details of a transaction.

Constructor Summary

Constructor Description
TransactionPropertiesRefundTransactionDetails()

Creates an instance of TransactionPropertiesRefundTransactionDetails class.

Method Summary

Modifier and Type Method and Description
static TransactionPropertiesRefundTransactionDetails fromJson(JsonReader jsonReader)

Reads an instance of TransactionPropertiesRefundTransactionDetails from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

TransactionPropertiesRefundTransactionDetails withAmountRefunded(RefundTransactionDetailsAmountRefunded amountRefunded)

Set the amountRefunded property: The amount refunded.

TransactionPropertiesRefundTransactionDetails withAmountRequested(RefundTransactionDetailsAmountRequested amountRequested)

Set the amountRequested property: The amount of refund requested.

TransactionPropertiesRefundTransactionDetails withRefundOperationId(String refundOperationId)

Set the refundOperationId property: The ID of refund operation.

Methods inherited from RefundTransactionDetails

Methods inherited from java.lang.Object

Constructor Details

TransactionPropertiesRefundTransactionDetails

public TransactionPropertiesRefundTransactionDetails()

Creates an instance of TransactionPropertiesRefundTransactionDetails class.

Method Details

fromJson

public static TransactionPropertiesRefundTransactionDetails fromJson(JsonReader jsonReader)

Reads an instance of TransactionPropertiesRefundTransactionDetails from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of TransactionPropertiesRefundTransactionDetails 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 TransactionPropertiesRefundTransactionDetails.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

TransactionPropertiesRefundTransactionDetails.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

TransactionPropertiesRefundTransactionDetails.validate()

withAmountRefunded

public TransactionPropertiesRefundTransactionDetails withAmountRefunded(RefundTransactionDetailsAmountRefunded amountRefunded)

Set the amountRefunded property: The amount refunded.

Overrides:

TransactionPropertiesRefundTransactionDetails.withAmountRefunded(RefundTransactionDetailsAmountRefunded amountRefunded)

Parameters:

amountRefunded

withAmountRequested

public TransactionPropertiesRefundTransactionDetails withAmountRequested(RefundTransactionDetailsAmountRequested amountRequested)

Set the amountRequested property: The amount of refund requested.

Overrides:

TransactionPropertiesRefundTransactionDetails.withAmountRequested(RefundTransactionDetailsAmountRequested amountRequested)

Parameters:

amountRequested

withRefundOperationId

public TransactionPropertiesRefundTransactionDetails withRefundOperationId(String refundOperationId)

Set the refundOperationId property: The ID of refund operation.

Overrides:

TransactionPropertiesRefundTransactionDetails.withRefundOperationId(String refundOperationId)

Parameters:

refundOperationId

Applies to