Class BraintreeResponse.Refund
java.lang.Object
com.broadleafcommerce.braintree.domain.BraintreeResponse.Refund
- All Implemented Interfaces:
Serializable
- Enclosing class:
- BraintreeResponse
A refund of a charge on a payment method, representing an attempt to send money from a
previous transaction back to the customer.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe amount that will be refunded, which can be less than or equal to the original charge amount.Date and time when the refund was created.getId()
Unique identifier.The ID of the merchant account that processed this refund.The order ID for this refund.he multi-use payment method that will receive the refund.The original transaction that this refunds.How the refund was created.The current status of this refund.void
setAmount
(BraintreeResponse.Amount amount) The amount that will be refunded, which can be less than or equal to the original charge amount.void
setCreatedAt
(Instant createdAt) Date and time when the refund was created.void
Unique identifier.void
setMerchantAccountId
(String merchantAccountId) The ID of the merchant account that processed this refund.void
setOrderId
(String orderId) The order ID for this refund.void
setPaymentMethod
(BraintreeResponse.PaymentMethod paymentMethod) he multi-use payment method that will receive the refund.void
setRefundedTransaction
(BraintreeResponse.Transaction refundedTransaction) The original transaction that this refunds.void
How the refund was created.void
The current status of this refund.
-
Constructor Details
-
Refund
public Refund()
-
-
Method Details
-
setId
Unique identifier. -
setStatus
The current status of this refund. -
setAmount
The amount that will be refunded, which can be less than or equal to the original charge amount. -
setOrderId
The order ID for this refund. For PayPal transactions, the PayPal Invoice ID. -
setCreatedAt
Date and time when the refund was created. -
setMerchantAccountId
The ID of the merchant account that processed this refund. -
setSource
How the refund was created. -
setRefundedTransaction
The original transaction that this refunds. If this is not present, then this refund represents a refund of a transaction that does not belong to this Braintree gateway account. -
setPaymentMethod
he multi-use payment method that will receive the refund. Only present if a multi-use payment method was used to create the original transaction and it has not been since deleted. The details of this PaymentMethod may have changed since the transaction was created; details used for the transaction can be found in the paymentMethodSnapshot field. -
getId
Unique identifier. -
getStatus
The current status of this refund. -
getAmount
The amount that will be refunded, which can be less than or equal to the original charge amount. -
getOrderId
The order ID for this refund. For PayPal transactions, the PayPal Invoice ID. -
getCreatedAt
Date and time when the refund was created. -
getMerchantAccountId
The ID of the merchant account that processed this refund. -
getSource
How the refund was created. -
getRefundedTransaction
The original transaction that this refunds. If this is not present, then this refund represents a refund of a transaction that does not belong to this Braintree gateway account. -
getPaymentMethod
he multi-use payment method that will receive the refund. Only present if a multi-use payment method was used to create the original transaction and it has not been since deleted. The details of this PaymentMethod may have changed since the transaction was created; details used for the transaction can be found in the paymentMethodSnapshot field.
-