Skip to content

Commit 8690829

Browse files
authored
Upgrade to ShipService_v26 and RateService_v28 (#157)
* Upgrade to ShipService_v26 * Upgrade to RateService_v28
1 parent 33e9b61 commit 8690829

File tree

6 files changed

+23350
-21844
lines changed

6 files changed

+23350
-21844
lines changed

fedex/services/rate_service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ def __init__(self, config_obj, *args, **kwargs):
2929
self._config_obj = config_obj
3030

3131
# Holds version info for the VersionId SOAP object.
32-
self._version_info = {'service_id': 'crs', 'major': '24',
32+
self._version_info = {'service_id': 'crs', 'major': '28',
3333
'intermediate': '0', 'minor': '0'}
3434

3535
self.RequestedShipment = None
3636
"""@ivar: Holds the RequestedShipment WSDL object including the shipper, recipient and shipt time."""
3737
# Call the parent FedexBaseService class for basic setup work.
3838
super(FedexRateServiceRequest, self).__init__(
39-
self._config_obj, 'RateService_v24.wsdl', *args, **kwargs)
39+
self._config_obj, 'RateService_v28.wsdl', *args, **kwargs)
4040
self.ClientDetail.Region = config_obj.express_region_code
4141
"""@ivar: Holds the express region code from the config object."""
4242

fedex/services/ship_service.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ def __init__(self, config_obj, *args, **kwargs):
3131
# Holds version info for the VersionId SOAP object.
3232
self._version_info = {
3333
'service_id': 'ship',
34-
'major': '23',
34+
'major': '26',
3535
'intermediate': '0',
3636
'minor': '0'
3737
}
3838
self.RequestedShipment = None
3939
"""@ivar: Holds the RequestedShipment WSDL object."""
4040
# Call the parent FedexBaseService class for basic setup work.
4141
super(FedexProcessShipmentRequest, self).__init__(
42-
self._config_obj, 'ShipService_v23.wsdl', *args, **kwargs)
42+
self._config_obj, 'ShipService_v26.wsdl', *args, **kwargs)
4343

4444
def _prepare_wsdl_objects(self):
4545
"""
@@ -177,15 +177,15 @@ def __init__(self, config_obj, *args, **kwargs):
177177
self._config_obj = config_obj
178178

179179
# Holds version info for the VersionId SOAP object.
180-
self._version_info = {'service_id': 'ship', 'major': '23',
180+
self._version_info = {'service_id': 'ship', 'major': '26',
181181
'intermediate': '0', 'minor': '0'}
182182
self.DeletionControlType = None
183183
"""@ivar: Holds the DeletrionControlType WSDL object."""
184184
self.TrackingId = None
185185
"""@ivar: Holds the TrackingId WSDL object."""
186186
# Call the parent FedexBaseService class for basic setup work.
187187
super(FedexDeleteShipmentRequest, self).__init__(self._config_obj,
188-
'ShipService_v23.wsdl',
188+
'ShipService_v26.wsdl',
189189
*args, **kwargs)
190190

191191
def _prepare_wsdl_objects(self):

0 commit comments

Comments
 (0)
close