|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpaypalnvp.request.DoNonReferencedCredit
public final class DoNonReferencedCredit
Issue a credit to a card not referenced by the original transaction.
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 |
---|
public DoNonReferencedCredit(java.lang.String amount, CreditCard card, PayerInformation payer, Address address) throws java.lang.IllegalArgumentException
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 + TaxAmountcard
- payer
- address
-
java.lang.IllegalArgumentException
Method Detail |
---|
public void setNetAmount(java.lang.String amount) throws java.lang.IllegalArgumentException
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.
java.lang.IllegalArgumentException
public void setTaxAmount(java.lang.String amount) throws java.lang.IllegalArgumentException
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.
java.lang.IllegalArgumentException
public void setShippingAmount(java.lang.String amount) throws java.lang.IllegalArgumentException
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.
java.lang.IllegalArgumentException
public void setNote(java.lang.String note)
note
- Field used by merchant to record why this credit was issued
to a buyer. Similar to a "memo" field.public void setCurrency(Currency currency) throws java.lang.IllegalArgumentException
currency
- Currency code. Default: USD. The only valid currencies
are AUD, CAD, EUR, GBP, JPY, and USD.
java.lang.IllegalArgumentException
public void setPayerName(PayerName payerName)
payerName
- 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 |