Portal

<back to all web services

BrowseDirectPlusProcurementData

The following routes are available for this service:
GET/directplus/procurement
import Foundation
import ServiceStack

public class BrowseDirectPlusProcurementData : IGet, Codable
{
    public var vatNumber:String
    public var country:String
    public var dunsNumber:String

    required public init(){}
}

public class BrowseDirectPlusProcurementDataResponse : ResponseBase
{
    public var workForceN1:Int?
    public var workForceN2:Int?
    public var workForceN3:Int?
    public var subscribedCapital:Double?
    public var subscribedCapitalCurrencyId:Int?
    public var revenueN1:Double?
    public var revenueN2:Double?
    public var revenueN3:Double?
    public var netProfitN1:Double?
    public var netProfitN2:Double?
    public var netProfitN3:Double?
    public var equityN1:Double?
    public var equityN2:Double?
    public var equityN3:Double?
    public var liabilityN1:Double?
    public var liabilityN2:Double?
    public var liabilityN3:Double?
    public var operatingResultN1:Double?
    public var operatingResultN2:Double?
    public var operatingResultN3:Double?
    public var indebtednessN1:Double?
    public var indebtednessN2:Double?
    public var indebtednessN3:Double?
    public var salesProportionateProfitN1:Double?
    public var salesProportionateProfitN2:Double?
    public var salesProportionateProfitN3:Double?
    public var liquidityRatioN1:Double?
    public var liquidityRatioN2:Double?
    public var liquidityRatioN3:Double?
    public var dbFailureScore:Double?

    required public init(){ super.init() }

    private enum CodingKeys : String, CodingKey {
        case workForceN1
        case workForceN2
        case workForceN3
        case subscribedCapital
        case subscribedCapitalCurrencyId
        case revenueN1
        case revenueN2
        case revenueN3
        case netProfitN1
        case netProfitN2
        case netProfitN3
        case equityN1
        case equityN2
        case equityN3
        case liabilityN1
        case liabilityN2
        case liabilityN3
        case operatingResultN1
        case operatingResultN2
        case operatingResultN3
        case indebtednessN1
        case indebtednessN2
        case indebtednessN3
        case salesProportionateProfitN1
        case salesProportionateProfitN2
        case salesProportionateProfitN3
        case liquidityRatioN1
        case liquidityRatioN2
        case liquidityRatioN3
        case dbFailureScore
    }

    required public init(from decoder: Decoder) throws {
        try super.init(from: decoder)
        let container = try decoder.container(keyedBy: CodingKeys.self)
        workForceN1 = try container.decodeIfPresent(Int.self, forKey: .workForceN1)
        workForceN2 = try container.decodeIfPresent(Int.self, forKey: .workForceN2)
        workForceN3 = try container.decodeIfPresent(Int.self, forKey: .workForceN3)
        subscribedCapital = try container.decodeIfPresent(Double.self, forKey: .subscribedCapital)
        subscribedCapitalCurrencyId = try container.decodeIfPresent(Int.self, forKey: .subscribedCapitalCurrencyId)
        revenueN1 = try container.decodeIfPresent(Double.self, forKey: .revenueN1)
        revenueN2 = try container.decodeIfPresent(Double.self, forKey: .revenueN2)
        revenueN3 = try container.decodeIfPresent(Double.self, forKey: .revenueN3)
        netProfitN1 = try container.decodeIfPresent(Double.self, forKey: .netProfitN1)
        netProfitN2 = try container.decodeIfPresent(Double.self, forKey: .netProfitN2)
        netProfitN3 = try container.decodeIfPresent(Double.self, forKey: .netProfitN3)
        equityN1 = try container.decodeIfPresent(Double.self, forKey: .equityN1)
        equityN2 = try container.decodeIfPresent(Double.self, forKey: .equityN2)
        equityN3 = try container.decodeIfPresent(Double.self, forKey: .equityN3)
        liabilityN1 = try container.decodeIfPresent(Double.self, forKey: .liabilityN1)
        liabilityN2 = try container.decodeIfPresent(Double.self, forKey: .liabilityN2)
        liabilityN3 = try container.decodeIfPresent(Double.self, forKey: .liabilityN3)
        operatingResultN1 = try container.decodeIfPresent(Double.self, forKey: .operatingResultN1)
        operatingResultN2 = try container.decodeIfPresent(Double.self, forKey: .operatingResultN2)
        operatingResultN3 = try container.decodeIfPresent(Double.self, forKey: .operatingResultN3)
        indebtednessN1 = try container.decodeIfPresent(Double.self, forKey: .indebtednessN1)
        indebtednessN2 = try container.decodeIfPresent(Double.self, forKey: .indebtednessN2)
        indebtednessN3 = try container.decodeIfPresent(Double.self, forKey: .indebtednessN3)
        salesProportionateProfitN1 = try container.decodeIfPresent(Double.self, forKey: .salesProportionateProfitN1)
        salesProportionateProfitN2 = try container.decodeIfPresent(Double.self, forKey: .salesProportionateProfitN2)
        salesProportionateProfitN3 = try container.decodeIfPresent(Double.self, forKey: .salesProportionateProfitN3)
        liquidityRatioN1 = try container.decodeIfPresent(Double.self, forKey: .liquidityRatioN1)
        liquidityRatioN2 = try container.decodeIfPresent(Double.self, forKey: .liquidityRatioN2)
        liquidityRatioN3 = try container.decodeIfPresent(Double.self, forKey: .liquidityRatioN3)
        dbFailureScore = try container.decodeIfPresent(Double.self, forKey: .dbFailureScore)
    }

