mixcoatl/admin/billing_code.py
def all(cls, keys_only=False, endpoint=None, **kwargs):
        """Get all visible billing codes

        .. note::

            The keys used to make the original request determine result visibility

        :param keys_only: Only return :attr:`billing_code_id` instead of :class:`BillingCode` objects
        :type keys_only: bool.
        :param detail: The level of detail to return - `basic` or `extended`
        :type detail: str.
        :returns: `list` - of :class:`BillingCode` or :attr:`billing_code_id`
        :raises: :class:`BillingCodeException`
        """
        r = Resource(cls.PATH, endpoint=endpoint)
        params = {}

        if 'details' in kwargs:
            r.request_details = kwargs['details']
        else:
            r.request_details = 'basic'

        x = r.get()
        if r.last_error is None:
            if keys_only is True:
                return [i[camelize(cls.PRIMARY_KEY)] for i in x[cls.COLLECTION_NAME]]
            else:
                return [type(cls.__name__, (object,), i) for i in uncamel_keys(x)[uncamel(cls.COLLECTION_NAME)]]
        else:
            raise BillingCodeException(r.last_error)
Get all visible billing codes

        .. note::

            The keys used to make the original request determine result visibility

        :param keys_only: Only return :attr:`billing_code_id` instead of :class:`BillingCode` objects
        :type keys_only: bool.
        :param detail: The level of detail to return - `basic` or `extended`
        :type detail: str.
        :returns: `list` - of :class:`BillingCode` or :attr:`billing_code_id`
        :raises: :class:`BillingCodeException`
        
Get all visible billing codes
note:.

The keys used to make the original request determine result visibility
Get all visible billing codes note : . The keys used to make the original request determine result visibility
def all(cls, keys_only=False, endpoint=None, **kwargs):
        r = Resource(cls.PATH, endpoint=endpoint)
        params = {}
        if 'details' in kwargs:
            r.request_details = kwargs['details']
        else:
            r.request_details = 'basic'
        x = r.get()
        if r.last_error is None:
            if keys_only is True:
                return [i[camelize(cls.PRIMARY_KEY)] for i in x[cls.COLLECTION_NAME]]
            else:
                return [type(cls.__name__, (object,), i) for i in uncamel_keys(x)[uncamel(cls.COLLECTION_NAME)]]
        else:
            raise BillingCodeException(r.last_error)
def all ( cls , keys_only = False , endpoint = None , ** kwargs ) : r = Resource ( cls . PATH , endpoint = endpoint ) params = { } if 'details' in kwargs : r . request_details = kwargs [ 'details' ] else : r . request_details = 'basic' x = r . get ( ) if r . last_error is None : if keys_only is True : return [ i [ camelize ( cls . PRIMARY_KEY ) ] for i in x [ cls . COLLECTION_NAME ] ] else : return [ type ( cls . __name__ , ( object , ) , i ) for i in uncamel_keys ( x ) [ uncamel ( cls . COLLECTION_NAME ) ] ] else : raise BillingCodeException ( r . last_error )
Get all visible billing codes
.. note::
Get all visible billing codes .. note ::
"""Get all visible billing codes

        .. note::

            The keys used to make the original request determine result visibility

        :param keys_only: Only return :attr:`billing_code_id` instead of :class:`BillingCode` objects
        :type keys_only: bool.
        :param detail: The level of detail to return - `basic` or `extended`
        :type detail: str.
        :returns: `list` - of :class:`BillingCode` or :attr:`billing_code_id`
        :raises: :class:`BillingCodeException`
        """
`list` - of :class:`BillingCode` or :attr:`billing_code_id`
` list ` - of : class : ` BillingCode ` or : attr : ` billing_code_id `
None
cls
keys_only
Only return :attr:`billing_code_id` instead of :class:`BillingCode` objects
Only return : attr : ` billing_code_id ` instead of : class : ` BillingCode ` objects
endpoint
detail
The level of detail to return - `basic` or `extended`
The level of detail to return - ` basic ` or ` extended `