Skip to content

Commit

Permalink
Merge pull request #196 from myparcelnl/remove-early-pickups
Browse files Browse the repository at this point in the history
Remove Pickup Express
  • Loading branch information
RichardPerdaan authored Dec 23, 2019
2 parents e95845a + 1e2398f commit a8697c3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ Available options:
- only_recipient: Deliver the package only at address of the intended recipient. This option is required for Morning and Evening delivery types.
- Set: `setOnlyRecipient(true)`
- Get: `isOnlyRecipient()`
- signature: Recipient must sign for the package. This option is required for Pickup and Pickup express delivery types.
- signature: Recipient must sign for the package. This option is required for Pickup delivery type.
- Set: `setSignature(true)`
- Get: `isSignature()`
- return: Return the package to the sender when the recipient is not home.
Expand Down Expand Up @@ -281,7 +281,7 @@ This is a list of all the classes in this SDK and their available methods.

// Options (https://myparcelnl.github.io/api/#6_A_3)
->setOnlyRecipient(false) // Deliver the package only at address of the intended recipient. This option is required for Morning and Evening delivery types.
->setSignature(true) // Recipient must sign for the package. This option is required for Pickup and Pickup express delivery types.
->setSignature(true) // Recipient must sign for the package. This option is required for Pickup delivery type.
->setReturn(true) // Return the package to the sender when the recipient is not home.
->setLargeFormat(false) // Must be specified if the dimensions of the package are between 100x70x50 and 175x78x58 cm.
->setInsurance(250) // Allows a shipment to be insured up to certain amount. Only packages (package type 1) can be insured.
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": "v3.1.2-beta.2",
"version": "v3.1.2-beta.3",
"description": "This package is designed to send and receive data from MyParcel by means of an API.",
"homepage": "https://www.myparcel.nl",
"keywords": ["MyParcel", "My Parcel", "Flespakket", "Post NL", "PostNL"],
Expand Down
8 changes: 8 additions & 0 deletions src/Model/Consignment/AbstractConsignment.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,20 @@ class AbstractConsignment
public const DELIVERY_TYPE_STANDARD = 2;
public const DELIVERY_TYPE_EVENING = 3;
public const DELIVERY_TYPE_PICKUP = 4;

/**
* @deprecated Since November 2019 is it no longer possible to use pickup express.
*/
public const DELIVERY_TYPE_PICKUP_EXPRESS = 5;

public const DELIVERY_TYPE_MORNING_NAME = "morning";
public const DELIVERY_TYPE_STANDARD_NAME = "standard";
public const DELIVERY_TYPE_EVENING_NAME = "evening";
public const DELIVERY_TYPE_PICKUP_NAME = "pickup";

/**
* @deprecated Since November 2019 is it no longer possible to use pickup express.
*/
public const DELIVERY_TYPE_PICKUP_EXPRESS_NAME = "pickup_express";

public const DELIVERY_TYPES_IDS = [
Expand Down

0 comments on commit a8697c3

Please sign in to comment.