DigiOffice Gateway Web Services

<back to all web services

IDB_4PSBC_Import_Bouwnummer

Import bouwnummer record vanuit 4PS

Requires Authentication
The following routes are available for this service:
POST/api/4PSBC/ImportBouwnummer
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class Header implements IConvertible
{
    /**
    * Inhoud van het bericht
    */
    // @ApiMember(Description="Inhoud van het bericht")
    String? Contains;

    /**
    * Datum aanmaak bericht
    */
    // @ApiMember(Description="Datum aanmaak bericht")
    String? Date;

    /**
    * ID voor het bericht
    */
    // @ApiMember(Description="ID voor het bericht")
    String? MessageID;

    /**
    * Verzender van het bericht
    */
    // @ApiMember(Description="Verzender van het bericht")
    String? Sender;

    Header({this.Contains,this.Date,this.MessageID,this.Sender});
    Header.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Contains = json['Contains'];
        Date = json['Date'];
        MessageID = json['MessageID'];
        Sender = json['Sender'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Contains': Contains,
        'Date': Date,
        'MessageID': MessageID,
        'Sender': Sender
    };

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

class Response_Bouwnummer implements IConvertible
{
    /**
    * Reponse status (Ok/Error)
    */
    // @ApiMember(Description="Reponse status (Ok/Error)", IsRequired=true)
    String? Status;

    /**
    * Errors summary
    */
    // @ApiMember(Description="Errors summary")
    String? Errors;

    /**
    * ID of the bouwnummer in DigiOffice
    */
    // @ApiMember(Description="ID of the bouwnummer in DigiOffice", IsRequired=true)
    String? DigiOfficeBouwnummerID;

    /**
    * GlobalID (digiOfficeId) of the bouwnummer in DigiOffice
    */
    // @ApiMember(Description="GlobalID (digiOfficeId) of the bouwnummer in DigiOffice", IsRequired=true)
    String? DigiOfficeGlobalID;

    Response_Bouwnummer({this.Status,this.Errors,this.DigiOfficeBouwnummerID,this.DigiOfficeGlobalID});
    Response_Bouwnummer.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Status = json['Status'];
        Errors = json['Errors'];
        DigiOfficeBouwnummerID = json['DigiOfficeBouwnummerID'];
        DigiOfficeGlobalID = json['DigiOfficeGlobalID'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Status': Status,
        'Errors': Errors,
        'DigiOfficeBouwnummerID': DigiOfficeBouwnummerID,
        'DigiOfficeGlobalID': DigiOfficeGlobalID
    };

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

class IDB_4PSBC_Response_Bouwnummer implements IConvertible
{
    /**
    * Header of the response
    */
    // @ApiMember(Description="Header of the response", IsRequired=true)
    Header? Header;

    /**
    * Response body
    */
    // @ApiMember(Description="Response body", IsRequired=true)
    Response_Bouwnummer? Response;

    IDB_4PSBC_Response_Bouwnummer({this.Header,this.Response});
    IDB_4PSBC_Response_Bouwnummer.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

class Data_Bouwnummer implements IConvertible
{
    String? systemId;
    String? digiOfficeId;
    String? projectId;
    String? plotNo;
    String? address;
    String? address2;
    String? postCode;
    String? city;
    String? countryRegionId;
    String? systemModifiedBy;
    String? companyName4ps;

    Data_Bouwnummer({this.systemId,this.digiOfficeId,this.projectId,this.plotNo,this.address,this.address2,this.postCode,this.city,this.countryRegionId,this.systemModifiedBy,this.companyName4ps});
    Data_Bouwnummer.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        systemId = json['systemId'];
        digiOfficeId = json['digiOfficeId'];
        projectId = json['projectId'];
        plotNo = json['plotNo'];
        address = json['address'];
        address2 = json['address2'];
        postCode = json['postCode'];
        city = json['city'];
        countryRegionId = json['countryRegionId'];
        systemModifiedBy = json['systemModifiedBy'];
        companyName4ps = json['companyName4ps'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'systemId': systemId,
        'digiOfficeId': digiOfficeId,
        'projectId': projectId,
        'plotNo': plotNo,
        'address': address,
        'address2': address2,
        'postCode': postCode,
        'city': city,
        'countryRegionId': countryRegionId,
        'systemModifiedBy': systemModifiedBy,
        'companyName4ps': companyName4ps
    };

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

/**
* Import bouwnummer record vanuit 4PS
*/
// @Api(Description="Import bouwnummer record vanuit 4PS")
class IDB_4PSBC_Import_Bouwnummer implements IConvertible
{
    /**
    * Message header
    */
    // @ApiMember(Description="Message header", IsRequired=true)
    Header? Header;

    /**
    * Message data
    */
    // @ApiMember(Description="Message data", IsRequired=true)
    Data_Bouwnummer? Data;

    IDB_4PSBC_Import_Bouwnummer({this.Header,this.Data});
    IDB_4PSBC_Import_Bouwnummer.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

TypeContext _ctx = TypeContext(library: 'dogw.klokgroep.nl', types: <String, TypeInfo> {
    'Header': TypeInfo(TypeOf.Class, create:() => Header()),
    'Response_Bouwnummer': TypeInfo(TypeOf.Class, create:() => Response_Bouwnummer()),
    'IDB_4PSBC_Response_Bouwnummer': TypeInfo(TypeOf.Class, create:() => IDB_4PSBC_Response_Bouwnummer()),
    'Data_Bouwnummer': TypeInfo(TypeOf.Class, create:() => Data_Bouwnummer()),
    'IDB_4PSBC_Import_Bouwnummer': TypeInfo(TypeOf.Class, create:() => IDB_4PSBC_Import_Bouwnummer()),
});

Dart IDB_4PSBC_Import_Bouwnummer DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /api/4PSBC/ImportBouwnummer HTTP/1.1 
Host: dogw.klokgroep.nl 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"Header":{"Contains":"String","Date":"String","MessageID":"String","Sender":"String"},"Data":{"systemId":"00000000-0000-0000-0000-000000000000","digiOfficeId":"00000000-0000-0000-0000-000000000000","projectId":"00000000-0000-0000-0000-000000000000","plotNo":"String","address":"String","address2":"String","postCode":"String","city":"String","countryRegionId":"String","systemModifiedBy":"String","companyName4ps":"String"}}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"Header":{"Contains":"String","Date":"String","MessageID":"String","Sender":"String"},"Response":{"Status":"String","Errors":"String","DigiOfficeBouwnummerID":"String","DigiOfficeGlobalID":"00000000-0000-0000-0000-000000000000"}}