@@ -22,8 +22,20 @@ import {
2222} from './typings'
2323
2424/**
25- * The Payment class contains all payment related functions. This includes
26- * trustline transfers and normal ETH transfers.
25+ * The Payment class contains all payment related functions. This includes trustline transfers and TLC transfers.
26+ * It is meant to be called via a [[TLNetwork]] instance like:
27+ * ```typescript
28+ * const tlNetwork = new TLNetwork(
29+ * //...
30+ * )
31+ *
32+ * // Get transfer logs
33+ * tlNetwork.payment.get(
34+ * // ...
35+ * ).then(
36+ * payments => console.log("Payments of loaded user:", payments)
37+ * )
38+ * ```
2739 */
2840export class Payment {
2941 private currencyNetwork : CurrencyNetwork
@@ -32,6 +44,7 @@ export class Payment {
3244 private transaction : Transaction
3345 private user : User
3446
47+ /** @hidden */
3548 constructor ( params : {
3649 event : Event
3750 user : User
@@ -52,7 +65,7 @@ export class Payment {
5265 * @param receiverAddress Address of receiver of transfer.
5366 * @param value Amount to transfer in biggest unit,
5467 * i.e. 1.5 if currency network has 2 decimals.
55- * @param options Optional payment options. See ` PaymentOptions` for more information.
68+ * @param options Optional payment options. See [[ PaymentOptions]] for more information.
5669 * @param options.networkDecimals Decimals of currency network can be provided manually.
5770 * @param options.maximumHops Max. number of hops for transfer.
5871 * @param options.maximumFees Max. transfer fees user is willing to pay.
@@ -122,7 +135,7 @@ export class Payment {
122135 * Prepares a ethereum transaction object for a ETH transfer, where loaded user is the sender.
123136 * @param receiverAddress Address of receiver of transfer.
124137 * @param value Amount of ETH to transfer.
125- * @param options Payment options. See ` PaymentOptions` for more information.
138+ * @param options Payment options. See [[ PaymentOptions]] for more information.
126139 * @param options.gasPrice Custom gas price.
127140 * @param options.gasLimit Custom gas limit.
128141 */
@@ -159,7 +172,7 @@ export class Payment {
159172 * @param receiverAddress Address of receiver of transfer.
160173 * @param value Amount to transfer in biggest unit,
161174 * i.e. 1.23 if currency network has 2 decimals.
162- * @param options Payment options. See ` PaymentOptions` for more information.
175+ * @param options Payment options. See [[ PaymentOptions]] for more information.
163176 * @param options.feePayer Either `sender` or `receiver`. Specifies who pays network fees.
164177 * @param options.networkDecimals Decimals of currency network can be provided manually.
165178 * @param options.maximumHops Max. number of hops for transfer.
@@ -211,7 +224,7 @@ export class Payment {
211224 /**
212225 * Returns transfer event logs of loaded user in a specified currency network.
213226 * @param networkAddress Address of currency network.
214- * @param filter Event filter object. See ` EventFilterOptions` for more information.
227+ * @param filter Event filter object. See [[ EventFilterOptions]] for more information.
215228 */
216229 public get (
217230 networkAddress : string ,
0 commit comments