aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilipp Lepalaan <f@230.to>2013-05-15 12:37:08 +0300
committerFilipp Lepalaan <f@230.to>2013-05-15 12:37:08 +0300
commit61655591193511fd17a1bd1596fb65af5e44b340 (patch)
tree2bb2ac5d8c4a4b20e0f61daa7d0ccacdc6f62d79
parent0b2ab0ee81ea9028a8bf0da809d586e36664ec1e (diff)
downloadpy-gsxws-61655591193511fd17a1bd1596fb65af5e44b340.tar.gz
py-gsxws-61655591193511fd17a1bd1596fb65af5e44b340.tar.bz2
py-gsxws-61655591193511fd17a1bd1596fb65af5e44b340.zip
Import orders into gsxws
-rw-r--r--gsxws/__init__.py1
-rw-r--r--gsxws/core.py3
-rw-r--r--gsxws/orders.py17
3 files changed, 17 insertions, 4 deletions
diff --git a/gsxws/__init__.py b/gsxws/__init__.py
index 0bbc631..13a3a5b 100644
--- a/gsxws/__init__.py
+++ b/gsxws/__init__.py
@@ -8,3 +8,4 @@ from parts import *
from comptia import *
from escalations import *
from lookups import *
+from orders import *
diff --git a/gsxws/core.py b/gsxws/core.py
index ccaf16b..1fecb4c 100644
--- a/gsxws/core.py
+++ b/gsxws/core.py
@@ -387,9 +387,6 @@ class GsxObject(object):
if isinstance(v, basestring):
- if v == "":
- continue # Don't set empty values at all...
-
v = unicode(v) # "must be unicode, not str"
# convert dates to native Python type
diff --git a/gsxws/orders.py b/gsxws/orders.py
index cc1f422..2421f93 100644
--- a/gsxws/orders.py
+++ b/gsxws/orders.py
@@ -7,7 +7,22 @@ class OrderLine(GsxObject):
class APPOrder(GsxObject):
- pass
+ """
+ Description:
+ The Create APP Order API is designed to create
+ an AppleCare Protection Plan (APP) enrollment.
+ Creation of an APP enrollment requires serial number of the unit
+ for which service agreement is being ordered, customer information
+ and the billing and ship-to information.
+ On successful submission, GSX assigns an AppleCare Protection Plan
+ agreement number immediately.
+ This agreement is valid as soon as it is sold to the customer.
+ A quote is obtained for an APP and sent as part of the response.
+
+ Context:
+ The API can be invoked only after valid authentication.
+ Authentication generates a session ID that needs to be passed while using this API.
+ """
class StockingOrder(GsxObject):