def orderrun_detail(self, kitchen, pdict, return_all_data=False):
        """
        api.add_resource(OrderDetailsV2, '/v2/order/details/<string:kitchenname>', methods=['POST'])
        :param self: DKCloudAPI
        :param kitchen: string
        :param pdict: dict
        :param return_all_data: boolean
        :rtype: DKReturnCode
        """
        rc = DKReturnCode()
        if kitchen is None or isinstance(kitchen, basestring) is False:
            rc.set(rc.DK_FAIL, 'issue with kitchen')
            return rc
        url = '%s/v2/order/details/%s' % (self.get_url_for_direct_rest_call(),
                                          kitchen)
        try:
            response = requests.post(url, data=json.dumps(pdict), headers=self._get_common_headers())
            rdict = self._get_json(response)
            if False:
                import pickle
                pickle.dump(rdict, open("files/orderrun_detail.p", "wb"))
            pass
        except (RequestException, ValueError), c:
            s = "orderrun_detail: exception: %s" % str(c)
            rc.set(rc.DK_FAIL, s)
            return rc

        if DKCloudAPI._valid_response(response):
            if return_all_data is False:
                rc.set(rc.DK_SUCCESS, None, rdict['servings'])
            else:
                rc.set(rc.DK_SUCCESS, None, rdict)
            return rc
        else:
            arc = DKAPIReturnCode(rdict, response)
            rc.set(rc.DK_FAIL, arc.get_message())
            return rc
def orderrun_detail ( self , kitchen , pdict , return_all_data = False ) : rc = DKReturnCode ( ) if kitchen is None or isinstance ( kitchen , basestring ) is False : rc . set ( rc . DK_FAIL , 'issue with kitchen' ) return rc url = '%s/v2/order/details/%s' % ( self . get_url_for_direct_rest_call ( ) , kitchen ) try : response = requests . post ( url , data = json . dumps ( pdict ) , headers = self . _get_common_headers ( ) ) rdict = self . _get_json ( response ) if False : import pickle pickle . dump ( rdict , open ( "files/orderrun_detail.p" , "wb" ) ) pass except ( RequestException , ValueError ) , c : s = "orderrun_detail: exception: %s" % str ( c ) rc . set ( rc . DK_FAIL , s ) return rc if DKCloudAPI . _valid_response ( response ) : if return_all_data is False : rc . set ( rc . DK_SUCCESS , None , rdict [ 'servings' ] ) else : rc . set ( rc . DK_SUCCESS , None , rdict ) return rc else : arc = DKAPIReturnCode ( rdict , response ) rc . set ( rc . DK_FAIL , arc . get_message ( ) ) return rc
api.add_resource(OrderDetailsV2, '/v2/order/details/<string:kitchenname>', methods=['POST'])
        :param self: DKCloudAPI
        :param kitchen: string
        :param pdict: dict
        :param return_all_data: boolean
        :rtype: DKReturnCode