mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
committed by
Andreas Schickinger
parent
a66137873c
commit
0cd0b1abfd
@@ -1,10 +1,12 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import {
|
||||
AddressDTO,
|
||||
AddressService,
|
||||
AssignedPayerDTO,
|
||||
AutocompleteDTO,
|
||||
CommunicationDetailsDTO,
|
||||
CountryDTO,
|
||||
CountryService,
|
||||
CustomerDTO,
|
||||
CustomerInfoDTO,
|
||||
CustomerService,
|
||||
@@ -16,6 +18,7 @@ import {
|
||||
ResponseArgsOfHistoryDTO,
|
||||
ResponseArgsOfIEnumerableOfBonusCardInfoDTO,
|
||||
ShippingAddressDTO,
|
||||
ShippingAddressService,
|
||||
} from '@swagger/crm';
|
||||
import { isArray } from '@utils/common';
|
||||
import { PagedResult, Result } from 'apps/domain/defs/src/public-api';
|
||||
@@ -24,7 +27,13 @@ import { catchError, map, mergeMap, retry } from 'rxjs/operators';
|
||||
|
||||
@Injectable({ providedIn: 'root' })
|
||||
export class CrmCustomerService {
|
||||
constructor(private customerService: CustomerService, private payerService: PayerService) {}
|
||||
constructor(
|
||||
private customerService: CustomerService,
|
||||
private payerService: PayerService,
|
||||
private addressService: AddressService,
|
||||
private countryService: CountryService,
|
||||
private shippingAddressService: ShippingAddressService
|
||||
) {}
|
||||
|
||||
complete(queryString: string, filter?: { [key: string]: string }): Observable<Result<AutocompleteDTO[]>> {
|
||||
return this.customerService.CustomerCustomerAutocomplete({
|
||||
@@ -204,7 +213,7 @@ export class CrmCustomerService {
|
||||
}
|
||||
|
||||
validateAddress(address: AddressDTO): Observable<Result<AddressDTO[]>> {
|
||||
return this.customerService.CustomerValidateAddress(address);
|
||||
return this.addressService.AddressValidateAddress(address);
|
||||
}
|
||||
|
||||
private cachedCountriesFailed = false;
|
||||
@@ -213,8 +222,8 @@ export class CrmCustomerService {
|
||||
if (!this.cachedCountries || this.cachedCountriesFailed) {
|
||||
this.cachedCountriesFailed = false;
|
||||
this.cachedCountries = new ReplaySubject();
|
||||
this.customerService
|
||||
.CustomerGetCountries({})
|
||||
this.countryService
|
||||
.CountryGetCountries({})
|
||||
.pipe(
|
||||
retry(3),
|
||||
catchError((err) => {
|
||||
@@ -275,7 +284,7 @@ export class CrmCustomerService {
|
||||
delete data.isDefault;
|
||||
}
|
||||
|
||||
return this.customerService.CustomerCreateShippingAddress({ customerId, shippingAddress: data });
|
||||
return this.shippingAddressService.ShippingAddressCreateShippingAddress({ customerId, shippingAddress: data });
|
||||
}
|
||||
|
||||
updateShippingAddress(
|
||||
@@ -292,15 +301,15 @@ export class CrmCustomerService {
|
||||
delete data.isDefault;
|
||||
}
|
||||
|
||||
return this.customerService.CustomerUpdateShippingAddress({ shippingAddressId, shippingAddress: data, customerId });
|
||||
return this.shippingAddressService.ShippingAddressUpdateShippingAddress({ shippingAddressId, shippingAddress: data, customerId });
|
||||
}
|
||||
|
||||
getShippingAddress(shippingAddressId: number): Observable<Result<ShippingAddressDTO>> {
|
||||
return this.customerService.CustomerGetShippingaddress(shippingAddressId);
|
||||
return this.shippingAddressService.ShippingAddressGetShippingaddress(shippingAddressId);
|
||||
}
|
||||
|
||||
getShippingAddresses(params: CustomerService.CustomerGetShippingAddressesParams): Observable<Result<ShippingAddressDTO[]>> {
|
||||
return this.customerService.CustomerGetShippingAddresses(params);
|
||||
getShippingAddresses(params: ShippingAddressService.ShippingAddressGetShippingAddressesParams): Observable<Result<ShippingAddressDTO[]>> {
|
||||
return this.shippingAddressService.ShippingAddressGetShippingAddresses(params);
|
||||
}
|
||||
|
||||
getPayer(payerId: number): Observable<Result<PayerDTO>> {
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
"rootUrl": "https://isa-test.paragon-data.net/checkout/v3"
|
||||
},
|
||||
"@swagger/crm": {
|
||||
"rootUrl": "https://isa-test.paragon-data.net/crm/v3"
|
||||
"rootUrl": "https://isa-test.paragon-data.net/crm/v6"
|
||||
},
|
||||
"@swagger/oms": {
|
||||
"rootUrl": "https://isa-test.paragon-data.net/oms/v6"
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
"rootUrl": "https://isa-integration.paragon-data.net/checkout/v3"
|
||||
},
|
||||
"@swagger/crm": {
|
||||
"rootUrl": "https://isa-integration.paragon-data.net/crm/v3"
|
||||
"rootUrl": "https://isa-integration.paragon-data.net/crm/v6"
|
||||
},
|
||||
"@swagger/oms": {
|
||||
"rootUrl": "https://isa-integration.paragon-data.net/oms/v6"
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
"rootUrl": "https://isa-test.paragon-data.net/checkout/v3"
|
||||
},
|
||||
"@swagger/crm": {
|
||||
"rootUrl": "https://isa-test.paragon-data.net/crm/v3"
|
||||
"rootUrl": "https://isa-test.paragon-data.net/crm/v6"
|
||||
},
|
||||
"@swagger/oms": {
|
||||
"rootUrl": "https://isa-test.paragon-data.net/oms/v6"
|
||||
@@ -60,4 +60,4 @@
|
||||
}
|
||||
},
|
||||
"checkForUpdates": 3600000
|
||||
}
|
||||
}
|
||||
@@ -26,7 +26,7 @@
|
||||
"rootUrl": "https://isa.paragon-systems.de/checkout/v3"
|
||||
},
|
||||
"@swagger/crm": {
|
||||
"rootUrl": "https://isa.paragon-systems.de/crm/v3"
|
||||
"rootUrl": "https://isa.paragon-systems.de/crm/v6"
|
||||
},
|
||||
"@swagger/oms": {
|
||||
"rootUrl": "https://isa.paragon-systems.de/oms/v6"
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
"rootUrl": "https://isa-staging.paragon-systems.de/checkout/v3"
|
||||
},
|
||||
"@swagger/crm": {
|
||||
"rootUrl": "https://isa-staging.paragon-systems.de/crm/v3"
|
||||
"rootUrl": "https://isa-staging.paragon-systems.de/crm/v6"
|
||||
},
|
||||
"@swagger/oms": {
|
||||
"rootUrl": "https://isa-staging.paragon-systems.de/oms/v6"
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
"rootUrl": "https://isa-test.paragon-data.net/checkout/v3"
|
||||
},
|
||||
"@swagger/crm": {
|
||||
"rootUrl": "https://isa-test.paragon-data.net/crm/v3"
|
||||
"rootUrl": "https://isa-test.paragon-data.net/crm/v6"
|
||||
},
|
||||
"@swagger/oms": {
|
||||
"rootUrl": "https://isa-test.paragon-data.net/oms/v6"
|
||||
|
||||
@@ -3,9 +3,12 @@ import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||
import { HttpClientModule } from '@angular/common/http';
|
||||
import { CrmConfiguration, CrmConfigurationInterface } from './crm-configuration';
|
||||
|
||||
import { AddressService } from './services/address.service';
|
||||
import { CountryService } from './services/country.service';
|
||||
import { CustomerService } from './services/customer.service';
|
||||
import { OptInService } from './services/opt-in.service';
|
||||
import { LoyaltyCardService } from './services/loyalty-card.service';
|
||||
import { PayerService } from './services/payer.service';
|
||||
import { ShippingAddressService } from './services/shipping-address.service';
|
||||
|
||||
/**
|
||||
* Provider for all Crm services, plus CrmConfiguration
|
||||
@@ -20,9 +23,12 @@ import { PayerService } from './services/payer.service';
|
||||
declarations: [],
|
||||
providers: [
|
||||
CrmConfiguration,
|
||||
AddressService,
|
||||
CountryService,
|
||||
CustomerService,
|
||||
OptInService,
|
||||
PayerService
|
||||
LoyaltyCardService,
|
||||
PayerService,
|
||||
ShippingAddressService
|
||||
],
|
||||
})
|
||||
export class CrmModule {
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
export { ResponseArgsOfInputDTO } from './models/response-args-of-input-dto';
|
||||
export { InputDTO } from './models/input-dto';
|
||||
export { InputType } from './models/input-type';
|
||||
export { InputOptionsDTO } from './models/input-options-dto';
|
||||
export { OptionDTO } from './models/option-dto';
|
||||
export { ResponseArgsOfIEnumerableOfAddressDTO } from './models/response-args-of-ienumerable-of-address-dto';
|
||||
export { AddressDTO } from './models/address-dto';
|
||||
export { GeoLocation } from './models/geo-location';
|
||||
export { TouchedBase } from './models/touched-base';
|
||||
export { ResponseArgs } from './models/response-args';
|
||||
export { DialogOfString } from './models/dialog-of-string';
|
||||
export { DialogSettings } from './models/dialog-settings';
|
||||
@@ -10,6 +9,17 @@ export { DialogContentType } from './models/dialog-content-type';
|
||||
export { KeyValueDTOOfStringAndString } from './models/key-value-dtoof-string-and-string';
|
||||
export { IPublicUserInfo } from './models/ipublic-user-info';
|
||||
export { ProblemDetails } from './models/problem-details';
|
||||
export { ResponseArgsOfIEnumerableOfCountryDTO } from './models/response-args-of-ienumerable-of-country-dto';
|
||||
export { CountryDTO } from './models/country-dto';
|
||||
export { EntityDTOBaseOfCountryDTOAndICountry } from './models/entity-dtobase-of-country-dtoand-icountry';
|
||||
export { EntityDTOBase } from './models/entity-dtobase';
|
||||
export { EntityDTO } from './models/entity-dto';
|
||||
export { EntityStatus } from './models/entity-status';
|
||||
export { ResponseArgsOfInputDTO } from './models/response-args-of-input-dto';
|
||||
export { InputDTO } from './models/input-dto';
|
||||
export { InputType } from './models/input-type';
|
||||
export { InputOptionsDTO } from './models/input-options-dto';
|
||||
export { OptionDTO } from './models/option-dto';
|
||||
export { ResponseArgsOfIEnumerableOfInputDTO } from './models/response-args-of-ienumerable-of-input-dto';
|
||||
export { ResponseArgsOfQuerySettingsDTO } from './models/response-args-of-query-settings-dto';
|
||||
export { QuerySettingsDTO } from './models/query-settings-dto';
|
||||
@@ -22,22 +32,15 @@ export { EntityDTOContainerOfBranchDTO } from './models/entity-dtocontainer-of-b
|
||||
export { BranchDTO } from './models/branch-dto';
|
||||
export { EntityDTOContainerOfLabelDTO } from './models/entity-dtocontainer-of-label-dto';
|
||||
export { LabelDTO } from './models/label-dto';
|
||||
export { EntityDTOContainerOfTenantDTO } from './models/entity-dtocontainer-of-tenant-dto';
|
||||
export { TenantDTO } from './models/tenant-dto';
|
||||
export { ReadOnlyEntityDTOOfTenantDTOAndIReadOnlyTenant } from './models/read-only-entity-dtoof-tenant-dtoand-iread-only-tenant';
|
||||
export { EntityDTO } from './models/entity-dto';
|
||||
export { EntityStatus } from './models/entity-status';
|
||||
export { TouchedBase } from './models/touched-base';
|
||||
export { EntityDTOBaseOfLabelDTOAndILabel } from './models/entity-dtobase-of-label-dtoand-ilabel';
|
||||
export { EntityDTOReferenceContainer } from './models/entity-dtoreference-container';
|
||||
export { ExternalReferenceDTO } from './models/external-reference-dto';
|
||||
export { ReadOnlyEntityDTOOfLabelDTOAndIReadOnlyLabel } from './models/read-only-entity-dtoof-label-dtoand-iread-only-label';
|
||||
export { AddressDTO } from './models/address-dto';
|
||||
export { GeoLocation } from './models/geo-location';
|
||||
export { BranchType } from './models/branch-type';
|
||||
export { ReadOnlyEntityDTOOfBranchDTOAndIReadOnlyBranch } from './models/read-only-entity-dtoof-branch-dtoand-iread-only-branch';
|
||||
export { EntityDTOBaseOfBranchDTOAndIBranch } from './models/entity-dtobase-of-branch-dtoand-ibranch';
|
||||
export { CustomerType } from './models/customer-type';
|
||||
export { CustomerStatus } from './models/customer-status';
|
||||
export { OrganisationDTO } from './models/organisation-dto';
|
||||
export { OrganisationNamesDTO } from './models/organisation-names-dto';
|
||||
export { Gender } from './models/gender';
|
||||
export { CommunicationDetailsDTO } from './models/communication-details-dto';
|
||||
export { EntityDTOContainerOfBonusCardDTO } from './models/entity-dtocontainer-of-bonus-card-dto';
|
||||
@@ -47,13 +50,11 @@ export { CustomerDTO } from './models/customer-dto';
|
||||
export { EnvironmentChannel } from './models/environment-channel';
|
||||
export { EntityDTOContainerOfUserDTO } from './models/entity-dtocontainer-of-user-dto';
|
||||
export { UserDTO } from './models/user-dto';
|
||||
export { EntityDTOOfUserDTOAndIUser } from './models/entity-dtoof-user-dtoand-iuser';
|
||||
export { ReadOnlyEntityDTOOfUserDTOAndIUser } from './models/read-only-entity-dtoof-user-dtoand-iuser';
|
||||
export { EntityDTOBaseOfUserDTOAndIUser } from './models/entity-dtobase-of-user-dtoand-iuser';
|
||||
export { EntityDTOContainerOfShippingAddressDTO } from './models/entity-dtocontainer-of-shipping-address-dto';
|
||||
export { ShippingAddressDTO } from './models/shipping-address-dto';
|
||||
export { ShippingAddressType } from './models/shipping-address-type';
|
||||
export { EntityDTOOfShippingAddressDTOAndIShippingAddress } from './models/entity-dtoof-shipping-address-dtoand-ishipping-address';
|
||||
export { ReadOnlyEntityDTOOfShippingAddressDTOAndIShippingAddress } from './models/read-only-entity-dtoof-shipping-address-dtoand-ishipping-address';
|
||||
export { EntityDTOBaseOfShippingAddressDTOAndIShippingAddress } from './models/entity-dtobase-of-shipping-address-dtoand-ishipping-address';
|
||||
export { NotificationChannel } from './models/notification-channel';
|
||||
export { PaymentType } from './models/payment-type';
|
||||
export { AssignedPayerDTO } from './models/assigned-payer-dto';
|
||||
@@ -61,32 +62,22 @@ export { EntityDTOContainerOfPayerDTO } from './models/entity-dtocontainer-of-pa
|
||||
export { PayerDTO } from './models/payer-dto';
|
||||
export { PayerStatus } from './models/payer-status';
|
||||
export { PaymentSettingsDTO } from './models/payment-settings-dto';
|
||||
export { EntityDTOOfPayerDTOAndIPayer } from './models/entity-dtoof-payer-dtoand-ipayer';
|
||||
export { ReadOnlyEntityDTOOfPayerDTOAndIPayer } from './models/read-only-entity-dtoof-payer-dtoand-ipayer';
|
||||
export { EntityDTOBaseOfPayerDTOAndIPayer } from './models/entity-dtobase-of-payer-dtoand-ipayer';
|
||||
export { EntityDTOContainerOfAttributeDTO } from './models/entity-dtocontainer-of-attribute-dto';
|
||||
export { AttributeDTO } from './models/attribute-dto';
|
||||
export { DataFormat } from './models/data-format';
|
||||
export { EntityDTOOfAttributeDTOAndIAttribute } from './models/entity-dtoof-attribute-dtoand-iattribute';
|
||||
export { ReadOnlyEntityDTOOfAttributeDTOAndIAttribute } from './models/read-only-entity-dtoof-attribute-dtoand-iattribute';
|
||||
export { EntityDTOBaseOfAttributeDTOAndIAttribute } from './models/entity-dtobase-of-attribute-dtoand-iattribute';
|
||||
export { LinkedRecordDTO } from './models/linked-record-dto';
|
||||
export { EntityDTOOfCustomerDTOAndICustomer } from './models/entity-dtoof-customer-dtoand-icustomer';
|
||||
export { ReadOnlyEntityDTOOfCustomerDTOAndICustomer } from './models/read-only-entity-dtoof-customer-dtoand-icustomer';
|
||||
export { EntityDTOOfBonusCardDTOAndIBonusCard } from './models/entity-dtoof-bonus-card-dtoand-ibonus-card';
|
||||
export { ReadOnlyEntityDTOOfBonusCardDTOAndIBonusCard } from './models/read-only-entity-dtoof-bonus-card-dtoand-ibonus-card';
|
||||
export { EntityDTOOfCustomerInfoDTOAndICustomer } from './models/entity-dtoof-customer-info-dtoand-icustomer';
|
||||
export { ReadOnlyEntityDTOOfCustomerInfoDTOAndICustomer } from './models/read-only-entity-dtoof-customer-info-dtoand-icustomer';
|
||||
export { EntityDTOBaseOfCustomerDTOAndICustomer } from './models/entity-dtobase-of-customer-dtoand-icustomer';
|
||||
export { EntityDTOBaseOfBonusCardDTOAndIBonusCard } from './models/entity-dtobase-of-bonus-card-dtoand-ibonus-card';
|
||||
export { EntityDTOBaseOfCustomerInfoDTOAndICustomer } from './models/entity-dtobase-of-customer-info-dtoand-icustomer';
|
||||
export { QueryTokenDTO } from './models/query-token-dto';
|
||||
export { QueryTokenDTO2 } from './models/query-token-dto2';
|
||||
export { ResponseArgsOfCustomerDTO } from './models/response-args-of-customer-dto';
|
||||
export { ResponseArgsOfShippingAddressDTO } from './models/response-args-of-shipping-address-dto';
|
||||
export { ResponseArgsOfAssignedPayerDTO } from './models/response-args-of-assigned-payer-dto';
|
||||
export { ResponseArgsOfBoolean } from './models/response-args-of-boolean';
|
||||
export { ResponseArgsOfIEnumerableOfBonusCardInfoDTO } from './models/response-args-of-ienumerable-of-bonus-card-info-dto';
|
||||
export { BonusCardInfoDTO } from './models/bonus-card-info-dto';
|
||||
export { ResponseArgsOfIEnumerableOfCountryDTO } from './models/response-args-of-ienumerable-of-country-dto';
|
||||
export { CountryDTO } from './models/country-dto';
|
||||
export { ReadOnlyEntityDTOOfCountryDTOAndIReadOnlyCountry } from './models/read-only-entity-dtoof-country-dtoand-iread-only-country';
|
||||
export { ResponseArgsOfIEnumerableOfAddressDTO } from './models/response-args-of-ienumerable-of-address-dto';
|
||||
export { ResponseArgsOfNullableBoolean } from './models/response-args-of-nullable-boolean';
|
||||
export { ResponseArgsOfIEnumerableOfAutocompleteDTO } from './models/response-args-of-ienumerable-of-autocomplete-dto';
|
||||
export { AutocompleteDTO } from './models/autocomplete-dto';
|
||||
@@ -98,8 +89,8 @@ export { ResponseArgsOfIEnumerableOfShippingAddressDTO } from './models/response
|
||||
export { ResponseArgsOfHistoryDTO } from './models/response-args-of-history-dto';
|
||||
export { HistoryDTO } from './models/history-dto';
|
||||
export { DiffDTO } from './models/diff-dto';
|
||||
export { ResponseArgsOfOptInDTO } from './models/response-args-of-opt-in-dto';
|
||||
export { OptInDTO } from './models/opt-in-dto';
|
||||
export { EntityDTOOfOptInDTOAndIOptIn } from './models/entity-dtoof-opt-in-dtoand-iopt-in';
|
||||
export { ReadOnlyEntityDTOOfOptInDTOAndIOptIn } from './models/read-only-entity-dtoof-opt-in-dtoand-iopt-in';
|
||||
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 { ResponseArgsOfPayerDTO } from './models/response-args-of-payer-dto';
|
||||
export { ResponseArgsOfShippingAddressDTO } from './models/response-args-of-shipping-address-dto';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* tslint:disable */
|
||||
import { EntityDTOOfAttributeDTOAndIAttribute } from './entity-dtoof-attribute-dtoand-iattribute';
|
||||
import { EntityDTOBaseOfAttributeDTOAndIAttribute } from './entity-dtobase-of-attribute-dtoand-iattribute';
|
||||
import { DataFormat } from './data-format';
|
||||
export interface AttributeDTO extends EntityDTOOfAttributeDTOAndIAttribute{
|
||||
export interface AttributeDTO extends EntityDTOBaseOfAttributeDTOAndIAttribute{
|
||||
dataType?: DataFormat;
|
||||
formatValidator?: string;
|
||||
group?: string;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* tslint:disable */
|
||||
import { EntityDTOOfBonusCardDTOAndIBonusCard } from './entity-dtoof-bonus-card-dtoand-ibonus-card';
|
||||
import { EntityDTOBaseOfBonusCardDTOAndIBonusCard } from './entity-dtobase-of-bonus-card-dtoand-ibonus-card';
|
||||
import { EntityDTOContainerOfCustomerDTO } from './entity-dtocontainer-of-customer-dto';
|
||||
export interface BonusCardDTO extends EntityDTOOfBonusCardDTOAndIBonusCard{
|
||||
export interface BonusCardDTO extends EntityDTOBaseOfBonusCardDTOAndIBonusCard{
|
||||
bonusValue?: number;
|
||||
cardNumber?: string;
|
||||
cardProvider?: number;
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
/* tslint:disable */
|
||||
import { ReadOnlyEntityDTOOfBranchDTOAndIReadOnlyBranch } from './read-only-entity-dtoof-branch-dtoand-iread-only-branch';
|
||||
import { EntityDTOBaseOfBranchDTOAndIBranch } from './entity-dtobase-of-branch-dtoand-ibranch';
|
||||
import { AddressDTO } from './address-dto';
|
||||
import { BranchType } from './branch-type';
|
||||
import { EntityDTOContainerOfLabelDTO } from './entity-dtocontainer-of-label-dto';
|
||||
export interface BranchDTO extends ReadOnlyEntityDTOOfBranchDTOAndIReadOnlyBranch{
|
||||
export interface BranchDTO extends EntityDTOBaseOfBranchDTOAndIBranch{
|
||||
address?: AddressDTO;
|
||||
branchNumber?: string;
|
||||
branchType: BranchType;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* tslint:disable */
|
||||
import { ReadOnlyEntityDTOOfCountryDTOAndIReadOnlyCountry } from './read-only-entity-dtoof-country-dtoand-iread-only-country';
|
||||
export interface CountryDTO extends ReadOnlyEntityDTOOfCountryDTOAndIReadOnlyCountry{
|
||||
import { EntityDTOBaseOfCountryDTOAndICountry } from './entity-dtobase-of-country-dtoand-icountry';
|
||||
export interface CountryDTO extends EntityDTOBaseOfCountryDTOAndICountry{
|
||||
isDefault?: string;
|
||||
isO3166_A_3?: string;
|
||||
name?: string;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* tslint:disable */
|
||||
import { EntityDTOOfCustomerDTOAndICustomer } from './entity-dtoof-customer-dtoand-icustomer';
|
||||
import { EntityDTOBaseOfCustomerDTOAndICustomer } from './entity-dtobase-of-customer-dtoand-icustomer';
|
||||
import { AddressDTO } from './address-dto';
|
||||
import { EntityDTOContainerOfAttributeDTO } from './entity-dtocontainer-of-attribute-dto';
|
||||
import { EntityDTOContainerOfBonusCardDTO } from './entity-dtocontainer-of-bonus-card-dto';
|
||||
@@ -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 EntityDTOOfCustomerDTOAndICustomer{
|
||||
export interface CustomerDTO extends EntityDTOBaseOfCustomerDTOAndICustomer{
|
||||
address?: AddressDTO;
|
||||
agentComment?: string;
|
||||
attributes?: Array<EntityDTOContainerOfAttributeDTO>;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* tslint:disable */
|
||||
import { EntityDTOOfCustomerInfoDTOAndICustomer } from './entity-dtoof-customer-info-dtoand-icustomer';
|
||||
import { EntityDTOBaseOfCustomerInfoDTOAndICustomer } from './entity-dtobase-of-customer-info-dtoand-icustomer';
|
||||
import { AddressDTO } from './address-dto';
|
||||
import { EntityDTOContainerOfBonusCardDTO } from './entity-dtocontainer-of-bonus-card-dto';
|
||||
import { CommunicationDetailsDTO } from './communication-details-dto';
|
||||
@@ -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 EntityDTOOfCustomerInfoDTOAndICustomer{
|
||||
export interface CustomerInfoDTO extends EntityDTOBaseOfCustomerInfoDTOAndICustomer{
|
||||
address?: AddressDTO;
|
||||
agentComment?: string;
|
||||
bonusCard?: EntityDTOContainerOfBonusCardDTO;
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
/* tslint:disable */
|
||||
import { EntityDTOBase } from './entity-dtobase';
|
||||
export interface EntityDTOBaseOfAttributeDTOAndIAttribute extends EntityDTOBase{
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
/* tslint:disable */
|
||||
import { EntityDTOBase } from './entity-dtobase';
|
||||
export interface EntityDTOBaseOfBonusCardDTOAndIBonusCard extends EntityDTOBase{
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
/* tslint:disable */
|
||||
import { EntityDTOBase } from './entity-dtobase';
|
||||
export interface EntityDTOBaseOfBranchDTOAndIBranch extends EntityDTOBase{
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
/* tslint:disable */
|
||||
import { EntityDTOBase } from './entity-dtobase';
|
||||
export interface EntityDTOBaseOfCountryDTOAndICountry extends EntityDTOBase{
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
/* tslint:disable */
|
||||
import { EntityDTOBase } from './entity-dtobase';
|
||||
export interface EntityDTOBaseOfCustomerDTOAndICustomer extends EntityDTOBase{
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
/* tslint:disable */
|
||||
import { EntityDTOBase } from './entity-dtobase';
|
||||
export interface EntityDTOBaseOfCustomerInfoDTOAndICustomer extends EntityDTOBase{
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
/* tslint:disable */
|
||||
import { EntityDTOBase } from './entity-dtobase';
|
||||
export interface EntityDTOBaseOfLabelDTOAndILabel extends EntityDTOBase{
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
/* tslint:disable */
|
||||
import { EntityDTOBase } from './entity-dtobase';
|
||||
export interface EntityDTOBaseOfPayerDTOAndIPayer extends EntityDTOBase{
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
/* tslint:disable */
|
||||
import { EntityDTOBase } from './entity-dtobase';
|
||||
export interface EntityDTOBaseOfShippingAddressDTOAndIShippingAddress extends EntityDTOBase{
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
/* tslint:disable */
|
||||
import { EntityDTOBase } from './entity-dtobase';
|
||||
export interface EntityDTOBaseOfUserDTOAndIUser extends EntityDTOBase{
|
||||
}
|
||||
4
apps/swagger/crm/src/lib/models/entity-dtobase.ts
Normal file
4
apps/swagger/crm/src/lib/models/entity-dtobase.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
/* tslint:disable */
|
||||
import { EntityDTO } from './entity-dto';
|
||||
export interface EntityDTOBase extends EntityDTO{
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
/* tslint:disable */
|
||||
import { EntityDTOReferenceContainer } from './entity-dtoreference-container';
|
||||
import { TenantDTO } from './tenant-dto';
|
||||
export interface EntityDTOContainerOfTenantDTO extends EntityDTOReferenceContainer{
|
||||
data?: TenantDTO;
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
/* tslint:disable */
|
||||
import { ReadOnlyEntityDTOOfAttributeDTOAndIAttribute } from './read-only-entity-dtoof-attribute-dtoand-iattribute';
|
||||
export interface EntityDTOOfAttributeDTOAndIAttribute extends ReadOnlyEntityDTOOfAttributeDTOAndIAttribute{
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
/* tslint:disable */
|
||||
import { ReadOnlyEntityDTOOfBonusCardDTOAndIBonusCard } from './read-only-entity-dtoof-bonus-card-dtoand-ibonus-card';
|
||||
export interface EntityDTOOfBonusCardDTOAndIBonusCard extends ReadOnlyEntityDTOOfBonusCardDTOAndIBonusCard{
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
/* tslint:disable */
|
||||
import { ReadOnlyEntityDTOOfCustomerDTOAndICustomer } from './read-only-entity-dtoof-customer-dtoand-icustomer';
|
||||
export interface EntityDTOOfCustomerDTOAndICustomer extends ReadOnlyEntityDTOOfCustomerDTOAndICustomer{
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
/* tslint:disable */
|
||||
import { ReadOnlyEntityDTOOfCustomerInfoDTOAndICustomer } from './read-only-entity-dtoof-customer-info-dtoand-icustomer';
|
||||
export interface EntityDTOOfCustomerInfoDTOAndICustomer extends ReadOnlyEntityDTOOfCustomerInfoDTOAndICustomer{
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
/* tslint:disable */
|
||||
import { ReadOnlyEntityDTOOfOptInDTOAndIOptIn } from './read-only-entity-dtoof-opt-in-dtoand-iopt-in';
|
||||
export interface EntityDTOOfOptInDTOAndIOptIn extends ReadOnlyEntityDTOOfOptInDTOAndIOptIn{
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
/* tslint:disable */
|
||||
import { ReadOnlyEntityDTOOfPayerDTOAndIPayer } from './read-only-entity-dtoof-payer-dtoand-ipayer';
|
||||
export interface EntityDTOOfPayerDTOAndIPayer extends ReadOnlyEntityDTOOfPayerDTOAndIPayer{
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
/* tslint:disable */
|
||||
import { ReadOnlyEntityDTOOfShippingAddressDTOAndIShippingAddress } from './read-only-entity-dtoof-shipping-address-dtoand-ishipping-address';
|
||||
export interface EntityDTOOfShippingAddressDTOAndIShippingAddress extends ReadOnlyEntityDTOOfShippingAddressDTOAndIShippingAddress{
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
/* tslint:disable */
|
||||
import { ReadOnlyEntityDTOOfUserDTOAndIUser } from './read-only-entity-dtoof-user-dtoand-iuser';
|
||||
export interface EntityDTOOfUserDTOAndIUser extends ReadOnlyEntityDTOOfUserDTOAndIUser{
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
/* tslint:disable */
|
||||
import { EntityDTOBase } from './entity-dtobase';
|
||||
export interface EntityKeyValueDTOOfStringAndString extends EntityDTOBase{
|
||||
enabled?: boolean;
|
||||
key?: string;
|
||||
selected?: boolean;
|
||||
value?: string;
|
||||
}
|
||||
@@ -1,9 +1,6 @@
|
||||
/* tslint:disable */
|
||||
import { ReadOnlyEntityDTOOfLabelDTOAndIReadOnlyLabel } from './read-only-entity-dtoof-label-dtoand-iread-only-label';
|
||||
import { EntityDTOContainerOfTenantDTO } from './entity-dtocontainer-of-tenant-dto';
|
||||
export interface LabelDTO extends ReadOnlyEntityDTOOfLabelDTOAndIReadOnlyLabel{
|
||||
bitMask?: number;
|
||||
import { EntityDTOBaseOfLabelDTOAndILabel } from './entity-dtobase-of-label-dtoand-ilabel';
|
||||
export interface LabelDTO extends EntityDTOBaseOfLabelDTOAndILabel{
|
||||
key?: string;
|
||||
name?: string;
|
||||
tenant?: EntityDTOContainerOfTenantDTO;
|
||||
}
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
/* tslint:disable */
|
||||
import { EntityDTOOfOptInDTOAndIOptIn } from './entity-dtoof-opt-in-dtoand-iopt-in';
|
||||
import { EntityDTOContainerOfCustomerDTO } from './entity-dtocontainer-of-customer-dto';
|
||||
import { EntityDTOContainerOfLabelDTO } from './entity-dtocontainer-of-label-dto';
|
||||
import { EntityDTOContainerOfTenantDTO } from './entity-dtocontainer-of-tenant-dto';
|
||||
export interface OptInDTO extends EntityDTOOfOptInDTOAndIOptIn{
|
||||
allow?: string;
|
||||
allowRequestToken?: string;
|
||||
allowRequested?: string;
|
||||
category?: string;
|
||||
customer?: EntityDTOContainerOfCustomerDTO;
|
||||
deny?: string;
|
||||
denyRequestToken?: string;
|
||||
denyRequested?: string;
|
||||
email?: string;
|
||||
key?: string;
|
||||
label?: EntityDTOContainerOfLabelDTO;
|
||||
sourceIP?: string;
|
||||
sourceSystem?: string;
|
||||
tenant: EntityDTOContainerOfTenantDTO;
|
||||
user?: string;
|
||||
}
|
||||
@@ -1,12 +1,8 @@
|
||||
/* tslint:disable */
|
||||
import { TouchedBase } from './touched-base';
|
||||
export interface OrganisationDTO extends TouchedBase{
|
||||
import { OrganisationNamesDTO } from './organisation-names-dto';
|
||||
export interface OrganisationDTO extends OrganisationNamesDTO{
|
||||
costUnit?: string;
|
||||
department?: string;
|
||||
gln?: string;
|
||||
legalForm?: string;
|
||||
name?: string;
|
||||
nameSuffix?: string;
|
||||
sector?: string;
|
||||
vatId?: string;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
/* tslint:disable */
|
||||
import { TouchedBase } from './touched-base';
|
||||
export interface OrganisationNamesDTO extends TouchedBase{
|
||||
department?: string;
|
||||
legalForm?: string;
|
||||
name?: string;
|
||||
nameSuffix?: string;
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
/* tslint:disable */
|
||||
import { EntityDTOOfPayerDTOAndIPayer } from './entity-dtoof-payer-dtoand-ipayer';
|
||||
import { EntityDTOBaseOfPayerDTOAndIPayer } from './entity-dtobase-of-payer-dtoand-ipayer';
|
||||
import { AddressDTO } from './address-dto';
|
||||
import { CommunicationDetailsDTO } from './communication-details-dto';
|
||||
import { Gender } from './gender';
|
||||
@@ -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 EntityDTOOfPayerDTOAndIPayer{
|
||||
export interface PayerDTO extends EntityDTOBaseOfPayerDTOAndIPayer{
|
||||
address?: AddressDTO;
|
||||
agentComment?: string;
|
||||
communicationDetails?: CommunicationDetailsDTO;
|
||||
|
||||
@@ -5,5 +5,5 @@ export interface PaymentSettingsDTO {
|
||||
channel?: string;
|
||||
denialReason?: string;
|
||||
deny?: string;
|
||||
paymentType: PaymentType;
|
||||
paymentType?: PaymentType;
|
||||
}
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
/* tslint:disable */
|
||||
import { EntityDTO } from './entity-dto';
|
||||
export interface ReadOnlyEntityDTOOfAttributeDTOAndIAttribute extends EntityDTO{
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
/* tslint:disable */
|
||||
import { EntityDTO } from './entity-dto';
|
||||
export interface ReadOnlyEntityDTOOfBonusCardDTOAndIBonusCard extends EntityDTO{
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
/* tslint:disable */
|
||||
import { EntityDTO } from './entity-dto';
|
||||
export interface ReadOnlyEntityDTOOfBranchDTOAndIReadOnlyBranch extends EntityDTO{
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
/* tslint:disable */
|
||||
import { EntityDTO } from './entity-dto';
|
||||
export interface ReadOnlyEntityDTOOfCountryDTOAndIReadOnlyCountry extends EntityDTO{
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
/* tslint:disable */
|
||||
import { EntityDTO } from './entity-dto';
|
||||
export interface ReadOnlyEntityDTOOfCustomerDTOAndICustomer extends EntityDTO{
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
/* tslint:disable */
|
||||
import { EntityDTO } from './entity-dto';
|
||||
export interface ReadOnlyEntityDTOOfCustomerInfoDTOAndICustomer extends EntityDTO{
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
/* tslint:disable */
|
||||
import { EntityDTO } from './entity-dto';
|
||||
export interface ReadOnlyEntityDTOOfLabelDTOAndIReadOnlyLabel extends EntityDTO{
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
/* tslint:disable */
|
||||
import { EntityDTO } from './entity-dto';
|
||||
export interface ReadOnlyEntityDTOOfOptInDTOAndIOptIn extends EntityDTO{
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
/* tslint:disable */
|
||||
import { EntityDTO } from './entity-dto';
|
||||
export interface ReadOnlyEntityDTOOfPayerDTOAndIPayer extends EntityDTO{
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
/* tslint:disable */
|
||||
import { EntityDTO } from './entity-dto';
|
||||
export interface ReadOnlyEntityDTOOfShippingAddressDTOAndIShippingAddress extends EntityDTO{
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
/* tslint:disable */
|
||||
import { EntityDTO } from './entity-dto';
|
||||
export interface ReadOnlyEntityDTOOfTenantDTOAndIReadOnlyTenant extends EntityDTO{
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
/* tslint:disable */
|
||||
import { EntityDTO } from './entity-dto';
|
||||
export interface ReadOnlyEntityDTOOfUserDTOAndIUser extends EntityDTO{
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
/* 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>;
|
||||
}
|
||||
@@ -0,0 +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>;
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
/* tslint:disable */
|
||||
import { ResponseArgs } from './response-args';
|
||||
import { OptInDTO } from './opt-in-dto';
|
||||
export interface ResponseArgsOfOptInDTO extends ResponseArgs{
|
||||
result?: OptInDTO;
|
||||
}
|
||||
@@ -1,11 +1,11 @@
|
||||
/* tslint:disable */
|
||||
import { EntityDTOOfShippingAddressDTOAndIShippingAddress } from './entity-dtoof-shipping-address-dtoand-ishipping-address';
|
||||
import { EntityDTOBaseOfShippingAddressDTOAndIShippingAddress } from './entity-dtobase-of-shipping-address-dtoand-ishipping-address';
|
||||
import { AddressDTO } from './address-dto';
|
||||
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 EntityDTOOfShippingAddressDTOAndIShippingAddress{
|
||||
export interface ShippingAddressDTO extends EntityDTOBaseOfShippingAddressDTOAndIShippingAddress{
|
||||
address?: AddressDTO;
|
||||
agentComment?: string;
|
||||
communicationDetails?: CommunicationDetailsDTO;
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
/* tslint:disable */
|
||||
import { ReadOnlyEntityDTOOfTenantDTOAndIReadOnlyTenant } from './read-only-entity-dtoof-tenant-dtoand-iread-only-tenant';
|
||||
export interface TenantDTO extends ReadOnlyEntityDTOOfTenantDTOAndIReadOnlyTenant{
|
||||
bitMask?: number;
|
||||
key?: string;
|
||||
name?: string;
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
/* tslint:disable */
|
||||
import { EntityDTOOfUserDTOAndIUser } from './entity-dtoof-user-dtoand-iuser';
|
||||
import { EntityDTOBaseOfUserDTOAndIUser } from './entity-dtobase-of-user-dtoand-iuser';
|
||||
import { Gender } from './gender';
|
||||
export interface UserDTO extends EntityDTOOfUserDTOAndIUser{
|
||||
export interface UserDTO extends EntityDTOBaseOfUserDTOAndIUser{
|
||||
email?: string;
|
||||
firstName?: string;
|
||||
gender: Gender;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
export { AddressService } from './services/address.service';
|
||||
export { CountryService } from './services/country.service';
|
||||
export { CustomerService } from './services/customer.service';
|
||||
export { OptInService } from './services/opt-in.service';
|
||||
export { LoyaltyCardService } from './services/loyalty-card.service';
|
||||
export { PayerService } from './services/payer.service';
|
||||
export { ShippingAddressService } from './services/shipping-address.service';
|
||||
|
||||
71
apps/swagger/crm/src/lib/services/address.service.ts
Normal file
71
apps/swagger/crm/src/lib/services/address.service.ts
Normal file
@@ -0,0 +1,71 @@
|
||||
/* tslint:disable */
|
||||
import { Injectable } from '@angular/core';
|
||||
import { HttpClient, HttpRequest, HttpResponse, HttpHeaders } from '@angular/common/http';
|
||||
import { BaseService as __BaseService } from '../base-service';
|
||||
import { CrmConfiguration as __Configuration } from '../crm-configuration';
|
||||
import { StrictHttpResponse as __StrictHttpResponse } from '../strict-http-response';
|
||||
import { Observable as __Observable } from 'rxjs';
|
||||
import { map as __map, filter as __filter } from 'rxjs/operators';
|
||||
|
||||
import { ResponseArgsOfIEnumerableOfAddressDTO } from '../models/response-args-of-ienumerable-of-address-dto';
|
||||
import { AddressDTO } from '../models/address-dto';
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
class AddressService extends __BaseService {
|
||||
static readonly AddressValidateAddressPath = '/customer/address/validate';
|
||||
|
||||
constructor(
|
||||
config: __Configuration,
|
||||
http: HttpClient
|
||||
) {
|
||||
super(config, http);
|
||||
}
|
||||
|
||||
/**
|
||||
* Validiert die angegebenen Adressdaten auf ihre Gültigkeit und liefert (soweit möglich) Vorschläge zur Korrektur
|
||||
* Result = null: Adresse ist gültig
|
||||
* Result = empty Array: Adresse ist ungültig, keine Adressvorschläge
|
||||
* Result = AdressDTO[x]: Adresse ist ungültig, x Adressvorschläge
|
||||
* @param address AdressDTO mit city, zipCode, street, streetNumber, country
|
||||
*/
|
||||
AddressValidateAddressResponse(address: AddressDTO): __Observable<__StrictHttpResponse<ResponseArgsOfIEnumerableOfAddressDTO>> {
|
||||
let __params = this.newParams();
|
||||
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'
|
||||
});
|
||||
|
||||
return this.http.request<any>(req).pipe(
|
||||
__filter(_r => _r instanceof HttpResponse),
|
||||
__map((_r) => {
|
||||
return _r as __StrictHttpResponse<ResponseArgsOfIEnumerableOfAddressDTO>;
|
||||
})
|
||||
);
|
||||
}
|
||||
/**
|
||||
* Validiert die angegebenen Adressdaten auf ihre Gültigkeit und liefert (soweit möglich) Vorschläge zur Korrektur
|
||||
* Result = null: Adresse ist gültig
|
||||
* Result = empty Array: Adresse ist ungültig, keine Adressvorschläge
|
||||
* Result = AdressDTO[x]: Adresse ist ungültig, x Adressvorschläge
|
||||
* @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)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
module AddressService {
|
||||
}
|
||||
|
||||
export { AddressService }
|
||||
91
apps/swagger/crm/src/lib/services/country.service.ts
Normal file
91
apps/swagger/crm/src/lib/services/country.service.ts
Normal file
@@ -0,0 +1,91 @@
|
||||
/* tslint:disable */
|
||||
import { Injectable } from '@angular/core';
|
||||
import { HttpClient, HttpRequest, HttpResponse, HttpHeaders } from '@angular/common/http';
|
||||
import { BaseService as __BaseService } from '../base-service';
|
||||
import { CrmConfiguration as __Configuration } from '../crm-configuration';
|
||||
import { StrictHttpResponse as __StrictHttpResponse } from '../strict-http-response';
|
||||
import { Observable as __Observable } from 'rxjs';
|
||||
import { map as __map, filter as __filter } from 'rxjs/operators';
|
||||
|
||||
import { ResponseArgsOfIEnumerableOfCountryDTO } from '../models/response-args-of-ienumerable-of-country-dto';
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
class CountryService extends __BaseService {
|
||||
static readonly CountryGetCountriesPath = '/customer/countries';
|
||||
|
||||
constructor(
|
||||
config: __Configuration,
|
||||
http: HttpClient
|
||||
) {
|
||||
super(config, http);
|
||||
}
|
||||
|
||||
/**
|
||||
* Länderliste
|
||||
* @param params The `CountryService.CountryGetCountriesParams` containing the following parameters:
|
||||
*
|
||||
* - `take`:
|
||||
*
|
||||
* - `skip`:
|
||||
*
|
||||
* - `locale`: Lokalisierung
|
||||
*/
|
||||
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'
|
||||
});
|
||||
|
||||
return this.http.request<any>(req).pipe(
|
||||
__filter(_r => _r instanceof HttpResponse),
|
||||
__map((_r) => {
|
||||
return _r as __StrictHttpResponse<ResponseArgsOfIEnumerableOfCountryDTO>;
|
||||
})
|
||||
);
|
||||
}
|
||||
/**
|
||||
* Länderliste
|
||||
* @param params The `CountryService.CountryGetCountriesParams` containing the following parameters:
|
||||
*
|
||||
* - `take`:
|
||||
*
|
||||
* - `skip`:
|
||||
*
|
||||
* - `locale`: Lokalisierung
|
||||
*/
|
||||
CountryGetCountries(params: CountryService.CountryGetCountriesParams): __Observable<ResponseArgsOfIEnumerableOfCountryDTO> {
|
||||
return this.CountryGetCountriesResponse(params).pipe(
|
||||
__map(_r => _r.body as ResponseArgsOfIEnumerableOfCountryDTO)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
module CountryService {
|
||||
|
||||
/**
|
||||
* Parameters for CountryGetCountries
|
||||
*/
|
||||
export interface CountryGetCountriesParams {
|
||||
take?: null | number;
|
||||
skip?: null | number;
|
||||
|
||||
/**
|
||||
* Lokalisierung
|
||||
*/
|
||||
locale?: null | string;
|
||||
}
|
||||
}
|
||||
|
||||
export { CountryService }
|
||||
@@ -15,15 +15,9 @@ import { QueryTokenDTO } from '../models/query-token-dto';
|
||||
import { ResponseArgsOfCustomerDTO } from '../models/response-args-of-customer-dto';
|
||||
import { CustomerDTO } from '../models/customer-dto';
|
||||
import { ResponseArgsOfBoolean } from '../models/response-args-of-boolean';
|
||||
import { ResponseArgsOfShippingAddressDTO } from '../models/response-args-of-shipping-address-dto';
|
||||
import { ShippingAddressDTO } from '../models/shipping-address-dto';
|
||||
import { ListResponseArgsOfShippingAddressDTO } from '../models/list-response-args-of-shipping-address-dto';
|
||||
import { ResponseArgsOfAssignedPayerDTO } from '../models/response-args-of-assigned-payer-dto';
|
||||
import { ResponseArgsOfIEnumerableOfCustomerInfoDTO } from '../models/response-args-of-ienumerable-of-customer-info-dto';
|
||||
import { ResponseArgsOfIEnumerableOfBonusCardInfoDTO } from '../models/response-args-of-ienumerable-of-bonus-card-info-dto';
|
||||
import { ResponseArgsOfIEnumerableOfCountryDTO } from '../models/response-args-of-ienumerable-of-country-dto';
|
||||
import { ResponseArgsOfIEnumerableOfAddressDTO } from '../models/response-args-of-ienumerable-of-address-dto';
|
||||
import { AddressDTO } from '../models/address-dto';
|
||||
import { ResponseArgsOfNullableBoolean } from '../models/response-args-of-nullable-boolean';
|
||||
import { ResponseArgsOfIEnumerableOfAutocompleteDTO } from '../models/response-args-of-ienumerable-of-autocomplete-dto';
|
||||
import { AutocompleteTokenDTO } from '../models/autocomplete-token-dto';
|
||||
@@ -42,25 +36,16 @@ class CustomerService extends __BaseService {
|
||||
static readonly CustomerPatchCustomerPath = '/customer/{customerId}';
|
||||
static readonly CustomerDeleteCustomerPath = '/customer/{customerId}';
|
||||
static readonly CustomerCreateCustomerPath = '/customer';
|
||||
static readonly CustomerCreateShippingAddressPath = '/customer/{customerId}/shippingaddress';
|
||||
static readonly CustomerGetShippingAddressesPath = '/customer/{customerId}/shippingaddress';
|
||||
static readonly CustomerCreateOnlineCustomerPath = '/customer/online';
|
||||
static readonly CustomerAddPayerReferencePath = '/customer/{customerId}/payer';
|
||||
static readonly CustomerDeactivateCustomerPath = '/customer/{customerId}/deactivate';
|
||||
static readonly CustomerGetCustomerByBonuscardPath = '/customer/bonuscard/scan';
|
||||
static readonly CustomerGetBonuscardsPath = '/customer/{customerId}/bonuscard';
|
||||
static readonly CustomerGetCountriesPath = '/customer/countries';
|
||||
static readonly CustomerValidateAddressPath = '/customer/address/validate';
|
||||
static readonly CustomerEmailExistsPath = '/store/customer/emailexists';
|
||||
static readonly CustomerUpdateShippingAddressPath = '/customer/{customerId}/shippingaddress/{shippingAddressId}';
|
||||
static readonly CustomerDeleteShippingAddressPath = '/customer/{customerId}/shippingaddress/{shippingAddressId}';
|
||||
static readonly CustomerCustomerAutocompletePath = '/customer/s/complete';
|
||||
static readonly CustomerGetAssignedPayersByCustomerIdPath = '/customer/{customerId}/assignedpayers';
|
||||
static readonly CustomerModifyPayerReferencePath = '/customer/{customerId}/payer/{payerId}/modifydefaultflag';
|
||||
static readonly CustomerGetCustomerHistoryPath = '/customer/{customerId}/history';
|
||||
static readonly CustomerGetShippingaddressPath = '/customer/shippingaddress/{shippingaddressId}';
|
||||
static readonly CustomerModifyShippingAddressFlagPath = '/customer/{customerId}/shippingaddress/{shippingAddressId}/modifydefaultflag';
|
||||
static readonly CustomerGetShippingAddressHistoryPath = '/customer/{customerId}/shippingaddress/{shippingAddressId}/history';
|
||||
|
||||
constructor(
|
||||
config: __Configuration,
|
||||
@@ -441,99 +426,6 @@ class CustomerService extends __BaseService {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Anlage einer neuen Lieferadresse
|
||||
* @param params The `CustomerService.CustomerCreateShippingAddressParams` containing the following parameters:
|
||||
*
|
||||
* - `shippingAddress`: Adressdaten
|
||||
*
|
||||
* - `customerId`: Kunde PK
|
||||
*/
|
||||
CustomerCreateShippingAddressResponse(params: CustomerService.CustomerCreateShippingAddressParams): __Observable<__StrictHttpResponse<ResponseArgsOfShippingAddressDTO>> {
|
||||
let __params = this.newParams();
|
||||
let __headers = new HttpHeaders();
|
||||
let __body: any = null;
|
||||
__body = params.shippingAddress;
|
||||
|
||||
let req = new HttpRequest<any>(
|
||||
'POST',
|
||||
this.rootUrl + `/customer/${encodeURIComponent(String(params.customerId))}/shippingaddress`,
|
||||
__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<ResponseArgsOfShippingAddressDTO>;
|
||||
})
|
||||
);
|
||||
}
|
||||
/**
|
||||
* Anlage einer neuen Lieferadresse
|
||||
* @param params The `CustomerService.CustomerCreateShippingAddressParams` containing the following parameters:
|
||||
*
|
||||
* - `shippingAddress`: Adressdaten
|
||||
*
|
||||
* - `customerId`: Kunde PK
|
||||
*/
|
||||
CustomerCreateShippingAddress(params: CustomerService.CustomerCreateShippingAddressParams): __Observable<ResponseArgsOfShippingAddressDTO> {
|
||||
return this.CustomerCreateShippingAddressResponse(params).pipe(
|
||||
__map(_r => _r.body as ResponseArgsOfShippingAddressDTO)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param params The `CustomerService.CustomerGetShippingAddressesParams` containing the following parameters:
|
||||
*
|
||||
* - `customerId`:
|
||||
*
|
||||
* - `take`:
|
||||
*
|
||||
* - `skip`:
|
||||
*/
|
||||
CustomerGetShippingAddressesResponse(params: CustomerService.CustomerGetShippingAddressesParams): __Observable<__StrictHttpResponse<ListResponseArgsOfShippingAddressDTO>> {
|
||||
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());
|
||||
let req = new HttpRequest<any>(
|
||||
'GET',
|
||||
this.rootUrl + `/customer/${encodeURIComponent(String(params.customerId))}/shippingaddress`,
|
||||
__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<ListResponseArgsOfShippingAddressDTO>;
|
||||
})
|
||||
);
|
||||
}
|
||||
/**
|
||||
* @param params The `CustomerService.CustomerGetShippingAddressesParams` containing the following parameters:
|
||||
*
|
||||
* - `customerId`:
|
||||
*
|
||||
* - `take`:
|
||||
*
|
||||
* - `skip`:
|
||||
*/
|
||||
CustomerGetShippingAddresses(params: CustomerService.CustomerGetShippingAddressesParams): __Observable<ListResponseArgsOfShippingAddressDTO> {
|
||||
return this.CustomerGetShippingAddressesResponse(params).pipe(
|
||||
__map(_r => _r.body as ListResponseArgsOfShippingAddressDTO)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Anlage eines neuen Webshop-Kunden
|
||||
* @param customerDto Kundendaten
|
||||
@@ -742,98 +634,6 @@ class CustomerService extends __BaseService {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Länderliste
|
||||
* @param params The `CustomerService.CustomerGetCountriesParams` containing the following parameters:
|
||||
*
|
||||
* - `take`:
|
||||
*
|
||||
* - `skip`:
|
||||
*
|
||||
* - `locale`: Lokalisierung
|
||||
*/
|
||||
CustomerGetCountriesResponse(params: CustomerService.CustomerGetCountriesParams): __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'
|
||||
});
|
||||
|
||||
return this.http.request<any>(req).pipe(
|
||||
__filter(_r => _r instanceof HttpResponse),
|
||||
__map((_r) => {
|
||||
return _r as __StrictHttpResponse<ResponseArgsOfIEnumerableOfCountryDTO>;
|
||||
})
|
||||
);
|
||||
}
|
||||
/**
|
||||
* Länderliste
|
||||
* @param params The `CustomerService.CustomerGetCountriesParams` containing the following parameters:
|
||||
*
|
||||
* - `take`:
|
||||
*
|
||||
* - `skip`:
|
||||
*
|
||||
* - `locale`: Lokalisierung
|
||||
*/
|
||||
CustomerGetCountries(params: CustomerService.CustomerGetCountriesParams): __Observable<ResponseArgsOfIEnumerableOfCountryDTO> {
|
||||
return this.CustomerGetCountriesResponse(params).pipe(
|
||||
__map(_r => _r.body as ResponseArgsOfIEnumerableOfCountryDTO)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Validiert die angegebenen Adressdaten auf ihre Gültigkeit und liefert (soweit möglich) Vorschläge zur Korrektur
|
||||
* Result = null: Adresse ist gültig
|
||||
* Result = empty Array: Adresse ist ungültig, keine Adressvorschläge
|
||||
* Result = AdressDTO[x]: Adresse ist ungültig, x Adressvorschläge
|
||||
* @param address AdressDTO mit city, zipCode, street, streetNumber, country
|
||||
*/
|
||||
CustomerValidateAddressResponse(address: AddressDTO): __Observable<__StrictHttpResponse<ResponseArgsOfIEnumerableOfAddressDTO>> {
|
||||
let __params = this.newParams();
|
||||
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'
|
||||
});
|
||||
|
||||
return this.http.request<any>(req).pipe(
|
||||
__filter(_r => _r instanceof HttpResponse),
|
||||
__map((_r) => {
|
||||
return _r as __StrictHttpResponse<ResponseArgsOfIEnumerableOfAddressDTO>;
|
||||
})
|
||||
);
|
||||
}
|
||||
/**
|
||||
* Validiert die angegebenen Adressdaten auf ihre Gültigkeit und liefert (soweit möglich) Vorschläge zur Korrektur
|
||||
* Result = null: Adresse ist gültig
|
||||
* Result = empty Array: Adresse ist ungültig, keine Adressvorschläge
|
||||
* Result = AdressDTO[x]: Adresse ist ungültig, x Adressvorschläge
|
||||
* @param address AdressDTO mit city, zipCode, street, streetNumber, country
|
||||
*/
|
||||
CustomerValidateAddress(address: AddressDTO): __Observable<ResponseArgsOfIEnumerableOfAddressDTO> {
|
||||
return this.CustomerValidateAddressResponse(address).pipe(
|
||||
__map(_r => _r.body as ResponseArgsOfIEnumerableOfAddressDTO)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Überprüft, ob für die übergebene E-Mail Adresse bereits ein Onlineshop-Konto vorhanden ist
|
||||
* @param email E-Mail Adresse
|
||||
@@ -870,106 +670,6 @@ class CustomerService extends __BaseService {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Änderung einer bestehenden Lieferadresse
|
||||
* @param params The `CustomerService.CustomerUpdateShippingAddressParams` containing the following parameters:
|
||||
*
|
||||
* - `shippingAddressId`: Lieferadresse PK
|
||||
*
|
||||
* - `shippingAddress`: Lieferadresse
|
||||
*
|
||||
* - `customerId`: Kunde PK
|
||||
*/
|
||||
CustomerUpdateShippingAddressResponse(params: CustomerService.CustomerUpdateShippingAddressParams): __Observable<__StrictHttpResponse<ResponseArgsOfShippingAddressDTO>> {
|
||||
let __params = this.newParams();
|
||||
let __headers = new HttpHeaders();
|
||||
let __body: any = null;
|
||||
|
||||
__body = params.shippingAddress;
|
||||
|
||||
let req = new HttpRequest<any>(
|
||||
'PUT',
|
||||
this.rootUrl + `/customer/${encodeURIComponent(String(params.customerId))}/shippingaddress/${encodeURIComponent(String(params.shippingAddressId))}`,
|
||||
__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<ResponseArgsOfShippingAddressDTO>;
|
||||
})
|
||||
);
|
||||
}
|
||||
/**
|
||||
* Änderung einer bestehenden Lieferadresse
|
||||
* @param params The `CustomerService.CustomerUpdateShippingAddressParams` containing the following parameters:
|
||||
*
|
||||
* - `shippingAddressId`: Lieferadresse PK
|
||||
*
|
||||
* - `shippingAddress`: Lieferadresse
|
||||
*
|
||||
* - `customerId`: Kunde PK
|
||||
*/
|
||||
CustomerUpdateShippingAddress(params: CustomerService.CustomerUpdateShippingAddressParams): __Observable<ResponseArgsOfShippingAddressDTO> {
|
||||
return this.CustomerUpdateShippingAddressResponse(params).pipe(
|
||||
__map(_r => _r.body as ResponseArgsOfShippingAddressDTO)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Löschen einer bestehenden Lieferadresse
|
||||
* @param params The `CustomerService.CustomerDeleteShippingAddressParams` containing the following parameters:
|
||||
*
|
||||
* - `shippingAddressId`: Lieferadresse PK
|
||||
*
|
||||
* - `customerId`: Kunde PK
|
||||
*
|
||||
* - `deletionComment`: Bemerkung zur Löschung
|
||||
*/
|
||||
CustomerDeleteShippingAddressResponse(params: CustomerService.CustomerDeleteShippingAddressParams): __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))}`,
|
||||
__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>;
|
||||
})
|
||||
);
|
||||
}
|
||||
/**
|
||||
* Löschen einer bestehenden Lieferadresse
|
||||
* @param params The `CustomerService.CustomerDeleteShippingAddressParams` containing the following parameters:
|
||||
*
|
||||
* - `shippingAddressId`: Lieferadresse PK
|
||||
*
|
||||
* - `customerId`: Kunde PK
|
||||
*
|
||||
* - `deletionComment`: Bemerkung zur Löschung
|
||||
*/
|
||||
CustomerDeleteShippingAddress(params: CustomerService.CustomerDeleteShippingAddressParams): __Observable<ResponseArgsOfBoolean> {
|
||||
return this.CustomerDeleteShippingAddressResponse(params).pipe(
|
||||
__map(_r => _r.body as ResponseArgsOfBoolean)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param payload undefined
|
||||
*/
|
||||
@@ -1147,136 +847,6 @@ class CustomerService extends __BaseService {
|
||||
__map(_r => _r.body as ResponseArgsOfHistoryDTO)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param shippingaddressId undefined
|
||||
*/
|
||||
CustomerGetShippingaddressResponse(shippingaddressId: number): __Observable<__StrictHttpResponse<ResponseArgsOfShippingAddressDTO>> {
|
||||
let __params = this.newParams();
|
||||
let __headers = new HttpHeaders();
|
||||
let __body: any = null;
|
||||
|
||||
let req = new HttpRequest<any>(
|
||||
'GET',
|
||||
this.rootUrl + `/customer/shippingaddress/${encodeURIComponent(String(shippingaddressId))}`,
|
||||
__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<ResponseArgsOfShippingAddressDTO>;
|
||||
})
|
||||
);
|
||||
}
|
||||
/**
|
||||
* @param shippingaddressId undefined
|
||||
*/
|
||||
CustomerGetShippingaddress(shippingaddressId: number): __Observable<ResponseArgsOfShippingAddressDTO> {
|
||||
return this.CustomerGetShippingaddressResponse(shippingaddressId).pipe(
|
||||
__map(_r => _r.body as ResponseArgsOfShippingAddressDTO)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param params The `CustomerService.CustomerModifyShippingAddressFlagParams` containing the following parameters:
|
||||
*
|
||||
* - `shippingAddressId`:
|
||||
*
|
||||
* - `customerId`:
|
||||
*
|
||||
* - `isDefault`:
|
||||
*/
|
||||
CustomerModifyShippingAddressFlagResponse(params: CustomerService.CustomerModifyShippingAddressFlagParams): __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`,
|
||||
__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<ResponseArgsOfShippingAddressDTO>;
|
||||
})
|
||||
);
|
||||
}
|
||||
/**
|
||||
* @param params The `CustomerService.CustomerModifyShippingAddressFlagParams` containing the following parameters:
|
||||
*
|
||||
* - `shippingAddressId`:
|
||||
*
|
||||
* - `customerId`:
|
||||
*
|
||||
* - `isDefault`:
|
||||
*/
|
||||
CustomerModifyShippingAddressFlag(params: CustomerService.CustomerModifyShippingAddressFlagParams): __Observable<ResponseArgsOfShippingAddressDTO> {
|
||||
return this.CustomerModifyShippingAddressFlagResponse(params).pipe(
|
||||
__map(_r => _r.body as ResponseArgsOfShippingAddressDTO)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param params The `CustomerService.CustomerGetShippingAddressHistoryParams` containing the following parameters:
|
||||
*
|
||||
* - `shippingAddressId`:
|
||||
*
|
||||
* - `customerId`:
|
||||
*
|
||||
* - `locale`:
|
||||
*/
|
||||
CustomerGetShippingAddressHistoryResponse(params: CustomerService.CustomerGetShippingAddressHistoryParams): __Observable<__StrictHttpResponse<ResponseArgsOfHistoryDTO>> {
|
||||
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`,
|
||||
__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<ResponseArgsOfHistoryDTO>;
|
||||
})
|
||||
);
|
||||
}
|
||||
/**
|
||||
* @param params The `CustomerService.CustomerGetShippingAddressHistoryParams` containing the following parameters:
|
||||
*
|
||||
* - `shippingAddressId`:
|
||||
*
|
||||
* - `customerId`:
|
||||
*
|
||||
* - `locale`:
|
||||
*/
|
||||
CustomerGetShippingAddressHistory(params: CustomerService.CustomerGetShippingAddressHistoryParams): __Observable<ResponseArgsOfHistoryDTO> {
|
||||
return this.CustomerGetShippingAddressHistoryResponse(params).pipe(
|
||||
__map(_r => _r.body as ResponseArgsOfHistoryDTO)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
module CustomerService {
|
||||
@@ -1362,31 +932,6 @@ module CustomerService {
|
||||
deletionComment?: null | string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Parameters for CustomerCreateShippingAddress
|
||||
*/
|
||||
export interface CustomerCreateShippingAddressParams {
|
||||
|
||||
/**
|
||||
* Adressdaten
|
||||
*/
|
||||
shippingAddress: ShippingAddressDTO;
|
||||
|
||||
/**
|
||||
* Kunde PK
|
||||
*/
|
||||
customerId: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Parameters for CustomerGetShippingAddresses
|
||||
*/
|
||||
export interface CustomerGetShippingAddressesParams {
|
||||
customerId: number;
|
||||
take?: null | number;
|
||||
skip?: null | number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Parameters for CustomerAddPayerReference
|
||||
*/
|
||||
@@ -1429,61 +974,6 @@ module CustomerService {
|
||||
deactivationComment?: null | string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Parameters for CustomerGetCountries
|
||||
*/
|
||||
export interface CustomerGetCountriesParams {
|
||||
take?: null | number;
|
||||
skip?: null | number;
|
||||
|
||||
/**
|
||||
* Lokalisierung
|
||||
*/
|
||||
locale?: null | string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Parameters for CustomerUpdateShippingAddress
|
||||
*/
|
||||
export interface CustomerUpdateShippingAddressParams {
|
||||
|
||||
/**
|
||||
* Lieferadresse PK
|
||||
*/
|
||||
shippingAddressId: number;
|
||||
|
||||
/**
|
||||
* Lieferadresse
|
||||
*/
|
||||
shippingAddress: ShippingAddressDTO;
|
||||
|
||||
/**
|
||||
* Kunde PK
|
||||
*/
|
||||
customerId: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Parameters for CustomerDeleteShippingAddress
|
||||
*/
|
||||
export interface CustomerDeleteShippingAddressParams {
|
||||
|
||||
/**
|
||||
* Lieferadresse PK
|
||||
*/
|
||||
shippingAddressId: number;
|
||||
|
||||
/**
|
||||
* Kunde PK
|
||||
*/
|
||||
customerId: number;
|
||||
|
||||
/**
|
||||
* Bemerkung zur Löschung
|
||||
*/
|
||||
deletionComment?: null | string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Parameters for CustomerGetAssignedPayersByCustomerId
|
||||
*/
|
||||
@@ -1510,24 +1000,6 @@ module CustomerService {
|
||||
customerId: number;
|
||||
locale?: null | string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Parameters for CustomerModifyShippingAddressFlag
|
||||
*/
|
||||
export interface CustomerModifyShippingAddressFlagParams {
|
||||
shippingAddressId: number;
|
||||
customerId: number;
|
||||
isDefault?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Parameters for CustomerGetShippingAddressHistory
|
||||
*/
|
||||
export interface CustomerGetShippingAddressHistoryParams {
|
||||
shippingAddressId: number;
|
||||
customerId: string;
|
||||
locale?: null | string;
|
||||
}
|
||||
}
|
||||
|
||||
export { CustomerService }
|
||||
|
||||
129
apps/swagger/crm/src/lib/services/loyalty-card.service.ts
Normal file
129
apps/swagger/crm/src/lib/services/loyalty-card.service.ts
Normal file
@@ -0,0 +1,129 @@
|
||||
/* tslint:disable */
|
||||
import { Injectable } from '@angular/core';
|
||||
import { HttpClient, HttpRequest, HttpResponse, HttpHeaders } from '@angular/common/http';
|
||||
import { BaseService as __BaseService } from '../base-service';
|
||||
import { CrmConfiguration as __Configuration } from '../crm-configuration';
|
||||
import { StrictHttpResponse as __StrictHttpResponse } from '../strict-http-response';
|
||||
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';
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
class LoyaltyCardService extends __BaseService {
|
||||
static readonly LoyaltyCardListInteressenPath = '/customer/interessen';
|
||||
static readonly LoyaltyCardSaveInteressenPath = '/customer/{customerId}/interessen';
|
||||
|
||||
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:
|
||||
*
|
||||
* - `interessen`:
|
||||
*
|
||||
* - `customerId`: PK Kunde
|
||||
*
|
||||
* - `locale`:
|
||||
*/
|
||||
LoyaltyCardSaveInteressenResponse(params: LoyaltyCardService.LoyaltyCardSaveInteressenParams): __Observable<__StrictHttpResponse<ResponseArgsOfIEnumerableOfKeyValueDTOOfStringAndString>> {
|
||||
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'
|
||||
});
|
||||
|
||||
return this.http.request<any>(req).pipe(
|
||||
__filter(_r => _r instanceof HttpResponse),
|
||||
__map((_r) => {
|
||||
return _r as __StrictHttpResponse<ResponseArgsOfIEnumerableOfKeyValueDTOOfStringAndString>;
|
||||
})
|
||||
);
|
||||
}
|
||||
/**
|
||||
* Interessen speichern
|
||||
* @param params The `LoyaltyCardService.LoyaltyCardSaveInteressenParams` containing the following parameters:
|
||||
*
|
||||
* - `interessen`:
|
||||
*
|
||||
* - `customerId`: PK Kunde
|
||||
*
|
||||
* - `locale`:
|
||||
*/
|
||||
LoyaltyCardSaveInteressen(params: LoyaltyCardService.LoyaltyCardSaveInteressenParams): __Observable<ResponseArgsOfIEnumerableOfKeyValueDTOOfStringAndString> {
|
||||
return this.LoyaltyCardSaveInteressenResponse(params).pipe(
|
||||
__map(_r => _r.body as ResponseArgsOfIEnumerableOfKeyValueDTOOfStringAndString)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
module LoyaltyCardService {
|
||||
|
||||
/**
|
||||
* Parameters for LoyaltyCardSaveInteressen
|
||||
*/
|
||||
export interface LoyaltyCardSaveInteressenParams {
|
||||
interessen: Array<string>;
|
||||
|
||||
/**
|
||||
* PK Kunde
|
||||
*/
|
||||
customerId: number;
|
||||
locale?: null | string;
|
||||
}
|
||||
}
|
||||
|
||||
export { LoyaltyCardService }
|
||||
@@ -1,185 +0,0 @@
|
||||
/* tslint:disable */
|
||||
import { Injectable } from '@angular/core';
|
||||
import { HttpClient, HttpRequest, HttpResponse, HttpHeaders } from '@angular/common/http';
|
||||
import { BaseService as __BaseService } from '../base-service';
|
||||
import { CrmConfiguration as __Configuration } from '../crm-configuration';
|
||||
import { StrictHttpResponse as __StrictHttpResponse } from '../strict-http-response';
|
||||
import { Observable as __Observable } from 'rxjs';
|
||||
import { map as __map, filter as __filter } from 'rxjs/operators';
|
||||
|
||||
import { ResponseArgsOfOptInDTO } from '../models/response-args-of-opt-in-dto';
|
||||
import { OptInDTO } from '../models/opt-in-dto';
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
class OptInService extends __BaseService {
|
||||
static readonly OptInGetOptInPath = '/optin/{optInId}';
|
||||
static readonly OptInUpdateOptInPath = '/optin/{optInId}';
|
||||
static readonly OptInDeleteOptInPath = '/optin/{optInId}';
|
||||
static readonly OptInCreateOptInPath = '/optin';
|
||||
|
||||
constructor(
|
||||
config: __Configuration,
|
||||
http: HttpClient
|
||||
) {
|
||||
super(config, http);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param optInId undefined
|
||||
*/
|
||||
OptInGetOptInResponse(optInId: number): __Observable<__StrictHttpResponse<ResponseArgsOfOptInDTO>> {
|
||||
let __params = this.newParams();
|
||||
let __headers = new HttpHeaders();
|
||||
let __body: any = null;
|
||||
|
||||
let req = new HttpRequest<any>(
|
||||
'GET',
|
||||
this.rootUrl + `/optin/${encodeURIComponent(String(optInId))}`,
|
||||
__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<ResponseArgsOfOptInDTO>;
|
||||
})
|
||||
);
|
||||
}
|
||||
/**
|
||||
* @param optInId undefined
|
||||
*/
|
||||
OptInGetOptIn(optInId: number): __Observable<ResponseArgsOfOptInDTO> {
|
||||
return this.OptInGetOptInResponse(optInId).pipe(
|
||||
__map(_r => _r.body as ResponseArgsOfOptInDTO)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param params The `OptInService.OptInUpdateOptInParams` containing the following parameters:
|
||||
*
|
||||
* - `optInId`:
|
||||
*
|
||||
* - `optIn`:
|
||||
*/
|
||||
OptInUpdateOptInResponse(params: OptInService.OptInUpdateOptInParams): __Observable<__StrictHttpResponse<ResponseArgsOfOptInDTO>> {
|
||||
let __params = this.newParams();
|
||||
let __headers = new HttpHeaders();
|
||||
let __body: any = null;
|
||||
|
||||
__body = params.optIn;
|
||||
let req = new HttpRequest<any>(
|
||||
'PUT',
|
||||
this.rootUrl + `/optin/${encodeURIComponent(String(params.optInId))}`,
|
||||
__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<ResponseArgsOfOptInDTO>;
|
||||
})
|
||||
);
|
||||
}
|
||||
/**
|
||||
* @param params The `OptInService.OptInUpdateOptInParams` containing the following parameters:
|
||||
*
|
||||
* - `optInId`:
|
||||
*
|
||||
* - `optIn`:
|
||||
*/
|
||||
OptInUpdateOptIn(params: OptInService.OptInUpdateOptInParams): __Observable<ResponseArgsOfOptInDTO> {
|
||||
return this.OptInUpdateOptInResponse(params).pipe(
|
||||
__map(_r => _r.body as ResponseArgsOfOptInDTO)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param optInId undefined
|
||||
*/
|
||||
OptInDeleteOptInResponse(optInId: number): __Observable<__StrictHttpResponse<ResponseArgsOfOptInDTO>> {
|
||||
let __params = this.newParams();
|
||||
let __headers = new HttpHeaders();
|
||||
let __body: any = null;
|
||||
|
||||
let req = new HttpRequest<any>(
|
||||
'DELETE',
|
||||
this.rootUrl + `/optin/${encodeURIComponent(String(optInId))}`,
|
||||
__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<ResponseArgsOfOptInDTO>;
|
||||
})
|
||||
);
|
||||
}
|
||||
/**
|
||||
* @param optInId undefined
|
||||
*/
|
||||
OptInDeleteOptIn(optInId: number): __Observable<ResponseArgsOfOptInDTO> {
|
||||
return this.OptInDeleteOptInResponse(optInId).pipe(
|
||||
__map(_r => _r.body as ResponseArgsOfOptInDTO)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param optIn undefined
|
||||
*/
|
||||
OptInCreateOptInResponse(optIn: OptInDTO): __Observable<__StrictHttpResponse<ResponseArgsOfOptInDTO>> {
|
||||
let __params = this.newParams();
|
||||
let __headers = new HttpHeaders();
|
||||
let __body: any = null;
|
||||
__body = optIn;
|
||||
let req = new HttpRequest<any>(
|
||||
'POST',
|
||||
this.rootUrl + `/optin`,
|
||||
__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<ResponseArgsOfOptInDTO>;
|
||||
})
|
||||
);
|
||||
}
|
||||
/**
|
||||
* @param optIn undefined
|
||||
*/
|
||||
OptInCreateOptIn(optIn: OptInDTO): __Observable<ResponseArgsOfOptInDTO> {
|
||||
return this.OptInCreateOptInResponse(optIn).pipe(
|
||||
__map(_r => _r.body as ResponseArgsOfOptInDTO)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
module OptInService {
|
||||
|
||||
/**
|
||||
* Parameters for OptInUpdateOptIn
|
||||
*/
|
||||
export interface OptInUpdateOptInParams {
|
||||
optInId: number;
|
||||
optIn: OptInDTO;
|
||||
}
|
||||
}
|
||||
|
||||
export { OptInService }
|
||||
446
apps/swagger/crm/src/lib/services/shipping-address.service.ts
Normal file
446
apps/swagger/crm/src/lib/services/shipping-address.service.ts
Normal file
@@ -0,0 +1,446 @@
|
||||
/* tslint:disable */
|
||||
import { Injectable } from '@angular/core';
|
||||
import { HttpClient, HttpRequest, HttpResponse, HttpHeaders } from '@angular/common/http';
|
||||
import { BaseService as __BaseService } from '../base-service';
|
||||
import { CrmConfiguration as __Configuration } from '../crm-configuration';
|
||||
import { StrictHttpResponse as __StrictHttpResponse } from '../strict-http-response';
|
||||
import { Observable as __Observable } from 'rxjs';
|
||||
import { map as __map, filter as __filter } from 'rxjs/operators';
|
||||
|
||||
import { ResponseArgsOfShippingAddressDTO } from '../models/response-args-of-shipping-address-dto';
|
||||
import { ShippingAddressDTO } from '../models/shipping-address-dto';
|
||||
import { ListResponseArgsOfShippingAddressDTO } from '../models/list-response-args-of-shipping-address-dto';
|
||||
import { ResponseArgsOfBoolean } from '../models/response-args-of-boolean';
|
||||
import { ResponseArgsOfHistoryDTO } from '../models/response-args-of-history-dto';
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
class ShippingAddressService extends __BaseService {
|
||||
static readonly ShippingAddressCreateShippingAddressPath = '/customer/{customerId}/shippingaddress';
|
||||
static readonly ShippingAddressGetShippingAddressesPath = '/customer/{customerId}/shippingaddress';
|
||||
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 ShippingAddressGetShippingAddressHistoryPath = '/customer/{customerId}/shippingaddress/{shippingAddressId}/history';
|
||||
|
||||
constructor(
|
||||
config: __Configuration,
|
||||
http: HttpClient
|
||||
) {
|
||||
super(config, http);
|
||||
}
|
||||
|
||||
/**
|
||||
* Anlage einer neuen Lieferadresse
|
||||
* @param params The `ShippingAddressService.ShippingAddressCreateShippingAddressParams` containing the following parameters:
|
||||
*
|
||||
* - `shippingAddress`: Adressdaten
|
||||
*
|
||||
* - `customerId`: Kunde PK
|
||||
*/
|
||||
ShippingAddressCreateShippingAddressResponse(params: ShippingAddressService.ShippingAddressCreateShippingAddressParams): __Observable<__StrictHttpResponse<ResponseArgsOfShippingAddressDTO>> {
|
||||
let __params = this.newParams();
|
||||
let __headers = new HttpHeaders();
|
||||
let __body: any = null;
|
||||
__body = params.shippingAddress;
|
||||
|
||||
let req = new HttpRequest<any>(
|
||||
'POST',
|
||||
this.rootUrl + `/customer/${encodeURIComponent(String(params.customerId))}/shippingaddress`,
|
||||
__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<ResponseArgsOfShippingAddressDTO>;
|
||||
})
|
||||
);
|
||||
}
|
||||
/**
|
||||
* Anlage einer neuen Lieferadresse
|
||||
* @param params The `ShippingAddressService.ShippingAddressCreateShippingAddressParams` containing the following parameters:
|
||||
*
|
||||
* - `shippingAddress`: Adressdaten
|
||||
*
|
||||
* - `customerId`: Kunde PK
|
||||
*/
|
||||
ShippingAddressCreateShippingAddress(params: ShippingAddressService.ShippingAddressCreateShippingAddressParams): __Observable<ResponseArgsOfShippingAddressDTO> {
|
||||
return this.ShippingAddressCreateShippingAddressResponse(params).pipe(
|
||||
__map(_r => _r.body as ResponseArgsOfShippingAddressDTO)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param params The `ShippingAddressService.ShippingAddressGetShippingAddressesParams` containing the following parameters:
|
||||
*
|
||||
* - `customerId`:
|
||||
*
|
||||
* - `take`:
|
||||
*
|
||||
* - `skip`:
|
||||
*/
|
||||
ShippingAddressGetShippingAddressesResponse(params: ShippingAddressService.ShippingAddressGetShippingAddressesParams): __Observable<__StrictHttpResponse<ListResponseArgsOfShippingAddressDTO>> {
|
||||
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());
|
||||
let req = new HttpRequest<any>(
|
||||
'GET',
|
||||
this.rootUrl + `/customer/${encodeURIComponent(String(params.customerId))}/shippingaddress`,
|
||||
__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<ListResponseArgsOfShippingAddressDTO>;
|
||||
})
|
||||
);
|
||||
}
|
||||
/**
|
||||
* @param params The `ShippingAddressService.ShippingAddressGetShippingAddressesParams` containing the following parameters:
|
||||
*
|
||||
* - `customerId`:
|
||||
*
|
||||
* - `take`:
|
||||
*
|
||||
* - `skip`:
|
||||
*/
|
||||
ShippingAddressGetShippingAddresses(params: ShippingAddressService.ShippingAddressGetShippingAddressesParams): __Observable<ListResponseArgsOfShippingAddressDTO> {
|
||||
return this.ShippingAddressGetShippingAddressesResponse(params).pipe(
|
||||
__map(_r => _r.body as ListResponseArgsOfShippingAddressDTO)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Änderung einer bestehenden Lieferadresse
|
||||
* @param params The `ShippingAddressService.ShippingAddressUpdateShippingAddressParams` containing the following parameters:
|
||||
*
|
||||
* - `shippingAddressId`: Lieferadresse PK
|
||||
*
|
||||
* - `shippingAddress`: Lieferadresse
|
||||
*
|
||||
* - `customerId`: Kunde PK
|
||||
*/
|
||||
ShippingAddressUpdateShippingAddressResponse(params: ShippingAddressService.ShippingAddressUpdateShippingAddressParams): __Observable<__StrictHttpResponse<ResponseArgsOfShippingAddressDTO>> {
|
||||
let __params = this.newParams();
|
||||
let __headers = new HttpHeaders();
|
||||
let __body: any = null;
|
||||
|
||||
__body = params.shippingAddress;
|
||||
|
||||
let req = new HttpRequest<any>(
|
||||
'PUT',
|
||||
this.rootUrl + `/customer/${encodeURIComponent(String(params.customerId))}/shippingaddress/${encodeURIComponent(String(params.shippingAddressId))}`,
|
||||
__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<ResponseArgsOfShippingAddressDTO>;
|
||||
})
|
||||
);
|
||||
}
|
||||
/**
|
||||
* Änderung einer bestehenden Lieferadresse
|
||||
* @param params The `ShippingAddressService.ShippingAddressUpdateShippingAddressParams` containing the following parameters:
|
||||
*
|
||||
* - `shippingAddressId`: Lieferadresse PK
|
||||
*
|
||||
* - `shippingAddress`: Lieferadresse
|
||||
*
|
||||
* - `customerId`: Kunde PK
|
||||
*/
|
||||
ShippingAddressUpdateShippingAddress(params: ShippingAddressService.ShippingAddressUpdateShippingAddressParams): __Observable<ResponseArgsOfShippingAddressDTO> {
|
||||
return this.ShippingAddressUpdateShippingAddressResponse(params).pipe(
|
||||
__map(_r => _r.body as ResponseArgsOfShippingAddressDTO)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Löschen einer bestehenden Lieferadresse
|
||||
* @param params The `ShippingAddressService.ShippingAddressDeleteShippingAddressParams` containing the following parameters:
|
||||
*
|
||||
* - `shippingAddressId`: Lieferadresse PK
|
||||
*
|
||||
* - `customerId`: Kunde PK
|
||||
*
|
||||
* - `deletionComment`: Bemerkung zur Löschung
|
||||
*/
|
||||
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))}`,
|
||||
__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>;
|
||||
})
|
||||
);
|
||||
}
|
||||
/**
|
||||
* Löschen einer bestehenden Lieferadresse
|
||||
* @param params The `ShippingAddressService.ShippingAddressDeleteShippingAddressParams` containing the following parameters:
|
||||
*
|
||||
* - `shippingAddressId`: Lieferadresse PK
|
||||
*
|
||||
* - `customerId`: Kunde PK
|
||||
*
|
||||
* - `deletionComment`: Bemerkung zur Löschung
|
||||
*/
|
||||
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>> {
|
||||
let __params = this.newParams();
|
||||
let __headers = new HttpHeaders();
|
||||
let __body: any = null;
|
||||
|
||||
let req = new HttpRequest<any>(
|
||||
'GET',
|
||||
this.rootUrl + `/customer/shippingaddress/${encodeURIComponent(String(shippingaddressId))}`,
|
||||
__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<ResponseArgsOfShippingAddressDTO>;
|
||||
})
|
||||
);
|
||||
}
|
||||
/**
|
||||
* @param shippingaddressId undefined
|
||||
*/
|
||||
ShippingAddressGetShippingaddress(shippingaddressId: number): __Observable<ResponseArgsOfShippingAddressDTO> {
|
||||
return this.ShippingAddressGetShippingaddressResponse(shippingaddressId).pipe(
|
||||
__map(_r => _r.body as ResponseArgsOfShippingAddressDTO)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param params The `ShippingAddressService.ShippingAddressModifyShippingAddressFlagParams` containing the following parameters:
|
||||
*
|
||||
* - `shippingAddressId`:
|
||||
*
|
||||
* - `customerId`:
|
||||
*
|
||||
* - `isDefault`:
|
||||
*/
|
||||
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`,
|
||||
__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<ResponseArgsOfShippingAddressDTO>;
|
||||
})
|
||||
);
|
||||
}
|
||||
/**
|
||||
* @param params The `ShippingAddressService.ShippingAddressModifyShippingAddressFlagParams` containing the following parameters:
|
||||
*
|
||||
* - `shippingAddressId`:
|
||||
*
|
||||
* - `customerId`:
|
||||
*
|
||||
* - `isDefault`:
|
||||
*/
|
||||
ShippingAddressModifyShippingAddressFlag(params: ShippingAddressService.ShippingAddressModifyShippingAddressFlagParams): __Observable<ResponseArgsOfShippingAddressDTO> {
|
||||
return this.ShippingAddressModifyShippingAddressFlagResponse(params).pipe(
|
||||
__map(_r => _r.body as ResponseArgsOfShippingAddressDTO)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param params The `ShippingAddressService.ShippingAddressGetShippingAddressHistoryParams` containing the following parameters:
|
||||
*
|
||||
* - `shippingAddressId`:
|
||||
*
|
||||
* - `customerId`:
|
||||
*
|
||||
* - `locale`:
|
||||
*/
|
||||
ShippingAddressGetShippingAddressHistoryResponse(params: ShippingAddressService.ShippingAddressGetShippingAddressHistoryParams): __Observable<__StrictHttpResponse<ResponseArgsOfHistoryDTO>> {
|
||||
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`,
|
||||
__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<ResponseArgsOfHistoryDTO>;
|
||||
})
|
||||
);
|
||||
}
|
||||
/**
|
||||
* @param params The `ShippingAddressService.ShippingAddressGetShippingAddressHistoryParams` containing the following parameters:
|
||||
*
|
||||
* - `shippingAddressId`:
|
||||
*
|
||||
* - `customerId`:
|
||||
*
|
||||
* - `locale`:
|
||||
*/
|
||||
ShippingAddressGetShippingAddressHistory(params: ShippingAddressService.ShippingAddressGetShippingAddressHistoryParams): __Observable<ResponseArgsOfHistoryDTO> {
|
||||
return this.ShippingAddressGetShippingAddressHistoryResponse(params).pipe(
|
||||
__map(_r => _r.body as ResponseArgsOfHistoryDTO)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
module ShippingAddressService {
|
||||
|
||||
/**
|
||||
* Parameters for ShippingAddressCreateShippingAddress
|
||||
*/
|
||||
export interface ShippingAddressCreateShippingAddressParams {
|
||||
|
||||
/**
|
||||
* Adressdaten
|
||||
*/
|
||||
shippingAddress: ShippingAddressDTO;
|
||||
|
||||
/**
|
||||
* Kunde PK
|
||||
*/
|
||||
customerId: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Parameters for ShippingAddressGetShippingAddresses
|
||||
*/
|
||||
export interface ShippingAddressGetShippingAddressesParams {
|
||||
customerId: number;
|
||||
take?: null | number;
|
||||
skip?: null | number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Parameters for ShippingAddressUpdateShippingAddress
|
||||
*/
|
||||
export interface ShippingAddressUpdateShippingAddressParams {
|
||||
|
||||
/**
|
||||
* Lieferadresse PK
|
||||
*/
|
||||
shippingAddressId: number;
|
||||
|
||||
/**
|
||||
* Lieferadresse
|
||||
*/
|
||||
shippingAddress: ShippingAddressDTO;
|
||||
|
||||
/**
|
||||
* Kunde PK
|
||||
*/
|
||||
customerId: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Parameters for ShippingAddressDeleteShippingAddress
|
||||
*/
|
||||
export interface ShippingAddressDeleteShippingAddressParams {
|
||||
|
||||
/**
|
||||
* Lieferadresse PK
|
||||
*/
|
||||
shippingAddressId: number;
|
||||
|
||||
/**
|
||||
* Kunde PK
|
||||
*/
|
||||
customerId: number;
|
||||
|
||||
/**
|
||||
* Bemerkung zur Löschung
|
||||
*/
|
||||
deletionComment?: null | string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Parameters for ShippingAddressModifyShippingAddressFlag
|
||||
*/
|
||||
export interface ShippingAddressModifyShippingAddressFlagParams {
|
||||
shippingAddressId: number;
|
||||
customerId: number;
|
||||
isDefault?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Parameters for ShippingAddressGetShippingAddressHistory
|
||||
*/
|
||||
export interface ShippingAddressGetShippingAddressHistoryParams {
|
||||
shippingAddressId: number;
|
||||
customerId: string;
|
||||
locale?: null | string;
|
||||
}
|
||||
}
|
||||
|
||||
export { ShippingAddressService }
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"$schema": "../node_modules/ng-swagger-gen/ng-swagger-gen-schema.json",
|
||||
"swagger": "https://isa-test.paragon-data.net/crm/v3/swagger.json",
|
||||
"swagger": "https://isa-test.paragon-data.net/crm/v6/swagger.json",
|
||||
"output": "apps/swagger/crm/src/lib",
|
||||
"prefix": "Crm",
|
||||
"minParamsForContainer": 2,
|
||||
|
||||
Reference in New Issue
Block a user