Package paypal.payflow
Class AdviceDetail
java.lang.Object
paypal.payflow.AdviceDetail
This class holds the advice detail related information.
Detail of a charge where *n* is a value from 1 - 5. Use for additional breakdown of the amount.
For example ADDLAMT1=1 is the amount for the additional amount for advice detail item 1 and is equal to 1,
Following example shows how to use advice detail.
................. //inv is the Invoice object. ................. // Create a advice detail item. AdviceDetail addDetail1 = new AdviceDetail(); addDetail1.setAddLAmt("1"); addDetail1.setAddLAmtType("1"); inv.addAdviceDetailItem(addDetail1);Advuc AdviceDetail addDetail2 = new AdviceDetail(); addDetail2.setAddLAmt("2"); addDetail2.setAddLAmtType("2"); inv.addAdviceDetailItem(addDetail2); ..................
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidgenerateRequest(int Index) Gets the advice detail amountGets the advice detail amount typeGets the advice detail number.protected Contextprotected StringBufferGets the Requestbuffer used for creating the actual request string.voidsetAddLAmt(String addLAmt) Sets the advice detail amountvoidsetAddLAmtType(String addLAmtType) Sets the advice detail amount typevoidsetAdviceDetailNumber(String adviceDetailNumber) Sets the advice detail number.protected voidsetContext(Context context) protected voidsetRequestBuffer(StringBuffer value) sets the StringBuffer to hold the request string.
-
Constructor Details
-
AdviceDetail
public AdviceDetail()
-
-
Method Details
-
getAddLAmt
Gets the advice detail amount- Returns:
- addLAmt
Maps to Payflow Parameter: ADDLAMT
-
setAddLAmt
Sets the advice detail amount- Parameters:
addLAmt- StringMaps to Payflow Parameter: ADDLAMT
-
getAddLAmtType
Gets the advice detail amount type- Returns:
- addLAmtType
Maps to Payflow Parameter: ADDLAMTTYPE
-
setAddLAmtType
Sets the advice detail amount type- Parameters:
addLAmtType- StringMaps to Payflow Parameter: ADDLAMTTYPE
-
getAdviceDetailNumber
Gets the advice detail number.- Returns:
- advice detail number.
Maps to Payflow Parameter: ADDLXXXXXn
-
setAdviceDetailNumber
Sets the advice detail number.- Parameters:
adviceDetailNumber- StringMaps to Payflow Parameter: ADDLXXXXXn
-
generateRequest
protected void generateRequest(int Index) -
getContext
-
setContext
-
getRequestBuffer
Gets the Requestbuffer used for creating the actual request string.- Returns:
- mRequestBuffer StringBuffer
-
setRequestBuffer
sets the StringBuffer to hold the request string.- Parameters:
value- StringBuffer
-
generateRequest
protected void generateRequest()
-