Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added transactions to the ojects available

  • Loading branch information...
commit ab7c0e59cbfd2ecf0dad755f42da9c5e6608c472 1 parent f709ec2
@discoloda discoloda authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 pycheddar/__init__.py
View
6 pycheddar/__init__.py
@@ -98,6 +98,8 @@ def request(cls, path, code = None, item_code = None, product_code = None, pass_
request, content = cls._http.request(url, method = 'POST', body = urlencode(kwargs), headers = {
'content-type': 'application/x-www-form-urlencoded'
})
+
+ print content
# parse the XML
try:
@@ -293,6 +295,7 @@ def _load_data_from_xml(self, xml, clean = True):
singles = (
('customer', 'subscriptions'),
('subscription', 'plans'),
+ ('invoice', 'transactions'),
)
for child in xml.getchildren():
@@ -811,6 +814,9 @@ class Invoice(CheddarObject):
class Charge(CheddarObject):
"""An object representing a CheddarGetter charge."""
+class Transaction(CheddarObject):
+ """An object representing a CheddarGetter transaction."""
+
# if we are using Django, and if the appropriate settings
# are already set in Django, just import them automatically
try:
Please sign in to comment.
Something went wrong with that request. Please try again.