UNPKG

@finbourne/lusid-sdk-angular18

Version:

An Angular (18) SDK for secure access to the LUSID® by FINBOURNE web API

77 lines (76 loc) 4.96 kB
import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http'; import { Observable } from 'rxjs'; import { CalculateOrderDatesRequest } from '../model/calculateOrderDatesRequest'; import { CalculateOrderDatesResponse } from '../model/calculateOrderDatesResponse'; import { TransferAgencyOrdersResponse } from '../model/transferAgencyOrdersResponse'; import { UpsertTransferAgencyOrderRequest } from '../model/upsertTransferAgencyOrderRequest'; import { Configuration } from '../configuration'; import * as i0 from "@angular/core"; export interface CalculateOrderDatesRequestParams { /** The request containing the dates used for calculation */ requestBody: { [key: string]: CalculateOrderDatesRequest; }; } export interface UpsertTransferAgencyOrdersRequestParams { /** The transfer agency orders to upsert, keyed by a unique request identifier. */ requestBody: { [key: string]: UpsertTransferAgencyOrderRequest; }; } export declare class TransferAgencyService { protected httpClient: HttpClient; protected basePath: string; defaultHeaders: HttpHeaders; configuration: Configuration; encoder: HttpParameterCodec; constructor(httpClient: HttpClient, basePath: string | string[], configuration: Configuration); private addToHttpParams; private addToHttpParamsRecursive; /** * [EXPERIMENTAL] CalculateOrderDates: Calculate the key dates associated with transfer agency orders * The response contains both the collection of successfully calculated dates and any failed calculations, each in the form of a dictionary keyed by the request\&#39;s keys. For each failure, a reason is provided. It is important to check the failed set for unsuccessful results. * @param requestParameters * @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. */ calculateOrderDates(requestParameters?: CalculateOrderDatesRequestParams, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; transferCache?: boolean; }): Observable<CalculateOrderDatesResponse>; calculateOrderDates(requestParameters?: CalculateOrderDatesRequestParams, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; transferCache?: boolean; }): Observable<HttpResponse<CalculateOrderDatesResponse>>; calculateOrderDates(requestParameters?: CalculateOrderDatesRequestParams, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; transferCache?: boolean; }): Observable<HttpEvent<CalculateOrderDatesResponse>>; /** * [EXPERIMENTAL] UpsertTransferAgencyOrders: Upsert transfer agency orders * Creates a transaction and updates the relevant order for each order supplied. The response contains both successfully processed orders and any failures, each in the form of a dictionary keyed by the request\&#39;s keys. For each failure, a reason is provided. It is important to check the failed set for unsuccessful results. * @param requestParameters * @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. */ upsertTransferAgencyOrders(requestParameters?: UpsertTransferAgencyOrdersRequestParams, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; transferCache?: boolean; }): Observable<TransferAgencyOrdersResponse>; upsertTransferAgencyOrders(requestParameters?: UpsertTransferAgencyOrdersRequestParams, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; transferCache?: boolean; }): Observable<HttpResponse<TransferAgencyOrdersResponse>>; upsertTransferAgencyOrders(requestParameters?: UpsertTransferAgencyOrdersRequestParams, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; transferCache?: boolean; }): Observable<HttpEvent<TransferAgencyOrdersResponse>>; static ɵfac: i0.ɵɵFactoryDeclaration<TransferAgencyService, [null, { optional: true; }, { optional: true; }]>; static ɵprov: i0.ɵɵInjectableDeclaration<TransferAgencyService>; }