Exemplo n.º 1
0
        public StoreDetailAndSubmitResponse StoreDetailAndSubmitThirdParty(StoreDetailAndSubmitRequest request)
        {
            var jsonRequest  = Util.JsonOperation.SerializeRequest(request);
            var jsonResponse = _storeDetailAndSubmitThirdParty.Request(jsonRequest);

            return(JsonConvert.DeserializeObject <StoreDetailAndSubmitResponse>(jsonResponse));
        }
Exemplo n.º 2
0
        public void StoreDetailAndSubmitThirdPartySuccessTest()
        {
            Client client = CreateMockTestClientNullRequiredFieldsRequest("Mocks/payout/storeDetailAndSubmitThirdParty-success.json");
            Payout payout = new Payout(client);

            StoreDetailAndSubmitRequest  request = new StoreDetailAndSubmitRequest();
            StoreDetailAndSubmitResponse result  = payout.StoreDetailAndSubmitThirdParty(request);

            Assert.AreEqual("[payout-submit-received]", result.ResultCode);
            Assert.AreEqual("8515131751004933", result.PspReference);
            Assert.AreEqual("GREEN", result.AdditionalData["fraudResultType"]);
            Assert.AreEqual("false", result.AdditionalData["fraudManualReview"]);
        }