🔄 chore: sync swagger API clients with backend updates

- Regenerated all Swagger API clients (availability, checkout, crm, isa, print, wws)
- Updated CRM loyalty card API endpoints (removed interests, added booking/bon management)
- Temporarily disabled interests form block functionality due to API changes
- Removed deprecated models (check-loyalty-card-result, loyalty-card-status, entity-key-value)
- Added new loyalty booking and bon management models and services
This commit is contained in:
Lorenz Hilpert
2025-11-06 17:03:37 +01:00
parent 89b3d9aa60
commit 8e4d4ff804
312 changed files with 3539 additions and 2762 deletions

View File

@@ -31,8 +31,9 @@ const PARAMETER_CODEC = new ParameterCodec();
export class BaseService {
constructor(
protected config: CrmConfiguration,
protected http: HttpClient,
) {}
protected http: HttpClient
) {
}
private _rootUrl: string = '';
@@ -56,7 +57,7 @@ export class BaseService {
*/
protected newParams(): HttpParams {
return new HttpParams({
encoder: PARAMETER_CODEC,
encoder: PARAMETER_CODEC
});
}
}

View File

@@ -89,11 +89,13 @@ export { ResponseArgsOfIEnumerableOfShippingAddressDTO } from './models/response
export { ResponseArgsOfIEnumerableOfHistoryDTO } from './models/response-args-of-ienumerable-of-history-dto';
export { HistoryDTO } from './models/history-dto';
export { DiffDTO } from './models/diff-dto';
export { ResponseArgsOfIEnumerableOfEntityKeyValueDTOOfStringAndString } from './models/response-args-of-ienumerable-of-entity-key-value-dtoof-string-and-string';
export { EntityKeyValueDTOOfStringAndString } from './models/entity-key-value-dtoof-string-and-string';
export { ResponseArgsOfIEnumerableOfKeyValueDTOOfStringAndString } from './models/response-args-of-ienumerable-of-key-value-dtoof-string-and-string';
export { ResponseArgsOfCheckLoyaltyCardResult } from './models/response-args-of-check-loyalty-card-result';
export { CheckLoyaltyCardResult } from './models/check-loyalty-card-result';
export { LoyaltyCardStatus } from './models/loyalty-card-status';
export { ResponseArgsOfIQueryResultOfLoyaltyBookingInfoDTO } from './models/response-args-of-iquery-result-of-loyalty-booking-info-dto';
export { IQueryResultOfLoyaltyBookingInfoDTO } from './models/iquery-result-of-loyalty-booking-info-dto';
export { LoyaltyBookingInfoDTO } from './models/loyalty-booking-info-dto';
export { ResponseArgsOfIEnumerableOfString } from './models/response-args-of-ienumerable-of-string';
export { ResponseArgsOfKeyValueDTOOfStringAndString } from './models/response-args-of-key-value-dtoof-string-and-string';
export { ResponseArgsOfLoyaltyBookingInfoDTO } from './models/response-args-of-loyalty-booking-info-dto';
export { LoyaltyBookingValues } from './models/loyalty-booking-values';
export { LoyaltyBonValues } from './models/loyalty-bon-values';
export { ResponseArgsOfPayerDTO } from './models/response-args-of-payer-dto';
export { ResponseArgsOfShippingAddressDTO } from './models/response-args-of-shipping-address-dto';

View File

