Child pages
  • Metodi - wsCalcolaScontoPerPagamento

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

wsCalcolaScontoPerPagamento

Applies discount if ought to, recalculates and updates order amounts
@GET
@Path("/
wsCalcolaScontoPerPagamento")
@QueryParam("CODE") String CODE,
@QueryParam("IDORDINE") BigDecimal IDORDINE,
@QueryParam("TIPOPAGAMENTO") String TIPOPAGAMENTO,
@QueryParam("LANG") String LANG,
@QueryParam("CODICEINDALT") String CODICEINDALT,
@QueryParam("SEDEFATTALT") String SEDEFATTALT

PARAMETERS

DESCRIPTION

VALUES

CODE

control code, built as md5hash of a value that depends from db


IDORDINE

Numeric identifier for the order


TIPOPAGAMENTO

payment type the customer chose.

Multiexcerpt include
SpaceWithExcerptVKB
MultiExcerptNameVegawebPaymentTypes
PageWithExcerptPayment options for vegaweb rest service

LANG

Language to be used to retrieve descriptions from db

Multiexcerpt include
SpaceWithExcerptVKB
MultiExcerptNameVegawebLanguages
PageWithExcerptVegaweb languages

CODICEINDALT

Delivery address code, if it differs from operating office address; else null


SEDEFATTALT

Registered office code for alternative invoicing.


INCASSOELETTRONICOamount paid by credit card
INCASSOCONTRASSEGNOamount paid cash on delivery
INCASSOWALLETamount paid by electronic wallet
INCASSOSTORECREDITamount paid by store credit
INCASSOGIFTCARDSamount paid by gift cardFor further development. Not used now


OUTPUT DATA

DESCRIPTION

VALUES

ResultCode

Method result

1 if no errors. Cf. error codes description for other values

CarrelloCorrente

Data of cart in the order (C.f. CarrelloCorrente recordset)


Error

Error description, if present



ERROR CODE

DESCRIPTION

Codes for bad CODE

Cf. Error codes for bad CODE parameter

-2

There are no products in the cart

-3

Order with IDORDINE code doesn't exist in Vegaweb db

-40

IDORDINE is null



Anchor
BadCodeParameters
BadCodeParameters
Multiexcerpt include
SpaceWithExcerptVKB
MultiExcerptNameErrorCodesForBadCodeParameter
PageWithExcerptOutput - Error codes for bad CODE parameter


Anchor
CarrelloCorrenteRecordset
CarrelloCorrenteRecordset
Multiexcerpt include
SpaceWithExcerptVKB
MultiExcerptNameCarrelloCorrenteRecordset
PageWithExcerptOutput - CarrelloCorrente recordset