Ejemplo n.º 1
0
 public Task <IApiResponse> DeleteAsync(int paymentMethodId)
 {
     return(GetPaymentMethodAndFollowLinkAsync(
                paymentMethodId,
                p => p.DeleteLink,
                deleteLink => _halClient.DeleteAsync(deleteLink)));
 }
Ejemplo n.º 2
0
        public async Task <IApiResponse> DeleteAsync(int addressId)
        {
            var address = await GetAsync(addressId).ConfigureAwait(_halClient);

            return(await _halClient.DeleteAsync(address.DeleteLink)
                   .ConfigureAwait(_halClient));
        }
Ejemplo n.º 3
0
        public async Task <IApiResponse> DeleteAsync(int webhookId)
        {
            var deleteLink = await _linkFactory.CreateLinkAsync($"webhooks/{webhookId}").ConfigureAwait(_halClient);

            return(await _halClient.DeleteAsync(deleteLink).ConfigureAwait(_halClient));
        }
Ejemplo n.º 4
0
        public async Task <IApiResponse> DeleteAsync(int sellerListingId)
        {
            var deleteLink = await _linkFactory.CreateLinkAsync($"sellerlistings/{sellerListingId}").ConfigureAwait(_halClient);

            return(await _halClient.DeleteAsync(deleteLink));
        }