| GET | /cl_facture_ondemand/{id_operateur}/{num_facture} | ||
|---|---|---|---|
| GET | /cl_facture_ondemand/{id_operateur}/{id_tournee}/{num_facture} |
import 'package:servicestack/servicestack.dart';
class _facture_ligne implements IConvertible
{
int? order_id;
int? line_id;
int? article_id;
String? article_libelle;
double? qte_uc;
double? qte_cdt;
double? qte_total;
String? consigne_id;
String? consigne_libelle;
double? consigne_pu_ht;
double? consigne_total_ht;
_facture_ligne({this.order_id,this.line_id,this.article_id,this.article_libelle,this.qte_uc,this.qte_cdt,this.qte_total,this.consigne_id,this.consigne_libelle,this.consigne_pu_ht,this.consigne_total_ht});
_facture_ligne.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
order_id = json['order_id'];
line_id = json['line_id'];
article_id = json['article_id'];
article_libelle = json['article_libelle'];
qte_uc = JsonConverters.toDouble(json['qte_uc']);
qte_cdt = JsonConverters.toDouble(json['qte_cdt']);
qte_total = JsonConverters.toDouble(json['qte_total']);
consigne_id = json['consigne_id'];
consigne_libelle = json['consigne_libelle'];
consigne_pu_ht = JsonConverters.toDouble(json['consigne_pu_ht']);
consigne_total_ht = JsonConverters.toDouble(json['consigne_total_ht']);
return this;
}
Map<String, dynamic> toJson() => {
'order_id': order_id,
'line_id': line_id,
'article_id': article_id,
'article_libelle': article_libelle,
'qte_uc': qte_uc,
'qte_cdt': qte_cdt,
'qte_total': qte_total,
'consigne_id': consigne_id,
'consigne_libelle': consigne_libelle,
'consigne_pu_ht': consigne_pu_ht,
'consigne_total_ht': consigne_total_ht
};
getTypeName() => "_facture_ligne";
TypeContext? context = _ctx;
}
class _facture implements IConvertible
{
String? id_operateur;
String? id_tournee;
String? num_facture;
String? id_client;
double? total_tva;
double? total_ttc;
double? total_consigne;
String? code_devise;
int? order_id;
String? representant;
String? representant_nom;
String? representant_mail;
String? representant_gsm;
String? createur;
double? facture_htt;
double? facture_da;
double? facture_vss;
double? facture_ht;
double? facture_tva;
double? facture_ttc;
double? facture_cdc;
double? facture_net_ttc;
String? livraison_enseigne;
String? livraison_contact;
String? livraison_adresse1;
String? livraison_adresse2;
String? livraison_code_postal;
String? livraison_ville;
String? livraison_telephone;
String? livraison_fax;
String? livraison_gsm;
String? livraison_email;
String? livraison_cle;
String? livraison_cle_url;
String? livraison_heure_debut;
String? livraison_heure_fin;
String? livraison_heure_attendue;
String? livraison_heure_debut_2;
String? livraison_heure_fin_2;
double? livraison_lat;
double? livraison_long;
String? livraison_commentaire;
String? mode_reglement;
double? deonumeric01;
double? deonumeric02;
double? deonumeric03;
double? deonumeric04;
double? deonumeric05;
int? sort_index;
String? id_motif;
List<_facture_ligne>? lignes;
_facture({this.id_operateur,this.id_tournee,this.num_facture,this.id_client,this.total_tva,this.total_ttc,this.total_consigne,this.code_devise,this.order_id,this.representant,this.representant_nom,this.representant_mail,this.representant_gsm,this.createur,this.facture_htt,this.facture_da,this.facture_vss,this.facture_ht,this.facture_tva,this.facture_ttc,this.facture_cdc,this.facture_net_ttc,this.livraison_enseigne,this.livraison_contact,this.livraison_adresse1,this.livraison_adresse2,this.livraison_code_postal,this.livraison_ville,this.livraison_telephone,this.livraison_fax,this.livraison_gsm,this.livraison_email,this.livraison_cle,this.livraison_cle_url,this.livraison_heure_debut,this.livraison_heure_fin,this.livraison_heure_attendue,this.livraison_heure_debut_2,this.livraison_heure_fin_2,this.livraison_lat,this.livraison_long,this.livraison_commentaire,this.mode_reglement,this.deonumeric01,this.deonumeric02,this.deonumeric03,this.deonumeric04,this.deonumeric05,this.sort_index,this.id_motif,this.lignes});
_facture.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id_operateur = json['id_operateur'];
id_tournee = json['id_tournee'];
num_facture = json['num_facture'];
id_client = json['id_client'];
total_tva = JsonConverters.toDouble(json['total_tva']);
total_ttc = JsonConverters.toDouble(json['total_ttc']);
total_consigne = JsonConverters.toDouble(json['total_consigne']);
code_devise = json['code_devise'];
order_id = json['order_id'];
representant = json['representant'];
representant_nom = json['representant_nom'];
representant_mail = json['representant_mail'];
representant_gsm = json['representant_gsm'];
createur = json['createur'];
facture_htt = JsonConverters.toDouble(json['facture_htt']);
facture_da = JsonConverters.toDouble(json['facture_da']);
facture_vss = JsonConverters.toDouble(json['facture_vss']);
facture_ht = JsonConverters.toDouble(json['facture_ht']);
facture_tva = JsonConverters.toDouble(json['facture_tva']);
facture_ttc = JsonConverters.toDouble(json['facture_ttc']);
facture_cdc = JsonConverters.toDouble(json['facture_cdc']);
facture_net_ttc = JsonConverters.toDouble(json['facture_net_ttc']);
livraison_enseigne = json['livraison_enseigne'];
livraison_contact = json['livraison_contact'];
livraison_adresse1 = json['livraison_adresse1'];
livraison_adresse2 = json['livraison_adresse2'];
livraison_code_postal = json['livraison_code_postal'];
livraison_ville = json['livraison_ville'];
livraison_telephone = json['livraison_telephone'];
livraison_fax = json['livraison_fax'];
livraison_gsm = json['livraison_gsm'];
livraison_email = json['livraison_email'];
livraison_cle = json['livraison_cle'];
livraison_cle_url = json['livraison_cle_url'];
livraison_heure_debut = json['livraison_heure_debut'];
livraison_heure_fin = json['livraison_heure_fin'];
livraison_heure_attendue = json['livraison_heure_attendue'];
livraison_heure_debut_2 = json['livraison_heure_debut_2'];
livraison_heure_fin_2 = json['livraison_heure_fin_2'];
livraison_lat = JsonConverters.toDouble(json['livraison_lat']);
livraison_long = JsonConverters.toDouble(json['livraison_long']);
livraison_commentaire = json['livraison_commentaire'];
mode_reglement = json['mode_reglement'];
deonumeric01 = JsonConverters.toDouble(json['deonumeric01']);
deonumeric02 = JsonConverters.toDouble(json['deonumeric02']);
deonumeric03 = JsonConverters.toDouble(json['deonumeric03']);
deonumeric04 = JsonConverters.toDouble(json['deonumeric04']);
deonumeric05 = JsonConverters.toDouble(json['deonumeric05']);
sort_index = json['sort_index'];
id_motif = json['id_motif'];
lignes = JsonConverters.fromJson(json['lignes'],'List<_facture_ligne>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'id_operateur': id_operateur,
'id_tournee': id_tournee,
'num_facture': num_facture,
'id_client': id_client,
'total_tva': total_tva,
'total_ttc': total_ttc,
'total_consigne': total_consigne,
'code_devise': code_devise,
'order_id': order_id,
'representant': representant,
'representant_nom': representant_nom,
'representant_mail': representant_mail,
'representant_gsm': representant_gsm,
'createur': createur,
'facture_htt': facture_htt,
'facture_da': facture_da,
'facture_vss': facture_vss,
'facture_ht': facture_ht,
'facture_tva': facture_tva,
'facture_ttc': facture_ttc,
'facture_cdc': facture_cdc,
'facture_net_ttc': facture_net_ttc,
'livraison_enseigne': livraison_enseigne,
'livraison_contact': livraison_contact,
'livraison_adresse1': livraison_adresse1,
'livraison_adresse2': livraison_adresse2,
'livraison_code_postal': livraison_code_postal,
'livraison_ville': livraison_ville,
'livraison_telephone': livraison_telephone,
'livraison_fax': livraison_fax,
'livraison_gsm': livraison_gsm,
'livraison_email': livraison_email,
'livraison_cle': livraison_cle,
'livraison_cle_url': livraison_cle_url,
'livraison_heure_debut': livraison_heure_debut,
'livraison_heure_fin': livraison_heure_fin,
'livraison_heure_attendue': livraison_heure_attendue,
'livraison_heure_debut_2': livraison_heure_debut_2,
'livraison_heure_fin_2': livraison_heure_fin_2,
'livraison_lat': livraison_lat,
'livraison_long': livraison_long,
'livraison_commentaire': livraison_commentaire,
'mode_reglement': mode_reglement,
'deonumeric01': deonumeric01,
'deonumeric02': deonumeric02,
'deonumeric03': deonumeric03,
'deonumeric04': deonumeric04,
'deonumeric05': deonumeric05,
'sort_index': sort_index,
'id_motif': id_motif,
'lignes': JsonConverters.toJson(lignes,'List<_facture_ligne>',context!)
};
getTypeName() => "_facture";
TypeContext? context = _ctx;
}
class _client implements IConvertible
{
String? id_operateur;
String? id_tournee;
String? id_client;
String? nom_travail;
String? nom_complement;
String? adresse;
String? cp;
String? raison_sociale;
String? contact;
String? adresse1;
String? adresse2;
String? code_postal;
String? ville;
String? telephone;
String? fax;
String? gsm;
String? email;
String? representant;
String? type_paiement;
String? mode_reglement;
String? livraison_enseigne;
String? livraison_contact;
String? livraison_adresse1;
String? livraison_adresse2;
String? livraison_code_postal;
String? livraison_ville;
String? livraison_telephone;
String? livraison_fax;
String? livraison_gsm;
String? livraison_email;
double? livraison_lat;
double? livraison_long;
String? livraison_commentaire;
_client({this.id_operateur,this.id_tournee,this.id_client,this.nom_travail,this.nom_complement,this.adresse,this.cp,this.raison_sociale,this.contact,this.adresse1,this.adresse2,this.code_postal,this.ville,this.telephone,this.fax,this.gsm,this.email,this.representant,this.type_paiement,this.mode_reglement,this.livraison_enseigne,this.livraison_contact,this.livraison_adresse1,this.livraison_adresse2,this.livraison_code_postal,this.livraison_ville,this.livraison_telephone,this.livraison_fax,this.livraison_gsm,this.livraison_email,this.livraison_lat,this.livraison_long,this.livraison_commentaire});
_client.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id_operateur = json['id_operateur'];
id_tournee = json['id_tournee'];
id_client = json['id_client'];
nom_travail = json['nom_travail'];
nom_complement = json['nom_complement'];
adresse = json['adresse'];
cp = json['cp'];
raison_sociale = json['raison_sociale'];
contact = json['contact'];
adresse1 = json['adresse1'];
adresse2 = json['adresse2'];
code_postal = json['code_postal'];
ville = json['ville'];
telephone = json['telephone'];
fax = json['fax'];
gsm = json['gsm'];
email = json['email'];
representant = json['representant'];
type_paiement = json['type_paiement'];
mode_reglement = json['mode_reglement'];
livraison_enseigne = json['livraison_enseigne'];
livraison_contact = json['livraison_contact'];
livraison_adresse1 = json['livraison_adresse1'];
livraison_adresse2 = json['livraison_adresse2'];
livraison_code_postal = json['livraison_code_postal'];
livraison_ville = json['livraison_ville'];
livraison_telephone = json['livraison_telephone'];
livraison_fax = json['livraison_fax'];
livraison_gsm = json['livraison_gsm'];
livraison_email = json['livraison_email'];
livraison_lat = JsonConverters.toDouble(json['livraison_lat']);
livraison_long = JsonConverters.toDouble(json['livraison_long']);
livraison_commentaire = json['livraison_commentaire'];
return this;
}
Map<String, dynamic> toJson() => {
'id_operateur': id_operateur,
'id_tournee': id_tournee,
'id_client': id_client,
'nom_travail': nom_travail,
'nom_complement': nom_complement,
'adresse': adresse,
'cp': cp,
'raison_sociale': raison_sociale,
'contact': contact,
'adresse1': adresse1,
'adresse2': adresse2,
'code_postal': code_postal,
'ville': ville,
'telephone': telephone,
'fax': fax,
'gsm': gsm,
'email': email,
'representant': representant,
'type_paiement': type_paiement,
'mode_reglement': mode_reglement,
'livraison_enseigne': livraison_enseigne,
'livraison_contact': livraison_contact,
'livraison_adresse1': livraison_adresse1,
'livraison_adresse2': livraison_adresse2,
'livraison_code_postal': livraison_code_postal,
'livraison_ville': livraison_ville,
'livraison_telephone': livraison_telephone,
'livraison_fax': livraison_fax,
'livraison_gsm': livraison_gsm,
'livraison_email': livraison_email,
'livraison_lat': livraison_lat,
'livraison_long': livraison_long,
'livraison_commentaire': livraison_commentaire
};
getTypeName() => "_client";
TypeContext? context = _ctx;
}
class cl_facture_ondemandResponse implements IConvertible
{
String? id_operateur;
String? id_tournee;
String? num_facture;
List<_facture>? factures;
List<_client>? clients;
cl_facture_ondemandResponse({this.id_operateur,this.id_tournee,this.num_facture,this.factures,this.clients});
cl_facture_ondemandResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id_operateur = json['id_operateur'];
id_tournee = json['id_tournee'];
num_facture = json['num_facture'];
factures = JsonConverters.fromJson(json['factures'],'List<_facture>',context!);
clients = JsonConverters.fromJson(json['clients'],'List<_client>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'id_operateur': id_operateur,
'id_tournee': id_tournee,
'num_facture': num_facture,
'factures': JsonConverters.toJson(factures,'List<_facture>',context!),
'clients': JsonConverters.toJson(clients,'List<_client>',context!)
};
getTypeName() => "cl_facture_ondemandResponse";
TypeContext? context = _ctx;
}
class cl_facture_ondemandRequest implements IConvertible
{
String? id_operateur;
String? id_tournee;
String? num_facture;
cl_facture_ondemandRequest({this.id_operateur,this.id_tournee,this.num_facture});
cl_facture_ondemandRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id_operateur = json['id_operateur'];
id_tournee = json['id_tournee'];
num_facture = json['num_facture'];
return this;
}
Map<String, dynamic> toJson() => {
'id_operateur': id_operateur,
'id_tournee': id_tournee,
'num_facture': num_facture
};
getTypeName() => "cl_facture_ondemandRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'freemotion_staging.milliet.paris', types: <String, TypeInfo> {
'_facture_ligne': TypeInfo(TypeOf.Class, create:() => _facture_ligne()),
'_facture': TypeInfo(TypeOf.Class, create:() => _facture()),
'List<_facture_ligne>': TypeInfo(TypeOf.Class, create:() => <_facture_ligne>[]),
'_client': TypeInfo(TypeOf.Class, create:() => _client()),
'cl_facture_ondemandResponse': TypeInfo(TypeOf.Class, create:() => cl_facture_ondemandResponse()),
'List<_facture>': TypeInfo(TypeOf.Class, create:() => <_facture>[]),
'List<_client>': TypeInfo(TypeOf.Class, create:() => <_client>[]),
'cl_facture_ondemandRequest': TypeInfo(TypeOf.Class, create:() => cl_facture_ondemandRequest()),
});
Dart cl_facture_ondemandRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /cl_facture_ondemand/{id_operateur}/{num_facture} HTTP/1.1
Host: freemotion-staging.milliet.paris
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"id_operateur":"String","id_tournee":"String","num_facture":"String","factures":[{"id_operateur":"String","id_tournee":"String","num_facture":"String","id_client":"String","total_tva":0,"total_ttc":0,"total_consigne":0,"code_devise":"String","order_id":0,"representant":"String","representant_nom":"String","representant_mail":"String","representant_gsm":"String","createur":"String","facture_htt":0,"facture_da":0,"facture_vss":0,"facture_ht":0,"facture_tva":0,"facture_ttc":0,"facture_cdc":0,"facture_net_ttc":0,"livraison_enseigne":"String","livraison_contact":"String","livraison_adresse1":"String","livraison_adresse2":"String","livraison_code_postal":"String","livraison_ville":"String","livraison_telephone":"String","livraison_fax":"String","livraison_gsm":"String","livraison_email":"String","livraison_cle":"String","livraison_cle_url":"String","livraison_heure_debut":"String","livraison_heure_fin":"String","livraison_heure_attendue":"String","livraison_heure_debut_2":"String","livraison_heure_fin_2":"String","livraison_lat":0,"livraison_long":0,"livraison_commentaire":"String","mode_reglement":"String","deonumeric01":0,"deonumeric02":0,"deonumeric03":0,"deonumeric04":0,"deonumeric05":0,"sort_index":0,"id_motif":"String","lignes":[{"order_id":0,"line_id":0,"article_id":0,"article_libelle":"String","qte_uc":0,"qte_cdt":0,"qte_total":0,"consigne_id":"String","consigne_libelle":"String","consigne_pu_ht":0,"consigne_total_ht":0}]}],"clients":[{"id_operateur":"String","id_tournee":"String","id_client":"String","nom_travail":"String","nom_complement":"String","adresse":"String","cp":"String","raison_sociale":"String","contact":"String","adresse1":"String","adresse2":"String","code_postal":"String","ville":"String","telephone":"String","fax":"String","gsm":"String","email":"String","representant":"String","type_paiement":"String","mode_reglement":"String","livraison_enseigne":"String","livraison_contact":"String","livraison_adresse1":"String","livraison_adresse2":"String","livraison_code_postal":"String","livraison_ville":"String","livraison_telephone":"String","livraison_fax":"String","livraison_gsm":"String","livraison_email":"String","livraison_lat":0,"livraison_long":0,"livraison_commentaire":"String"}]}