| All Verbs | /SignDocumentV2/{ClientKey} |
|---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class SignDocumentResponse implements IConvertible
{
bool? Result;
bool? ServiceSuccessResult;
String? ErrorMesage;
SignDocumentResponse({this.Result,this.ServiceSuccessResult,this.ErrorMesage});
SignDocumentResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Result = json['Result'];
ServiceSuccessResult = json['ServiceSuccessResult'];
ErrorMesage = json['ErrorMesage'];
return this;
}
Map<String, dynamic> toJson() => {
'Result': Result,
'ServiceSuccessResult': ServiceSuccessResult,
'ErrorMesage': ErrorMesage
};
getTypeName() => "SignDocumentResponse";
TypeContext? context = _ctx;
}
class SignDocumentV2 implements IConvertible
{
String? ClientKey;
String? AuthorizationID;
String? UserSSN;
int? DocumentId;
String? SignerSSN;
String? SignerEMail;
String? SignMessage;
SignDocumentV2({this.ClientKey,this.AuthorizationID,this.UserSSN,this.DocumentId,this.SignerSSN,this.SignerEMail,this.SignMessage});
SignDocumentV2.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ClientKey = json['ClientKey'];
AuthorizationID = json['AuthorizationID'];
UserSSN = json['UserSSN'];
DocumentId = json['DocumentId'];
SignerSSN = json['SignerSSN'];
SignerEMail = json['SignerEMail'];
SignMessage = json['SignMessage'];
return this;
}
Map<String, dynamic> toJson() => {
'ClientKey': ClientKey,
'AuthorizationID': AuthorizationID,
'UserSSN': UserSSN,
'DocumentId': DocumentId,
'SignerSSN': SignerSSN,
'SignerEMail': SignerEMail,
'SignMessage': SignMessage
};
getTypeName() => "SignDocumentV2";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'imzagerservices.eyyubiye.bel.tr', types: <String, TypeInfo> {
'SignDocumentResponse': TypeInfo(TypeOf.Class, create:() => SignDocumentResponse()),
'SignDocumentV2': TypeInfo(TypeOf.Class, create:() => SignDocumentV2()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /SignDocumentV2/{ClientKey} HTTP/1.1
Host: imzagerservices.eyyubiye.bel.tr
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
ClientKey: String,
AuthorizationID: String,
UserSSN: String,
DocumentId: 0,
SignerSSN: String,
SignerEMail: String,
SignMessage: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Result: False,
ServiceSuccessResult: False,
ErrorMesage: String
}