aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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):