                                 apiPOS License
                           Based on Apache License 2.0
                           Version 1.0, May 2025

   apiPOS (“the Software”) is a Native JavaScript Point‑of‑Sale (POS) system
   designed to integrate via REST API with any sales, billing or ERP system.
   It supports offline‑first web technology to operate with or without
   Internet, ensuring continuity of business operations.

   IMPORTANT: This License governs your use of apiPOS. By using, reproducing,
   modifying or distributing the Software, you agree to all its terms.

   1. Definitions.
      “You” (or “Your”) means an individual or legal entity exercising rights
      granted by this License.
      “Licensor” means the copyright holder, Luisito‑Programa.
      “Software” means all files, code, documentation, examples, and related
      materials distributed under this License.
      “Auth Token” means the unique registration token obtained from
      https://apiERP.dev (USD $3/month) that is required to fetch cloud
      resources and full functionality.
      “Derivative Works” means any work based on (or derived from) the
      Software by modification or extension.
      “Version” means any formally released edition of the Software,
      numbered and published by the Licensor.

   2. Grant of Copyright & Patent License.
      Subject to the terms below, Licensor grants You a worldwide,
      royalty‑free, non‑exclusive, perpetual license to use, reproduce,
      modify, distribute, publicly display and sublicense the Software
      and Derivative Works, in source or object form.

   3. Auth Token Requirement.
      The Software will compile and run, but key online features (e.g.
      REST‑based data sync, cloud reporting, remote printing) will work only
      if you register at https://apiERP.dev and include your Auth Token.
      You may fork and rebrand the code freely, but you remain responsible
      for obtaining and configuring the Auth Token for production.

   4. Redistribution.
      You may distribute the Software or Derivative Works under the following
      conditions:
      (a) You must include a copy of this License and any NOTICE file.
      (b) You must mark any modified files with prominent notices stating
          that You changed them and the date of change.
      (c) You must retain all copyright, patent, trademark, and attribution
          notices in each file.
      (d) You may add your own license terms to your Derivative Works only
          insofar as they do not conflict with this License.

   5. Versioning and Updates.
      Each Version of the Software is separately licensed. Improvements,
      bug fixes and new features will be released as new Versions; You are
      encouraged to update, but are responsible for testing before
      deployment. Licensor makes no guarantee that any Version will be
      free of defects.

   6. Disclaimer of Warranty.
      THE SOFTWARE IS PROVIDED “AS IS,” WITHOUT WARRANTY OF ANY KIND,
      EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO WARRANTIES OF
      MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON‑INFRINGEMENT.
      YOU ARE SOLELY RESPONSIBLE FOR VALIDATING THE SOFTWARE IN YOUR
      ENVIRONMENT BEFORE PRODUCTION.

   7. Limitation of Liability.
      IN NO EVENT SHALL LICENSOR OR CONTRIBUTORS BE LIABLE FOR ANY CLAIM,
      DAMAGES OR OTHER LIABILITY ARISING FROM, OUT OF, OR IN CONNECTION WITH
      THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE, EVEN IF
      ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

   8. Indemnification.
      You agree to indemnify, defend and hold Licensor harmless from any
      claims, damages, liabilities, costs or expenses arising out of your
      use, distribution, or modification of the Software.

   9. Trademarks.
      This License does not grant rights to use “apiPOS” or any related
      trademarks except to identify the origin of the Software.

   10. Governing Law.
       This License shall be governed by and construed in accordance with
       the laws of Peru, without regard to its conflict‑of‑laws principles.

   END OF TERMS AND CONDITIONS

   Copyright 2025 Luisito‑Programa

   You may obtain an Auth Token and the latest Versions at:
       https://apiERP.dev

   (End of apiPOS License, v1.0)
