/**
 * OpenAPI spec version: 1.0
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */
import { HttpClient, HttpHeaders, HttpResponse, HttpEvent } from '@angular/common/http';
import { Observable } from 'rxjs';
import { OcTokenService } from './token.service';
import { ListPayment } from '../model/listPayment';
import { Payment } from '../model/payment';
import { PaymentTransaction } from '../model/paymentTransaction';
import { Configuration } from '../configuration';
export declare class OcPaymentService {
    protected httpClient: HttpClient;
    protected ocTokenService: OcTokenService;
    protected basePath: string;
    defaultHeaders: HttpHeaders;
    configuration: Configuration;
    private impersonating;
    constructor(httpClient: HttpClient, ocTokenService: OcTokenService, basePath: string, configuration: Configuration);
    /**
     * @description enable impersonation by calling this prior to any of the other methods in this service
     *
     */
    As(): this;
    /**
     *
     *
     * @param direction Direction of the order, from the current user&#39;s perspective. Possible values: incoming, outgoing.
     * @param orderID ID of the order.
     * @param paymentID ID of the payment.
     * @param options.observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
     * @param options.reportProgress flag to report request and response progress.
     */
    Delete(direction: string, orderID: string, paymentID: string, options?: {
        observe?: 'body';
        reportProgress?: boolean;
    }): Observable<any>;
    Delete(direction: string, orderID: string, paymentID: string, options?: {
        observe?: 'response';
        reportProgress?: boolean;
    }): Observable<HttpResponse<any>>;
    Delete(direction: string, orderID: string, paymentID: string, options?: {
        observe?: 'events';
        reportProgress?: boolean;
    }): Observable<HttpEvent<any>>;
    /**
     *
     *
     * @param direction Direction of the order, from the current user&#39;s perspective. Possible values: incoming, outgoing.
     * @param orderID ID of the order.
     * @param payment
     * @param options.observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
     * @param options.reportProgress flag to report request and response progress.
     */
    Create<PaymentXp = any, PaymentTransactionXp = any>(direction: string, orderID: string, payment: Payment, options?: {
        observe?: 'body';
        reportProgress?: boolean;
    }): Observable<Payment<PaymentXp, PaymentTransactionXp>>;
    Create<PaymentXp = any, PaymentTransactionXp = any>(direction: string, orderID: string, payment: Payment, options?: {
        observe?: 'response';
        reportProgress?: boolean;
    }): Observable<HttpResponse<Payment>>;
    Create<PaymentXp = any, PaymentTransactionXp = any>(direction: string, orderID: string, payment: Payment, options?: {
        observe?: 'events';
        reportProgress?: boolean;
    }): Observable<HttpEvent<Payment>>;
    /**
     *
     *
     * @param direction Direction of the order, from the current user&#39;s perspective. Possible values: incoming, outgoing.
     * @param orderID ID of the order.
     * @param paymentID ID of the payment.
     * @param paymentTransaction
     * @param options.observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
     * @param options.reportProgress flag to report request and response progress.
     */
    CreateTransaction<PaymentXp = any, PaymentTransactionXp = any>(direction: string, orderID: string, paymentID: string, paymentTransaction: PaymentTransaction, options?: {
        observe?: 'body';
        reportProgress?: boolean;
    }): Observable<Payment<PaymentXp, PaymentTransactionXp>>;
    CreateTransaction<PaymentXp = any, PaymentTransactionXp = any>(direction: string, orderID: string, paymentID: string, paymentTransaction: PaymentTransaction, options?: {
        observe?: 'response';
        reportProgress?: boolean;
    }): Observable<HttpResponse<Payment>>;
    CreateTransaction<PaymentXp = any, PaymentTransactionXp = any>(direction: string, orderID: string, paymentID: string, paymentTransaction: PaymentTransaction, options?: {
        observe?: 'events';
        reportProgress?: boolean;
    }): Observable<HttpEvent<Payment>>;
    /**
     *
     *
     * @param direction Direction of the order, from the current user&#39;s perspective. Possible values: incoming, outgoing.
     * @param orderID ID of the order.
     * @param paymentID ID of the payment.
     * @param transactionID ID of the transaction.
     * @param options.observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
     * @param options.reportProgress flag to report request and response progress.
     */
    DeleteTransaction(direction: string, orderID: string, paymentID: string, transactionID: string, options?: {
        observe?: 'body';
        reportProgress?: boolean;
    }): Observable<any>;
    DeleteTransaction(direction: string, orderID: string, paymentID: string, transactionID: string, options?: {
        observe?: 'response';
        reportProgress?: boolean;
    }): Observable<HttpResponse<any>>;
    DeleteTransaction(direction: string, orderID: string, paymentID: string, transactionID: string, options?: {
        observe?: 'events';
        reportProgress?: boolean;
    }): Observable<HttpEvent<any>>;
    /**
     *
     *
     * @param direction Direction of the order, from the current user&#39;s perspective. Possible values: incoming, outgoing.
     * @param orderID ID of the order.
     * @param paymentID ID of the payment.
     * @param options.observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
     * @param options.reportProgress flag to report request and response progress.
     */
    Get<PaymentXp = any, PaymentTransactionXp = any>(direction: string, orderID: string, paymentID: string, options?: {
        observe?: 'body';
        reportProgress?: boolean;
    }): Observable<Payment<PaymentXp, PaymentTransactionXp>>;
    Get<PaymentXp = any, PaymentTransactionXp = any>(direction: string, orderID: string, paymentID: string, options?: {
        observe?: 'response';
        reportProgress?: boolean;
    }): Observable<HttpResponse<Payment>>;
    Get<PaymentXp = any, PaymentTransactionXp = any>(direction: string, orderID: string, paymentID: string, options?: {
        observe?: 'events';
        reportProgress?: boolean;
    }): Observable<HttpEvent<Payment>>;
    /**
     *
     *
     * @param direction Direction of the order, from the current user&#39;s perspective. Possible values: incoming, outgoing.
     * @param orderID ID of the order.
     * @param options.search Word or phrase to search for.
     * @param options.searchOn Comma-delimited list of fields to search on.
     * @param options.sortBy Comma-delimited list of fields to sort by.
     * @param options.page Page of results to return. Default: 1
     * @param options.pageSize Number of results to return per page. Default: 20, max: 100.
     * @param options.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or &#39;xp.???&#39;
     * @param options.observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
     * @param options.reportProgress flag to report request and response progress.
     */
    List<PaymentXp = any, PaymentTransactionXp = any>(direction: string, orderID: string, options?: {
        search?: string;
        searchOn?: string;
        sortBy?: string;
        page?: number;
        pageSize?: number;
        filters?: {
            [key: string]: string | Array<string>;
        };
        observe?: 'body';
        reportProgress?: boolean;
    }): Observable<ListPayment<PaymentXp, PaymentTransactionXp>>;
    List<PaymentXp = any, PaymentTransactionXp = any>(direction: string, orderID: string, options?: {
        search?: string;
        searchOn?: string;
        sortBy?: string;
        page?: number;
        pageSize?: number;
        filters?: {
            [key: string]: string | Array<string>;
        };
        observe?: 'response';
        reportProgress?: boolean;
    }): Observable<HttpResponse<ListPayment>>;
    List<PaymentXp = any, PaymentTransactionXp = any>(direction: string, orderID: string, options?: {
        search?: string;
        searchOn?: string;
        sortBy?: string;
        page?: number;
        pageSize?: number;
        filters?: {
            [key: string]: string | Array<string>;
        };
        observe?: 'events';
        reportProgress?: boolean;
    }): Observable<HttpEvent<ListPayment>>;
    /**
     *
     *
     * @param direction Direction of the order, from the current user&#39;s perspective. Possible values: incoming, outgoing.
     * @param orderID ID of the order.
     * @param paymentID ID of the payment.
     * @param partialPayment
     * @param options.observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
     * @param options.reportProgress flag to report request and response progress.
     */
    Patch<PaymentXp = any, PaymentTransactionXp = any>(direction: string, orderID: string, paymentID: string, partialPayment: Payment, options?: {
        observe?: 'body';
        reportProgress?: boolean;
    }): Observable<Payment<PaymentXp, PaymentTransactionXp>>;
    Patch<PaymentXp = any, PaymentTransactionXp = any>(direction: string, orderID: string, paymentID: string, partialPayment: Payment, options?: {
        observe?: 'response';
        reportProgress?: boolean;
    }): Observable<HttpResponse<Payment>>;
    Patch<PaymentXp = any, PaymentTransactionXp = any>(direction: string, orderID: string, paymentID: string, partialPayment: Payment, options?: {
        observe?: 'events';
        reportProgress?: boolean;
    }): Observable<HttpEvent<Payment>>;
}
