Skip to content

Releases: MyParcelCOM/api-sdk-php

v3.6.1

16 Dec 17:00
6a318ba
Compare
Choose a tag to compare

What's Changed

  • 🪳 Avoid read-only relationships in POST requests by @M4tini in #232

Full Changelog: v3.6.0...v3.6.1

v3.6.0

09 Dec 15:04
21e2688
Compare
Choose a tag to compare

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

06 Nov 14:40
89a1e5c
Compare
Choose a tag to compare

What's Changed

Full Changelog: v3.4.0...v3.5.0

v3.4.0

25 Sep 12:36
54d1d4a
Compare
Choose a tag to compare

What's Changed

  • ✨ Expose shipment surcharges on the Shipment model by @M4tini in #217
  • ✨ Shipment surcharge management by @M4tini in #218
  • 🐛 Fix patching a shipment-surcharge by @M4tini in #219

Full Changelog: v3.3.0...v3.4.0

v3.3.0

11 Sep 12:13
d04c752
Compare
Choose a tag to compare

What's Changed

Full Changelog: v3.2.2...v3.3.0

v3.2.2

25 Jun 14:20
303bf64
Compare
Choose a tag to compare

What's Changed

  • 🐛 Fix TypeError when setting item weight to null by @M4tini in #213

Full Changelog: v3.2.1...v3.2.2

v3.2.1

18 Mar 14:23
522cbbd
Compare
Choose a tag to compare

What's Changed

Full Changelog: v3.2.0...v3.2.1

v3.2.0

29 Feb 13:38
c0f3085
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v3.1.1...v3.2.0

v3.1.1

31 Jan 14:14
e03c7ed
Compare
Choose a tag to compare

What's Changed

Full Changelog: v3.1.0...v3.1.1

v3.1.0

27 Sep 10:20
8f91eb2
Compare
Choose a tag to compare

What's Changed

Full Changelog: v3.0.1...v3.1.0