From 61655591193511fd17a1bd1596fb65af5e44b340 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Wed, 15 May 2013 12:37:08 +0300 Subject: Import orders into gsxws --- gsxws/__init__.py | 1 + gsxws/core.py | 3 --- gsxws/orders.py | 17 ++++++++++++++++- 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): -- cgit v1.2.3