Implement setTracked() support for international mailbox packages
SDK version
10.1
PHP version
8.1
What went wrong?
Previously only The Netherlands had support for setPackageType(1) (mailbox packages).
Recently support was added for more countries, including Belgium.
But I get this error from your API when setting pakacge type to 1, for an Belgium address:
data.shipments[0].options.tracked Shipment option
trackedis required and must be1for international mailbox packages - Unknown error: {"fields":["data.shipments[0].options.tracked"],"human":["data.shipments[0].options.tracked Shipment optiontrackedis required and must be1for international mailbox packages"]}. Please contact MyParcel.
But there is no setTracked(1) method available.
Pull request
I made a quick mockup implementation to set it using $consignment->setTracked(1). https://github.com/myparcelnl/sdk/compare/main...ymschaap:sdk:main