mundiapi/controllers/subscriptions_controller.py
def cancel_subscription(self,
                            subscription_id,
                            request=None,
                            idempotency_key=None):
        """Does a DELETE request to /subscriptions/{subscription_id}.

        Cancels a subscription

        Args:
            subscription_id (string): Subscription id
            request (CreateCancelSubscriptionRequest, optional): Request for
                cancelling a subscription
            idempotency_key (string, optional): TODO: type description here.
                Example: 

        Returns:
            GetSubscriptionResponse: Response from the API. 

        Raises:
            APIException: When an error occurs while fetching the data from
                the remote API. This exception includes the HTTP Response
                code, an error message, and the HTTP body that was received in
                the request.

        """

        # Prepare query URL
        _url_path = '/subscriptions/{subscription_id}'
        _url_path = APIHelper.append_url_with_template_parameters(_url_path, { 
            'subscription_id': subscription_id
        })
        _query_builder = Configuration.base_uri
        _query_builder += _url_path
        _query_url = APIHelper.clean_url(_query_builder)

        # Prepare headers
        _headers = {
            'accept': 'application/json',
            'content-type': 'application/json; charset=utf-8',
            'idempotency-key': idempotency_key
        }

        # Prepare and execute request
        _request = self.http_client.delete(_query_url, headers=_headers, parameters=APIHelper.json_serialize(request))
        BasicAuth.apply(_request)
        _context = self.execute_request(_request)
        self.validate_response(_context)

        # Return appropriate type
        return APIHelper.json_deserialize(_context.response.raw_body, GetSubscriptionResponse.from_dictionary)
Does a DELETE request to /subscriptions/{subscription_id}.

        Cancels a subscription

        Args:
            subscription_id (string): Subscription id
            request (CreateCancelSubscriptionRequest, optional): Request for
                cancelling a subscription
            idempotency_key (string, optional): TODO: type description here.
                Example: 

        Returns:
            GetSubscriptionResponse: Response from the API. 

        Raises:
            APIException: When an error occurs while fetching the data from
                the remote API. This exception includes the HTTP Response
                code, an error message, and the HTTP body that was received in
                the request.

        
Does a DELETE request to /subscriptions/{subscription_id}.
Cancels a subscription
Does a DELETE request to / subscriptions / { subscription_id } . Cancels a subscription
def cancel_subscription(self,
                            subscription_id,
                            request=None,
                            idempotency_key=None):
        _url_path = '/subscriptions/{subscription_id}'
        _url_path = APIHelper.append_url_with_template_parameters(_url_path, { 
            'subscription_id': subscription_id
        })
        _query_builder = Configuration.base_uri
        _query_builder += _url_path
        _query_url = APIHelper.clean_url(_query_builder)
        _headers = {
            'accept': 'application/json',
            'content-type': 'application/json; charset=utf-8',
            'idempotency-key': idempotency_key
        }
        _request = self.http_client.delete(_query_url, headers=_headers, parameters=APIHelper.json_serialize(request))
        BasicAuth.apply(_request)
        _context = self.execute_request(_request)
        self.validate_response(_context)
        return APIHelper.json_deserialize(_context.response.raw_body, GetSubscriptionResponse.from_dictionary)
def cancel_subscription ( self , subscription_id , request = None , idempotency_key = None ) : _url_path = '/subscriptions/{subscription_id}' _url_path = APIHelper . append_url_with_template_parameters ( _url_path , { 'subscription_id' : subscription_id } ) _query_builder = Configuration . base_uri _query_builder += _url_path _query_url = APIHelper . clean_url ( _query_builder ) _headers = { 'accept' : 'application/json' , 'content-type' : 'application/json; charset=utf-8' , 'idempotency-key' : idempotency_key } _request = self . http_client . delete ( _query_url , headers = _headers , parameters = APIHelper . json_serialize ( request ) ) BasicAuth . apply ( _request ) _context = self . execute_request ( _request ) self . validate_response ( _context ) return APIHelper . json_deserialize ( _context . response . raw_body , GetSubscriptionResponse . from_dictionary )
Does a DELETE request to /subscriptions/{subscription_id}.
Does a DELETE request to / subscriptions / { subscription_id } .
"""Does a DELETE request to /subscriptions/{subscription_id}.

        Cancels a subscription

        Args:
            subscription_id (string): Subscription id
            request (CreateCancelSubscriptionRequest, optional): Request for
                cancelling a subscription
            idempotency_key (string, optional): TODO: type description here.
                Example: 

        Returns:
            GetSubscriptionResponse: Response from the API. 

        Raises:
            APIException: When an error occurs while fetching the data from
                the remote API. This exception includes the HTTP Response
                code, an error message, and the HTTP body that was received in
                the request.

        """ # Prepare query URL
 # Prepare headers
 # Prepare and execute request
 # Return appropriate type

Response from the API.
Response from the API .
GetSubscriptionResponse
When an error occurs while fetching the data from
the remote API. This exception includes the HTTP Response
code, an error message, and the HTTP body that was received in
the request.
When an error occurs while fetching the data from the remote API . This exception includes the HTTP Response code an error message and the HTTP body that was received in the request .
APIException
self
subscription_id
None
request
Request for
cancelling a subscription
Request for cancelling a subscription
idempotency_key
type description here.
Example.
type description here . Example .