Skip to content

Commit

Permalink
Updated version to 1.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ildelux committed May 20, 2024
1 parent f21e5a6 commit ac6009f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
11 changes: 11 additions & 0 deletions Service/Api/GetLabelService.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,17 @@ public function getLabel(ShipmentInterface $shipment): array

$client->setAuthToken($apiKey);

/*
PDF A6
/v1/shipments/:shipment_id/label?type=A6&format=pdf
PDF A4
/v1/shipments/:shipment_id/label?type=normal&format=pdf
ZPL 203 DPI
/v1/shipments/:shipment_id/label?type=A6&format=zpl
ZPL in 300 DPI
/v1/shipments/:shipment_id/label?type=dpi300&format=zpl
*/

$response = $client->get(
$this->configProvider->getShipXBaseUrl() . "/v1/shipments/{$inpostShipmentId}/label",
["type" => $this->configProvider->getLabelType(), "format" => $this->configProvider->getLabelFormat()]
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.5.0",
"version": "1.8.0",
"name": "inpost-italy/magento2-plugin",
"description": "Magento 2 module for Inpost IT integration",
"type": "magento2-module",
Expand Down
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="InPost_Shipment" setup_version="1.5.0">
<module name="InPost_Shipment" setup_version="1.8.0">
<sequence>
<module name="Magento_Checkout"/>
<module name="Magento_Sales"/>
Expand Down

0 comments on commit ac6009f

Please sign in to comment.