Ejemplo n.º 1
0
 public async Task <OrderResponse> DeleteCancelOrderAsync(string orderId, CancellationToken ct = default(CancellationToken))
 {
     return(await this.ProcessAsync <OrderResponse>(
                PayUClientUrlBuilder.BuilOrderIdUrl(this.settings.Url, this.settings.ApiVersion, orderId),
                HttpMethod.Delete,
                ct));
 }
Ejemplo n.º 2
0
 public OrderResponse DeleteCancelOrder(string orderId)
 {
     return(this.Process <OrderResponse>(
                PayUClientUrlBuilder.BuilOrderIdUrl(this.settings.Url, this.settings.ApiVersion, orderId),
                HttpMethod.Delete));
 }
 public static void BuilOrderIdUrl_CorrectParameters_CorrectBuildedUrl()
 {
     Assert.Equal(new Uri("http://localhost:3000/api/v2.1/orders/orderId"),
                  PayUClientUrlBuilder.BuilOrderIdUrl("http://localhost:3000", "v2.1", "orderId"));
 }
Ejemplo n.º 4
0
 public OrderGetResponse GetOrder(string orderId)
 {
     return(this.Process <OrderGetResponse>(
                PayUClientUrlBuilder.BuilOrderIdUrl(this.settings.Url, this.settings.ApiVersion, orderId),
                HttpMethod.Get));
 }
 public static void BuilOrderIdUrl_NullEmptyApiVersion_ThrowsArgumentException(string apiVersion, string orderId)
 {
     Assert.Throws <ArgumentException>(() => PayUClientUrlBuilder.BuilOrderIdUrl("http://localhost:3000", apiVersion, orderId));
 }