mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
feat(generated-swagger-oms-api): update OMS Swagger API models and services
Add receipt item task-related models and interfaces to support return review functionality. Add new fields to ReceiptDTO and update ReturnProcessService Includes: - New task list models for receipt items - Receipt service endpoint updates - Field additions to ReceiptDTO model Ref: #4942
This commit is contained in:
@@ -247,6 +247,10 @@ export { ListResponseArgsOfReceiptItemListItemDTO } from './models/list-response
|
||||
export { ResponseArgsOfIEnumerableOfReceiptItemListItemDTO } from './models/response-args-of-ienumerable-of-receipt-item-list-item-dto';
|
||||
export { ReceiptItemListItemDTO } from './models/receipt-item-list-item-dto';
|
||||
export { ReturnReceiptValuesDTO } from './models/return-receipt-values-dto';
|
||||
export { ListResponseArgsOfReceiptItemTaskListItemDTO } from './models/list-response-args-of-receipt-item-task-list-item-dto';
|
||||
export { ResponseArgsOfIEnumerableOfReceiptItemTaskListItemDTO } from './models/response-args-of-ienumerable-of-receipt-item-task-list-item-dto';
|
||||
export { ReceiptItemTaskListItemDTO } from './models/receipt-item-task-list-item-dto';
|
||||
export { ResponseArgsOfReceiptItemTaskListItemDTO } from './models/response-args-of-receipt-item-task-list-item-dto';
|
||||
export { ResponseArgsOfIEnumerableOfValueTupleOfLongAndReceiptTypeAndEntityDTOContainerOfReceiptDTO } from './models/response-args-of-ienumerable-of-value-tuple-of-long-and-receipt-type-and-entity-dtocontainer-of-receipt-dto';
|
||||
export { ValueTupleOfLongAndReceiptTypeAndEntityDTOContainerOfReceiptDTO } from './models/value-tuple-of-long-and-receipt-type-and-entity-dtocontainer-of-receipt-dto';
|
||||
export { ReceiptOrderItemSubsetReferenceValues } from './models/receipt-order-item-subset-reference-values';
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
/* tslint:disable */
|
||||
import { ResponseArgsOfIEnumerableOfReceiptItemTaskListItemDTO } from './response-args-of-ienumerable-of-receipt-item-task-list-item-dto';
|
||||
export interface ListResponseArgsOfReceiptItemTaskListItemDTO extends ResponseArgsOfIEnumerableOfReceiptItemTaskListItemDTO{
|
||||
|
||||
/**
|
||||
* Completed
|
||||
*/
|
||||
completed?: boolean;
|
||||
|
||||
/**
|
||||
* Hits
|
||||
*/
|
||||
hits?: number;
|
||||
|
||||
/**
|
||||
* Skip
|
||||
*/
|
||||
skip?: number;
|
||||
|
||||
/**
|
||||
* Take
|
||||
*/
|
||||
take?: number;
|
||||
}
|
||||
@@ -2,6 +2,7 @@
|
||||
import { EntityDTOBaseOfReceiptDTOAndIReceipt } from './entity-dtobase-of-receipt-dtoand-ireceipt';
|
||||
import { PayerDTO2 } from './payer-dto2';
|
||||
import { BuyerDTO } from './buyer-dto';
|
||||
import { EntityDTOContainerOfBranchDTO } from './entity-dtocontainer-of-branch-dto';
|
||||
import { KeyValueDTOOfStringAndString } from './key-value-dtoof-string-and-string';
|
||||
import { EntityDTOContainerOfReceiptItemDTO } from './entity-dtocontainer-of-receipt-item-dto';
|
||||
import { EntityDTOContainerOfLabelDTO } from './entity-dtocontainer-of-label-dto';
|
||||
@@ -36,6 +37,11 @@ export interface ReceiptDTO extends EntityDTOBaseOfReceiptDTOAndIReceipt{
|
||||
*/
|
||||
chargePostage?: boolean;
|
||||
|
||||
/**
|
||||
* Label
|
||||
*/
|
||||
createdInBranch?: EntityDTOContainerOfBranchDTO;
|
||||
|
||||
/**
|
||||
* Dateinamen (Separator: ";") der Belegdateien
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,101 @@
|
||||
/* tslint:disable */
|
||||
import { AddresseeDTO } from './addressee-dto';
|
||||
import { ProductDTO } from './product-dto';
|
||||
import { EntityDTOContainerOfReceiptDTO } from './entity-dtocontainer-of-receipt-dto';
|
||||
import { EntityDTOContainerOfReceiptItemDTO } from './entity-dtocontainer-of-receipt-item-dto';
|
||||
|
||||
/**
|
||||
* Bestellpostenstatus-Aufgabe
|
||||
*/
|
||||
export interface ReceiptItemTaskListItemDTO {
|
||||
|
||||
/**
|
||||
* Rechnung
|
||||
*/
|
||||
billing?: AddresseeDTO;
|
||||
|
||||
/**
|
||||
* Auftraggeber
|
||||
*/
|
||||
buyer?: AddresseeDTO;
|
||||
|
||||
/**
|
||||
* Annulliert
|
||||
*/
|
||||
canceled?: string;
|
||||
|
||||
/**
|
||||
* Abgeschlossen
|
||||
*/
|
||||
completed?: string;
|
||||
|
||||
/**
|
||||
* Aufgabentyp Detail
|
||||
*/
|
||||
description?: string;
|
||||
|
||||
/**
|
||||
* Task ID
|
||||
*/
|
||||
id?: number;
|
||||
|
||||
/**
|
||||
* Aufgabentyp
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* Task PId
|
||||
*/
|
||||
pId?: string;
|
||||
|
||||
/**
|
||||
* Auftraggeber-Nr
|
||||
*/
|
||||
payerNumber?: string;
|
||||
|
||||
/**
|
||||
* Anmerkung zur Verarbeitung
|
||||
*/
|
||||
processingComment?: string;
|
||||
|
||||
/**
|
||||
* Referenz (UId) des verarbeinden Systems
|
||||
*/
|
||||
processingReference?: string;
|
||||
|
||||
/**
|
||||
* Artikel-/Produktdaten
|
||||
*/
|
||||
product?: ProductDTO;
|
||||
|
||||
/**
|
||||
* Bestellung
|
||||
*/
|
||||
receipt?: EntityDTOContainerOfReceiptDTO;
|
||||
|
||||
/**
|
||||
* Bestellposten
|
||||
*/
|
||||
receiptItem?: EntityDTOContainerOfReceiptItemDTO;
|
||||
|
||||
/**
|
||||
* Belegnummer
|
||||
*/
|
||||
receiptNumber?: string;
|
||||
|
||||
/**
|
||||
* Lieferung
|
||||
*/
|
||||
shipping?: AddresseeDTO;
|
||||
|
||||
/**
|
||||
* Task date
|
||||
*/
|
||||
taskDate?: string;
|
||||
|
||||
/**
|
||||
* Typ
|
||||
*/
|
||||
type?: string;
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
/* tslint:disable */
|
||||
import { ResponseArgs } from './response-args';
|
||||
import { ReceiptItemTaskListItemDTO } from './receipt-item-task-list-item-dto';
|
||||
export interface ResponseArgsOfIEnumerableOfReceiptItemTaskListItemDTO extends ResponseArgs{
|
||||
|
||||
/**
|
||||
* Wert
|
||||
*/
|
||||
result?: Array<ReceiptItemTaskListItemDTO>;
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
/* tslint:disable */
|
||||
import { ResponseArgs } from './response-args';
|
||||
import { ReceiptItemTaskListItemDTO } from './receipt-item-task-list-item-dto';
|
||||
export interface ResponseArgsOfReceiptItemTaskListItemDTO extends ResponseArgs{
|
||||
|
||||
/**
|
||||
* Wert
|
||||
*/
|
||||
result?: ReceiptItemTaskListItemDTO;
|
||||
}
|
||||
@@ -17,6 +17,8 @@ import { ListResponseArgsOfReceiptListItemDTO } from '../models/list-response-ar
|
||||
import { QueryTokenDTO } from '../models/query-token-dto';
|
||||
import { ListResponseArgsOfReceiptItemListItemDTO } from '../models/list-response-args-of-receipt-item-list-item-dto';
|
||||
import { ReturnReceiptValuesDTO } from '../models/return-receipt-values-dto';
|
||||
import { ListResponseArgsOfReceiptItemTaskListItemDTO } from '../models/list-response-args-of-receipt-item-task-list-item-dto';
|
||||
import { ResponseArgsOfReceiptItemTaskListItemDTO } from '../models/response-args-of-receipt-item-task-list-item-dto';
|
||||
import { ResponseArgsOfIEnumerableOfValueTupleOfLongAndReceiptTypeAndEntityDTOContainerOfReceiptDTO } from '../models/response-args-of-ienumerable-of-value-tuple-of-long-and-receipt-type-and-entity-dtocontainer-of-receipt-dto';
|
||||
import { ReceiptOrderItemSubsetReferenceValues } from '../models/receipt-order-item-subset-reference-values';
|
||||
@Injectable({
|
||||
@@ -34,6 +36,8 @@ class ReceiptService extends __BaseService {
|
||||
static readonly ReceiptCreateInvoicePath = '/receipt/invoice/fromorder';
|
||||
static readonly ReceiptCreateInvoice2Path = '/receipt/invoice/fromitems';
|
||||
static readonly ReceiptCreateReturnReceiptPath = '/receipt/return-receipt';
|
||||
static readonly ReceiptQueryReceiptItemTasksPath = '/receipt/item/task/s';
|
||||
static readonly ReceiptReceiptItemTaskCompletedPath = '/receipt/item/task/{taskId}/completed';
|
||||
static readonly ReceiptGetReceiptsByOrderItemSubsetPath = '/order/orderitem/orderitemsubset/receipts';
|
||||
|
||||
constructor(
|
||||
@@ -531,6 +535,78 @@ class ReceiptService extends __BaseService {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Suche nach Bestellpostenstatus-Aufgaben
|
||||
* @param queryToken Suchkriterien
|
||||
*/
|
||||
ReceiptQueryReceiptItemTasksResponse(queryToken: QueryTokenDTO): __Observable<__StrictHttpResponse<ListResponseArgsOfReceiptItemTaskListItemDTO>> {
|
||||
let __params = this.newParams();
|
||||
let __headers = new HttpHeaders();
|
||||
let __body: any = null;
|
||||
__body = queryToken;
|
||||
let req = new HttpRequest<any>(
|
||||
'POST',
|
||||
this.rootUrl + `/receipt/item/task/s`,
|
||||
__body,
|
||||
{
|
||||
headers: __headers,
|
||||
params: __params,
|
||||
responseType: 'json'
|
||||
});
|
||||
|
||||
return this.http.request<any>(req).pipe(
|
||||
__filter(_r => _r instanceof HttpResponse),
|
||||
__map((_r) => {
|
||||
return _r as __StrictHttpResponse<ListResponseArgsOfReceiptItemTaskListItemDTO>;
|
||||
})
|
||||
);
|
||||
}
|
||||
/**
|
||||
* Suche nach Bestellpostenstatus-Aufgaben
|
||||
* @param queryToken Suchkriterien
|
||||
*/
|
||||
ReceiptQueryReceiptItemTasks(queryToken: QueryTokenDTO): __Observable<ListResponseArgsOfReceiptItemTaskListItemDTO> {
|
||||
return this.ReceiptQueryReceiptItemTasksResponse(queryToken).pipe(
|
||||
__map(_r => _r.body as ListResponseArgsOfReceiptItemTaskListItemDTO)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Aufgabe auf erledigt setzen
|
||||
* @param taskId undefined
|
||||
*/
|
||||
ReceiptReceiptItemTaskCompletedResponse(taskId: number): __Observable<__StrictHttpResponse<ResponseArgsOfReceiptItemTaskListItemDTO>> {
|
||||
let __params = this.newParams();
|
||||
let __headers = new HttpHeaders();
|
||||
let __body: any = null;
|
||||
|
||||
let req = new HttpRequest<any>(
|
||||
'PATCH',
|
||||
this.rootUrl + `/receipt/item/task/${encodeURIComponent(String(taskId))}/completed`,
|
||||
__body,
|
||||
{
|
||||
headers: __headers,
|
||||
params: __params,
|
||||
responseType: 'json'
|
||||
});
|
||||
|
||||
return this.http.request<any>(req).pipe(
|
||||
__filter(_r => _r instanceof HttpResponse),
|
||||
__map((_r) => {
|
||||
return _r as __StrictHttpResponse<ResponseArgsOfReceiptItemTaskListItemDTO>;
|
||||
})
|
||||
);
|
||||
}
|
||||
/**
|
||||
* Aufgabe auf erledigt setzen
|
||||
* @param taskId undefined
|
||||
*/
|
||||
ReceiptReceiptItemTaskCompleted(taskId: number): __Observable<ResponseArgsOfReceiptItemTaskListItemDTO> {
|
||||
return this.ReceiptReceiptItemTaskCompletedResponse(taskId).pipe(
|
||||
__map(_r => _r.body as ResponseArgsOfReceiptItemTaskListItemDTO)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Zugeordnete Belege
|
||||
* @param params The `ReceiptService.ReceiptGetReceiptsByOrderItemSubsetParams` containing the following parameters:
|
||||
|
||||
Reference in New Issue
Block a user