public async Task <ChargeResponse> CancelAuthorisation(string chargeId) { chargeId = Uri.EscapeUriString(chargeId); return(await _serviceHelper.Delete <ChargeResponse>(string.Format("charges/{0}/capture", chargeId), overrideConfigSecretKey : _overrideConfigSecretKey)); }
public async Task <CustomerItemResponse> Delete(string customerId) { customerId = Uri.EscapeUriString(customerId); return(await _serviceHelper.Delete <CustomerItemResponse>("customers/" + customerId, overrideConfigSecretKey : _overrideConfigSecretKey)); }
public async Task <GatewayItemResponse> Delete(string gatewayid) { gatewayid = Uri.EscapeUriString(gatewayid); return(await _serviceHelper.Delete <GatewayItemResponse>("gateways/" + gatewayid, overrideConfigSecretKey : _overrideConfigSecretKey)); }
public async Task <NotificationTemplateResponse> DeleteTemplate(string notificationTemplateId) { notificationTemplateId = Uri.EscapeUriString(notificationTemplateId); return(await _serviceHelper.Delete <NotificationTemplateResponse>("notifications/templates/" + notificationTemplateId, overrideConfigSecretKey : _overrideConfigSecretKey)); }
/// <summary> /// Delete a subscription /// </summary> /// <param name="subscriptionId">id of the subscription</param> /// <returns>information on the subscription</returns> public async Task <SubscriptionItemResponse> Delete(string subscriptionId) { subscriptionId = Uri.EscapeUriString(subscriptionId); return(await _serviceHelper.Delete <SubscriptionItemResponse>("subscriptions/" + subscriptionId, overrideConfigSecretKey : _overrideConfigSecretKey)); }