From 23258a4291d5419a553c8591e38cb8ad80927a89 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Tue, 8 Oct 2013 15:18:02 +0300 Subject: Added parts argument to component check --- gsxws/lookups.py | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'gsxws/lookups.py') diff --git a/gsxws/lookups.py b/gsxws/lookups.py index ea9143a..6a91e90 100644 --- a/gsxws/lookups.py +++ b/gsxws/lookups.py @@ -62,22 +62,17 @@ class Lookup(GsxObject): result.invoiceData = outfile.name return result - def component_check(self): + def component_check(self, parts=[]): """ The Component Check API allows service providers to send the information required to create a repair and check if the repair is eligible for component serial number verification for certain components listed in response. - If service providers will not be able to provide these component - serial numbers, the repairs will not be created until service providers - choose an option to send the repair for Component Check Review. - GSX validates the information and, if all the validations go through, - it obtains a status message explaining if the repair - is eligible for Component Serial Number verification - and lists the component codes for which component serial numbers are required. """ - return self._submit("repairData", "ComponentCheck", - "componentCheckDetails") + if parts: + self.orderLines = parts + + return self._submit("repairData", "ComponentCheck", "componentCheckDetails") if __name__ == '__main__': -- cgit v1.2.3