Ejemplo n.º 1
0
        public async Task <Addresses> GetAsync(AddressRequest request)
        {
            Requires.ArgumentNotNull(request, nameof(request));

            var user = await _userClient.GetAsync().ConfigureAwait(_halClient);

            return(await _halClient.GetAsync <Addresses>(user.AddressesLink,
                                                         request).ConfigureAwait(_halClient));
        }
Ejemplo n.º 2
0
        public async Task <PaymentMethods> GetAsync(PaymentMethodRequest request)
        {
            var user = await _userClient.GetAsync().ConfigureAwait(_halClient);

            return(await _halClient.GetAsync <PaymentMethods>(user.PaymentMethodsLink, request).ConfigureAwait(_halClient));
        }
Ejemplo n.º 3
0
        public async Task <Webhooks> GetAsync(WebhookRequest request)
        {
            var user = await _userClient.GetAsync().ConfigureAwait(_halClient);

            return(await _halClient.GetAsync <Webhooks>(user.WebhooksLink, request).ConfigureAwait(_halClient));
        }
Ejemplo n.º 4
0
        public async Task <PagedResource <Purchase> > GetAsync(PurchaseRequest request)
        {
            var user = await _userClient.GetAsync().ConfigureAwait(_halClient);

            return(await _halClient.GetAsync <PagedResource <Purchase> >(user.PurchasesLink, request).ConfigureAwait(_halClient));
        }