| 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()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
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: application/xml
Content-Type: application/xml
Content-Length: length
<SignDocumentEYPV2 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DaB.Imzager.Services.ServiceModel">
<AgentMessage>String</AgentMessage>
<AuthorizationID>String</AuthorizationID>
<ClientKey>String</ClientKey>
<DocumentId>0</DocumentId>
<StampSSN>String</StampSSN>
<UserSSN>String</UserSSN>
<eypImzaType>ParafOzetiImza</eypImzaType>
<stampYn>false</stampYn>
</SignDocumentEYPV2>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <SignDocumentEYPResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DaB.Imzager.Services.ServiceModel"> <ErrorMesage>String</ErrorMesage> <ServiceSuccessResult>false</ServiceSuccessResult> <Result>false</Result> </SignDocumentEYPResponse>