=== Baro Logistics B2B Client ===
Contributors: parsahaqiqat
Tags: logistics, shipping, b2b, woocommerce, persian
Requires at least: 5.8
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Official Website: https://baro.ir/

== Who should use this plugin? ==
Only businesses approved as Baro B2B clients.

To use this plugin, you MUST get credentials from Baro support:
1) Visit https://baro.ir/
2) Request B2B API/WordPress integration
3) Provide your server IP(s) for whitelist
4) Receive B2B username/password and permissions
5) Wait for B2B client activation by Baro team

After activation, plugin works with your credentials.

== Installation ==
1) Upload folder baro_logistics_plugin to /wp-content/plugins/
2) Activate plugin "Baro Logistics B2B Client"
3) Open WordPress admin menu "بارو لجستیک"
4) Enter Base URL + B2B username/password
5) Save and click "لاگین"

Base URL values:
- Production: https://baro.ir/api/b2b/
- Stage: https://barobus.ir/api/b2b/

== First setup checklist ==
- Credentials received from Baro support
- IP whitelist done
- Required permissions enabled on your B2B client

== Features ==
- JWT login + auto refresh token
- Track order
- Create/cancel order
- Estimate price
- Discount validate/apply
- Wallet balance/pay order/pay batch
- Batch endpoints (estimate/create/validate/compatible cities)
- Cities and pickup slots
- WooCommerce integration
- Persian tracking shortcode: [baro_track_order]

== Troubleshooting ==
- 401: invalid credential, contact Baro support
- 403: IP not whitelisted
- Permission denied: missing permission in B2B client profile

== External Services ==
This plugin connects to the Baro Logistics B2B API to create and manage shipment requests and retrieve logistics-related information.

It sends store order data, shipment details, authentication credentials, and related customer information to the Baro Logistics API whenever logistics operations are performed by the site administrator or customer.

This service is provided by Baro Logistics:
- Terms of Service: https://baro.ir/terms
- Privacy Policy: https://baro.ir/terms#privacy

The plugin also connects to the Ipify API to detect the outbound public IP address of the server during API configuration and diagnostics.

No personal user data is intentionally sent to Ipify. The request only retrieves the server's public IP address.

This service is provided by Ipify:
- Terms of Service: https://www.ipify.org/
- Privacy Policy: https://www.ipify.org/

== Support ==
Website: https://baro.ir/
For credential issuance, whitelist changes, and permissions, contact support via website.
