Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
148 changes: 148 additions & 0 deletions docs/1.0.0/API-LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
CapitalEngine API Licence
Version 1.0

Copyright (c) 2026 Heet Patel. All rights reserved.

This licence applies to the CapitalEngine API ("the API"). The API is the
artifact published as com.patelheet:capitalengine-api, which includes its
compiled classes and its Javadoc. It does not apply to CapitalEngine itself
or to any CapitalEngine add-on plugin. Those are proprietary and are covered
by separate terms.

"Licensor" means Heet Patel (patelheet.com). "You" means the person or
organisation using the API. "Your Plugin" means software you create that
uses the API to work with CapitalEngine.


1. WHAT YOU MAY DO

The Licensor grants you a free, worldwide, non-exclusive,
non-transferable licence to:

a) Download the API and its Javadoc, and use them to develop, compile and
test Your Plugin.

b) Declare the API as a compile-time dependency of Your Plugin (for
example, Gradle "compileOnly" or Maven "provided").

c) Distribute Your Plugin, for free or for payment, under any licence you
choose, including open source and closed source, as long as you follow
section 2.

d) Implement the interfaces that the API documents as intended for plugins
to implement (currently MonetaryPolicy and IndicatorProvider), and
listen to the API's events.

e) Create mock or stub implementations of any API interface. These may
only be used in your own automated tests, and must not be shipped as
part of Your Plugin.

f) Keep copies of the API in your build tools, caches, private
repositories and CI systems, so that you can do the above.

g) Quote short parts of the Javadoc in Your Plugin's documentation where
it helps explain how Your Plugin works with CapitalEngine.


2. WHAT YOU MAY NOT DO

a) You may not include, shade or bundle the API's classes inside Your
Plugin or any other distributed software. At runtime, CapitalEngine
provides the API.

b) You may not publish or share the API jar or its Javadoc yourself, for
example by uploading them to a public repository, website or file
share. Section 1(f) covers private copies.

c) You may not modify the API, or distribute modified versions of it.

d) You may not implement the CapitalApi interface, or otherwise create
software that replaces, imitates or substitutes for CapitalEngine or
any of its add-ons, except for test-only mocks under section 1(e).

e) You may not decompile, disassemble or reverse engineer the API, except
where applicable law allows it despite this restriction.

f) You may not remove or change any copyright or licence notices in the
API.


3. NAMES

This licence does not give you any rights to the names "CapitalEngine",
"CapitalMarket", "CapitalBank", "CapitalDashboard", "CapitalTrade" or
"patelheet". You may say factually that Your Plugin is "for
CapitalEngine" or "compatible with CapitalEngine". You may not suggest
that the Licensor made, endorses or supports Your Plugin unless the
Licensor has agreed to this in writing.


4. YOUR PLUGIN

You own Your Plugin. The Licensor claims no rights to it. You are solely
responsible for Your Plugin and for how it uses the API, including any
money it creates or moves on a server.


5. VERSIONS

Each released version of the API is covered by the licence included
inside that version's jar. The Licensor may offer future versions of the
API under different terms. Any change does not affect a version you have
already received.


6. TERMINATION

a) This licence ends automatically if you break any of its terms.

b) If you fix the breach within 30 days of becoming aware of it, your
licence is restored as if it had never ended.

c) If your licence ends and is not restored, then from that point you
must:
- stop using the API; and
- stop distributing Your Plugin, because it depends on the API.

d) Copies of Your Plugin that other people received before your licence
ended are not affected. They may keep using those copies.

e) Sections 4, 7, 8, 9 and 10 still apply after this licence ends.


7. NO WARRANTY

THE API IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED. THIS INCLUDES, WITHOUT LIMITATION, WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.


8. LIMITATION OF LIABILITY

TO THE FULLEST EXTENT ALLOWED BY LAW, THE LICENSOR IS NOT LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY ARISING FROM THE API OR ITS USE. THIS
INCLUDES LOSS OF DATA, LOSS OF IN-GAME BALANCES AND LOSS OF PROFITS,
WHETHER IN CONTRACT, TORT OR OTHERWISE.

Nothing in this licence limits or excludes any liability that cannot be
limited or excluded by law. This includes liability for death or
personal injury caused by negligence, and liability for fraud.


9. GOVERNING LAW

This licence, and any dispute or claim arising out of or in connection
with it or its subject matter, is governed by the law of England and
Wales. This includes non-contractual disputes or claims. The courts of
England and Wales have exclusive jurisdiction over any such dispute or
claim.


10. EVERYTHING ELSE

All rights not expressly granted by this licence are reserved by the
Licensor. If any part of this licence cannot be enforced, the rest still
applies.

