Missing enumeration value for all ServiceResponse.ResultTypeEnum
Opened this issue · 0 comments
Tüm response nesnelerinde "SECURITYERROR" durumu için enum tanımı bulunmuyor. Bu da çalışma zamanında aşağıdaki hataya neden oluyor.
Error converting value "SECURITYERROR" to type 'System.Nullable`1[gopclient.Client.Model.ParameterQueryServiceResponse+ResultTypeEnum]'.
Biz aşağıdaki gibi düzeltip devam ettik;
public enum ResultTypeEnum {
[EnumMember(Value = "SUCCESS")]
Success,
[EnumMember(Value = "BUSINESSERROR")]
Businesserror,
[EnumMember(Value = "SYSTEMERROR")]
Systemerror,
[EnumMember(Value = "SECURITYERROR")]
Securityerror
}
Request:
POST https://goptest.epias.com.tr/gop-servis/rest/offer/regions HTTP/1.1
Accept: application/json
gop-service-ticket: ST-18517-farSST1VEH4OSiQkoLHd-cas-hazel02.epias.com.tr
User-Agent: Swagger-Codegen/1.0.0/csharp
Content-Type: application/json
Host: goptest.epias.com.tr
Content-Length: 182
Accept-Encoding: gzip, deflate
{"header":[{"key":"application","value":"Demo Elk Urt"},{"key":"transactionId","value":"c270ed83-80c8-4fc8-b780-6b7776b91947"}],"body":{"deliveryDay":"2016-05-28T00:00:00.000+0300"}}
Response:
HTTP/1.1 200 OK
Connection: close
X-Powered-By: ASP.NET
Server: Microsoft-IIS/7.5
Content-Type: application/json
Date: Sat, 28 May 2016 17:14:16 GMT
X-Forwarded-For: 172.16.210.72
{"resultCode": "secure003","resultDescription": "Hatalı kullanıcı bilgisi gönderdiniz. ","body": null,"resultType": "SECURITYERROR"}