input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
public string get merchant calculations url element mcfs utils find element or container document checkout flow support merchant checkout flow support if mcfs null return element merchant calcs utils find element or container document mcfs merchant calculations if merchant calcs null return return utils get element string value document merchant calcs merchant calculations url | retrieves the value of the lt merchant calculations url gt element |
public double get state sales tax return state sales tax | gets the state sales tax value for this tax rate usadata |
public long get platform id element mcfs utils find element or container document checkout flow support merchant checkout flow support if mcfs null return 0l return utils get element long value document mcfs platform id | retrieves the value of the lt platform id gt element |
public void set state sales tax double state sales tax this state sales tax state sales tax | sets the state sales tax value for this tax rate usadata |
public string get env return mc get env | return the environment type value |
public string get merchant id return mc get merchant id | return the merchant id |
public string get merchant key return mc get merchant key | return the merchant key |
public string get checkout url return mc get checkout url | return the checkout url |
public string get request url return mc get request url | return the request url |
public string get http auth return mc get http auth | return the http auth value |
public string get merchant checkout url return mc get merchant checkout url | return the merchant checkout url |
public double get state use tax return state use tax | gets the state use tax value for this tax rate usadata |
public void set state use tax double state use tax this state use tax state use tax | sets the state use tax value for this tax rate usadata |
public void init servlet config config throws servlet exception servlet context context config get servlet context string file name context get init parameter checkout config file input stream is context get resource as stream file name string handler type config get init parameter handler type if handler type null handler type default handler type if is null try default path file name web inf checkout config xml is context get resource as stream file name if is null read and configure is handler type | overrides servlet method to load notification processor configuration from web |
public boolean is accept merchant coupons element mcfs utils find element or container document checkout flow support merchant checkout flow support if mcfs null return false element merchant calcs utils find element or container document mcfs merchant calculations if merchant calcs null return false return utils get element boolean value document merchant calcs accept merchant coupons | retrieves the value that indicates whether the merchant accepts coupons |
public double get county sales tax return county sales tax | gets the county sales tax value for this tax rate usadata |
protected string dispatch string message throws exception message handler mh get message handler message if mh null return mh process merchant constants factory get merchant constants message return null | overrides base class method to load the configuration from web |
public void set county sales tax double county sales tax this county sales tax county sales tax | sets the county sales tax value for this tax rate usadata |
public double get county use tax return county use tax | gets the county use tax value for this tax rate usadata |
public boolean is accept merchant gift certificates element mcfs utils find element or container document checkout flow support merchant checkout flow support if mcfs null return false element merchant calcs utils find element or container document mcfs merchant calculations if merchant calcs null return false return utils get element boolean value document merchant calcs accept gift certificates | retrieves the value that indicates whether the merchant accepts gift |
public void set county use tax double county use tax this county use tax county use tax | sets the county use tax value for this tax rate usadata |
public double get city sales tax return city sales tax | gets the city sales tax value for this tax rate usadata |
public void set city sales tax double city sales tax this city sales tax city sales tax | sets the city sales tax value for this tax rate usadata |
public boolean is merchant calculated tax element mcfs utils find element or container document checkout flow support merchant checkout flow support if mcfs null return false element tax tables utils find container else create document mcfs tax tables if tax tables null return false return boolean value of tax tables get attribute merchant calculated boolean value | retrieves the value that indicates whether the merchant is responsible |
public double get city use tax return city use tax | gets the city use tax value for this tax rate usadata |
public void set city use tax double city use tax this city use tax city use tax | sets the city use tax value for this tax rate usadata |
public double get total sales tax return total sales tax | gets the total sales tax value for this tax rate usadata |
public boolean is request buyer phone number element mcfs utils find element or container document checkout flow support merchant checkout flow support if mcfs null return false return utils get element boolean value document mcfs request buyer phone number | retrieves the value of the lt request buyer phone number gt element |
public void set total sales tax double total sales tax this total sales tax total sales tax | sets the total sales tax value for this tax rate usadata |
public double get total use tax return total use tax | gets the total use tax value for this tax rate usadata |
public void set total use tax double total use tax this total use tax total use tax | sets the total use tax value for this tax rate usadata |
public void set accept merchant coupons boolean b element mcfs utils find container else create document checkout flow support merchant checkout flow support element merchant calcs utils find container else create document mcfs merchant calculations utils find element and set else create and set document merchant calcs accept merchant coupons b | sets the value that indicates whether the merchant accepts coupons |
public void set tax shipping alone java lang string tax shipping alone this tax shipping alone tax shipping alone | sets the tax shipping alone value for this tax rate usadata |
public void set tax shipping handling java lang string tax shipping handling this tax shipping handling tax shipping handling | sets the tax shipping handling value for this tax rate usadata |
public void set accept merchant gift certificates boolean b element mcfs utils find container else create document checkout flow support merchant checkout flow support element merchant calcs utils find container else create document mcfs merchant calculations utils find element and set else create and set document merchant calcs accept gift certificates b | sets the value that indicates whether the merchant accepts gift |
public void set calculation mode calculation mode calc mode element mcfs utils find container else create document checkout flow support merchant checkout flow support element merchant calcs utils find container else create document mcfs merchant calculations utils find element and set else create and set document merchant calcs calculation mode calc mode to string | set the value of the lt calculation mode gt element |
public void set analytics data string data element mcfs utils find container else create document checkout flow support merchant checkout flow support utils find element and set else create and set document mcfs analytics data data | sets the value of the lt analytics data gt element |
public void set cart expiration date date element expiration utils find container else create document shopping cart cart expiration utils find element and set else create and set document expiration good until date date | sets the value of the lt good until date gt element |
public void set continue shopping url string url element mcfs utils find container else create document checkout flow support merchant checkout flow support utils find element and set else create and set document mcfs continue shopping url url | sets the value of the lt continue shopping url gt element |
public void set edit cart url string url element mcfs utils find container else create document checkout flow support merchant checkout flow support utils find element and set else create and set document mcfs edit cart url url | sets the value of the lt edit cart url gt element |
public void set merchant calculated tax boolean b element mcfs utils find container else create document checkout flow support merchant checkout flow support element tax tables utils find container else create document mcfs tax tables tax tables set attribute merchant calculated b | sets the value that indicates whether the merchant is responsible for |
public void set merchant calculations url string url element mcfs utils find container else create document checkout flow support merchant checkout flow support element merchant calcs utils find container else create document mcfs merchant calculations utils find element and set else create and set document merchant calcs merchant calculations url url | sets the value of the lt merchant calculations url gt element |
public void set platform id long platform id element mcfs utils find container else create document checkout flow support merchant checkout flow support utils find element and set else create and set document mcfs platform id platform id | sets the value of the lt platform id gt element |
public void set request buyer phone number boolean b element mcfs utils find container else create document checkout flow support merchant checkout flow support utils find element and set else create and set document mcfs request buyer phone number b | sets the value of the lt request buyer phone number gt element |
public void set merchant private data nodes element nodes element mpd utils find container else create document shopping cart merchant private data utils import elements document mpd nodes | sets the contents of the lt merchant private data gt element |
public void add parameterized url string url add parameterized url url false | add a url which has already been url encoded to the |
public void add parameterized url string url boolean url encode add parameterized url url url encode null | add a url to the lt parameterized urls gt collection |
public void add parameterized url string url collection parameters add parameterized url url false parameters | add a collection of urls which have already been url encoded to the |
public void add flat rate shipping method string name float cost this add flat rate shipping method name cost null | this method adds a flat rate shipping method to an order |
public void add merchant private data node element node element mpd utils find container else create document shopping cart merchant private data utils import elements document mpd new element node | this method adds an xml node to the lt merchant private data gt |
public boolean is request initial auth details element ops utils find element or container document root order processing support if ops null return false return utils get element boolean value document ops request initial auth details | retrieves the value of the lt request initial auth details gt element |
public void set request initial auth details boolean b element ops utils find container else create document root order processing support utils find element and set else create and set document ops request initial auth details b | sets the value of the lt request initial auth details gt element |
public void set rounding policy rounding rule rule rounding mode mode element mcfs utils find container else create document checkout flow support merchant checkout flow support element policy utils find container else create document mcfs rounding policy utils find element and set else create and set document policy rule rule to string utils find element and set else create and set document policy mode mode to string | sets the value of the lt rounding policy gt element and sub elements |
public int get random color return this colors this randomizer next int this colors length | select randomly one of three colors |
public void set remote image url a url try urlconnection conn a url open connection conn connect input stream is conn get input stream buffered input stream bis new buffered input stream is bitmap bm bitmap factory decode stream bis bis close is close this my weather image view set image bitmap bm catch ioexception e reset to dunno on any error this my weather image view set image drawable get resources get drawable r drawable dunno | sets the child image view of this to the url passed |
protected boolean is in travellers list string number int size travellers size for int i 0 i size i if travellers get i get phone number equals number return true return false | checks if person is already added in the travellers list |
public personal items db adapter open throws sqlexception m db helper new database helper m ctx m db m db helper get writable database return this | open the private items database |
public common items db adapter open throws sqlexception m db helper new database helper m ctx m db m db helper get writable database return this | open the shared items database |
public string get name string phone number log i tag get name string where phone number phone number cursor cursor m db query table name new string name where null null null null if cursor move to first throw new runtime exception user does not exist person db adapter get name phone number return cursor get string 0 | sql select name from person where phone number phone number |
public long create item string name int taken content values initial values new content values initial values put key name name initial values put key taken taken return m db insert database table null initial values | create a new note using the title and body provided |
public string get name int person id log i tag get name string where person id person id cursor cursor m db query table name new string name where null null null null if cursor move to first throw new runtime exception user does not exist person db adapter get name person id return cursor get string 0 | sql select name from person where id id |
public cursor get person info int person id log i tag get person info string where person id person id return m db query table name new string person id name phone number where null null null null | sql select from person where person id person id |
public boolean delete item long row id return m db delete database table key rowid row id null 0 | delete the note with the given row id |
public long create item string name int taken int userid content values initial values new content values initial values put key name name initial values put key taken taken initial values put key userid userid return m db insert database table null initial values | create a new note using the title and body provided |
public cursor fetch all items return m db query database table new string key rowid key name key taken null null null null null | return a cursor over the list of all private items in the database |
public cursor fetch item long row id throws sqlexception cursor m cursor m db query true database table new string key rowid key name key taken key rowid row id null null null null null if m cursor null m cursor move to first return m cursor | return a cursor positioned at the note that matches the given row id |
public cursor fetch all items return m db query database table new string key rowid key name key taken key userid null null null null null | return a cursor over the list of all shared items in the database |
public boolean update item long row id string name int taken content values args new content values args put key name name args put key taken taken return m db update database table args key rowid row id null 0 | update the note using the details provided |
public int get debt relation id int travel id int creditor int debtor log i tag get debt relation id string where travel id travel id and creditor creditor and debtor debtor cursor cursor m db query table name new string id where null null null null if cursor move to first return 1 return cursor get int 0 | sql select id from debts where creditor creditor and debtor debtor |
public cursor fetch item long row id throws sqlexception cursor m cursor m db query true database table new string key rowid key name key taken key userid key rowid row id null null null null null if m cursor null m cursor move to first return m cursor | return a cursor positioned at the note that matches the given row id |
public int get amount spent int node id log i tag get amount spent string where id node id cursor cursor m db query table name new string amount where null null null null if cursor move to first return 1 return cursor get int 0 | sql select amount from debts where id node id |
public void set amount spent int node id int amount log i tag set amount spent string where id node id content values values new content values values put amount amount m db update table name values where null | slq update debts set amount amount where id user id and traveler id |
public boolean update item long row id string name int taken int userid content values args new content values args put key name name args put key taken taken args put key userid userid return m db update database table args key rowid row id null 0 | update the note using the details provided |
public cursor get all debts int current travel id log i tag get all debts return m db query debts new string id creditor debtor amount travel id current travel id null null null null | return a cursor over the list of all notes in the database |
public void update placemark info string name string description int id log i tag update placemark info name description id string where id id content values values new content values values put name name values put description description m db update table name values where null | slq update placemark set name name and description description |
public cursor get placemarks log i tag get all placemarks return m db query table name new string id travel id name description latitude longitude altitude time picture null null null null null | sql select id travel id x y z from coordinates |
public cursor get all locations log i tag get all coordinates return m db query table name new string id travel id latitude longitude altitude time null null null null time | sql select id travel id x y z from coordinates |
public select personal items db adapter open throws sqlexception m db helper new database helper m ctx m db m db helper get writable database return this | open the private items database |
public cursor get all expenses log i tag get all expenses return m db query expenses new string id amount creditor debtors comment show null null null null null | return a cursor over the list of all notes in the database |
public cursor get expenses int travel id log i tag get all expenses travel id string where travel id travel id return m db query expenses new string id amount creditor debtors comment show where null null null null | return a cursor over the list of all notes in the database |
public long insert travel string name string description int creator id log i tag insert travel content values values new content values values put title name values put description description values put creator id creator id return m db insert table name null values | insert a new travel without creating the travel object |
public cursor get travels log i tag get travel info return m db query table name new string travel id title description creator id null null null null null | sql select from travel |
public cursor get travellers int travel id log i tag get travellers return m db query table name new string id travel id person id money flow travel id travel id null null null null | sql select from travellers where travel id travel id |
public cursor get travels int travel id log i tag get travel info string where id travel id return m db query table name new string title description creator id where null null null null | sql select from travel where id travel id |
protected boolean is in travellers list string number int size members size for int i 0 i size i if members get i get phone number equals number return true return false | checks if person is already added in the travellers list |
public string get detail name return detail name | returns the detail name |
public void set detail name string detail name this detail name detail name | set the detail name |
public void initialize db string name throws sqlexception db file new file name driver manager register driver new jdbcdriver stmt get connection create statement | starts the database service |
public void update db big decimal version throws sqlexception for enumeration abstract table e table cache elements e has more elements e next element update by version version | brings database uptodate |
public void show gui database manager m new database manager m main m connect con | shows a sql frontend |
public void add table abstract table table throws sqlexception if table null return table cache put table get class get simple name table table update by version big decimal one | register a table in cache |
public abstract table get table string key abstract table table table cache get key return table | return a registered table |
public string get data type name switch get data type case types bigint return bigint case types integer return integer case types tinyint return tinyint case types varchar return varchar case types timestamp return timestamp case types boolean return boolean case types bit return bit case types char return char case types date return date case types decimal return decimal case types double return double case types float return float case types longvarchar return longvarchar case types real return real case types smallint return smallint case types time return time default return | returns the hsql datatype name of this column description |
public void set min horizontal edge length int min horizontal edge length min horizontal edge length min horizontal edge length | sets the minimal length for detected horizontal edges default is code 16 code |
public void set min vertical edge length int min vertical edge length min vertical edge length min vertical edge length | sets the minimal length for detected vertical edges default is code 10 code |
public void set text detector text detector text detector if text pixels null throw new illegal state exception get text pixels was already called text detector text detector | sets the detector for |
public void set edge detector edge detector edge detector if horizontal edges null throw new illegal state exception get horizontal edges was already called if vertical edges null throw new illegal state exception get vertical edges was already called edge detector edge detector | sets the detector for |
public url get url if url null string url as string driver get current url try url new url url as string catch malformed urlexception e throw new runtime exception could not convert as string url as string into an url e return url | returns the url of this web page |
public string get html if html null html driver get page source return html | returns the source html of this web page |
public void restore restore text colors | takes back any changes which might have been applied to the web page |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.