CL$WS Host : D5239-staging-cl

<back to all web services

cr_commandeRequest

The following routes are available for this service:
GET, POST/cr_commande/{id_controleur}/{id_tournee}
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class cr_commandeRequest
    {
        public String id_controleur = null;
        public String id_tournee = null;
        public ArrayList<_cr_commande> cr_commandes = null;
        
        public String getIdControleur() { return id_controleur; }
        public cr_commandeRequest setIdControleur(String value) { this.id_controleur = value; return this; }
        public String getIdTournee() { return id_tournee; }
        public cr_commandeRequest setIdTournee(String value) { this.id_tournee = value; return this; }
        public ArrayList<_cr_commande> getCrCommandes() { return cr_commandes; }
        public cr_commandeRequest setCrCommandes(ArrayList<_cr_commande> value) { this.cr_commandes = value; return this; }
    }

    public static class _cr_commande
    {
        public String id_controleur = null;
        public String id_tournee = null;
        public String num_facture = null;
        public String commentaire = null;
        public Integer regroupee = null;
        public String date = null;
        public ArrayList<_cr_commande_ligne> lignes = null;
        
        public String getIdControleur() { return id_controleur; }
        public _cr_commande setIdControleur(String value) { this.id_controleur = value; return this; }
        public String getIdTournee() { return id_tournee; }
        public _cr_commande setIdTournee(String value) { this.id_tournee = value; return this; }
        public String getNumFacture() { return num_facture; }
        public _cr_commande setNumFacture(String value) { this.num_facture = value; return this; }
        public String getCommentaire() { return commentaire; }
        public _cr_commande setCommentaire(String value) { this.commentaire = value; return this; }
        public Integer getRegroupee() { return regroupee; }
        public _cr_commande setRegroupee(Integer value) { this.regroupee = value; return this; }
        public String getDate() { return date; }
        public _cr_commande setDate(String value) { this.date = value; return this; }
        public ArrayList<_cr_commande_ligne> getLignes() { return lignes; }
        public _cr_commande setLignes(ArrayList<_cr_commande_ligne> value) { this.lignes = value; return this; }
    }

    public static class _cr_commande_ligne
    {
        public String id_controleur = null;
        public String id_tournee = null;
        public String num_facture = null;
        public Integer line_id = null;
        public Integer article_id = null;
        public Integer quantite = null;
        public String date = null;
        public String qte_uv = null;
        public String qte_uc = null;
        public String cdt_uc = null;
        public Double _qte_uv = null;
        public Double _qte_uc = null;
        public Double _cdt_uc = null;
        
        public String getIdControleur() { return id_controleur; }
        public _cr_commande_ligne setIdControleur(String value) { this.id_controleur = value; return this; }
        public String getIdTournee() { return id_tournee; }
        public _cr_commande_ligne setIdTournee(String value) { this.id_tournee = value; return this; }
        public String getNumFacture() { return num_facture; }
        public _cr_commande_ligne setNumFacture(String value) { this.num_facture = value; return this; }
        public Integer getLineId() { return line_id; }
        public _cr_commande_ligne setLineId(Integer value) { this.line_id = value; return this; }
        public Integer getArticleId() { return article_id; }
        public _cr_commande_ligne setArticleId(Integer value) { this.article_id = value; return this; }
        public Integer getQuantite() { return quantite; }
        public _cr_commande_ligne setQuantite(Integer value) { this.quantite = value; return this; }
        public String getDate() { return date; }
        public _cr_commande_ligne setDate(String value) { this.date = value; return this; }
        public String getQteUv() { return qte_uv; }
        public _cr_commande_ligne setQteUv(String value) { this.qte_uv = value; return this; }
        public String getQteUc() { return qte_uc; }
        public _cr_commande_ligne setQteUc(String value) { this.qte_uc = value; return this; }
        public String getCdtUc() { return cdt_uc; }
        public _cr_commande_ligne setCdtUc(String value) { this.cdt_uc = value; return this; }
        public Double getQteUv() { return _qte_uv; }
        public _cr_commande_ligne setQteUv(Double value) { this._qte_uv = value; return this; }
        public Double getQteUc() { return _qte_uc; }
        public _cr_commande_ligne setQteUc(Double value) { this._qte_uc = value; return this; }
        public Double getCdtUc() { return _cdt_uc; }
        public _cr_commande_ligne setCdtUc(Double value) { this._cdt_uc = value; return this; }
    }

    public static class cr_commandeResponse
    {
        public String id_controleur = null;
        public String id_tournee = null;
        public ArrayList<_cr_commande> cr_commandes = null;
        
        public String getIdControleur() { return id_controleur; }
        public cr_commandeResponse setIdControleur(String value) { this.id_controleur = value; return this; }
        public String getIdTournee() { return id_tournee; }
        public cr_commandeResponse setIdTournee(String value) { this.id_tournee = value; return this; }
        public ArrayList<_cr_commande> getCrCommandes() { return cr_commandes; }
        public cr_commandeResponse setCrCommandes(ArrayList<_cr_commande> value) { this.cr_commandes = value; return this; }
    }

}

Java cr_commandeRequest 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.

POST /cr_commande/{id_controleur}/{id_tournee} HTTP/1.1 
Host: freemotion-staging.milliet.paris 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"id_controleur":"String","id_tournee":"String","cr_commandes":[{"id_controleur":"String","id_tournee":"String","num_facture":"String","commentaire":"String","regroupee":0,"date":"String","lignes":[{"id_controleur":"String","id_tournee":"String","num_facture":"String","line_id":0,"article_id":0,"quantite":0,"date":"String","qte_uv":"String","qte_uc":"String","cdt_uc":"String"}]}]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"id_controleur":"String","id_tournee":"String","cr_commandes":[{"id_controleur":"String","id_tournee":"String","num_facture":"String","commentaire":"String","regroupee":0,"date":"String","lignes":[{"id_controleur":"String","id_tournee":"String","num_facture":"String","line_id":0,"article_id":0,"quantite":0,"date":"String","qte_uv":"String","qte_uc":"String","cdt_uc":"String"}]}]}