public ModificationResult VoidPendingRefund(VoidPendingRefundRequest request, Model.RequestOptions requestOptions) { var jsonRequest = Util.JsonOperation.SerializeRequest(request); var jsonResult = _adjustAuthorisation.Request(jsonRequest, requestOptions); return(Util.JsonOperation.Deserialize <ModificationResult>(jsonResult)); }
public async Task <ModificationResult> VoidPendingRefundAsync(VoidPendingRefundRequest request, RequestOptions requestOptions = null) { var jsonRequest = Util.JsonOperation.SerializeRequest(request); var jsonResult = await _voidPendingRefund.RequestAsync(jsonRequest, requestOptions); return(Util.JsonOperation.Deserialize <ModificationResult>(jsonResult)); }
public ModificationResult VoidPendingRefund(VoidPendingRefundRequest request, RequestOptions requestOptions = null) { var jsonRequest = Util.JsonOperation.SerializeRequest(request); var jsonResult = _voidPendingRefund.Request(jsonRequest, requestOptions); return(Util.JsonOperation.Deserialize <ModificationResult>(jsonResult)); }
public void TestPendingRefundReceived() { var client = CreateMockTestClientApiKeyBasedRequest("Mocks/voidPendingRefund-received.json"); var checkout = new Checkout(client); var modification = new Modification(client); var voidPendingRefundRequest = new VoidPendingRefundRequest(); var modificationResult = modification.VoidPendingRefund(voidPendingRefundRequest); Assert.AreEqual(modificationResult.Response, Model.Enum.ResponseEnum.VoidPendingRefundReceived); }
public ModificationResult VoidPendingRefund(VoidPendingRefundRequest request) { return(VoidPendingRefund(request, null)); }