(self)
return r.json()
Delete the order

        Returns:
            API response
Delete the order
Delete the order
def delete(self):
        """Delete the order

        Returns:
            API response

        """
        if (not self.order):
            self._fetch()

        # Post delete request
        r = requests.delete(self.server + '/order/' + self.uuid,
                            headers={'X-Auth-Token': self.auth_token},
                            cert=(self.tls_cert, self.tls_key))

        if (r.status_code != requests.codes.ok):
            self._print_errors(r)

        r.raise_for_status()

        # Print the response
        logger.info("Order deleted successfully")

        logger.debug("API Response:")
        logger.debug(json.dumps(r.json(), indent=4, sort_keys=True))

        return r.json()
def delete ( self ) : if ( not self . order ) : self . _fetch ( ) # Post delete request r = requests . delete ( self . server + '/order/' + self . uuid , headers = { 'X-Auth-Token' : self . auth_token } , cert = ( self . tls_cert , self . tls_key ) ) if ( r . status_code != requests . codes . ok ) : self . _print_errors ( r ) r . raise_for_status ( ) # Print the response logger . info ( "Order deleted successfully" ) logger . debug ( "API Response:" ) logger . debug ( json . dumps ( r . json ( ) , indent = 4 , sort_keys = True ) ) return r . json ( )