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. |
| ||||||||
LANG | Language to be used to retrieve descriptions from db |
| ||||||||
CODICEINDALT | Delivery address code, if it differs from operating office address; else null | |||||||||
SEDEFATTALT | Registered office code for alternative invoicing. | |||||||||
INCASSOELETTRONICO | amount paid by credit card | |||||||||
INCASSOCONTRASSEGNO | amount paid cash on delivery | |||||||||
INCASSOWALLET | amount paid by electronic wallet | |||||||||
INCASSOSTORECREDIT | amount paid by store credit | |||||||||
INCASSOGIFTCARDS | amount paid by gift card | For 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 | |
-2 | There are no products in the cart |
-3 | Order with IDORDINE code doesn't exist in Vegaweb db |
-40 | IDORDINE is null |
Anchor | ||||
---|---|---|---|---|
|
Multiexcerpt include | ||||||
---|---|---|---|---|---|---|
|
Anchor | ||||
---|---|---|---|---|
|
Multiexcerpt include | ||||||
---|---|---|---|---|---|---|
|