|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpaypalnvp.request.RefundTransaction
public final class RefundTransaction
RefundTransaction Request Message
Method Summary | |
---|---|
static RefundTransaction |
getFullRefund(java.lang.String transactionId)
Transaction id cannot be longer than 17 characters and cannot be null, if it is, exception is thrown. |
java.util.Map<java.lang.String,java.lang.String> |
getNVPRequest()
Creates and returns part of the nvp (name value pair) request containing request values |
java.util.Map<java.lang.String,java.lang.String> |
getNVPResponse()
Return response from paypal. |
static RefundTransaction |
getOtherRefund(java.lang.String transactionId)
Transaction id cannot be longer than 17 characters and cannot be null, if it is, exception is thrown. |
static RefundTransaction |
getOtherRefund(java.lang.String transactionId,
java.lang.String amount)
Transaction id and amount has to be valid, otherwise exception is thrown. |
static RefundTransaction |
getPartialRefund(java.lang.String transactionId,
java.lang.String amount)
Transaction id and amount has to be valid, otherwise exception is thrown. |
void |
setNote(java.lang.String note)
Custom memo about the refund. |
void |
setNVPResponse(java.util.Map<java.lang.String,java.lang.String> nvpResponse)
Setter for nvp (name value pair) response |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static RefundTransaction getFullRefund(java.lang.String transactionId) throws java.lang.IllegalArgumentException
transactionId
- Unique identifier of a transaction.
Character length and limitations: 17 single-byte
alphanumeric characters.
java.lang.IllegalArgumentException
public static RefundTransaction getPartialRefund(java.lang.String transactionId, java.lang.String amount) throws java.lang.IllegalArgumentException
transactionId
- Unique identifier of a transaction.
Character length and limitations: 17 single-byte
alphanumeric characters.amount
- Amount to reauthorize.
Limitations: Value is a positive number which cannot
exceed $10,000 USD in any currency. No currency
symbol. Must have two decimal places, decimal
separator must be a period (.).
java.lang.IllegalArgumentException
public static RefundTransaction getOtherRefund(java.lang.String transactionId) throws java.lang.IllegalArgumentException
transactionId
- Unique identifier of a transaction.
Character length and limitations: 17 single-byte
alphanumeric characters.
java.lang.IllegalArgumentException
public static RefundTransaction getOtherRefund(java.lang.String transactionId, java.lang.String amount) throws java.lang.IllegalArgumentException
transactionId
- Unique identifier of a transaction.
Character length and limitations: 17 single-byte
alphanumeric characters.amount
- Amount to reauthorize.
Limitations: Value is a positive number which cannot
exceed $10,000 USD in any currency. No currency
symbol. Must have two decimal places, decimal
separator must be a period (.).
java.lang.IllegalArgumentException
public void setNote(java.lang.String note) throws java.lang.IllegalArgumentException
note
- Character length and limitations: 255 single-byte
alphanumeric characters.
java.lang.IllegalArgumentException
public java.util.Map<java.lang.String,java.lang.String> getNVPRequest()
Request
getNVPRequest
in interface Request
public void setNVPResponse(java.util.Map<java.lang.String,java.lang.String> nvpResponse)
Request
setNVPResponse
in interface Request
public java.util.Map<java.lang.String,java.lang.String> getNVPResponse()
Request
getNVPResponse
in interface Request
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |