Class RefundRequest
java.lang.Object
com.broadleafcommerce.paypal.micro.gateway.domain.payments.RefundRequest
- All Implemented Interfaces:
Serializable
- Author:
- Dima Myroniuk (dmyroniuk)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe amount to refund.The API caller-provided external invoice number for this order.The reason for the refund.Any additional refund instructions to be set during refund payment processing.void
The amount to refund.void
setInvoiceId
(String invoiceId) The API caller-provided external invoice number for this order.void
setNoteToPayer
(String noteToPayer) The reason for the refund.void
setPaymentInstruction
(PaymentInstruction paymentInstruction) Any additional refund instructions to be set during refund payment processing.
-
Constructor Details
-
RefundRequest
public RefundRequest()
-
-
Method Details
-
setAmount
The amount to refund. To refund a portion of the captured amount, specify an amount. If amount is not specified, an amount equal to "captured amount - previous refunds" is refunded. The amount must be a positive number and in the same currency as the one in which the payment was captured. -
setInvoiceId
The API caller-provided external invoice number for this order. Appears in both the payer's transaction history and the emails that the payer receives. -
setNoteToPayer
The reason for the refund. Appears in both the payer's transaction history and the emails that the payer receives. -
setPaymentInstruction
Any additional refund instructions to be set during refund payment processing. This object is only applicable to merchants that have been enabled for PayPal Commerce Platform for Marketplaces and Platforms capability. Please speak to your account manager if you want to use this capability. -
getAmount
The amount to refund. To refund a portion of the captured amount, specify an amount. If amount is not specified, an amount equal to "captured amount - previous refunds" is refunded. The amount must be a positive number and in the same currency as the one in which the payment was captured. -
getInvoiceId
The API caller-provided external invoice number for this order. Appears in both the payer's transaction history and the emails that the payer receives. -
getNoteToPayer
The reason for the refund. Appears in both the payer's transaction history and the emails that the payer receives. -
getPaymentInstruction
Any additional refund instructions to be set during refund payment processing. This object is only applicable to merchants that have been enabled for PayPal Commerce Platform for Marketplaces and Platforms capability. Please speak to your account manager if you want to use this capability.
-