Unico3.Link.API

<back to all web services

SchedeArticolo

Magazzino
The following routes are available for this service:
GET/magazzino/articoli/elenco
GET/magazzino/articoli/elenco/da/{FromId}
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class SchedeArticolo
    {
        public Integer FromId = null;
        
        public Integer getFromId() { return FromId; }
        public SchedeArticolo setFromId(Integer value) { this.FromId = value; return this; }
    }

    public static class SchedeArticoloResponse
    {
        public ArrayList<SchedaArticoloConDatiAggiuntivi> Risultati = null;
        
        public ArrayList<SchedaArticoloConDatiAggiuntivi> getRisultati() { return Risultati; }
        public SchedeArticoloResponse setRisultati(ArrayList<SchedaArticoloConDatiAggiuntivi> value) { this.Risultati = value; return this; }
    }

    public static class SchedaArticoloConDatiAggiuntivi
    {
        public SchedaArticolo Scheda = null;
        public ArrayList<Giacenza> Giacenze = null;
        public ArrayList<VoceListino> Listini = null;
        
        public SchedaArticolo getScheda() { return Scheda; }
        public SchedaArticoloConDatiAggiuntivi setScheda(SchedaArticolo value) { this.Scheda = value; return this; }
        public ArrayList<Giacenza> getGiacenze() { return Giacenze; }
        public SchedaArticoloConDatiAggiuntivi setGiacenze(ArrayList<Giacenza> value) { this.Giacenze = value; return this; }
        public ArrayList<VoceListino> getListini() { return Listini; }
        public SchedaArticoloConDatiAggiuntivi setListini(ArrayList<VoceListino> value) { this.Listini = value; return this; }
    }

    public static class SchedaArticolo
    {
        public Integer Id = null;
        public String Codice = null;
        public TipoArticolo TipoArticolo = null;
        public String Descrizione = null;
        public String Barcode = null;
        public String DescrizioneEstesa = null;
        public Double LottoRiordino = null;
        public Double PrezzoAcquisto = null;
        public Double PrezzoVendita = null;
        public Boolean IsEsclusoDaListe = null;
        public Boolean IsNascondiInStampa = null;
        public FK_Gruppo Gruppo = null;
        public FK_FamigliaMerceologica FamigliaMerceologica = null;
        public FK_Marca Marca = null;
        public FK_UdM UdM = null;
        public FK_AliquotaIVA AliquotaIVA = null;
        public FK_Conto ContoAcquisto = null;
        public FK_Conto ContoVendita = null;
        
        public Integer getId() { return Id; }
        public SchedaArticolo setId(Integer value) { this.Id = value; return this; }
        public String getCodice() { return Codice; }
        public SchedaArticolo setCodice(String value) { this.Codice = value; return this; }
        public TipoArticolo getTipoArticolo() { return TipoArticolo; }
        public SchedaArticolo setTipoArticolo(TipoArticolo value) { this.TipoArticolo = value; return this; }
        public String getDescrizione() { return Descrizione; }
        public SchedaArticolo setDescrizione(String value) { this.Descrizione = value; return this; }
        public String getBarcode() { return Barcode; }
        public SchedaArticolo setBarcode(String value) { this.Barcode = value; return this; }
        public String getDescrizioneEstesa() { return DescrizioneEstesa; }
        public SchedaArticolo setDescrizioneEstesa(String value) { this.DescrizioneEstesa = value; return this; }
        public Double getLottoRiordino() { return LottoRiordino; }
        public SchedaArticolo setLottoRiordino(Double value) { this.LottoRiordino = value; return this; }
        public Double getPrezzoAcquisto() { return PrezzoAcquisto; }
        public SchedaArticolo setPrezzoAcquisto(Double value) { this.PrezzoAcquisto = value; return this; }
        public Double getPrezzoVendita() { return PrezzoVendita; }
        public SchedaArticolo setPrezzoVendita(Double value) { this.PrezzoVendita = value; return this; }
        public Boolean getIsEsclusoDaListe() { return IsEsclusoDaListe; }
        public SchedaArticolo setIsEsclusoDaListe(Boolean value) { this.IsEsclusoDaListe = value; return this; }
        public Boolean getIsNascondiInStampa() { return IsNascondiInStampa; }
        public SchedaArticolo setIsNascondiInStampa(Boolean value) { this.IsNascondiInStampa = value; return this; }
        public FK_Gruppo getGruppo() { return Gruppo; }
        public SchedaArticolo setGruppo(FK_Gruppo value) { this.Gruppo = value; return this; }
        public FK_FamigliaMerceologica getFamigliaMerceologica() { return FamigliaMerceologica; }
        public SchedaArticolo setFamigliaMerceologica(FK_FamigliaMerceologica value) { this.FamigliaMerceologica = value; return this; }
        public FK_Marca getMarca() { return Marca; }
        public SchedaArticolo setMarca(FK_Marca value) { this.Marca = value; return this; }
        public FK_UdM getUdM() { return UdM; }
        public SchedaArticolo setUdM(FK_UdM value) { this.UdM = value; return this; }
        public FK_AliquotaIVA getAliquotaIVA() { return AliquotaIVA; }
        public SchedaArticolo setAliquotaIVA(FK_AliquotaIVA value) { this.AliquotaIVA = value; return this; }
        public FK_Conto getContoAcquisto() { return ContoAcquisto; }
        public SchedaArticolo setContoAcquisto(FK_Conto value) { this.ContoAcquisto = value; return this; }
        public FK_Conto getContoVendita() { return ContoVendita; }
        public SchedaArticolo setContoVendita(FK_Conto value) { this.ContoVendita = value; return this; }
    }

    public static enum TipoArticolo
    {
        Semplice,
        Matricola,
        FuoriInventario,
        Distinta;
    }

    public static class FK_Gruppo extends FK implements IUniqueCodice
    {
        public String Codice = null;
        
        public String getCodice() { return Codice; }
        public FK_Gruppo setCodice(String value) { this.Codice = value; return this; }
    }

    public static class FK
    {
        public Integer Id = null;
        
        public Integer getId() { return Id; }
        public FK setId(Integer value) { this.Id = value; return this; }
    }

    public static class FK_FamigliaMerceologica extends FK implements IUniqueCodice
    {
        public String Codice = null;
        
        public String getCodice() { return Codice; }
        public FK_FamigliaMerceologica setCodice(String value) { this.Codice = value; return this; }
    }

    public static class FK_Marca extends FK implements IUniqueDescrizione
    {
        public String Descrizione = null;
        
        public String getDescrizione() { return Descrizione; }
        public FK_Marca setDescrizione(String value) { this.Descrizione = value; return this; }
    }

    public static class FK_UdM extends FK implements IUniqueCodice, IUniqueDescrizione, IUniqueCodiceExport
    {
        public String Codice = null;
        public String Descrizione = null;
        public String CodiceExport = null;
        
        public String getCodice() { return Codice; }
        public FK_UdM setCodice(String value) { this.Codice = value; return this; }
        public String getDescrizione() { return Descrizione; }
        public FK_UdM setDescrizione(String value) { this.Descrizione = value; return this; }
        public String getCodiceExport() { return CodiceExport; }
        public FK_UdM setCodiceExport(String value) { this.CodiceExport = value; return this; }
    }

    public static class FK_AliquotaIVA extends FK implements IUniqueCodice, IUniqueCodiceExport
    {
        public String Codice = null;
        public String CodiceExport = null;
        
        public String getCodice() { return Codice; }
        public FK_AliquotaIVA setCodice(String value) { this.Codice = value; return this; }
        public String getCodiceExport() { return CodiceExport; }
        public FK_AliquotaIVA setCodiceExport(String value) { this.CodiceExport = value; return this; }
    }

    public static class FK_Conto extends FK implements IUniqueCodice, IUniqueCodiceExport
    {
        public String Codice = null;
        public String CodiceExport = null;
        
        public String getCodice() { return Codice; }
        public FK_Conto setCodice(String value) { this.Codice = value; return this; }
        public String getCodiceExport() { return CodiceExport; }
        public FK_Conto setCodiceExport(String value) { this.CodiceExport = value; return this; }
    }

    public static class Giacenza
    {
        public FK_Magazzino Magazzino = null;
        public Double Quantita = null;
        
        public FK_Magazzino getMagazzino() { return Magazzino; }
        public Giacenza setMagazzino(FK_Magazzino value) { this.Magazzino = value; return this; }
        public Double getQuantita() { return Quantita; }
        public Giacenza setQuantita(Double value) { this.Quantita = value; return this; }
    }

    public static class FK_Magazzino extends FK implements IUniqueDescrizione, IUniqueCodiceExport
    {
        public String Descrizione = null;
        public String CodiceExport = null;
        
        public String getDescrizione() { return Descrizione; }
        public FK_Magazzino setDescrizione(String value) { this.Descrizione = value; return this; }
        public String getCodiceExport() { return CodiceExport; }
        public FK_Magazzino setCodiceExport(String value) { this.CodiceExport = value; return this; }
    }

    public static class VoceListino
    {
        public FK_Listino Listino = null;
        public FK_Articolo Articolo = null;
        public String CodiceOrdine = null;
        public String Barcode = null;
        public Double PrezzoAcquisto = null;
        public Double PrezzoVendita = null;
        
        public FK_Listino getListino() { return Listino; }
        public VoceListino setListino(FK_Listino value) { this.Listino = value; return this; }
        public FK_Articolo getArticolo() { return Articolo; }
        public VoceListino setArticolo(FK_Articolo value) { this.Articolo = value; return this; }
        public String getCodiceOrdine() { return CodiceOrdine; }
        public VoceListino setCodiceOrdine(String value) { this.CodiceOrdine = value; return this; }
        public String getBarcode() { return Barcode; }
        public VoceListino setBarcode(String value) { this.Barcode = value; return this; }
        public Double getPrezzoAcquisto() { return PrezzoAcquisto; }
        public VoceListino setPrezzoAcquisto(Double value) { this.PrezzoAcquisto = value; return this; }
        public Double getPrezzoVendita() { return PrezzoVendita; }
        public VoceListino setPrezzoVendita(Double value) { this.PrezzoVendita = value; return this; }
    }

    public static class FK_Listino extends FK implements IUniqueCodice, IUniqueDescrizione
    {
        public String Codice = null;
        public String Descrizione = null;
        
        public String getCodice() { return Codice; }
        public FK_Listino setCodice(String value) { this.Codice = value; return this; }
        public String getDescrizione() { return Descrizione; }
        public FK_Listino setDescrizione(String value) { this.Descrizione = value; return this; }
    }

    public static class FK_Articolo extends FK implements IUniqueCodice
    {
        public String Codice = null;
        
        public String getCodice() { return Codice; }
        public FK_Articolo setCodice(String value) { this.Codice = value; return this; }
    }

}