    public override func encode(to encoder: Encoder) throws {
        try super.encode(to: encoder)
        var container = encoder.container(keyedBy: CodingKeys.self)
        if workForceN1 != nil { try container.encode(workForceN1, forKey: .workForceN1) }
        if workForceN2 != nil { try container.encode(workForceN2, forKey: .workForceN2) }
        if workForceN3 != nil { try container.encode(workForceN3, forKey: .workForceN3) }
        if subscribedCapital != nil { try container.encode(subscribedCapital, forKey: .subscribedCapital) }
        if subscribedCapitalCurrencyId != nil { try container.encode(subscribedCapitalCurrencyId, forKey: .subscribedCapitalCurrencyId) }
        if revenueN1 != nil { try container.encode(revenueN1, forKey: .revenueN1) }
        if revenueN2 != nil { try container.encode(revenueN2, forKey: .revenueN2) }
        if revenueN3 != nil { try container.encode(revenueN3, forKey: .revenueN3) }
        if netProfitN1 != nil { try container.encode(netProfitN1, forKey: .netProfitN1) }
        if netProfitN2 != nil { try container.encode(netProfitN2, forKey: .netProfitN2) }
        if netProfitN3 != nil { try container.encode(netProfitN3, forKey: .netProfitN3) }
        if equityN1 != nil { try container.encode(equityN1, forKey: .equityN1) }
        if equityN2 != nil { try container.encode(equityN2, forKey: .equityN2) }
        if equityN3 != nil { try container.encode(equityN3, forKey: .equityN3) }
        if liabilityN1 != nil { try container.encode(liabilityN1, forKey: .liabilityN1) }
        if liabilityN2 != nil { try container.encode(liabilityN2, forKey: .liabilityN2) }
        if liabilityN3 != nil { try container.encode(liabilityN3, forKey: .liabilityN3) }
        if operatingResultN1 != nil { try container.encode(operatingResultN1, forKey: .operatingResultN1) }
        if operatingResultN2 != nil { try container.encode(operatingResultN2, forKey: .operatingResultN2) }
        if operatingResultN3 != nil { try container.encode(operatingResultN3, forKey: .operatingResultN3) }
        if indebtednessN1 != nil { try container.encode(indebtednessN1, forKey: .indebtednessN1) }
        if indebtednessN2 != nil { try container.encode(indebtednessN2, forKey: .indebtednessN2) }
        if indebtednessN3 != nil { try container.encode(indebtednessN3, forKey: .indebtednessN3) }
        if salesProportionateProfitN1 != nil { try container.encode(salesProportionateProfitN1, forKey: .salesProportionateProfitN1) }
        if salesProportionateProfitN2 != nil { try container.encode(salesProportionateProfitN2, forKey: .salesProportionateProfitN2) }
        if salesProportionateProfitN3 != nil { try container.encode(salesProportionateProfitN3, forKey: .salesProportionateProfitN3) }
        if liquidityRatioN1 != nil { try container.encode(liquidityRatioN1, forKey: .liquidityRatioN1) }
        if liquidityRatioN2 != nil { try container.encode(liquidityRatioN2, forKey: .liquidityRatioN2) }
        if liquidityRatioN3 != nil { try container.encode(liquidityRatioN3, forKey: .liquidityRatioN3) }
        if dbFailureScore != nil { try container.encode(dbFailureScore, forKey: .dbFailureScore) }
    }
}

public class ResponseBase : Codable
{
    public var responseStatus:ResponseStatus

    required public init(){}
}


Swift 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"}}}