vendic / magento2-postnl-api
Adds Magento 2 service methods to the tig/postnl module.
Installs: 9 361
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 2
Open Issues: 1
Type:magento2-module
Requires
- php: ~7.4|~8.1
- magento/magento-composer-installer: *
- tig/postnl-magento2: >=1.12 <1.17
Requires (Dev)
This package is auto-updated.
Last update: 2024-11-04 07:35:56 UTC
README
This module adds service contracts to postnl/postnl-magento2, since the original module works through controllers only.
This allows you to use the PostNL API in your own Magento classes, without using a request. We use it in the PostNL module for the Hyvä checkout.
Installation
composer require vendic/magento2-postnl-api
Currently supported service contracts
Locations
Service contract: \Vendic\PostnlApi\Api\LocationsInterface
Get's the nearest PostNL locations based on a given address.
Save
Serivce contract: \Vendic\PostnlApi\Api\SaveInterface
Saves/initalizes a shipment into the Magento database.
Timeframes (WIP)
Service contract: \Vendic\PostnlApi\Api\TimeframesInterface
Get's the available delivery timeframes for a given address.