/** * Raiden API * https://raiden-network.readthedocs.io/en/latest/rest_api.html * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { Observable } from 'rxjs'; import { BaseAPI } from '../runtime'; import { Payment, PaymentEvent, PaymentReceipt } from '../models'; export interface GetPaymentsByTokenRequest { tokenAddress: string; } export interface GetPaymentsByTokenForTargetRequest { tokenAddress: string; targetAddress: string; } export interface PayRequest { tokenAddress: string; targetAddress: string; payment: Payment; } /** * no description */ export declare class PaymentsApi extends BaseAPI { /** * List All Payments */ getPayments: () => Observable; /** * List All Payments for Token */ getPaymentsByToken: (requestParameters: GetPaymentsByTokenRequest) => Observable; /** * List All Payments for Token by Target */ getPaymentsByTokenForTarget: (requestParameters: GetPaymentsByTokenForTargetRequest) => Observable; /** * The request will only return once the payment either succeeded or failed. A payment can fail due to the expiration of a lock, the target being offline, channels on the path to the target not having enough `settle_timeout` and `reveal_timeout` in order to allow the payment to be propagated safely, not enough funds etc. * Initiate a payment */ pay: (requestParameters: PayRequest) => Observable; } //# sourceMappingURL=PaymentsApi.d.ts.map