mixcoatl/admin/billing_code.py
def add(self):
        """Add a new billing code. """
        payload = {"addBillingCode": [{
            "softQuota": {"value": self.soft_quota, "currency": "USD"},
            "hardQuota": {"value": self.hard_quota, "currency": "USD"},
            "status": "ACTIVE",
            "name": self.name,
            "financeCode": self.finance_code,
            "description": self.description}]}
        response = self.post(data=json.dumps(payload))
        if self.last_error is None:
            return response
        else:
            raise BillingCodeAddException(self.last_error)
Add a new billing code. 
Add a new billing code.
Add a new billing code .
def add(self):
        payload = {"addBillingCode": [{
            "softQuota": {"value": self.soft_quota, "currency": "USD"},
            "hardQuota": {"value": self.hard_quota, "currency": "USD"},
            "status": "ACTIVE",
            "name": self.name,
            "financeCode": self.finance_code,
            "description": self.description}]}
        response = self.post(data=json.dumps(payload))
        if self.last_error is None:
            return response
        else:
            raise BillingCodeAddException(self.last_error)
def add ( self ) : payload = { "addBillingCode" : [ { "softQuota" : { "value" : self . soft_quota , "currency" : "USD" } , "hardQuota" : { "value" : self . hard_quota , "currency" : "USD" } , "status" : "ACTIVE" , "name" : self . name , "financeCode" : self . finance_code , "description" : self . description } ] } response = self . post ( data = json . dumps ( payload ) ) if self . last_error is None : return response else : raise BillingCodeAddException ( self . last_error )
Add a new billing code.
Add a new billing code .
"""Add a new billing code. """
self