Skip to content

Commit

Permalink
feat: add support for DPD BBP (#291)
Browse files Browse the repository at this point in the history
INT-598
  • Loading branch information
GravendeelJochem authored Aug 2, 2024
1 parent aaaac10 commit 4d1d6f3
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions config/platform/myparcel.php
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@
'capabilities' => [
'packageTypes' => [
DeliveryOptions::PACKAGE_TYPE_PACKAGE_NAME,
DeliveryOptions::PACKAGE_TYPE_MAILBOX_NAME,
],
'deliveryTypes' => [
DeliveryOptions::DELIVERY_TYPE_STANDARD_NAME,
Expand Down
2 changes: 1 addition & 1 deletion config/schema/myparcel/order/dpd/mailbox.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"enum": [0]
},
"insurance": {
"enum": [0, null]
"enum": [0, 52000]
},
"largeFormat": {
"enum": [0]
Expand Down
5 changes: 5 additions & 0 deletions config/validation/myparcel/order.php
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,11 @@
[
'name' => CountryCodes::CC_NL,
'packageType' => [
[
'id' => DeliveryOptions::PACKAGE_TYPE_PACKAGE_ID,
'name' => DeliveryOptions::PACKAGE_TYPE_PACKAGE_NAME,
'schema' => 'order/dpd/base',
],
[
'id' => DeliveryOptions::PACKAGE_TYPE_MAILBOX_ID,
'name' => DeliveryOptions::PACKAGE_TYPE_MAILBOX_NAME,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"labelDescriptionLength": 45,
"needsCustomerInfo": true
},
"packageTypes": ["package"],
"packageTypes": ["package", "mailbox"],
"shipmentOptions": {
"ageCheck": false,
"onlyRecipient": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"labelDescriptionLength": 45,
"needsCustomerInfo": true
},
"packageTypes": ["package"],
"packageTypes": ["package", "mailbox"],
"shipmentOptions": {
"ageCheck": false,
"onlyRecipient": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
{
"name": "dpd",
"capabilities": {
"packageTypes": ["package"],
"packageTypes": ["package", "mailbox"],
"deliveryTypes": ["standard", "pickup"],
"shipmentOptions": {
"ageCheck": false,
Expand Down

0 comments on commit 4d1d6f3

Please sign in to comment.