Skip to content

Commit c18764b

Browse files
committed
chore: revert seko tests request
1 parent 9af0f08 commit c18764b

File tree

1 file changed

+36
-84
lines changed

1 file changed

+36
-84
lines changed

modules/connectors/seko/tests/seko/test_rate.py

Lines changed: 36 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -43,93 +43,45 @@ def test_parse_rate_response(self):
4343

4444

4545
RatePayload = {
46-
"customs": {
47-
"options": {
48-
"ioss": "IM3720021461",
49-
"eori_number": "GB457532476000"
46+
"shipper": {
47+
"company_name": "TESTING COMPANY",
48+
"address_line1": "17 VULCAN RD",
49+
"city": "CANNING VALE",
50+
"postal_code": "6155",
51+
"country_code": "AU",
52+
"person_name": "TEST USER",
53+
"state_code": "WA",
54+
"email": "test@gmail.com",
55+
"phone_number": "(07) 3114 1499",
5056
},
51-
"incoterm": "DAP",
52-
"commodities": [
53-
{
54-
"sku": "1234567890",
55-
"title": "iPod Nano",
56-
"weight": 1,
57-
"quantity": 1,
58-
"weight_unit": "KG",
59-
"value_amount": 17.26,
60-
"origin_country": "CN",
61-
"value_currency": "EUR"
62-
}
63-
],
64-
"content_type": "merchandise"
65-
},
66-
"options": {
67-
"currency": "EUR",
68-
"shipping_date": "2025-07-14T23:47",
69-
"declared_value": 17.26,
70-
"seko_reference_2": "TSGBDERMUTFR002728973"
71-
},
72-
"parcels": [
73-
{
74-
"items": [
57+
"recipient": {
58+
"address_line1": "DestinationStreetAddress",
59+
"city": "Christchurch",
60+
"postal_code": "8061",
61+
"country_code": "NZ",
62+
"person_name": "DestinationName",
63+
"phone_number": "123456789",
64+
"email": "destinationemail@email.com",
65+
"state_tax_id": "123456",
66+
},
67+
"parcels": [
7568
{
76-
"sku": "1234567890",
77-
"title": "iPod Nano",
78-
"weight": 1,
79-
"quantity": 1,
80-
"weight_unit": "KG",
81-
"value_amount": 17.26,
82-
"origin_country": "CN",
83-
"value_currency": "EUR"
69+
"height": 1,
70+
"length": 1,
71+
"weight": 0.1,
72+
"width": 10,
73+
"dimension_unit": "CM",
74+
"weight_unit": "KG",
75+
"description": "SATCHEL",
76+
"packaging_type": "small_box",
8477
}
85-
],
86-
"width": 30,
87-
"height": 16,
88-
"length": 40,
89-
"weight": 1.2,
90-
"weight_unit": "KG",
91-
"dimension_unit": "CM",
92-
"reference_number": "ZS034789256GB"
93-
}
94-
],
95-
"shipper": {
96-
"city": "London",
97-
"email": "customer@teleship.com",
98-
"state_code": "Egham",
99-
"person_name": "Teleship C/O SEKO Logistics",
100-
"postal_code": "TW20 8EY",
101-
"residential": True,
102-
"company_name": "Jane",
103-
"country_code": "GB",
104-
"phone_number": "+447557544686",
105-
"address_line1": "Unit 11, Egham Business Park",
106-
"address_line2": "Ten Acre Lane"
107-
},
108-
"recipient": {
109-
"city": "Munchen",
110-
"email": "customer@teleship.com",
111-
"person_name": "Lepold",
112-
"postal_code": "80804",
113-
"residential": True,
114-
"company_name": "Lepold",
115-
"country_code": "DE",
116-
"phone_number": "+447557544686",
117-
"address_line1": "Leopoldstrasse 119"
118-
},
119-
"reference": "TSGBDERMUTFR002728973",
120-
"return_address": {
121-
"city": "London",
122-
"email": "customer@teleship.com",
123-
"state_code": "Egham",
124-
"person_name": "Teleship C/O SEKO Logistics",
125-
"postal_code": "TW20 8EY",
126-
"residential": True,
127-
"company_name": "Teleship Inc",
128-
"country_code": "GB",
129-
"phone_number": "+447557544686",
130-
"address_line1": "Unit 11, Egham Business Park",
131-
"address_line2": "Ten Acre Lane"
132-
}
78+
],
79+
"options": {
80+
"saturday_delivery": False,
81+
"seko_is_signature_required": True,
82+
"destination_instructions": "Desinationdeliveryinstructions",
83+
},
84+
"reference": "ORDER123",
13385
}
13486

13587
ParsedRateResponse = [

0 commit comments

Comments
 (0)