| GET | /document/{DocumentType}/{IdEntrepot}/{IdSociete}/{IdDocument} | facture / commande | |
|---|---|---|---|
| GET | /document/{DocumentType}/{IdEntrepot}/{IdGroupe}/{IdSociete}/{Year}/{Month} | r99 : relevé mensuel de factures |
import 'package:servicestack/servicestack.dart';
enum eapi_document_type_enum
{
facture,
commande,
r98,
r99,
balance,
}
/**
* Service de création de documents
*/
// @Api(Description="Service de création de documents")
class document implements IConvertible
{
/**
* document type
*/
// @ApiMember(DataType="string", Description="document type", IsRequired=true, Name="DocumentType", ParameterType="path")
eapi_document_type_enum? documentType;
/**
* n° entrepot
*/
// @ApiMember(DataType="integer", Description="n° entrepot", IsRequired=true, Name="IdEntrepot", ParameterType="path")
int? idEntrepot;
/**
* n° groupe
*/
// @ApiMember(DataType="integer", Description="n° groupe", IsRequired=true, Name="IdGroupe", ParameterType="path")
int? idGroupe;
/**
* n° client
*/
// @ApiMember(DataType="integer", Description="n° client", IsRequired=true, Name="IdSociete", ParameterType="path")
int? idSociete;
/**
* n° document
*/
// @ApiMember(DataType="integer", Description="n° document", IsRequired=true, Name="IdDocument", ParameterType="path", Route="/document/{DocumentType}/{IdEntrepot}/{IdSociete}/{IdDocument}")
int? idDocument;
/**
* année
*/
// @ApiMember(DataType="integer", Description="année", IsRequired=true, Name="Year", ParameterType="path", Route="/document/{DocumentType}/{IdEntrepot}/{IdSociete}/{Year}/{Month}")
int? year;
/**
* mois
*/
// @ApiMember(DataType="integer", Description="mois", IsRequired=true, Name="Month", ParameterType="path", Route="/document/{DocumentType}/{IdEntrepot}/{IdSociete}/{Year}/{Month}")
int? month;
document({this.documentType,this.idEntrepot,this.idGroupe,this.idSociete,this.idDocument,this.year,this.month});
document.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
documentType = JsonConverters.fromJson(json['documentType'],'eapi_document_type_enum',context!);
idEntrepot = json['idEntrepot'];
idGroupe = json['idGroupe'];
idSociete = json['idSociete'];
idDocument = json['idDocument'];
year = json['year'];
month = json['month'];
return this;
}
Map<String, dynamic> toJson() => {
'documentType': JsonConverters.toJson(documentType,'eapi_document_type_enum',context!),
'idEntrepot': idEntrepot,
'idGroupe': idGroupe,
'idSociete': idSociete,
'idDocument': idDocument,
'year': year,
'month': month
};
getTypeName() => "document";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'milliet.io', types: <String, TypeInfo> {
'eapi_document_type_enum': TypeInfo(TypeOf.Enum, enumValues:eapi_document_type_enum.values),
'document': TypeInfo(TypeOf.Class, create:() => document()),
});
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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /document/{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
{}