Java SchedeArticolo DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /magazzino/articoli/elenco HTTP/1.1 
Host: unico3.link.api 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Risultati":[{"Scheda":{"Id":0,"Codice":"String","TipoArticolo":"Semplice","Descrizione":"String","Barcode":"String","DescrizioneEstesa":"String","LottoRiordino":0,"PrezzoAcquisto":0,"PrezzoVendita":0,"IsEsclusoDaListe":false,"IsNascondiInStampa":false,"Gruppo":{"Codice":"String","Id":0},"FamigliaMerceologica":{"Codice":"String","Id":0},"Marca":{"Descrizione":"String","Id":0},"UdM":{"Codice":"String","Descrizione":"String","CodiceExport":"String","Id":0},"AliquotaIVA":{"Codice":"String","CodiceExport":"String","Id":0},"ContoAcquisto":{"Codice":"String","CodiceExport":"String","Id":0},"ContoVendita":{"Codice":"String","CodiceExport":"String","Id":0}},"Giacenze":[{"Magazzino":{"Descrizione":"String","CodiceExport":"String","Id":0},"Quantita":0}],"Listini":[{"Listino":{"Codice":"String","Descrizione":"String","Id":0},"Articolo":{"Codice":"String","Id":0},"CodiceOrdine":"String","Barcode":"String","PrezzoAcquisto":0,"PrezzoVendita":0}]}]}