Example #1
0
        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));
        }
Example #2
0
        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));
        }
Example #3
0
        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));
        }
Example #4
0
        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));
        }
Example #5
0
        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));
        }
Example #6
0
        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));
        }
Example #7
0
        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));
        }
Example #8
0
        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));
        }
Example #9
0
        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));
        }