- Created by Ludovica Vanoncini, last modified on Feb 16, 2021
You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 4 Current »
You have English selected as language but this page has not been translated yet. Translate the page or view the content in the default space language below.
Display defaultwsCalcolaScontoPerPagamento
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; |
LANG | Language to be used to retrieve descriptions from db | it = Italian |
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 | |
-2 | There are no products in the cart |
-3 | Order with IDORDINE code doesn't exist in Vegaweb db |
-40 | IDORDINE is null |
Error codes for bad CODE parameter ERROR CODE DESCRIPTION-1 Null value for CODE parameter -95 VEGAWEBSERVICES Vegamodule is not active -94 Value to build CODE is null in the db -99 CODE received as parameter and CODE built by vegaweb rest service are different,
CarrelloCorrente recordset One row for each product in the cart: FIELD NAME TYPE DESCRIPTION VALUE idriga int identifier for product in the cart in db table proCod String product code proDesc String product description proQta double product quantity in the cart proErog int number of consumptions proImporto String amount for selected quantity of single product rigaValida String product validity S=yes: product handled in the warehouse set on point of sale; proCodGrp String product type identifier 0=Accessories 1=Hot 10=Water-coolers 13=Fresh product 14=Non-food 2=Cold 20=Click meter 21=Token 22=Key 23=Rent 24=Fictitious for invoicing 3=Solid 33=Other product type 4=PoS / Machine Accessory 40=Resource 6=Tobacco 80=Machine 88=Recapitulatory Product 90=Recipe 91=Products group 98=Discount by group of products 99=Carnet previstoXModello String suitable product for machine S=yes: the product can be used with customer machine model; proValido String product inserted in the cart before login can really be purchased by customer. For Vegaweb version that allows to put products into the cart before login (it uses different price lists before and after login). Needs activation of module in Vega. S=yes: customer can buy the product after login; unitaMisura rsListaUnitaMisura code of mesurament unit selected by customer (Cf. RsListaUnitaMisura recordset) proMinimoVendibile double Minimum quantity for a product in an order proMassimoVendibile double Maximum quantity for a product in an order proVendibileAMultipliDi double Number of elements a product has to be sold in multiples of proAliquotaIva double VAT percentage applied on product at the moment vegawebrest service provides this data proScorporoIva String Information about VAT in price composition S = yes; price is VAT included proIsOmaggio String Product is a gift S = yes; N = no Once in the cart: IsPromozioni String product insert by an OCS promotion or not S=yes; totaleimponibile String total order amount without tax amount totaleiva String total tax amount totaleimporto String total amount of the order the customer has to pay for tipoDocumento String document type B=Delivery note F=Invoice T=Receipt V=Invoice to follow P=Paid invoice to follow S=Invoice to follow (pending payment due) editTipoDocumento String possibility to change document type from web site N: document type musn't be shown by web site pages; cauzioneDistributore String deposit amount for machine scontoContrassegno String discount amount if customer selects cash on delivery (C) payment type. If allowed by point of sale configuratione and module 'SCONTICONDPAG' is active in Vega. scontoPagAlternativo String discount amount if customer selects usual payment type (N). If allowed by point of sale configuratione and module 'SCONTICONDPAG' is active in Vega. scontoCartaDiCredito String discount amount if customer selects credit card payment (E) type. If allowed by point of sale configuratione and module 'SCONTICONDPAG' is active in Vega. tipoPagamento String payment type the customer can choose. combination of payment type values C,N,P,E,W,S. pagamentoAltCliente String payment term for operating or registred customer, as defined in Vega. totalelordo String Total amount for the order totaleomaggi String Total amount for gift products in the order .
N=no: product not handled in the warehouse set on point of sale
N=no: product is not expected for customer machine
N=no: product must be removed from cart
N = no; price is VAT excluded
N=no
S:document type must be shown by web site pages and customer can edit it;
D:document type must be shown by web site pages but customer can't edit it
Only wsValidaOrdine e wsCalcolaScontoPerPagamento provide this value.
Only wsValidaOrdine e wsCalcolaScontoPerPagamento provide this value.
Only wsValidaOrdine e wsCalcolaScontoPerPagamento provide this value.
Only wsValidaOrdine e wsCalcolaScontoPerPagamento provide this value.
Payment type:
C=cash on delivery;
N=usual payment type for customer as set in Vega;
P=paypal;
E=credit card;
W=wallet;
S=store credit;
T=wallet + store credit
Only wsValidaOrdine e wsCalcolaScontoPerPagamento provide this value.idContatto BigDecimal Numeric identifier for new customer. Null for orders from customer of Vega importoIncElettronico String amount paid by credit card chkOrdMinErogRaggiunto String The order reaches the mandatory minimum for disbursements S = yes; minimum has been reached
N = no; minimum has not been reachedchkOrdMinImpRaggiunto String The order reaches the mandatory minimum for the amount S = yes; minimum has been reached
N = no; minimum has not been reachedimportoIncContrassegno String amount paid cash on delivery importoIncWallet String amount paid by electronic wallet importoIncStoreCredit String amount paid by store credit importoIncGiftCard String amount paid by gift card For further development. Not used now importoIncResiduo String amount for which a payment method has not been chosen yet
- No labels