| /** |
| * Licensed to the Apache Software Foundation (ASF) under one |
| * or more contributor license agreements. See the NOTICE file |
| * distributed with this work for additional information |
| * regarding copyright ownership. The ASF licenses this file |
| * to you under the Apache License, Version 2.0 (the |
| * "License"); you may not use this file except in compliance |
| * with the License. You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, |
| * software distributed under the License is distributed on an |
| * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| * KIND, either express or implied. See the License for the |
| * specific language governing permissions and limitations |
| * under the License. |
| */ |
| |
| /* |
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). |
| * https://openapi-generator.tech |
| * Do not edit the class manually. |
| */ |
| |
| /* tslint:disable:no-unused-variable member-ordering */ |
| |
| import { Inject, Injectable, Optional } from '@angular/core'; |
| import { HttpClient, HttpHeaders, HttpParams, |
| HttpResponse, HttpEvent, HttpContext |
| } from '@angular/common/http'; |
| import { Observable } from 'rxjs'; |
| import { OpenApiHttpParams, QueryParamStyle } from '../query.params'; |
| |
| // @ts-ignore |
| import { AdvancedPaymentData } from '../model/advancedPaymentData'; |
| // @ts-ignore |
| import { CampaignPreviewData } from '../model/campaignPreviewData'; |
| // @ts-ignore |
| import { CommandProcessingResult } from '../model/commandProcessingResult'; |
| // @ts-ignore |
| import { CommandWrapper } from '../model/commandWrapper'; |
| // @ts-ignore |
| import { ExternalEventResponse } from '../model/externalEventResponse'; |
| // @ts-ignore |
| import { FormDataBodyPart } from '../model/formDataBodyPart'; |
| // @ts-ignore |
| import { ImageCreateResponse } from '../model/imageCreateResponse'; |
| // @ts-ignore |
| import { ImageDeleteResponse } from '../model/imageDeleteResponse'; |
| // @ts-ignore |
| import { LoanAuditFieldsData } from '../model/loanAuditFieldsData'; |
| // @ts-ignore |
| import { SmsCampaignData } from '../model/smsCampaignData'; |
| // @ts-ignore |
| import { SmsCampaignPreviewDto } from '../model/smsCampaignPreviewDto'; |
| |
| // @ts-ignore |
| import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; |
| import { Configuration } from '../configuration'; |
| import { BaseService } from '../api.base.service'; |
| |
| |
| |
| @Injectable({ |
| providedIn: 'root' |
| }) |
| export class DefaultService extends BaseService { |
| |
| constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) { |
| super(basePath, configuration); |
| } |
| |
| /** |
| * Delete an email campaign |
| * @endpoint delete /v1/email/campaign/{resourceId} |
| * @param resourceId |
| * @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. |
| * @param options additional options |
| */ |
| public deleteEmailCampaignResourceId(resourceId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<string>; |
| public deleteEmailCampaignResourceId(resourceId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<string>>; |
| public deleteEmailCampaignResourceId(resourceId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<string>>; |
| public deleteEmailCampaignResourceId(resourceId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> { |
| if (resourceId === null || resourceId === undefined) { |
| throw new Error('Required parameter resourceId was null or undefined when calling deleteEmailCampaignResourceId.'); |
| } |
| |
| let localVarHeaders = this.defaultHeaders; |
| |
| // authentication (basicAuth) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('basicAuth', 'Authorization', localVarHeaders, 'Basic '); |
| |
| // authentication (tenantid) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('tenantid', 'fineract-platform-tenantid', localVarHeaders); |
| |
| const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ |
| 'application/json' |
| ]); |
| if (localVarHttpHeaderAcceptSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); |
| } |
| |
| const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); |
| |
| const localVarTransferCache: boolean = options?.transferCache ?? true; |
| |
| |
| let responseType_: 'text' | 'json' | 'blob' = 'json'; |
| if (localVarHttpHeaderAcceptSelected) { |
| if (localVarHttpHeaderAcceptSelected.startsWith('text')) { |
| responseType_ = 'text'; |
| } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { |
| responseType_ = 'json'; |
| } else { |
| responseType_ = 'blob'; |
| } |
| } |
| |
| let localVarPath = `/v1/email/campaign/${this.configuration.encodeParam({name: "resourceId", value: resourceId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; |
| const { basePath, withCredentials } = this.configuration; |
| return this.httpClient.request<string>('delete', `${basePath}${localVarPath}`, |
| { |
| context: localVarHttpContext, |
| responseType: <any>responseType_, |
| ...(withCredentials ? { withCredentials } : {}), |
| headers: localVarHeaders, |
| observe: observe, |
| ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), |
| reportProgress: reportProgress |
| } |
| ); |
| } |
| |
| /** |
| * Delete an email message |
| * @endpoint delete /v1/email/{resourceId} |
| * @param resourceId |
| * @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. |
| * @param options additional options |
| */ |
| public deleteEmailResourceId(resourceId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<string>; |
| public deleteEmailResourceId(resourceId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<string>>; |
| public deleteEmailResourceId(resourceId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<string>>; |
| public deleteEmailResourceId(resourceId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> { |
| if (resourceId === null || resourceId === undefined) { |
| throw new Error('Required parameter resourceId was null or undefined when calling deleteEmailResourceId.'); |
| } |
| |
| let localVarHeaders = this.defaultHeaders; |
| |
| // authentication (basicAuth) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('basicAuth', 'Authorization', localVarHeaders, 'Basic '); |
| |
| // authentication (tenantid) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('tenantid', 'fineract-platform-tenantid', localVarHeaders); |
| |
| const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ |
| 'application/json' |
| ]); |
| if (localVarHttpHeaderAcceptSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); |
| } |
| |
| const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); |
| |
| const localVarTransferCache: boolean = options?.transferCache ?? true; |
| |
| |
| let responseType_: 'text' | 'json' | 'blob' = 'json'; |
| if (localVarHttpHeaderAcceptSelected) { |
| if (localVarHttpHeaderAcceptSelected.startsWith('text')) { |
| responseType_ = 'text'; |
| } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { |
| responseType_ = 'json'; |
| } else { |
| responseType_ = 'blob'; |
| } |
| } |
| |
| let localVarPath = `/v1/email/${this.configuration.encodeParam({name: "resourceId", value: resourceId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; |
| const { basePath, withCredentials } = this.configuration; |
| return this.httpClient.request<string>('delete', `${basePath}${localVarPath}`, |
| { |
| context: localVarHttpContext, |
| responseType: <any>responseType_, |
| ...(withCredentials ? { withCredentials } : {}), |
| headers: localVarHeaders, |
| observe: observe, |
| ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), |
| reportProgress: reportProgress |
| } |
| ); |
| } |
| |
| /** |
| * @endpoint delete /v1/{entityType}/{entityId}/images |
| * @param entityType |
| * @param entityId |
| * @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. |
| * @param options additional options |
| * @deprecated |
| */ |
| public deleteEntityTypeEntityIdImages(entityType: string, entityId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext, transferCache?: boolean}): Observable<ImageDeleteResponse>; |
| public deleteEntityTypeEntityIdImages(entityType: string, entityId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<ImageDeleteResponse>>; |
| public deleteEntityTypeEntityIdImages(entityType: string, entityId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<ImageDeleteResponse>>; |
| public deleteEntityTypeEntityIdImages(entityType: string, entityId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext, transferCache?: boolean}): Observable<any> { |
| if (entityType === null || entityType === undefined) { |
| throw new Error('Required parameter entityType was null or undefined when calling deleteEntityTypeEntityIdImages.'); |
| } |
| if (entityId === null || entityId === undefined) { |
| throw new Error('Required parameter entityId was null or undefined when calling deleteEntityTypeEntityIdImages.'); |
| } |
| |
| let localVarHeaders = this.defaultHeaders; |
| |
| // authentication (basicAuth) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('basicAuth', 'Authorization', localVarHeaders, 'Basic '); |
| |
| // authentication (tenantid) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('tenantid', 'fineract-platform-tenantid', localVarHeaders); |
| |
| const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ |
| '*/*' |
| ]); |
| if (localVarHttpHeaderAcceptSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); |
| } |
| |
| const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); |
| |
| const localVarTransferCache: boolean = options?.transferCache ?? true; |
| |
| |
| let responseType_: 'text' | 'json' | 'blob' = 'json'; |
| if (localVarHttpHeaderAcceptSelected) { |
| if (localVarHttpHeaderAcceptSelected.startsWith('text')) { |
| responseType_ = 'text'; |
| } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { |
| responseType_ = 'json'; |
| } else { |
| responseType_ = 'blob'; |
| } |
| } |
| |
| let localVarPath = `/v1/${this.configuration.encodeParam({name: "entityType", value: entityType, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "entityId", value: entityId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/images`; |
| const { basePath, withCredentials } = this.configuration; |
| return this.httpClient.request<ImageDeleteResponse>('delete', `${basePath}${localVarPath}`, |
| { |
| context: localVarHttpContext, |
| responseType: <any>responseType_, |
| ...(withCredentials ? { withCredentials } : {}), |
| headers: localVarHeaders, |
| observe: observe, |
| ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), |
| reportProgress: reportProgress |
| } |
| ); |
| } |
| |
| /** |
| * @endpoint delete /v1/internal/externalevents |
| * @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. |
| * @param options additional options |
| */ |
| public deleteInternalExternalevents(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any>; |
| public deleteInternalExternalevents(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>; |
| public deleteInternalExternalevents(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>; |
| public deleteInternalExternalevents(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> { |
| |
| let localVarHeaders = this.defaultHeaders; |
| |
| // authentication (basicAuth) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('basicAuth', 'Authorization', localVarHeaders, 'Basic '); |
| |
| // authentication (tenantid) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('tenantid', 'fineract-platform-tenantid', localVarHeaders); |
| |
| const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ |
| 'application/json' |
| ]); |
| if (localVarHttpHeaderAcceptSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); |
| } |
| |
| const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); |
| |
| const localVarTransferCache: boolean = options?.transferCache ?? true; |
| |
| |
| let responseType_: 'text' | 'json' | 'blob' = 'json'; |
| if (localVarHttpHeaderAcceptSelected) { |
| if (localVarHttpHeaderAcceptSelected.startsWith('text')) { |
| responseType_ = 'text'; |
| } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { |
| responseType_ = 'json'; |
| } else { |
| responseType_ = 'blob'; |
| } |
| } |
| |
| let localVarPath = `/v1/internal/externalevents`; |
| const { basePath, withCredentials } = this.configuration; |
| return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`, |
| { |
| context: localVarHttpContext, |
| responseType: <any>responseType_, |
| ...(withCredentials ? { withCredentials } : {}), |
| headers: localVarHeaders, |
| observe: observe, |
| ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), |
| reportProgress: reportProgress |
| } |
| ); |
| } |
| |
| /** |
| * @endpoint delete /v1/officetransactions/{transactionId} |
| * @param transactionId |
| * @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. |
| * @param options additional options |
| */ |
| public deleteOfficetransactionsTransactionId(transactionId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<string>; |
| public deleteOfficetransactionsTransactionId(transactionId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<string>>; |
| public deleteOfficetransactionsTransactionId(transactionId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<string>>; |
| public deleteOfficetransactionsTransactionId(transactionId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> { |
| if (transactionId === null || transactionId === undefined) { |
| throw new Error('Required parameter transactionId was null or undefined when calling deleteOfficetransactionsTransactionId.'); |
| } |
| |
| let localVarHeaders = this.defaultHeaders; |
| |
| // authentication (basicAuth) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('basicAuth', 'Authorization', localVarHeaders, 'Basic '); |
| |
| // authentication (tenantid) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('tenantid', 'fineract-platform-tenantid', localVarHeaders); |
| |
| const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ |
| 'application/json' |
| ]); |
| if (localVarHttpHeaderAcceptSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); |
| } |
| |
| const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); |
| |
| const localVarTransferCache: boolean = options?.transferCache ?? true; |
| |
| |
| let responseType_: 'text' | 'json' | 'blob' = 'json'; |
| if (localVarHttpHeaderAcceptSelected) { |
| if (localVarHttpHeaderAcceptSelected.startsWith('text')) { |
| responseType_ = 'text'; |
| } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { |
| responseType_ = 'json'; |
| } else { |
| responseType_ = 'blob'; |
| } |
| } |
| |
| let localVarPath = `/v1/officetransactions/${this.configuration.encodeParam({name: "transactionId", value: transactionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; |
| const { basePath, withCredentials } = this.configuration; |
| return this.httpClient.request<string>('delete', `${basePath}${localVarPath}`, |
| { |
| context: localVarHttpContext, |
| responseType: <any>responseType_, |
| ...(withCredentials ? { withCredentials } : {}), |
| headers: localVarHeaders, |
| observe: observe, |
| ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), |
| reportProgress: reportProgress |
| } |
| ); |
| } |
| |
| /** |
| * Delete a SMS Campaign |
| * Note: Only closed SMS Campaigns can be deleted |
| * @endpoint delete /v1/smscampaigns/{campaignId} |
| * @param campaignId |
| * @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. |
| * @param options additional options |
| */ |
| public deleteSmscampaignsCampaignId(campaignId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext, transferCache?: boolean}): Observable<CommandProcessingResult>; |
| public deleteSmscampaignsCampaignId(campaignId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<CommandProcessingResult>>; |
| public deleteSmscampaignsCampaignId(campaignId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<CommandProcessingResult>>; |
| public deleteSmscampaignsCampaignId(campaignId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext, transferCache?: boolean}): Observable<any> { |
| if (campaignId === null || campaignId === undefined) { |
| throw new Error('Required parameter campaignId was null or undefined when calling deleteSmscampaignsCampaignId.'); |
| } |
| |
| let localVarHeaders = this.defaultHeaders; |
| |
| // authentication (basicAuth) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('basicAuth', 'Authorization', localVarHeaders, 'Basic '); |
| |
| // authentication (tenantid) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('tenantid', 'fineract-platform-tenantid', localVarHeaders); |
| |
| const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ |
| '*/*' |
| ]); |
| if (localVarHttpHeaderAcceptSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); |
| } |
| |
| const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); |
| |
| const localVarTransferCache: boolean = options?.transferCache ?? true; |
| |
| |
| let responseType_: 'text' | 'json' | 'blob' = 'json'; |
| if (localVarHttpHeaderAcceptSelected) { |
| if (localVarHttpHeaderAcceptSelected.startsWith('text')) { |
| responseType_ = 'text'; |
| } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { |
| responseType_ = 'json'; |
| } else { |
| responseType_ = 'blob'; |
| } |
| } |
| |
| let localVarPath = `/v1/smscampaigns/${this.configuration.encodeParam({name: "campaignId", value: campaignId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; |
| const { basePath, withCredentials } = this.configuration; |
| return this.httpClient.request<CommandProcessingResult>('delete', `${basePath}${localVarPath}`, |
| { |
| context: localVarHttpContext, |
| responseType: <any>responseType_, |
| ...(withCredentials ? { withCredentials } : {}), |
| headers: localVarHeaders, |
| observe: observe, |
| ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), |
| reportProgress: reportProgress |
| } |
| ); |
| } |
| |
| /** |
| * @endpoint get /application.wadl |
| * @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. |
| * @param options additional options |
| */ |
| public getApplicationWadl(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.sun.wadl+xml' | 'application/xml', context?: HttpContext, transferCache?: boolean}): Observable<any>; |
| public getApplicationWadl(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.sun.wadl+xml' | 'application/xml', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>; |
| public getApplicationWadl(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/vnd.sun.wadl+xml' | 'application/xml', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>; |
| public getApplicationWadl(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/vnd.sun.wadl+xml' | 'application/xml', context?: HttpContext, transferCache?: boolean}): Observable<any> { |
| |
| let localVarHeaders = this.defaultHeaders; |
| |
| // authentication (basicAuth) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('basicAuth', 'Authorization', localVarHeaders, 'Basic '); |
| |
| // authentication (tenantid) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('tenantid', 'fineract-platform-tenantid', localVarHeaders); |
| |
| const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ |
| 'application/vnd.sun.wadl+xml', |
| 'application/xml' |
| ]); |
| if (localVarHttpHeaderAcceptSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); |
| } |
| |
| const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); |
| |
| const localVarTransferCache: boolean = options?.transferCache ?? true; |
| |
| |
| let responseType_: 'text' | 'json' | 'blob' = 'json'; |
| if (localVarHttpHeaderAcceptSelected) { |
| if (localVarHttpHeaderAcceptSelected.startsWith('text')) { |
| responseType_ = 'text'; |
| } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { |
| responseType_ = 'json'; |
| } else { |
| responseType_ = 'blob'; |
| } |
| } |
| |
| let localVarPath = `/application.wadl`; |
| const { basePath, withCredentials } = this.configuration; |
| return this.httpClient.request<any>('get', `${basePath}${localVarPath}`, |
| { |
| context: localVarHttpContext, |
| responseType: <any>responseType_, |
| ...(withCredentials ? { withCredentials } : {}), |
| headers: localVarHeaders, |
| observe: observe, |
| ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), |
| reportProgress: reportProgress |
| } |
| ); |
| } |
| |
| /** |
| * @endpoint get /application.wadl/{path} |
| * @param path |
| * @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. |
| * @param options additional options |
| */ |
| public getApplicationWadlPath(path: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/xml', context?: HttpContext, transferCache?: boolean}): Observable<any>; |
| public getApplicationWadlPath(path: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/xml', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>; |
| public getApplicationWadlPath(path: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/xml', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>; |
| public getApplicationWadlPath(path: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/xml', context?: HttpContext, transferCache?: boolean}): Observable<any> { |
| if (path === null || path === undefined) { |
| throw new Error('Required parameter path was null or undefined when calling getApplicationWadlPath.'); |
| } |
| |
| let localVarHeaders = this.defaultHeaders; |
| |
| // authentication (basicAuth) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('basicAuth', 'Authorization', localVarHeaders, 'Basic '); |
| |
| // authentication (tenantid) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('tenantid', 'fineract-platform-tenantid', localVarHeaders); |
| |
| const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ |
| 'application/xml' |
| ]); |
| if (localVarHttpHeaderAcceptSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); |
| } |
| |
| const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); |
| |
| const localVarTransferCache: boolean = options?.transferCache ?? true; |
| |
| |
| let responseType_: 'text' | 'json' | 'blob' = 'json'; |
| if (localVarHttpHeaderAcceptSelected) { |
| if (localVarHttpHeaderAcceptSelected.startsWith('text')) { |
| responseType_ = 'text'; |
| } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { |
| responseType_ = 'json'; |
| } else { |
| responseType_ = 'blob'; |
| } |
| } |
| |
| let localVarPath = `/application.wadl/${this.configuration.encodeParam({name: "path", value: path, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; |
| const { basePath, withCredentials } = this.configuration; |
| return this.httpClient.request<any>('get', `${basePath}${localVarPath}`, |
| { |
| context: localVarHttpContext, |
| responseType: <any>responseType_, |
| ...(withCredentials ? { withCredentials } : {}), |
| headers: localVarHeaders, |
| observe: observe, |
| ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), |
| reportProgress: reportProgress |
| } |
| ); |
| } |
| |
| /** |
| * List all email messages |
| * @endpoint get /v1/email |
| * @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. |
| * @param options additional options |
| */ |
| public getEmail(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<string>; |
| public getEmail(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<string>>; |
| public getEmail(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<string>>; |
| public getEmail(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> { |
| |
| let localVarHeaders = this.defaultHeaders; |
| |
| // authentication (basicAuth) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('basicAuth', 'Authorization', localVarHeaders, 'Basic '); |
| |
| // authentication (tenantid) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('tenantid', 'fineract-platform-tenantid', localVarHeaders); |
| |
| const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ |
| 'application/json' |
| ]); |
| if (localVarHttpHeaderAcceptSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); |
| } |
| |
| const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); |
| |
| const localVarTransferCache: boolean = options?.transferCache ?? true; |
| |
| |
| let responseType_: 'text' | 'json' | 'blob' = 'json'; |
| if (localVarHttpHeaderAcceptSelected) { |
| if (localVarHttpHeaderAcceptSelected.startsWith('text')) { |
| responseType_ = 'text'; |
| } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { |
| responseType_ = 'json'; |
| } else { |
| responseType_ = 'blob'; |
| } |
| } |
| |
| let localVarPath = `/v1/email`; |
| const { basePath, withCredentials } = this.configuration; |
| return this.httpClient.request<string>('get', `${basePath}${localVarPath}`, |
| { |
| context: localVarHttpContext, |
| responseType: <any>responseType_, |
| ...(withCredentials ? { withCredentials } : {}), |
| headers: localVarHeaders, |
| observe: observe, |
| ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), |
| reportProgress: reportProgress |
| } |
| ); |
| } |
| |
| /** |
| * List all email campaigns |
| * @endpoint get /v1/email/campaign |
| * @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. |
| * @param options additional options |
| */ |
| public getEmailCampaign(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<string>; |
| public getEmailCampaign(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<string>>; |
| public getEmailCampaign(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<string>>; |
| public getEmailCampaign(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> { |
| |
| let localVarHeaders = this.defaultHeaders; |
| |
| // authentication (basicAuth) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('basicAuth', 'Authorization', localVarHeaders, 'Basic '); |
| |
| // authentication (tenantid) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('tenantid', 'fineract-platform-tenantid', localVarHeaders); |
| |
| const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ |
| 'application/json' |
| ]); |
| if (localVarHttpHeaderAcceptSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); |
| } |
| |
| const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); |
| |
| const localVarTransferCache: boolean = options?.transferCache ?? true; |
| |
| |
| let responseType_: 'text' | 'json' | 'blob' = 'json'; |
| if (localVarHttpHeaderAcceptSelected) { |
| if (localVarHttpHeaderAcceptSelected.startsWith('text')) { |
| responseType_ = 'text'; |
| } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { |
| responseType_ = 'json'; |
| } else { |
| responseType_ = 'blob'; |
| } |
| } |
| |
| let localVarPath = `/v1/email/campaign`; |
| const { basePath, withCredentials } = this.configuration; |
| return this.httpClient.request<string>('get', `${basePath}${localVarPath}`, |
| { |
| context: localVarHttpContext, |
| responseType: <any>responseType_, |
| ...(withCredentials ? { withCredentials } : {}), |
| headers: localVarHeaders, |
| observe: observe, |
| ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), |
| reportProgress: reportProgress |
| } |
| ); |
| } |
| |
| /** |
| * Retrieve an email campaign |
| * @endpoint get /v1/email/campaign/{resourceId} |
| * @param resourceId |
| * @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. |
| * @param options additional options |
| */ |
| public getEmailCampaignResourceId(resourceId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<string>; |
| public getEmailCampaignResourceId(resourceId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<string>>; |
| public getEmailCampaignResourceId(resourceId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<string>>; |
| public getEmailCampaignResourceId(resourceId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> { |
| if (resourceId === null || resourceId === undefined) { |
| throw new Error('Required parameter resourceId was null or undefined when calling getEmailCampaignResourceId.'); |
| } |
| |
| let localVarHeaders = this.defaultHeaders; |
| |
| // authentication (basicAuth) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('basicAuth', 'Authorization', localVarHeaders, 'Basic '); |
| |
| // authentication (tenantid) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('tenantid', 'fineract-platform-tenantid', localVarHeaders); |
| |
| const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ |
| 'application/json' |
| ]); |
| if (localVarHttpHeaderAcceptSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); |
| } |
| |
| const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); |
| |
| const localVarTransferCache: boolean = options?.transferCache ?? true; |
| |
| |
| let responseType_: 'text' | 'json' | 'blob' = 'json'; |
| if (localVarHttpHeaderAcceptSelected) { |
| if (localVarHttpHeaderAcceptSelected.startsWith('text')) { |
| responseType_ = 'text'; |
| } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { |
| responseType_ = 'json'; |
| } else { |
| responseType_ = 'blob'; |
| } |
| } |
| |
| let localVarPath = `/v1/email/campaign/${this.configuration.encodeParam({name: "resourceId", value: resourceId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; |
| const { basePath, withCredentials } = this.configuration; |
| return this.httpClient.request<string>('get', `${basePath}${localVarPath}`, |
| { |
| context: localVarHttpContext, |
| responseType: <any>responseType_, |
| ...(withCredentials ? { withCredentials } : {}), |
| headers: localVarHeaders, |
| observe: observe, |
| ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), |
| reportProgress: reportProgress |
| } |
| ); |
| } |
| |
| /** |
| * Retrieve email campaign template |
| * @endpoint get /v1/email/campaign/template |
| * @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. |
| * @param options additional options |
| */ |
| public getEmailCampaignTemplate(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<string>; |
| public getEmailCampaignTemplate(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<string>>; |
| public getEmailCampaignTemplate(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<string>>; |
| public getEmailCampaignTemplate(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> { |
| |
| let localVarHeaders = this.defaultHeaders; |
| |
| // authentication (basicAuth) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('basicAuth', 'Authorization', localVarHeaders, 'Basic '); |
| |
| // authentication (tenantid) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('tenantid', 'fineract-platform-tenantid', localVarHeaders); |
| |
| const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ |
| 'application/json' |
| ]); |
| if (localVarHttpHeaderAcceptSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); |
| } |
| |
| const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); |
| |
| const localVarTransferCache: boolean = options?.transferCache ?? true; |
| |
| |
| let responseType_: 'text' | 'json' | 'blob' = 'json'; |
| if (localVarHttpHeaderAcceptSelected) { |
| if (localVarHttpHeaderAcceptSelected.startsWith('text')) { |
| responseType_ = 'text'; |
| } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { |
| responseType_ = 'json'; |
| } else { |
| responseType_ = 'blob'; |
| } |
| } |
| |
| let localVarPath = `/v1/email/campaign/template`; |
| const { basePath, withCredentials } = this.configuration; |
| return this.httpClient.request<string>('get', `${basePath}${localVarPath}`, |
| { |
| context: localVarHttpContext, |
| responseType: <any>responseType_, |
| ...(withCredentials ? { withCredentials } : {}), |
| headers: localVarHeaders, |
| observe: observe, |
| ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), |
| reportProgress: reportProgress |
| } |
| ); |
| } |
| |
| /** |
| * Retrieve an email campaign template detail by ID |
| * @endpoint get /v1/email/campaign/template/{resourceId} |
| * @param resourceId |
| * @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. |
| * @param options additional options |
| */ |
| public getEmailCampaignTemplateResourceId(resourceId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<string>; |
| public getEmailCampaignTemplateResourceId(resourceId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<string>>; |
| public getEmailCampaignTemplateResourceId(resourceId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<string>>; |
| public getEmailCampaignTemplateResourceId(resourceId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> { |
| if (resourceId === null || resourceId === undefined) { |
| throw new Error('Required parameter resourceId was null or undefined when calling getEmailCampaignTemplateResourceId.'); |
| } |
| |
| let localVarHeaders = this.defaultHeaders; |
| |
| // authentication (basicAuth) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('basicAuth', 'Authorization', localVarHeaders, 'Basic '); |
| |
| // authentication (tenantid) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('tenantid', 'fineract-platform-tenantid', localVarHeaders); |
| |
| const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ |
| 'application/json' |
| ]); |
| if (localVarHttpHeaderAcceptSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); |
| } |
| |
| const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); |
| |
| const localVarTransferCache: boolean = options?.transferCache ?? true; |
| |
| |
| let responseType_: 'text' | 'json' | 'blob' = 'json'; |
| if (localVarHttpHeaderAcceptSelected) { |
| if (localVarHttpHeaderAcceptSelected.startsWith('text')) { |
| responseType_ = 'text'; |
| } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { |
| responseType_ = 'json'; |
| } else { |
| responseType_ = 'blob'; |
| } |
| } |
| |
| let localVarPath = `/v1/email/campaign/template/${this.configuration.encodeParam({name: "resourceId", value: resourceId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; |
| const { basePath, withCredentials } = this.configuration; |
| return this.httpClient.request<string>('get', `${basePath}${localVarPath}`, |
| { |
| context: localVarHttpContext, |
| responseType: <any>responseType_, |
| ...(withCredentials ? { withCredentials } : {}), |
| headers: localVarHeaders, |
| observe: observe, |
| ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), |
| reportProgress: reportProgress |
| } |
| ); |
| } |
| |
| /** |
| * List all email configurations |
| * @endpoint get /v1/email/configuration |
| * @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. |
| * @param options additional options |
| */ |
| public getEmailConfiguration(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<string>; |
| public getEmailConfiguration(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<string>>; |
| public getEmailConfiguration(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<string>>; |
| public getEmailConfiguration(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> { |
| |
| let localVarHeaders = this.defaultHeaders; |
| |
| // authentication (basicAuth) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('basicAuth', 'Authorization', localVarHeaders, 'Basic '); |
| |
| // authentication (tenantid) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('tenantid', 'fineract-platform-tenantid', localVarHeaders); |
| |
| const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ |
| 'application/json' |
| ]); |
| if (localVarHttpHeaderAcceptSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); |
| } |
| |
| const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); |
| |
| const localVarTransferCache: boolean = options?.transferCache ?? true; |
| |
| |
| let responseType_: 'text' | 'json' | 'blob' = 'json'; |
| if (localVarHttpHeaderAcceptSelected) { |
| if (localVarHttpHeaderAcceptSelected.startsWith('text')) { |
| responseType_ = 'text'; |
| } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { |
| responseType_ = 'json'; |
| } else { |
| responseType_ = 'blob'; |
| } |
| } |
| |
| let localVarPath = `/v1/email/configuration`; |
| const { basePath, withCredentials } = this.configuration; |
| return this.httpClient.request<string>('get', `${basePath}${localVarPath}`, |
| { |
| context: localVarHttpContext, |
| responseType: <any>responseType_, |
| ...(withCredentials ? { withCredentials } : {}), |
| headers: localVarHeaders, |
| observe: observe, |
| ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), |
| reportProgress: reportProgress |
| } |
| ); |
| } |
| |
| /** |
| * Retrieve failed email messages |
| * @endpoint get /v1/email/failedEmail |
| * @param offset |
| * @param limit |
| * @param orderBy |
| * @param sortOrder |
| * @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. |
| * @param options additional options |
| */ |
| public getEmailFailedEmail(offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<string>; |
| public getEmailFailedEmail(offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<string>>; |
| public getEmailFailedEmail(offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<string>>; |
| public getEmailFailedEmail(offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> { |
| |
| let localVarQueryParameters = new OpenApiHttpParams(this.encoder); |
| |
| localVarQueryParameters = this.addToHttpParams( |
| localVarQueryParameters, |
| 'offset', |
| <any>offset, |
| QueryParamStyle.Form, |
| true, |
| ); |
| |
| |
| localVarQueryParameters = this.addToHttpParams( |
| localVarQueryParameters, |
| 'limit', |
| <any>limit, |
| QueryParamStyle.Form, |
| true, |
| ); |
| |
| |
| localVarQueryParameters = this.addToHttpParams( |
| localVarQueryParameters, |
| 'orderBy', |
| <any>orderBy, |
| QueryParamStyle.Form, |
| true, |
| ); |
| |
| |
| localVarQueryParameters = this.addToHttpParams( |
| localVarQueryParameters, |
| 'sortOrder', |
| <any>sortOrder, |
| QueryParamStyle.Form, |
| true, |
| ); |
| |
| |
| let localVarHeaders = this.defaultHeaders; |
| |
| // authentication (basicAuth) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('basicAuth', 'Authorization', localVarHeaders, 'Basic '); |
| |
| // authentication (tenantid) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('tenantid', 'fineract-platform-tenantid', localVarHeaders); |
| |
| const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ |
| 'application/json' |
| ]); |
| if (localVarHttpHeaderAcceptSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); |
| } |
| |
| const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); |
| |
| const localVarTransferCache: boolean = options?.transferCache ?? true; |
| |
| |
| let responseType_: 'text' | 'json' | 'blob' = 'json'; |
| if (localVarHttpHeaderAcceptSelected) { |
| if (localVarHttpHeaderAcceptSelected.startsWith('text')) { |
| responseType_ = 'text'; |
| } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { |
| responseType_ = 'json'; |
| } else { |
| responseType_ = 'blob'; |
| } |
| } |
| |
| let localVarPath = `/v1/email/failedEmail`; |
| const { basePath, withCredentials } = this.configuration; |
| return this.httpClient.request<string>('get', `${basePath}${localVarPath}`, |
| { |
| context: localVarHttpContext, |
| params: localVarQueryParameters.toHttpParams(), |
| responseType: <any>responseType_, |
| ...(withCredentials ? { withCredentials } : {}), |
| headers: localVarHeaders, |
| observe: observe, |
| ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), |
| reportProgress: reportProgress |
| } |
| ); |
| } |
| |
| /** |
| * Retrieve email messages by status |
| * @endpoint get /v1/email/messageByStatus |
| * @param offset |
| * @param limit |
| * @param status |
| * @param orderBy |
| * @param sortOrder |
| * @param fromDate |
| * @param toDate |
| * @param locale |
| * @param dateFormat |
| * @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. |
| * @param options additional options |
| */ |
| public getEmailMessageByStatus(offset?: number, limit?: number, status?: number, orderBy?: string, sortOrder?: string, fromDate?: object, toDate?: object, locale?: string, dateFormat?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<string>; |
| public getEmailMessageByStatus(offset?: number, limit?: number, status?: number, orderBy?: string, sortOrder?: string, fromDate?: object, toDate?: object, locale?: string, dateFormat?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<string>>; |
| public getEmailMessageByStatus(offset?: number, limit?: number, status?: number, orderBy?: string, sortOrder?: string, fromDate?: object, toDate?: object, locale?: string, dateFormat?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<string>>; |
| public getEmailMessageByStatus(offset?: number, limit?: number, status?: number, orderBy?: string, sortOrder?: string, fromDate?: object, toDate?: object, locale?: string, dateFormat?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> { |
| |
| let localVarQueryParameters = new OpenApiHttpParams(this.encoder); |
| |
| localVarQueryParameters = this.addToHttpParams( |
| localVarQueryParameters, |
| 'offset', |
| <any>offset, |
| QueryParamStyle.Form, |
| true, |
| ); |
| |
| |
| localVarQueryParameters = this.addToHttpParams( |
| localVarQueryParameters, |
| 'limit', |
| <any>limit, |
| QueryParamStyle.Form, |
| true, |
| ); |
| |
| |
| localVarQueryParameters = this.addToHttpParams( |
| localVarQueryParameters, |
| 'status', |
| <any>status, |
| QueryParamStyle.Form, |
| true, |
| ); |
| |
| |
| localVarQueryParameters = this.addToHttpParams( |
| localVarQueryParameters, |
| 'orderBy', |
| <any>orderBy, |
| QueryParamStyle.Form, |
| true, |
| ); |
| |
| |
| localVarQueryParameters = this.addToHttpParams( |
| localVarQueryParameters, |
| 'sortOrder', |
| <any>sortOrder, |
| QueryParamStyle.Form, |
| true, |
| ); |
| |
| |
| localVarQueryParameters = this.addToHttpParams( |
| localVarQueryParameters, |
| 'fromDate', |
| <any>fromDate, |
| QueryParamStyle.Form, |
| true, |
| ); |
| |
| |
| localVarQueryParameters = this.addToHttpParams( |
| localVarQueryParameters, |
| 'toDate', |
| <any>toDate, |
| QueryParamStyle.Form, |
| true, |
| ); |
| |
| |
| localVarQueryParameters = this.addToHttpParams( |
| localVarQueryParameters, |
| 'locale', |
| <any>locale, |
| QueryParamStyle.Form, |
| true, |
| ); |
| |
| |
| localVarQueryParameters = this.addToHttpParams( |
| localVarQueryParameters, |
| 'dateFormat', |
| <any>dateFormat, |
| QueryParamStyle.Form, |
| true, |
| ); |
| |
| |
| let localVarHeaders = this.defaultHeaders; |
| |
| // authentication (basicAuth) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('basicAuth', 'Authorization', localVarHeaders, 'Basic '); |
| |
| // authentication (tenantid) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('tenantid', 'fineract-platform-tenantid', localVarHeaders); |
| |
| const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ |
| 'application/json' |
| ]); |
| if (localVarHttpHeaderAcceptSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); |
| } |
| |
| const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); |
| |
| const localVarTransferCache: boolean = options?.transferCache ?? true; |
| |
| |
| let responseType_: 'text' | 'json' | 'blob' = 'json'; |
| if (localVarHttpHeaderAcceptSelected) { |
| if (localVarHttpHeaderAcceptSelected.startsWith('text')) { |
| responseType_ = 'text'; |
| } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { |
| responseType_ = 'json'; |
| } else { |
| responseType_ = 'blob'; |
| } |
| } |
| |
| let localVarPath = `/v1/email/messageByStatus`; |
| const { basePath, withCredentials } = this.configuration; |
| return this.httpClient.request<string>('get', `${basePath}${localVarPath}`, |
| { |
| context: localVarHttpContext, |
| params: localVarQueryParameters.toHttpParams(), |
| responseType: <any>responseType_, |
| ...(withCredentials ? { withCredentials } : {}), |
| headers: localVarHeaders, |
| observe: observe, |
| ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), |
| reportProgress: reportProgress |
| } |
| ); |
| } |
| |
| /** |
| * Retrieve pending email messages |
| * @endpoint get /v1/email/pendingEmail |
| * @param offset |
| * @param limit |
| * @param orderBy |
| * @param sortOrder |
| * @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. |
| * @param options additional options |
| */ |
| public getEmailPendingEmail(offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<string>; |
| public getEmailPendingEmail(offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<string>>; |
| public getEmailPendingEmail(offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<string>>; |
| public getEmailPendingEmail(offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> { |
| |
| let localVarQueryParameters = new OpenApiHttpParams(this.encoder); |
| |
| localVarQueryParameters = this.addToHttpParams( |
| localVarQueryParameters, |
| 'offset', |
| <any>offset, |
| QueryParamStyle.Form, |
| true, |
| ); |
| |
| |
| localVarQueryParameters = this.addToHttpParams( |
| localVarQueryParameters, |
| 'limit', |
| <any>limit, |
| QueryParamStyle.Form, |
| true, |
| ); |
| |
| |
| localVarQueryParameters = this.addToHttpParams( |
| localVarQueryParameters, |
| 'orderBy', |
| <any>orderBy, |
| QueryParamStyle.Form, |
| true, |
| ); |
| |
| |
| localVarQueryParameters = this.addToHttpParams( |
| localVarQueryParameters, |
| 'sortOrder', |
| <any>sortOrder, |
| QueryParamStyle.Form, |
| true, |
| ); |
| |
| |
| let localVarHeaders = this.defaultHeaders; |
| |
| // authentication (basicAuth) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('basicAuth', 'Authorization', localVarHeaders, 'Basic '); |
| |
| // authentication (tenantid) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('tenantid', 'fineract-platform-tenantid', localVarHeaders); |
| |
| const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ |
| 'application/json' |
| ]); |
| if (localVarHttpHeaderAcceptSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); |
| } |
| |
| const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); |
| |
| const localVarTransferCache: boolean = options?.transferCache ?? true; |
| |
| |
| let responseType_: 'text' | 'json' | 'blob' = 'json'; |
| if (localVarHttpHeaderAcceptSelected) { |
| if (localVarHttpHeaderAcceptSelected.startsWith('text')) { |
| responseType_ = 'text'; |
| } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { |
| responseType_ = 'json'; |
| } else { |
| responseType_ = 'blob'; |
| } |
| } |
| |
| let localVarPath = `/v1/email/pendingEmail`; |
| const { basePath, withCredentials } = this.configuration; |
| return this.httpClient.request<string>('get', `${basePath}${localVarPath}`, |
| { |
| context: localVarHttpContext, |
| params: localVarQueryParameters.toHttpParams(), |
| responseType: <any>responseType_, |
| ...(withCredentials ? { withCredentials } : {}), |
| headers: localVarHeaders, |
| observe: observe, |
| ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), |
| reportProgress: reportProgress |
| } |
| ); |
| } |
| |
| /** |
| * Retrieve an email message |
| * @endpoint get /v1/email/{resourceId} |
| * @param resourceId |
| * @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. |
| * @param options additional options |
| */ |
| public getEmailResourceId(resourceId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<string>; |
| public getEmailResourceId(resourceId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<string>>; |
| public getEmailResourceId(resourceId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<string>>; |
| public getEmailResourceId(resourceId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> { |
| if (resourceId === null || resourceId === undefined) { |
| throw new Error('Required parameter resourceId was null or undefined when calling getEmailResourceId.'); |
| } |
| |
| let localVarHeaders = this.defaultHeaders; |
| |
| // authentication (basicAuth) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('basicAuth', 'Authorization', localVarHeaders, 'Basic '); |
| |
| // authentication (tenantid) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('tenantid', 'fineract-platform-tenantid', localVarHeaders); |
| |
| const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ |
| 'application/json' |
| ]); |
| if (localVarHttpHeaderAcceptSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); |
| } |
| |
| const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); |
| |
| const localVarTransferCache: boolean = options?.transferCache ?? true; |
| |
| |
| let responseType_: 'text' | 'json' | 'blob' = 'json'; |
| if (localVarHttpHeaderAcceptSelected) { |
| if (localVarHttpHeaderAcceptSelected.startsWith('text')) { |
| responseType_ = 'text'; |
| } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { |
| responseType_ = 'json'; |
| } else { |
| responseType_ = 'blob'; |
| } |
| } |
| |
| let localVarPath = `/v1/email/${this.configuration.encodeParam({name: "resourceId", value: resourceId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; |
| const { basePath, withCredentials } = this.configuration; |
| return this.httpClient.request<string>('get', `${basePath}${localVarPath}`, |
| { |
| context: localVarHttpContext, |
| responseType: <any>responseType_, |
| ...(withCredentials ? { withCredentials } : {}), |
| headers: localVarHeaders, |
| observe: observe, |
| ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), |
| reportProgress: reportProgress |
| } |
| ); |
| } |
| |
| /** |
| * Retrieve sent email messages |
| * @endpoint get /v1/email/sentEmail |
| * @param offset |
| * @param limit |
| * @param orderBy |
| * @param sortOrder |
| * @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. |
| * @param options additional options |
| */ |
| public getEmailSentEmail(offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<string>; |
| public getEmailSentEmail(offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<string>>; |
| public getEmailSentEmail(offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<string>>; |
| public getEmailSentEmail(offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> { |
| |
| let localVarQueryParameters = new OpenApiHttpParams(this.encoder); |
| |
| localVarQueryParameters = this.addToHttpParams( |
| localVarQueryParameters, |
| 'offset', |
| <any>offset, |
| QueryParamStyle.Form, |
| true, |
| ); |
| |
| |
| localVarQueryParameters = this.addToHttpParams( |
| localVarQueryParameters, |
| 'limit', |
| <any>limit, |
| QueryParamStyle.Form, |
| true, |
| ); |
| |
| |
| localVarQueryParameters = this.addToHttpParams( |
| localVarQueryParameters, |
| 'orderBy', |
| <any>orderBy, |
| QueryParamStyle.Form, |
| true, |
| ); |
| |
| |
| localVarQueryParameters = this.addToHttpParams( |
| localVarQueryParameters, |
| 'sortOrder', |
| <any>sortOrder, |
| QueryParamStyle.Form, |
| true, |
| ); |
| |
| |
| let localVarHeaders = this.defaultHeaders; |
| |
| // authentication (basicAuth) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('basicAuth', 'Authorization', localVarHeaders, 'Basic '); |
| |
| // authentication (tenantid) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('tenantid', 'fineract-platform-tenantid', localVarHeaders); |
| |
| const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ |
| 'application/json' |
| ]); |
| if (localVarHttpHeaderAcceptSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); |
| } |
| |
| const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); |
| |
| const localVarTransferCache: boolean = options?.transferCache ?? true; |
| |
| |
| let responseType_: 'text' | 'json' | 'blob' = 'json'; |
| if (localVarHttpHeaderAcceptSelected) { |
| if (localVarHttpHeaderAcceptSelected.startsWith('text')) { |
| responseType_ = 'text'; |
| } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { |
| responseType_ = 'json'; |
| } else { |
| responseType_ = 'blob'; |
| } |
| } |
| |
| let localVarPath = `/v1/email/sentEmail`; |
| const { basePath, withCredentials } = this.configuration; |
| return this.httpClient.request<string>('get', `${basePath}${localVarPath}`, |
| { |
| context: localVarHttpContext, |
| params: localVarQueryParameters.toHttpParams(), |
| responseType: <any>responseType_, |
| ...(withCredentials ? { withCredentials } : {}), |
| headers: localVarHeaders, |
| observe: observe, |
| ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), |
| reportProgress: reportProgress |
| } |
| ); |
| } |
| |
| /** |
| * @endpoint get /v1/{entityType}/{entityId}/images |
| * @param entityType |
| * @param entityId |
| * @param maxWidth |
| * @param maxHeight |
| * @param output |
| * @param accept |
| * @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. |
| * @param options additional options |
| * @deprecated |
| */ |
| public getEntityTypeEntityIdImages(entityType: string, entityId: number, maxWidth?: number, maxHeight?: number, output?: string, accept?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext, transferCache?: boolean}): Observable<any>; |
| public getEntityTypeEntityIdImages(entityType: string, entityId: number, maxWidth?: number, maxHeight?: number, output?: string, accept?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>; |
| public getEntityTypeEntityIdImages(entityType: string, entityId: number, maxWidth?: number, maxHeight?: number, output?: string, accept?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>; |
| public getEntityTypeEntityIdImages(entityType: string, entityId: number, maxWidth?: number, maxHeight?: number, output?: string, accept?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext, transferCache?: boolean}): Observable<any> { |
| if (entityType === null || entityType === undefined) { |
| throw new Error('Required parameter entityType was null or undefined when calling getEntityTypeEntityIdImages.'); |
| } |
| if (entityId === null || entityId === undefined) { |
| throw new Error('Required parameter entityId was null or undefined when calling getEntityTypeEntityIdImages.'); |
| } |
| |
| let localVarQueryParameters = new OpenApiHttpParams(this.encoder); |
| |
| localVarQueryParameters = this.addToHttpParams( |
| localVarQueryParameters, |
| 'maxWidth', |
| <any>maxWidth, |
| QueryParamStyle.Form, |
| true, |
| ); |
| |
| |
| localVarQueryParameters = this.addToHttpParams( |
| localVarQueryParameters, |
| 'maxHeight', |
| <any>maxHeight, |
| QueryParamStyle.Form, |
| true, |
| ); |
| |
| |
| localVarQueryParameters = this.addToHttpParams( |
| localVarQueryParameters, |
| 'output', |
| <any>output, |
| QueryParamStyle.Form, |
| true, |
| ); |
| |
| |
| let localVarHeaders = this.defaultHeaders; |
| if (accept !== undefined && accept !== null) { |
| localVarHeaders = localVarHeaders.set('Accept', String(accept)); |
| } |
| |
| // authentication (basicAuth) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('basicAuth', 'Authorization', localVarHeaders, 'Basic '); |
| |
| // authentication (tenantid) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('tenantid', 'fineract-platform-tenantid', localVarHeaders); |
| |
| const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ |
| '*/*' |
| ]); |
| if (localVarHttpHeaderAcceptSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); |
| } |
| |
| const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); |
| |
| const localVarTransferCache: boolean = options?.transferCache ?? true; |
| |
| |
| let responseType_: 'text' | 'json' | 'blob' = 'json'; |
| if (localVarHttpHeaderAcceptSelected) { |
| if (localVarHttpHeaderAcceptSelected.startsWith('text')) { |
| responseType_ = 'text'; |
| } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { |
| responseType_ = 'json'; |
| } else { |
| responseType_ = 'blob'; |
| } |
| } |
| |
| let localVarPath = `/v1/${this.configuration.encodeParam({name: "entityType", value: entityType, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "entityId", value: entityId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/images`; |
| const { basePath, withCredentials } = this.configuration; |
| return this.httpClient.request<any>('get', `${basePath}${localVarPath}`, |
| { |
| context: localVarHttpContext, |
| params: localVarQueryParameters.toHttpParams(), |
| responseType: <any>responseType_, |
| ...(withCredentials ? { withCredentials } : {}), |
| headers: localVarHeaders, |
| observe: observe, |
| ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), |
| reportProgress: reportProgress |
| } |
| ); |
| } |
| |
| /** |
| * Get internal client audit fields |
| * @endpoint get /v1/internal/client/{clientId}/audit |
| * @param clientId |
| * @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. |
| * @param options additional options |
| */ |
| public getInternalClientClientIdAudit(clientId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<string>; |
| public getInternalClientClientIdAudit(clientId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<string>>; |
| public getInternalClientClientIdAudit(clientId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<string>>; |
| public getInternalClientClientIdAudit(clientId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> { |
| if (clientId === null || clientId === undefined) { |
| throw new Error('Required parameter clientId was null or undefined when calling getInternalClientClientIdAudit.'); |
| } |
| |
| let localVarHeaders = this.defaultHeaders; |
| |
| // authentication (basicAuth) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('basicAuth', 'Authorization', localVarHeaders, 'Basic '); |
| |
| // authentication (tenantid) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('tenantid', 'fineract-platform-tenantid', localVarHeaders); |
| |
| const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ |
| 'application/json' |
| ]); |
| if (localVarHttpHeaderAcceptSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); |
| } |
| |
| const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); |
| |
| const localVarTransferCache: boolean = options?.transferCache ?? true; |
| |
| |
| let responseType_: 'text' | 'json' | 'blob' = 'json'; |
| if (localVarHttpHeaderAcceptSelected) { |
| if (localVarHttpHeaderAcceptSelected.startsWith('text')) { |
| responseType_ = 'text'; |
| } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { |
| responseType_ = 'json'; |
| } else { |
| responseType_ = 'blob'; |
| } |
| } |
| |
| let localVarPath = `/v1/internal/client/${this.configuration.encodeParam({name: "clientId", value: clientId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/audit`; |
| const { basePath, withCredentials } = this.configuration; |
| return this.httpClient.request<string>('get', `${basePath}${localVarPath}`, |
| { |
| context: localVarHttpContext, |
| responseType: <any>responseType_, |
| ...(withCredentials ? { withCredentials } : {}), |
| headers: localVarHeaders, |
| observe: observe, |
| ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), |
| reportProgress: reportProgress |
| } |
| ); |
| } |
| |
| /** |
| * @endpoint get /v1/internal/externalevents |
| * @param idempotencyKey |
| * @param type |
| * @param category |
| * @param aggregateRootId |
| * @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. |
| * @param options additional options |
| */ |
| public getInternalExternalevents(idempotencyKey?: string, type?: string, category?: string, aggregateRootId?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<ExternalEventResponse>>; |
| public getInternalExternalevents(idempotencyKey?: string, type?: string, category?: string, aggregateRootId?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<ExternalEventResponse>>>; |
| public getInternalExternalevents(idempotencyKey?: string, type?: string, category?: string, aggregateRootId?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<ExternalEventResponse>>>; |
| public getInternalExternalevents(idempotencyKey?: string, type?: string, category?: string, aggregateRootId?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> { |
| |
| let localVarQueryParameters = new OpenApiHttpParams(this.encoder); |
| |
| localVarQueryParameters = this.addToHttpParams( |
| localVarQueryParameters, |
| 'idempotencyKey', |
| <any>idempotencyKey, |
| QueryParamStyle.Form, |
| true, |
| ); |
| |
| |
| localVarQueryParameters = this.addToHttpParams( |
| localVarQueryParameters, |
| 'type', |
| <any>type, |
| QueryParamStyle.Form, |
| true, |
| ); |
| |
| |
| localVarQueryParameters = this.addToHttpParams( |
| localVarQueryParameters, |
| 'category', |
| <any>category, |
| QueryParamStyle.Form, |
| true, |
| ); |
| |
| |
| localVarQueryParameters = this.addToHttpParams( |
| localVarQueryParameters, |
| 'aggregateRootId', |
| <any>aggregateRootId, |
| QueryParamStyle.Form, |
| true, |
| ); |
| |
| |
| let localVarHeaders = this.defaultHeaders; |
| |
| // authentication (basicAuth) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('basicAuth', 'Authorization', localVarHeaders, 'Basic '); |
| |
| // authentication (tenantid) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('tenantid', 'fineract-platform-tenantid', localVarHeaders); |
| |
| const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ |
| 'application/json' |
| ]); |
| if (localVarHttpHeaderAcceptSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); |
| } |
| |
| const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); |
| |
| const localVarTransferCache: boolean = options?.transferCache ?? true; |
| |
| |
| let responseType_: 'text' | 'json' | 'blob' = 'json'; |
| if (localVarHttpHeaderAcceptSelected) { |
| if (localVarHttpHeaderAcceptSelected.startsWith('text')) { |
| responseType_ = 'text'; |
| } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { |
| responseType_ = 'json'; |
| } else { |
| responseType_ = 'blob'; |
| } |
| } |
| |
| let localVarPath = `/v1/internal/externalevents`; |
| const { basePath, withCredentials } = this.configuration; |
| return this.httpClient.request<Array<ExternalEventResponse>>('get', `${basePath}${localVarPath}`, |
| { |
| context: localVarHttpContext, |
| params: localVarQueryParameters.toHttpParams(), |
| responseType: <any>responseType_, |
| ...(withCredentials ? { withCredentials } : {}), |
| headers: localVarHeaders, |
| observe: observe, |
| ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), |
| reportProgress: reportProgress |
| } |
| ); |
| } |
| |
| /** |
| * @endpoint get /v1/internal/loan/{loanId}/advanced-payment-allocation-rules |
| * @param loanId |
| * @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. |
| * @param options additional options |
| */ |
| public getInternalLoanLoanIdAdvancedPaymentAllocationRules(loanId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<AdvancedPaymentData>>; |
| public getInternalLoanLoanIdAdvancedPaymentAllocationRules(loanId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<AdvancedPaymentData>>>; |
| public getInternalLoanLoanIdAdvancedPaymentAllocationRules(loanId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<AdvancedPaymentData>>>; |
| public getInternalLoanLoanIdAdvancedPaymentAllocationRules(loanId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> { |
| if (loanId === null || loanId === undefined) { |
| throw new Error('Required parameter loanId was null or undefined when calling getInternalLoanLoanIdAdvancedPaymentAllocationRules.'); |
| } |
| |
| let localVarHeaders = this.defaultHeaders; |
| |
| // authentication (basicAuth) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('basicAuth', 'Authorization', localVarHeaders, 'Basic '); |
| |
| // authentication (tenantid) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('tenantid', 'fineract-platform-tenantid', localVarHeaders); |
| |
| const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ |
| 'application/json' |
| ]); |
| if (localVarHttpHeaderAcceptSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); |
| } |
| |
| const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); |
| |
| const localVarTransferCache: boolean = options?.transferCache ?? true; |
| |
| |
| let responseType_: 'text' | 'json' | 'blob' = 'json'; |
| if (localVarHttpHeaderAcceptSelected) { |
| if (localVarHttpHeaderAcceptSelected.startsWith('text')) { |
| responseType_ = 'text'; |
| } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { |
| responseType_ = 'json'; |
| } else { |
| responseType_ = 'blob'; |
| } |
| } |
| |
| let localVarPath = `/v1/internal/loan/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/advanced-payment-allocation-rules`; |
| const { basePath, withCredentials } = this.configuration; |
| return this.httpClient.request<Array<AdvancedPaymentData>>('get', `${basePath}${localVarPath}`, |
| { |
| context: localVarHttpContext, |
| responseType: <any>responseType_, |
| ...(withCredentials ? { withCredentials } : {}), |
| headers: localVarHeaders, |
| observe: observe, |
| ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), |
| reportProgress: reportProgress |
| } |
| ); |
| } |
| |
| /** |
| * @endpoint get /v1/internal/loan/{loanId}/audit |
| * @param loanId |
| * @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. |
| * @param options additional options |
| */ |
| public getInternalLoanLoanIdAudit(loanId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<LoanAuditFieldsData>; |
| public getInternalLoanLoanIdAudit(loanId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<LoanAuditFieldsData>>; |
| public getInternalLoanLoanIdAudit(loanId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<LoanAuditFieldsData>>; |
| public getInternalLoanLoanIdAudit(loanId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> { |
| if (loanId === null || loanId === undefined) { |
| throw new Error('Required parameter loanId was null or undefined when calling getInternalLoanLoanIdAudit.'); |
| } |
| |
| let localVarHeaders = this.defaultHeaders; |
| |
| // authentication (basicAuth) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('basicAuth', 'Authorization', localVarHeaders, 'Basic '); |
| |
| // authentication (tenantid) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('tenantid', 'fineract-platform-tenantid', localVarHeaders); |
| |
| const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ |
| 'application/json' |
| ]); |
| if (localVarHttpHeaderAcceptSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); |
| } |
| |
| const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); |
| |
| const localVarTransferCache: boolean = options?.transferCache ?? true; |
| |
| |
| let responseType_: 'text' | 'json' | 'blob' = 'json'; |
| if (localVarHttpHeaderAcceptSelected) { |
| if (localVarHttpHeaderAcceptSelected.startsWith('text')) { |
| responseType_ = 'text'; |
| } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { |
| responseType_ = 'json'; |
| } else { |
| responseType_ = 'blob'; |
| } |
| } |
| |
| let localVarPath = `/v1/internal/loan/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/audit`; |
| const { basePath, withCredentials } = this.configuration; |
| return this.httpClient.request<LoanAuditFieldsData>('get', `${basePath}${localVarPath}`, |
| { |
| context: localVarHttpContext, |
| responseType: <any>responseType_, |
| ...(withCredentials ? { withCredentials } : {}), |
| headers: localVarHeaders, |
| observe: observe, |
| ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), |
| reportProgress: reportProgress |
| } |
| ); |
| } |
| |
| /** |
| * @endpoint get /v1/internal/loan/{loanId}/transaction/{transactionId}/audit |
| * @param loanId |
| * @param transactionId |
| * @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. |
| * @param options additional options |
| */ |
| public getInternalLoanLoanIdTransactionTransactionIdAudit(loanId: number, transactionId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<LoanAuditFieldsData>; |
| public getInternalLoanLoanIdTransactionTransactionIdAudit(loanId: number, transactionId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<LoanAuditFieldsData>>; |
| public getInternalLoanLoanIdTransactionTransactionIdAudit(loanId: number, transactionId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<LoanAuditFieldsData>>; |
| public getInternalLoanLoanIdTransactionTransactionIdAudit(loanId: number, transactionId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> { |
| if (loanId === null || loanId === undefined) { |
| throw new Error('Required parameter loanId was null or undefined when calling getInternalLoanLoanIdTransactionTransactionIdAudit.'); |
| } |
| if (transactionId === null || transactionId === undefined) { |
| throw new Error('Required parameter transactionId was null or undefined when calling getInternalLoanLoanIdTransactionTransactionIdAudit.'); |
| } |
| |
| let localVarHeaders = this.defaultHeaders; |
| |
| // authentication (basicAuth) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('basicAuth', 'Authorization', localVarHeaders, 'Basic '); |
| |
| // authentication (tenantid) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('tenantid', 'fineract-platform-tenantid', localVarHeaders); |
| |
| const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ |
| 'application/json' |
| ]); |
| if (localVarHttpHeaderAcceptSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); |
| } |
| |
| const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); |
| |
| const localVarTransferCache: boolean = options?.transferCache ?? true; |
| |
| |
| let responseType_: 'text' | 'json' | 'blob' = 'json'; |
| if (localVarHttpHeaderAcceptSelected) { |
| if (localVarHttpHeaderAcceptSelected.startsWith('text')) { |
| responseType_ = 'text'; |
| } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { |
| responseType_ = 'json'; |
| } else { |
| responseType_ = 'blob'; |
| } |
| } |
| |
| let localVarPath = `/v1/internal/loan/${this.configuration.encodeParam({name: "loanId", value: loanId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/transaction/${this.configuration.encodeParam({name: "transactionId", value: transactionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/audit`; |
| const { basePath, withCredentials } = this.configuration; |
| return this.httpClient.request<LoanAuditFieldsData>('get', `${basePath}${localVarPath}`, |
| { |
| context: localVarHttpContext, |
| responseType: <any>responseType_, |
| ...(withCredentials ? { withCredentials } : {}), |
| headers: localVarHeaders, |
| observe: observe, |
| ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), |
| reportProgress: reportProgress |
| } |
| ); |
| } |
| |
| /** |
| * @endpoint get /v1/internal/loan/maxTransactionDateOfActiveLoan |
| * @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. |
| * @param options additional options |
| */ |
| public getInternalLoanMaxTransactionDateOfActiveLoan(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<string>; |
| public getInternalLoanMaxTransactionDateOfActiveLoan(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<string>>; |
| public getInternalLoanMaxTransactionDateOfActiveLoan(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<string>>; |
| public getInternalLoanMaxTransactionDateOfActiveLoan(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> { |
| |
| let localVarHeaders = this.defaultHeaders; |
| |
| // authentication (basicAuth) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('basicAuth', 'Authorization', localVarHeaders, 'Basic '); |
| |
| // authentication (tenantid) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('tenantid', 'fineract-platform-tenantid', localVarHeaders); |
| |
| const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ |
| 'application/json' |
| ]); |
| if (localVarHttpHeaderAcceptSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); |
| } |
| |
| const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); |
| |
| const localVarTransferCache: boolean = options?.transferCache ?? true; |
| |
| |
| let responseType_: 'text' | 'json' | 'blob' = 'json'; |
| if (localVarHttpHeaderAcceptSelected) { |
| if (localVarHttpHeaderAcceptSelected.startsWith('text')) { |
| responseType_ = 'text'; |
| } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { |
| responseType_ = 'json'; |
| } else { |
| responseType_ = 'blob'; |
| } |
| } |
| |
| let localVarPath = `/v1/internal/loan/maxTransactionDateOfActiveLoan`; |
| const { basePath, withCredentials } = this.configuration; |
| return this.httpClient.request<string>('get', `${basePath}${localVarPath}`, |
| { |
| context: localVarHttpContext, |
| responseType: <any>responseType_, |
| ...(withCredentials ? { withCredentials } : {}), |
| headers: localVarHeaders, |
| observe: observe, |
| ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), |
| reportProgress: reportProgress |
| } |
| ); |
| } |
| |
| /** |
| * @endpoint get /v1/internal/loan/status/{statusId} |
| * @param statusId |
| * @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. |
| * @param options additional options |
| */ |
| public getInternalLoanStatusStatusId(statusId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<number>>; |
| public getInternalLoanStatusStatusId(statusId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<number>>>; |
| public getInternalLoanStatusStatusId(statusId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<number>>>; |
| public getInternalLoanStatusStatusId(statusId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> { |
| if (statusId === null || statusId === undefined) { |
| throw new Error('Required parameter statusId was null or undefined when calling getInternalLoanStatusStatusId.'); |
| } |
| |
| let localVarHeaders = this.defaultHeaders; |
| |
| // authentication (basicAuth) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('basicAuth', 'Authorization', localVarHeaders, 'Basic '); |
| |
| // authentication (tenantid) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('tenantid', 'fineract-platform-tenantid', localVarHeaders); |
| |
| const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ |
| 'application/json' |
| ]); |
| if (localVarHttpHeaderAcceptSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); |
| } |
| |
| const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); |
| |
| const localVarTransferCache: boolean = options?.transferCache ?? true; |
| |
| |
| let responseType_: 'text' | 'json' | 'blob' = 'json'; |
| if (localVarHttpHeaderAcceptSelected) { |
| if (localVarHttpHeaderAcceptSelected.startsWith('text')) { |
| responseType_ = 'text'; |
| } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { |
| responseType_ = 'json'; |
| } else { |
| responseType_ = 'blob'; |
| } |
| } |
| |
| let localVarPath = `/v1/internal/loan/status/${this.configuration.encodeParam({name: "statusId", value: statusId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; |
| const { basePath, withCredentials } = this.configuration; |
| return this.httpClient.request<Array<number>>('get', `${basePath}${localVarPath}`, |
| { |
| context: localVarHttpContext, |
| responseType: <any>responseType_, |
| ...(withCredentials ? { withCredentials } : {}), |
| headers: localVarHeaders, |
| observe: observe, |
| ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), |
| reportProgress: reportProgress |
| } |
| ); |
| } |
| |
| /** |
| * @endpoint get /v1/internal/savingsaccounts/status/{statusId} |
| * @param statusId |
| * @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. |
| * @param options additional options |
| */ |
| public getInternalSavingsaccountsStatusStatusId(statusId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<number>>; |
| public getInternalSavingsaccountsStatusStatusId(statusId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<number>>>; |
| public getInternalSavingsaccountsStatusStatusId(statusId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<number>>>; |
| public getInternalSavingsaccountsStatusStatusId(statusId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> { |
| if (statusId === null || statusId === undefined) { |
| throw new Error('Required parameter statusId was null or undefined when calling getInternalSavingsaccountsStatusStatusId.'); |
| } |
| |
| let localVarHeaders = this.defaultHeaders; |
| |
| // authentication (basicAuth) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('basicAuth', 'Authorization', localVarHeaders, 'Basic '); |
| |
| // authentication (tenantid) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('tenantid', 'fineract-platform-tenantid', localVarHeaders); |
| |
| const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ |
| 'application/json' |
| ]); |
| if (localVarHttpHeaderAcceptSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); |
| } |
| |
| const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); |
| |
| const localVarTransferCache: boolean = options?.transferCache ?? true; |
| |
| |
| let responseType_: 'text' | 'json' | 'blob' = 'json'; |
| if (localVarHttpHeaderAcceptSelected) { |
| if (localVarHttpHeaderAcceptSelected.startsWith('text')) { |
| responseType_ = 'text'; |
| } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { |
| responseType_ = 'json'; |
| } else { |
| responseType_ = 'blob'; |
| } |
| } |
| |
| let localVarPath = `/v1/internal/savingsaccounts/status/${this.configuration.encodeParam({name: "statusId", value: statusId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; |
| const { basePath, withCredentials } = this.configuration; |
| return this.httpClient.request<Array<number>>('get', `${basePath}${localVarPath}`, |
| { |
| context: localVarHttpContext, |
| responseType: <any>responseType_, |
| ...(withCredentials ? { withCredentials } : {}), |
| headers: localVarHeaders, |
| observe: observe, |
| ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), |
| reportProgress: reportProgress |
| } |
| ); |
| } |
| |
| /** |
| * @endpoint get /v1/officetransactions |
| * @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. |
| * @param options additional options |
| */ |
| public getOfficetransactions(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<string>; |
| public getOfficetransactions(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<string>>; |
| public getOfficetransactions(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<string>>; |
| public getOfficetransactions(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> { |
| |
| let localVarHeaders = this.defaultHeaders; |
| |
| // authentication (basicAuth) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('basicAuth', 'Authorization', localVarHeaders, 'Basic '); |
| |
| // authentication (tenantid) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('tenantid', 'fineract-platform-tenantid', localVarHeaders); |
| |
| const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ |
| 'application/json' |
| ]); |
| if (localVarHttpHeaderAcceptSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); |
| } |
| |
| const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); |
| |
| const localVarTransferCache: boolean = options?.transferCache ?? true; |
| |
| |
| let responseType_: 'text' | 'json' | 'blob' = 'json'; |
| if (localVarHttpHeaderAcceptSelected) { |
| if (localVarHttpHeaderAcceptSelected.startsWith('text')) { |
| responseType_ = 'text'; |
| } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { |
| responseType_ = 'json'; |
| } else { |
| responseType_ = 'blob'; |
| } |
| } |
| |
| let localVarPath = `/v1/officetransactions`; |
| const { basePath, withCredentials } = this.configuration; |
| return this.httpClient.request<string>('get', `${basePath}${localVarPath}`, |
| { |
| context: localVarHttpContext, |
| responseType: <any>responseType_, |
| ...(withCredentials ? { withCredentials } : {}), |
| headers: localVarHeaders, |
| observe: observe, |
| ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), |
| reportProgress: reportProgress |
| } |
| ); |
| } |
| |
| /** |
| * @endpoint get /v1/officetransactions/template |
| * @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. |
| * @param options additional options |
| */ |
| public getOfficetransactionsTemplate(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<string>; |
| public getOfficetransactionsTemplate(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<string>>; |
| public getOfficetransactionsTemplate(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<string>>; |
| public getOfficetransactionsTemplate(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> { |
| |
| let localVarHeaders = this.defaultHeaders; |
| |
| // authentication (basicAuth) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('basicAuth', 'Authorization', localVarHeaders, 'Basic '); |
| |
| // authentication (tenantid) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('tenantid', 'fineract-platform-tenantid', localVarHeaders); |
| |
| const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ |
| 'application/json' |
| ]); |
| if (localVarHttpHeaderAcceptSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); |
| } |
| |
| const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); |
| |
| const localVarTransferCache: boolean = options?.transferCache ?? true; |
| |
| |
| let responseType_: 'text' | 'json' | 'blob' = 'json'; |
| if (localVarHttpHeaderAcceptSelected) { |
| if (localVarHttpHeaderAcceptSelected.startsWith('text')) { |
| responseType_ = 'text'; |
| } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { |
| responseType_ = 'json'; |
| } else { |
| responseType_ = 'blob'; |
| } |
| } |
| |
| let localVarPath = `/v1/officetransactions/template`; |
| const { basePath, withCredentials } = this.configuration; |
| return this.httpClient.request<string>('get', `${basePath}${localVarPath}`, |
| { |
| context: localVarHttpContext, |
| responseType: <any>responseType_, |
| ...(withCredentials ? { withCredentials } : {}), |
| headers: localVarHeaders, |
| observe: observe, |
| ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), |
| reportProgress: reportProgress |
| } |
| ); |
| } |
| |
| /** |
| * List SMS Campaigns |
| * Example Requests: smscampaigns |
| * @endpoint get /v1/smscampaigns |
| * @param offset |
| * @param limit |
| * @param orderBy |
| * @param sortOrder |
| * @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. |
| * @param options additional options |
| */ |
| public getSmscampaigns(offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<SmsCampaignData>; |
| public getSmscampaigns(offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<SmsCampaignData>>; |
| public getSmscampaigns(offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<SmsCampaignData>>; |
| public getSmscampaigns(offset?: number, limit?: number, orderBy?: string, sortOrder?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> { |
| |
| let localVarQueryParameters = new OpenApiHttpParams(this.encoder); |
| |
| localVarQueryParameters = this.addToHttpParams( |
| localVarQueryParameters, |
| 'offset', |
| <any>offset, |
| QueryParamStyle.Form, |
| true, |
| ); |
| |
| |
| localVarQueryParameters = this.addToHttpParams( |
| localVarQueryParameters, |
| 'limit', |
| <any>limit, |
| QueryParamStyle.Form, |
| true, |
| ); |
| |
| |
| localVarQueryParameters = this.addToHttpParams( |
| localVarQueryParameters, |
| 'orderBy', |
| <any>orderBy, |
| QueryParamStyle.Form, |
| true, |
| ); |
| |
| |
| localVarQueryParameters = this.addToHttpParams( |
| localVarQueryParameters, |
| 'sortOrder', |
| <any>sortOrder, |
| QueryParamStyle.Form, |
| true, |
| ); |
| |
| |
| let localVarHeaders = this.defaultHeaders; |
| |
| // authentication (basicAuth) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('basicAuth', 'Authorization', localVarHeaders, 'Basic '); |
| |
| // authentication (tenantid) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('tenantid', 'fineract-platform-tenantid', localVarHeaders); |
| |
| const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ |
| 'application/json' |
| ]); |
| if (localVarHttpHeaderAcceptSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); |
| } |
| |
| const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); |
| |
| const localVarTransferCache: boolean = options?.transferCache ?? true; |
| |
| |
| let responseType_: 'text' | 'json' | 'blob' = 'json'; |
| if (localVarHttpHeaderAcceptSelected) { |
| if (localVarHttpHeaderAcceptSelected.startsWith('text')) { |
| responseType_ = 'text'; |
| } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { |
| responseType_ = 'json'; |
| } else { |
| responseType_ = 'blob'; |
| } |
| } |
| |
| let localVarPath = `/v1/smscampaigns`; |
| const { basePath, withCredentials } = this.configuration; |
| return this.httpClient.request<SmsCampaignData>('get', `${basePath}${localVarPath}`, |
| { |
| context: localVarHttpContext, |
| params: localVarQueryParameters.toHttpParams(), |
| responseType: <any>responseType_, |
| ...(withCredentials ? { withCredentials } : {}), |
| headers: localVarHeaders, |
| observe: observe, |
| ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), |
| reportProgress: reportProgress |
| } |
| ); |
| } |
| |
| /** |
| * Retrieve a SMS Campaign |
| * Example Requests: smscampaigns/1 |
| * @endpoint get /v1/smscampaigns/{resourceId} |
| * @param resourceId |
| * @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. |
| * @param options additional options |
| */ |
| public getSmscampaignsResourceId(resourceId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<SmsCampaignData>; |
| public getSmscampaignsResourceId(resourceId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<SmsCampaignData>>; |
| public getSmscampaignsResourceId(resourceId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<SmsCampaignData>>; |
| public getSmscampaignsResourceId(resourceId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> { |
| if (resourceId === null || resourceId === undefined) { |
| throw new Error('Required parameter resourceId was null or undefined when calling getSmscampaignsResourceId.'); |
| } |
| |
| let localVarHeaders = this.defaultHeaders; |
| |
| // authentication (basicAuth) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('basicAuth', 'Authorization', localVarHeaders, 'Basic '); |
| |
| // authentication (tenantid) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('tenantid', 'fineract-platform-tenantid', localVarHeaders); |
| |
| const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ |
| 'application/json' |
| ]); |
| if (localVarHttpHeaderAcceptSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); |
| } |
| |
| const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); |
| |
| const localVarTransferCache: boolean = options?.transferCache ?? true; |
| |
| |
| let responseType_: 'text' | 'json' | 'blob' = 'json'; |
| if (localVarHttpHeaderAcceptSelected) { |
| if (localVarHttpHeaderAcceptSelected.startsWith('text')) { |
| responseType_ = 'text'; |
| } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { |
| responseType_ = 'json'; |
| } else { |
| responseType_ = 'blob'; |
| } |
| } |
| |
| let localVarPath = `/v1/smscampaigns/${this.configuration.encodeParam({name: "resourceId", value: resourceId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; |
| const { basePath, withCredentials } = this.configuration; |
| return this.httpClient.request<SmsCampaignData>('get', `${basePath}${localVarPath}`, |
| { |
| context: localVarHttpContext, |
| responseType: <any>responseType_, |
| ...(withCredentials ? { withCredentials } : {}), |
| headers: localVarHeaders, |
| observe: observe, |
| ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), |
| reportProgress: reportProgress |
| } |
| ); |
| } |
| |
| /** |
| * Retrieve a SMS Campaign |
| * Example Requests: smscampaigns/1 smscampaigns/1?template=true smscampaigns/template |
| * @endpoint get /v1/smscampaigns/template |
| * @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. |
| * @param options additional options |
| */ |
| public getSmscampaignsTemplate(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext, transferCache?: boolean}): Observable<SmsCampaignData>; |
| public getSmscampaignsTemplate(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<SmsCampaignData>>; |
| public getSmscampaignsTemplate(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<SmsCampaignData>>; |
| public getSmscampaignsTemplate(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext, transferCache?: boolean}): Observable<any> { |
| |
| let localVarHeaders = this.defaultHeaders; |
| |
| // authentication (basicAuth) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('basicAuth', 'Authorization', localVarHeaders, 'Basic '); |
| |
| // authentication (tenantid) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('tenantid', 'fineract-platform-tenantid', localVarHeaders); |
| |
| const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ |
| '*/*' |
| ]); |
| if (localVarHttpHeaderAcceptSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); |
| } |
| |
| const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); |
| |
| const localVarTransferCache: boolean = options?.transferCache ?? true; |
| |
| |
| let responseType_: 'text' | 'json' | 'blob' = 'json'; |
| if (localVarHttpHeaderAcceptSelected) { |
| if (localVarHttpHeaderAcceptSelected.startsWith('text')) { |
| responseType_ = 'text'; |
| } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { |
| responseType_ = 'json'; |
| } else { |
| responseType_ = 'blob'; |
| } |
| } |
| |
| let localVarPath = `/v1/smscampaigns/template`; |
| const { basePath, withCredentials } = this.configuration; |
| return this.httpClient.request<SmsCampaignData>('get', `${basePath}${localVarPath}`, |
| { |
| context: localVarHttpContext, |
| responseType: <any>responseType_, |
| ...(withCredentials ? { withCredentials } : {}), |
| headers: localVarHeaders, |
| observe: observe, |
| ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), |
| reportProgress: reportProgress |
| } |
| ); |
| } |
| |
| /** |
| * @endpoint get /v1/twofactor/configure |
| * @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. |
| * @param options additional options |
| */ |
| public getTwofactorConfigure(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<string>; |
| public getTwofactorConfigure(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<string>>; |
| public getTwofactorConfigure(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<string>>; |
| public getTwofactorConfigure(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> { |
| |
| let localVarHeaders = this.defaultHeaders; |
| |
| // authentication (basicAuth) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('basicAuth', 'Authorization', localVarHeaders, 'Basic '); |
| |
| // authentication (tenantid) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('tenantid', 'fineract-platform-tenantid', localVarHeaders); |
| |
| const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ |
| 'application/json' |
| ]); |
| if (localVarHttpHeaderAcceptSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); |
| } |
| |
| const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); |
| |
| const localVarTransferCache: boolean = options?.transferCache ?? true; |
| |
| |
| let responseType_: 'text' | 'json' | 'blob' = 'json'; |
| if (localVarHttpHeaderAcceptSelected) { |
| if (localVarHttpHeaderAcceptSelected.startsWith('text')) { |
| responseType_ = 'text'; |
| } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { |
| responseType_ = 'json'; |
| } else { |
| responseType_ = 'blob'; |
| } |
| } |
| |
| let localVarPath = `/v1/twofactor/configure`; |
| const { basePath, withCredentials } = this.configuration; |
| return this.httpClient.request<string>('get', `${basePath}${localVarPath}`, |
| { |
| context: localVarHttpContext, |
| responseType: <any>responseType_, |
| ...(withCredentials ? { withCredentials } : {}), |
| headers: localVarHeaders, |
| observe: observe, |
| ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), |
| reportProgress: reportProgress |
| } |
| ); |
| } |
| |
| /** |
| * Create an email message |
| * @endpoint post /v1/email |
| * @param body |
| * @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. |
| * @param options additional options |
| */ |
| public postEmail(body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<string>; |
| public postEmail(body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<string>>; |
| public postEmail(body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<string>>; |
| public postEmail(body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> { |
| |
| let localVarHeaders = this.defaultHeaders; |
| |
| // authentication (basicAuth) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('basicAuth', 'Authorization', localVarHeaders, 'Basic '); |
| |
| // authentication (tenantid) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('tenantid', 'fineract-platform-tenantid', localVarHeaders); |
| |
| const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ |
| 'application/json' |
| ]); |
| if (localVarHttpHeaderAcceptSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); |
| } |
| |
| const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); |
| |
| const localVarTransferCache: boolean = options?.transferCache ?? true; |
| |
| |
| // to determine the Content-Type header |
| const consumes: string[] = [ |
| 'application/json' |
| ]; |
| const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); |
| if (httpContentTypeSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); |
| } |
| |
| let responseType_: 'text' | 'json' | 'blob' = 'json'; |
| if (localVarHttpHeaderAcceptSelected) { |
| if (localVarHttpHeaderAcceptSelected.startsWith('text')) { |
| responseType_ = 'text'; |
| } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { |
| responseType_ = 'json'; |
| } else { |
| responseType_ = 'blob'; |
| } |
| } |
| |
| let localVarPath = `/v1/email`; |
| const { basePath, withCredentials } = this.configuration; |
| return this.httpClient.request<string>('post', `${basePath}${localVarPath}`, |
| { |
| context: localVarHttpContext, |
| body: body, |
| responseType: <any>responseType_, |
| ...(withCredentials ? { withCredentials } : {}), |
| headers: localVarHeaders, |
| observe: observe, |
| ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), |
| reportProgress: reportProgress |
| } |
| ); |
| } |
| |
| /** |
| * Create an email campaign |
| * @endpoint post /v1/email/campaign |
| * @param body |
| * @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. |
| * @param options additional options |
| */ |
| public postEmailCampaign(body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<string>; |
| public postEmailCampaign(body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<string>>; |
| public postEmailCampaign(body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<string>>; |
| public postEmailCampaign(body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> { |
| |
| let localVarHeaders = this.defaultHeaders; |
| |
| // authentication (basicAuth) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('basicAuth', 'Authorization', localVarHeaders, 'Basic '); |
| |
| // authentication (tenantid) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('tenantid', 'fineract-platform-tenantid', localVarHeaders); |
| |
| const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ |
| 'application/json' |
| ]); |
| if (localVarHttpHeaderAcceptSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); |
| } |
| |
| const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); |
| |
| const localVarTransferCache: boolean = options?.transferCache ?? true; |
| |
| |
| // to determine the Content-Type header |
| const consumes: string[] = [ |
| 'application/json' |
| ]; |
| const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); |
| if (httpContentTypeSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); |
| } |
| |
| let responseType_: 'text' | 'json' | 'blob' = 'json'; |
| if (localVarHttpHeaderAcceptSelected) { |
| if (localVarHttpHeaderAcceptSelected.startsWith('text')) { |
| responseType_ = 'text'; |
| } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { |
| responseType_ = 'json'; |
| } else { |
| responseType_ = 'blob'; |
| } |
| } |
| |
| let localVarPath = `/v1/email/campaign`; |
| const { basePath, withCredentials } = this.configuration; |
| return this.httpClient.request<string>('post', `${basePath}${localVarPath}`, |
| { |
| context: localVarHttpContext, |
| body: body, |
| responseType: <any>responseType_, |
| ...(withCredentials ? { withCredentials } : {}), |
| headers: localVarHeaders, |
| observe: observe, |
| ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), |
| reportProgress: reportProgress |
| } |
| ); |
| } |
| |
| /** |
| * Preview email campaign message |
| * @endpoint post /v1/email/campaign/preview |
| * @param body |
| * @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. |
| * @param options additional options |
| */ |
| public postEmailCampaignPreview(body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<string>; |
| public postEmailCampaignPreview(body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<string>>; |
| public postEmailCampaignPreview(body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<string>>; |
| public postEmailCampaignPreview(body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> { |
| |
| let localVarHeaders = this.defaultHeaders; |
| |
| // authentication (basicAuth) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('basicAuth', 'Authorization', localVarHeaders, 'Basic '); |
| |
| // authentication (tenantid) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('tenantid', 'fineract-platform-tenantid', localVarHeaders); |
| |
| const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ |
| 'application/json' |
| ]); |
| if (localVarHttpHeaderAcceptSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); |
| } |
| |
| const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); |
| |
| const localVarTransferCache: boolean = options?.transferCache ?? true; |
| |
| |
| // to determine the Content-Type header |
| const consumes: string[] = [ |
| 'application/json' |
| ]; |
| const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); |
| if (httpContentTypeSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); |
| } |
| |
| let responseType_: 'text' | 'json' | 'blob' = 'json'; |
| if (localVarHttpHeaderAcceptSelected) { |
| if (localVarHttpHeaderAcceptSelected.startsWith('text')) { |
| responseType_ = 'text'; |
| } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { |
| responseType_ = 'json'; |
| } else { |
| responseType_ = 'blob'; |
| } |
| } |
| |
| let localVarPath = `/v1/email/campaign/preview`; |
| const { basePath, withCredentials } = this.configuration; |
| return this.httpClient.request<string>('post', `${basePath}${localVarPath}`, |
| { |
| context: localVarHttpContext, |
| body: body, |
| responseType: <any>responseType_, |
| ...(withCredentials ? { withCredentials } : {}), |
| headers: localVarHeaders, |
| observe: observe, |
| ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), |
| reportProgress: reportProgress |
| } |
| ); |
| } |
| |
| /** |
| * Activate, close, or reactivate an email campaign |
| * @endpoint post /v1/email/campaign/{resourceId} |
| * @param resourceId |
| * @param command |
| * @param body |
| * @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. |
| * @param options additional options |
| */ |
| public postEmailCampaignResourceId(resourceId: number, command?: string, body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<string>; |
| public postEmailCampaignResourceId(resourceId: number, command?: string, body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<string>>; |
| public postEmailCampaignResourceId(resourceId: number, command?: string, body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<string>>; |
| public postEmailCampaignResourceId(resourceId: number, command?: string, body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> { |
| if (resourceId === null || resourceId === undefined) { |
| throw new Error('Required parameter resourceId was null or undefined when calling postEmailCampaignResourceId.'); |
| } |
| |
| let localVarQueryParameters = new OpenApiHttpParams(this.encoder); |
| |
| localVarQueryParameters = this.addToHttpParams( |
| localVarQueryParameters, |
| 'command', |
| <any>command, |
| QueryParamStyle.Form, |
| true, |
| ); |
| |
| |
| let localVarHeaders = this.defaultHeaders; |
| |
| // authentication (basicAuth) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('basicAuth', 'Authorization', localVarHeaders, 'Basic '); |
| |
| // authentication (tenantid) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('tenantid', 'fineract-platform-tenantid', localVarHeaders); |
| |
| const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ |
| 'application/json' |
| ]); |
| if (localVarHttpHeaderAcceptSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); |
| } |
| |
| const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); |
| |
| const localVarTransferCache: boolean = options?.transferCache ?? true; |
| |
| |
| // to determine the Content-Type header |
| const consumes: string[] = [ |
| 'application/json' |
| ]; |
| const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); |
| if (httpContentTypeSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); |
| } |
| |
| let responseType_: 'text' | 'json' | 'blob' = 'json'; |
| if (localVarHttpHeaderAcceptSelected) { |
| if (localVarHttpHeaderAcceptSelected.startsWith('text')) { |
| responseType_ = 'text'; |
| } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { |
| responseType_ = 'json'; |
| } else { |
| responseType_ = 'blob'; |
| } |
| } |
| |
| let localVarPath = `/v1/email/campaign/${this.configuration.encodeParam({name: "resourceId", value: resourceId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; |
| const { basePath, withCredentials } = this.configuration; |
| return this.httpClient.request<string>('post', `${basePath}${localVarPath}`, |
| { |
| context: localVarHttpContext, |
| body: body, |
| params: localVarQueryParameters.toHttpParams(), |
| responseType: <any>responseType_, |
| ...(withCredentials ? { withCredentials } : {}), |
| headers: localVarHeaders, |
| observe: observe, |
| ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), |
| reportProgress: reportProgress |
| } |
| ); |
| } |
| |
| /** |
| * @endpoint post /v1/{entityType}/{entityId}/images |
| * @param entityType |
| * @param entityId |
| * @param contentLength |
| * @param file |
| * @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. |
| * @param options additional options |
| * @deprecated |
| */ |
| public postEntityTypeEntityIdImages(entityType: string, entityId: number, contentLength?: number, file?: FormDataBodyPart, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>; |
| public postEntityTypeEntityIdImages(entityType: string, entityId: number, contentLength?: number, file?: FormDataBodyPart, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>; |
| public postEntityTypeEntityIdImages(entityType: string, entityId: number, contentLength?: number, file?: FormDataBodyPart, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>; |
| public postEntityTypeEntityIdImages(entityType: string, entityId: number, contentLength?: number, file?: FormDataBodyPart, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> { |
| if (entityType === null || entityType === undefined) { |
| throw new Error('Required parameter entityType was null or undefined when calling postEntityTypeEntityIdImages.'); |
| } |
| if (entityId === null || entityId === undefined) { |
| throw new Error('Required parameter entityId was null or undefined when calling postEntityTypeEntityIdImages.'); |
| } |
| |
| let localVarHeaders = this.defaultHeaders; |
| if (contentLength !== undefined && contentLength !== null) { |
| localVarHeaders = localVarHeaders.set('Content-Length', String(contentLength)); |
| } |
| |
| // authentication (basicAuth) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('basicAuth', 'Authorization', localVarHeaders, 'Basic '); |
| |
| // authentication (tenantid) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('tenantid', 'fineract-platform-tenantid', localVarHeaders); |
| |
| const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ |
| ]); |
| if (localVarHttpHeaderAcceptSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); |
| } |
| |
| const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); |
| |
| const localVarTransferCache: boolean = options?.transferCache ?? true; |
| |
| // to determine the Content-Type header |
| const consumes: string[] = [ |
| 'multipart/form-data' |
| ]; |
| |
| const canConsumeForm = this.canConsumeForm(consumes); |
| |
| let localVarFormParams: { append(param: string, value: any): any; }; |
| let localVarUseForm = false; |
| let localVarConvertFormParamsToString = false; |
| if (localVarUseForm) { |
| localVarFormParams = new FormData(); |
| } else { |
| localVarFormParams = new HttpParams({encoder: this.encoder}); |
| } |
| |
| if (file !== undefined) { |
| localVarFormParams = localVarFormParams.append('file', localVarUseForm ? new Blob([JSON.stringify(file)], {type: 'application/json'}) : <any>file) as any || localVarFormParams; |
| } |
| |
| let responseType_: 'text' | 'json' | 'blob' = 'json'; |
| if (localVarHttpHeaderAcceptSelected) { |
| if (localVarHttpHeaderAcceptSelected.startsWith('text')) { |
| responseType_ = 'text'; |
| } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { |
| responseType_ = 'json'; |
| } else { |
| responseType_ = 'blob'; |
| } |
| } |
| |
| let localVarPath = `/v1/${this.configuration.encodeParam({name: "entityType", value: entityType, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "entityId", value: entityId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/images`; |
| const { basePath, withCredentials } = this.configuration; |
| return this.httpClient.request<any>('post', `${basePath}${localVarPath}`, |
| { |
| context: localVarHttpContext, |
| body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams, |
| responseType: <any>responseType_, |
| ...(withCredentials ? { withCredentials } : {}), |
| headers: localVarHeaders, |
| observe: observe, |
| ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), |
| reportProgress: reportProgress |
| } |
| ); |
| } |
| |
| /** |
| * @endpoint post /v1/officetransactions |
| * @param body |
| * @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. |
| * @param options additional options |
| */ |
| public postOfficetransactions(body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<string>; |
| public postOfficetransactions(body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<string>>; |
| public postOfficetransactions(body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<string>>; |
| public postOfficetransactions(body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> { |
| |
| let localVarHeaders = this.defaultHeaders; |
| |
| // authentication (basicAuth) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('basicAuth', 'Authorization', localVarHeaders, 'Basic '); |
| |
| // authentication (tenantid) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('tenantid', 'fineract-platform-tenantid', localVarHeaders); |
| |
| const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ |
| 'application/json' |
| ]); |
| if (localVarHttpHeaderAcceptSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); |
| } |
| |
| const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); |
| |
| const localVarTransferCache: boolean = options?.transferCache ?? true; |
| |
| |
| // to determine the Content-Type header |
| const consumes: string[] = [ |
| 'application/json' |
| ]; |
| const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); |
| if (httpContentTypeSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); |
| } |
| |
| let responseType_: 'text' | 'json' | 'blob' = 'json'; |
| if (localVarHttpHeaderAcceptSelected) { |
| if (localVarHttpHeaderAcceptSelected.startsWith('text')) { |
| responseType_ = 'text'; |
| } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { |
| responseType_ = 'json'; |
| } else { |
| responseType_ = 'blob'; |
| } |
| } |
| |
| let localVarPath = `/v1/officetransactions`; |
| const { basePath, withCredentials } = this.configuration; |
| return this.httpClient.request<string>('post', `${basePath}${localVarPath}`, |
| { |
| context: localVarHttpContext, |
| body: body, |
| responseType: <any>responseType_, |
| ...(withCredentials ? { withCredentials } : {}), |
| headers: localVarHeaders, |
| observe: observe, |
| ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), |
| reportProgress: reportProgress |
| } |
| ); |
| } |
| |
| /** |
| * Create a SMS Campaign |
| * Mandatory Fields campaignName, campaignType, triggerType, providerId, runReportId, message Mandatory Fields for Cash based on selected report id paramValue in json format |
| * @endpoint post /v1/smscampaigns |
| * @param commandWrapper |
| * @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. |
| * @param options additional options |
| */ |
| public postSmscampaigns(commandWrapper: CommandWrapper, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<CommandProcessingResult>; |
| public postSmscampaigns(commandWrapper: CommandWrapper, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<CommandProcessingResult>>; |
| public postSmscampaigns(commandWrapper: CommandWrapper, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<CommandProcessingResult>>; |
| public postSmscampaigns(commandWrapper: CommandWrapper, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> { |
| if (commandWrapper === null || commandWrapper === undefined) { |
| throw new Error('Required parameter commandWrapper was null or undefined when calling postSmscampaigns.'); |
| } |
| |
| let localVarHeaders = this.defaultHeaders; |
| |
| // authentication (basicAuth) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('basicAuth', 'Authorization', localVarHeaders, 'Basic '); |
| |
| // authentication (tenantid) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('tenantid', 'fineract-platform-tenantid', localVarHeaders); |
| |
| const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ |
| 'application/json' |
| ]); |
| if (localVarHttpHeaderAcceptSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); |
| } |
| |
| const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); |
| |
| const localVarTransferCache: boolean = options?.transferCache ?? true; |
| |
| |
| // to determine the Content-Type header |
| const consumes: string[] = [ |
| 'application/json' |
| ]; |
| const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); |
| if (httpContentTypeSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); |
| } |
| |
| let responseType_: 'text' | 'json' | 'blob' = 'json'; |
| if (localVarHttpHeaderAcceptSelected) { |
| if (localVarHttpHeaderAcceptSelected.startsWith('text')) { |
| responseType_ = 'text'; |
| } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { |
| responseType_ = 'json'; |
| } else { |
| responseType_ = 'blob'; |
| } |
| } |
| |
| let localVarPath = `/v1/smscampaigns`; |
| const { basePath, withCredentials } = this.configuration; |
| return this.httpClient.request<CommandProcessingResult>('post', `${basePath}${localVarPath}`, |
| { |
| context: localVarHttpContext, |
| body: commandWrapper, |
| responseType: <any>responseType_, |
| ...(withCredentials ? { withCredentials } : {}), |
| headers: localVarHeaders, |
| observe: observe, |
| ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), |
| reportProgress: reportProgress |
| } |
| ); |
| } |
| |
| /** |
| * SMS Campaign |
| * Activates | Deactivates | Reactivates |
| * @endpoint post /v1/smscampaigns/{campaignId} |
| * @param campaignId |
| * @param command |
| * @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. |
| * @param options additional options |
| */ |
| public postSmscampaignsCampaignId(campaignId: number, command?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<CommandProcessingResult>; |
| public postSmscampaignsCampaignId(campaignId: number, command?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<CommandProcessingResult>>; |
| public postSmscampaignsCampaignId(campaignId: number, command?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<CommandProcessingResult>>; |
| public postSmscampaignsCampaignId(campaignId: number, command?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> { |
| if (campaignId === null || campaignId === undefined) { |
| throw new Error('Required parameter campaignId was null or undefined when calling postSmscampaignsCampaignId.'); |
| } |
| |
| let localVarQueryParameters = new OpenApiHttpParams(this.encoder); |
| |
| localVarQueryParameters = this.addToHttpParams( |
| localVarQueryParameters, |
| 'command', |
| <any>command, |
| QueryParamStyle.Form, |
| true, |
| ); |
| |
| |
| let localVarHeaders = this.defaultHeaders; |
| |
| // authentication (basicAuth) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('basicAuth', 'Authorization', localVarHeaders, 'Basic '); |
| |
| // authentication (tenantid) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('tenantid', 'fineract-platform-tenantid', localVarHeaders); |
| |
| const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ |
| 'application/json' |
| ]); |
| if (localVarHttpHeaderAcceptSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); |
| } |
| |
| const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); |
| |
| const localVarTransferCache: boolean = options?.transferCache ?? true; |
| |
| |
| let responseType_: 'text' | 'json' | 'blob' = 'json'; |
| if (localVarHttpHeaderAcceptSelected) { |
| if (localVarHttpHeaderAcceptSelected.startsWith('text')) { |
| responseType_ = 'text'; |
| } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { |
| responseType_ = 'json'; |
| } else { |
| responseType_ = 'blob'; |
| } |
| } |
| |
| let localVarPath = `/v1/smscampaigns/${this.configuration.encodeParam({name: "campaignId", value: campaignId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; |
| const { basePath, withCredentials } = this.configuration; |
| return this.httpClient.request<CommandProcessingResult>('post', `${basePath}${localVarPath}`, |
| { |
| context: localVarHttpContext, |
| params: localVarQueryParameters.toHttpParams(), |
| responseType: <any>responseType_, |
| ...(withCredentials ? { withCredentials } : {}), |
| headers: localVarHeaders, |
| observe: observe, |
| ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), |
| reportProgress: reportProgress |
| } |
| ); |
| } |
| |
| /** |
| * Preview SMS Campaign message |
| * @endpoint post /v1/smscampaigns/preview |
| * @param smsCampaignPreviewDto |
| * @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. |
| * @param options additional options |
| */ |
| public postSmscampaignsPreview(smsCampaignPreviewDto?: SmsCampaignPreviewDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<CampaignPreviewData>; |
| public postSmscampaignsPreview(smsCampaignPreviewDto?: SmsCampaignPreviewDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<CampaignPreviewData>>; |
| public postSmscampaignsPreview(smsCampaignPreviewDto?: SmsCampaignPreviewDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<CampaignPreviewData>>; |
| public postSmscampaignsPreview(smsCampaignPreviewDto?: SmsCampaignPreviewDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> { |
| |
| let localVarHeaders = this.defaultHeaders; |
| |
| // authentication (basicAuth) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('basicAuth', 'Authorization', localVarHeaders, 'Basic '); |
| |
| // authentication (tenantid) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('tenantid', 'fineract-platform-tenantid', localVarHeaders); |
| |
| const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ |
| 'application/json' |
| ]); |
| if (localVarHttpHeaderAcceptSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); |
| } |
| |
| const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); |
| |
| const localVarTransferCache: boolean = options?.transferCache ?? true; |
| |
| |
| // to determine the Content-Type header |
| const consumes: string[] = [ |
| 'application/json' |
| ]; |
| const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); |
| if (httpContentTypeSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); |
| } |
| |
| let responseType_: 'text' | 'json' | 'blob' = 'json'; |
| if (localVarHttpHeaderAcceptSelected) { |
| if (localVarHttpHeaderAcceptSelected.startsWith('text')) { |
| responseType_ = 'text'; |
| } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { |
| responseType_ = 'json'; |
| } else { |
| responseType_ = 'blob'; |
| } |
| } |
| |
| let localVarPath = `/v1/smscampaigns/preview`; |
| const { basePath, withCredentials } = this.configuration; |
| return this.httpClient.request<CampaignPreviewData>('post', `${basePath}${localVarPath}`, |
| { |
| context: localVarHttpContext, |
| body: smsCampaignPreviewDto, |
| responseType: <any>responseType_, |
| ...(withCredentials ? { withCredentials } : {}), |
| headers: localVarHeaders, |
| observe: observe, |
| ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), |
| reportProgress: reportProgress |
| } |
| ); |
| } |
| |
| /** |
| * Update an email campaign |
| * @endpoint put /v1/email/campaign/{resourceId} |
| * @param resourceId |
| * @param body |
| * @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. |
| * @param options additional options |
| */ |
| public putEmailCampaignResourceId(resourceId: number, body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<string>; |
| public putEmailCampaignResourceId(resourceId: number, body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<string>>; |
| public putEmailCampaignResourceId(resourceId: number, body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<string>>; |
| public putEmailCampaignResourceId(resourceId: number, body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> { |
| if (resourceId === null || resourceId === undefined) { |
| throw new Error('Required parameter resourceId was null or undefined when calling putEmailCampaignResourceId.'); |
| } |
| |
| let localVarHeaders = this.defaultHeaders; |
| |
| // authentication (basicAuth) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('basicAuth', 'Authorization', localVarHeaders, 'Basic '); |
| |
| // authentication (tenantid) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('tenantid', 'fineract-platform-tenantid', localVarHeaders); |
| |
| const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ |
| 'application/json' |
| ]); |
| if (localVarHttpHeaderAcceptSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); |
| } |
| |
| const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); |
| |
| const localVarTransferCache: boolean = options?.transferCache ?? true; |
| |
| |
| // to determine the Content-Type header |
| const consumes: string[] = [ |
| 'application/json' |
| ]; |
| const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); |
| if (httpContentTypeSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); |
| } |
| |
| let responseType_: 'text' | 'json' | 'blob' = 'json'; |
| if (localVarHttpHeaderAcceptSelected) { |
| if (localVarHttpHeaderAcceptSelected.startsWith('text')) { |
| responseType_ = 'text'; |
| } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { |
| responseType_ = 'json'; |
| } else { |
| responseType_ = 'blob'; |
| } |
| } |
| |
| let localVarPath = `/v1/email/campaign/${this.configuration.encodeParam({name: "resourceId", value: resourceId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; |
| const { basePath, withCredentials } = this.configuration; |
| return this.httpClient.request<string>('put', `${basePath}${localVarPath}`, |
| { |
| context: localVarHttpContext, |
| body: body, |
| responseType: <any>responseType_, |
| ...(withCredentials ? { withCredentials } : {}), |
| headers: localVarHeaders, |
| observe: observe, |
| ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), |
| reportProgress: reportProgress |
| } |
| ); |
| } |
| |
| /** |
| * Update email configuration |
| * @endpoint put /v1/email/configuration |
| * @param body |
| * @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. |
| * @param options additional options |
| */ |
| public putEmailConfiguration(body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<string>; |
| public putEmailConfiguration(body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<string>>; |
| public putEmailConfiguration(body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<string>>; |
| public putEmailConfiguration(body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> { |
| |
| let localVarHeaders = this.defaultHeaders; |
| |
| // authentication (basicAuth) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('basicAuth', 'Authorization', localVarHeaders, 'Basic '); |
| |
| // authentication (tenantid) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('tenantid', 'fineract-platform-tenantid', localVarHeaders); |
| |
| const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ |
| 'application/json' |
| ]); |
| if (localVarHttpHeaderAcceptSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); |
| } |
| |
| const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); |
| |
| const localVarTransferCache: boolean = options?.transferCache ?? true; |
| |
| |
| // to determine the Content-Type header |
| const consumes: string[] = [ |
| 'application/json' |
| ]; |
| const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); |
| if (httpContentTypeSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); |
| } |
| |
| let responseType_: 'text' | 'json' | 'blob' = 'json'; |
| if (localVarHttpHeaderAcceptSelected) { |
| if (localVarHttpHeaderAcceptSelected.startsWith('text')) { |
| responseType_ = 'text'; |
| } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { |
| responseType_ = 'json'; |
| } else { |
| responseType_ = 'blob'; |
| } |
| } |
| |
| let localVarPath = `/v1/email/configuration`; |
| const { basePath, withCredentials } = this.configuration; |
| return this.httpClient.request<string>('put', `${basePath}${localVarPath}`, |
| { |
| context: localVarHttpContext, |
| body: body, |
| responseType: <any>responseType_, |
| ...(withCredentials ? { withCredentials } : {}), |
| headers: localVarHeaders, |
| observe: observe, |
| ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), |
| reportProgress: reportProgress |
| } |
| ); |
| } |
| |
| /** |
| * Update an email message |
| * @endpoint put /v1/email/{resourceId} |
| * @param resourceId |
| * @param body |
| * @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. |
| * @param options additional options |
| */ |
| public putEmailResourceId(resourceId: number, body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<string>; |
| public putEmailResourceId(resourceId: number, body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<string>>; |
| public putEmailResourceId(resourceId: number, body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<string>>; |
| public putEmailResourceId(resourceId: number, body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> { |
| if (resourceId === null || resourceId === undefined) { |
| throw new Error('Required parameter resourceId was null or undefined when calling putEmailResourceId.'); |
| } |
| |
| let localVarHeaders = this.defaultHeaders; |
| |
| // authentication (basicAuth) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('basicAuth', 'Authorization', localVarHeaders, 'Basic '); |
| |
| // authentication (tenantid) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('tenantid', 'fineract-platform-tenantid', localVarHeaders); |
| |
| const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ |
| 'application/json' |
| ]); |
| if (localVarHttpHeaderAcceptSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); |
| } |
| |
| const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); |
| |
| const localVarTransferCache: boolean = options?.transferCache ?? true; |
| |
| |
| // to determine the Content-Type header |
| const consumes: string[] = [ |
| 'application/json' |
| ]; |
| const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); |
| if (httpContentTypeSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); |
| } |
| |
| let responseType_: 'text' | 'json' | 'blob' = 'json'; |
| if (localVarHttpHeaderAcceptSelected) { |
| if (localVarHttpHeaderAcceptSelected.startsWith('text')) { |
| responseType_ = 'text'; |
| } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { |
| responseType_ = 'json'; |
| } else { |
| responseType_ = 'blob'; |
| } |
| } |
| |
| let localVarPath = `/v1/email/${this.configuration.encodeParam({name: "resourceId", value: resourceId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; |
| const { basePath, withCredentials } = this.configuration; |
| return this.httpClient.request<string>('put', `${basePath}${localVarPath}`, |
| { |
| context: localVarHttpContext, |
| body: body, |
| responseType: <any>responseType_, |
| ...(withCredentials ? { withCredentials } : {}), |
| headers: localVarHeaders, |
| observe: observe, |
| ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), |
| reportProgress: reportProgress |
| } |
| ); |
| } |
| |
| /** |
| * @endpoint put /v1/{entityType}/{entityId}/images |
| * @param entityType |
| * @param entityId |
| * @param contentLength |
| * @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. |
| * @param options additional options |
| * @deprecated |
| */ |
| public putEntityTypeEntityIdImages(entityType: string, entityId: number, contentLength?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext, transferCache?: boolean}): Observable<ImageCreateResponse>; |
| public putEntityTypeEntityIdImages(entityType: string, entityId: number, contentLength?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<ImageCreateResponse>>; |
| public putEntityTypeEntityIdImages(entityType: string, entityId: number, contentLength?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<ImageCreateResponse>>; |
| public putEntityTypeEntityIdImages(entityType: string, entityId: number, contentLength?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext, transferCache?: boolean}): Observable<any> { |
| if (entityType === null || entityType === undefined) { |
| throw new Error('Required parameter entityType was null or undefined when calling putEntityTypeEntityIdImages.'); |
| } |
| if (entityId === null || entityId === undefined) { |
| throw new Error('Required parameter entityId was null or undefined when calling putEntityTypeEntityIdImages.'); |
| } |
| |
| let localVarHeaders = this.defaultHeaders; |
| if (contentLength !== undefined && contentLength !== null) { |
| localVarHeaders = localVarHeaders.set('Content-Length', String(contentLength)); |
| } |
| |
| // authentication (basicAuth) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('basicAuth', 'Authorization', localVarHeaders, 'Basic '); |
| |
| // authentication (tenantid) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('tenantid', 'fineract-platform-tenantid', localVarHeaders); |
| |
| const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ |
| '*/*' |
| ]); |
| if (localVarHttpHeaderAcceptSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); |
| } |
| |
| const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); |
| |
| const localVarTransferCache: boolean = options?.transferCache ?? true; |
| |
| |
| let responseType_: 'text' | 'json' | 'blob' = 'json'; |
| if (localVarHttpHeaderAcceptSelected) { |
| if (localVarHttpHeaderAcceptSelected.startsWith('text')) { |
| responseType_ = 'text'; |
| } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { |
| responseType_ = 'json'; |
| } else { |
| responseType_ = 'blob'; |
| } |
| } |
| |
| let localVarPath = `/v1/${this.configuration.encodeParam({name: "entityType", value: entityType, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "entityId", value: entityId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/images`; |
| const { basePath, withCredentials } = this.configuration; |
| return this.httpClient.request<ImageCreateResponse>('put', `${basePath}${localVarPath}`, |
| { |
| context: localVarHttpContext, |
| responseType: <any>responseType_, |
| ...(withCredentials ? { withCredentials } : {}), |
| headers: localVarHeaders, |
| observe: observe, |
| ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), |
| reportProgress: reportProgress |
| } |
| ); |
| } |
| |
| /** |
| * Update internal global configuration |
| * @endpoint put /v1/internal/configurations/name/{configName}/value/{configValue} |
| * @param configName |
| * @param configValue |
| * @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. |
| * @param options additional options |
| */ |
| public putInternalConfigurationsNameConfigNameValueConfigValue(configName: string, configValue: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any>; |
| public putInternalConfigurationsNameConfigNameValueConfigValue(configName: string, configValue: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>; |
| public putInternalConfigurationsNameConfigNameValueConfigValue(configName: string, configValue: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>; |
| public putInternalConfigurationsNameConfigNameValueConfigValue(configName: string, configValue: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> { |
| if (configName === null || configName === undefined) { |
| throw new Error('Required parameter configName was null or undefined when calling putInternalConfigurationsNameConfigNameValueConfigValue.'); |
| } |
| if (configValue === null || configValue === undefined) { |
| throw new Error('Required parameter configValue was null or undefined when calling putInternalConfigurationsNameConfigNameValueConfigValue.'); |
| } |
| |
| let localVarHeaders = this.defaultHeaders; |
| |
| // authentication (basicAuth) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('basicAuth', 'Authorization', localVarHeaders, 'Basic '); |
| |
| // authentication (tenantid) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('tenantid', 'fineract-platform-tenantid', localVarHeaders); |
| |
| const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ |
| 'application/json' |
| ]); |
| if (localVarHttpHeaderAcceptSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); |
| } |
| |
| const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); |
| |
| const localVarTransferCache: boolean = options?.transferCache ?? true; |
| |
| |
| let responseType_: 'text' | 'json' | 'blob' = 'json'; |
| if (localVarHttpHeaderAcceptSelected) { |
| if (localVarHttpHeaderAcceptSelected.startsWith('text')) { |
| responseType_ = 'text'; |
| } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { |
| responseType_ = 'json'; |
| } else { |
| responseType_ = 'blob'; |
| } |
| } |
| |
| let localVarPath = `/v1/internal/configurations/name/${this.configuration.encodeParam({name: "configName", value: configName, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/value/${this.configuration.encodeParam({name: "configValue", value: configValue, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; |
| const { basePath, withCredentials } = this.configuration; |
| return this.httpClient.request<any>('put', `${basePath}${localVarPath}`, |
| { |
| context: localVarHttpContext, |
| responseType: <any>responseType_, |
| ...(withCredentials ? { withCredentials } : {}), |
| headers: localVarHeaders, |
| observe: observe, |
| ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), |
| reportProgress: reportProgress |
| } |
| ); |
| } |
| |
| /** |
| * Update a Campaign |
| * @endpoint put /v1/smscampaigns/{campaignId} |
| * @param campaignId |
| * @param commandWrapper |
| * @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. |
| * @param options additional options |
| */ |
| public putSmscampaignsCampaignId(campaignId: number, commandWrapper: CommandWrapper, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<CommandProcessingResult>; |
| public putSmscampaignsCampaignId(campaignId: number, commandWrapper: CommandWrapper, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<CommandProcessingResult>>; |
| public putSmscampaignsCampaignId(campaignId: number, commandWrapper: CommandWrapper, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<CommandProcessingResult>>; |
| public putSmscampaignsCampaignId(campaignId: number, commandWrapper: CommandWrapper, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> { |
| if (campaignId === null || campaignId === undefined) { |
| throw new Error('Required parameter campaignId was null or undefined when calling putSmscampaignsCampaignId.'); |
| } |
| if (commandWrapper === null || commandWrapper === undefined) { |
| throw new Error('Required parameter commandWrapper was null or undefined when calling putSmscampaignsCampaignId.'); |
| } |
| |
| let localVarHeaders = this.defaultHeaders; |
| |
| // authentication (basicAuth) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('basicAuth', 'Authorization', localVarHeaders, 'Basic '); |
| |
| // authentication (tenantid) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('tenantid', 'fineract-platform-tenantid', localVarHeaders); |
| |
| const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ |
| 'application/json' |
| ]); |
| if (localVarHttpHeaderAcceptSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); |
| } |
| |
| const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); |
| |
| const localVarTransferCache: boolean = options?.transferCache ?? true; |
| |
| |
| // to determine the Content-Type header |
| const consumes: string[] = [ |
| 'application/json' |
| ]; |
| const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); |
| if (httpContentTypeSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); |
| } |
| |
| let responseType_: 'text' | 'json' | 'blob' = 'json'; |
| if (localVarHttpHeaderAcceptSelected) { |
| if (localVarHttpHeaderAcceptSelected.startsWith('text')) { |
| responseType_ = 'text'; |
| } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { |
| responseType_ = 'json'; |
| } else { |
| responseType_ = 'blob'; |
| } |
| } |
| |
| let localVarPath = `/v1/smscampaigns/${this.configuration.encodeParam({name: "campaignId", value: campaignId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; |
| const { basePath, withCredentials } = this.configuration; |
| return this.httpClient.request<CommandProcessingResult>('put', `${basePath}${localVarPath}`, |
| { |
| context: localVarHttpContext, |
| body: commandWrapper, |
| responseType: <any>responseType_, |
| ...(withCredentials ? { withCredentials } : {}), |
| headers: localVarHeaders, |
| observe: observe, |
| ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), |
| reportProgress: reportProgress |
| } |
| ); |
| } |
| |
| /** |
| * @endpoint put /v1/twofactor/configure |
| * @param body |
| * @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. |
| * @param options additional options |
| */ |
| public putTwofactorConfigure(body?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<string>; |
| public putTwofactorConfigure(body?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<string>>; |
| public putTwofactorConfigure(body?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<string>>; |
| public putTwofactorConfigure(body?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> { |
| |
| let localVarHeaders = this.defaultHeaders; |
| |
| // authentication (basicAuth) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('basicAuth', 'Authorization', localVarHeaders, 'Basic '); |
| |
| // authentication (tenantid) required |
| localVarHeaders = this.configuration.addCredentialToHeaders('tenantid', 'fineract-platform-tenantid', localVarHeaders); |
| |
| const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ |
| 'application/json' |
| ]); |
| if (localVarHttpHeaderAcceptSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); |
| } |
| |
| const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); |
| |
| const localVarTransferCache: boolean = options?.transferCache ?? true; |
| |
| |
| // to determine the Content-Type header |
| const consumes: string[] = [ |
| 'application/json' |
| ]; |
| const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); |
| if (httpContentTypeSelected !== undefined) { |
| localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); |
| } |
| |
| let responseType_: 'text' | 'json' | 'blob' = 'json'; |
| if (localVarHttpHeaderAcceptSelected) { |
| if (localVarHttpHeaderAcceptSelected.startsWith('text')) { |
| responseType_ = 'text'; |
| } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { |
| responseType_ = 'json'; |
| } else { |
| responseType_ = 'blob'; |
| } |
| } |
| |
| let localVarPath = `/v1/twofactor/configure`; |
| const { basePath, withCredentials } = this.configuration; |
| return this.httpClient.request<string>('put', `${basePath}${localVarPath}`, |
| { |
| context: localVarHttpContext, |
| body: body, |
| responseType: <any>responseType_, |
| ...(withCredentials ? { withCredentials } : {}), |
| headers: localVarHeaders, |
| observe: observe, |
| ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), |
| reportProgress: reportProgress |
| } |
| ); |
| } |
| |
| } |