Ejemplo n.º 1
0
 public async Task <ChargeResponse> CancelAuthorisation(string chargeId)
 {
     chargeId = Uri.EscapeUriString(chargeId);
     return(await _serviceHelper.Delete <ChargeResponse>(string.Format("charges/{0}/capture", chargeId), overrideConfigSecretKey : _overrideConfigSecretKey));
 }
Ejemplo n.º 2
0
 public async Task <CustomerItemResponse> Delete(string customerId)
 {
     customerId = Uri.EscapeUriString(customerId);
     return(await _serviceHelper.Delete <CustomerItemResponse>("customers/" + customerId, overrideConfigSecretKey : _overrideConfigSecretKey));
 }
Ejemplo n.º 3
0
 public async Task <GatewayItemResponse> Delete(string gatewayid)
 {
     gatewayid = Uri.EscapeUriString(gatewayid);
     return(await _serviceHelper.Delete <GatewayItemResponse>("gateways/" + gatewayid, overrideConfigSecretKey : _overrideConfigSecretKey));
 }
Ejemplo n.º 4
0
 public async Task <NotificationTemplateResponse> DeleteTemplate(string notificationTemplateId)
 {
     notificationTemplateId = Uri.EscapeUriString(notificationTemplateId);
     return(await _serviceHelper.Delete <NotificationTemplateResponse>("notifications/templates/" + notificationTemplateId, overrideConfigSecretKey : _overrideConfigSecretKey));
 }
Ejemplo n.º 5
0
 /// <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));
 }