예제 #1
0
        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));
        }
예제 #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));
        }
예제 #3
0
 public Task <PaymentMethodResponse> GetPaymentMethodAsync(UrlObjectLink <PaymentMethodResponse> url) =>
 ClientService.GetAsync(url);
예제 #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);
예제 #5
0
 public async Task <RefundResponse> GetRefundAsync(UrlObjectLink <RefundResponse> url)
 {
     return(await this.GetAsync(url).ConfigureAwait(false));
 }
예제 #6
0
 public async Task <SubscriptionResponse> GetSubscriptionAsync(UrlObjectLink <SubscriptionResponse> url)
 {
     return(await this.GetAsync(url).ConfigureAwait(false));
 }
예제 #7
0
 public async Task <PaymentMethodResponse> GetPaymentMethodAsync(UrlObjectLink <PaymentMethodResponse> url)
 {
     return(await this.GetAsync(url).ConfigureAwait(false));
 }
예제 #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);
예제 #11
0
 public async Task <ListResponse <MandateListData> > GetMandateListAsync(UrlObjectLink <ListResponse <MandateListData> > url)
 {
     return(await this.GetAsync(url).ConfigureAwait(false));
 }
예제 #12
0
 public Task <OrganizationResponse> GetOrganizationAsync(UrlObjectLink <OrganizationResponse> url) =>
 ClientService.GetAsync(url);
예제 #13
0
 protected async Task <T> GetAsync <T>(UrlObjectLink <T> urlObject)
 {
     this.ValidateUrlLink(urlObject);
     return(await this.GetAsync <T>(urlObject.Href));
 }
예제 #14
0
 public Task <ListResponse <SubscriptionResponse> > GetSubscriptionListAsync(UrlObjectLink <ListResponse <SubscriptionResponse> > url) =>
 ClientService.GetAsync(url);
예제 #15
0
 public async Task <SettlementResponse> GetSettlementAsync(UrlObjectLink <SettlementResponse> url)
 {
     return(await this.GetAsync(url).ConfigureAwait(false));
 }
예제 #16
0
 public async Task <InvoiceResponse> GetInvoiceAsync(UrlObjectLink <InvoiceResponse> url)
 {
     return(await this.GetAsync(url).ConfigureAwait(false));
 }
예제 #17
0
 public Task <ListResponse <MandateResponse> > GetMandateListAsync(UrlObjectLink <ListResponse <MandateResponse> > url) =>
 ClientService.GetAsync(url);
예제 #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);
예제 #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);
예제 #22
0
 public Task <T> GetAsync <T>(UrlObjectLink <T> urlObject)
 {
     _validatorService.ValidateUrlLink(urlObject);
     return(GetAsync <T>(urlObject.Href));
 }
예제 #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);
예제 #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);
예제 #25
0
 public async Task <ListResponse <OrderResponse> > GetOrderListAsync(UrlObjectLink <ListResponse <OrderResponse> > url)
 {
     return(await this.GetAsync(url).ConfigureAwait(false));
 }
예제 #26
0
 public async Task <CustomerResponse> GetCustomerAsync(UrlObjectLink <CustomerResponse> url)
 {
     return(await this.GetAsync(url).ConfigureAwait(false));
 }
예제 #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));
 }