Skip to content

Commit fe1b945

Browse files
Merge branch 'hotfix'
2 parents 0c1a87e + 091a2fe commit fe1b945

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

shipment_management/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
22
from __future__ import unicode_literals
33

4-
__version__ = '2.0.9'
4+
__version__ = '2.0.10'
55

shipment_management/api.py

100755100644
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,10 @@ def get_rates(from_address, to_address, items=None, doc=None, packaging_type="YO
102102
EdtRequestType='NONE',
103103
PaymentType='SENDER',
104104
# Shipper
105-
ShipperPostalCode=from_address.get("pincode"),
105+
ShipperPostalCode=from_address.get("pincode").strip(),
106106
ShipperCountryCode=get_country_code(from_address.get("country")),
107107
# Recipient
108-
RecipientPostalCode=to_address.get("pincode"),
108+
RecipientPostalCode=to_address.get("pincode").strip(),
109109
IsResidential=to_address.get("is_residential"),
110110
RecipientCountryCode=RecipientCountryCode,
111111
# Delivery options

0 commit comments

Comments
 (0)