Skip to content

Vendic/magento2-postnl-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.