DigiOffice API Services Services

<back to all web services

IDB_4PSBC_Import_ContactPerson

Import bedrijf record vanuit 4PS

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

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

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

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

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

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

class IDB_4PSBC_Response_ContactPerson 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_ContactPerson? Response;

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

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

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

class Data_ContactPerson implements IConvertible
{
    String? systemId;
    String? digiOfficeId;
    String? companyName4ps;
    String? no;
    String? crmCompanyId;
    String? crmPersonId;
    String? jobTitle;
    String? phoneNo;
    String? mobilePhoneNo;
    String? eMail;
    String? companyId;
    bool? blocked;

    Data_ContactPerson({this.systemId,this.digiOfficeId,this.companyName4ps,this.no,this.crmCompanyId,this.crmPersonId,this.jobTitle,this.phoneNo,this.mobilePhoneNo,this.eMail,this.companyId,this.blocked});
    Data_ContactPerson.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        systemId = json['systemId'];
        digiOfficeId = json['digiOfficeId'];
        companyName4ps = json['companyName4ps'];
        no = json['no'];
        crmCompanyId = json['crmCompanyId'];
        crmPersonId = json['crmPersonId'];
        jobTitle = json['jobTitle'];
        phoneNo = json['phoneNo'];
        mobilePhoneNo = json['mobilePhoneNo'];
        eMail = json['eMail'];
        companyId = json['companyId'];
        blocked = json['blocked'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'systemId': systemId,
        'digiOfficeId': digiOfficeId,
        'companyName4ps': companyName4ps,
        'no': no,
        'crmCompanyId': crmCompanyId,
        'crmPersonId': crmPersonId,
        'jobTitle': jobTitle,
        'phoneNo': phoneNo,
        'mobilePhoneNo': mobilePhoneNo,
        'eMail': eMail,
        'companyId': companyId,
        'blocked': blocked
    };

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

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

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

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

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

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

TypeContext _ctx = TypeContext(library: 'test_do_services.klokgroep.nl', types: <String, TypeInfo> {
    'Header': TypeInfo(TypeOf.Class, create:() => Header()),
    'Response_ContactPerson': TypeInfo(TypeOf.Class, create:() => Response_ContactPerson()),
    'IDB_4PSBC_Response_ContactPerson': TypeInfo(TypeOf.Class, create:() => IDB_4PSBC_Response_ContactPerson()),
    'Data_ContactPerson': TypeInfo(TypeOf.Class, create:() => Data_ContactPerson()),
    'IDB_4PSBC_Import_ContactPerson': TypeInfo(TypeOf.Class, create:() => IDB_4PSBC_Import_ContactPerson()),
});

Dart IDB_4PSBC_Import_ContactPerson 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/ImportContactpersoon HTTP/1.1 
Host: test-do-services.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","crmCompanyId":"00000000-0000-0000-0000-000000000000","crmPersonId":"00000000-0000-0000-0000-000000000000","jobTitle":"String","phoneNo":"String","mobilePhoneNo":"String","eMail":"String","companyId":"00000000-0000-0000-0000-000000000000","blocked":false}}
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","DigiOfficeContactPersonID":"String","DigiOfficeGlobalID":"00000000-0000-0000-0000-000000000000"}}