Skip to content

Commit

Permalink
feat: allow UPS standard delivery in NL & BE
Browse files Browse the repository at this point in the history
fixes INT-659
  • Loading branch information
FreekVR committed Dec 4, 2024
1 parent 65a50ea commit 2ac4d18
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions apps/sandbox/src/form/availableInPlatform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ const featureIsEnabled = (
): boolean => {
const {features} = useCarrier({carrierIdentifier, platformName});

if (!toValue(features)?.size) {
return false;
}

const isEnabled = toValue(features).has(field);

if (!isEnabled) {
Expand Down
4 changes: 3 additions & 1 deletion libs/shared/src/config/getMyParcelConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ export const getMyParcelConfig = (): PlatformConfiguration => ({
packageTypes: [PackageTypeName.Package],
deliveryTypes: [DeliveryTypeName.Standard, DeliveryTypeName.Pickup],
deliveryCountries: [
AUSTRIA,
BELGIUM,
BULGARIA,
GERMANY,
ESTONIA,
Expand All @@ -177,7 +179,7 @@ export const getMyParcelConfig = (): PlatformConfiguration => ({
LATVIA,
LITHUANIA,
LUXEMBOURG,
AUSTRIA,
NETHERLANDS,
POLAND,
PORTUGAL,
ROMANIA,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,8 @@ exports[`getPlatformConfig > gets config for platform myparcel 1`] = `
"city",
],
"deliveryCountries": [
"AT",
"BE",
"BG",
"DE",
"EE",
Expand All @@ -345,7 +347,7 @@ exports[`getPlatformConfig > gets config for platform myparcel 1`] = `
"LV",
"LT",
"LU",
"AT",
"NL",
"PL",
"PT",
"RO",
Expand Down

0 comments on commit 2ac4d18

Please sign in to comment.