InvoicePropertiesRefundDetails Class

public final class InvoicePropertiesRefundDetails
extends RefundDetailsSummary

The details of a refund request.

Constructor Summary

Constructor Description
InvoicePropertiesRefundDetails()

Creates an instance of InvoicePropertiesRefundDetails class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime approvedOn()

Get the approvedOn property: Date when the refund was approved.

OffsetDateTime completedOn()

Get the completedOn property: Date when the refund was completed.

static InvoicePropertiesRefundDetails fromJson(JsonReader jsonReader)

Reads an instance of InvoicePropertiesRefundDetails from the JsonReader.

String rebillInvoiceId()

Get the rebillInvoiceId property: The invoice ID of the rebill invoice for a refund.

String refundOperationId()

Get the refundOperationId property: The ID of refund operation.

RefundReasonCode refundReason()

Get the refundReason property: The reason for refund.

RefundStatus refundStatus()

Get the refundStatus property: The status of refund request.

OffsetDateTime requestedOn()

Get the requestedOn property: Date when the refund was requested.

JsonWriter toJson(JsonWriter jsonWriter)
Integer transactionCount()

Get the transactionCount property: The number of transactions refunded.

void validate()

Validates the instance.

InvoicePropertiesRefundDetails withAmountRefunded(RefundDetailsSummaryAmountRefunded amountRefunded)

Set the amountRefunded property: The amount refunded.

InvoicePropertiesRefundDetails withAmountRequested(RefundDetailsSummaryAmountRequested amountRequested)

Set the amountRequested property: The amount of refund requested.

Methods inherited from RefundDetailsSummary

Methods inherited from java.lang.Object

Constructor Details

InvoicePropertiesRefundDetails

public InvoicePropertiesRefundDetails()

Creates an instance of InvoicePropertiesRefundDetails class.

Method Details

approvedOn

public OffsetDateTime approvedOn()

Get the approvedOn property: Date when the refund was approved.

Overrides:

InvoicePropertiesRefundDetails.approvedOn()

Returns:

the approvedOn value.

completedOn

public OffsetDateTime completedOn()

Get the completedOn property: Date when the refund was completed.

Overrides:

InvoicePropertiesRefundDetails.completedOn()

Returns:

the completedOn value.

fromJson

public static InvoicePropertiesRefundDetails fromJson(JsonReader jsonReader)

Reads an instance of InvoicePropertiesRefundDetails from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

rebillInvoiceId

public String rebillInvoiceId()

Get the rebillInvoiceId property: The invoice ID of the rebill invoice for a refund.

Overrides:

InvoicePropertiesRefundDetails.rebillInvoiceId()

Returns:

the rebillInvoiceId value.

refundOperationId

public String refundOperationId()

Get the refundOperationId property: The ID of refund operation.

Overrides:

InvoicePropertiesRefundDetails.refundOperationId()

Returns:

the refundOperationId value.

refundReason

public RefundReasonCode refundReason()

Get the refundReason property: The reason for refund.

Overrides:

InvoicePropertiesRefundDetails.refundReason()

Returns:

the refundReason value.

refundStatus

public RefundStatus refundStatus()

Get the refundStatus property: The status of refund request.

Overrides:

InvoicePropertiesRefundDetails.refundStatus()

Returns:

the refundStatus value.

requestedOn

public OffsetDateTime requestedOn()

Get the requestedOn property: Date when the refund was requested.

Overrides:

InvoicePropertiesRefundDetails.requestedOn()

Returns:

the requestedOn value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

InvoicePropertiesRefundDetails.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

transactionCount

public Integer transactionCount()

Get the transactionCount property: The number of transactions refunded.

Overrides:

InvoicePropertiesRefundDetails.transactionCount()

Returns:

the transactionCount value.

validate

public void validate()

Validates the instance.

Overrides:

InvoicePropertiesRefundDetails.validate()

withAmountRefunded

public InvoicePropertiesRefundDetails withAmountRefunded(RefundDetailsSummaryAmountRefunded amountRefunded)

Set the amountRefunded property: The amount refunded.

Overrides:

InvoicePropertiesRefundDetails.withAmountRefunded(RefundDetailsSummaryAmountRefunded amountRefunded)

Parameters:

amountRefunded

withAmountRequested

public InvoicePropertiesRefundDetails withAmountRequested(RefundDetailsSummaryAmountRequested amountRequested)

Set the amountRequested property: The amount of refund requested.

Overrides:

InvoicePropertiesRefundDetails.withAmountRequested(RefundDetailsSummaryAmountRequested amountRequested)

Parameters:

amountRequested

Applies to