WS-RESTRICTED_API Host [RESTRICTED_API] : D5290-staging

<back to all web services

document_forced

Document

Service de création de documents (OLD SCHOOL)

The following routes are available for this service:
GET/document_forced/{BasicAuth}/{MimeType}/{DocumentType}/{IdEntrepot}/{IdSociete}/{IdDocument}facture / commande
GET/document_forced/{BasicAuth}/{MimeType}/{DocumentType}/{IdEntrepot}/{IdGroupe}/{IdSociete}/{Year}/{Month}r99 : relevé mensuel de factures
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    /**
    * Service de création de documents (OLD SCHOOL)
    */
    @Api(Description="Service de création de documents (OLD SCHOOL)")
    public static class document_forced
    {
        /**
        * Basic Auth
        */
        @ApiMember(DataType="string", Description="Basic Auth", IsRequired=true, Name="BasicAuth", ParameterType="path")
        public String basicAuth = null;

        /**
        * mime-type
        */
        @ApiMember(DataType="string", Description="mime-type", IsRequired=true, Name="MimeType", ParameterType="path")
        public String mimeType = null;

        /**
        * document type
        */
        @ApiMember(DataType="string", Description="document type", IsRequired=true, Name="DocumentType", ParameterType="path")
        public eapi_document_type_enum documentType = null;

        /**
        * n° entrepot
        */
        @ApiMember(DataType="integer", Description="n° entrepot", IsRequired=true, Name="IdEntrepot", ParameterType="path")
        public Integer idEntrepot = null;

        /**
        * n° groupe
        */
        @ApiMember(DataType="integer", Description="n° groupe", IsRequired=true, Name="IdGroupe", ParameterType="path")
        public Integer idGroupe = null;

        /**
        * n° client
        */
        @ApiMember(DataType="integer", Description="n° client", IsRequired=true, Name="IdSociete", ParameterType="path")
        public Integer idSociete = null;

        /**
        * n° document
        */
        @ApiMember(DataType="integer", Description="n° document", IsRequired=true, Name="IdDocument", ParameterType="path", Route="/document_forced/{BasicAuth}/{MimeType}/{DocumentType}/{IdEntrepot}/{IdSociete}/{IdDocument}")
        public Integer idDocument = null;

        /**
        * année
        */
        @ApiMember(DataType="integer", Description="année", IsRequired=true, Name="Year", ParameterType="path", Route="/document_forced/{BasicAuth}/{MimeType}/{DocumentType}/{IdEntrepot}/{IdSociete}/{Year}/{Month}")
        public Integer year = null;

        /**
        * mois
        */
        @ApiMember(DataType="integer", Description="mois", IsRequired=true, Name="Month", ParameterType="path", Route="/document_forced/{BasicAuth}/{MimeType}/{DocumentType}/{IdEntrepot}/{IdSociete}/{Year}/{Month}")
        public Integer month = null;

        public document document = null;
        
        public String getBasicAuth() { return basicAuth; }
        public document_forced setBasicAuth(String value) { this.basicAuth = value; return this; }
        public String getMimeType() { return mimeType; }
        public document_forced setMimeType(String value) { this.mimeType = value; return this; }
        public eapi_document_type_enum getDocumentType() { return documentType; }
        public document_forced setDocumentType(eapi_document_type_enum value) { this.documentType = value; return this; }
        public Integer getIdEntrepot() { return idEntrepot; }
        public document_forced setIdEntrepot(Integer value) { this.idEntrepot = value; return this; }
        public Integer getIdGroupe() { return idGroupe; }
        public document_forced setIdGroupe(Integer value) { this.idGroupe = value; return this; }
        public Integer getIdSociete() { return idSociete; }
        public document_forced setIdSociete(Integer value) { this.idSociete = value; return this; }
        public Integer getIdDocument() { return idDocument; }
        public document_forced setIdDocument(Integer value) { this.idDocument = value; return this; }
        public Integer getYear() { return year; }
        public document_forced setYear(Integer value) { this.year = value; return this; }
        public Integer getMonth() { return month; }
        public document_forced setMonth(Integer value) { this.month = value; return this; }
        public document getDocument() { return document; }
        public document_forced setDocument(document value) { this.document = value; return this; }
    }

    public static enum eapi_document_type_enum
    {
        Facture,
        Commande,
        R98,
        R99,
        Balance;
    }

    /**
    * Service de création de documents
    */
    @Api(Description="Service de création de documents")
    public static class document
    {
        /**
        * document type
        */
        @ApiMember(DataType="string", Description="document type", IsRequired=true, Name="DocumentType", ParameterType="path")
        public eapi_document_type_enum documentType = null;

        /**
        * n° entrepot
        */
        @ApiMember(DataType="integer", Description="n° entrepot", IsRequired=true, Name="IdEntrepot", ParameterType="path")
        public Integer idEntrepot = null;

        /**
        * n° groupe
        */
        @ApiMember(DataType="integer", Description="n° groupe", IsRequired=true, Name="IdGroupe", ParameterType="path")
        public Integer idGroupe = null;

        /**
        * n° client
        */
        @ApiMember(DataType="integer", Description="n° client", IsRequired=true, Name="IdSociete", ParameterType="path")
        public Integer idSociete = null;

        /**
        * n° document
        */
        @ApiMember(DataType="integer", Description="n° document", IsRequired=true, Name="IdDocument", ParameterType="path", Route="/document/{DocumentType}/{IdEntrepot}/{IdSociete}/{IdDocument}")
        public Integer idDocument = null;

        /**
        * année
        */
        @ApiMember(DataType="integer", Description="année", IsRequired=true, Name="Year", ParameterType="path", Route="/document/{DocumentType}/{IdEntrepot}/{IdSociete}/{Year}/{Month}")
        public Integer year = null;

        /**
        * mois
        */
        @ApiMember(DataType="integer", Description="mois", IsRequired=true, Name="Month", ParameterType="path", Route="/document/{DocumentType}/{IdEntrepot}/{IdSociete}/{Year}/{Month}")
        public Integer month = null;
        
        public eapi_document_type_enum getDocumentType() { return documentType; }
        public document setDocumentType(eapi_document_type_enum value) { this.documentType = value; return this; }
        public Integer getIdEntrepot() { return idEntrepot; }
        public document setIdEntrepot(Integer value) { this.idEntrepot = value; return this; }
        public Integer getIdGroupe() { return idGroupe; }
        public document setIdGroupe(Integer value) { this.idGroupe = value; return this; }
        public Integer getIdSociete() { return idSociete; }
        public document setIdSociete(Integer value) { this.idSociete = value; return this; }
        public Integer getIdDocument() { return idDocument; }
        public document setIdDocument(Integer value) { this.idDocument = value; return this; }
        public Integer getYear() { return year; }
        public document setYear(Integer value) { this.year = value; return this; }
        public Integer getMonth() { return month; }
        public document setMonth(Integer value) { this.month = value; return this; }
    }

}

Java document_forced 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 /document_forced/{BasicAuth}/{MimeType}/{DocumentType}/{IdEntrepot}/{IdSociete}/{IdDocument} HTTP/1.1 
Host: milliet.io 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{}