@@ -1,7 +1,7 @@
/* tslint:disable */
import { TouchedBase } from './touched-base';
import { GeoLocation } from './geo-location';
export interface AddressDTO extends TouchedBase {
export interface AddressDTO extends TouchedBase{
apartment?: string;
careOf?: string;
city?: string;

View File

@@ -1,7 +1,7 @@
/* tslint:disable */
import { TouchedBase } from './touched-base';
import { EntityDTOContainerOfPayerDTO } from './entity-dtocontainer-of-payer-dto';
export interface AssignedPayerDTO extends TouchedBase {
export interface AssignedPayerDTO extends TouchedBase{
assignedToCustomer?: string;
isDefault?: string;
payer?: EntityDTOContainerOfPayerDTO;

View File

@@ -1,7 +1,7 @@
/* tslint:disable */
import { EntityDTOBaseOfAttributeDTOAndIAttribute } from './entity-dtobase-of-attribute-dtoand-iattribute';
import { DataFormat } from './data-format';
export interface AttributeDTO extends EntityDTOBaseOfAttributeDTOAndIAttribute {
export interface AttributeDTO extends EntityDTOBaseOfAttributeDTOAndIAttribute{
dataType?: DataFormat;
formatValidator?: string;
group?: string;

View File

@@ -1,7 +1,7 @@
/* tslint:disable */
import { OrderByDTO } from './order-by-dto';
export interface AutocompleteTokenDTO {
filter?: { [key: string]: string };
filter?: {[key: string]: string};
fuzzy?: number;
input?: string;
orderBy?: Array<OrderByDTO>;

View File

@@ -1,7 +1,7 @@
/* tslint:disable */
import { EntityDTOBaseOfBonusCardDTOAndIBonusCard } from './entity-dtobase-of-bonus-card-dtoand-ibonus-card';
import { EntityDTOContainerOfCustomerDTO } from './entity-dtocontainer-of-customer-dto';
export interface BonusCardDTO extends EntityDTOBaseOfBonusCardDTOAndIBonusCard {
export interface BonusCardDTO extends EntityDTOBaseOfBonusCardDTOAndIBonusCard{
bonusValue?: number;
cardNumber?: string;
cardProvider?: number;

View File

@@ -6,6 +6,7 @@ import { Gender } from './gender';
* Kundenkarte
*/
export interface BonusCardInfoDTO {
/**
* Adresse
*/

View File

@@ -3,7 +3,7 @@ import { EntityDTOBaseOfBranchDTOAndIBranch } from './entity-dtobase-of-branch-d
import { AddressDTO } from './address-dto';
import { BranchType } from './branch-type';
import { EntityDTOContainerOfLabelDTO } from './entity-dtocontainer-of-label-dto';
export interface BranchDTO extends EntityDTOBaseOfBranchDTOAndIBranch {
export interface BranchDTO extends EntityDTOBaseOfBranchDTOAndIBranch{
address?: AddressDTO;
branchNumber?: string;
branchType: BranchType;

View File

@@ -1,2 +1,2 @@
/* tslint:disable */
export type BranchType = 0 | 1 | 2 | 4 | 8 | 16;
export type BranchType = 0 | 1 | 2 | 4 | 8 | 16;

View File

@@ -1,14 +0,0 @@
/* tslint:disable */
import { CustomerInfoDTO } from './customer-info-dto';
import { LoyaltyCardStatus } from './loyalty-card-status';
export interface CheckLoyaltyCardResult {
/**
* Customer
*/
customer?: CustomerInfoDTO;
/**
* Status
*/
status: LoyaltyCardStatus;
}

View File

@@ -1,6 +1,6 @@
/* tslint:disable */
import { TouchedBase } from './touched-base';
export interface CommunicationDetailsDTO extends TouchedBase {
export interface CommunicationDetailsDTO extends TouchedBase{
email?: string;
fax?: string;
mobile?: string;

View File

@@ -1,6 +1,6 @@
/* tslint:disable */
import { EntityDTOBaseOfCountryDTOAndICountry } from './entity-dtobase-of-country-dtoand-icountry';
export interface CountryDTO extends EntityDTOBaseOfCountryDTOAndICountry {
export interface CountryDTO extends EntityDTOBaseOfCountryDTOAndICountry{
isDefault?: string;
isO3166_A_3?: string;
name?: string;

View File

@@ -1,2 +1,2 @@
/* tslint:disable */
export type CRUDA = 0 | 1 | 2 | 4 | 8 | 16;
export type CRUDA = 0 | 1 | 2 | 4 | 8 | 16;

View File

@@ -18,7 +18,7 @@ import { AssignedPayerDTO } from './assigned-payer-dto';
import { PaymentType } from './payment-type';
import { EntityDTOContainerOfShippingAddressDTO } from './entity-dtocontainer-of-shipping-address-dto';
import { EntityDTOContainerOfUserDTO } from './entity-dtocontainer-of-user-dto';
export interface CustomerDTO extends EntityDTOBaseOfCustomerDTOAndICustomer {
export interface CustomerDTO extends EntityDTOBaseOfCustomerDTOAndICustomer{
address?: AddressDTO;
agentComment?: string;
attributes?: Array<EntityDTOContainerOfAttributeDTO>;

View File

@@ -11,7 +11,7 @@ import { Gender } from './gender';
import { EntityDTOContainerOfLabelDTO } from './entity-dtocontainer-of-label-dto';
import { NotificationChannel } from './notification-channel';
import { OrganisationDTO } from './organisation-dto';
export interface CustomerInfoDTO extends EntityDTOBaseOfCustomerInfoDTOAndICustomer {
export interface CustomerInfoDTO extends EntityDTOBaseOfCustomerInfoDTOAndICustomer{
address?: AddressDTO;
agentComment?: string;
bonusCard?: EntityDTOContainerOfBonusCardDTO;

View File

@@ -1,2 +1,2 @@
/* tslint:disable */
export type CustomerStatus = 0 | 1 | 2 | 4 | 8 | 16;
export type CustomerStatus = 0 | 1 | 2 | 4 | 8 | 16;

View File

@@ -1,2 +1,2 @@
/* tslint:disable */
export type CustomerType = 0 | 1 | 2 | 4 | 8 | 16 | 32;
export type CustomerType = 0 | 1 | 2 | 4 | 8 | 16 | 32;

View File

@@ -1,24 +1,2 @@
/* tslint:disable */
export type DataFormat =
| 0
| 1
| 2
| 4
| 8
| 16
| 32
| 64
| 128
| 256
| 512
| 1024
| 2048
| 4096
| 8192
| 16384
| 32768
| 65536
| 131072
| 262144
| 524288
| 1048576;
export type DataFormat = 0 | 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128 | 256 | 512 | 1024 | 2048 | 4096 | 8192 | 16384 | 32768 | 65536 | 131072 | 262144 | 524288 | 1048576;

View File

@@ -1,2 +1,2 @@
/* tslint:disable */
export type DialogContentType = 0 | 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128;
export type DialogContentType = 0 | 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128;

View File

@@ -1,2 +1,2 @@
/* tslint:disable */
export type DialogSettings = 0 | 1 | 2 | 4;
export type DialogSettings = 0 | 1 | 2 | 4;

View File

@@ -2,7 +2,7 @@
import { TouchedBase } from './touched-base';
import { CRUDA } from './cruda';
import { EntityStatus } from './entity-status';
export interface EntityDTO extends TouchedBase {
export interface EntityDTO extends TouchedBase{
changed?: string;
created?: string;
cruda?: CRUDA;

View File

@@ -1,3 +1,4 @@
/* tslint:disable */
import { EntityDTOBase } from './entity-dtobase';
export interface EntityDTOBaseOfAttributeDTOAndIAttribute extends EntityDTOBase {}
export interface EntityDTOBaseOfAttributeDTOAndIAttribute extends EntityDTOBase{
}

View File

@@ -1,3 +1,4 @@
/* tslint:disable */
import { EntityDTOBase } from './entity-dtobase';
export interface EntityDTOBaseOfBonusCardDTOAndIBonusCard extends EntityDTOBase {}
export interface EntityDTOBaseOfBonusCardDTOAndIBonusCard extends EntityDTOBase{
}

View File

@@ -1,3 +1,4 @@
/* tslint:disable */
import { EntityDTOBase } from './entity-dtobase';
export interface EntityDTOBaseOfBranchDTOAndIBranch extends EntityDTOBase {}
export interface EntityDTOBaseOfBranchDTOAndIBranch extends EntityDTOBase{
}

View File

@@ -1,3 +1,4 @@
/* tslint:disable */
import { EntityDTOBase } from './entity-dtobase';
export interface EntityDTOBaseOfCountryDTOAndICountry extends EntityDTOBase {}
export interface EntityDTOBaseOfCountryDTOAndICountry extends EntityDTOBase{
}

View File

@@ -1,3 +1,4 @@
/* tslint:disable */
import { EntityDTOBase } from './entity-dtobase';
export interface EntityDTOBaseOfCustomerDTOAndICustomer extends EntityDTOBase {}
export interface EntityDTOBaseOfCustomerDTOAndICustomer extends EntityDTOBase{
}

View File

@@ -1,3 +1,4 @@
/* tslint:disable */
import { EntityDTOBase } from './entity-dtobase';
export interface EntityDTOBaseOfCustomerInfoDTOAndICustomer extends EntityDTOBase {}
export interface EntityDTOBaseOfCustomerInfoDTOAndICustomer extends EntityDTOBase{
}

View File

@@ -1,3 +1,4 @@
/* tslint:disable */
import { EntityDTOBase } from './entity-dtobase';
export interface EntityDTOBaseOfLabelDTOAndILabel extends EntityDTOBase {}
export interface EntityDTOBaseOfLabelDTOAndILabel extends EntityDTOBase{
}

View File

@@ -1,3 +1,4 @@
/* tslint:disable */
import { EntityDTOBase } from './entity-dtobase';
export interface EntityDTOBaseOfPayerDTOAndIPayer extends EntityDTOBase {}
export interface EntityDTOBaseOfPayerDTOAndIPayer extends EntityDTOBase{
}

View File

@@ -1,3 +1,4 @@
/* tslint:disable */
import { EntityDTOBase } from './entity-dtobase';
export interface EntityDTOBaseOfShippingAddressDTOAndIShippingAddress extends EntityDTOBase {}
export interface EntityDTOBaseOfShippingAddressDTOAndIShippingAddress extends EntityDTOBase{
}

View File

@@ -1,3 +1,4 @@
/* tslint:disable */
import { EntityDTOBase } from './entity-dtobase';
export interface EntityDTOBaseOfUserDTOAndIUser extends EntityDTOBase {}
export interface EntityDTOBaseOfUserDTOAndIUser extends EntityDTOBase{
}

View File

@@ -1,3 +1,4 @@
/* tslint:disable */
import { EntityDTO } from './entity-dto';
export interface EntityDTOBase extends EntityDTO {}
export interface EntityDTOBase extends EntityDTO{
}

View File

@@ -1,6 +1,6 @@
/* tslint:disable */
import { EntityDTOReferenceContainer } from './entity-dtoreference-container';
import { AttributeDTO } from './attribute-dto';
export interface EntityDTOContainerOfAttributeDTO extends EntityDTOReferenceContainer {
export interface EntityDTOContainerOfAttributeDTO extends EntityDTOReferenceContainer{
data?: AttributeDTO;
}

View File

@@ -1,6 +1,6 @@
/* tslint:disable */
import { EntityDTOReferenceContainer } from './entity-dtoreference-container';
import { BonusCardDTO } from './bonus-card-dto';
export interface EntityDTOContainerOfBonusCardDTO extends EntityDTOReferenceContainer {
export interface EntityDTOContainerOfBonusCardDTO extends EntityDTOReferenceContainer{
data?: BonusCardDTO;
}

View File

@@ -1,6 +1,6 @@
/* tslint:disable */
import { EntityDTOReferenceContainer } from './entity-dtoreference-container';
import { BranchDTO } from './branch-dto';
export interface EntityDTOContainerOfBranchDTO extends EntityDTOReferenceContainer {
export interface EntityDTOContainerOfBranchDTO extends EntityDTOReferenceContainer{
data?: BranchDTO;
}

View File

@@ -1,6 +1,6 @@
/* tslint:disable */
import { EntityDTOReferenceContainer } from './entity-dtoreference-container';
import { CustomerDTO } from './customer-dto';
export interface EntityDTOContainerOfCustomerDTO extends EntityDTOReferenceContainer {
export interface EntityDTOContainerOfCustomerDTO extends EntityDTOReferenceContainer{
data?: CustomerDTO;
}

View File

@@ -1,6 +1,6 @@
/* tslint:disable */
import { EntityDTOReferenceContainer } from './entity-dtoreference-container';
import { LabelDTO } from './label-dto';
export interface EntityDTOContainerOfLabelDTO extends EntityDTOReferenceContainer {
export interface EntityDTOContainerOfLabelDTO extends EntityDTOReferenceContainer{
data?: LabelDTO;
}

View File

@@ -1,6 +1,6 @@
/* tslint:disable */
import { EntityDTOReferenceContainer } from './entity-dtoreference-container';
import { PayerDTO } from './payer-dto';
export interface EntityDTOContainerOfPayerDTO extends EntityDTOReferenceContainer {
export interface EntityDTOContainerOfPayerDTO extends EntityDTOReferenceContainer{
data?: PayerDTO;
}

View File

@@ -1,6 +1,6 @@
/* tslint:disable */
import { EntityDTOReferenceContainer } from './entity-dtoreference-container';
import { ShippingAddressDTO } from './shipping-address-dto';
export interface EntityDTOContainerOfShippingAddressDTO extends EntityDTOReferenceContainer {
export interface EntityDTOContainerOfShippingAddressDTO extends EntityDTOReferenceContainer{
data?: ShippingAddressDTO;
}

View File

@@ -1,6 +1,6 @@
/* tslint:disable */
import { EntityDTOReferenceContainer } from './entity-dtoreference-container';
import { UserDTO } from './user-dto';
export interface EntityDTOContainerOfUserDTO extends EntityDTOReferenceContainer {
export interface EntityDTOContainerOfUserDTO extends EntityDTOReferenceContainer{
data?: UserDTO;
}

View File

@@ -1,7 +1,7 @@
/* tslint:disable */
import { TouchedBase } from './touched-base';
import { ExternalReferenceDTO } from './external-reference-dto';
export interface EntityDTOReferenceContainer extends TouchedBase {
export interface EntityDTOReferenceContainer extends TouchedBase{
displayLabel?: string;
enabled?: boolean;
externalReference?: ExternalReferenceDTO;

View File

@@ -1,8 +0,0 @@
/* tslint:disable */
import { EntityDTOBase } from './entity-dtobase';
export interface EntityKeyValueDTOOfStringAndString extends EntityDTOBase {
enabled?: boolean;
key?: string;
selected?: boolean;
value?: string;
}

View File

@@ -1,2 +1,2 @@
/* tslint:disable */
export type EntityStatus = 0 | 1 | 2 | 4 | 8;
export type EntityStatus = 0 | 1 | 2 | 4 | 8;

View File

@@ -1,2 +1,2 @@
/* tslint:disable */
export type EnvironmentChannel = 0 | 1 | 2 | 4 | 8 | 16 | 32;
export type EnvironmentChannel = 0 | 1 | 2 | 4 | 8 | 16 | 32;

View File

@@ -1,7 +1,7 @@
/* tslint:disable */
import { TouchedBase } from './touched-base';
import { EntityStatus } from './entity-status';
export interface ExternalReferenceDTO extends TouchedBase {
export interface ExternalReferenceDTO extends TouchedBase{
externalChanged?: string;
externalCreated?: string;
externalNumber?: string;

View File

@@ -1,2 +1,2 @@
/* tslint:disable */
export type Gender = 0 | 1 | 2 | 4;
export type Gender = 0 | 1 | 2 | 4;

View File

@@ -1,6 +1,6 @@
/* tslint:disable */
import { TouchedBase } from './touched-base';
export interface GeoLocation extends TouchedBase {
export interface GeoLocation extends TouchedBase{
altitude?: number;
latitude?: number;
longitude?: number;

View File

@@ -1,2 +1,2 @@
/* tslint:disable */
export type InputType = 0 | 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128 | 256 | 512 | 1024 | 2048 | 3072 | 4096 | 8192 | 12288;
export type InputType = 0 | 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128 | 256 | 512 | 1024 | 2048 | 3072 | 4096 | 8192 | 12288;

View File

@@ -0,0 +1,8 @@
/* tslint:disable */
import { LoyaltyBookingInfoDTO } from './loyalty-booking-info-dto';
export interface IQueryResultOfLoyaltyBookingInfoDTO {
data?: Array<LoyaltyBookingInfoDTO>;
hits: number;
skip?: number;
take?: number;
}

View File

@@ -1,6 +1,6 @@
/* tslint:disable */
import { EntityDTOBaseOfLabelDTOAndILabel } from './entity-dtobase-of-label-dtoand-ilabel';
export interface LabelDTO extends EntityDTOBaseOfLabelDTOAndILabel {
export interface LabelDTO extends EntityDTOBaseOfLabelDTOAndILabel{
key?: string;
name?: string;
}

View File

@@ -1,6 +1,6 @@
/* tslint:disable */
import { ResponseArgsOfIEnumerableOfAssignedPayerDTO } from './response-args-of-ienumerable-of-assigned-payer-dto';
export interface ListResponseArgsOfAssignedPayerDTO extends ResponseArgsOfIEnumerableOfAssignedPayerDTO {
export interface ListResponseArgsOfAssignedPayerDTO extends ResponseArgsOfIEnumerableOfAssignedPayerDTO{
completed?: boolean;
hits?: number;
skip?: number;

View File

@@ -1,6 +1,6 @@
/* tslint:disable */
import { ResponseArgsOfIEnumerableOfCustomerInfoDTO } from './response-args-of-ienumerable-of-customer-info-dto';
export interface ListResponseArgsOfCustomerInfoDTO extends ResponseArgsOfIEnumerableOfCustomerInfoDTO {
export interface ListResponseArgsOfCustomerInfoDTO extends ResponseArgsOfIEnumerableOfCustomerInfoDTO{
completed?: boolean;
hits?: number;
skip?: number;

View File

@@ -1,6 +1,6 @@
/* tslint:disable */
import { ResponseArgsOfIEnumerableOfShippingAddressDTO } from './response-args-of-ienumerable-of-shipping-address-dto';
export interface ListResponseArgsOfShippingAddressDTO extends ResponseArgsOfIEnumerableOfShippingAddressDTO {
export interface ListResponseArgsOfShippingAddressDTO extends ResponseArgsOfIEnumerableOfShippingAddressDTO{
completed?: boolean;
hits?: number;
skip?: number;

View File

@@ -0,0 +1,13 @@
/* tslint:disable */
export interface LoyaltyBonValues {
/**
* Bon-Nr
*/
bonNr?: string;
/**
* Booking store (convercus store id)
*/
storeId?: string;
}

View File

@@ -0,0 +1,52 @@
/* tslint:disable */
/**
* Loyalty booking
*/
export interface LoyaltyBookingInfoDTO {
/**
* Amount
*/
amount?: number;
/**
* Booking date
*/
date?: string;
/**
* Location (eg. store name)
*/
location?: string;
/**
* Name
*/
name?: string;
/**
* Points
*/
points?: number;
/**
* Reason
*/
reason?: string;
/**
* Reference (eg. receipt no)
*/
reference?: string;
/**
* Booking type
*/
type?: string;
/**
* Booking type code
*/
typeCode?: string;
}

View File

@@ -0,0 +1,22 @@
/* tslint:disable */
/**
* Loyalty booking values
*/
export interface LoyaltyBookingValues {
/**
* Booking points
*/
points: number;
/**
* Booking Reason
*/
reason?: string;
/**
* Booking store (convercus store id)
*/
storeId?: string;
}

View File

@@ -1,6 +0,0 @@
/* tslint:disable */
/**
* Kundenkartenstatus
*/
export type LoyaltyCardStatus = 0 | 1 | 2 | 4 | 8;

View File

@@ -1,2 +1,2 @@
/* tslint:disable */
export type NotificationChannel = 0 | 1 | 2 | 4 | 8 | 16;
export type NotificationChannel = 0 | 1 | 2 | 4 | 8 | 16;

View File

@@ -1,6 +1,6 @@
/* tslint:disable */
import { OrganisationNamesDTO } from './organisation-names-dto';
export interface OrganisationDTO extends OrganisationNamesDTO {
export interface OrganisationDTO extends OrganisationNamesDTO{
costUnit?: string;
gln?: string;
sector?: string;

View File

@@ -1,6 +1,6 @@
/* tslint:disable */
import { TouchedBase } from './touched-base';
export interface OrganisationNamesDTO extends TouchedBase {
export interface OrganisationNamesDTO extends TouchedBase{
department?: string;
legalForm?: string;
name?: string;

View File

@@ -8,7 +8,7 @@ import { OrganisationDTO } from './organisation-dto';
import { PayerStatus } from './payer-status';
import { CustomerType } from './customer-type';
import { PaymentSettingsDTO } from './payment-settings-dto';
export interface PayerDTO extends EntityDTOBaseOfPayerDTOAndIPayer {
export interface PayerDTO extends EntityDTOBaseOfPayerDTOAndIPayer{
address?: AddressDTO;
agentComment?: string;
communicationDetails?: CommunicationDetailsDTO;

View File

@@ -1,2 +1,2 @@
/* tslint:disable */
export type PayerStatus = 0 | 1 | 2 | 4 | 8 | 16;
export type PayerStatus = 0 | 1 | 2 | 4 | 8 | 16;

View File

@@ -1,2 +1,2 @@
/* tslint:disable */
export type PaymentType = 0 | 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128 | 256 | 512 | 1024 | 2048 | 4096 | 8192 | 16384 | 32768;
export type PaymentType = 0 | 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128 | 256 | 512 | 1024 | 2048 | 4096 | 8192 | 16384 | 32768;

View File

@@ -1,7 +1,7 @@
/* tslint:disable */
export interface ProblemDetails {
detail?: string;
extensions: { [key: string]: any };
extensions: {[key: string]: any};
instance?: string;
status?: number;
title?: string;

View File

@@ -1,5 +1,5 @@
/* tslint:disable */
import { QueryTokenDTO2 } from './query-token-dto2';
export interface QueryTokenDTO extends QueryTokenDTO2 {
export interface QueryTokenDTO extends QueryTokenDTO2{
labelKey?: string;
}

View File

@@ -1,13 +1,13 @@
/* tslint:disable */
import { OrderByDTO } from './order-by-dto';
export interface QueryTokenDTO2 {
filter?: { [key: string]: string };
filter?: {[key: string]: string};
friendlyName?: string;
fuzzy?: number;
hitsOnly?: boolean;
ids?: Array<number>;
input?: { [key: string]: string };
options?: { [key: string]: string };
input?: {[key: string]: string};
options?: {[key: string]: string};
orderBy?: Array<OrderByDTO>;
skip?: number;
take?: number;

View File

@@ -1,6 +1,6 @@
/* tslint:disable */
import { ResponseArgs } from './response-args';
import { AssignedPayerDTO } from './assigned-payer-dto';
export interface ResponseArgsOfAssignedPayerDTO extends ResponseArgs {
export interface ResponseArgsOfAssignedPayerDTO extends ResponseArgs{
result?: AssignedPayerDTO;
}

View File

@@ -1,5 +1,5 @@
/* tslint:disable */
import { ResponseArgs } from './response-args';
export interface ResponseArgsOfBoolean extends ResponseArgs {
export interface ResponseArgsOfBoolean extends ResponseArgs{
result: boolean;
}

View File

@@ -1,6 +0,0 @@
/* tslint:disable */
import { ResponseArgs } from './response-args';
import { CheckLoyaltyCardResult } from './check-loyalty-card-result';
export interface ResponseArgsOfCheckLoyaltyCardResult extends ResponseArgs {
result?: CheckLoyaltyCardResult;
}

View File

@@ -1,6 +1,6 @@
/* tslint:disable */
import { ResponseArgs } from './response-args';
import { CustomerDTO } from './customer-dto';
export interface ResponseArgsOfCustomerDTO extends ResponseArgs {
export interface ResponseArgsOfCustomerDTO extends ResponseArgs{
result?: CustomerDTO;
}

View File

@@ -1,6 +1,6 @@
/* tslint:disable */
import { ResponseArgs } from './response-args';
import { AddressDTO } from './address-dto';
export interface ResponseArgsOfIEnumerableOfAddressDTO extends ResponseArgs {
export interface ResponseArgsOfIEnumerableOfAddressDTO extends ResponseArgs{
result?: Array<AddressDTO>;
}

View File

@@ -1,6 +1,6 @@
/* tslint:disable */
import { ResponseArgs } from './response-args';
import { AssignedPayerDTO } from './assigned-payer-dto';
export interface ResponseArgsOfIEnumerableOfAssignedPayerDTO extends ResponseArgs {
export interface ResponseArgsOfIEnumerableOfAssignedPayerDTO extends ResponseArgs{
result?: Array<AssignedPayerDTO>;
}

View File

@@ -1,6 +1,6 @@
/* tslint:disable */
import { ResponseArgs } from './response-args';
import { AutocompleteDTO } from './autocomplete-dto';
export interface ResponseArgsOfIEnumerableOfAutocompleteDTO extends ResponseArgs {
export interface ResponseArgsOfIEnumerableOfAutocompleteDTO extends ResponseArgs{
result?: Array<AutocompleteDTO>;
}

View File

@@ -1,6 +1,6 @@
/* tslint:disable */
import { ResponseArgs } from './response-args';
import { BonusCardInfoDTO } from './bonus-card-info-dto';
export interface ResponseArgsOfIEnumerableOfBonusCardInfoDTO extends ResponseArgs {
export interface ResponseArgsOfIEnumerableOfBonusCardInfoDTO extends ResponseArgs{
result?: Array<BonusCardInfoDTO>;
}

View File

@@ -1,6 +1,6 @@
/* tslint:disable */
import { ResponseArgs } from './response-args';
import { CountryDTO } from './country-dto';
export interface ResponseArgsOfIEnumerableOfCountryDTO extends ResponseArgs {
export interface ResponseArgsOfIEnumerableOfCountryDTO extends ResponseArgs{
result?: Array<CountryDTO>;
}

View File

@@ -1,6 +1,6 @@
/* tslint:disable */
import { ResponseArgs } from './response-args';
import { CustomerInfoDTO } from './customer-info-dto';
export interface ResponseArgsOfIEnumerableOfCustomerInfoDTO extends ResponseArgs {
export interface ResponseArgsOfIEnumerableOfCustomerInfoDTO extends ResponseArgs{
result?: Array<CustomerInfoDTO>;
}

View File

@@ -1,6 +0,0 @@
/* tslint:disable */
import { ResponseArgs } from './response-args';
import { EntityKeyValueDTOOfStringAndString } from './entity-key-value-dtoof-string-and-string';
export interface ResponseArgsOfIEnumerableOfEntityKeyValueDTOOfStringAndString extends ResponseArgs {
result?: Array<EntityKeyValueDTOOfStringAndString>;
}

View File

@@ -1,6 +1,6 @@
/* tslint:disable */
import { ResponseArgs } from './response-args';
import { HistoryDTO } from './history-dto';
export interface ResponseArgsOfIEnumerableOfHistoryDTO extends ResponseArgs {
export interface ResponseArgsOfIEnumerableOfHistoryDTO extends ResponseArgs{
result?: Array<HistoryDTO>;
}

View File

@@ -1,6 +1,6 @@
/* tslint:disable */
import { ResponseArgs } from './response-args';
import { ShippingAddressDTO } from './shipping-address-dto';
export interface ResponseArgsOfIEnumerableOfShippingAddressDTO extends ResponseArgs {
export interface ResponseArgsOfIEnumerableOfShippingAddressDTO extends ResponseArgs{
result?: Array<ShippingAddressDTO>;
}

View File

@@ -0,0 +1,5 @@
/* tslint:disable */
import { ResponseArgs } from './response-args';
export interface ResponseArgsOfIEnumerableOfString extends ResponseArgs{
result?: Array<string>;
}

View File

@@ -1,6 +1,6 @@
/* tslint:disable */
import { ResponseArgs } from './response-args';
import { InputDTO } from './input-dto';
export interface ResponseArgsOfInputDTO extends ResponseArgs {
export interface ResponseArgsOfInputDTO extends ResponseArgs{
result?: InputDTO;
}

View File

@@ -0,0 +1,6 @@
/* tslint:disable */
import { ResponseArgs } from './response-args';
import { IQueryResultOfLoyaltyBookingInfoDTO } from './iquery-result-of-loyalty-booking-info-dto';
export interface ResponseArgsOfIQueryResultOfLoyaltyBookingInfoDTO extends ResponseArgs{
result?: IQueryResultOfLoyaltyBookingInfoDTO;
}

View File

@@ -1,6 +1,6 @@
/* tslint:disable */
import { ResponseArgs } from './response-args';
import { KeyValueDTOOfStringAndString } from './key-value-dtoof-string-and-string';
export interface ResponseArgsOfIEnumerableOfKeyValueDTOOfStringAndString extends ResponseArgs {
result?: Array<KeyValueDTOOfStringAndString>;
export interface ResponseArgsOfKeyValueDTOOfStringAndString extends ResponseArgs{
result?: KeyValueDTOOfStringAndString;
}

View File

@@ -0,0 +1,6 @@
/* tslint:disable */
import { ResponseArgs } from './response-args';
import { LoyaltyBookingInfoDTO } from './loyalty-booking-info-dto';
export interface ResponseArgsOfLoyaltyBookingInfoDTO extends ResponseArgs{
result?: LoyaltyBookingInfoDTO;
}

View File

@@ -1,5 +1,5 @@
/* tslint:disable */
import { ResponseArgs } from './response-args';
export interface ResponseArgsOfNullableBoolean extends ResponseArgs {
export interface ResponseArgsOfNullableBoolean extends ResponseArgs{
result?: boolean;
}

View File

@@ -1,6 +1,6 @@
/* tslint:disable */
import { ResponseArgs } from './response-args';
import { PayerDTO } from './payer-dto';
export interface ResponseArgsOfPayerDTO extends ResponseArgs {
export interface ResponseArgsOfPayerDTO extends ResponseArgs{
result?: PayerDTO;
}

View File

@@ -1,6 +1,6 @@
/* tslint:disable */
import { ResponseArgs } from './response-args';
import { QuerySettingsDTO } from './query-settings-dto';
export interface ResponseArgsOfQuerySettingsDTO extends ResponseArgs {
export interface ResponseArgsOfQuerySettingsDTO extends ResponseArgs{
result?: QuerySettingsDTO;
}

View File

@@ -1,6 +1,6 @@
/* tslint:disable */
import { ResponseArgs } from './response-args';
import { ShippingAddressDTO } from './shipping-address-dto';
export interface ResponseArgsOfShippingAddressDTO extends ResponseArgs {
export interface ResponseArgsOfShippingAddressDTO extends ResponseArgs{
result?: ShippingAddressDTO;
}

View File

@@ -3,7 +3,7 @@ import { DialogOfString } from './dialog-of-string';
export interface ResponseArgs {
dialog?: DialogOfString;
error: boolean;
invalidProperties?: { [key: string]: string };
invalidProperties?: {[key: string]: string};
message?: string;
requestId?: number;
}

View File

@@ -5,7 +5,7 @@ import { CommunicationDetailsDTO } from './communication-details-dto';
import { Gender } from './gender';
import { OrganisationDTO } from './organisation-dto';
import { ShippingAddressType } from './shipping-address-type';
export interface ShippingAddressDTO extends EntityDTOBaseOfShippingAddressDTOAndIShippingAddress {
export interface ShippingAddressDTO extends EntityDTOBaseOfShippingAddressDTOAndIShippingAddress{
address?: AddressDTO;
agentComment?: string;
communicationDetails?: CommunicationDetailsDTO;

View File

@@ -1,2 +1,2 @@
/* tslint:disable */
export type ShippingAddressType = 0 | 1 | 2;
export type ShippingAddressType = 0 | 1 | 2;

View File

@@ -1,2 +1,3 @@
/* tslint:disable */
export interface TouchedBase {}
export interface TouchedBase {
}

View File

@@ -1,7 +1,7 @@
/* tslint:disable */
import { EntityDTOBaseOfUserDTOAndIUser } from './entity-dtobase-of-user-dtoand-iuser';
import { Gender } from './gender';
export interface UserDTO extends EntityDTOBaseOfUserDTOAndIUser {
export interface UserDTO extends EntityDTOBaseOfUserDTOAndIUser{
email?: string;
firstName?: string;
gender: Gender;

View File

@@ -15,7 +15,10 @@ import { AddressDTO } from '../models/address-dto';
class AddressService extends __BaseService {
static readonly AddressValidateAddressPath = '/customer/address/validate';
constructor(config: __Configuration, http: HttpClient) {
constructor(
config: __Configuration,
http: HttpClient
) {
super(config, http);
}
@@ -31,17 +34,21 @@ class AddressService extends __BaseService {
let __headers = new HttpHeaders();
let __body: any = null;
__body = address;
let req = new HttpRequest<any>('POST', this.rootUrl + `/customer/address/validate`, __body, {
headers: __headers,
params: __params,
responseType: 'json',
});
let req = new HttpRequest<any>(
'POST',
this.rootUrl + `/customer/address/validate`,
__body,
{
headers: __headers,
params: __params,
responseType: 'json'
});
return this.http.request<any>(req).pipe(
__filter((_r) => _r instanceof HttpResponse),
__filter(_r => _r instanceof HttpResponse),
__map((_r) => {
return _r as __StrictHttpResponse<ResponseArgsOfIEnumerableOfAddressDTO>;
}),
})
);
}
/**
@@ -52,10 +59,13 @@ class AddressService extends __BaseService {
* @param address AdressDTO mit city, zipCode, street, streetNumber, country
*/
AddressValidateAddress(address: AddressDTO): __Observable<ResponseArgsOfIEnumerableOfAddressDTO> {
return this.AddressValidateAddressResponse(address).pipe(__map((_r) => _r.body as ResponseArgsOfIEnumerableOfAddressDTO));
return this.AddressValidateAddressResponse(address).pipe(
__map(_r => _r.body as ResponseArgsOfIEnumerableOfAddressDTO)
);
}
}
module AddressService {}
module AddressService {
}
export { AddressService };
export { AddressService }

View File

@@ -14,7 +14,10 @@ import { ResponseArgsOfIEnumerableOfCountryDTO } from '../models/response-args-o
class CountryService extends __BaseService {
static readonly CountryGetCountriesPath = '/customer/countries';
constructor(config: __Configuration, http: HttpClient) {
constructor(
config: __Configuration,
http: HttpClient
) {
super(config, http);
}
@@ -28,26 +31,28 @@ class CountryService extends __BaseService {
*
* - `locale`: Lokalisierung
*/
CountryGetCountriesResponse(
params: CountryService.CountryGetCountriesParams,
): __Observable<__StrictHttpResponse<ResponseArgsOfIEnumerableOfCountryDTO>> {
CountryGetCountriesResponse(params: CountryService.CountryGetCountriesParams): __Observable<__StrictHttpResponse<ResponseArgsOfIEnumerableOfCountryDTO>> {
let __params = this.newParams();
let __headers = new HttpHeaders();
let __body: any = null;
if (params.take != null) __params = __params.set('take', params.take.toString());
if (params.skip != null) __params = __params.set('skip', params.skip.toString());
if (params.locale != null) __params = __params.set('locale', params.locale.toString());
let req = new HttpRequest<any>('GET', this.rootUrl + `/customer/countries`, __body, {
headers: __headers,
params: __params,
responseType: 'json',
});
let req = new HttpRequest<any>(
'GET',
this.rootUrl + `/customer/countries`,
__body,
{
headers: __headers,
params: __params,
responseType: 'json'
});
return this.http.request<any>(req).pipe(
__filter((_r) => _r instanceof HttpResponse),
__filter(_r => _r instanceof HttpResponse),
__map((_r) => {
return _r as __StrictHttpResponse<ResponseArgsOfIEnumerableOfCountryDTO>;
}),
})
);
}
/**
@@ -61,11 +66,14 @@ class CountryService extends __BaseService {
* - `locale`: Lokalisierung
*/
CountryGetCountries(params: CountryService.CountryGetCountriesParams): __Observable<ResponseArgsOfIEnumerableOfCountryDTO> {
return this.CountryGetCountriesResponse(params).pipe(__map((_r) => _r.body as ResponseArgsOfIEnumerableOfCountryDTO));
return this.CountryGetCountriesResponse(params).pipe(
__map(_r => _r.body as ResponseArgsOfIEnumerableOfCountryDTO)
);
}
}
module CountryService {
/**
* Parameters for CountryGetCountries
*/
@@ -80,4 +88,4 @@ module CountryService {
}
}
export { CountryService };
export { CountryService }

View File

@@ -45,7 +45,10 @@ class CustomerService extends __BaseService {
static readonly CustomerModifyPayerReferencePath = '/customer/{customerId}/payer/{payerId}/modifydefaultflag';
static readonly CustomerGetCustomerHistoryPath = '/customer/{customerId}/history';
constructor(config: __Configuration, http: HttpClient) {
constructor(
config: __Configuration,
http: HttpClient
) {
super(config, http);
}
@@ -57,25 +60,27 @@ class CustomerService extends __BaseService {
*
* - `locale`: Lokalisierung
*/
CustomerCanExtendCustomerResponse(
params: CustomerService.CustomerCanExtendCustomerParams,
): __Observable<__StrictHttpResponse<ResponseArgsOfInputDTO>> {
CustomerCanExtendCustomerResponse(params: CustomerService.CustomerCanExtendCustomerParams): __Observable<__StrictHttpResponse<ResponseArgsOfInputDTO>> {
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))}/canextend`, __body, {
headers: __headers,
params: __params,
responseType: 'json',
});
let req = new HttpRequest<any>(
'GET',
this.rootUrl + `/customer/${encodeURIComponent(String(params.customerId))}/canextend`,
__body,
{
headers: __headers,
params: __params,
responseType: 'json'
});
return this.http.request<any>(req).pipe(
__filter((_r) => _r instanceof HttpResponse),
__filter(_r => _r instanceof HttpResponse),
__map((_r) => {
return _r as __StrictHttpResponse<ResponseArgsOfInputDTO>;
}),
})
);
}
/**
@@ -87,7 +92,9 @@ class CustomerService extends __BaseService {
* - `locale`: Lokalisierung
*/
CustomerCanExtendCustomer(params: CustomerService.CustomerCanExtendCustomerParams): __Observable<ResponseArgsOfInputDTO> {
return this.CustomerCanExtendCustomerResponse(params).pipe(__map((_r) => _r.body as ResponseArgsOfInputDTO));
return this.CustomerCanExtendCustomerResponse(params).pipe(
__map(_r => _r.body as ResponseArgsOfInputDTO)
);
}
/**
@@ -97,54 +104,64 @@ class CustomerService extends __BaseService {
let __params = this.newParams();
let __headers = new HttpHeaders();
let __body: any = null;
let req = new HttpRequest<any>('GET', this.rootUrl + `/customer/s/settings`, __body, {
headers: __headers,
params: __params,
responseType: 'json',
});
let req = new HttpRequest<any>(
'GET',
this.rootUrl + `/customer/s/settings`,
__body,
{
headers: __headers,
params: __params,
responseType: 'json'
});
return this.http.request<any>(req).pipe(
__filter((_r) => _r instanceof HttpResponse),
__filter(_r => _r instanceof HttpResponse),
__map((_r) => {
return _r as __StrictHttpResponse<ResponseArgsOfQuerySettingsDTO>;
}),
})
);
}
/**
* Wareneingang-Filter
*/
CustomerCustomerQuerySettings(): __Observable<ResponseArgsOfQuerySettingsDTO> {
return this.CustomerCustomerQuerySettingsResponse().pipe(__map((_r) => _r.body as ResponseArgsOfQuerySettingsDTO));
return this.CustomerCustomerQuerySettingsResponse().pipe(
__map(_r => _r.body as ResponseArgsOfQuerySettingsDTO)
);
}
/**
* @param payload undefined
*/
CustomerCustomerAutocompleteResponse(
payload: AutocompleteTokenDTO,
): __Observable<__StrictHttpResponse<ResponseArgsOfIEnumerableOfAutocompleteDTO>> {
CustomerCustomerAutocompleteResponse(payload: AutocompleteTokenDTO): __Observable<__StrictHttpResponse<ResponseArgsOfIEnumerableOfAutocompleteDTO>> {
let __params = this.newParams();
let __headers = new HttpHeaders();
let __body: any = null;
__body = payload;
let req = new HttpRequest<any>('POST', this.rootUrl + `/customer/s/complete`, __body, {
headers: __headers,
params: __params,
responseType: 'json',
});
let req = new HttpRequest<any>(
'POST',
this.rootUrl + `/customer/s/complete`,
__body,
{
headers: __headers,
params: __params,
responseType: 'json'
});
return this.http.request<any>(req).pipe(
__filter((_r) => _r instanceof HttpResponse),
__filter(_r => _r instanceof HttpResponse),
__map((_r) => {
return _r as __StrictHttpResponse<ResponseArgsOfIEnumerableOfAutocompleteDTO>;
}),
})
);
}
/**
* @param payload undefined
*/
CustomerCustomerAutocomplete(payload: AutocompleteTokenDTO): __Observable<ResponseArgsOfIEnumerableOfAutocompleteDTO> {
return this.CustomerCustomerAutocompleteResponse(payload).pipe(__map((_r) => _r.body as ResponseArgsOfIEnumerableOfAutocompleteDTO));
return this.CustomerCustomerAutocompleteResponse(payload).pipe(
__map(_r => _r.body as ResponseArgsOfIEnumerableOfAutocompleteDTO)
);
}
/**
@@ -156,17 +173,21 @@ class CustomerService extends __BaseService {
let __headers = new HttpHeaders();
let __body: any = null;
__body = queryToken;
let req = new HttpRequest<any>('POST', this.rootUrl + `/customer/s`, __body, {
headers: __headers,
params: __params,
responseType: 'json',
});
let req = new HttpRequest<any>(
'POST',
this.rootUrl + `/customer/s`,
__body,
{
headers: __headers,
params: __params,
responseType: 'json'
});
return this.http.request<any>(req).pipe(
__filter((_r) => _r instanceof HttpResponse),
__filter(_r => _r instanceof HttpResponse),
__map((_r) => {
return _r as __StrictHttpResponse<ListResponseArgsOfCustomerInfoDTO>;
}),
})
);
}
/**
@@ -174,7 +195,9 @@ class CustomerService extends __BaseService {
* @param queryToken Suchkriterien
*/
CustomerListCustomers(queryToken: QueryTokenDTO): __Observable<ListResponseArgsOfCustomerInfoDTO> {
return this.CustomerListCustomersResponse(queryToken).pipe(__map((_r) => _r.body as ListResponseArgsOfCustomerInfoDTO));
return this.CustomerListCustomersResponse(queryToken).pipe(
__map(_r => _r.body as ListResponseArgsOfCustomerInfoDTO)
);
}
/**
@@ -185,25 +208,27 @@ class CustomerService extends __BaseService {
*
* - `eagerLoading`: eagerLoading
*/
CustomerGetCustomerResponse(
params: CustomerService.CustomerGetCustomerParams,
): __Observable<__StrictHttpResponse<ResponseArgsOfCustomerDTO>> {
CustomerGetCustomerResponse(params: CustomerService.CustomerGetCustomerParams): __Observable<__StrictHttpResponse<ResponseArgsOfCustomerDTO>> {
let __params = this.newParams();
let __headers = new HttpHeaders();
let __body: any = null;
if (params.eagerLoading != null) __params = __params.set('eagerLoading', params.eagerLoading.toString());
let req = new HttpRequest<any>('GET', this.rootUrl + `/customer/${encodeURIComponent(String(params.customerId))}`, __body, {
headers: __headers,
params: __params,
responseType: 'json',
});
let req = new HttpRequest<any>(
'GET',
this.rootUrl + `/customer/${encodeURIComponent(String(params.customerId))}`,
__body,
{
headers: __headers,
params: __params,
responseType: 'json'
});
return this.http.request<any>(req).pipe(
__filter((_r) => _r instanceof HttpResponse),
__filter(_r => _r instanceof HttpResponse),
__map((_r) => {
return _r as __StrictHttpResponse<ResponseArgsOfCustomerDTO>;
}),
})
);
}
/**
@@ -215,7 +240,9 @@ class CustomerService extends __BaseService {
* - `eagerLoading`: eagerLoading
*/
CustomerGetCustomer(params: CustomerService.CustomerGetCustomerParams): __Observable<ResponseArgsOfCustomerDTO> {
return this.CustomerGetCustomerResponse(params).pipe(__map((_r) => _r.body as ResponseArgsOfCustomerDTO));
return this.CustomerGetCustomerResponse(params).pipe(
__map(_r => _r.body as ResponseArgsOfCustomerDTO)
);
}
/**
@@ -226,25 +253,27 @@ class CustomerService extends __BaseService {
*
* - `customerId`: Kunde PK
*/
CustomerUpdateCustomerResponse(
params: CustomerService.CustomerUpdateCustomerParams,
): __Observable<__StrictHttpResponse<ResponseArgsOfCustomerDTO>> {
CustomerUpdateCustomerResponse(params: CustomerService.CustomerUpdateCustomerParams): __Observable<__StrictHttpResponse<ResponseArgsOfCustomerDTO>> {
let __params = this.newParams();
let __headers = new HttpHeaders();
let __body: any = null;
__body = params.payload;
let req = new HttpRequest<any>('PUT', this.rootUrl + `/customer/${encodeURIComponent(String(params.customerId))}`, __body, {
headers: __headers,
params: __params,
responseType: 'json',
});
let req = new HttpRequest<any>(
'PUT',
this.rootUrl + `/customer/${encodeURIComponent(String(params.customerId))}`,
__body,
{
headers: __headers,
params: __params,
responseType: 'json'
});
return this.http.request<any>(req).pipe(
__filter((_r) => _r instanceof HttpResponse),
__filter(_r => _r instanceof HttpResponse),
__map((_r) => {
return _r as __StrictHttpResponse<ResponseArgsOfCustomerDTO>;
}),
})
);
}
/**
@@ -256,7 +285,9 @@ class CustomerService extends __BaseService {
* - `customerId`: Kunde PK
*/
CustomerUpdateCustomer(params: CustomerService.CustomerUpdateCustomerParams): __Observable<ResponseArgsOfCustomerDTO> {
return this.CustomerUpdateCustomerResponse(params).pipe(__map((_r) => _r.body as ResponseArgsOfCustomerDTO));
return this.CustomerUpdateCustomerResponse(params).pipe(
__map(_r => _r.body as ResponseArgsOfCustomerDTO)
);
}
/**
@@ -269,26 +300,28 @@ class CustomerService extends __BaseService {
*
* - `eagerLoading`:
*/
CustomerPatchCustomerResponse(
params: CustomerService.CustomerPatchCustomerParams,
): __Observable<__StrictHttpResponse<ResponseArgsOfCustomerDTO>> {
CustomerPatchCustomerResponse(params: CustomerService.CustomerPatchCustomerParams): __Observable<__StrictHttpResponse<ResponseArgsOfCustomerDTO>> {
let __params = this.newParams();
let __headers = new HttpHeaders();
let __body: any = null;
__body = params.customer;
if (params.eagerLoading != null) __params = __params.set('eagerLoading', params.eagerLoading.toString());
let req = new HttpRequest<any>('PATCH', this.rootUrl + `/customer/${encodeURIComponent(String(params.customerId))}`, __body, {
headers: __headers,
params: __params,
responseType: 'json',
});
let req = new HttpRequest<any>(
'PATCH',
this.rootUrl + `/customer/${encodeURIComponent(String(params.customerId))}`,
__body,
{
headers: __headers,
params: __params,
responseType: 'json'
});
return this.http.request<any>(req).pipe(
__filter((_r) => _r instanceof HttpResponse),
__filter(_r => _r instanceof HttpResponse),
__map((_r) => {
return _r as __StrictHttpResponse<ResponseArgsOfCustomerDTO>;
}),
})
);
}
/**
@@ -302,7 +335,9 @@ class CustomerService extends __BaseService {
* - `eagerLoading`:
*/
CustomerPatchCustomer(params: CustomerService.CustomerPatchCustomerParams): __Observable<ResponseArgsOfCustomerDTO> {
return this.CustomerPatchCustomerResponse(params).pipe(__map((_r) => _r.body as ResponseArgsOfCustomerDTO));
return this.CustomerPatchCustomerResponse(params).pipe(
__map(_r => _r.body as ResponseArgsOfCustomerDTO)
);
}
/**
@@ -315,25 +350,27 @@ class CustomerService extends __BaseService {
*
* - `deletionComment`: Grund des Löschens
*/
CustomerDeleteCustomerResponse(
params: CustomerService.CustomerDeleteCustomerParams,
): __Observable<__StrictHttpResponse<ResponseArgsOfBoolean>> {
CustomerDeleteCustomerResponse(params: CustomerService.CustomerDeleteCustomerParams): __Observable<__StrictHttpResponse<ResponseArgsOfBoolean>> {
let __params = this.newParams();
let __headers = new HttpHeaders();
let __body: any = null;
if (params.deletionComment != null) __params = __params.set('deletionComment', params.deletionComment.toString());
let req = new HttpRequest<any>('DELETE', this.rootUrl + `/customer/${encodeURIComponent(String(params.customerId))}`, __body, {
headers: __headers,
params: __params,
responseType: 'json',
});
let req = new HttpRequest<any>(
'DELETE',
this.rootUrl + `/customer/${encodeURIComponent(String(params.customerId))}`,
__body,
{
headers: __headers,
params: __params,
responseType: 'json'
});
return this.http.request<any>(req).pipe(
__filter((_r) => _r instanceof HttpResponse),
__filter(_r => _r instanceof HttpResponse),
__map((_r) => {
return _r as __StrictHttpResponse<ResponseArgsOfBoolean>;
}),
})
);
}
/**
@@ -347,7 +384,9 @@ class CustomerService extends __BaseService {
* - `deletionComment`: Grund des Löschens
*/
CustomerDeleteCustomer(params: CustomerService.CustomerDeleteCustomerParams): __Observable<ResponseArgsOfBoolean> {
return this.CustomerDeleteCustomerResponse(params).pipe(__map((_r) => _r.body as ResponseArgsOfBoolean));
return this.CustomerDeleteCustomerResponse(params).pipe(
__map(_r => _r.body as ResponseArgsOfBoolean)
);
}
/**
@@ -359,17 +398,21 @@ class CustomerService extends __BaseService {
let __headers = new HttpHeaders();
let __body: any = null;
__body = payload;
let req = new HttpRequest<any>('POST', this.rootUrl + `/customer`, __body, {
headers: __headers,
params: __params,
responseType: 'json',
});
let req = new HttpRequest<any>(
'POST',
this.rootUrl + `/customer`,
__body,
{
headers: __headers,
params: __params,
responseType: 'json'
});
return this.http.request<any>(req).pipe(
__filter((_r) => _r instanceof HttpResponse),
__filter(_r => _r instanceof HttpResponse),
__map((_r) => {
return _r as __StrictHttpResponse<ResponseArgsOfCustomerDTO>;
}),
})
);
}
/**
@@ -377,7 +420,9 @@ class CustomerService extends __BaseService {
* @param payload Kundendaten
*/
CustomerCreateCustomer(payload: SaveCustomerValues): __Observable<ResponseArgsOfCustomerDTO> {
return this.CustomerCreateCustomerResponse(payload).pipe(__map((_r) => _r.body as ResponseArgsOfCustomerDTO));
return this.CustomerCreateCustomerResponse(payload).pipe(
__map(_r => _r.body as ResponseArgsOfCustomerDTO)
);
}
/**
@@ -392,9 +437,7 @@ class CustomerService extends __BaseService {
*
* - `eagerLoading`: eagerLoading (optional, default: 1)
*/
CustomerAddPayerReferenceResponse(
params: CustomerService.CustomerAddPayerReferenceParams,
): __Observable<__StrictHttpResponse<ResponseArgsOfAssignedPayerDTO>> {
CustomerAddPayerReferenceResponse(params: CustomerService.CustomerAddPayerReferenceParams): __Observable<__StrictHttpResponse<ResponseArgsOfAssignedPayerDTO>> {
let __params = this.newParams();
let __headers = new HttpHeaders();
let __body: any = null;
@@ -402,17 +445,21 @@ class CustomerService extends __BaseService {
if (params.payerId != null) __params = __params.set('payerId', params.payerId.toString());
if (params.isDefault != null) __params = __params.set('isDefault', params.isDefault.toString());
if (params.eagerLoading != null) __params = __params.set('eagerLoading', params.eagerLoading.toString());
let req = new HttpRequest<any>('POST', this.rootUrl + `/customer/${encodeURIComponent(String(params.customerId))}/payer`, __body, {
headers: __headers,
params: __params,
responseType: 'json',
});
let req = new HttpRequest<any>(
'POST',
this.rootUrl + `/customer/${encodeURIComponent(String(params.customerId))}/payer`,
__body,
{
headers: __headers,
params: __params,
responseType: 'json'
});
return this.http.request<any>(req).pipe(
__filter((_r) => _r instanceof HttpResponse),
__filter(_r => _r instanceof HttpResponse),
__map((_r) => {
return _r as __StrictHttpResponse<ResponseArgsOfAssignedPayerDTO>;
}),
})
);
}
/**
@@ -428,7 +475,9 @@ class CustomerService extends __BaseService {
* - `eagerLoading`: eagerLoading (optional, default: 1)
*/
CustomerAddPayerReference(params: CustomerService.CustomerAddPayerReferenceParams): __Observable<ResponseArgsOfAssignedPayerDTO> {
return this.CustomerAddPayerReferenceResponse(params).pipe(__map((_r) => _r.body as ResponseArgsOfAssignedPayerDTO));
return this.CustomerAddPayerReferenceResponse(params).pipe(
__map(_r => _r.body as ResponseArgsOfAssignedPayerDTO)
);
}
/**
@@ -439,9 +488,7 @@ class CustomerService extends __BaseService {
*
* - `deactivationComment`: Deaktivierungsgrund
*/
CustomerDeactivateCustomerResponse(
params: CustomerService.CustomerDeactivateCustomerParams,
): __Observable<__StrictHttpResponse<ResponseArgsOfBoolean>> {
CustomerDeactivateCustomerResponse(params: CustomerService.CustomerDeactivateCustomerParams): __Observable<__StrictHttpResponse<ResponseArgsOfBoolean>> {
let __params = this.newParams();
let __headers = new HttpHeaders();
let __body: any = null;
@@ -454,15 +501,14 @@ class CustomerService extends __BaseService {
{
headers: __headers,
params: __params,
responseType: 'json',
},
);
responseType: 'json'
});
return this.http.request<any>(req).pipe(
__filter((_r) => _r instanceof HttpResponse),
__filter(_r => _r instanceof HttpResponse),
__map((_r) => {
return _r as __StrictHttpResponse<ResponseArgsOfBoolean>;
}),
})
);
}
/**
@@ -474,31 +520,35 @@ class CustomerService extends __BaseService {
* - `deactivationComment`: Deaktivierungsgrund
*/
CustomerDeactivateCustomer(params: CustomerService.CustomerDeactivateCustomerParams): __Observable<ResponseArgsOfBoolean> {
return this.CustomerDeactivateCustomerResponse(params).pipe(__map((_r) => _r.body as ResponseArgsOfBoolean));
return this.CustomerDeactivateCustomerResponse(params).pipe(
__map(_r => _r.body as ResponseArgsOfBoolean)
);
}
/**
* Kundenkartenscan
* @param input Scanner input
*/
CustomerGetCustomerByBonuscardResponse(
input?: null | string,
): __Observable<__StrictHttpResponse<ResponseArgsOfIEnumerableOfCustomerInfoDTO>> {
CustomerGetCustomerByBonuscardResponse(input?: null | string): __Observable<__StrictHttpResponse<ResponseArgsOfIEnumerableOfCustomerInfoDTO>> {
let __params = this.newParams();
let __headers = new HttpHeaders();
let __body: any = null;
if (input != null) __params = __params.set('input', input.toString());
let req = new HttpRequest<any>('GET', this.rootUrl + `/customer/bonuscard/scan`, __body, {
headers: __headers,
params: __params,
responseType: 'json',
});
let req = new HttpRequest<any>(
'GET',
this.rootUrl + `/customer/bonuscard/scan`,
__body,
{
headers: __headers,
params: __params,
responseType: 'json'
});
return this.http.request<any>(req).pipe(
__filter((_r) => _r instanceof HttpResponse),
__filter(_r => _r instanceof HttpResponse),
__map((_r) => {
return _r as __StrictHttpResponse<ResponseArgsOfIEnumerableOfCustomerInfoDTO>;
}),
})
);
}
/**
@@ -506,7 +556,9 @@ class CustomerService extends __BaseService {
* @param input Scanner input
*/
CustomerGetCustomerByBonuscard(input?: null | string): __Observable<ResponseArgsOfIEnumerableOfCustomerInfoDTO> {
return this.CustomerGetCustomerByBonuscardResponse(input).pipe(__map((_r) => _r.body as ResponseArgsOfIEnumerableOfCustomerInfoDTO));
return this.CustomerGetCustomerByBonuscardResponse(input).pipe(
__map(_r => _r.body as ResponseArgsOfIEnumerableOfCustomerInfoDTO)
);
}
/**
@@ -518,17 +570,21 @@ class CustomerService extends __BaseService {
let __headers = new HttpHeaders();
let __body: any = null;
let req = new HttpRequest<any>('GET', this.rootUrl + `/customer/${encodeURIComponent(String(customerId))}/bonuscard`, __body, {
headers: __headers,
params: __params,
responseType: 'json',
});
let req = new HttpRequest<any>(
'GET',
this.rootUrl + `/customer/${encodeURIComponent(String(customerId))}/bonuscard`,
__body,
{
headers: __headers,
params: __params,
responseType: 'json'
});
return this.http.request<any>(req).pipe(
__filter((_r) => _r instanceof HttpResponse),
__filter(_r => _r instanceof HttpResponse),
__map((_r) => {
return _r as __StrictHttpResponse<ResponseArgsOfIEnumerableOfBonusCardInfoDTO>;
}),
})
);
}
/**
@@ -536,7 +592,9 @@ class CustomerService extends __BaseService {
* @param customerId PK Kunde
*/
CustomerGetBonuscards(customerId: number): __Observable<ResponseArgsOfIEnumerableOfBonusCardInfoDTO> {
return this.CustomerGetBonuscardsResponse(customerId).pipe(__map((_r) => _r.body as ResponseArgsOfIEnumerableOfBonusCardInfoDTO));
return this.CustomerGetBonuscardsResponse(customerId).pipe(
__map(_r => _r.body as ResponseArgsOfIEnumerableOfBonusCardInfoDTO)
);
}
/**
@@ -548,17 +606,21 @@ class CustomerService extends __BaseService {
let __headers = new HttpHeaders();
let __body: any = null;
if (email != null) __params = __params.set('email', email.toString());
let req = new HttpRequest<any>('GET', this.rootUrl + `/store/customer/emailexists`, __body, {
headers: __headers,
params: __params,
responseType: 'json',
});
let req = new HttpRequest<any>(
'GET',
this.rootUrl + `/store/customer/emailexists`,
__body,
{
headers: __headers,
params: __params,
responseType: 'json'
});
return this.http.request<any>(req).pipe(
__filter((_r) => _r instanceof HttpResponse),
__filter(_r => _r instanceof HttpResponse),
__map((_r) => {
return _r as __StrictHttpResponse<ResponseArgsOfNullableBoolean>;
}),
})
);
}
/**
@@ -566,7 +628,9 @@ class CustomerService extends __BaseService {
* @param email E-Mail Adresse
*/
CustomerEmailExists(email?: null | string): __Observable<ResponseArgsOfNullableBoolean> {
return this.CustomerEmailExistsResponse(email).pipe(__map((_r) => _r.body as ResponseArgsOfNullableBoolean));
return this.CustomerEmailExistsResponse(email).pipe(
__map(_r => _r.body as ResponseArgsOfNullableBoolean)
);
}
/**
@@ -578,9 +642,7 @@ class CustomerService extends __BaseService {
*
* - `skip`:
*/
CustomerGetAssignedPayersByCustomerIdResponse(
params: CustomerService.CustomerGetAssignedPayersByCustomerIdParams,
): __Observable<__StrictHttpResponse<ListResponseArgsOfAssignedPayerDTO>> {
CustomerGetAssignedPayersByCustomerIdResponse(params: CustomerService.CustomerGetAssignedPayersByCustomerIdParams): __Observable<__StrictHttpResponse<ListResponseArgsOfAssignedPayerDTO>> {
let __params = this.newParams();
let __headers = new HttpHeaders();
let __body: any = null;
@@ -594,15 +656,14 @@ class CustomerService extends __BaseService {
{
headers: __headers,
params: __params,
responseType: 'json',
},
);
responseType: 'json'
});
return this.http.request<any>(req).pipe(
__filter((_r) => _r instanceof HttpResponse),
__filter(_r => _r instanceof HttpResponse),
__map((_r) => {
return _r as __StrictHttpResponse<ListResponseArgsOfAssignedPayerDTO>;
}),
})
);
}
/**
@@ -614,10 +675,10 @@ class CustomerService extends __BaseService {
*
* - `skip`:
*/
CustomerGetAssignedPayersByCustomerId(
params: CustomerService.CustomerGetAssignedPayersByCustomerIdParams,
): __Observable<ListResponseArgsOfAssignedPayerDTO> {
return this.CustomerGetAssignedPayersByCustomerIdResponse(params).pipe(__map((_r) => _r.body as ListResponseArgsOfAssignedPayerDTO));
CustomerGetAssignedPayersByCustomerId(params: CustomerService.CustomerGetAssignedPayersByCustomerIdParams): __Observable<ListResponseArgsOfAssignedPayerDTO> {
return this.CustomerGetAssignedPayersByCustomerIdResponse(params).pipe(
__map(_r => _r.body as ListResponseArgsOfAssignedPayerDTO)
);
}
/**
@@ -631,32 +692,29 @@ class CustomerService extends __BaseService {
*
* - `eagerLoading`:
*/
CustomerModifyPayerReferenceResponse(
params: CustomerService.CustomerModifyPayerReferenceParams,
): __Observable<__StrictHttpResponse<ResponseArgsOfAssignedPayerDTO>> {
CustomerModifyPayerReferenceResponse(params: CustomerService.CustomerModifyPayerReferenceParams): __Observable<__StrictHttpResponse<ResponseArgsOfAssignedPayerDTO>> {
let __params = this.newParams();
let __headers = new HttpHeaders();
let __body: any = null;
if (params.isDefault != null) __params = __params.set('isDefault', params.isDefault.toString());
if (params.eagerLoading != null) __params = __params.set('eagerLoading', params.eagerLoading.toString());
let req = new HttpRequest<any>(
'PATCH',
this.rootUrl +
`/customer/${encodeURIComponent(String(params.customerId))}/payer/${encodeURIComponent(String(params.payerId))}/modifydefaultflag`,
this.rootUrl + `/customer/${encodeURIComponent(String(params.customerId))}/payer/${encodeURIComponent(String(params.payerId))}/modifydefaultflag`,
__body,
{
headers: __headers,
params: __params,
responseType: 'json',
},
);
responseType: 'json'
});
return this.http.request<any>(req).pipe(
__filter((_r) => _r instanceof HttpResponse),
__filter(_r => _r instanceof HttpResponse),
__map((_r) => {
return _r as __StrictHttpResponse<ResponseArgsOfAssignedPayerDTO>;
}),
})
);
}
/**
@@ -671,7 +729,9 @@ class CustomerService extends __BaseService {
* - `eagerLoading`:
*/
CustomerModifyPayerReference(params: CustomerService.CustomerModifyPayerReferenceParams): __Observable<ResponseArgsOfAssignedPayerDTO> {
return this.CustomerModifyPayerReferenceResponse(params).pipe(__map((_r) => _r.body as ResponseArgsOfAssignedPayerDTO));
return this.CustomerModifyPayerReferenceResponse(params).pipe(
__map(_r => _r.body as ResponseArgsOfAssignedPayerDTO)
);
}
/**
@@ -681,25 +741,27 @@ class CustomerService extends __BaseService {
*
* - `locale`:
*/
CustomerGetCustomerHistoryResponse(
params: CustomerService.CustomerGetCustomerHistoryParams,
): __Observable<__StrictHttpResponse<ResponseArgsOfIEnumerableOfHistoryDTO>> {
CustomerGetCustomerHistoryResponse(params: CustomerService.CustomerGetCustomerHistoryParams): __Observable<__StrictHttpResponse<ResponseArgsOfIEnumerableOfHistoryDTO>> {
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))}/history`, __body, {
headers: __headers,
params: __params,
responseType: 'json',
});
let req = new HttpRequest<any>(
'GET',
this.rootUrl + `/customer/${encodeURIComponent(String(params.customerId))}/history`,
__body,
{
headers: __headers,
params: __params,
responseType: 'json'
});
return this.http.request<any>(req).pipe(
__filter((_r) => _r instanceof HttpResponse),
__filter(_r => _r instanceof HttpResponse),
__map((_r) => {
return _r as __StrictHttpResponse<ResponseArgsOfIEnumerableOfHistoryDTO>;
}),
})
);
}
/**
@@ -709,18 +771,20 @@ class CustomerService extends __BaseService {
*
* - `locale`:
*/
CustomerGetCustomerHistory(
params: CustomerService.CustomerGetCustomerHistoryParams,
): __Observable<ResponseArgsOfIEnumerableOfHistoryDTO> {
return this.CustomerGetCustomerHistoryResponse(params).pipe(__map((_r) => _r.body as ResponseArgsOfIEnumerableOfHistoryDTO));
CustomerGetCustomerHistory(params: CustomerService.CustomerGetCustomerHistoryParams): __Observable<ResponseArgsOfIEnumerableOfHistoryDTO> {
return this.CustomerGetCustomerHistoryResponse(params).pipe(
__map(_r => _r.body as ResponseArgsOfIEnumerableOfHistoryDTO)
);
}
}
module CustomerService {
/**
* Parameters for CustomerCanExtendCustomer
*/
export interface CustomerCanExtendCustomerParams {
/**
* Kunde PK
*/
@@ -736,6 +800,7 @@ module CustomerService {
* Parameters for CustomerGetCustomer
*/
export interface CustomerGetCustomerParams {
/**
* Kunde PK
*/
@@ -751,6 +816,7 @@ module CustomerService {
* Parameters for CustomerUpdateCustomer
*/
export interface CustomerUpdateCustomerParams {
/**
* Kundendaten
*/
@@ -766,6 +832,7 @@ module CustomerService {
* Parameters for CustomerPatchCustomer
*/
export interface CustomerPatchCustomerParams {
/**
* Kunde PK
*/
@@ -782,6 +849,7 @@ module CustomerService {
* Parameters for CustomerDeleteCustomer
*/
export interface CustomerDeleteCustomerParams {
/**
* PK Kunden
*/
@@ -797,6 +865,7 @@ module CustomerService {
* Parameters for CustomerAddPayerReference
*/
export interface CustomerAddPayerReferenceParams {
/**
* Kunde PK
*/
@@ -822,6 +891,7 @@ module CustomerService {
* Parameters for CustomerDeactivateCustomer
*/
export interface CustomerDeactivateCustomerParams {
/**
* Kunden PK
*/
@@ -861,4 +931,4 @@ module CustomerService {
}
}
export { CustomerService };
export { CustomerService }

View File

@@ -7,183 +7,438 @@ import { StrictHttpResponse as __StrictHttpResponse } from '../strict-http-respo
import { Observable as __Observable } from 'rxjs';
import { map as __map, filter as __filter } from 'rxjs/operators';
import { ResponseArgsOfIEnumerableOfEntityKeyValueDTOOfStringAndString } from '../models/response-args-of-ienumerable-of-entity-key-value-dtoof-string-and-string';
import { ResponseArgsOfIEnumerableOfKeyValueDTOOfStringAndString } from '../models/response-args-of-ienumerable-of-key-value-dtoof-string-and-string';
import { ResponseArgsOfCheckLoyaltyCardResult } from '../models/response-args-of-check-loyalty-card-result';
import { ResponseArgsOfIQueryResultOfLoyaltyBookingInfoDTO } from '../models/response-args-of-iquery-result-of-loyalty-booking-info-dto';
import { ResponseArgsOfLoyaltyBookingInfoDTO } from '../models/response-args-of-loyalty-booking-info-dto';
import { LoyaltyBookingValues } from '../models/loyalty-booking-values';
import { ResponseArgsOfIEnumerableOfString } from '../models/response-args-of-ienumerable-of-string';
import { ResponseArgsOfKeyValueDTOOfStringAndString } from '../models/response-args-of-key-value-dtoof-string-and-string';
import { ResponseArgsOfBoolean } from '../models/response-args-of-boolean';
import { LoyaltyBonValues } from '../models/loyalty-bon-values';
import { ResponseArgsOfNullableBoolean } from '../models/response-args-of-nullable-boolean';
@Injectable({
providedIn: 'root',
})
class LoyaltyCardService extends __BaseService {
static readonly LoyaltyCardListInteressenPath = '/customer/interessen';
static readonly LoyaltyCardSaveInteressenPath = '/customer/{customerId}/interessen';
static readonly LoyaltyCardCheckLoyaltyCardPath = '/customer/loyaltycard/check';
static readonly LoyaltyCardListBookingsPath = '/loyalty/{cardCode}/booking';
static readonly LoyaltyCardAddBookingPath = '/loyalty/{cardCode}/booking';
static readonly LoyaltyCardBookingReasonPath = '/loyalty/booking/reason';
static readonly LoyaltyCardCurrentBookingPartnerStorePath = '/loyalty/booking/partner/store/current';
static readonly LoyaltyCardLoyaltyBonCheckPath = '/loyalty/{cardCode}/bon/check';
static readonly LoyaltyCardLoyaltyBonAddPath = '/loyalty/{cardCode}/bon/add';
static readonly LoyaltyCardLockCardPath = '/loyalty/{cardCode}/lock';
static readonly LoyaltyCardUnlockCardPath = '/loyalty/{cardCode}/unlock';
constructor(config: __Configuration, http: HttpClient) {
constructor(
config: __Configuration,
http: HttpClient
) {
super(config, http);
}
/**
* Interessen
* @param locale undefined
*/
LoyaltyCardListInteressenResponse(
locale?: null | string,
): __Observable<__StrictHttpResponse<ResponseArgsOfIEnumerableOfEntityKeyValueDTOOfStringAndString>> {
let __params = this.newParams();
let __headers = new HttpHeaders();
let __body: any = null;
if (locale != null) __params = __params.set('locale', locale.toString());
let req = new HttpRequest<any>('GET', this.rootUrl + `/customer/interessen`, __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<ResponseArgsOfIEnumerableOfEntityKeyValueDTOOfStringAndString>;
}),
);
}
/**
* Interessen
* @param locale undefined
*/
LoyaltyCardListInteressen(locale?: null | string): __Observable<ResponseArgsOfIEnumerableOfEntityKeyValueDTOOfStringAndString> {
return this.LoyaltyCardListInteressenResponse(locale).pipe(
__map((_r) => _r.body as ResponseArgsOfIEnumerableOfEntityKeyValueDTOOfStringAndString),
);
}
/**
* Interessen speichern
* @param params The `LoyaltyCardService.LoyaltyCardSaveInteressenParams` containing the following parameters:
* Bookings / Buchungen
* @param params The `LoyaltyCardService.LoyaltyCardListBookingsParams` containing the following parameters:
*
* - `interessen`:
*
* - `customerId`: PK Kunde
* - `cardCode`:
*
* - `locale`:
*/
LoyaltyCardSaveInteressenResponse(
params: LoyaltyCardService.LoyaltyCardSaveInteressenParams,
): __Observable<__StrictHttpResponse<ResponseArgsOfIEnumerableOfKeyValueDTOOfStringAndString>> {
LoyaltyCardListBookingsResponse(params: LoyaltyCardService.LoyaltyCardListBookingsParams): __Observable<__StrictHttpResponse<ResponseArgsOfIQueryResultOfLoyaltyBookingInfoDTO>> {
let __params = this.newParams();
let __headers = new HttpHeaders();
let __body: any = null;
__body = params.interessen;
if (params.locale != null) __params = __params.set('locale', params.locale.toString());
let req = new HttpRequest<any>('POST', this.rootUrl + `/customer/${encodeURIComponent(String(params.customerId))}/interessen`, __body, {
headers: __headers,
params: __params,
responseType: 'json',
});
let req = new HttpRequest<any>(
'GET',
this.rootUrl + `/loyalty/${encodeURIComponent(String(params.cardCode))}/booking`,
__body,
{
headers: __headers,
params: __params,
responseType: 'json'
});
return this.http.request<any>(req).pipe(
__filter((_r) => _r instanceof HttpResponse),
__filter(_r => _r instanceof HttpResponse),
__map((_r) => {
return _r as __StrictHttpResponse<ResponseArgsOfIEnumerableOfKeyValueDTOOfStringAndString>;
}),
return _r as __StrictHttpResponse<ResponseArgsOfIQueryResultOfLoyaltyBookingInfoDTO>;
})
);
}
/**
* Interessen speichern
* @param params The `LoyaltyCardService.LoyaltyCardSaveInteressenParams` containing the following parameters:
* Bookings / Buchungen
* @param params The `LoyaltyCardService.LoyaltyCardListBookingsParams` containing the following parameters:
*
* - `interessen`:
*
* - `customerId`: PK Kunde
* - `cardCode`:
*
* - `locale`:
*/
LoyaltyCardSaveInteressen(
params: LoyaltyCardService.LoyaltyCardSaveInteressenParams,
): __Observable<ResponseArgsOfIEnumerableOfKeyValueDTOOfStringAndString> {
return this.LoyaltyCardSaveInteressenResponse(params).pipe(
__map((_r) => _r.body as ResponseArgsOfIEnumerableOfKeyValueDTOOfStringAndString),
LoyaltyCardListBookings(params: LoyaltyCardService.LoyaltyCardListBookingsParams): __Observable<ResponseArgsOfIQueryResultOfLoyaltyBookingInfoDTO> {
return this.LoyaltyCardListBookingsResponse(params).pipe(
__map(_r => _r.body as ResponseArgsOfIQueryResultOfLoyaltyBookingInfoDTO)
);
}
/**
* Kundenkartennummer prüfen
* @param params The `LoyaltyCardService.LoyaltyCardCheckLoyaltyCardParams` containing the following parameters:
* Add goodwill/manual booking / Kulanzbuchung hinzufügen
* @param params The `LoyaltyCardService.LoyaltyCardAddBookingParams` containing the following parameters:
*
* - `loyaltyCardNumber`: Kundenkarten Code
* - `cardCode`:
*
* - `booking`:
*
* - `locale`:
*
* - `customerId`: PK Kunde (optional)
*/
LoyaltyCardCheckLoyaltyCardResponse(
params: LoyaltyCardService.LoyaltyCardCheckLoyaltyCardParams,
): __Observable<__StrictHttpResponse<ResponseArgsOfCheckLoyaltyCardResult>> {
LoyaltyCardAddBookingResponse(params: LoyaltyCardService.LoyaltyCardAddBookingParams): __Observable<__StrictHttpResponse<ResponseArgsOfLoyaltyBookingInfoDTO>> {
let __params = this.newParams();
let __headers = new HttpHeaders();
let __body: any = null;
if (params.loyaltyCardNumber != null) __params = __params.set('loyaltyCardNumber', params.loyaltyCardNumber.toString());
__body = params.booking;
if (params.locale != null) __params = __params.set('locale', params.locale.toString());
if (params.customerId != null) __params = __params.set('customerId', params.customerId.toString());
let req = new HttpRequest<any>('GET', this.rootUrl + `/customer/loyaltycard/check`, __body, {
headers: __headers,
params: __params,
responseType: 'json',
});
let req = new HttpRequest<any>(
'POST',
this.rootUrl + `/loyalty/${encodeURIComponent(String(params.cardCode))}/booking`,
__body,
{
headers: __headers,
params: __params,
responseType: 'json'
});
return this.http.request<any>(req).pipe(
__filter((_r) => _r instanceof HttpResponse),
__filter(_r => _r instanceof HttpResponse),
__map((_r) => {
return _r as __StrictHttpResponse<ResponseArgsOfCheckLoyaltyCardResult>;
}),
return _r as __StrictHttpResponse<ResponseArgsOfLoyaltyBookingInfoDTO>;
})
);
}
/**
* Kundenkartennummer prüfen
* @param params The `LoyaltyCardService.LoyaltyCardCheckLoyaltyCardParams` containing the following parameters:
* Add goodwill/manual booking / Kulanzbuchung hinzufügen
* @param params The `LoyaltyCardService.LoyaltyCardAddBookingParams` containing the following parameters:
*
* - `loyaltyCardNumber`: Kundenkarten Code
* - `cardCode`:
*
* - `booking`:
*
* - `locale`:
*
* - `customerId`: PK Kunde (optional)
*/
LoyaltyCardCheckLoyaltyCard(
params: LoyaltyCardService.LoyaltyCardCheckLoyaltyCardParams,
): __Observable<ResponseArgsOfCheckLoyaltyCardResult> {
return this.LoyaltyCardCheckLoyaltyCardResponse(params).pipe(__map((_r) => _r.body as ResponseArgsOfCheckLoyaltyCardResult));
LoyaltyCardAddBooking(params: LoyaltyCardService.LoyaltyCardAddBookingParams): __Observable<ResponseArgsOfLoyaltyBookingInfoDTO> {
return this.LoyaltyCardAddBookingResponse(params).pipe(
__map(_r => _r.body as ResponseArgsOfLoyaltyBookingInfoDTO)
);
}
/**
* Booking reason / Buchungsgründe
*/
LoyaltyCardBookingReasonResponse(): __Observable<__StrictHttpResponse<ResponseArgsOfIEnumerableOfString>> {
let __params = this.newParams();
let __headers = new HttpHeaders();
let __body: any = null;
let req = new HttpRequest<any>(
'GET',
this.rootUrl + `/loyalty/booking/reason`,
__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<ResponseArgsOfIEnumerableOfString>;
})
);
}
/**
* Booking reason / Buchungsgründe
*/
LoyaltyCardBookingReason(): __Observable<ResponseArgsOfIEnumerableOfString> {
return this.LoyaltyCardBookingReasonResponse().pipe(
__map(_r => _r.body as ResponseArgsOfIEnumerableOfString)
);
}
/**
* Current booking store / Aktuelle Buchungsfiliale
*/
LoyaltyCardCurrentBookingPartnerStoreResponse(): __Observable<__StrictHttpResponse<ResponseArgsOfKeyValueDTOOfStringAndString>> {
let __params = this.newParams();
let __headers = new HttpHeaders();
let __body: any = null;
let req = new HttpRequest<any>(
'GET',
this.rootUrl + `/loyalty/booking/partner/store/current`,
__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<ResponseArgsOfKeyValueDTOOfStringAndString>;
})
);
}
/**
* Current booking store / Aktuelle Buchungsfiliale
*/
LoyaltyCardCurrentBookingPartnerStore(): __Observable<ResponseArgsOfKeyValueDTOOfStringAndString> {
return this.LoyaltyCardCurrentBookingPartnerStoreResponse().pipe(
__map(_r => _r.body as ResponseArgsOfKeyValueDTOOfStringAndString)
);
}
/**
* Check Bon-Nr / Bon-Nr für Nachverpunktung überprüfen
* @param params The `LoyaltyCardService.LoyaltyCardLoyaltyBonCheckParams` containing the following parameters:
*
* - `payload`:
*
* - `cardCode`:
*
* - `locale`:
*/
LoyaltyCardLoyaltyBonCheckResponse(params: LoyaltyCardService.LoyaltyCardLoyaltyBonCheckParams): __Observable<__StrictHttpResponse<ResponseArgsOfBoolean>> {
let __params = this.newParams();
let __headers = new HttpHeaders();
let __body: any = null;
__body = params.payload;
if (params.locale != null) __params = __params.set('locale', params.locale.toString());
let req = new HttpRequest<any>(
'POST',
this.rootUrl + `/loyalty/${encodeURIComponent(String(params.cardCode))}/bon/check`,
__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>;
})
);
}
/**
* Check Bon-Nr / Bon-Nr für Nachverpunktung überprüfen
* @param params The `LoyaltyCardService.LoyaltyCardLoyaltyBonCheckParams` containing the following parameters:
*
* - `payload`:
*
* - `cardCode`:
*
* - `locale`:
*/
LoyaltyCardLoyaltyBonCheck(params: LoyaltyCardService.LoyaltyCardLoyaltyBonCheckParams): __Observable<ResponseArgsOfBoolean> {
return this.LoyaltyCardLoyaltyBonCheckResponse(params).pipe(
__map(_r => _r.body as ResponseArgsOfBoolean)
);
}
/**
* Add Bon / Bon Nachverpunkten
* @param params The `LoyaltyCardService.LoyaltyCardLoyaltyBonAddParams` containing the following parameters:
*
* - `payload`:
*
* - `cardCode`:
*
* - `locale`:
*/
LoyaltyCardLoyaltyBonAddResponse(params: LoyaltyCardService.LoyaltyCardLoyaltyBonAddParams): __Observable<__StrictHttpResponse<ResponseArgsOfBoolean>> {
let __params = this.newParams();
let __headers = new HttpHeaders();
let __body: any = null;
__body = params.payload;
if (params.locale != null) __params = __params.set('locale', params.locale.toString());
let req = new HttpRequest<any>(
'POST',
this.rootUrl + `/loyalty/${encodeURIComponent(String(params.cardCode))}/bon/add`,
__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>;
})
);
}
/**
* Add Bon / Bon Nachverpunkten
* @param params The `LoyaltyCardService.LoyaltyCardLoyaltyBonAddParams` containing the following parameters:
*
* - `payload`:
*
* - `cardCode`:
*
* - `locale`:
*/
LoyaltyCardLoyaltyBonAdd(params: LoyaltyCardService.LoyaltyCardLoyaltyBonAddParams): __Observable<ResponseArgsOfBoolean> {
return this.LoyaltyCardLoyaltyBonAddResponse(params).pipe(
__map(_r => _r.body as ResponseArgsOfBoolean)
);
}
/**
* Lock card
* @param params The `LoyaltyCardService.LoyaltyCardLockCardParams` containing the following parameters:
*
* - `cardCode`:
*
* - `locale`:
*/
LoyaltyCardLockCardResponse(params: LoyaltyCardService.LoyaltyCardLockCardParams): __Observable<__StrictHttpResponse<ResponseArgsOfNullableBoolean>> {
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>(
'POST',
this.rootUrl + `/loyalty/${encodeURIComponent(String(params.cardCode))}/lock`,
__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<ResponseArgsOfNullableBoolean>;
})
);
}
/**
* Lock card
* @param params The `LoyaltyCardService.LoyaltyCardLockCardParams` containing the following parameters:
*
* - `cardCode`:
*
* - `locale`:
*/
LoyaltyCardLockCard(params: LoyaltyCardService.LoyaltyCardLockCardParams): __Observable<ResponseArgsOfNullableBoolean> {
return this.LoyaltyCardLockCardResponse(params).pipe(
__map(_r => _r.body as ResponseArgsOfNullableBoolean)
);
}
/**
* Unlock card
* @param params The `LoyaltyCardService.LoyaltyCardUnlockCardParams` containing the following parameters:
*
* - `cardCode`:
*
* - `locale`:
*/
LoyaltyCardUnlockCardResponse(params: LoyaltyCardService.LoyaltyCardUnlockCardParams): __Observable<__StrictHttpResponse<ResponseArgsOfNullableBoolean>> {
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>(
'POST',
this.rootUrl + `/loyalty/${encodeURIComponent(String(params.cardCode))}/unlock`,
__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<ResponseArgsOfNullableBoolean>;
})
);
}
/**
* Unlock card
* @param params The `LoyaltyCardService.LoyaltyCardUnlockCardParams` containing the following parameters:
*
* - `cardCode`:
*
* - `locale`:
*/
LoyaltyCardUnlockCard(params: LoyaltyCardService.LoyaltyCardUnlockCardParams): __Observable<ResponseArgsOfNullableBoolean> {
return this.LoyaltyCardUnlockCardResponse(params).pipe(
__map(_r => _r.body as ResponseArgsOfNullableBoolean)
);
}
}
module LoyaltyCardService {
/**
* Parameters for LoyaltyCardSaveInteressen
*/
export interface LoyaltyCardSaveInteressenParams {
interessen: Array<string>;
/**
* PK Kunde
*/
customerId: number;
/**
* Parameters for LoyaltyCardListBookings
*/
export interface LoyaltyCardListBookingsParams {
cardCode: string;
locale?: null | string;
}
/**
* Parameters for LoyaltyCardCheckLoyaltyCard
* Parameters for LoyaltyCardAddBooking
*/
export interface LoyaltyCardCheckLoyaltyCardParams {
/**
* Kundenkarten Code
*/
loyaltyCardNumber?: null | string;
export interface LoyaltyCardAddBookingParams {
cardCode: string;
booking: LoyaltyBookingValues;
locale?: null | string;
}
/**
* PK Kunde (optional)
*/
customerId?: null | number;
/**
* Parameters for LoyaltyCardLoyaltyBonCheck
*/
export interface LoyaltyCardLoyaltyBonCheckParams {
payload: LoyaltyBonValues;
cardCode: string;
locale?: null | string;
}
/**
* Parameters for LoyaltyCardLoyaltyBonAdd
*/
export interface LoyaltyCardLoyaltyBonAddParams {
payload: LoyaltyBonValues;
cardCode: string;
locale?: null | string;
}
/**
* Parameters for LoyaltyCardLockCard
*/
export interface LoyaltyCardLockCardParams {
cardCode: string;
locale?: null | string;
}
/**
* Parameters for LoyaltyCardUnlockCard
*/
export interface LoyaltyCardUnlockCardParams {
cardCode: string;
locale?: null | string;
}
}
export { LoyaltyCardService };
export { LoyaltyCardService }

View File

@@ -22,7 +22,10 @@ class PayerService extends __BaseService {
static readonly PayerDeletePayerPath = '/payer/{payerId}/delete';
static readonly PayerGetPayerHistoryPath = '/payer/{payerId}/history';
constructor(config: __Configuration, http: HttpClient) {
constructor(
config: __Configuration,
http: HttpClient
) {
super(config, http);
}
@@ -35,17 +38,21 @@ class PayerService extends __BaseService {
let __headers = new HttpHeaders();
let __body: any = null;
__body = payer;
let req = new HttpRequest<any>('POST', this.rootUrl + `/payer`, __body, {
headers: __headers,
params: __params,
responseType: 'json',
});
let req = new HttpRequest<any>(
'POST',
this.rootUrl + `/payer`,
__body,
{
headers: __headers,
params: __params,
responseType: 'json'
});
return this.http.request<any>(req).pipe(
__filter((_r) => _r instanceof HttpResponse),
__filter(_r => _r instanceof HttpResponse),
__map((_r) => {
return _r as __StrictHttpResponse<ResponseArgsOfPayerDTO>;
}),
})
);
}
/**
@@ -53,7 +60,9 @@ class PayerService extends __BaseService {
* @param payer Reguliererdaten/Rechnungsadresse
*/
PayerCreatePayer(payer: PayerDTO): __Observable<ResponseArgsOfPayerDTO> {
return this.PayerCreatePayerResponse(payer).pipe(__map((_r) => _r.body as ResponseArgsOfPayerDTO));
return this.PayerCreatePayerResponse(payer).pipe(
__map(_r => _r.body as ResponseArgsOfPayerDTO)
);
}
/**
@@ -70,17 +79,21 @@ class PayerService extends __BaseService {
let __body: any = null;
__body = params.payer;
let req = new HttpRequest<any>('PUT', this.rootUrl + `/payer/${encodeURIComponent(String(params.payerId))}`, __body, {
headers: __headers,
params: __params,
responseType: 'json',
});
let req = new HttpRequest<any>(
'PUT',
this.rootUrl + `/payer/${encodeURIComponent(String(params.payerId))}`,
__body,
{
headers: __headers,
params: __params,
responseType: 'json'
});
return this.http.request<any>(req).pipe(
__filter((_r) => _r instanceof HttpResponse),
__filter(_r => _r instanceof HttpResponse),
__map((_r) => {
return _r as __StrictHttpResponse<ResponseArgsOfPayerDTO>;
}),
})
);
}
/**
@@ -92,7 +105,9 @@ class PayerService extends __BaseService {
* - `payer`: Reguliererdaten/Rechnungsadresse
*/
PayerUpdatePayer(params: PayerService.PayerUpdatePayerParams): __Observable<ResponseArgsOfPayerDTO> {
return this.PayerUpdatePayerResponse(params).pipe(__map((_r) => _r.body as ResponseArgsOfPayerDTO));
return this.PayerUpdatePayerResponse(params).pipe(
__map(_r => _r.body as ResponseArgsOfPayerDTO)
);
}
/**
@@ -103,24 +118,30 @@ class PayerService extends __BaseService {
let __headers = new HttpHeaders();
let __body: any = null;
let req = new HttpRequest<any>('GET', this.rootUrl + `/payer/${encodeURIComponent(String(payerId))}`, __body, {
headers: __headers,
params: __params,
responseType: 'json',
});
let req = new HttpRequest<any>(
'GET',
this.rootUrl + `/payer/${encodeURIComponent(String(payerId))}`,
__body,
{
headers: __headers,
params: __params,
responseType: 'json'
});
return this.http.request<any>(req).pipe(
__filter((_r) => _r instanceof HttpResponse),
__filter(_r => _r instanceof HttpResponse),
__map((_r) => {
return _r as __StrictHttpResponse<ResponseArgsOfPayerDTO>;
}),
})
);
}
/**
* @param payerId undefined
*/
PayerGetPayer(payerId: number): __Observable<ResponseArgsOfPayerDTO> {
return this.PayerGetPayerResponse(payerId).pipe(__map((_r) => _r.body as ResponseArgsOfPayerDTO));
return this.PayerGetPayerResponse(payerId).pipe(
__map(_r => _r.body as ResponseArgsOfPayerDTO)
);
}
/**
@@ -137,17 +158,21 @@ class PayerService extends __BaseService {
let __body: any = null;
if (params.deactivationComment != null) __params = __params.set('deactivationComment', params.deactivationComment.toString());
let req = new HttpRequest<any>('PATCH', this.rootUrl + `/payer/${encodeURIComponent(String(params.payerId))}/deactivate`, __body, {
headers: __headers,
params: __params,
responseType: 'json',
});
let req = new HttpRequest<any>(
'PATCH',
this.rootUrl + `/payer/${encodeURIComponent(String(params.payerId))}/deactivate`,
__body,
{
headers: __headers,
params: __params,
responseType: 'json'
});
return this.http.request<any>(req).pipe(
__filter((_r) => _r instanceof HttpResponse),
__filter(_r => _r instanceof HttpResponse),
__map((_r) => {
return _r as __StrictHttpResponse<ResponseArgsOfBoolean>;
}),
})
);
}
/**
@@ -159,7 +184,9 @@ class PayerService extends __BaseService {
* - `deactivationComment`: Deaktivierungsgrund
*/
PayerDeactivatePayer(params: PayerService.PayerDeactivatePayerParams): __Observable<ResponseArgsOfBoolean> {
return this.PayerDeactivatePayerResponse(params).pipe(__map((_r) => _r.body as ResponseArgsOfBoolean));
return this.PayerDeactivatePayerResponse(params).pipe(
__map(_r => _r.body as ResponseArgsOfBoolean)
);
}
/**
@@ -178,17 +205,21 @@ class PayerService extends __BaseService {
let __body: any = null;
if (params.deletionComment != null) __params = __params.set('deletionComment', params.deletionComment.toString());
let req = new HttpRequest<any>('DELETE', this.rootUrl + `/payer/${encodeURIComponent(String(params.payerId))}/delete`, __body, {
headers: __headers,
params: __params,
responseType: 'json',
});
let req = new HttpRequest<any>(
'DELETE',
this.rootUrl + `/payer/${encodeURIComponent(String(params.payerId))}/delete`,
__body,
{
headers: __headers,
params: __params,
responseType: 'json'
});
return this.http.request<any>(req).pipe(
__filter((_r) => _r instanceof HttpResponse),
__filter(_r => _r instanceof HttpResponse),
__map((_r) => {
return _r as __StrictHttpResponse<ResponseArgsOfBoolean>;
}),
})
);
}
/**
@@ -202,7 +233,9 @@ class PayerService extends __BaseService {
* - `deletionComment`: Grund des Löschens
*/
PayerDeletePayer(params: PayerService.PayerDeletePayerParams): __Observable<ResponseArgsOfBoolean> {
return this.PayerDeletePayerResponse(params).pipe(__map((_r) => _r.body as ResponseArgsOfBoolean));
return this.PayerDeletePayerResponse(params).pipe(
__map(_r => _r.body as ResponseArgsOfBoolean)
);
}
/**
@@ -212,25 +245,27 @@ class PayerService extends __BaseService {
*
* - `locale`:
*/
PayerGetPayerHistoryResponse(
params: PayerService.PayerGetPayerHistoryParams,
): __Observable<__StrictHttpResponse<ResponseArgsOfIEnumerableOfHistoryDTO>> {
PayerGetPayerHistoryResponse(params: PayerService.PayerGetPayerHistoryParams): __Observable<__StrictHttpResponse<ResponseArgsOfIEnumerableOfHistoryDTO>> {
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 + `/payer/${encodeURIComponent(String(params.payerId))}/history`, __body, {
headers: __headers,
params: __params,
responseType: 'json',
});
let req = new HttpRequest<any>(
'GET',
this.rootUrl + `/payer/${encodeURIComponent(String(params.payerId))}/history`,
__body,
{
headers: __headers,
params: __params,
responseType: 'json'
});
return this.http.request<any>(req).pipe(
__filter((_r) => _r instanceof HttpResponse),
__filter(_r => _r instanceof HttpResponse),
__map((_r) => {
return _r as __StrictHttpResponse<ResponseArgsOfIEnumerableOfHistoryDTO>;
}),
})
);
}
/**
@@ -241,15 +276,19 @@ class PayerService extends __BaseService {
* - `locale`:
*/
PayerGetPayerHistory(params: PayerService.PayerGetPayerHistoryParams): __Observable<ResponseArgsOfIEnumerableOfHistoryDTO> {
return this.PayerGetPayerHistoryResponse(params).pipe(__map((_r) => _r.body as ResponseArgsOfIEnumerableOfHistoryDTO));
return this.PayerGetPayerHistoryResponse(params).pipe(
__map(_r => _r.body as ResponseArgsOfIEnumerableOfHistoryDTO)
);
}
}
module PayerService {
/**
* Parameters for PayerUpdatePayer
*/
export interface PayerUpdatePayerParams {
/**
* PK Regulierer/Rechnungsadresse
*/
@@ -265,6 +304,7 @@ module PayerService {
* Parameters for PayerDeactivatePayer
*/
export interface PayerDeactivatePayerParams {
/**
* PK Regulierer/Rechnungsadresse
*/
@@ -280,6 +320,7 @@ module PayerService {
* Parameters for PayerDeletePayer
*/
export interface PayerDeletePayerParams {
/**
* PK Regulierer/Rechnungsadresse
*/
@@ -300,4 +341,4 @@ module PayerService {
}
}
export { PayerService };
export { PayerService }

View File

@@ -21,11 +21,13 @@ class ShippingAddressService extends __BaseService {
static readonly ShippingAddressUpdateShippingAddressPath = '/customer/{customerId}/shippingaddress/{shippingAddressId}';
static readonly ShippingAddressDeleteShippingAddressPath = '/customer/{customerId}/shippingaddress/{shippingAddressId}';
static readonly ShippingAddressGetShippingaddressPath = '/customer/shippingaddress/{shippingaddressId}';
static readonly ShippingAddressModifyShippingAddressFlagPath =
'/customer/{customerId}/shippingaddress/{shippingAddressId}/modifydefaultflag';
static readonly ShippingAddressModifyShippingAddressFlagPath = '/customer/{customerId}/shippingaddress/{shippingAddressId}/modifydefaultflag';
static readonly ShippingAddressGetShippingAddressHistoryPath = '/customer/{customerId}/shippingaddress/{shippingAddressId}/history';
constructor(config: __Configuration, http: HttpClient) {
constructor(
config: __Configuration,
http: HttpClient
) {
super(config, http);
}
@@ -37,9 +39,7 @@ class ShippingAddressService extends __BaseService {
*
* - `customerId`: Kunde PK
*/
ShippingAddressCreateShippingAddressResponse(
params: ShippingAddressService.ShippingAddressCreateShippingAddressParams,
): __Observable<__StrictHttpResponse<ResponseArgsOfShippingAddressDTO>> {
ShippingAddressCreateShippingAddressResponse(params: ShippingAddressService.ShippingAddressCreateShippingAddressParams): __Observable<__StrictHttpResponse<ResponseArgsOfShippingAddressDTO>> {
let __params = this.newParams();
let __headers = new HttpHeaders();
let __body: any = null;
@@ -52,15 +52,14 @@ class ShippingAddressService extends __BaseService {
{
headers: __headers,
params: __params,
responseType: 'json',
},
);
responseType: 'json'
});
return this.http.request<any>(req).pipe(
__filter((_r) => _r instanceof HttpResponse),
__filter(_r => _r instanceof HttpResponse),
__map((_r) => {
return _r as __StrictHttpResponse<ResponseArgsOfShippingAddressDTO>;
}),
})
);
}
/**
@@ -71,10 +70,10 @@ class ShippingAddressService extends __BaseService {
*
* - `customerId`: Kunde PK
*/
ShippingAddressCreateShippingAddress(
params: ShippingAddressService.ShippingAddressCreateShippingAddressParams,
): __Observable<ResponseArgsOfShippingAddressDTO> {
return this.ShippingAddressCreateShippingAddressResponse(params).pipe(__map((_r) => _r.body as ResponseArgsOfShippingAddressDTO));
ShippingAddressCreateShippingAddress(params: ShippingAddressService.ShippingAddressCreateShippingAddressParams): __Observable<ResponseArgsOfShippingAddressDTO> {
return this.ShippingAddressCreateShippingAddressResponse(params).pipe(
__map(_r => _r.body as ResponseArgsOfShippingAddressDTO)
);
}
/**
@@ -86,9 +85,7 @@ class ShippingAddressService extends __BaseService {
*
* - `skip`:
*/
ShippingAddressGetShippingAddressesResponse(
params: ShippingAddressService.ShippingAddressGetShippingAddressesParams,
): __Observable<__StrictHttpResponse<ListResponseArgsOfShippingAddressDTO>> {
ShippingAddressGetShippingAddressesResponse(params: ShippingAddressService.ShippingAddressGetShippingAddressesParams): __Observable<__StrictHttpResponse<ListResponseArgsOfShippingAddressDTO>> {
let __params = this.newParams();
let __headers = new HttpHeaders();
let __body: any = null;
@@ -102,15 +99,14 @@ class ShippingAddressService extends __BaseService {
{
headers: __headers,
params: __params,
responseType: 'json',
},
);
responseType: 'json'
});
return this.http.request<any>(req).pipe(
__filter((_r) => _r instanceof HttpResponse),
__filter(_r => _r instanceof HttpResponse),
__map((_r) => {
return _r as __StrictHttpResponse<ListResponseArgsOfShippingAddressDTO>;
}),
})
);
}
/**
@@ -122,10 +118,10 @@ class ShippingAddressService extends __BaseService {
*
* - `skip`:
*/
ShippingAddressGetShippingAddresses(
params: ShippingAddressService.ShippingAddressGetShippingAddressesParams,
): __Observable<ListResponseArgsOfShippingAddressDTO> {
return this.ShippingAddressGetShippingAddressesResponse(params).pipe(__map((_r) => _r.body as ListResponseArgsOfShippingAddressDTO));
ShippingAddressGetShippingAddresses(params: ShippingAddressService.ShippingAddressGetShippingAddressesParams): __Observable<ListResponseArgsOfShippingAddressDTO> {
return this.ShippingAddressGetShippingAddressesResponse(params).pipe(
__map(_r => _r.body as ListResponseArgsOfShippingAddressDTO)
);
}
/**
@@ -138,9 +134,7 @@ class ShippingAddressService extends __BaseService {
*
* - `customerId`: Kunde PK
*/
ShippingAddressUpdateShippingAddressResponse(
params: ShippingAddressService.ShippingAddressUpdateShippingAddressParams,
): __Observable<__StrictHttpResponse<ResponseArgsOfShippingAddressDTO>> {
ShippingAddressUpdateShippingAddressResponse(params: ShippingAddressService.ShippingAddressUpdateShippingAddressParams): __Observable<__StrictHttpResponse<ResponseArgsOfShippingAddressDTO>> {
let __params = this.newParams();
let __headers = new HttpHeaders();
let __body: any = null;
@@ -149,21 +143,19 @@ class ShippingAddressService extends __BaseService {
let req = new HttpRequest<any>(
'PUT',
this.rootUrl +
`/customer/${encodeURIComponent(String(params.customerId))}/shippingaddress/${encodeURIComponent(String(params.shippingAddressId))}`,
this.rootUrl + `/customer/${encodeURIComponent(String(params.customerId))}/shippingaddress/${encodeURIComponent(String(params.shippingAddressId))}`,
__body,
{
headers: __headers,
params: __params,
responseType: 'json',
},
);
responseType: 'json'
});
return this.http.request<any>(req).pipe(
__filter((_r) => _r instanceof HttpResponse),
__filter(_r => _r instanceof HttpResponse),
__map((_r) => {
return _r as __StrictHttpResponse<ResponseArgsOfShippingAddressDTO>;
}),
})
);
}
/**
@@ -176,10 +168,10 @@ class ShippingAddressService extends __BaseService {
*
* - `customerId`: Kunde PK
*/
ShippingAddressUpdateShippingAddress(
params: ShippingAddressService.ShippingAddressUpdateShippingAddressParams,
): __Observable<ResponseArgsOfShippingAddressDTO> {
return this.ShippingAddressUpdateShippingAddressResponse(params).pipe(__map((_r) => _r.body as ResponseArgsOfShippingAddressDTO));
ShippingAddressUpdateShippingAddress(params: ShippingAddressService.ShippingAddressUpdateShippingAddressParams): __Observable<ResponseArgsOfShippingAddressDTO> {
return this.ShippingAddressUpdateShippingAddressResponse(params).pipe(
__map(_r => _r.body as ResponseArgsOfShippingAddressDTO)
);
}
/**
@@ -192,31 +184,28 @@ class ShippingAddressService extends __BaseService {
*
* - `deletionComment`: Bemerkung zur Löschung
*/
ShippingAddressDeleteShippingAddressResponse(
params: ShippingAddressService.ShippingAddressDeleteShippingAddressParams,
): __Observable<__StrictHttpResponse<ResponseArgsOfBoolean>> {
ShippingAddressDeleteShippingAddressResponse(params: ShippingAddressService.ShippingAddressDeleteShippingAddressParams): __Observable<__StrictHttpResponse<ResponseArgsOfBoolean>> {
let __params = this.newParams();
let __headers = new HttpHeaders();
let __body: any = null;
if (params.deletionComment != null) __params = __params.set('deletionComment', params.deletionComment.toString());
let req = new HttpRequest<any>(
'DELETE',
this.rootUrl +
`/customer/${encodeURIComponent(String(params.customerId))}/shippingaddress/${encodeURIComponent(String(params.shippingAddressId))}`,
this.rootUrl + `/customer/${encodeURIComponent(String(params.customerId))}/shippingaddress/${encodeURIComponent(String(params.shippingAddressId))}`,
__body,
{
headers: __headers,
params: __params,
responseType: 'json',
},
);
responseType: 'json'
});
return this.http.request<any>(req).pipe(
__filter((_r) => _r instanceof HttpResponse),
__filter(_r => _r instanceof HttpResponse),
__map((_r) => {
return _r as __StrictHttpResponse<ResponseArgsOfBoolean>;
}),
})
);
}
/**
@@ -229,18 +218,16 @@ class ShippingAddressService extends __BaseService {
*
* - `deletionComment`: Bemerkung zur Löschung
*/
ShippingAddressDeleteShippingAddress(
params: ShippingAddressService.ShippingAddressDeleteShippingAddressParams,
): __Observable<ResponseArgsOfBoolean> {
return this.ShippingAddressDeleteShippingAddressResponse(params).pipe(__map((_r) => _r.body as ResponseArgsOfBoolean));
ShippingAddressDeleteShippingAddress(params: ShippingAddressService.ShippingAddressDeleteShippingAddressParams): __Observable<ResponseArgsOfBoolean> {
return this.ShippingAddressDeleteShippingAddressResponse(params).pipe(
__map(_r => _r.body as ResponseArgsOfBoolean)
);
}
/**
* @param shippingaddressId undefined
*/
ShippingAddressGetShippingaddressResponse(
shippingaddressId: number,
): __Observable<__StrictHttpResponse<ResponseArgsOfShippingAddressDTO>> {
ShippingAddressGetShippingaddressResponse(shippingaddressId: number): __Observable<__StrictHttpResponse<ResponseArgsOfShippingAddressDTO>> {
let __params = this.newParams();
let __headers = new HttpHeaders();
let __body: any = null;
@@ -252,15 +239,14 @@ class ShippingAddressService extends __BaseService {
{
headers: __headers,
params: __params,
responseType: 'json',
},
);
responseType: 'json'
});
return this.http.request<any>(req).pipe(
__filter((_r) => _r instanceof HttpResponse),
__filter(_r => _r instanceof HttpResponse),
__map((_r) => {
return _r as __StrictHttpResponse<ResponseArgsOfShippingAddressDTO>;
}),
})
);
}
/**
@@ -268,7 +254,7 @@ class ShippingAddressService extends __BaseService {
*/
ShippingAddressGetShippingaddress(shippingaddressId: number): __Observable<ResponseArgsOfShippingAddressDTO> {
return this.ShippingAddressGetShippingaddressResponse(shippingaddressId).pipe(
__map((_r) => _r.body as ResponseArgsOfShippingAddressDTO),
__map(_r => _r.body as ResponseArgsOfShippingAddressDTO)
);
}
@@ -281,31 +267,28 @@ class ShippingAddressService extends __BaseService {
*
* - `isDefault`:
*/
ShippingAddressModifyShippingAddressFlagResponse(
params: ShippingAddressService.ShippingAddressModifyShippingAddressFlagParams,
): __Observable<__StrictHttpResponse<ResponseArgsOfShippingAddressDTO>> {
ShippingAddressModifyShippingAddressFlagResponse(params: ShippingAddressService.ShippingAddressModifyShippingAddressFlagParams): __Observable<__StrictHttpResponse<ResponseArgsOfShippingAddressDTO>> {
let __params = this.newParams();
let __headers = new HttpHeaders();
let __body: any = null;
if (params.isDefault != null) __params = __params.set('isDefault', params.isDefault.toString());
let req = new HttpRequest<any>(
'PATCH',
this.rootUrl +
`/customer/${encodeURIComponent(String(params.customerId))}/shippingaddress/${encodeURIComponent(String(params.shippingAddressId))}/modifydefaultflag`,
this.rootUrl + `/customer/${encodeURIComponent(String(params.customerId))}/shippingaddress/${encodeURIComponent(String(params.shippingAddressId))}/modifydefaultflag`,
__body,
{
headers: __headers,
params: __params,
responseType: 'json',
},
);
responseType: 'json'
});
return this.http.request<any>(req).pipe(
__filter((_r) => _r instanceof HttpResponse),
__filter(_r => _r instanceof HttpResponse),
__map((_r) => {
return _r as __StrictHttpResponse<ResponseArgsOfShippingAddressDTO>;
}),
})
);
}
/**
@@ -317,10 +300,10 @@ class ShippingAddressService extends __BaseService {
*
* - `isDefault`:
*/
ShippingAddressModifyShippingAddressFlag(
params: ShippingAddressService.ShippingAddressModifyShippingAddressFlagParams,
): __Observable<ResponseArgsOfShippingAddressDTO> {
return this.ShippingAddressModifyShippingAddressFlagResponse(params).pipe(__map((_r) => _r.body as ResponseArgsOfShippingAddressDTO));
ShippingAddressModifyShippingAddressFlag(params: ShippingAddressService.ShippingAddressModifyShippingAddressFlagParams): __Observable<ResponseArgsOfShippingAddressDTO> {
return this.ShippingAddressModifyShippingAddressFlagResponse(params).pipe(
__map(_r => _r.body as ResponseArgsOfShippingAddressDTO)
);
}
/**
@@ -332,31 +315,28 @@ class ShippingAddressService extends __BaseService {
*
* - `locale`:
*/
ShippingAddressGetShippingAddressHistoryResponse(
params: ShippingAddressService.ShippingAddressGetShippingAddressHistoryParams,
): __Observable<__StrictHttpResponse<ResponseArgsOfIEnumerableOfHistoryDTO>> {
ShippingAddressGetShippingAddressHistoryResponse(params: ShippingAddressService.ShippingAddressGetShippingAddressHistoryParams): __Observable<__StrictHttpResponse<ResponseArgsOfIEnumerableOfHistoryDTO>> {
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))}/shippingaddress/${encodeURIComponent(String(params.shippingAddressId))}/history`,
this.rootUrl + `/customer/${encodeURIComponent(String(params.customerId))}/shippingaddress/${encodeURIComponent(String(params.shippingAddressId))}/history`,
__body,
{
headers: __headers,
params: __params,
responseType: 'json',
},
);
responseType: 'json'
});
return this.http.request<any>(req).pipe(
__filter((_r) => _r instanceof HttpResponse),
__filter(_r => _r instanceof HttpResponse),
__map((_r) => {
return _r as __StrictHttpResponse<ResponseArgsOfIEnumerableOfHistoryDTO>;
}),
})
);
}
/**
@@ -368,20 +348,20 @@ class ShippingAddressService extends __BaseService {
*
* - `locale`:
*/
ShippingAddressGetShippingAddressHistory(
params: ShippingAddressService.ShippingAddressGetShippingAddressHistoryParams,
): __Observable<ResponseArgsOfIEnumerableOfHistoryDTO> {
ShippingAddressGetShippingAddressHistory(params: ShippingAddressService.ShippingAddressGetShippingAddressHistoryParams): __Observable<ResponseArgsOfIEnumerableOfHistoryDTO> {
return this.ShippingAddressGetShippingAddressHistoryResponse(params).pipe(
__map((_r) => _r.body as ResponseArgsOfIEnumerableOfHistoryDTO),
__map(_r => _r.body as ResponseArgsOfIEnumerableOfHistoryDTO)
);
}
}
module ShippingAddressService {
/**
* Parameters for ShippingAddressCreateShippingAddress
*/
export interface ShippingAddressCreateShippingAddressParams {
/**
* Adressdaten
*/
@@ -406,6 +386,7 @@ module ShippingAddressService {
* Parameters for ShippingAddressUpdateShippingAddress
*/
export interface ShippingAddressUpdateShippingAddressParams {
/**
* Lieferadresse PK
*/
@@ -426,6 +407,7 @@ module ShippingAddressService {
* Parameters for ShippingAddressDeleteShippingAddress
*/
export interface ShippingAddressDeleteShippingAddressParams {
/**
* Lieferadresse PK
*/
@@ -461,4 +443,4 @@ module ShippingAddressService {
}
}
export { ShippingAddressService };
export { ShippingAddressService }

Some files were not shown because too many files have changed in this diff Show More