=== Pasts MansPasts ===
Contributors: latvijaspasts
Tags: shipping, woocommerce, latvia, courier
Requires at least: 5.1
Tested up to: 7.0
Requires PHP: 7.2
Stable tag: 1.5.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Official Latvia Post MansPasts courier shipping integration for WooCommerce.

== Description ==

Pasts MansPasts adds official MansPasts international and domestic postal item shipping functionality to WooCommerce.

Main features:

* Supports both classic checkout and WooCommerce Checkout Blocks.
* Supports both WordPress posts order storage and WooCommerce High-performance order storage.
* MansPasts international and domestic postal item shipping method support in checkout.
* Label and manifest generation from the plugin orders.

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/`, or install from the WordPress Plugins screen.
2. Make sure WooCommerce is active.
3. Activate **Pasts MansPasts**.
4. Go to **WooCommerce > Settings > Shipping > Pasts MansPasts**.
5. Enter API credentials and other settings and save changes.
6. Go to **WooCommerce > Settings > Shipping > Shipping zones**.
7. Add the Pasts standard delivery shipping method to the necessary shipping zones.
8. Test the checkout.

== Frequently Asked Questions ==

= Where to get API credentials? =

Reach out to [Latvia Post](https://pasts.lv) directly for API credentials.

= Where do I set API credentials? =

Go to **WooCommerce > Settings > Shipping > Pasts MansPasts** and enter your API user/key.

= Is WooCommerce required? =

Yes. This plugin is a WooCommerce shipping integration and requires WooCommerce.

= Can I print labels and manifests from WooCommerce? =

Yes. Labels and manifests can be generated from the plugin order management workflow in wp-admin.

= How to call the courier for pickup? =

Install the official [Pasts Courier & Locker plugin](https://wordpress.org/plugins/pasts-expresspasts) or use the [Latvia Post MansPasts portal](https://manspasts.lv).

== External services ==

This plugin relies on the following third party / external services to provide its shipping functionality. No data is sent unless you actively use the related feature (placing an order with a MansPasts shipping method selected, or generating labels/manifests in wp-admin).

1. Latvia Post "MansPasts" API (manspasts.lv / pasts.lv)

It is required to create parcels, generate shipping labels and manifests, and to fetch the list of available delivery countries.

* Endpoints: `https://www.manspasts.lv` (production), `https://apidemo.manspasts.lv` (test mode), `https://express.pasts.lv/countriesApi` (delivery country data).
* Data sent: your API credentials (configured in the plugin settings) and, when creating a parcel or label, the order shipping details (recipient name, address, phone, e-mail and parcel weight/dimensions). Country requests send no personal data.
* When: when an order using a MansPasts shipping method is processed, when a label/manifest is generated, and periodically (daily) to refresh the cached delivery country data.
* Refer to the [Privacy Policy in Latvian](https://pasts.lv/personas-datu-apstrade) or the [Privacy Policy in English](https://pasts.lv/en/privacy-policy) and the [Terms of Use in Latvian](https://pasts.lv/finansu-pakalpojumi/biznesam).

== Third party libraries ==

This plugin bundles the following third-party library. Its human-readable source is available at the linked repository:

* Bootstrap DateTimePicker (3.1.3, MIT) — used for the date filters on the manifest admin page. Source: https://github.com/Eonasdan/bootstrap-datetimepicker

== Changelog ==

= 1.5.0 =

* Security hardening and for initial release on WordPress.org.

== Upgrade Notice ==

= 1.5.0 =

If upgrading from a previous version, reinstallation may be required.