Example #1
0
        public void Should_Retrieve_Bkm_Result()
        {
            RetrieveBkmRequest request = new RetrieveBkmRequest();
            request.Locale = Locale.TR.ToString();
            request.ConversationId = "123456789";
            request.Token = "token";

            Bkm bkm = Bkm.Retrieve(request, options);

            PrintResponse<Bkm>(bkm);

            Assert.AreEqual(Status.SUCCESS.ToString(), bkm.Status);
            Assert.AreEqual(Locale.TR.ToString(), bkm.Locale);
            Assert.AreEqual("123456789", bkm.ConversationId);
            Assert.IsNotNull(bkm.SystemTime);
            Assert.IsNull(bkm.ErrorCode);
            Assert.IsNull(bkm.ErrorMessage);
            Assert.IsNull(bkm.ErrorGroup);
        }
Example #2
0
 public static Bkm Retrieve(RetrieveBkmRequest request, Options options)
 {
     return RestHttpClient.Create().Post<Bkm>(options.BaseUrl + "/payment/bkm/auth/detail", GetHttpHeaders(request, options), request);
 }