CL$WS Host : D5239-staging-cl

<back to all web services

cl_repriseRequest

The following routes are available for this service:
GET, POST/cl_reprise/{id_operateur}/{id_tournee}
import 'package:servicestack/servicestack.dart';

class _reprise implements IConvertible
{
    String? id_operateur;
    String? id_tournee;
    String? num_facture;
    String? type_reprise;
    String? article_id;
    int? article_absent;
    int? quantite;
    int? reintegrable;
    String? commentaire;
    String? date;
    double? qte_uv;
    double? qte_uc;
    double? cdt_uc;

    _reprise({this.id_operateur,this.id_tournee,this.num_facture,this.type_reprise,this.article_id,this.article_absent,this.quantite,this.reintegrable,this.commentaire,this.date,this.qte_uv,this.qte_uc,this.cdt_uc});
    _reprise.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'];
        type_reprise = json['type_reprise'];
        article_id = json['article_id'];
        article_absent = json['article_absent'];
        quantite = json['quantite'];
        reintegrable = json['reintegrable'];
        commentaire = json['commentaire'];
        date = json['date'];
        qte_uv = JsonConverters.toDouble(json['qte_uv']);
        qte_uc = JsonConverters.toDouble(json['qte_uc']);
        cdt_uc = JsonConverters.toDouble(json['cdt_uc']);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id_operateur': id_operateur,
        'id_tournee': id_tournee,
        'num_facture': num_facture,
        'type_reprise': type_reprise,
        'article_id': article_id,
        'article_absent': article_absent,
        'quantite': quantite,
        'reintegrable': reintegrable,
        'commentaire': commentaire,
        'date': date,
        'qte_uv': qte_uv,
        'qte_uc': qte_uc,
        'cdt_uc': cdt_uc
    };

    getTypeName() => "_reprise";
    TypeContext? context = _ctx;
}

class cl_repriseResponse implements IConvertible
{
    String? id_operateur;
    String? id_tournee;
    List<_reprise>? reprises;

    cl_repriseResponse({this.id_operateur,this.id_tournee,this.reprises});
    cl_repriseResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id_operateur = json['id_operateur'];
        id_tournee = json['id_tournee'];
        reprises = JsonConverters.fromJson(json['reprises'],'List<_reprise>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id_operateur': id_operateur,
        'id_tournee': id_tournee,
        'reprises': JsonConverters.toJson(reprises,'List<_reprise>',context!)
    };

    getTypeName() => "cl_repriseResponse";
    TypeContext? context = _ctx;
}

class cl_repriseRequest implements IConvertible
{
    String? id_operateur;
    String? id_tournee;
    List<_reprise>? reprises;

    cl_repriseRequest({this.id_operateur,this.id_tournee,this.reprises});
    cl_repriseRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id_operateur = json['id_operateur'];
        id_tournee = json['id_tournee'];
        reprises = JsonConverters.fromJson(json['reprises'],'List<_reprise>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id_operateur': id_operateur,
        'id_tournee': id_tournee,
        'reprises': JsonConverters.toJson(reprises,'List<_reprise>',context!)
    };

    getTypeName() => "cl_repriseRequest";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'freemotion_staging.milliet.paris', types: <String, TypeInfo> {
    '_reprise': TypeInfo(TypeOf.Class, create:() => _reprise()),
    'cl_repriseResponse': TypeInfo(TypeOf.Class, create:() => cl_repriseResponse()),
    'List<_reprise>': TypeInfo(TypeOf.Class, create:() => <_reprise>[]),
    'cl_repriseRequest': TypeInfo(TypeOf.Class, create:() => cl_repriseRequest()),
});

Dart cl_repriseRequest 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_reprise/{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","reprises":[{"id_operateur":"String","id_tournee":"String","num_facture":"String","type_reprise":"String","article_id":"String","article_absent":0,"quantite":0,"reintegrable":0,"commentaire":"String","date":"String","qte_uv":0,"qte_uc":0,"cdt_uc":0}]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"id_operateur":"String","id_tournee":"String","reprises":[{"id_operateur":"String","id_tournee":"String","num_facture":"String","type_reprise":"String","article_id":"String","article_absent":0,"quantite":0,"reintegrable":0,"commentaire":"String","date":"String","qte_uv":0,"qte_uc":0,"cdt_uc":0}]}