CL$WS Host : D5239-staging-cl

<back to all web services

cl_tournee_dechargementRequest

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

public class dtos
{

    public static class cl_tournee_dechargementRequest
    {
        public String id_operateur = null;
        public String id_tournee = null;
        public ArrayList<_deconsigne> deconsignes = null;
        public ArrayList<_encaissement> encaissements = null;
        public ArrayList<_incident> incidents = null;
        
        public String getIdOperateur() { return id_operateur; }
        public cl_tournee_dechargementRequest setIdOperateur(String value) { this.id_operateur = value; return this; }
        public String getIdTournee() { return id_tournee; }
        public cl_tournee_dechargementRequest setIdTournee(String value) { this.id_tournee = value; return this; }
        public ArrayList<_deconsigne> getDeconsignes() { return deconsignes; }
        public cl_tournee_dechargementRequest setDeconsignes(ArrayList<_deconsigne> value) { this.deconsignes = value; return this; }
        public ArrayList<_encaissement> getEncaissements() { return encaissements; }
        public cl_tournee_dechargementRequest setEncaissements(ArrayList<_encaissement> value) { this.encaissements = value; return this; }
        public ArrayList<_incident> getIncidents() { return incidents; }
        public cl_tournee_dechargementRequest setIncidents(ArrayList<_incident> value) { this.incidents = value; return this; }
    }

    public static class _deconsigne
    {
        public String id_operateur = null;
        public String id_tournee = null;
        public String num_facture = null;
        public String id_deconsigne = null;
        public String id_client = null;
        public Integer quantite = null;
        public Double pu_euro = null;
        public Double montant = null;
        public String date = null;
        
        public String getIdOperateur() { return id_operateur; }
        public _deconsigne setIdOperateur(String value) { this.id_operateur = value; return this; }
        public String getIdTournee() { return id_tournee; }
        public _deconsigne setIdTournee(String value) { this.id_tournee = value; return this; }
        public String getNumFacture() { return num_facture; }
        public _deconsigne setNumFacture(String value) { this.num_facture = value; return this; }
        public String getIdDeconsigne() { return id_deconsigne; }
        public _deconsigne setIdDeconsigne(String value) { this.id_deconsigne = value; return this; }
        public String getIdClient() { return id_client; }
        public _deconsigne setIdClient(String value) { this.id_client = value; return this; }
        public Integer getQuantite() { return quantite; }
        public _deconsigne setQuantite(Integer value) { this.quantite = value; return this; }
        public Double getPuEuro() { return pu_euro; }
        public _deconsigne setPuEuro(Double value) { this.pu_euro = value; return this; }
        public Double getMontant() { return montant; }
        public _deconsigne setMontant(Double value) { this.montant = value; return this; }
        public String getDate() { return date; }
        public _deconsigne setDate(String value) { this.date = value; return this; }
    }

    public static class _encaissement
    {
        public String id_operateur = null;
        public String id_tournee = null;
        public String id_client = null;
        public String id_reglement = null;
        public Double montant = null;
        public String code_devise = null;
        public String date = null;
        
        public String getIdOperateur() { return id_operateur; }
        public _encaissement setIdOperateur(String value) { this.id_operateur = value; return this; }
        public String getIdTournee() { return id_tournee; }
        public _encaissement setIdTournee(String value) { this.id_tournee = value; return this; }
        public String getIdClient() { return id_client; }
        public _encaissement setIdClient(String value) { this.id_client = value; return this; }
        public String getIdReglement() { return id_reglement; }
        public _encaissement setIdReglement(String value) { this.id_reglement = value; return this; }
        public Double getMontant() { return montant; }
        public _encaissement setMontant(Double value) { this.montant = value; return this; }
        public String getCodeDevise() { return code_devise; }
        public _encaissement setCodeDevise(String value) { this.code_devise = value; return this; }
        public String getDate() { return date; }
        public _encaissement setDate(String value) { this.date = value; return this; }
    }

    public static class _incident
    {
        public String id_operateur = null;
        public String id_tournee = null;
        public String num_facture = null;
        public String id_motif = null;
        public String date = null;
        public String photo = null;
        public Integer attente = null;
        
        public String getIdOperateur() { return id_operateur; }
        public _incident setIdOperateur(String value) { this.id_operateur = value; return this; }
        public String getIdTournee() { return id_tournee; }
        public _incident setIdTournee(String value) { this.id_tournee = value; return this; }
        public String getNumFacture() { return num_facture; }
        public _incident setNumFacture(String value) { this.num_facture = value; return this; }
        public String getIdMotif() { return id_motif; }
        public _incident setIdMotif(String value) { this.id_motif = value; return this; }
        public String getDate() { return date; }
        public _incident setDate(String value) { this.date = value; return this; }
        public String getPhoto() { return photo; }
        public _incident setPhoto(String value) { this.photo = value; return this; }
        public Integer getAttente() { return attente; }
        public _incident setAttente(Integer value) { this.attente = value; return this; }
    }

    public static class cl_tournee_dechargementResponse
    {
        public String id_operateur = null;
        public String id_tournee = null;
        public ArrayList<_deconsigne> deconsignes = null;
        public ArrayList<_encaissement> encaissements = null;
        public ArrayList<_incident> incidents = null;
        
        public String getIdOperateur() { return id_operateur; }
        public cl_tournee_dechargementResponse setIdOperateur(String value) { this.id_operateur = value; return this; }
        public String getIdTournee() { return id_tournee; }
        public cl_tournee_dechargementResponse setIdTournee(String value) { this.id_tournee = value; return this; }
        public ArrayList<_deconsigne> getDeconsignes() { return deconsignes; }
        public cl_tournee_dechargementResponse setDeconsignes(ArrayList<_deconsigne> value) { this.deconsignes = value; return this; }
        public ArrayList<_encaissement> getEncaissements() { return encaissements; }
        public cl_tournee_dechargementResponse setEncaissements(ArrayList<_encaissement> value) { this.encaissements = value; return this; }
        public ArrayList<_incident> getIncidents() { return incidents; }
        public cl_tournee_dechargementResponse setIncidents(ArrayList<_incident> value) { this.incidents = value; return this; }
    }

}

Java cl_tournee_dechargementRequest 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 /cl_tournee_dechargement/{id_operateur}/{id_tournee} HTTP/1.1 
Host: freemotion-staging.milliet.paris 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"id_operateur":"String","id_tournee":"String","deconsignes":[{"id_operateur":"String","id_tournee":"String","num_facture":"String","id_deconsigne":"String","id_client":"String","quantite":0,"pu_euro":0,"montant":0,"date":"String"}],"encaissements":[{"id_operateur":"String","id_tournee":"String","id_client":"String","id_reglement":"String","montant":0,"code_devise":"String","date":"String"}],"incidents":[{"id_operateur":"String","id_tournee":"String","num_facture":"String","id_motif":"String","date":"String","photo":"String","attente":0}]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"id_operateur":"String","id_tournee":"String","deconsignes":[{"id_operateur":"String","id_tournee":"String","num_facture":"String","id_deconsigne":"String","id_client":"String","quantite":0,"pu_euro":0,"montant":0,"date":"String"}],"encaissements":[{"id_operateur":"String","id_tournee":"String","id_client":"String","id_reglement":"String","montant":0,"code_devise":"String","date":"String"}],"incidents":[{"id_operateur":"String","id_tournee":"String","num_facture":"String","id_motif":"String","date":"String","photo":"String","attente":0}]}