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

            return(await _halClient.DeleteAsync(address.DeleteLink)
                   .ConfigureAwait(_halClient));
        }
Beispiel #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));
        }
Beispiel #4
0
        public async Task <IApiResponse> DeleteAsync(int sellerListingId)
        {
            var deleteLink = await _linkFactory.CreateLinkAsync($"sellerlistings/{sellerListingId}").ConfigureAwait(_halClient);

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