public async Task GetOrderStatusExtendedTest() { var client = new IpayClient("test_api", "test_api1"); var data = new GetOrderStatusExtendedRequest { OrderId = "735fdedb-ed78-41f5-8d63-56303722d126" }; var response = await client.GetOrderStatusExtended(data); response.Should().NotBeNull(); response.ActionCode.Should().Be(ActionCode.Succes); }
/// <summary> /// Получает подробное текущее состояние заказа /// </summary> public GetOrderStatusExtendedResponse GetOrderStatusExtended(GetOrderStatusExtendedParams getOrderStatusParams) { var url = _settings.BaseUrl + "/getOrderStatusExtended.do"; var request = new GetOrderStatusExtendedRequest(getOrderStatusParams) { userName = _settings.Username, password = _settings.Password }; var result = _networkClient.PostObjectViaUrlParams <GetOrderStatusExtendedResponse>(url, request, "GET"); return(result); }