Skip to content

Commit

Permalink
fix: fix capabilities for carriers on be platform (#231)
Browse files Browse the repository at this point in the history
- remove only recipient from bpost
- add only recipient to postnl
- enables "fake delivery" for bpost and postnl. (This allows simple
delivery options to all countries not in the `deliveryCountries` list.)
  • Loading branch information
EdieLemoine authored Jul 3, 2024
1 parent 0261978 commit c93d992
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
8 changes: 5 additions & 3 deletions libs/shared/src/config/getSendMyParcelConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,19 @@ export const getSendMyParcelConfig = (): PlatformConfiguration => ({
pickupCountries: [BELGIUM, NETHERLANDS],
features: [CarrierSetting.DeliveryDaysWindow, CarrierSetting.DropOffDays, CarrierSetting.DropOffDelay],
addressFields: [AddressField.PostalCode, AddressField.Street, AddressField.City],
shipmentOptions: [ShipmentOptionName.OnlyRecipient, ShipmentOptionName.Signature],
shipmentOptions: [ShipmentOptionName.Signature],
fakeDelivery: true,
},
{
name: CarrierName.PostNl,
subscription: SubscriptionType.Never,
packageTypes: [PackageTypeName.Package],
deliveryTypes: [DeliveryTypeName.Standard, DeliveryTypeName.Pickup],
deliveryTypes: [DeliveryTypeName.Standard, DeliveryTypeName.Pickup, CustomDeliveryType.Saturday],
deliveryCountries: [BELGIUM, NETHERLANDS],
pickupCountries: [BELGIUM, NETHERLANDS],
shipmentOptions: [ShipmentOptionName.Signature],
shipmentOptions: [ShipmentOptionName.OnlyRecipient, ShipmentOptionName.Signature],
features: [CarrierSetting.DeliveryDaysWindow, CarrierSetting.DropOffDays, CarrierSetting.DropOffDelay],
fakeDelivery: true,
},
{
name: CarrierName.Dpd,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ exports[`getPlatformConfig > gets config for platform belgie 1`] = `
"pickup",
"saturday",
],
"fakeDelivery": true,
"features": [
"deliveryDaysWindow",
"dropOffDays",
Expand All @@ -33,7 +34,6 @@ exports[`getPlatformConfig > gets config for platform belgie 1`] = `
"NL",
],
"shipmentOptions": [
"only_recipient",
"signature",
],
"subscription": 0,
Expand All @@ -46,7 +46,9 @@ exports[`getPlatformConfig > gets config for platform belgie 1`] = `
"deliveryTypes": [
"standard",
"pickup",
"saturday",
],
"fakeDelivery": true,
"features": [
"deliveryDaysWindow",
"dropOffDays",
Expand All @@ -61,6 +63,7 @@ exports[`getPlatformConfig > gets config for platform belgie 1`] = `
"NL",
],
"shipmentOptions": [
"only_recipient",
"signature",
],
"subscription": 0,
Expand Down

0 comments on commit c93d992

Please sign in to comment.