Ask to cancel the portability

REST: POST /telephony/{billingAccount}/portability/{id}/cancel
@param reason [required] The cancellation reason
@param billingAccount [required] The name of your billingAccount
@param id [required] The ID of the portability
499109
public void billingAccount_portability_id_cancel_POST(String billingAccount, Long id, String reason) throws IOException {
		String qPath = "/telephony/{billingAccount}/portability/{id}/cancel";
		StringBuilder sb = path(qPath, billingAccount, id);
		HashMap<String, Object>o = new HashMap<String, Object>();
		addBody(o, "reason", reason);
		exec(qPath, "POST", sb.toString(), o);
	}
1338459
public void billingAccount_cancelTermination_POST(String billingAccount) throws IOException {
		String qPath = "/telephony/{billingAccount}/cancelTermination";
		StringBuilder sb = path(qPath, billingAccount);
		exec(qPath, "POST", sb.toString(), null);
	}
35429
protected void deactivate(ComponentContext context, int reason) throws Exception {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
            Tr.event(this, tc, "Deactivating, reason=" + reason);
        }

        this.registry.removeAll();
    }
194095
public void _cancel(int id) {
        if ( doOnSubscribe != null ) {
            doOnSubscribe.add(() -> _cancel(id));
        } else
            subscribers.remove(id);
    }
1053173
@Override
	public Response cancelReserveRN(String corpNum, String requestNum)
			throws PopbillException {
		return cancelReserveRN(corpNum, requestNum, null);
	}
1195504
void cancel(AsyncChannelFuture future, Exception reason) throws ClosedChannelException, IOException {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
            Tr.entry(tc, "cancel");
        }
        if (!isOpen()) {
            if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                Tr.debug(tc, "Cancel request on closed connection");
            }
            future.setCancelInProgress(0);
            throw new ClosedChannelException();
        }

        // Cannot cancel a completed call.
        if (future.isCompleted()) {
            if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                Tr.debug(tc, "Cancel request on completed future");
            }
            future.setCancelInProgress(0);
            if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
                Tr.exit(tc, "cancel");
            }
            return;
        }

        long callid;
        if (((AsyncFuture) future).isRead()) {
            callid = this.readIOCB.getCallIdentifier();
        } else {
            callid = this.writeIOCB.getCallIdentifier();
        }

        int rc = provider.cancel2(this.channelIdentifier, callid);
        if (rc == 0) {
            // Mark the future completed with an Exception
            if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                Tr.debug(tc, "Cancel Successful, resetting CancelInProgress state to 0");
            }
            future.setCancelInProgress(0);
            future.completed(reason);
        } else {
            // could not cancel
            if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                Tr.debug(tc, "Cancel could not be completed");
            }
            future.setCancelInProgress(0);
        }

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
            Tr.exit(tc, "cancel");
        }
    }
645809
public void billingAccount_timeCondition_serviceName_condition_id_DELETE(String billingAccount, String serviceName, Long id) throws IOException {
		String qPath = "/telephony/{billingAccount}/timeCondition/{serviceName}/condition/{id}";
		StringBuilder sb = path(qPath, billingAccount, serviceName, id);
		exec(qPath, "DELETE", sb.toString(), null);
	}
819878
def cancel_reason(self, cancel_reason):
        

        if cancel_reason is None:
            raise ValueError("Invalid value for `cancel_reason`, must not be `None`")
        if len(cancel_reason) > 100:
            raise ValueError("Invalid value for `cancel_reason`, length must be less than `100`")

        self._cancel_reason = cancel_reason
1188484
public OvhTask billingAccount_ddi_serviceName_changeDestination_POST(String billingAccount, String serviceName, String destination) throws IOException {
		String qPath = "/telephony/{billingAccount}/ddi/{serviceName}/changeDestination";
		StringBuilder sb = path(qPath, billingAccount, serviceName);
		HashMap<String, Object>o = new HashMap<String, Object>();
		addBody(o, "destination", destination);
		String resp = exec(qPath, "POST", sb.toString(), o);
		return convertTo(resp, OvhTask.class);
	}
16610
@Override
    public Response cancelReserveRN(String CorpNum, String requestNum) throws PopbillException {
        return cancelReserveRN(CorpNum, requestNum, null);
    }
