mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
Swagger API Update
This commit is contained in:
@@ -225,6 +225,7 @@ export { PaymentInfoDTO } from './models/payment-info-dto';
|
||||
export { EntityDTOContainerOfReceiptItemDTO } from './models/entity-dtocontainer-of-receipt-item-dto';
|
||||
export { ReceiptItemDTO } from './models/receipt-item-dto';
|
||||
export { EntityReferenceTypeDTO } from './models/entity-reference-type-dto';
|
||||
export { ReferencedInOtherReceiptDTO } from './models/referenced-in-other-receipt-dto';
|
||||
export { EntityDTOBaseOfReceiptItemDTOAndIReceiptItem } from './models/entity-dtobase-of-receipt-item-dtoand-ireceipt-item';
|
||||
export { ShippingAddressDTO2 } from './models/shipping-address-dto2';
|
||||
export { EntityDTOBaseOfReceiptDTOAndIReceipt } from './models/entity-dtobase-of-receipt-dtoand-ireceipt';
|
||||
|
||||
@@ -15,6 +15,7 @@ import { PromotionDTO } from './promotion-dto';
|
||||
import { QuantityDTO } from './quantity-dto';
|
||||
import { EntityDTOContainerOfReceiptDTO } from './entity-dtocontainer-of-receipt-dto';
|
||||
import { EntityDTOReferenceContainer } from './entity-dtoreference-container';
|
||||
import { ReferencedInOtherReceiptDTO } from './referenced-in-other-receipt-dto';
|
||||
import { EntityDTOContainerOfSupplierDTO } from './entity-dtocontainer-of-supplier-dto';
|
||||
export interface ReceiptItemDTO extends EntityDTOBaseOfReceiptItemDTOAndIReceiptItem{
|
||||
_Parent?: EntityDTOContainerOfReceiptItemDTO;
|
||||
@@ -221,6 +222,12 @@ export interface ReceiptItemDTO extends EntityDTOBaseOfReceiptItemDTOAndIReceipt
|
||||
*/
|
||||
referencedEntity?: EntityDTOReferenceContainer;
|
||||
|
||||
/**
|
||||
* Referenced in other receipts / Referenziert in anderen Belegen
|
||||
* readonly
|
||||
*/
|
||||
referencedInOtherReceipts?: Array<ReferencedInOtherReceiptDTO>;
|
||||
|
||||
/**
|
||||
* Referenz zu anderem Posten
|
||||
* z.B. Lieferscheinposition => Rechnungsposition
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
/* tslint:disable */
|
||||
import { ReceiptType } from './receipt-type';
|
||||
|
||||
/**
|
||||
* Referenced in other receipt / Referenziert in anderem Beleg
|
||||
*/
|
||||
export interface ReferencedInOtherReceiptDTO {
|
||||
|
||||
/**
|
||||
* Quantity / Menge
|
||||
*/
|
||||
quantity: number;
|
||||
|
||||
/**
|
||||
* Receipt number / Belegnummer
|
||||
*/
|
||||
receiptNumber?: string;
|
||||
|
||||
/**
|
||||
* Receipt type / Belegart
|
||||
*/
|
||||
receiptType: ReceiptType;
|
||||
}
|
||||
@@ -9,6 +9,7 @@ import { map as __map, filter as __filter } from 'rxjs/operators';
|
||||
|
||||
import { ResponseArgsOfQuerySettingsDTO } from '../models/response-args-of-query-settings-dto';
|
||||
import { ResponseArgsOfReceiptDTO } from '../models/response-args-of-receipt-dto';
|
||||
import { ResponseArgsOfBoolean } from '../models/response-args-of-boolean';
|
||||
import { ResponseArgsOfReceiptItemTaskListItemDTO } from '../models/response-args-of-receipt-item-task-list-item-dto';
|
||||
import { ResponseArgsOfIEnumerableOfReceiptDTO } from '../models/response-args-of-ienumerable-of-receipt-dto';
|
||||
import { GenerateCollectiveReceiptsArgs } from '../models/generate-collective-receipts-args';
|
||||
@@ -27,6 +28,7 @@ import { ReceiptOrderItemSubsetReferenceValues } from '../models/receipt-order-i
|
||||
class ReceiptService extends __BaseService {
|
||||
static readonly ReceiptQueryReceiptSettingsPath = '/receipt/s/settings';
|
||||
static readonly ReceiptGetReceiptPath = '/receipt/{receiptId}';
|
||||
static readonly ReceiptCanReturnPath = '/receipt/{receiptId}/item/{receiptItemId}/can-return';
|
||||
static readonly ReceiptSetReceiptItemTaskToOKPath = '/receipt/item/task/{taskId}/ok';
|
||||
static readonly ReceiptSetReceiptItemTaskToNOKPath = '/receipt/item/task/{taskId}/nok';
|
||||
static readonly ReceiptGenerateCollectiveReceiptsPath = '/receipt/collectivereceipts';
|
||||
@@ -125,6 +127,51 @@ class ReceiptService extends __BaseService {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Prüfen, ob eine Rückgabe möglich ist
|
||||
* @param params The `ReceiptService.ReceiptCanReturnParams` containing the following parameters:
|
||||
*
|
||||
* - `receiptItemId`:
|
||||
*
|
||||
* - `receiptId`:
|
||||
*/
|
||||
ReceiptCanReturnResponse(params: ReceiptService.ReceiptCanReturnParams): __Observable<__StrictHttpResponse<ResponseArgsOfBoolean>> {
|
||||
let __params = this.newParams();
|
||||
let __headers = new HttpHeaders();
|
||||
let __body: any = null;
|
||||
|
||||
|
||||
let req = new HttpRequest<any>(
|
||||
'POST',
|
||||
this.rootUrl + `/receipt/${encodeURIComponent(String(params.receiptId))}/item/${encodeURIComponent(String(params.receiptItemId))}/can-return`,
|
||||
__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<ResponseArgsOfBoolean>;
|
||||
})
|
||||
);
|
||||
}
|
||||
/**
|
||||
* Prüfen, ob eine Rückgabe möglich ist
|
||||
* @param params The `ReceiptService.ReceiptCanReturnParams` containing the following parameters:
|
||||
*
|
||||
* - `receiptItemId`:
|
||||
*
|
||||
* - `receiptId`:
|
||||
*/
|
||||
ReceiptCanReturn(params: ReceiptService.ReceiptCanReturnParams): __Observable<ResponseArgsOfBoolean> {
|
||||
return this.ReceiptCanReturnResponse(params).pipe(
|
||||
__map(_r => _r.body as ResponseArgsOfBoolean)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Aufgabe in eine "OK"-Aufgabe ändern
|
||||
* @param taskId undefined
|
||||
@@ -737,6 +784,14 @@ module ReceiptService {
|
||||
eagerLoading?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Parameters for ReceiptCanReturn
|
||||
*/
|
||||
export interface ReceiptCanReturnParams {
|
||||
receiptItemId: number;
|
||||
receiptId: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Parameters for ReceiptQueryReceipt
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user