paypalnvp.request
Class DoNonReferencedCredit

java.lang.Object
  extended by paypalnvp.request.DoNonReferencedCredit
All Implemented Interfaces:
java.io.Serializable, Request

public final class DoNonReferencedCredit
extends java.lang.Object
implements Request

Issue a credit to a card not referenced by the original transaction.

See Also:
Serialized Form

Constructor Summary
DoNonReferencedCredit(java.lang.String amount, CreditCard card, PayerInformation payer, Address address)
           
 
Method Summary
 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.
 void setCurrency(Currency currency)
           
 void setNetAmount(java.lang.String amount)
           
 void setNote(java.lang.String note)
           
 void setNVPResponse(java.util.Map<java.lang.String,java.lang.String> nvpResponse)
          Setter for nvp (name value pair) response
 void setPayerName(PayerName payerName)
           
 void setShippingAmount(java.lang.String amount)
           
 void setTaxAmount(java.lang.String amount)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DoNonReferencedCredit

public DoNonReferencedCredit(java.lang.String amount,
                             CreditCard card,
                             PayerInformation payer,
                             Address address)
                      throws java.lang.IllegalArgumentException
Parameters:
amount - Total of order, including shipping, handling, and tax. Limitations: Must not exceed $10,000 USD in any currency. No currency symbol. Must have two decimal places, decimal separator must be a period (.). Amount = NetAmount + ShippingAmount + TaxAmount
card -
payer -
address -
Throws:
java.lang.IllegalArgumentException
Method Detail

setNetAmount

public void setNetAmount(java.lang.String amount)
                  throws java.lang.IllegalArgumentException
Parameters:
amount - Total amount of all items in this transaction. Limitations: Must not exceed $10,000 USD in any currency. No currency symbol. Must have two decimal places, decimal separator must be a period (.). The only valid currencies are AUD, CAD, EUR, GBP, JPY, and USD.
Throws:
java.lang.IllegalArgumentException

setTaxAmount

public void setTaxAmount(java.lang.String amount)
                  throws java.lang.IllegalArgumentException
Parameters:
amount - Sum of tax for all items in this order. Limitations: The value must be zero or greater and cannot exceed $10,000 USD in any currency. No currency symbol. Must have two decimal places, decimal separator must be a period (.). The only valid currencies are AUD, CAD, EUR, GBP, JPY, and USD.
Throws:
java.lang.IllegalArgumentException

setShippingAmount

public void setShippingAmount(java.lang.String amount)
                       throws java.lang.IllegalArgumentException
Parameters:
amount - Total shipping costs in this transaction. Limitations: Value must be zero or greater and cannot exceed $10,000 USD in any currency. No currency symbol. Must have two decimal places, decimal separator must be a period (.). The only valid currencies are AUD, CAD, EUR, GBP, JPY, and USD.
Throws:
java.lang.IllegalArgumentException

setNote

public void setNote(java.lang.String note)
Parameters:
note - Field used by merchant to record why this credit was issued to a buyer. Similar to a "memo" field.

setCurrency

public void setCurrency(Currency currency)
                 throws java.lang.IllegalArgumentException
Parameters:
currency - Currency code. Default: USD. The only valid currencies are AUD, CAD, EUR, GBP, JPY, and USD.
Throws:
java.lang.IllegalArgumentException

setPayerName

public void setPayerName(PayerName payerName)
Parameters:
payerName -

getNVPRequest

public java.util.Map<java.lang.String,java.lang.String> getNVPRequest()
Description copied from interface: Request
Creates and returns part of the nvp (name value pair) request containing request values

Specified by:
getNVPRequest in interface Request
Returns:
part of the nvp request as a Map

setNVPResponse

public void setNVPResponse(java.util.Map<java.lang.String,java.lang.String> nvpResponse)
Description copied from interface: Request
Setter for nvp (name value pair) response

Specified by:
setNVPResponse in interface Request

getNVPResponse

public java.util.Map<java.lang.String,java.lang.String> getNVPResponse()
Description copied from interface: Request
Return response from paypal. If response is not set/received returns empty Map.

Specified by:
getNVPResponse in interface Request
Returns:
response from paypal as a Map

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object