Releases: MyParcelCOM/api-sdk-php
Releases · MyParcelCOM/api-sdk-php
v3.6.1
v3.6.0
What's Changed
- 🗂️ Support for multi-colli shipments by @M4tini in #224
- 🐛 Actually send the colli meta to the rates endpoint by @M4tini in #228
- ♿️ Populate the master shipment with weight from the colli by @M4tini in #230
This release adds multi-colli functionality, such as retrieving multi-colli rates and creating multi-colli shipments. Shipments have new getter/setter functions to access colli and collo number data. Here is an example of some of the new functionality:
$master = (new Shipment()); // Create the master shipment, set the addresses, service, contract, shop.
$master->addCollo($collo); // Create (or clone) a collo shipment and add it, set the weight, dimensions, items, etc.
$master->addCollo($collo); // Create another collo shipment and add it, set the weight, dimensions, items, etc.
$multiColliShipment = $api->createAndRegisterMultiColliShipment($master);
// You can retrieve the collo shipments and access the file data as usual.
foreach ($multiColliShipment->getColli() as $collo) {
$collo->getFiles()[0]->getBase64Data();
}
// Alternatively, you can access all files for all colli at once via the master shipment.
foreach ($multiColliShipment->getFiles() as $file) {
var_dump($file->getBase64Data());
}
Full Changelog: v3.5.0...v3.6.0
v3.5.0
v3.4.0
v3.3.0
What's Changed
- ✨ Dynamic volumetric weight by @M4tini in #215
- 🚀 Update staging by @yoan-myparcel in #216
Full Changelog: v3.2.2...v3.3.0
v3.2.2
v3.2.1
What's Changed
- MP-6434 Update collection errors by @NickVries in #207
- 🔧 Changed to new sandbox URLs by @yoan-myparcel in #210
- 👌🏻 Use updateCollection() to register the collection by @M4tini in #211
- 🚀 Update staging by @yoan-myparcel in #212
Full Changelog: v3.2.0...v3.2.1
v3.2.0
What's Changed
- ➗ divide MyParcelComApi tests in separate files by @yoerriwalstra in #203
- ✨ Add Manifests to SDK by @yoerriwalstra in #204
- MP-6359 Collections by @NickVries in #205
- 🚀 Update staging by @yoan-myparcel in #206
- MP-6434 Update collection errors by @NickVries in #208
- 🔧 Changed to new sandbox URLs by @yoan-myparcel in #209
New Contributors
- @yoerriwalstra made their first contribution in #203
Full Changelog: v3.1.1...v3.2.0
v3.1.1
What's Changed
- 🐞 registered-shipments should not have null values in their meta by @M4tini in #201
- 🚀 Update staging by @yoan-myparcel in #202
Full Changelog: v3.1.0...v3.1.1
v3.1.0
What's Changed
- 🛠️ Changed volume metric weight fraction to 4000 by @yoan-myparcel in #199
- 🚀 Update staging by @yoan-myparcel in #200
Full Changelog: v3.0.1...v3.1.0