Skip to content

Commit

Permalink
Merge pull request #92 from myparcelnl/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
Reindert authored Nov 8, 2018
2 parents 78f59c7 + abe35d0 commit 765a7e9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,11 @@ Note: If you still make the request with additional options, bear in mind that y
#### 3: Letter
This package type is available for NL, EU and global shipments. The label for this shipment is unpaid meaning that you will need to pay the postal office/courier to send this letter/package. Therefore, it does not support additional options.

#### 4: Digital stamp
This package type is only available for NL shipments and does not support any additional options. Its price is calculated using the package weight.

> Note: This shipment will appear on your invoice on shipment_status 2 (pending - registered) instead of all other shipment types, which don't appear until shipment status 3. Read more: https://myparcelnl.github.io/api/#6_A_1
#### Package options
These options are only available for package type 1 (package).

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "myparcelnl/sdk",
"version": "v1.4.0",
"version": "v1.4.1",
"description": "This package is designed to send and receive data from MyParcel by means of an API.",
"homepage": "https://www.myparcel.nl",
"tags": ["MyParcel", "My Parcel", "Post NL", "PostNL"],
Expand Down
5 changes: 4 additions & 1 deletion src/Model/MyParcelConsignment.php
Original file line number Diff line number Diff line change
Expand Up @@ -1285,6 +1285,9 @@ private function canHaveOption($option = true)
*/
private function getStreetParts()
{
return explode("\n", wordwrap($this->street, self::MAX_STREET_LENGTH));
$streetWrap = wordwrap($this->street, self::MAX_STREET_LENGTH, 'BREAK_LINE');
$parts = explode("BREAK_LINE", $streetWrap);

return $parts;
}
}

0 comments on commit 765a7e9

Please sign in to comment.