fix: Investigate geo zones with address checks (#8066)
* fix: Investigate geo zones with address checks * rm debug * fix constraint building checks * add more explanation
This commit is contained in:
+40
@@ -226,6 +226,10 @@ moduleIntegrationTestRunner<IFulfillmentModuleService>({
|
||||
{
|
||||
name: "test",
|
||||
geo_zones: [
|
||||
{
|
||||
type: GeoZoneType.COUNTRY,
|
||||
country_code: "fr",
|
||||
},
|
||||
{
|
||||
type: GeoZoneType.ZIP,
|
||||
country_code: "fr",
|
||||
@@ -304,6 +308,42 @@ moduleIntegrationTestRunner<IFulfillmentModuleService>({
|
||||
country_code: "fr",
|
||||
province_code: "rhone",
|
||||
city: "paris",
|
||||
},
|
||||
})
|
||||
|
||||
expect(shippingOptions).toHaveLength(3)
|
||||
|
||||
shippingOptions = await service.listShippingOptionsForContext({
|
||||
address: {
|
||||
country_code: "fr",
|
||||
province_code: "rhone",
|
||||
},
|
||||
})
|
||||
|
||||
expect(shippingOptions).toHaveLength(3)
|
||||
|
||||
shippingOptions = await service.listShippingOptionsForContext({
|
||||
address: {
|
||||
country_code: "fr",
|
||||
},
|
||||
})
|
||||
|
||||
expect(shippingOptions).toHaveLength(3)
|
||||
|
||||
shippingOptions = await service.listShippingOptionsForContext({
|
||||
address: {
|
||||
country_code: "fr",
|
||||
postal_expression: "75006",
|
||||
},
|
||||
})
|
||||
|
||||
expect(shippingOptions).toHaveLength(3)
|
||||
|
||||
shippingOptions = await service.listShippingOptionsForContext({
|
||||
address: {
|
||||
country_code: "us",
|
||||
province_code: "rhone",
|
||||
city: "paris",
|
||||
postal_expression: "75001",
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user