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.

C=cash on delivery;
N=usual payment type for customer as set in Vega;
P=paypal;
E=credit card

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.



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