ImzagerServices

<back to all web services

SignDocumentEYPV2

The following routes are available for this service:
All Verbs/SignDocumentEYPV2/
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class BaseResponse implements IConvertible
{
    bool? ServiceSuccessResult;
    String? ErrorMesage;

    BaseResponse({this.ServiceSuccessResult,this.ErrorMesage});
    BaseResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ServiceSuccessResult = json['ServiceSuccessResult'];
        ErrorMesage = json['ErrorMesage'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ServiceSuccessResult': ServiceSuccessResult,
        'ErrorMesage': ErrorMesage
    };

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

class SignDocumentEYPResponse extends BaseResponse implements IConvertible
{
    bool? Result;

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

    fromMap(Map<String, dynamic> json) {
        super.fromMap(json);
        Result = json['Result'];
        return this;
    }

    Map<String, dynamic> toJson() => super.toJson()..addAll({
        'Result': Result
    });

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

enum EYPImzaType
{
    ParafOzetiImza,
    PaketOzetiImza,
    NihaiOzetMuhur,
}

class SignDocumentEYPV2 implements IConvertible
{
    EYPImzaType? eypImzaType;
    String? ClientKey;
    String? AuthorizationID;
    String? UserSSN;
    String? AgentMessage;
    int? DocumentId;
    bool? stampYn;
    String? StampSSN;

    SignDocumentEYPV2({this.eypImzaType,this.ClientKey,this.AuthorizationID,this.UserSSN,this.AgentMessage,this.DocumentId,this.stampYn,this.StampSSN});
    SignDocumentEYPV2.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        eypImzaType = JsonConverters.fromJson(json['eypImzaType'],'EYPImzaType',context!);
        ClientKey = json['ClientKey'];
        AuthorizationID = json['AuthorizationID'];
        UserSSN = json['UserSSN'];
        AgentMessage = json['AgentMessage'];
        DocumentId = json['DocumentId'];
        stampYn = json['stampYn'];
        StampSSN = json['StampSSN'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'eypImzaType': JsonConverters.toJson(eypImzaType,'EYPImzaType',context!),
        'ClientKey': ClientKey,
        'AuthorizationID': AuthorizationID,
        'UserSSN': UserSSN,
        'AgentMessage': AgentMessage,
        'DocumentId': DocumentId,
        'stampYn': stampYn,
        'StampSSN': StampSSN
    };

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

TypeContext _ctx = TypeContext(library: 'imzagerservices.eyyubiye.bel.tr', types: <String, TypeInfo> {
    'BaseResponse': TypeInfo(TypeOf.Class, create:() => BaseResponse()),
    'SignDocumentEYPResponse': TypeInfo(TypeOf.Class, create:() => SignDocumentEYPResponse()),
    'EYPImzaType': TypeInfo(TypeOf.Enum, enumValues:EYPImzaType.values),
    'SignDocumentEYPV2': TypeInfo(TypeOf.Class, create:() => SignDocumentEYPV2()),
});

Dart SignDocumentEYPV2 DTOs

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

HTTP + JSV

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

POST /SignDocumentEYPV2/ HTTP/1.1 
Host: imzagerservices.eyyubiye.bel.tr 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	eypImzaType: ParafOzetiImza,
	ClientKey: String,
	AuthorizationID: String,
	UserSSN: String,
	AgentMessage: String,
	DocumentId: 0,
	stampYn: False,
	StampSSN: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Result: False,
	ServiceSuccessResult: False,
	ErrorMesage: String
}