/**
 * 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 { ListPromotion } from '../model/listPromotion';
import { ListPromotionAssignment } from '../model/listPromotionAssignment';
import { Promotion } from '../model/promotion';
import { PromotionAssignment } from '../model/promotionAssignment';
import { Configuration } from '../configuration';
export declare class OcPromotionService {
    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 promotionID ID of the promotion.
     * @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(promotionID: string, options?: {
        observe?: 'body';
        reportProgress?: boolean;
    }): Observable<any>;
    Delete(promotionID: string, options?: {
        observe?: 'response';
        reportProgress?: boolean;
    }): Observable<HttpResponse<any>>;
    Delete(promotionID: string, options?: {
        observe?: 'events';
        reportProgress?: boolean;
    }): Observable<HttpEvent<any>>;
    /**
     *
     *
     * @param promotion
     * @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<PromotionXp = any>(promotion: Promotion, options?: {
        observe?: 'body';
        reportProgress?: boolean;
    }): Observable<Promotion<PromotionXp>>;
    Create<PromotionXp = any>(promotion: Promotion, options?: {
        observe?: 'response';
        reportProgress?: boolean;
    }): Observable<HttpResponse<Promotion>>;
    Create<PromotionXp = any>(promotion: Promotion, options?: {
        observe?: 'events';
        reportProgress?: boolean;
    }): Observable<HttpEvent<Promotion>>;
    /**
     *
     *
     * @param promotionID ID of the promotion.
     * @param buyerID ID of the buyer.
     * @param options.userID ID of the user.
     * @param options.userGroupID ID of the user group.
     * @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.
     */
    DeleteAssignment(promotionID: string, buyerID: string, options?: {
        buyerID?: string;
        userID?: string;
        userGroupID?: string;
        observe?: 'body';
        reportProgress?: boolean;
    }): Observable<any>;
    DeleteAssignment(promotionID: string, buyerID: string, options?: {
        buyerID?: string;
        userID?: string;
        userGroupID?: string;
        observe?: 'response';
        reportProgress?: boolean;
    }): Observable<HttpResponse<any>>;
    DeleteAssignment(promotionID: string, buyerID: string, options?: {
        buyerID?: string;
        userID?: string;
        userGroupID?: string;
        observe?: 'events';
        reportProgress?: boolean;
    }): Observable<HttpEvent<any>>;
    /**
     *
     *
     * @param promotionID ID of the promotion.
     * @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<PromotionXp = any>(promotionID: string, options?: {
        observe?: 'body';
        reportProgress?: boolean;
    }): Observable<Promotion<PromotionXp>>;
    Get<PromotionXp = any>(promotionID: string, options?: {
        observe?: 'response';
        reportProgress?: boolean;
    }): Observable<HttpResponse<Promotion>>;
    Get<PromotionXp = any>(promotionID: string, options?: {
        observe?: 'events';
        reportProgress?: boolean;
    }): Observable<HttpEvent<Promotion>>;
    /**
     *
     *
     * @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<PromotionXp = any>(options?: {
        search?: string;
        searchOn?: string;
        sortBy?: string;
        page?: number;
        pageSize?: number;
        filters?: {
            [key: string]: string | Array<string>;
        };
        observe?: 'body';
        reportProgress?: boolean;
    }): Observable<ListPromotion<PromotionXp>>;
    List<PromotionXp = any>(options?: {
        search?: string;
        searchOn?: string;
        sortBy?: string;
        page?: number;
        pageSize?: number;
        filters?: {
            [key: string]: string | Array<string>;
        };
        observe?: 'response';
        reportProgress?: boolean;
    }): Observable<HttpResponse<ListPromotion>>;
    List<PromotionXp = any>(options?: {
        search?: string;
        searchOn?: string;
        sortBy?: string;
        page?: number;
        pageSize?: number;
        filters?: {
            [key: string]: string | Array<string>;
        };
        observe?: 'events';
        reportProgress?: boolean;
    }): Observable<HttpEvent<ListPromotion>>;
    /**
     *
     *
     * @param options.buyerID ID of the buyer.
     * @param options.promotionID ID of the promotion.
     * @param options.userID ID of the user.
     * @param options.userGroupID ID of the user group.
     * @param options.level Level of the promotion assignment. Possible values: User, Group, Company.
     * @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.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.
     */
    ListAssignments(options?: {
        buyerID?: string;
        promotionID?: string;
        userID?: string;
        userGroupID?: string;
        level?: string;
        page?: number;
        pageSize?: number;
        observe?: 'body';
        reportProgress?: boolean;
    }): Observable<ListPromotionAssignment>;
    ListAssignments(options?: {
        buyerID?: string;
        promotionID?: string;
        userID?: string;
        userGroupID?: string;
        level?: string;
        page?: number;
        pageSize?: number;
        observe?: 'response';
        reportProgress?: boolean;
    }): Observable<HttpResponse<ListPromotionAssignment>>;
    ListAssignments(options?: {
        buyerID?: string;
        promotionID?: string;
        userID?: string;
        userGroupID?: string;
        level?: string;
        page?: number;
        pageSize?: number;
        observe?: 'events';
        reportProgress?: boolean;
    }): Observable<HttpEvent<ListPromotionAssignment>>;
    /**
     *
     *
     * @param promotionID ID of the promotion.
     * @param partialPromotion
     * @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<PromotionXp = any>(promotionID: string, partialPromotion: Promotion, options?: {
        observe?: 'body';
        reportProgress?: boolean;
    }): Observable<Promotion<PromotionXp>>;
    Patch<PromotionXp = any>(promotionID: string, partialPromotion: Promotion, options?: {
        observe?: 'response';
        reportProgress?: boolean;
    }): Observable<HttpResponse<Promotion>>;
    Patch<PromotionXp = any>(promotionID: string, partialPromotion: Promotion, options?: {
        observe?: 'events';
        reportProgress?: boolean;
    }): Observable<HttpEvent<Promotion>>;
    /**
     *
     *
     * @param promotionID ID of the promotion.
     * @param promotion
     * @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.
     */
    Save<PromotionXp = any>(promotionID: string, promotion: Promotion, options?: {
        observe?: 'body';
        reportProgress?: boolean;
    }): Observable<Promotion<PromotionXp>>;
    Save<PromotionXp = any>(promotionID: string, promotion: Promotion, options?: {
        observe?: 'response';
        reportProgress?: boolean;
    }): Observable<HttpResponse<Promotion>>;
    Save<PromotionXp = any>(promotionID: string, promotion: Promotion, options?: {
        observe?: 'events';
        reportProgress?: boolean;
    }): Observable<HttpEvent<Promotion>>;
    /**
     *
     *
     * @param promotionAssignment
     * @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.
     */
    SaveAssignment(promotionAssignment: PromotionAssignment, options?: {
        observe?: 'body';
        reportProgress?: boolean;
    }): Observable<any>;
    SaveAssignment(promotionAssignment: PromotionAssignment, options?: {
        observe?: 'response';
        reportProgress?: boolean;
    }): Observable<HttpResponse<any>>;
    SaveAssignment(promotionAssignment: PromotionAssignment, options?: {
        observe?: 'events';
        reportProgress?: boolean;
    }): Observable<HttpEvent<any>>;
}
