From 4a823c35fe191a367ae7f219da9b52dd48a70dd0 Mon Sep 17 00:00:00 2001
From: Todd Sieber
ECHODATA
VATINVNUM
MISCDATA
SECURETOKEN
+ SCAEXEMPTION
+ L_CARRIERSERVICELEVELCODE
L_EXTAMT
+ TXID
PAR
+ SHIPTOCOUNTRY
CREATIONDATE
+ LASTCHANGED
+ RPSTATE
+ NEXTPAYMENTNUM
+ FREQUENCY
+ CURRENCY
+ CCTRAN_POSDATA
PARID
+ SCAEXEMPTION
+ /// CITDATE
+ /// VMaid
+ /// PAR
+ /// CREATIONDATE
+ /// LASTCHANGED
+ /// RPSTATE
+ /// NEXTPAYMENTNUM
+ /// FREQUENCY
+ /// CURRENCY
+ /// PARID
+ /// + * *
* Following transactions do require invoice object:
*+ *
* ................. * // Create a new Invoice data object with the Amount, Billing Address etc. details. * Invoice inv = new Invoice(); @@ -90,8 +90,10 @@ public class Invoice extends BaseRequestDataObject { private String reportGroup; private ArrayList adviceDetailList; private Devices devices; - private String miscData; - + private String miscData; + private String scaExemption; + private String citDate; + private String vMaid; /** * Constructor.This is a default constructor which does not take any parameters. @@ -113,31 +115,31 @@ public Invoice() { * For example L_QTY0=1 is the quantity for line item 0 and is equal to 1, * with n starting at 0
*Following example shows how to use line item.
- *- * ................. - * //inv is the Invoice object. - * ................. - * // Create a line item. - * LineItem item = new LineItem(); - * // Add first item. - * Currency lnamt = new Currency(new Double(8.95), "USD"); - * item.setAmt(lnamt); - * item.setDesc("Line 1"); - * item.setQty(1); - * item.setItemNumber("1"); - * // Add line item to invoice. - * inv.addLineItem(item); - * // Create a line item. - * LineItem item1 = new LineItem(); - * // Add second item. - * Currency lnamt1 = new Currency(new Double(5.25), "USD"); - * item1.setAmt(lnamt); - * item1.setDesc("Line 2"); - * item1.setQty(2); - * item1.setItemNumber("2"); - * // Add line item to invoice. - * inv.addLineItem(item1); - * ................. + *
+ * ................. + * //inv is the Invoice object. + * ................. + * // Create a line item. + * LineItem item = new LineItem(); + * // Add first item. + * Currency lnamt = new Currency(new Double(8.95), "USD"); + * item.setAmt(lnamt); + * item.setDesc("Line 1"); + * item.setQty(1); + * item.setItemNumber("1"); + * // Add line item to invoice. + * inv.addLineItem(item); + * // Create a line item. + * LineItem item1 = new LineItem(); + * // Add second item. + * Currency lnamt1 = new Currency(new Double(5.25), "USD"); + * item1.setAmt(lnamt); + * item1.setDesc("Line 2"); + * item1.setQty(2); + * item1.setItemNumber("2"); + * // Add line item to invoice. + * inv.addLineItem(item1); + * ................. */ public void addLineItem(LineItem item) { itemList.add(item); @@ -148,13 +150,13 @@ public void addLineItem(LineItem item) { * * @param index Index of lineitem to be removed. *
Use this method to remove a line item at a particular index in the purchase order.
- *- * ................. - * // Inv is the Invoice object - * ................. - * // Remove item at index 0 - * inv.removeLineItem(0); - * ................. + *
+ * ................. + * // Inv is the Invoice object + * ................. + * // Remove item at index 0 + * inv.removeLineItem(0); + * ................. */ public void removeLineItem(int index) { itemList.remove(index); @@ -165,7 +167,7 @@ public void removeLineItem(int index) { *
Use this method to clear all the * line items added to the purchase order.
* - *+ *
* ................. * // inv is the Invoice object * ................. @@ -178,7 +180,6 @@ public void removeAllLineItems() { } /** - * * */ private void generateItemRequest() { @@ -196,22 +197,22 @@ private void generateItemRequest() { * Adds a advice detail item to the list. * * @param item AdviceDetail 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); - * // To add another item, just do the same as above but increment the value of AddDetail to 2: AddDetail2 - * .................. + *
+ * 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); + * // To add another item, just do the same as above but increment the value of AddDetail to 2: AddDetail2 + * .................. */ public void addAdviceDetailItem(AdviceDetail item) { adviceDetailList.add(item); @@ -221,13 +222,13 @@ public void addAdviceDetailItem(AdviceDetail item) { * Removes a advice detail item from the list. * * @param index Index of the AdviceDetailItem to be removed. - *
Use this method to remove a advice detail item at a particular index in the purchase order.
- * ................. - * // Inv is the Invoice object - * ................. - * // Remove item at index 2 - * inv.removeAdviceDetailItem(2); - * ................. + *Use this method to remove a advice detail item at a particular index in the purchase order.
+ * ................. + * // Inv is the Invoice object + * ................. + * // Remove item at index 2 + * inv.removeAdviceDetailItem(2); + * ................. */ public void removeAdviceDetailItem(int index) { adviceDetailList.remove(index); @@ -309,7 +310,10 @@ protected void generateRequest() { super.getRequestBuffer().append(PayflowUtility.appendToRequest(PayflowConstants.PARAM_VATINVNUM, vatInvNum)); super.getRequestBuffer().append(PayflowUtility.appendToRequest(PayflowConstants.PARAM_VATTAXRATE, vatTaxRate)); super.getRequestBuffer().append(PayflowUtility.appendToRequest(PayflowConstants.PARAM_REPORTGROUP, reportGroup)); - super.getRequestBuffer().append(PayflowUtility.appendToRequest(PayflowConstants.PARAM_MISCDATA, miscData)); + super.getRequestBuffer().append(PayflowUtility.appendToRequest(PayflowConstants.PARAM_MISCDATA, miscData)); + super.getRequestBuffer().append(PayflowUtility.appendToRequest(PayflowConstants.PARAM_SCAEXEMPTION, scaExemption)); + super.getRequestBuffer().append(PayflowUtility.appendToRequest(PayflowConstants.PARAM_CITDATE, citDate)); + super.getRequestBuffer().append(PayflowUtility.appendToRequest(PayflowConstants.PARAM_VMAID, vMaid)); if (billTo != null) { @@ -411,7 +415,7 @@ private void initErrorContext() { * instead of 1,199.95. * * @return Currency - *Maps to Payflow Parameter: ALTTAXAMT
+ *Maps to Payflow Parameter: ALTTAXAMT
*/ public Currency getAltTaxAmt() { return altTaxAmt; @@ -425,7 +429,7 @@ public Currency getAltTaxAmt() { * instead of 1,199.95. * * @param altTaxAmt Currency - *Maps to Payflow Parameter: ALTTAXAMT
+ *Maps to Payflow Parameter: ALTTAXAMT
*/ public void setAltTaxAmt(Currency altTaxAmt) { this.altTaxAmt = altTaxAmt; @@ -441,7 +445,7 @@ public void setAltTaxAmt(Currency altTaxAmt) { * provider may stipulate a maximum amount. * * @return Currency - *Maps to Payflow Parameter: AMT
+ *Maps to Payflow Parameter: AMT
* ................. * // inv is the Invoice object * ................. @@ -470,20 +474,20 @@ public Currency getAmt() { * provider may stipulate a maximum amount. * * @param amt Currency - *Maps to Payflow Parameter: AMT
- * ................. - * // inv is the Invoice object - * ................. - * // Set the Amount for the invoice. - * // A valid amount is a two decimal value. - * Currency amt = new Currency(new decimal(25.12)) - * //For values which have more than two decimal places - * Currency amt = new Currency(new decimal(25.1214)); - * amt.setNoOfDecimalDigits (2); - * //If the NoOfDecimalDigits property is used then it is mandatory to set one of the following properties to true. - * amt.setRound (true); - * amt.setTruncate (true); - * inv.setAmt (Amt); + *Maps to Payflow Parameter: AMT
+ * ................. + * // inv is the Invoice object + * ................. + * // Set the Amount for the invoice. + * // A valid amount is a two decimal value. + * Currency amt = new Currency(new decimal(25.12)) + * //For values which have more than two decimal places + * Currency amt = new Currency(new decimal(25.1214)); + * amt.setNoOfDecimalDigits (2); + * //If the NoOfDecimalDigits property is used then it is mandatory to set one of the following properties to true. + * amt.setRound (true); + * amt.setTruncate (true); + * inv.setAmt (Amt); */ public void setAmt(Currency amt) { this.amt = amt; @@ -506,16 +510,16 @@ public BillTo getBillTo() { * addresses of the purchase order. * * @param billTo BillTo - *- * ................. - * // inv is the Invoice object - * ................. - * // Set the Billing Address details. - * BillTo bill = New BillTo(); - * bill.setBillToStreet("123 Main St."); - * bill.setBillToZip("12345"); - * inv.setBillTo (bill); - * ................. + *
+ * ................. + * // inv is the Invoice object + * ................. + * // Set the Billing Address details. + * BillTo bill = New BillTo(); + * bill.setBillToStreet("123 Main St."); + * bill.setBillToZip("12345"); + * inv.setBillTo (bill); + * ................. */ public void setBillTo(BillTo billTo) { this.billTo = billTo; @@ -538,16 +542,16 @@ public BrowserInfo getBrowserInfo() { * related information of the purchase order.
* * @param browserInfo BrowserInfo - *- * ................. - * // inv is the Invoice object - * ................. - * // Set the Browser Info details. - * BrowserInfo browser = New BrowserInfo(); - * browser.setBrowserCountryCode ("USA"); - * browser.setBrowserUserAgent ("IE 6.0"); - * inv.setBrowserInfo (browser); - * ................. + *
+ * ................. + * // inv is the Invoice object + * ................. + * // Set the Browser Info details. + * BrowserInfo browser = New BrowserInfo(); + * browser.setBrowserCountryCode ("USA"); + * browser.setBrowserUserAgent ("IE 6.0"); + * inv.setBrowserInfo (browser); + * ................. */ public void setBrowserInfo(BrowserInfo browserInfo) { this.browserInfo = browserInfo; @@ -559,7 +563,7 @@ public void setBrowserInfo(BrowserInfo browserInfo) { * for the purchase order.
* * @return String - *Maps to Payflow Parameter: COMMCODE
+ *Maps to Payflow Parameter: COMMCODE
*/ public String getCommCode() { return commCode; @@ -571,7 +575,7 @@ public String getCommCode() { * for the purchase order. * * @param commCode String - *Maps to Payflow Parameter: COMMCODE
+ *Maps to Payflow Parameter: COMMCODE
*/ public void setCommCode(String commCode) { this.commCode = commCode; @@ -583,7 +587,7 @@ public void setCommCode(String commCode) { * purposes. * * @return String - *Maps to Payflow Parameter: COMMENT1
+ *Maps to Payflow Parameter: COMMENT1
*/ public String getComment1() { return comment1; @@ -595,7 +599,7 @@ public String getComment1() { * purposes. * * @param comment1 String - *Maps to Payflow Parameter: COMMENT1
+ *Maps to Payflow Parameter: COMMENT1
*/ public void setComment1(String comment1) { this.comment1 = comment1; @@ -607,7 +611,7 @@ public void setComment1(String comment1) { * purposes. * * @return String - *Maps to Payflow Parameter: COMMENT2
+ *Maps to Payflow Parameter: COMMENT2
*/ public String getComment2() { return comment2; @@ -619,7 +623,7 @@ public String getComment2() { * purposes. * * @param comment2 String - *Maps to Payflow Parameter: COMMENT2
+ *Maps to Payflow Parameter: COMMENT2
*/ public void setComment2(String comment2) { this.comment2 = comment2; @@ -642,16 +646,16 @@ public CustomerInfo getCustomerInfo() { * related information of the purchase order. * * @param customerInfo CustomerInfo - *- * ................. - * // inv is the Invoice object - * ................. - * // Set the Customer Info details. - * CustomerInfo cust = New CustomerInfo(); - * cust.setCustCode ("CustXXXXX"); - * cust.setCustIP ("255.255.255.255"); - * inv.setCustomerInfo (Cust); - * ................. + *
+ * ................. + * // inv is the Invoice object + * ................. + * // Set the Customer Info details. + * CustomerInfo cust = New CustomerInfo(); + * cust.setCustCode ("CustXXXXX"); + * cust.setCustIP ("255.255.255.255"); + * inv.setCustomerInfo (Cust); + * ................. */ public void setCustomerInfo(CustomerInfo customerInfo) { this.customerInfo = customerInfo; @@ -663,16 +667,16 @@ public void setCustomerInfo(CustomerInfo customerInfo) { * related information of the purchase order.
* * @param merchantInfo MerchantInfo - *- * ................. - * // inv is the Invoice object - * ................. - * // Set the Merchant Info details. - * MerchantInfo merchant = new MerchantInfo(); - * merchant.setMerchantName("MerchantXXXXX"); - * merchant.setMerchantCity("Somewhere"); - * inv.setMerchantInfo (merchant); - * ................. + *
+ * ................. + * // inv is the Invoice object + * ................. + * // Set the Merchant Info details. + * MerchantInfo merchant = new MerchantInfo(); + * merchant.setMerchantName("MerchantXXXXX"); + * merchant.setMerchantCity("Somewhere"); + * inv.setMerchantInfo (merchant); + * ................. */ public void setMerchantInfo(MerchantInfo merchantInfo) { this.merchantInfo = merchantInfo; @@ -683,16 +687,16 @@ public void setMerchantInfo(MerchantInfo merchantInfo) { *
Use this method to set the devices the cardholder used.
* * @param devices Devices - *- * ................. - * // inv is the Invoice object - * ................. - * // Set the Devices details. - * Devices devices = new Devices(); - * devices.setCatType("3"); - * devices.setContactLess("RFD"); - * inv.set - * ................. + *
+ * ................. + * // inv is the Invoice object + * ................. + * // Set the Devices details. + * Devices devices = new Devices(); + * devices.setCatType("3"); + * devices.setContactLess("RFD"); + * inv.set + * ................. */ public void setDevices(Devices devices) { this.devices = devices; @@ -714,16 +718,16 @@ public UserItem getUserItem() { *
Use this method to set the User Items.
* * @param userItem UserItem - *- * ................. - * // inv is the Invoice object - * ................. - * // Set the User Item details. - * UserItem nUser = new UserItem(); - * nUser.setUserItem1("TUSER1"); - * nUser.setUserItem2("TUSER2"); - * inv.setUserItem(nUser); - * ................. + *
+ * ................. + * // inv is the Invoice object + * ................. + * // Set the User Item details. + * UserItem nUser = new UserItem(); + * nUser.setUserItem1("TUSER1"); + * nUser.setUserItem2("TUSER2"); + * inv.setUserItem(nUser); + * ................. */ public void setUserItem(UserItem userItem) { this.userItem = userItem; @@ -740,7 +744,7 @@ public void setUserItem(UserItem userItem) { * submitting any transaction, including retries.
* * @return String - *Maps to Payflow Parameter: CUSTREF
+ *Maps to Payflow Parameter: CUSTREF
*/ public String getCustRef() { return custRef; @@ -757,7 +761,7 @@ public String getCustRef() { * submitting any transaction, including retries. * * @param custRef String - *Maps to Payflow Parameter: CUSTREF
+ *Maps to Payflow Parameter: CUSTREF
*/ public void setCustRef(String custRef) { this.custRef = custRef; @@ -768,7 +772,7 @@ public void setCustRef(String custRef) { *General description of the transaction.
* * @return String - *Maps to Payflow Parameter: DESC
+ *Maps to Payflow Parameter: DESC
*/ public String getDesc() { return desc; @@ -779,7 +783,7 @@ public String getDesc() { *General description of the transaction.
* * @param desc String - *Maps to Payflow Parameter: DESC
+ *Maps to Payflow Parameter: DESC
*/ public void setDesc(String desc) { this.desc = desc; @@ -791,7 +795,7 @@ public void setDesc(String desc) { * the charge. * * @return String - *Maps to Payflow Parameter: DESC1
+ *Maps to Payflow Parameter: DESC1
*/ public String getDesc1() { return desc1; @@ -803,7 +807,7 @@ public String getDesc1() { * the charge. * * @param desc1 String - *Maps to Payflow Parameter: DESC1
+ *Maps to Payflow Parameter: DESC1
*/ public void setDesc1(String desc1) { this.desc1 = desc1; @@ -815,7 +819,7 @@ public void setDesc1(String desc1) { * the charge. * * @return String - *Maps to Payflow Parameter: DESC2
+ *Maps to Payflow Parameter: DESC2
*/ public String getDesc2() { return desc2; @@ -827,7 +831,7 @@ public String getDesc2() { * the charge. * * @param desc2 String - *Maps to Payflow Parameter: DESC2
+ *Maps to Payflow Parameter: DESC2
*/ public void setDesc2(String desc2) { this.desc2 = desc2; @@ -839,7 +843,7 @@ public void setDesc2(String desc2) { * the charge. * * @return String - *Maps to Payflow Parameter: DESC3
+ *Maps to Payflow Parameter: DESC3
*/ public String getDesc3() { return desc3; @@ -851,7 +855,7 @@ public String getDesc3() { * the charge. * * @param desc3 String - *Maps to Payflow Parameter: DESC3
+ *Maps to Payflow Parameter: DESC3
*/ public void setDesc3(String desc3) { this.desc3 = desc3; @@ -863,7 +867,7 @@ public void setDesc3(String desc3) { * the charge. * * @return String - *Maps to Payflow Parameter: DESC4
+ *Maps to Payflow Parameter: DESC4
*/ public String getDesc4() { return desc4; @@ -875,7 +879,7 @@ public String getDesc4() { * the charge. * * @param desc4 String - *Maps to Payflow Parameter: DESC4
+ *Maps to Payflow Parameter: DESC4
*/ public void setDesc4(String desc4) { this.desc4 = desc4; @@ -889,7 +893,7 @@ public void setDesc4(String desc4) { * instead of 1,199.95. * * @return Currency - *Maps to Payflow Parameter: DISCOUNT
+ *Maps to Payflow Parameter: DISCOUNT
*/ public Currency getDiscount() { return discount; @@ -903,7 +907,7 @@ public Currency getDiscount() { * instead of 1,199.95. * * @param discount Currency - *Maps to Payflow Parameter: DISCOUNT
+ *Maps to Payflow Parameter: DISCOUNT
*/ public void setDiscount(Currency discount) { this.discount = discount; @@ -918,7 +922,7 @@ public void setDiscount(Currency discount) { * instead of 1,199.95. * * @return Currency - *Maps to Payflow Parameter: DUTYAMT
+ *Maps to Payflow Parameter: DUTYAMT
*/ public Currency getDutyAmt() { return dutyAmt; @@ -933,7 +937,7 @@ public Currency getDutyAmt() { * instead of 1,199.95. * * @param dutyAmt Currency - *Maps to Payflow Parameter: DUTYAMT
+ *Maps to Payflow Parameter: DUTYAMT
*/ public void setDutyAmt(Currency dutyAmt) { this.dutyAmt = dutyAmt; @@ -954,7 +958,7 @@ public void setDutyAmt(Currency dutyAmt) { *yyyy - Year, mm - Month dd - Day, hh - Hours, mm - Minutes ss - Seconds.
* * @return String - *Maps to Payflow Parameter: ENDTIME
+ *Maps to Payflow Parameter: ENDTIME
*/ public String getEndTime() { return endTime; @@ -975,7 +979,7 @@ public String getEndTime() { *yyyy - Year, mm - Month dd - Day, hh - Hours, mm - Minutes ss - Seconds.
* * @param endTime String - *Maps to Payflow Parameter: ENDTIME
+ *Maps to Payflow Parameter: ENDTIME
*/ public void setEndTime(String endTime) { this.endTime = endTime; @@ -989,7 +993,7 @@ public void setEndTime(String endTime) { * instead of 1,199.95. * * @return Currency - *Maps to Payflow Parameter: FREIGHTAMT
+ *Maps to Payflow Parameter: FREIGHTAMT
*/ public Currency getFreightAmt() { return freightAmt; @@ -1003,7 +1007,7 @@ public Currency getFreightAmt() { * instead of 1,199.95. * * @param freightAmt Currency - *Maps to Payflow Parameter: FREIGHTAMT
+ *Maps to Payflow Parameter: FREIGHTAMT
*/ public void setFreightAmt(Currency freightAmt) { this.freightAmt = freightAmt; @@ -1017,7 +1021,7 @@ public void setFreightAmt(Currency freightAmt) { * instead of 1,199.95. * * @return Currency - *Maps to Payflow Parameter: HANDLINGAMT
+ *Maps to Payflow Parameter: HANDLINGAMT
*/ public Currency getHandlingAmt() { return handlingAmt; @@ -1031,7 +1035,7 @@ public Currency getHandlingAmt() { * instead of 1,199.95. * * @param handlingAmt Currency - *Maps to Payflow Parameter: HANDLINGAMT
+ *Maps to Payflow Parameter: HANDLINGAMT
*/ public void setHandlingAmt(Currency handlingAmt) { this.handlingAmt = handlingAmt; @@ -1046,7 +1050,7 @@ public void setHandlingAmt(Currency handlingAmt) { * appear on the merchant's bank reconciliation statement. * * @return String - *Maps to Payflow Parameter: INVNUM
+ *Maps to Payflow Parameter: INVNUM
*/ public String getInvNum() { return invNum; @@ -1061,7 +1065,7 @@ public String getInvNum() { * appear on the merchant's bank reconciliation statement. * * @param invNum String - *Maps to Payflow Parameter: INVNUM
+ *Maps to Payflow Parameter: INVNUM
*/ public void setInvNum(String invNum) { this.invNum = invNum; @@ -1074,7 +1078,7 @@ public void setInvNum(String invNum) { *yyyy - Year, mm - Month, dd - Day.
* * @return String - *Maps to Payflow Parameter: INVOICEDATE
+ *Maps to Payflow Parameter: INVOICEDATE
*/ public String getInvoiceDate() { return invoiceDate; @@ -1087,7 +1091,7 @@ public String getInvoiceDate() { * yyyy - Year, mm - Month, dd - Day. * * @param invoiceDate String - *Maps to Payflow Parameter: INVOICEDATE
+ *Maps to Payflow Parameter: INVOICEDATE
*/ public void setInvoiceDate(String invoiceDate) { this.invoiceDate = invoiceDate; @@ -1102,7 +1106,7 @@ public void setInvoiceDate(String invoiceDate) { * instead of 1,199.95. * * @return Currency - *Maps to Payflow Parameter: LOCALTAXAMT
+ *Maps to Payflow Parameter: LOCALTAXAMT
*/ public Currency getLocalTaxAmt() { return localTaxAmt; @@ -1116,7 +1120,7 @@ public Currency getLocalTaxAmt() { * instead of 1,199.95. * * @param localTaxAmt Currency - *Maps to Payflow Parameter: LOCALTAXAMT
+ *Maps to Payflow Parameter: LOCALTAXAMT
*/ public void setLocalTaxAmt(Currency localTaxAmt) { this.localTaxAmt = localTaxAmt; @@ -1130,7 +1134,7 @@ public void setLocalTaxAmt(Currency localTaxAmt) { * instead of 1,199.95. * * @return Currency - *Maps to Payflow Parameter: NATIONALTAXAMT
+ *Maps to Payflow Parameter: NATIONALTAXAMT
*/ public Currency getNationalTaxAmt() { return nationalTaxAmt; @@ -1144,7 +1148,7 @@ public Currency getNationalTaxAmt() { * instead of 1,199.95. * * @param nationalTaxAmt Currency - *Maps to Payflow Parameter: NATIONALTAXAMT
+ *Maps to Payflow Parameter: NATIONALTAXAMT
*/ public void setNationalTaxAmt(Currency nationalTaxAmt) { this.nationalTaxAmt = nationalTaxAmt; @@ -1157,7 +1161,7 @@ public void setNationalTaxAmt(Currency nationalTaxAmt) { * mm - Month, dd - Day, yy - Year. * * @return String - *Maps to Payflow Parameter: ORDERDATE
+ *Maps to Payflow Parameter: ORDERDATE
*/ public String getOrderDate() { return orderDate; @@ -1170,7 +1174,7 @@ public String getOrderDate() { * mm - Month, dd - Day, yy - Year. * * @param orderDate String - *Maps to Payflow Parameter: ORDERDATE
+ *Maps to Payflow Parameter: ORDERDATE
*/ public void setOrderDate(String orderDate) { this.orderDate = orderDate; @@ -1180,7 +1184,7 @@ public void setOrderDate(String orderDate) { * Gets the Order Time * * @return String - *Maps to Payflow Parameter: ORDERTIME
+ *Maps to Payflow Parameter: ORDERTIME
*/ public String getOrderTime() { return orderTime; @@ -1190,7 +1194,7 @@ public String getOrderTime() { * Sets the Order Time * * @param orderTime String - *Maps to Payflow Parameter: ORDERTIME
+ *Maps to Payflow Parameter: ORDERTIME
*/ public void setOrderTime(String orderTime) { this.orderTime = orderTime; @@ -1201,7 +1205,7 @@ public void setOrderTime(String orderTime) { *Purchase Order Number / Merchant related data.
* * @return String - *Maps to Payflow Parameter: PONUM
+ *Maps to Payflow Parameter: PONUM
*/ public String getPoNum() { return poNum; @@ -1212,7 +1216,7 @@ public String getPoNum() { *Purchase Order Number / Merchant related data.
* * @param poNum String - *Maps to Payflow Parameter: PONUM
+ *Maps to Payflow Parameter: PONUM
*/ public void setPoNum(String poNum) { this.poNum = poNum; @@ -1223,7 +1227,7 @@ public void setPoNum(String poNum) { *Transaction ID / Merchant related data.
* * @return String - *Maps to Payflow Parameter: TRANSACTIONID
+ *Maps to Payflow Parameter: TRANSACTIONID
*/ public String getTransactionId() { return transactionId; @@ -1234,7 +1238,7 @@ public String getTransactionId() { *Transaction Id / Merchant related data.
* * @param transactionId String - *Maps to Payflow Parameter: TRANSACTIONID
+ *Maps to Payflow Parameter: TRANSACTIONID
*/ public void setTransactionId(String transactionId) { this.transactionId = transactionId; @@ -1245,7 +1249,7 @@ public void setTransactionId(String transactionId) { *Used to echo data back in response.
* * @return String - *Maps to Payflow Parameter: ECHODATA
+ *Maps to Payflow Parameter: ECHODATA
*/ public String getEchoData() { return echoData; @@ -1258,7 +1262,7 @@ public String getEchoData() { * will be returned in the response * * @param echoData String - *Maps to Payflow Parameter: ECHODATA
+ *Maps to Payflow Parameter: ECHODATA
*/ public void setEchoData(String echoData) { this.echoData = echoData; @@ -1269,7 +1273,7 @@ public void setEchoData(String echoData) { *Used for Order ID
* * @return orderID String - *Maps to Payflow Parameter: ORDERID
+ *Maps to Payflow Parameter: ORDERID
*/ public String getOrderId() { return orderId; @@ -1291,9 +1295,9 @@ public String getOrderId() { * as your only means to check for duplicate transactions. * * @param orderId String - *Maps to Payflow Parameter: ORDERID
+ *Maps to Payflow Parameter: ORDERID
*/ - public void setOrderId (String orderId) { + public void setOrderId(String orderId) { this.orderId = orderId; } @@ -1302,7 +1306,7 @@ public void setOrderId (String orderId) { *Is a recurring transaction? Y or N.
* * @return String - *Maps to Payflow Parameter: RECURRING
+ *Maps to Payflow Parameter: RECURRING
*/ public String getRecurring() { return recurring; @@ -1313,7 +1317,7 @@ public String getRecurring() { *Is a recurring transaction? Y or N.
* * @param recurring String - *Maps to Payflow Parameter: RECURRING
+ *Maps to Payflow Parameter: RECURRING
*/ public void setRecurring(String recurring) { this.recurring = recurring; @@ -1327,7 +1331,7 @@ public void setRecurring(String recurring) { * instead of 1,199.95. * * @return Currency - *Maps to Payflow Parameter: SHIPPINGAMT
+ *Maps to Payflow Parameter: SHIPPINGAMT
*/ public Currency getShippingAmt() { return shippingAmt; @@ -1341,7 +1345,7 @@ public Currency getShippingAmt() { * instead of 1,199.95. * * @param shippingAmt Currency - *Maps to Payflow Parameter: SHIPPINGAMT
+ *Maps to Payflow Parameter: SHIPPINGAMT
*/ public void setShippingAmt(Currency shippingAmt) { this.shippingAmt = shippingAmt; @@ -1349,8 +1353,8 @@ public void setShippingAmt(Currency shippingAmt) { /** * @return ShipTo - *Use this method to get the shipping - * addresses of the purchase order.
+ *Use this method to get the shipping + * addresses of the purchase order.
*/ public ShipTo getShipTo() { return shipTo; @@ -1359,15 +1363,15 @@ public ShipTo getShipTo() { /** * @param shipToUse this property to set the shipping * addresses of the purchase order.
- * ................. - * // inv is the Invoice object - * ................. - * // Set the Shipping Address details. - * ShipTo ship = New ShipTo(); - * ship.setShipToStreet ("685A E. Middlefield Rd."); - * ship.setShipToZip ("94043"); - * inv.setShipTo(ship); - * ................. + * ................. + * // inv is the Invoice object + * ................. + * // Set the Shipping Address details. + * ShipTo ship = New ShipTo(); + * ship.setShipToStreet ("685A E. Middlefield Rd."); + * ship.setShipToZip ("94043"); + * inv.setShipTo(ship); + * ................. */ public void setShipTo(ShipTo shipTo) { this.shipTo = shipTo; @@ -1386,7 +1390,7 @@ public void setShipTo(ShipTo shipTo) { * yyyy - Year, mm - Month dd - Day, hh - Hours, mm - Minutes ss - Seconds. * * @return startTime String - *Maps to Payflow Parameter: STARTTIME
+ *Maps to Payflow Parameter: STARTTIME
*/ public String getStartTime() { return startTime; @@ -1405,7 +1409,7 @@ public String getStartTime() { *yyyy - Year, mm - Month dd - Day, hh - Hours, mm - Minutes ss - Seconds.
* * @param startTime String - *Maps to Payflow Parameter: STARTTIME
+ *Maps to Payflow Parameter: STARTTIME
*/ public void setStartTime(String startTime) { this.startTime = startTime; @@ -1419,7 +1423,7 @@ public void setStartTime(String startTime) { * instead of 1,199.95. * * @return taxAmt Currency - *Maps to Payflow Parameter: TAXAMT
+ *Maps to Payflow Parameter: TAXAMT
*/ public Currency getTaxAmt() { return taxAmt; @@ -1433,7 +1437,7 @@ public Currency getTaxAmt() { * instead of 1,199.95. * * @param taxAmt Currency - *Maps to Payflow Parameter: TAXAMT
+ *Maps to Payflow Parameter: TAXAMT
*/ public void setTaxAmt(Currency taxAmt) { this.taxAmt = taxAmt; @@ -1444,7 +1448,7 @@ public void setTaxAmt(Currency taxAmt) { *Is the customer tax exempt? Y or N
* * @return taxExempt String - *Maps to Payflow Parameter: TAXEXEMPT
+ *Maps to Payflow Parameter: TAXEXEMPT
*/ public String getTaxExempt() { return taxExempt; @@ -1455,7 +1459,7 @@ public String getTaxExempt() { *Is the customer tax exempt? Y or N
* * @param taxExempt String - *Maps to Payflow Parameter: TAXEXEMPT
+ *Maps to Payflow Parameter: TAXEXEMPT
*/ public void setTaxExempt(String taxExempt) { this.taxExempt = taxExempt; @@ -1465,7 +1469,7 @@ public void setTaxExempt(String taxExempt) { * Gets the VAT registration number * * @return vatRegNum String - *Maps to Payflow Parameter: VATREGNUM
+ *Maps to Payflow Parameter: VATREGNUM
*/ public String getVatRegNum() { return vatRegNum; @@ -1475,7 +1479,7 @@ public String getVatRegNum() { * Sets the VAT registration number * * @param vatRegNum String - *Maps to Payflow Parameter: VATREGNUM
+ *Maps to Payflow Parameter: VATREGNUM
*/ public void setVatRegNum(String vatRegNum) { this.vatRegNum = vatRegNum; @@ -1489,7 +1493,7 @@ public void setVatRegNum(String vatRegNum) { * instead of 1,199.95. * * @return vatTaxAmt Currency - *Maps to Payflow Parameter: VATTAXAMT
+ *Maps to Payflow Parameter: VATTAXAMT
*/ public Currency getVatTaxAmt() { return vatTaxAmt; @@ -1503,7 +1507,7 @@ public Currency getVatTaxAmt() { * instead of 1,199.95. * * @param vatTaxAmt Currency - *Maps to Payflow Parameter: VATTAXAMT
+ *Maps to Payflow Parameter: VATTAXAMT
*/ public void setVatTaxAmt(Currency vatTaxAmt) { this.vatTaxAmt = vatTaxAmt; @@ -1513,7 +1517,7 @@ public void setVatTaxAmt(Currency vatTaxAmt) { * Gets the VAT Tax percentage. * * @return vatTaxPercent String - *Maps to Payflow Parameter: VATTAXPERCENT
+ *Maps to Payflow Parameter: VATTAXPERCENT
*/ public String getVatTaxPercent() { return vatTaxPercent; @@ -1523,7 +1527,7 @@ public String getVatTaxPercent() { * Sets the VAT Tax percentage. * * @param vatTaxPercent String - *Maps to Payflow Parameter: VATTAXPERCENT
+ *Maps to Payflow Parameter: VATTAXPERCENT
*/ public void setVatTaxPercent(String vatTaxPercent) { this.vatTaxPercent = vatTaxPercent; @@ -1537,7 +1541,7 @@ public void setVatTaxPercent(String vatTaxPercent) { * instead of 1,199.95. * * @return itemAmt String - *Maps to Payflow Parameter: ITEMAMT
+ *Maps to Payflow Parameter: ITEMAMT
*/ public Currency getItemAmt() { return itemAmt; @@ -1551,7 +1555,7 @@ public Currency getItemAmt() { * instead of 1,199.95. * * @param itemAmt String - *Maps to Payflow Parameter: ITEMAMT
+ *Maps to Payflow Parameter: ITEMAMT
*/ public void setItemAmt(Currency itemAmt) { this.itemAmt = itemAmt; @@ -1561,7 +1565,7 @@ public void setItemAmt(Currency itemAmt) { * Gets the order description for this Invoice * * @return orderDesc String - *Maps to Payflow Parameter: ORDERDESC
+ *Maps to Payflow Parameter: ORDERDESC
*/ public String getOrderDesc() { return orderDesc; @@ -1571,7 +1575,7 @@ public String getOrderDesc() { * Sets the order description for this Invoice * * @param orderDesc String - *Maps to Payflow Parameter: ORDERDESC
+ *Maps to Payflow Parameter: ORDERDESC
*/ public void setOrderDesc(String orderDesc) { this.orderDesc = orderDesc; @@ -1583,7 +1587,7 @@ public void setOrderDesc(String orderDesc) { * F = First occurrence / S = Subsequent occurrence (default) * * @param recurringType String - *Maps to Payflow Parameter: RECURRINGTYPE
+ *Maps to Payflow Parameter: RECURRINGTYPE
*/ public void setRecurringType(String recurringType) { this.recurringType = recurringType; @@ -1593,7 +1597,7 @@ public void setRecurringType(String recurringType) { * Gets the type of the Recurring transaction (UK). * * @return recurringType String - *Maps to Payflow Parameter: RECURRINGTYPE
+ *Maps to Payflow Parameter: RECURRINGTYPE
*/ public String getRecurringType() { return recurringType; @@ -1601,9 +1605,9 @@ public String getRecurringType() { /** * Sets the Customer's IP Address. - * + * * @param custIp String - *Maps to Payflow Parameter: CUSTIP
+ *Maps to Payflow Parameter: CUSTIP
*/ public void setCustIp(String custIp) { this.custIp = custIp; @@ -1613,7 +1617,7 @@ public void setCustIp(String custIp) { * Gets the Customer's IP Address. * * @return custIp String - *Maps to Payflow Parameter: CUSTIP
+ *Maps to Payflow Parameter: CUSTIP
*/ public String getCustIp() { return custIp; @@ -1623,7 +1627,7 @@ public String getCustIp() { * Sets the VAT Invoice Number. * * @param vatInvNum String - *Maps to Payflow Parameter: VATINVNUM
+ *Maps to Payflow Parameter: VATINVNUM
*/ public void setVatInvNum(String vatInvNum) { this.vatInvNum = vatInvNum; @@ -1633,7 +1637,7 @@ public void setVatInvNum(String vatInvNum) { * Gets the VAT Invoice Number. * * @return vatInvNum String - *Maps to Payflow Parameter: VATINVNUM
+ *Maps to Payflow Parameter: VATINVNUM
*/ public String getVatInvNum() { return vatInvNum; @@ -1643,7 +1647,7 @@ public String getVatInvNum() { * Sets the VAT Tax Rate. * * @param vatTaxRate String - *Maps to Payflow Parameter: VATTAXRATE
+ *Maps to Payflow Parameter: VATTAXRATE
*/ public void setVatTaxRate(String vatTaxRate) { this.vatTaxRate = vatTaxRate; @@ -1653,7 +1657,7 @@ public void setVatTaxRate(String vatTaxRate) { * Gets the VAT Tax Rate. * * @return vatTaxRate String - *Maps to Payflow Parameter: VATTAXRATE
+ *Maps to Payflow Parameter: VATTAXRATE
*/ public String getVatTaxRate() { return vatTaxRate; @@ -1662,39 +1666,103 @@ public String getVatTaxRate() { /** * Sets the Report Group. * Category that the transaction is in, for example: coffee mugs. + * * @param reportGroup String - *Maps to Payflow Parameter: REPORTGROUP
+ *Maps to Payflow Parameter: REPORTGROUP
*/ public void setReportGroup(String reportGroup) { this.reportGroup = reportGroup; } + /** * Gets the Report Group. * * @return reportGroup String - *Maps to Payflow Parameter: REPORTGROUP
+ *Maps to Payflow Parameter: REPORTGROUP
*/ public String getReportGroup() { return reportGroup; } - - /** + + /** * Sets the Miscellaneous Data. + * * @param miscData String - *Maps to Payflow Parameter: MISCDATA
+ *Maps to Payflow Parameter: MISCDATA
*/ public void setMiscData(String miscData) { this.miscData = miscData; } + /** * Gets the Miscellaneous Data. * * @return miscData String - *Maps to Payflow Parameter: MISCDATA
+ *Maps to Payflow Parameter: MISCDATA
*/ public String getMiscData() { return miscData; } + + /** + * Sets the SCAExemption. + * + * @param scaExemption String + *Maps to Payflow Parameter: SCAEXEMPTION
+ */ + public void setScaExemption(String scaExemption) { + this.scaExemption = scaExemption; + } + + /** + * Gets the SCAExemption. + * + * @return scaExemption String + *Maps to Payflow Parameter: SCAEXEMPTION
+ */ + public String getScaExemption() { + return scaExemption; + } + + /** + * Sets the CitDate. + * + * @param citDate String + *Maps to Payflow Parameter: CITDATE
+ */ + public void setCitDate(String citDate) { + this.citDate = citDate; + } + + /** + * Gets the CitDate + * + * @return citDate String + *Maps to Payflow Parameter: CITDATE
+ */ + public String getCitDate() { + return citDate; + } + + /** + * Sets the VMaid + * + * @param vMaid String + *Maps to Payflow Parameter: VMAID
+ */ + public void setVMaid(String vMaid) { + this.vMaid = vMaid; + } + + /** + * Gets the VMaid + * + * @return vMaid String + *Maps to Payflow Parameter: VMAID
+ */ + public String getVMaid() { + return vMaid; + } } diff --git a/java/src/sdk/dataobjects/paypal/payflow/PaymentCard.java b/java/src/sdk/dataobjects/paypal/payflow/PaymentCard.java index 71e576c..e9cd212 100644 --- a/java/src/sdk/dataobjects/paypal/payflow/PaymentCard.java +++ b/java/src/sdk/dataobjects/paypal/payflow/PaymentCard.java @@ -29,6 +29,11 @@ abstract class PaymentCard extends PaymentDevice { * Transaction Id for stored credential (card on file). */ private String txId; + /** + * Payment Account Reference + */ + private String par; + /** * Constructor @@ -119,6 +124,19 @@ public void setCardStart(String cardStart) { this.cardStart = cardStart; } + /** + * Gets the cardOnFile + *Used to store credit card (stored credential)
+ * + * @return cardOnFile String + * *+ * Maps to Payflow Parameter : CARDONFILE + *
+ */ + public String getCardOnFile() { + return cardOnFile; + } + /** * Sets the cardOnFile *Used to store credit card (stored credential)
@@ -131,9 +149,22 @@ public void setCardStart(String cardStart) { public void setCardOnFile(String cardOnFile) { this.cardOnFile= cardOnFile; } + + /** + * Gets the TxId + *The transaction Id to reference a stored credential.
+ * + * @return txId String + * *+ * Maps to Payflow Parameter : TXID + *
+ */ + public String getTxId() { + return txId; + } /** * Sets the Transaction Id (stored credential). - *The transaction Id to reference a stored crendential
+ *The transaction Id to reference a stored credential.
* * @param txId String * *@@ -144,6 +175,32 @@ public void setTxId(String txId) { this.txId = txId; } + + /** + * Gets the par + *
unique Primary Account Number (PAN)
+ * + * @return par String + * *+ * Maps to Payflow Parameter : PAR + *
+ */ + public String getParId() { + return par; + } + /** + * Sets the Payment Account Reference. + *A non-financial reference number assigned to each unique Primary Account Number (PAN) and mapped to all its affiliated Payment Tokens.
+ * + * @param par String + * *+ * Maps to Payflow Parameter : PAR + *
+ */ + public void setPar(String par) { + this.par = par; + } + /** * Generates the transaction request. */ @@ -155,5 +212,6 @@ protected void generateRequest() { super.getRequestBuffer().append(PayflowUtility.appendToRequest(PayflowConstants.PARAM_CARDISSUE, cardIssue)); super.getRequestBuffer().append(PayflowUtility.appendToRequest(PayflowConstants.PARAM_CARDONFILE, cardOnFile)); super.getRequestBuffer().append(PayflowUtility.appendToRequest(PayflowConstants.PARAM_TXID, txId)); + super.getRequestBuffer().append(PayflowUtility.appendToRequest(PayflowConstants.PARAM_PAR, par)); } } diff --git a/java/src/sdk/dataobjects/paypal/payflow/RecurringResponse.java b/java/src/sdk/dataobjects/paypal/payflow/RecurringResponse.java index ebfa1f7..95e0077 100644 --- a/java/src/sdk/dataobjects/paypal/payflow/RecurringResponse.java +++ b/java/src/sdk/dataobjects/paypal/payflow/RecurringResponse.java @@ -9,13 +9,13 @@ * the recurring transactions. *Following example shows how to obtain and use the recurring * response. - * - * ................... + *
+ * ................... * // Trans is the recurring transaction. * ................... * // Submit the transaction. * Response resp = trans.SubmitTransaction(); - * *
+ * *
* if (resp != null) * { * // Get the Transaction Response parameters. @@ -25,7 +25,7 @@ * System.out.println("RESULT = " + trxnResponse.Result); * System.out.println("RESPMSG = " + trxnResponse.RespMsg); * } - * *
+ * *
* // Get the Recurring Response parameters. * RecurringResponse recurResponse = resp.getRecurringResponse(); * if (recurResponse != null) @@ -34,7 +34,7 @@ * System.out.println("PROFILEID = " + recurResponse.getProfileId()); * } * } - * *
+ * *
* ................... */ public final class RecurringResponse extends BaseResponseDataObject { @@ -82,13 +82,19 @@ public final class RecurringResponse extends BaseResponseDataObject { private String shipToState; private String shipToZip; private String shipToCountry; + private String creationDate; + private String lastChanged; + private String rpState; + private String nextPaymentNumber; + private String frequency; + private String currency; private Hashtable inquiryParams; /** * Gets the Profile ID of the original profile. * * @return - String - *
Maps to Payflow Parameter: PROFILEID + *
Maps to Payflow Parameter: PROFILEID */ public String getProfileId() { return profileId; @@ -98,7 +104,7 @@ public String getProfileId() { * Gets the Reference number to this particular action request. * * @return - String - *
Maps to Payflow Parameter: RPREF + *
Maps to Payflow Parameter: RPREF */ public String getRpRef() { return rpRef; @@ -108,7 +114,7 @@ public String getRpRef() { * Gets the PNREF of the optional transaction. * * @return - String - *
Maps to Payflow Parameter: TRXPNREF + *
Maps to Payflow Parameter: TRXPNREF */ public String getTrxPNRef() { return trxPNRef; @@ -118,7 +124,7 @@ public String getTrxPNRef() { * Gets the RESULT of the optional transaction. * * @return - String - *
Maps to Payflow Parameter: TRXRESULT + *
Maps to Payflow Parameter: TRXRESULT */ public String getTrxResult() { return trxResult; @@ -128,7 +134,7 @@ public String getTrxResult() { * Gets the RESPMSG of the optional transaction. * * @return - String - *
Maps to Payflow Parameter: TRXRESPMSG + *
Maps to Payflow Parameter: TRXRESPMSG */ public String getTrxRespMsg() { return trxRespMsg; @@ -138,7 +144,7 @@ public String getTrxRespMsg() { * Gets the profileName parameter. * * @return - String - *
Maps to Payflow Parameter: PROFILENAME + *
Maps to Payflow Parameter: PROFILENAME */ public String getProfileName() { return profileName; @@ -148,7 +154,7 @@ public String getProfileName() { * Gets the Beginning date for the recurring billing cycle. * * @return - String - *
Maps to Payflow Parameter: START + *
Maps to Payflow Parameter: START */ public String getStart() { return start; @@ -158,7 +164,7 @@ public String getStart() { * Gets the Number of payments to be made over the life of the agreement. * * @return - String - *
Maps to Payflow Parameter: TERM + *
Maps to Payflow Parameter: TERM */ public String getTerm() { return term; @@ -168,7 +174,7 @@ public String getTerm() { * Gets the PayPeriod parameter.Specifies how often the payment occurs. * * @return - String - *
Maps to Payflow Parameter: PAYPERIOD + *
Maps to Payflow Parameter: PAYPERIOD */ public String getPayPeriod() { return payPeriod; @@ -178,7 +184,7 @@ public String getPayPeriod() { * Gets the Current status of the profile. * * @return - String - *
Maps to Payflow Parameter: STATUS + *
Maps to Payflow Parameter: STATUS */ public String getStatus() { return status; @@ -188,7 +194,7 @@ public String getStatus() { * Gets the tendertype. * * @return - String - *
Maps to Payflow Parameter: TENDER + *
Maps to Payflow Parameter: TENDER */ public String getTender() { return tender; @@ -198,7 +204,7 @@ public String getTender() { * Gets the PaymentsLeft parameter. Number of payments left to be billed. * * @return - String - *
Maps to Payflow Parameter: PAYMENTSLEFT + *
Maps to Payflow Parameter: PAYMENTSLEFT */ public String getPaymentsLeft() { return paymentsLeft; @@ -208,7 +214,7 @@ public String getPaymentsLeft() { * Gets the next payment parameter.Date that the next payment is due. * * @return - String - *
Maps to Payflow Parameter: NEXTPAYMENT + *
Maps to Payflow Parameter: NEXTPAYMENT */ public String getNextPayment() { return nextPayment; @@ -218,7 +224,7 @@ public String getNextPayment() { * Gets the profileName parameter. * * @return - String - *
Maps to Payflow Parameter: END + *
Maps to Payflow Parameter: END */ public String getEnd() { return end; @@ -228,7 +234,7 @@ public String getEnd() { * Gets AggregateAmt.Amount collected so far for scheduled payments. * * @return - String - *
Maps to Payflow Parameter: AGGREGATEAMT + *
Maps to Payflow Parameter: AGGREGATEAMT */ public String getAggregateAmt() { return aggregateAmt; @@ -238,7 +244,7 @@ public String getAggregateAmt() { * Gets the AggregateOptAmt parameter.Amount collected through sending optional transactions. * * @return - String - *
Maps to Payflow Parameter: AGGREGATEOPTIONALAMT + *
Maps to Payflow Parameter: AGGREGATEOPTIONALAMT */ public String getAggregateOptionalAmt() { return aggregateOptionalAmt; @@ -248,7 +254,7 @@ public String getAggregateOptionalAmt() { * Gets the amt parameter.Base dollar amount to be billed. * * @return - String - *
Maps to Payflow Parameter: AMT + *
Maps to Payflow Parameter: AMT */ public String getAmt() { return amt; @@ -258,7 +264,7 @@ public String getAmt() { * Gets Acct.Masked credit card number. * * @return - String - *
Maps to Payflow Parameter: ACCT + *
Maps to Payflow Parameter: ACCT */ public String getAcct() { return acct; @@ -268,7 +274,7 @@ public String getAcct() { * Gets the ExpDate parameter.Expiration date of the credit card account. * * @return - String - *
Maps to Payflow Parameter: EXPDATE + *
Maps to Payflow Parameter: EXPDATE */ public String getExpDate() { return expDate; @@ -280,7 +286,7 @@ public String getExpDate() { * before PayPal cancels a profile. * * @return - String - *
Maps to Payflow Parameter: MAXFAILPAYMENTS + *
Maps to Payflow Parameter: MAXFAILPAYMENTS */ public String getMaxFailPayments() { return maxFailPayments; @@ -290,7 +296,7 @@ public String getMaxFailPayments() { * Gets the NumFailPayments parameter.Number of payments that failed. * * @return - String - *
Maps to Payflow Parameter: NUMFAILPAYMENTS + *
Maps to Payflow Parameter: NUMFAILPAYMENTS */ public String getNumFailPayments() { return numFailPayments; @@ -300,7 +306,7 @@ public String getNumFailPayments() { * Gets the retryNumDays parameter. * * @return - String - *
Maps to Payflow Parameter: RETRYNUMDAYS + *
Maps to Payflow Parameter: RETRYNUMDAYS */ public String getRetryNumDays() { return retryNumDays; @@ -310,7 +316,7 @@ public String getRetryNumDays() { * Gets the email parameter. * * @return - String - *
Maps to Payflow Parameter: EMAIL + *
Maps to Payflow Parameter: EMAIL */ public String getEmail() { return email; @@ -320,7 +326,7 @@ public String getEmail() { * Gets the companyName parameter. * * @return - String - *
Maps to Payflow Parameter: COMPANYNAME + *
Maps to Payflow Parameter: COMPANYNAME */ public String getCompanyName() { return companyName; @@ -330,7 +336,7 @@ public String getCompanyName() { * Gets the name parameter. * * @return - String - *
Maps to Payflow Parameter: NAME + *
Maps to Payflow Parameter: NAME */ public String getName() { return name; @@ -340,7 +346,7 @@ public String getName() { * Gets the firstName parameter. * * @return - String - *
Maps to Payflow Parameter: FIRSTNAME + *
Maps to Payflow Parameter: FIRSTNAME */ public String getFirstName() { return firstName; @@ -350,7 +356,7 @@ public String getFirstName() { * Gets the middleName parameter. * * @return - String - *
Maps to Payflow Parameter: MIDDLENAME + *
Maps to Payflow Parameter: MIDDLENAME */ public String getMiddleName() { return middleName; @@ -360,7 +366,7 @@ public String getMiddleName() { * Gets the lastname parameter. * * @return - String - *
Maps to Payflow Parameter: LASTNAME + *
Maps to Payflow Parameter: LASTNAME */ public String getLastname() { return lastname; @@ -370,7 +376,7 @@ public String getLastname() { * Gets the street parameter. * * @return - String - *
Maps to Payflow Parameter: STREET + *
Maps to Payflow Parameter: STREET */ public String getStreet() { return street; @@ -380,7 +386,7 @@ public String getStreet() { * Gets the city parameter. * * @return - String - *
Maps to Payflow Parameter: CITY + *
Maps to Payflow Parameter: CITY */ public String getCity() { return city; @@ -390,7 +396,7 @@ public String getCity() { * Gets the state parameter. * * @return - String - *
Maps to Payflow Parameter: STATE + *
Maps to Payflow Parameter: STATE */ public String getState() { return state; @@ -400,7 +406,7 @@ public String getState() { * Gets the Zip parameter. * * @return - String - *
Maps to Payflow Parameter: ZIP + *
Maps to Payflow Parameter: ZIP */ public String getZip() { return zip; @@ -410,7 +416,7 @@ public String getZip() { * Gets the Country parameter. * * @return - String - *
Maps to Payflow Parameter: COUNTRY + *
Maps to Payflow Parameter: COUNTRY */ public String getCountry() { return country; @@ -420,7 +426,7 @@ public String getCountry() { * Gets the PhoneNum parameter. * * @return - String - *
Maps to Payflow Parameter: PHONENUM + *
Maps to Payflow Parameter: PHONENUM */ public String getPhoneNum() { return phoneNum; @@ -430,7 +436,7 @@ public String getPhoneNum() { * Gets the hipToFName parameter. * * @return - String - *
Maps to Payflow Parameter: SHIPTOFIRSTNAME + *
Maps to Payflow Parameter: SHIPTOFIRSTNAME */ public String getShipToFName() { return shipToFName; @@ -440,7 +446,7 @@ public String getShipToFName() { * Gets the ShipToMName parameter. * * @return - String - *
Maps to Payflow Parameter: SHIPTOMIDDLENAME + *
Maps to Payflow Parameter: SHIPTOMIDDLENAME */ public String getShipToMName() { return shipToMName; @@ -450,7 +456,7 @@ public String getShipToMName() { * Gets the ShipToLName parameter. * * @return - String - *
Maps to Payflow Parameter: SHIPTOLASTNAME + *
Maps to Payflow Parameter: SHIPTOLASTNAME */ public String getShipToLName() { return shipToLName; @@ -460,7 +466,7 @@ public String getShipToLName() { * Gets the ShipToStreet parameter. * * @return - String - *
Maps to Payflow Parameter: SHIPTOSTREET + *
Maps to Payflow Parameter: SHIPTOSTREET */ public String getShipToStreet() { return shipToStreet; @@ -470,7 +476,7 @@ public String getShipToStreet() { * Gets the ShipToCity parameter. * * @return - String - *
Maps to Payflow Parameter: SHIPTOCITY + *
Maps to Payflow Parameter: SHIPTOCITY */ public String getShipToCity() { return shipToCity; @@ -480,7 +486,7 @@ public String getShipToCity() { * Gets the profileName parameter. * * @return - String - *
Maps to Payflow Parameter: PROFILENAME + *
Maps to Payflow Parameter: PROFILENAME */ public String getShipToState() { return shipToState; @@ -490,7 +496,7 @@ public String getShipToState() { * Gets the ShipToZip parameter. * * @return - String - *
Maps to Payflow Parameter: SHIPTOZIP + *
Maps to Payflow Parameter: SHIPTOZIP */ public String getShipToZip() { return shipToZip; @@ -500,17 +506,78 @@ public String getShipToZip() { * Gets the ShipToCountry parameter. * * @return - String - *
Maps to Payflow Parameter: SHIPTOCOUNTRY + *
Maps to Payflow Parameter: SHIPTOCOUNTRY */ public String getShipToCountry() { return shipToCountry; } + + /** + * Gets the CreationDate parameter. + * + * @return - String + *
Maps to Payflow Parameter: CREATIONDATE + */ + public String getCreationDate() { + return creationDate; + } + + /** + * Gets the LastChanged parameter. + * + * @return - String + *
Maps to Payflow Parameter: LASTCHANGED + */ + public String getLastChanged() { + return lastChanged; + } + + /** + * Gets the RPStateparameter. + * + * @return - String + *
Maps to Payflow Parameter: RPSTATE + */ + public String getRpState() { + return rpState; + } + + /** + * Gets the NextPaymentNumber parameter. + * + * @return - String + *
Maps to Payflow Parameter: NEXTPAYMENTNUMBER + */ + public String getNextPaymentNumber() { + return nextPayment; + } + + /** + * Gets the Frequency parameter. + * + * @return - String + *
Maps to Payflow Parameter: FREQUENCY + */ + public String getFrequency() { + return frequency; + } + + /** + * Gets the Currency parameter. + * + * @return - String + *
Maps to Payflow Parameter: CURRENCY + */ + public String getCurrency() { + return currency; + } + /** * Gets the profileName parameter. * * @return - String - *
Maps to Payflow Parameter: PROFILENAME + *
Maps to Payflow Parameter: PROFILENAME */ public Hashtable getInquiryParams() { return inquiryParams; @@ -545,16 +612,17 @@ protected void setParams(Hashtable ResponseHashTable) { maxFailPayments = (String) ResponseHashTable.get(PayflowConstants.PARAM_MAXFAILPAYMENTS); numFailPayments = (String) ResponseHashTable.get(PayflowConstants.PARAM_NUMFAILPAYMENTS); retryNumDays = (String) ResponseHashTable.get(PayflowConstants.PARAM_RETRYNUMDAYS); - email = (String) ResponseHashTable.get(PayflowConstants.PARAM_EMAIL); companyName = (String) ResponseHashTable.get(PayflowConstants.PARAM_COMPANYNAME); + // Since Recurring Billing was never updated to support "BILLTO" parameters, overriding with older NVPs. name = (String) ResponseHashTable.get(PayflowConstants.PARAM_NAME); firstName = (String) ResponseHashTable.get(PayflowConstants.PARAM_FIRSTNAME); middleName = (String) ResponseHashTable.get(PayflowConstants.PARAM_MIDDLENAME); - lastname = (String) ResponseHashTable.get(PayflowConstants.PARAM_LASTNAME); - street = (String) ResponseHashTable.get(PayflowConstants.PARAM_STREET); - city = (String) ResponseHashTable.get(PayflowConstants.PARAM_CITY); - state = (String) ResponseHashTable.get(PayflowConstants.PARAM_STATE); - zip = (String) ResponseHashTable.get(PayflowConstants.PARAM_ZIP); + lastname = (String) ResponseHashTable.get("LASTNAME"); + street = (String) ResponseHashTable.get("STREET"); + city = (String) ResponseHashTable.get("CITY"); + state = (String) ResponseHashTable.get("STATE"); + zip = (String) ResponseHashTable.get("ZIP"); + email = (String) ResponseHashTable.get("EMAIL"); country = (String) ResponseHashTable.get(PayflowConstants.PARAM_COUNTRY); phoneNum = (String) ResponseHashTable.get(PayflowConstants.PARAM_PHONENUM); shipToFName = (String) ResponseHashTable.get(PayflowConstants.PARAM_SHIPTOFIRSTNAME); @@ -565,6 +633,12 @@ protected void setParams(Hashtable ResponseHashTable) { shipToState = (String) ResponseHashTable.get(PayflowConstants.PARAM_SHIPTOSTATE); shipToZip = (String) ResponseHashTable.get(PayflowConstants.PARAM_SHIPTOZIP); shipToCountry = (String) ResponseHashTable.get(PayflowConstants.PARAM_SHIPTOCOUNTRY); + creationDate = (String) ResponseHashTable.get(PayflowConstants.PARAM_CREATIONDATE); + lastChanged = (String) ResponseHashTable.get(PayflowConstants.PARAM_LASTCHANGED); + rpState = (String) ResponseHashTable.get(PayflowConstants.PARAM_RPSTATE); + nextPaymentNumber = (String) ResponseHashTable.get(PayflowConstants.PARAM_NEXTPAYMENTNUM); + frequency = (String) ResponseHashTable.get(PayflowConstants.PARAM_FREQUENCY); + currency = (String) ResponseHashTable.get(PayflowConstants.PARAM_CURRENCY); ResponseHashTable.remove(PayflowConstants.PARAM_PROFILEID); @@ -589,16 +663,16 @@ protected void setParams(Hashtable ResponseHashTable) { ResponseHashTable.remove(PayflowConstants.PARAM_MAXFAILPAYMENTS); ResponseHashTable.remove(PayflowConstants.PARAM_NUMFAILPAYMENTS); ResponseHashTable.remove(PayflowConstants.PARAM_RETRYNUMDAYS); - ResponseHashTable.remove(PayflowConstants.PARAM_EMAIL); ResponseHashTable.remove(PayflowConstants.PARAM_COMPANYNAME); ResponseHashTable.remove(PayflowConstants.PARAM_NAME); ResponseHashTable.remove(PayflowConstants.PARAM_FIRSTNAME); ResponseHashTable.remove(PayflowConstants.PARAM_MIDDLENAME); ResponseHashTable.remove(PayflowConstants.PARAM_LASTNAME); - ResponseHashTable.remove(PayflowConstants.PARAM_STREET); - ResponseHashTable.remove(PayflowConstants.PARAM_CITY); - ResponseHashTable.remove(PayflowConstants.PARAM_STATE); - ResponseHashTable.remove(PayflowConstants.PARAM_ZIP); + ResponseHashTable.remove("STREET"); + ResponseHashTable.remove("CITY"); + ResponseHashTable.remove("STATE"); + ResponseHashTable.remove("ZIP"); + ResponseHashTable.remove("EMAIL"); ResponseHashTable.remove(PayflowConstants.PARAM_COUNTRY); ResponseHashTable.remove(PayflowConstants.PARAM_PHONENUM); ResponseHashTable.remove(PayflowConstants.PARAM_SHIPTOFIRSTNAME); @@ -615,6 +689,12 @@ protected void setParams(Hashtable ResponseHashTable) { ResponseHashTable.remove(PayflowConstants.PARAM_P_TENDERn); ResponseHashTable.remove(PayflowConstants.PARAM_P_TRANSTIMEn); ResponseHashTable.remove(PayflowConstants.PARAM_P_AMOUNTn); + ResponseHashTable.remove(PayflowConstants.PARAM_CREATIONDATE); + ResponseHashTable.remove(PayflowConstants.PARAM_LASTCHANGED); + ResponseHashTable.remove(PayflowConstants.PARAM_RPSTATE); + ResponseHashTable.remove(PayflowConstants.PARAM_NEXTPAYMENTNUM); + ResponseHashTable.remove(PayflowConstants.PARAM_FREQUENCY); + ResponseHashTable.remove(PayflowConstants.PARAM_CURRENCY); } } diff --git a/java/src/sdk/dataobjects/paypal/payflow/TransactionResponse.java b/java/src/sdk/dataobjects/paypal/payflow/TransactionResponse.java index d8ad67b..23fbc03 100644 --- a/java/src/sdk/dataobjects/paypal/payflow/TransactionResponse.java +++ b/java/src/sdk/dataobjects/paypal/payflow/TransactionResponse.java @@ -97,6 +97,7 @@ public final class TransactionResponse extends BaseResponseDataObject { private String validationCode; private String ccTransId; private String ccTrans_PosData; + private String parId; /** * Gets the result. @@ -751,6 +752,16 @@ public String getCcTrans_PosData() { return ccTrans_PosData; } + /** + * Gets the Payment Account Reference. + * Value returned by some processors for the Payment Account Reference. + * @return - String + *
Maps to Payflow Parameter: PARID + */ + public String getParId() { + return parId; + } + protected TransactionResponse() { } @@ -820,7 +831,9 @@ protected void setParams(Hashtable ResponseHashTable) { validationCode = (String) ResponseHashTable.get(PayflowConstants.PARAM_VALIDATIONCODE); ccTransId = (String) ResponseHashTable.get(PayflowConstants.PARAM_CCTRANSID); ccTrans_PosData = (String) ResponseHashTable.get(PayflowConstants.PARAM_CCTRANS_POSDATA); + parId= (String) ResponseHashTable.get(PayflowConstants.PARAM_PARID); + // items commented out below are due to being used in RecurringResponse too. ResponseHashTable.remove(PayflowConstants.PARAM_RESULT); ResponseHashTable.remove(PayflowConstants.PARAM_PPREF); ResponseHashTable.remove(PayflowConstants.PARAM_PNREF); @@ -851,16 +864,16 @@ protected void setParams(Hashtable ResponseHashTable) { ResponseHashTable.remove(PayflowConstants.PARAM_PENDINGREASON); ResponseHashTable.remove(PayflowConstants.PARAM_PAYMENTTYPE); ResponseHashTable.remove(PayflowConstants.PARAM_CORRELATIONID); - ResponseHashTable.remove(PayflowConstants.PARAM_STATUS); + //ResponseHashTable.remove(PayflowConstants.PARAM_STATUS); ResponseHashTable.remove(PayflowConstants.PARAM_BALAMT); ResponseHashTable.remove(PayflowConstants.PARAM_AMEXID); ResponseHashTable.remove(PayflowConstants.PARAM_AMEXPOSDATA); - ResponseHashTable.remove(PayflowConstants.PARAM_ACCT); - ResponseHashTable.remove(PayflowConstants.PARAM_LASTNAME); - ResponseHashTable.remove(PayflowConstants.PARAM_FIRSTNAME); - ResponseHashTable.remove(PayflowConstants.PARAM_AMT); + //ResponseHashTable.remove(PayflowConstants.PARAM_ACCT); + //ResponseHashTable.remove(PayflowConstants.PARAM_LASTNAME); + //ResponseHashTable.remove(PayflowConstants.PARAM_FIRSTNAME); + //ResponseHashTable.remove(PayflowConstants.PARAM_AMT); ResponseHashTable.remove(PayflowConstants.PARAM_TRANSTIME); - ResponseHashTable.remove(PayflowConstants.PARAM_EXPDATE); + //ResponseHashTable.remove(PayflowConstants.PARAM_EXPDATE); ResponseHashTable.remove(PayflowConstants.PARAM_CARDTYPE); ResponseHashTable.remove(PayflowConstants.PARAM_ORIGAMT); ResponseHashTable.remove(PayflowConstants.PARAM_SECURETOKEN); @@ -883,6 +896,7 @@ protected void setParams(Hashtable ResponseHashTable) { ResponseHashTable.remove(PayflowConstants.PARAM_VALIDATIONCODE); ResponseHashTable.remove(PayflowConstants.PARAM_CCTRANSID); ResponseHashTable.remove(PayflowConstants.PARAM_CCTRANS_POSDATA); + ResponseHashTable.remove(PayflowConstants.PARAM_PARID);