1106565
public OvhOvhPabxRecord billingAccount_easyHunting_serviceName_records_id_GET(String billingAccount, String serviceName, Long id) throws IOException {
		String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/records/{id}";
		StringBuilder sb = path(qPath, billingAccount, serviceName, id);
		String resp = exec(qPath, "GET", sb.toString(), null);
		return convertTo(resp, OvhOvhPabxRecord.class);
	}
375327
def cancel_withdraw(self, address_id, _async=False):
        
        params = {}
        path = f'/v1/dw/withdraw-virtual/{address_id}/cancel'

        return api_key_post(params, path, _async=_async)
230074
public static ApruveResponse<SubscriptionCancelResponse> cancel(
			String subscriptionId) {
		return ApruveClient.getInstance().post(getCancelPath(subscriptionId),
				"", SubscriptionCancelResponse.class);
	}
67155
def cancel_subnet(self, subnet_id):
        
        subnet = self.get_subnet(subnet_id, mask='id, billingItem.id')
        if "billingItem" not in subnet:
            raise exceptions.SoftLayerError("subnet %s can not be cancelled"
                                            " " % subnet_id)
        billing_id = subnet['billingItem']['id']
        return self.client['Billing_Item'].cancelService(id=billing_id)
318
public void deleteLocalSubscriptionControlByID(String id) 
  throws SIMPInvalidRuntimeIDException, SIMPControllableNotFoundException, SIMPException, 
         SIDurableSubscriptionNotFoundException, SIDestinationLockedException, SIResourceException, SIIncorrectCallException
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "deleteLocalSubscriptionControlByID", id);
    
    assertMessageHandlerNotCorrupt();

    ControllableSubscription sub = getSubscription(id);

    if (!sub.isDurable())
    {
      if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
        SibTr.exit(
          tc,
          "deleteLocalSubscriptionControlByID",
          "SIMPIncorrectCallException");
          
      throw new SIMPIncorrectCallException(
        nls.getFormattedMessage(
          "SUBSCRIPTION_DELETE_ERROR_CWSIP0272",
          new Object[]{id},
          null));  
    }
    
    HashMap durableSubs = destinationManager.getDurableSubscriptionsTable();    

    synchronized (durableSubs)
    {
      // Look up the consumer dispatcher for this subId in the system durable subs list
      ConsumerDispatcher cd = 
        (ConsumerDispatcher) durableSubs.get(sub.getConsumerDispatcherState().getSubscriberID());
      
      // Does the subscription exist, if it doesn't, throw a 
      // SIDestinationNotFoundException
      if (cd == null)
      {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
          SibTr.exit(tc, "deleteSubscription", "SIMPControllableNotFoundException");
          
        throw new SIMPControllableNotFoundException(          
          nls.getFormattedMessage(
            "SUBSCRIPTION_DOESNT_EXIST_ERROR_CWSIP0146",
            new Object[] { sub.getConsumerDispatcherState().getSubscriberID(),
                           messageProcessor.getMessagingEngineName() },
          null));
      }        

      // Obtain the destination from the queueing points
      DestinationHandler destination = cd.getDestination();

      // Call the deleteDurableSubscription method on the destination
      // NOTE: this assumes the durable subscription is always local
      destination.deleteDurableSubscription(sub.getConsumerDispatcherState().getSubscriberID(), 
                                            messageProcessor.getMessagingEngineName());
    }

    
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "deleteLocalSubscriptionControlByID");
  }
1320487
public void cancelMFSIP(KiteConnect kiteConnect) throws KiteException, IOException {
        kiteConnect.cancelMFSIP("504341441825418");
        System.out.println("cancel sip successful");
    }
135906
public OvhConferenceWebAccess billingAccount_conference_serviceName_webAccess_id_GET(String billingAccount, String serviceName, Long id) throws IOException {
		String qPath = "/telephony/{billingAccount}/conference/{serviceName}/webAccess/{id}";
		StringBuilder sb = path(qPath, billingAccount, serviceName, id);
		String resp = exec(qPath, "GET", sb.toString(), null);
		return convertTo(resp, OvhConferenceWebAccess.class);
	}