mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
Merged PR 2046: feature(crm-data-access): Update Transactions Endpoint
feature(crm-data-access): Update Transactions Endpoint Ref: #5336
This commit is contained in:
committed by
Lorenz Hilpert
parent
bb717975a0
commit
4107641e75
@@ -22,6 +22,7 @@ import { ResponseArgsOfNullableBoolean } from '../models/response-args-of-nullab
|
||||
class LoyaltyCardService extends __BaseService {
|
||||
static readonly LoyaltyCardListBookingsPath = '/loyalty/{cardCode}/booking';
|
||||
static readonly LoyaltyCardAddBookingPath = '/loyalty/{cardCode}/booking';
|
||||
static readonly LoyaltyCardListCustomerBookingsPath = '/customer/{customerId}/loyalty/booking';
|
||||
static readonly LoyaltyCardBookingReasonPath = '/loyalty/booking/reason';
|
||||
static readonly LoyaltyCardCurrentBookingPartnerStorePath = '/loyalty/booking/partner/store/current';
|
||||
static readonly LoyaltyCardLoyaltyBonCheckPath = '/loyalty/{cardCode}/bon/check';
|
||||
@@ -131,6 +132,51 @@ class LoyaltyCardService extends __BaseService {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Bookings / Buchungen
|
||||
* @param params The `LoyaltyCardService.LoyaltyCardListCustomerBookingsParams` containing the following parameters:
|
||||
*
|
||||
* - `customerId`:
|
||||
*
|
||||
* - `locale`:
|
||||
*/
|
||||
LoyaltyCardListCustomerBookingsResponse(params: LoyaltyCardService.LoyaltyCardListCustomerBookingsParams): __Observable<__StrictHttpResponse<ResponseArgsOfIQueryResultOfLoyaltyBookingInfoDTO>> {
|
||||
let __params = this.newParams();
|
||||
let __headers = new HttpHeaders();
|
||||
let __body: any = null;
|
||||
|
||||
if (params.locale != null) __params = __params.set('locale', params.locale.toString());
|
||||
let req = new HttpRequest<any>(
|
||||
'GET',
|
||||
this.rootUrl + `/customer/${encodeURIComponent(String(params.customerId))}/loyalty/booking`,
|
||||
__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<ResponseArgsOfIQueryResultOfLoyaltyBookingInfoDTO>;
|
||||
})
|
||||
);
|
||||
}
|
||||
/**
|
||||
* Bookings / Buchungen
|
||||
* @param params The `LoyaltyCardService.LoyaltyCardListCustomerBookingsParams` containing the following parameters:
|
||||
*
|
||||
* - `customerId`:
|
||||
*
|
||||
* - `locale`:
|
||||
*/
|
||||
LoyaltyCardListCustomerBookings(params: LoyaltyCardService.LoyaltyCardListCustomerBookingsParams): __Observable<ResponseArgsOfIQueryResultOfLoyaltyBookingInfoDTO> {
|
||||
return this.LoyaltyCardListCustomerBookingsResponse(params).pipe(
|
||||
__map(_r => _r.body as ResponseArgsOfIQueryResultOfLoyaltyBookingInfoDTO)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Booking reason / Buchungsgründe
|
||||
*/
|
||||
@@ -412,6 +458,14 @@ module LoyaltyCardService {
|
||||
locale?: null | string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Parameters for LoyaltyCardListCustomerBookings
|
||||
*/
|
||||
export interface LoyaltyCardListCustomerBookingsParams {
|
||||
customerId: number;
|
||||
locale?: null | string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Parameters for LoyaltyCardLoyaltyBonCheck
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user