Class AdviceDetail

java.lang.Object
paypal.payflow.AdviceDetail

public class AdviceDetail extends Object
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 Details

    • AdviceDetail

      public AdviceDetail()
  • Method Details

    • getAddLAmt

      public String getAddLAmt()
      Gets the advice detail amount
      Returns:
      addLAmt

      Maps to Payflow Parameter: ADDLAMT

    • setAddLAmt

      public void setAddLAmt(String addLAmt)
      Sets the advice detail amount
      Parameters:
      addLAmt - String

      Maps to Payflow Parameter: ADDLAMT

    • getAddLAmtType

      public String getAddLAmtType()
      Gets the advice detail amount type
      Returns:
      addLAmtType

      Maps to Payflow Parameter: ADDLAMTTYPE

    • setAddLAmtType

      public void setAddLAmtType(String addLAmtType)
      Sets the advice detail amount type
      Parameters:
      addLAmtType - String

      Maps to Payflow Parameter: ADDLAMTTYPE

    • getAdviceDetailNumber

      public String getAdviceDetailNumber()
      Gets the advice detail number.
      Returns:
      advice detail number.

      Maps to Payflow Parameter: ADDLXXXXXn

    • setAdviceDetailNumber

      public void setAdviceDetailNumber(String adviceDetailNumber)
      Sets the advice detail number.
      Parameters:
      adviceDetailNumber - String

      Maps to Payflow Parameter: ADDLXXXXXn

    • generateRequest

      protected void generateRequest(int Index)
    • getContext

      protected Context getContext()
    • setContext

      protected void setContext(Context context)
    • getRequestBuffer

      protected StringBuffer getRequestBuffer()
      Gets the Requestbuffer used for creating the actual request string.
      Returns:
      mRequestBuffer StringBuffer
    • setRequestBuffer

      protected void setRequestBuffer(StringBuffer value)
      sets the StringBuffer to hold the request string.
      Parameters:
      value - StringBuffer
    • generateRequest

      protected void generateRequest()