input
stringlengths
10
828
output
stringlengths
5
107
public string get xml return utils document to string document
return the xml response string
public float get unit price amount return utils get element float value document element unit price
retrive the contents of the lt unit price gt tag
public string get xml pretty return utils document to string pretty document
return the nicely formatted xml response string
public string get unit price currency element unit price utils find container else create document element unit price return unit price get attribute currency
retrive the contents of the currency attribute of the lt unit price gt
public void add allowed country area usarea country area element allowed areas utils find container else create document root allowed areas element us country utils create new container document allowed areas us country area us country set attribute country area country area to string
this method adds an allowed u
public void set amount float amount element e utils find element and set else create and set document root amount amount e set attribute currency merchant constants get currency code
set the refund amount which is value of the lt amount gt tag
public void add allowed state code string state code element allowed areas utils find container else create document root allowed areas element us state utils create new container document allowed areas us state area utils create new element and set document us state state state code
this method adds an allowed u
public void add excluded country area usarea country area element excluded areas utils find container else create document root excluded areas element us country utils create new container document excluded areas us country area us country set attribute country area country area to string
this method adds an excluded u
public void add excluded state code string state code element excluded areas utils find container else create document root excluded areas element us state utils create new container document excluded areas us state area utils create new element and set document us state state state code
this method adds an excluded u
public void add allowed world area element allowed areas utils find container else create document root allowed areas utils create new container document allowed areas world area
this method adds an allowed lt world area gt element
public void add excluded world area element excluded areas utils find container else create document root excluded areas utils create new container document excluded areas world area
this method adds an excluded lt world area gt element
public boolean is allow us po box return utils get element boolean value document root allow us po box
retrieve the value of the lt allow us po box gt tag
public void set allow us po box boolean b utils find element and set else create and set document root allow us po box b
set the value of the lt allow us po box gt tag
public void add allowed postal area string country code string postal code pattern element allowed areas utils find container else create document root allowed areas element pa utils create new container document allowed areas postal area utils create new element and set document pa country code country code utils create new element and set document pa postal code pattern postal code pattern
this method adds an allowed lt postal area gt element
public void add postal area string country code string postal code pattern element pa utils create new container document root postal area utils create new element and set document pa country code country code if postal code pattern null utils create new element and set document pa postal code pattern postal code pattern
this method adds a lt postal area gt element
public void add excluded postal area string country code string postal code pattern element excluded areas utils find container else create document root excluded areas element pa utils create new container document excluded areas postal area utils create new element and set document pa country code country code utils create new element and set document pa postal code pattern postal code pattern
this method adds an excluded lt postal area gt element
public void add postal area string country code add postal area country code null
this method adds a lt postal area gt element
public void add world area utils create new container document root world area
this method adds a lt world area gt element
public url parameter type get param type return type
get the url parameter type
public string get env return this env
return the environment type value
public string get merchant key return this merchant key
return the merchant key
public void set env string env this env env
set the environment type value
public void set merchant id string merchant id this merchant id merchant id
set the merchant id
public float get applied amount return utils get element float value document element applied amount
retrieves the value of the lt applied amount gt element
public float get calculated amount return utils get element float value document element calculated amount
retrieves the value of the lt calculated amount gt element
public void set merchant key string merchant key this merchant key merchant key
set the merchant key
public string get code return utils get element string value document element code
retrieves the value of the lt code gt element
public string get message return utils get element string value document element message
retrieves the value of the lt message gt element
public string get checkout url return checkout url
return the checkout url
public boolean is eligible for protection return utils get element boolean value document risk info eligible for protection
retrieves the value of the lt eligible for protection gt tag
public address get billing address element address utils find element or container document risk info billing address return new address document address
retrieves the contents of the lt billing address gt tag as an address
public string get http auth return base64 coder encode new string buffer get merchant id append append get merchant key to string
return the http auth value
public string get avs response return utils get element string value document risk info avs response
retrieves the value of the lt avs response gt tag
public string get merchant checkout url return merchant checkout url
return the merchant checkout url
public string get cvn response return utils get element string value document risk info cvn response
retrieves the value of the lt cvn response gt tag
public void set merchant checkout url string merchant checkout url this merchant checkout url merchant checkout url
set the merchant checkout url
public string get partial cc number return utils get element string value document risk info partial cc number
retrieves the value of the lt partial cc number gt tag
public int get buyer account age return utils get element int value document risk info buyer account age
retrieves the value of the lt buyer account age gt tag
public void set checkout url string checkout url this checkout url checkout url
set the checkout url
public string get ip address return utils get element string value document risk info ip address
retrieves the value of the lt ip address gt tag
public float get shipping cost return utils get element float value document element shipping cost
retrieves the value of the lt shipping cost gt element
public fulfillment order state get new fulfillment order state string state utils get element string value document root new fulfillment order state return fulfillment order state get state state
retrieves the value of the lt new fulfillment order state gt element
public string get shipping name return utils get element string value document element shipping name
retrieves the value of the lt shipping name gt element
public financial order state get new financial order state string state utils get element string value document root new financial order state return financial order state get state state
retrieves the value of the lt new financial order state gt element
public fulfillment order state get previous fulfillment order state string state utils get element string value document root previous fulfillment order state return fulfillment order state get state state
retrieves the value of the lt previous fulfillment order state gt
public financial order state get previous financial order state string state utils get element string value document root previous financial order state return financial order state get state state
retrieves the value of the lt previous financial order state gt
public float get latest charge amount return utils get element float value document root latest charge amount
retrieves the value of the lt latest charge amount gt tag
public float get total charge amount return utils get element float value document root total charge amount
retrieves the value of the lt total charge amount gt tag
public string get currency code return utils find element or container document root latest charge amount get attribute currency
retrieves the currency code
public collection get items element shopping cart utils find element or container document root shopping cart element items utils find element or container document shopping cart items element elements utils get elements document items collection ret new array list for int i 0 i elements length i ret add new item document elements i return ret
retrieves the contents of the lt items gt element as a colection of
public date get timestamp return utils get element date value document root timestamp
retrieves the value of the lt timestamp gt tag
public date get cart expiration element shopping cart utils find container else create document root shopping cart element cart expiration utils find container else create document shopping cart cart expiration return utils get element date value document cart expiration good until date
retrieves the value of the lt good until date gt element
public string get root node name return document get document element get node name
return the name of the root node of the notification
public float get latest refund amount return utils get element float value document root latest refund amount
retrieves the value of the lt latest refund amount gt tag
public float get total refund amount return utils get element float value document root total refund amount
retrieves the value of the lt total refund amount gt tag
public address get buyer shipping address element address utils find element or container document root buyer shipping address return new address document address
retrieves the value of the lt buyer shipping address gt element
public string get currency code return utils find element or container document root latest refund amount get attribute currency
retrieves the currency code
public address get buyer billing address element address utils find element or container document root buyer billing address return new address document address
retrieves the value of the lt buyer billing address gt element
public boolean is marketing email allowed element buyer marketing preferences utils find element or container document root buyer marketing preferences return utils get element boolean value document buyer marketing preferences email allowed
retrieves the value of the lt email allowed gt element
public boolean is merchant calculation successful element order adjustment utils find element or container document root order adjustment return utils get element boolean value document order adjustment merchant calculation successful
retrieves the value of the lt merchant calculation successful gt
public collection get merchant codes element oa utils find element or container document root order adjustment element mc utils find element or container document oa merchant codes element elements utils get elements document mc collection ret new array list element e string name for int i 0 i elements length i e elements i name e get node name if gift certificate adjustment equals name ret add new gift certificate adjustment document e else if coupon adjustment equals name ret add new coupon adjustment document e return ret
retrieves the contents of the lt merchant codes gt element as a
public float get total tax element order adjustment utils find element or container document root order adjustment return utils get element float value document order adjustment total tax
retrieves the value of the lt total tax gt element
public string get avs response return utils get element string value document root avs response
retrieves the value of the lt avs response gt tag
public string get cvn response return utils get element string value document root cvn response
retrieves the value of the lt cvn response gt tag
public float get adjustment total element order adjustment utils find element or container document root order adjustment return utils get element float value document order adjustment adjustment total
retrieves the value of the lt adjustment total gt element
public float get authorization amount return utils get element float value document root authorization amount
retrieves the value of the lt authorization amount gt tag
public string get currenty code return utils find element or container document root authorization amount get attribute currency
retrieves the currency code
public shipping get shipping element oa utils find element or container document root order adjustment element shipping utils find element or container document oa shipping element e utils find element or container document shipping merchant calculated shipping adjustment if e null return new merchant calculated shipping adjustment document e e utils find element or container document shipping flat rate shipping adjustment if e null return new flat rate shipping adjustment document e e utils find element or container document shipping pickup shipping adjustment if e null return new pickup shipping adjustment document e return null
retrieves the value of the lt shipping gt element as a shipping object
public date get authorization expiration date return utils get element date value document root authorization expiration date
retrieves the value of the lt authorization expiration date gt tag
public float get latest chargeback amount return utils get element float value document root latest chargeback amount
retrieves the value of the lt latest chargeback amount gt tag
public float get total chargeback amount return utils get element float value document root total chargeback amount
retrieves the value of the lt total charge amount gt tag
public float get order total return utils get element float value document root order total
retrieves the value of the lt order total gt element
public string get currency code return utils find element or container document root latest chargeback amount get attribute currency
retrieves the currency code
public string get order currency code return utils find element or container document root order total get attribute currency
retrieves the currency code
public fulfillment order state get fulfillment order state string state utils get element string value document root fulfillment order state return fulfillment order state get state state
retrieves the value of the lt fulfillment order state gt element
public financial order state get financial order state string state utils get element string value document root financial order state return financial order state get state state
retrieves the value of the lt financial order state gt element
public string get city return utils get element string value document element city
retrive the contents of the lt city gt tag
public long get buyer id return utils get element long value document root buyer id
retrieves the value of the lt buyer id gt element
public string get country code return utils get element string value document element country code
retrive the contents of the lt country code gt tag
public string get postal code return utils get element string value document element postal code
retrive the contents of the lt postal code gt tag
public collection get items element shopping cart utils find container else create document root shopping cart element items utils find container else create document shopping cart items element elements utils get elements document items collection ret new array list for int i 0 i elements length i ret add new item document elements i return ret
retrieves the contents of the lt items gt element as a colection of
public string get region return utils get element string value document element region
retrive the contents of the lt region gt tag
public float get calculated amount return calculated amount
retrieves the value of the lt calculated amount gt tag
public void set calculated amount float calculated amount this calculated amount calculated amount
sets the value of the lt calculated amount gt tag
public string get buyer language return utils get element string value document root buyer language
retrieves the value of the lt buyer language gt element
public boolean is calculate tax element calculate utils find container else create document root calculate return utils get element boolean value document calculate tax
indicates whether tax should be calculated or not
public collection get shipping methods element calculate utils find container else create document root calculate element shipping utils find container else create document calculate shipping element elements utils get elements document shipping collection ret new array list for int i 0 i elements length i ret add elements i get attribute name return ret
returns a collection of strings representing the lt method gt tags
public collection get merchant codes element calculate utils find container else create document root calculate element merchant codes utils find container else create document calculate merchant code strings element elements utils get elements document merchant codes collection ret new array list for int i 0 i elements length i ret add new merchant code string elements i get attribute code elements i get attribute pin return ret
returns a collection of strings representing the
public collection get anonymous addresses element calculate utils find container else create document root calculate element addresses utils find container else create document calculate addresses element elements utils get elements document addresses collection ret new array list for int i 0 i elements length i ret add new anonymous address document elements i return ret
returns a collection of strings representing the
public void add pickup shipping method string name float cost element mcfs utils find container else create document checkout flow support merchant checkout flow support element shipping methods utils find container else create document mcfs shipping methods element new ship utils create new container document shipping methods pickup new ship set attribute name name element price utils create new element and set document new ship price cost price set attribute currency merchant constants get currency code
this method adds an instore pickup shipping option to an order
public string get analytics data element mcfs utils find element or container document checkout flow support merchant checkout flow support if mcfs null return return utils get element string value document mcfs analytics data
retrieves the value of the lt analytics data gt element
public date get cart expiration element expiration utils find element or container document shopping cart cart expiration if expiration null return null return utils get element date value document expiration good until date
retrieves the value of the lt good until date gt element
public void set abbreviation java lang string abbreviation this abbreviation abbreviation
sets the abbreviation value for this tax rate canada data
public void set province java lang string province this province province
sets the province value for this tax rate canada data
public string get continue shopping url element mcfs utils find element or container document checkout flow support merchant checkout flow support if mcfs null return return utils get element string value document mcfs continue shopping url
retrieves the value of the lt continue shopping url gt element
public void set endpoint address java lang string port name java lang string address throws javax xml rpc service exception if tax data basic soap equals port name set tax data basic soap endpoint address address else unknown port name throw new javax xml rpc service exception cannot set endpoint address for unknown port port name
set the endpoint address for the specified port name
public double get pst return pst
gets the pst value for this tax rate canada data
public void set pst double pst this pst pst
sets the pst value for this tax rate canada data
public void set hst java lang string hst this hst hst
sets the hst value for this tax rate canada data
public string get edit cart url element mcfs utils find element or container document checkout flow support merchant checkout flow support if mcfs null return return utils get element string value document mcfs edit cart url
retrieves the value of the lt edit cart url gt element