protected async Task <T> GetAsync <T>(UrlObjectLink <T> urlObject)
        {
            string relativeUri = this.StripUrlObject(urlObject);
            var    response    = await this._httpClient.GetAsync(relativeUri).ConfigureAwait(false);

            return(await this.ProcessHttpResponseMessage <T>(response).ConfigureAwait(false));
        }
Esempio n. 2
0
        protected async Task <T> GetAsync <T>(UrlObjectLink <T> urlObject)
        {
            this.ValidateUrlLink(urlObject);
            HttpRequestMessage httpRequest = this.CreateHttpRequest(HttpMethod.Get, urlObject.Href);
            var response = await this._httpClient.SendAsync(httpRequest).ConfigureAwait(false);

            return(await this.ProcessHttpResponseMessage <T>(response).ConfigureAwait(false));
        }
 public Task <PaymentMethodResponse> GetPaymentMethodAsync(UrlObjectLink <PaymentMethodResponse> url) =>
 ClientService.GetAsync(url);
Esempio n. 4
0
 /// <summary>
 /// Gets the refund asynchronous.
 /// </summary>
 /// <param name="url">The URL.</param>
 /// <returns>Task&lt;RefundResponse&gt;.</returns>
 public Task <RefundResponse> GetRefundAsync(UrlObjectLink <RefundResponse> url) =>
 _clientService.GetAsync(url);
Esempio n. 5
0
 public async Task <RefundResponse> GetRefundAsync(UrlObjectLink <RefundResponse> url)
 {
     return(await this.GetAsync(url).ConfigureAwait(false));
 }
Esempio n. 6
0
 public async Task <SubscriptionResponse> GetSubscriptionAsync(UrlObjectLink <SubscriptionResponse> url)
 {
     return(await this.GetAsync(url).ConfigureAwait(false));
 }
Esempio n. 7
0
 public async Task <PaymentMethodResponse> GetPaymentMethodAsync(UrlObjectLink <PaymentMethodResponse> url)
 {
     return(await this.GetAsync(url).ConfigureAwait(false));
 }
Esempio n. 8
0
 public Task <MandateResponse> GetMandateAsync(UrlObjectLink <MandateResponse> url) =>
 ClientService.GetAsync(url);
 /// <summary>
 /// Gets the customer list asynchronous.
 /// </summary>
 /// <param name="url">The URL.</param>
 /// <returns>Task&lt;ListResponse&lt;CustomerResponse&gt;&gt;.</returns>
 public Task <ListResponse <CustomerResponse> > GetCustomerListAsync(UrlObjectLink <ListResponse <CustomerResponse> > url) =>
 _clientService.GetAsync(url);
 /// <summary>
 /// Gets the customer asynchronous.
 /// </summary>
 /// <param name="url">The URL.</param>
 /// <returns>Task&lt;CustomerResponse&gt;.</returns>
 public Task <CustomerResponse> GetCustomerAsync(UrlObjectLink <CustomerResponse> url) =>
 _clientService.GetAsync(url);
Esempio n. 11
0
 public async Task <ListResponse <MandateListData> > GetMandateListAsync(UrlObjectLink <ListResponse <MandateListData> > url)
 {
     return(await this.GetAsync(url).ConfigureAwait(false));
 }
Esempio n. 12
0
 public Task <OrganizationResponse> GetOrganizationAsync(UrlObjectLink <OrganizationResponse> url) =>
 ClientService.GetAsync(url);
Esempio n. 13
0
 protected async Task <T> GetAsync <T>(UrlObjectLink <T> urlObject)
 {
     this.ValidateUrlLink(urlObject);
     return(await this.GetAsync <T>(urlObject.Href));
 }
Esempio n. 14
0
 public Task <ListResponse <SubscriptionResponse> > GetSubscriptionListAsync(UrlObjectLink <ListResponse <SubscriptionResponse> > url) =>
 ClientService.GetAsync(url);
Esempio n. 15
0
 public async Task <SettlementResponse> GetSettlementAsync(UrlObjectLink <SettlementResponse> url)
 {
     return(await this.GetAsync(url).ConfigureAwait(false));
 }
Esempio n. 16
0
 public async Task <InvoiceResponse> GetInvoiceAsync(UrlObjectLink <InvoiceResponse> url)
 {
     return(await this.GetAsync(url).ConfigureAwait(false));
 }
Esempio n. 17
0
 public Task <ListResponse <MandateResponse> > GetMandateListAsync(UrlObjectLink <ListResponse <MandateResponse> > url) =>
 ClientService.GetAsync(url);
Esempio n. 18
0
 protected async Task <T> GetAsync <T>(UrlObjectLink <T> urlObject)
 {
     this.ValidateUrlLink(urlObject);
     return(await this.GetAsync <T>(urlObject.Href).ConfigureAwait(false));;
 }
 /// <summary>
 /// Gets the settlement asynchronous.
 /// </summary>
 /// <param name="url">The URL.</param>
 /// <returns>Task&lt;SettlementResponse&gt;.</returns>
 public Task <SettlementResponse> GetSettlementAsync(UrlObjectLink <SettlementResponse> url) =>
 _clientService.GetAsync(url);
Esempio n. 20
0
 public Task <ListResponse <PaymentResponse> > GetPaymentListAsync(UrlObjectLink <ListResponse <PaymentResponse> > url) =>
 ClientService.GetAsync(url);
 /// <summary>
 /// Gets the permission asynchronous.
 /// </summary>
 /// <param name="url">The URL.</param>
 /// <returns>Task&lt;PermissionResponse&gt;.</returns>
 public Task <PermissionResponse> GetPermissionAsync(UrlObjectLink <PermissionResponse> url) =>
 _clientService.GetAsync(url);
Esempio n. 22
0
 public Task <T> GetAsync <T>(UrlObjectLink <T> urlObject)
 {
     _validatorService.ValidateUrlLink(urlObject);
     return(GetAsync <T>(urlObject.Href));
 }
Esempio n. 23
0
 /// <summary>
 /// Gets the subscription asynchronous.
 /// </summary>
 /// <param name="url">The URL.</param>
 /// <returns>Task&lt;SubscriptionResponse&gt;.</returns>
 public Task <SubscriptionResponse> GetSubscriptionAsync(UrlObjectLink <SubscriptionResponse> url) =>
 _clientService.GetAsync(url);
Esempio n. 24
0
 /// <summary>
 /// Gets the invoice asynchronous.
 /// </summary>
 /// <param name="url">The URL.</param>
 /// <returns>Task&lt;InvoiceResponse&gt;.</returns>
 public Task <InvoiceResponse> GetInvoiceAsync(UrlObjectLink <InvoiceResponse> url) =>
 _clientService.GetAsync(url);
Esempio n. 25
0
 public async Task <ListResponse <OrderResponse> > GetOrderListAsync(UrlObjectLink <ListResponse <OrderResponse> > url)
 {
     return(await this.GetAsync(url).ConfigureAwait(false));
 }
Esempio n. 26
0
 public async Task <CustomerResponse> GetCustomerAsync(UrlObjectLink <CustomerResponse> url)
 {
     return(await this.GetAsync(url).ConfigureAwait(false));
 }
Esempio n. 27
0
 public Task <ListResponse <OrderResponse> > GetOrderListAsync(UrlObjectLink <ListResponse <OrderResponse> > url) =>
 ClientService.GetAsync(url);
 public async Task <ListResponse <SubscriptionListData> > GetSubscriptionListAsync(UrlObjectLink <ListResponse <SubscriptionListData> > url)
 {
     return(await this.GetAsync(url).ConfigureAwait(false));
 }