For permissions beyond this licence, contact the Licensor through
patelheet.com.
166 changes: 166 additions & 0 deletions docs/1.0.0/allclasses-index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,166 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (21) -->
<title>All Classes and Interfaces (api 1.0.0 API)</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="description" content="class index">
<meta name="generator" content="javadoc/AllClassesIndexWriter">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="script-dir/jquery-ui.min.css" title="Style">
<script type="text/javascript" src="script.js"></script>
<script type="text/javascript" src="script-dir/jquery-3.7.1.min.js"></script>
<script type="text/javascript" src="script-dir/jquery-ui.min.js"></script>
</head>
<body class="all-classes-index-page">
<script type="text/javascript">var pathtoroot = "./";
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<div class="flex-box">
<header role="banner" class="flex-header">
<nav role="navigation">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="top-nav" id="navbar-top"><button id="navbar-toggle-button" aria-controls="navbar-top" aria-expanded="false" aria-label="Toggle navigation links"><span class="nav-bar-toggle-icon">&nbsp;</span><span class="nav-bar-toggle-icon">&nbsp;</span><span class="nav-bar-toggle-icon">&nbsp;</span></button>
<div class="skip-nav"><a href="#skip-navbar-top" title="Skip navigation links">Skip navigation links</a></div>
<ul id="navbar-top-firstrow" class="nav-list" title="Navigation">
<li><a href="index.html">Overview</a></li>
<li>Package</li>
<li>Class</li>
<li><a href="overview-tree.html">Tree</a></li>
<li><a href="index-all.html">Index</a></li>
<li><a href="help-doc.html#all-classes">Help</a></li>
</ul>
</div>
<div class="sub-nav">
<div id="navbar-sub-list"></div>
<div class="nav-list-search"><a href="search.html">SEARCH</a>
<input type="text" id="search-input" disabled placeholder="Search">
<input type="reset" id="reset-button" disabled value="reset">
</div>
</div>
<!-- ========= END OF TOP NAVBAR ========= -->
<span class="skip-nav" id="skip-navbar-top"></span></nav>
</header>
<div class="flex-content">
<main role="main">
<div class="header">
<h1 title="All Classes and Interfaces" class="title">All Classes and Interfaces</h1>
</div>
<div id="all-classes-table">
<div class="table-tabs" role="tablist" aria-orientation="horizontal"><button id="all-classes-table-tab0" role="tab" aria-selected="true" aria-controls="all-classes-table.tabpanel" tabindex="0" onkeydown="switchTab(event)" onclick="show('all-classes-table', 'all-classes-table', 2)" class="active-table-tab">All Classes and Interfaces</button><button id="all-classes-table-tab1" role="tab" aria-selected="false" aria-controls="all-classes-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('all-classes-table', 'all-classes-table-tab1', 2)" class="table-tab">Interfaces</button><button id="all-classes-table-tab2" role="tab" aria-selected="false" aria-controls="all-classes-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('all-classes-table', 'all-classes-table-tab2', 2)" class="table-tab">Classes</button><button id="all-classes-table-tab3" role="tab" aria-selected="false" aria-controls="all-classes-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('all-classes-table', 'all-classes-table-tab3', 2)" class="table-tab">Enum Classes</button><button id="all-classes-table-tab4" role="tab" aria-selected="false" aria-controls="all-classes-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('all-classes-table', 'all-classes-table-tab4', 2)" class="table-tab">Record Classes</button></div>
<div id="all-classes-table.tabpanel" role="tabpanel" aria-labelledby="all-classes-table-tab0">
<div class="summary-table two-column-summary">
<div class="table-header col-first">Class</div>
<div class="table-header col-last">Description</div>
<div class="col-first even-row-color all-classes-table all-classes-table-tab1"><a href="com/patelheet/capitalengine/api/Account.html" title="interface in com.patelheet.capitalengine.api">Account</a></div>
<div class="col-last even-row-color all-classes-table all-classes-table-tab1">
<div class="block">A read-only view of one account.</div>
</div>
<div class="col-first odd-row-color all-classes-table all-classes-table-tab3"><a href="com/patelheet/capitalengine/api/AccountKind.html" title="enum class in com.patelheet.capitalengine.api">AccountKind</a></div>
<div class="col-last odd-row-color all-classes-table all-classes-table-tab3">
<div class="block">What an <a href="com/patelheet/capitalengine/api/Account.html" title="interface in com.patelheet.capitalengine.api"><code>Account</code></a> is, which decides who may take money out of it.</div>
</div>
<div class="col-first even-row-color all-classes-table all-classes-table-tab1"><a href="com/patelheet/capitalengine/api/Accounts.html" title="interface in com.patelheet.capitalengine.api">Accounts</a></div>
<div class="col-last even-row-color all-classes-table all-classes-table-tab1">
<div class="block">Account lookup and creation.</div>
</div>
<div class="col-first odd-row-color all-classes-table all-classes-table-tab2"><a href="com/patelheet/capitalengine/api/event/CapitalAlertEvent.html" title="class in com.patelheet.capitalengine.api.event">CapitalAlertEvent</a></div>
<div class="col-last odd-row-color all-classes-table all-classes-table-tab2">
<div class="block">An alert for owners, raised with <code>CapitalApi.alert</code>.</div>
</div>
<div class="col-first even-row-color all-classes-table all-classes-table-tab1"><a href="com/patelheet/capitalengine/api/CapitalApi.html" title="interface in com.patelheet.capitalengine.api">CapitalApi</a></div>
<div class="col-last even-row-color all-classes-table all-classes-table-tab1">
<div class="block">Entry point of the CapitalEngine API.</div>
</div>
<div class="col-first odd-row-color all-classes-table all-classes-table-tab2"><a href="com/patelheet/capitalengine/api/event/CapitalAuditEvent.html" title="class in com.patelheet.capitalengine.api.event">CapitalAuditEvent</a></div>
<div class="col-last odd-row-color all-classes-table all-classes-table-tab2">
<div class="block">Fired asynchronously after the nightly ledger self-check.</div>
</div>
<div class="col-first even-row-color all-classes-table all-classes-table-tab2"><a href="com/patelheet/capitalengine/api/event/CapitalDayEvent.html" title="class in com.patelheet.capitalengine.api.event">CapitalDayEvent</a></div>
<div class="col-last even-row-color all-classes-table all-classes-table-tab2">
<div class="block">Economic day boundary, on the main/global thread.</div>
</div>
<div class="col-first odd-row-color all-classes-table all-classes-table-tab2"><a href="com/patelheet/capitalengine/api/event/CapitalPolicyLimitEvent.html" title="class in com.patelheet.capitalengine.api.event">CapitalPolicyLimitEvent</a></div>
<div class="col-last odd-row-color all-classes-table all-classes-table-tab2">
<div class="block">A call hit an owner-set cap or was denied.</div>
</div>
<div class="col-first even-row-color all-classes-table all-classes-table-tab3"><a href="com/patelheet/capitalengine/api/event/CapitalPolicyLimitEvent.LimitKind.html" title="enum class in com.patelheet.capitalengine.api.event">CapitalPolicyLimitEvent.LimitKind</a></div>
<div class="col-last even-row-color all-classes-table all-classes-table-tab3">
<div class="block">Which limit was hit.</div>
</div>
<div class="col-first odd-row-color all-classes-table all-classes-table-tab2"><a href="com/patelheet/capitalengine/api/event/CapitalTransactionEvent.html" title="class in com.patelheet.capitalengine.api.event">CapitalTransactionEvent</a></div>
<div class="col-last odd-row-color all-classes-table all-classes-table-tab2">
<div class="block">Fired asynchronously after each transaction is safely in the database.</div>
</div>
<div class="col-first even-row-color all-classes-table all-classes-table-tab2"><a href="com/patelheet/capitalengine/api/event/CapitalWeekEvent.html" title="class in com.patelheet.capitalengine.api.event">CapitalWeekEvent</a></div>
<div class="col-last even-row-color all-classes-table all-classes-table-tab2">
<div class="block">Economic week boundary, fired after the <a href="com/patelheet/capitalengine/api/event/CapitalDayEvent.html" title="class in com.patelheet.capitalengine.api.event"><code>CapitalDayEvent</code></a> that starts the new week.</div>
</div>
<div class="col-first odd-row-color all-classes-table all-classes-table-tab1"><a href="com/patelheet/capitalengine/api/Currency.html" title="interface in com.patelheet.capitalengine.api">Currency</a></div>
<div class="col-last odd-row-color all-classes-table all-classes-table-tab1">
<div class="block">The server's single currency.</div>
</div>
<div class="col-first even-row-color all-classes-table all-classes-table-tab3"><a href="com/patelheet/capitalengine/api/Failure.html" title="enum class in com.patelheet.capitalengine.api">Failure</a></div>
<div class="col-last even-row-color all-classes-table all-classes-table-tab3">
<div class="block">Why a mutation failed.</div>
</div>
<div class="col-first odd-row-color all-classes-table all-classes-table-tab4"><a href="com/patelheet/capitalengine/api/service/Indicator.html" title="class in com.patelheet.capitalengine.api.service">Indicator</a></div>
<div class="col-last odd-row-color all-classes-table all-classes-table-tab4">
<div class="block">A named number an add-on publishes for dashboards.</div>
</div>
<div class="col-first even-row-color all-classes-table all-classes-table-tab1"><a href="com/patelheet/capitalengine/api/service/IndicatorProvider.html" title="interface in com.patelheet.capitalengine.api.service">IndicatorProvider</a></div>
<div class="col-last even-row-color all-classes-table all-classes-table-tab1">
<div class="block">Implemented by add-ons and registered with Bukkit's ServicesManager.</div>
</div>
<div class="col-first odd-row-color all-classes-table all-classes-table-tab1"><a href="com/patelheet/capitalengine/api/service/MonetaryPolicy.html" title="interface in com.patelheet.capitalengine.api.service">MonetaryPolicy</a></div>
<div class="col-last odd-row-color all-classes-table all-classes-table-tab1">
<div class="block">Shared economic settings, implemented by an add-on (for example CapitalMarket) and registered with Bukkit's
ServicesManager.</div>
</div>
<div class="col-first even-row-color all-classes-table all-classes-table-tab4"><a href="com/patelheet/capitalengine/api/PluginFlow.html" title="class in com.patelheet.capitalengine.api">PluginFlow</a></div>
<div class="col-last even-row-color all-classes-table all-classes-table-tab4">
<div class="block">One plugin's money flows for the current economic day.</div>
</div>
<div class="col-first odd-row-color all-classes-table all-classes-table-tab4"><a href="com/patelheet/capitalengine/api/PolicyStatus.html" title="class in com.patelheet.capitalengine.api">PolicyStatus</a></div>
<div class="col-last odd-row-color all-classes-table all-classes-table-tab4">
<div class="block">A plugin's remaining owner-set limits today.</div>
</div>
<div class="col-first even-row-color all-classes-table all-classes-table-tab4"><a href="com/patelheet/capitalengine/api/Posting.html" title="class in com.patelheet.capitalengine.api">Posting</a></div>
<div class="col-last even-row-color all-classes-table all-classes-table-tab4">
<div class="block">One signed leg of a transaction.</div>
</div>
<div class="col-first odd-row-color all-classes-table all-classes-table-tab3"><a href="com/patelheet/capitalengine/api/Severity.html" title="enum class in com.patelheet.capitalengine.api">Severity</a></div>
<div class="col-last odd-row-color all-classes-table all-classes-table-tab3">
<div class="block">How serious an alert is.</div>
</div>
<div class="col-first even-row-color all-classes-table all-classes-table-tab4"><a href="com/patelheet/capitalengine/api/Stats.html" title="class in com.patelheet.capitalengine.api">Stats</a></div>
<div class="col-last even-row-color all-classes-table all-classes-table-tab4">
<div class="block">Instant economy-wide snapshot, read from memory.</div>
</div>
<div class="col-first odd-row-color all-classes-table all-classes-table-tab1"><a href="com/patelheet/capitalengine/api/TransactionBuilder.html" title="interface in com.patelheet.capitalengine.api">TransactionBuilder</a></div>
<div class="col-last odd-row-color all-classes-table all-classes-table-tab1">
<div class="block">Builds a multi-leg transaction that applies completely or not at all.</div>
</div>
<div class="col-first even-row-color all-classes-table all-classes-table-tab4"><a href="com/patelheet/capitalengine/api/TxRecord.html" title="class in com.patelheet.capitalengine.api">TxRecord</a></div>
<div class="col-last even-row-color all-classes-table all-classes-table-tab4">
<div class="block">A committed transaction, as returned by history lookups and carried by events.</div>
</div>
<div class="col-first odd-row-color all-classes-table all-classes-table-tab4"><a href="com/patelheet/capitalengine/api/TxResult.html" title="class in com.patelheet.capitalengine.api">TxResult</a></div>
<div class="col-last odd-row-color all-classes-table all-classes-table-tab4">
<div class="block">Outcome of a mutation.</div>
</div>
<div class="col-first even-row-color all-classes-table all-classes-table-tab3"><a href="com/patelheet/capitalengine/api/service/Unit.html" title="enum class in com.patelheet.capitalengine.api.service">Unit</a></div>
<div class="col-last even-row-color all-classes-table all-classes-table-tab3">
<div class="block">The unit of an <a href="com/patelheet/capitalengine/api/service/Indicator.html" title="class in com.patelheet.capitalengine.api.service"><code>Indicator</code></a>.</div>
</div>
</div>
</div>
</div>
</main>
</div>
</div>
</body>
</html>
Loading
Loading