| All Verbs | /SignDocumentEYPV2/ |
|---|
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class BaseResponse:
service_success_result: bool = False
error_mesage: Optional[str] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class SignDocumentEYPResponse(BaseResponse):
result: bool = False
class EYPImzaType(IntEnum):
PARAF_OZETİ_IMZA = 1
PAKET_OZETİ_IMZA = 2
NİHAİ_OZET_MUHUR = 3
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class SignDocumentEYPV2:
eyp_ımza_type: Optional[EYPImzaType] = None
client_key: Optional[str] = None
authorization_ı_d: Optional[str] = None
user_s_s_n: Optional[str] = None
agent_message: Optional[str] = None
document_ıd: int = 0
stamp_yn: bool = False
stamp_s_s_n: Optional[str] = None
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
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/json
Content-Type: application/json
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: application/json
Content-Length: length
{"Result":false,"ServiceSuccessResult":false,"ErrorMesage":"String"}