public async Task <AtomicResponse <DetailedSubscription> > DetailsAsync() { var request = new RestRequest($"{Routes.Subscriptions}/{Uuid}", Method.GET); var response = await _client.ExecuteAsync <AtomicResponse <DetailedSubscription> >(request); return(AtomicResponseDecorator.DecorateResponse(response, _client)); }
public AtomicResponse <DetailedTransaction> Details() { var request = new RestRequest($"{Routes.Transactions}/{Uuid}", Method.GET); var response = _client.Execute <AtomicResponse <DetailedTransaction> >(request); return(AtomicResponseDecorator.DecorateResponse(response, _client)); }
public async Task <AtomicResponse <DetailedTransaction> > AuthorizeAsync(int amount, string orderId) { var request = PrepareAuthorizeRequest(amount, orderId); var response = await _client.ExecuteAsync <AtomicResponse <DetailedTransaction> >(request, Method.POST); return(AtomicResponseDecorator.DecorateResponse(response, _client)); }
public AtomicResponse <DetailedSubscription> Cancel() { var request = new RestRequest($"{Routes.Subscriptions}/{Uuid}/cancel", Method.POST); var response = _client.Execute <AtomicResponse <DetailedSubscription> >(request, Method.POST); return(AtomicResponseDecorator.DecorateResponse(response, _client)); }
public async Task <AtomicResponse <DetailedTransaction> > DetailsAsync(string id) { var request = new RestRequest($"{Routes.Transactions}/{id}", Method.GET); var response = await _client.ExecuteAsync <AtomicResponse <DetailedTransaction> >(request); return(AtomicResponseDecorator.DecorateResponse(response, _client)); }
public AtomicResponse <DetailedSubscription> Details(string id) { var request = new RestRequest($"{Routes.Subscriptions}/{id}", Method.GET); var response = _client.Execute <AtomicResponse <DetailedSubscription> >(request); return(AtomicResponseDecorator.DecorateResponse(response, _client)); }
public async Task <AtomicResponse <DetailedTransaction> > CancelAsync() { var request = new RestRequest($"{Routes.Transactions}/{Uuid}/cancel", Method.POST); var response = await _client.ExecuteAsync <AtomicResponse <DetailedTransaction> >(request, Method.POST); return(AtomicResponseDecorator.DecorateResponse(response, _client)); }
public async Task <AtomicResponse <DetailedTransaction> > RefundAsync(int?amount = null) { var request = PrepareRefundRequest(amount); var response = await _client.ExecuteAsync <AtomicResponse <DetailedTransaction> >(request, Method.POST); return(AtomicResponseDecorator.DecorateResponse(response, _client)); }
public AtomicResponse <DetailedTransaction> Capture(int?amount = null) { var request = PrepareCaptureRequest(amount); var response = _client.Execute <AtomicResponse <DetailedTransaction> >(request, Method.POST); return(AtomicResponseDecorator.DecorateResponse(response, _client)); }