Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 1.16 KB

README.md

File metadata and controls

25 lines (17 loc) · 1.16 KB

vendic/magento2-postnl-api Integration Test

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.