Portal

<back to all web services

BrowseDirectPlusProcurementData

The following routes are available for this service:
GET/directplus/procurement
import 'package:servicestack/servicestack.dart';

abstract class ResponseBase
{
    ResponseStatus? ResponseStatus;

    ResponseBase({this.ResponseStatus});
    ResponseBase.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

    Map<String, dynamic> toJson() => {
        'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!)
    };

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

class BrowseDirectPlusProcurementDataResponse extends ResponseBase implements IConvertible
{
    int? WorkForceN1;
    int? WorkForceN2;
    int? WorkForceN3;
    double? SubscribedCapital;
    int? SubscribedCapitalCurrencyId;
    double? RevenueN1;
    double? RevenueN2;
    double? RevenueN3;
    double? NetProfitN1;
    double? NetProfitN2;
    double? NetProfitN3;
    double? EquityN1;
    double? EquityN2;
    double? EquityN3;
    double? LiabilityN1;
    double? LiabilityN2;
    double? LiabilityN3;
    double? OperatingResultN1;
    double? OperatingResultN2;
    double? OperatingResultN3;
    double? IndebtednessN1;
    double? IndebtednessN2;
    double? IndebtednessN3;
    double? SalesProportionateProfitN1;
    double? SalesProportionateProfitN2;
    double? SalesProportionateProfitN3;
    double? LiquidityRatioN1;
    double? LiquidityRatioN2;
    double? LiquidityRatioN3;
    double? DBFailureScore;

    BrowseDirectPlusProcurementDataResponse({this.WorkForceN1,this.WorkForceN2,this.WorkForceN3,this.SubscribedCapital,this.SubscribedCapitalCurrencyId,this.RevenueN1,this.RevenueN2,this.RevenueN3,this.NetProfitN1,this.NetProfitN2,this.NetProfitN3,this.EquityN1,this.EquityN2,this.EquityN3,this.LiabilityN1,this.LiabilityN2,this.LiabilityN3,this.OperatingResultN1,this.OperatingResultN2,this.OperatingResultN3,this.IndebtednessN1,this.IndebtednessN2,this.IndebtednessN3,this.SalesProportionateProfitN1,this.SalesProportionateProfitN2,this.SalesProportionateProfitN3,this.LiquidityRatioN1,this.LiquidityRatioN2,this.LiquidityRatioN3,this.DBFailureScore});
    BrowseDirectPlusProcurementDataResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        super.fromMap(json);
        WorkForceN1 = json['WorkForceN1'];
        WorkForceN2 = json['WorkForceN2'];
        WorkForceN3 = json['WorkForceN3'];
        SubscribedCapital = JsonConverters.toDouble(json['SubscribedCapital']);
        SubscribedCapitalCurrencyId = json['SubscribedCapitalCurrencyId'];
        RevenueN1 = JsonConverters.toDouble(json['RevenueN1']);
        RevenueN2 = JsonConverters.toDouble(json['RevenueN2']);
        RevenueN3 = JsonConverters.toDouble(json['RevenueN3']);
        NetProfitN1 = JsonConverters.toDouble(json['NetProfitN1']);
        NetProfitN2 = JsonConverters.toDouble(json['NetProfitN2']);
        NetProfitN3 = JsonConverters.toDouble(json['NetProfitN3']);
        EquityN1 = JsonConverters.toDouble(json['EquityN1']);
        EquityN2 = JsonConverters.toDouble(json['EquityN2']);
        EquityN3 = JsonConverters.toDouble(json['EquityN3']);
        LiabilityN1 = JsonConverters.toDouble(json['LiabilityN1']);
        LiabilityN2 = JsonConverters.toDouble(json['LiabilityN2']);
        LiabilityN3 = JsonConverters.toDouble(json['LiabilityN3']);
        OperatingResultN1 = JsonConverters.toDouble(json['OperatingResultN1']);
        OperatingResultN2 = JsonConverters.toDouble(json['OperatingResultN2']);
        OperatingResultN3 = JsonConverters.toDouble(json['OperatingResultN3']);
        IndebtednessN1 = JsonConverters.toDouble(json['IndebtednessN1']);
        IndebtednessN2 = JsonConverters.toDouble(json['IndebtednessN2']);
        IndebtednessN3 = JsonConverters.toDouble(json['IndebtednessN3']);
        SalesProportionateProfitN1 = JsonConverters.toDouble(json['SalesProportionateProfitN1']);
        SalesProportionateProfitN2 = JsonConverters.toDouble(json['SalesProportionateProfitN2']);
        SalesProportionateProfitN3 = JsonConverters.toDouble(json['SalesProportionateProfitN3']);
        LiquidityRatioN1 = JsonConverters.toDouble(json['LiquidityRatioN1']);
        LiquidityRatioN2 = JsonConverters.toDouble(json['LiquidityRatioN2']);
        LiquidityRatioN3 = JsonConverters.toDouble(json['LiquidityRatioN3']);
        DBFailureScore = JsonConverters.toDouble(json['DBFailureScore']);
        return this;
    }

