def create!
      super do
        raise 'can not create without a domain' if invalid_domain?
        raise 'can not create wihtout a charge account' if invalid_charge_account?
        
        Invoice.post_charge_accounts_invoices(domain, charge_account, attributes)
      end
      
      reload_attributes!(Helpers.extract_uuid(last_response.headers[:location]) || uuid)
    end
def create!
      super do
        raise 'can not create without a domain' if invalid_domain?
        raise 'can not create wihtout a charge account' if invalid_charge_account?
        
        Invoice.post_charge_accounts_invoices(domain, charge_account, attributes)
      end
      
      reload_attributes!(Helpers.extract_uuid(last_response.headers[:location]) || uuid)
    end
Creates current invoice at API.

 API method: <tt>POST /charge-accounts/:uuid/invoices/</tt>

 API documentation: https://charging.financeconnect.com.br/static/docs/charges.html#post-charge-accounts-uuid-invoices