import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http'; import { Observable } from 'rxjs'; import { AllocationServiceRunResponse } from '../model/models'; import { BookTransactionsResponse } from '../model/models'; import { ResourceId } from '../model/models'; import { Configuration } from '../configuration'; import * as i0 from "@angular/core"; export declare class OrderManagementService { protected httpClient: HttpClient; protected basePath: string; defaultHeaders: HttpHeaders; configuration: Configuration; encoder: HttpParameterCodec; constructor(httpClient: HttpClient, basePath: string, configuration: Configuration); private addToHttpParams; private addToHttpParamsRecursive; /** * [EXPERIMENTAL] BookTransactions: Books transactions using specific allocations as a source. * Takes a collection of allocation IDs, and maps fields from those allocations and related orders onto new transactions. * @param resourceId The allocations to create transactions for * @param applyFeesAndCommission Whether to apply fees and commissions to transactions (default: true) * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ bookTransactions(resourceId: Array, applyFeesAndCommission?: boolean, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; }): Observable; bookTransactions(resourceId: Array, applyFeesAndCommission?: boolean, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; }): Observable>; bookTransactions(resourceId: Array, applyFeesAndCommission?: boolean, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; }): Observable>; /** * [EXPERIMENTAL] RunAllocationService: Runs the Allocation Service * This will allocate executions for a given list of placements back to their originating orders. * @param resourceId The List of Placement IDs for which you wish to allocate executions. * @param allocationAlgorithm A string representation of the allocation algorithm you would like to use to allocate shares from executions e.g. \"PR-FIFO\". This defaults to \"PR-FIFO\". * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ runAllocationService(resourceId: Array, allocationAlgorithm?: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; }): Observable; runAllocationService(resourceId: Array, allocationAlgorithm?: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; }): Observable>; runAllocationService(resourceId: Array, allocationAlgorithm?: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; }): Observable>; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }