DigiOffice Gateway Web Services

<back to all web services

IDB_4PSBC_Import_Persoon

Import persoon record vanuit 4PS

Requires Authentication
The following routes are available for this service:
POST/api/4PSBC/ImportPersoon
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_Person 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 person in DigiOffice
    */
    // @ApiMember(Description="ID of the person in DigiOffice", IsRequired=true)
    String? DigiOfficePersoonID;

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

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

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

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

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

class IDB_4PSBC_Response_Persoon 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_Person? Response;

    IDB_4PSBC_Response_Persoon({this.Header,this.Response});
    IDB_4PSBC_Response_Persoon.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_Person',context!);
        return this;
    }

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

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

class Data_Person implements IConvertible
{
    String? systemId;
    String? digiOfficeId;
    String? companyName4ps;
    String? no;
    String? firstName;
    String? middleName;
    String? surname;
    String? gender;
    String? initials;
    String? nameAbbreviation;
    String? title;
    String? titleBehindTheName;
    String? phoneNo;
    String? mobilePhoneNo;
    String? eMail;
    String? visitAddress;
    String? visitAddress2;
    String? visitAddressPostCode;
    String? visitAddressCity;
    String? visitAddressCountryRegionId;
    String? companyId;
    bool? blocked;
    String? cocCity;

    Data_Person({this.systemId,this.digiOfficeId,this.companyName4ps,this.no,this.firstName,this.middleName,this.surname,this.gender,this.initials,this.nameAbbreviation,this.title,this.titleBehindTheName,this.phoneNo,this.mobilePhoneNo,this.eMail,this.visitAddress,this.visitAddress2,this.visitAddressPostCode,this.visitAddressCity,this.visitAddressCountryRegionId,this.companyId,this.blocked,this.cocCity});
    Data_Person.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        systemId = json['systemId'];
        digiOfficeId = json['digiOfficeId'];
        companyName4ps = json['companyName4ps'];
        no = json['no'];
        firstName = json['firstName'];
        middleName = json['middleName'];
        surname = json['surname'];
        gender = json['gender'];
        initials = json['initials'];
        nameAbbreviation = json['nameAbbreviation'];
        title = json['title'];
        titleBehindTheName = json['titleBehindTheName'];
        phoneNo = json['phoneNo'];
        mobilePhoneNo = json['mobilePhoneNo'];
        eMail = json['eMail'];
        visitAddress = json['visitAddress'];
        visitAddress2 = json['visitAddress2'];
        visitAddressPostCode = json['visitAddressPostCode'];
        visitAddressCity = json['visitAddressCity'];
        visitAddressCountryRegionId = json['visitAddressCountryRegionId'];
        companyId = json['companyId'];
        blocked = json['blocked'];
        cocCity = json['cocCity'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'systemId': systemId,
        'digiOfficeId': digiOfficeId,
        'companyName4ps': companyName4ps,
        'no': no,
        'firstName': firstName,
        'middleName': middleName,
        'surname': surname,
        'gender': gender,
        'initials': initials,
        'nameAbbreviation': nameAbbreviation,
        'title': title,
        'titleBehindTheName': titleBehindTheName,
        'phoneNo': phoneNo,
        'mobilePhoneNo': mobilePhoneNo,
        'eMail': eMail,
        'visitAddress': visitAddress,
        'visitAddress2': visitAddress2,
        'visitAddressPostCode': visitAddressPostCode,
        'visitAddressCity': visitAddressCity,
        'visitAddressCountryRegionId': visitAddressCountryRegionId,
        'companyId': companyId,
        'blocked': blocked,
        'cocCity': cocCity
    };

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

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

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

    IDB_4PSBC_Import_Persoon({this.Header,this.Data});
    IDB_4PSBC_Import_Persoon.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_Person',context!);
        return this;
    }

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

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

TypeContext _ctx = TypeContext(library: 'dogw.klokgroep.nl', types: <String, TypeInfo> {
    'Header': TypeInfo(TypeOf.Class, create:() => Header()),
    'Response_Person': TypeInfo(TypeOf.Class, create:() => Response_Person()),
    'IDB_4PSBC_Response_Persoon': TypeInfo(TypeOf.Class, create:() => IDB_4PSBC_Response_Persoon()),
    'Data_Person': TypeInfo(TypeOf.Class, create:() => Data_Person()),
    'IDB_4PSBC_Import_Persoon': TypeInfo(TypeOf.Class, create:() => IDB_4PSBC_Import_Persoon()),
});

Dart IDB_4PSBC_Import_Persoon 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 /api/4PSBC/ImportPersoon HTTP/1.1 
Host: dogw.klokgroep.nl 
Accept: application/json
Content-Type: application/json
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","companyName4ps":"String","no":"String","firstName":"String","middleName":"String","surname":"String","gender":"String","initials":"String","nameAbbreviation":"String","title":"String","titleBehindTheName":"String","phoneNo":"String","mobilePhoneNo":"String","eMail":"String","visitAddress":"String","visitAddress2":"String","visitAddressPostCode":"String","visitAddressCity":"String","visitAddressCountryRegionId":"String","companyId":"00000000-0000-0000-0000-000000000000","blocked":false,"cocCity":"String"}}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

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