Class RefundRequest
- java.lang.Object
-
- com.broadleafcommerce.paypal.micro.gateway.domain.payments.RefundRequest
-
- All Implemented Interfaces:
Serializable
public class RefundRequest extends Object implements Serializable
- Author:
- Dima Myroniuk (dmyroniuk)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RefundRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Money
getAmount()
The amount to refund.String
getInvoiceId()
The API caller-provided external invoice number for this order.String
getNoteToPayer()
The reason for the refund.PaymentInstruction
getPaymentInstruction()
Any additional refund instructions to be set during refund payment processing.void
setAmount(Money amount)
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.
-
-
-
Method Detail
-
setAmount
public void setAmount(Money amount)
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
public void setInvoiceId(String invoiceId)
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
public void setNoteToPayer(String noteToPayer)
The reason for the refund. Appears in both the payer's transaction history and the emails that the payer receives.
-
setPaymentInstruction
public void setPaymentInstruction(PaymentInstruction paymentInstruction)
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
public Money 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
public String 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
public String getNoteToPayer()
The reason for the refund. Appears in both the payer's transaction history and the emails that the payer receives.
-
getPaymentInstruction
public PaymentInstruction 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.
-
-