    Map<String, dynamic> toJson() => super.toJson()..addAll({
        'WorkForceN1': WorkForceN1,
        'WorkForceN2': WorkForceN2,
        'WorkForceN3': WorkForceN3,
        'SubscribedCapital': SubscribedCapital,
        'SubscribedCapitalCurrencyId': SubscribedCapitalCurrencyId,
        'RevenueN1': RevenueN1,
        'RevenueN2': RevenueN2,
        'RevenueN3': RevenueN3,
        'NetProfitN1': NetProfitN1,
        'NetProfitN2': NetProfitN2,
        'NetProfitN3': NetProfitN3,
        'EquityN1': EquityN1,
        'EquityN2': EquityN2,
        'EquityN3': EquityN3,
        'LiabilityN1': LiabilityN1,
        'LiabilityN2': LiabilityN2,
        'LiabilityN3': LiabilityN3,
        'OperatingResultN1': OperatingResultN1,
        'OperatingResultN2': OperatingResultN2,
        'OperatingResultN3': OperatingResultN3,
        'IndebtednessN1': IndebtednessN1,
        'IndebtednessN2': IndebtednessN2,
        'IndebtednessN3': IndebtednessN3,
        'SalesProportionateProfitN1': SalesProportionateProfitN1,
        'SalesProportionateProfitN2': SalesProportionateProfitN2,
        'SalesProportionateProfitN3': SalesProportionateProfitN3,
        'LiquidityRatioN1': LiquidityRatioN1,
        'LiquidityRatioN2': LiquidityRatioN2,
        'LiquidityRatioN3': LiquidityRatioN3,
        'DBFailureScore': DBFailureScore
    });

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

class BrowseDirectPlusProcurementData implements IGet, IConvertible
{
    String? VatNumber;
    String? Country;
    String? DunsNumber;

    BrowseDirectPlusProcurementData({this.VatNumber,this.Country,this.DunsNumber});
    BrowseDirectPlusProcurementData.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        VatNumber = json['VatNumber'];
        Country = json['Country'];
        DunsNumber = json['DunsNumber'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'VatNumber': VatNumber,
        'Country': Country,
        'DunsNumber': DunsNumber
    };

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

TypeContext _ctx = TypeContext(library: 'szallitoiportal_be.veolia.hu', types: <String, TypeInfo> {
    'ResponseBase': TypeInfo(TypeOf.AbstractClass),
    'BrowseDirectPlusProcurementDataResponse': TypeInfo(TypeOf.Class, create:() => BrowseDirectPlusProcurementDataResponse()),
    'BrowseDirectPlusProcurementData': TypeInfo(TypeOf.Class, create:() => BrowseDirectPlusProcurementData()),
});

Dart BrowseDirectPlusProcurementData 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 /directplus/procurement HTTP/1.1 
Host: szallitoiportal-be.veolia.hu 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"WorkForceN1":0,"WorkForceN2":0,"WorkForceN3":0,"SubscribedCapital":0,"SubscribedCapitalCurrencyId":0,"RevenueN1":0,"RevenueN2":0,"RevenueN3":0,"NetProfitN1":0,"NetProfitN2":0,"NetProfitN3":0,"EquityN1":0,"EquityN2":0,"EquityN3":0,"LiabilityN1":0,"LiabilityN2":0,"LiabilityN3":0,"OperatingResultN1":0,"OperatingResultN2":0,"OperatingResultN3":0,"DBFailureScore":0,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}