Skip to content

Upgrade to ShipService_v26 and RateService_v28 #157

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions fedex/services/rate_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ def __init__(self, config_obj, *args, **kwargs):
self._config_obj = config_obj

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

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

Expand Down
8 changes: 4 additions & 4 deletions fedex/services/ship_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ def __init__(self, config_obj, *args, **kwargs):
# Holds version info for the VersionId SOAP object.
self._version_info = {
'service_id': 'ship',
'major': '23',
'major': '26',
'intermediate': '0',
'minor': '0'
}
self.RequestedShipment = None
"""@ivar: Holds the RequestedShipment WSDL object."""
# Call the parent FedexBaseService class for basic setup work.
super(FedexProcessShipmentRequest, self).__init__(
self._config_obj, 'ShipService_v23.wsdl', *args, **kwargs)
self._config_obj, 'ShipService_v26.wsdl', *args, **kwargs)

def _prepare_wsdl_objects(self):
"""
Expand Down Expand Up @@ -177,15 +177,15 @@ def __init__(self, config_obj, *args, **kwargs):
self._config_obj = config_obj

# Holds version info for the VersionId SOAP object.
self._version_info = {'service_id': 'ship', 'major': '23',
self._version_info = {'service_id': 'ship', 'major': '26',
'intermediate': '0', 'minor': '0'}
self.DeletionControlType = None
"""@ivar: Holds the DeletrionControlType WSDL object."""
self.TrackingId = None
"""@ivar: Holds the TrackingId WSDL object."""
# Call the parent FedexBaseService class for basic setup work.
super(FedexDeleteShipmentRequest, self).__init__(self._config_obj,
'ShipService_v23.wsdl',
'ShipService_v26.wsdl',
*args, **kwargs)

def _prepare_wsdl_objects(self):
Expand Down
Loading