org.locomotive.commerce.ics
Class ICSReply

java.lang.Object
  |
  +--org.locomotive.commerce.ics.ICSReply

public class ICSReply
extends java.lang.Object

Represents a response returned from Cybersource. The fields that are contained in the reply are specific to the requested services. Please see the Cybersource CommerceFLEX API documentation for more information. This object is not designed for multiple thread access.


Method Summary
 java.lang.String[] getDownloadURLs()
          Returns an array of URLS generated by Cybersource if the ICSRequest contained a request for the "ics_download" service.
 java.lang.String[] getElcRefNumbers()
          Gets the reference numbers (elc_ref_nums) for offers when the ICS service "ics_elc" was requested in the Request.
 java.lang.String[] getPreAppAcceptURLs()
          Gets the accept URLs (preapp_accept_url) for offers when the ICS service "ics_preapp" was requested in the Request.
 SCMPMessage getSCMPMessage()
          Useful for debugging.
 java.lang.String[] getTaxAmounts()
          Gets the tax amounts associated (tax_taxamount0..n) with the offers submitted in the ICSRequest.
 java.lang.String getValueByName(java.lang.String name)
          Gets the value for the given return code name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getValueByName

public java.lang.String getValueByName(java.lang.String name)
Gets the value for the given return code name. For each ICS service requested there should be specific codes and response values that give the details of the processing that occured along with any errors. If the given return code does not exist in the underlying SCMPMessage, this method returns null.

getSCMPMessage

public SCMPMessage getSCMPMessage()
Useful for debugging.

getDownloadURLs

public java.lang.String[] getDownloadURLs()
Returns an array of URLS generated by Cybersource if the ICSRequest contained a request for the "ics_download" service. The urls will be ordered in the order of the Offers submitted in the ICSRequest. If a download URL was not relavant to a particular offer, the value will be a null string.

getElcRefNumbers

public java.lang.String[] getElcRefNumbers()
Gets the reference numbers (elc_ref_nums) for offers when the ICS service "ics_elc" was requested in the Request. If the offer was not electronic and therefore does not have corresponding reference number, value will be a null string.

getPreAppAcceptURLs

public java.lang.String[] getPreAppAcceptURLs()
Gets the accept URLs (preapp_accept_url) for offers when the ICS service "ics_preapp" was requested in the Request. For offers were a url is nonsense, the value will be a null string.

getTaxAmounts

public java.lang.String[] getTaxAmounts()
Gets the tax amounts associated (tax_taxamount0..n) with the offers submitted in the ICSRequest. Words with the "ics_tax" service