mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-31 09:37:15 +01:00
Generierung swagger apis crm und checkout
This commit is contained in:
@@ -20,8 +20,8 @@ import {
|
||||
ShoppingCartDTO,
|
||||
StoreCheckoutService,
|
||||
UpdateShoppingCartItemDTO,
|
||||
InputDTO,
|
||||
} from '@swagger/checkout';
|
||||
import { InputDTO } from '@swagger/crm';
|
||||
import { DisplayOrderDTO, OrderCheckoutService } from '@swagger/oms';
|
||||
import { isNullOrUndefined, memorize } from '@utils/common';
|
||||
import { combineLatest, Observable, of, concat, zip, BehaviorSubject, isObservable } from 'rxjs';
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
/* tslint:disable */
|
||||
export type InputType = 0 | 1 | 2 | 4 | 8 | 16 | 32 | 64 | 96;
|
||||
export type InputType = 0 | 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128 | 256 | 512 | 1024 | 2048 | 3072 | 4096 | 8192 | 12288;
|
||||
@@ -2,6 +2,5 @@
|
||||
export interface OrderByDTO {
|
||||
by?: string;
|
||||
desc?: boolean;
|
||||
key?: string;
|
||||
label?: string;
|
||||
}
|
||||
|
||||
@@ -60,6 +60,7 @@ 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 { KeyValueDTOOfStringAndString } from './models/key-value-dtoof-string-and-string';
|
||||
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';
|
||||
@@ -75,6 +76,9 @@ export { ResponseArgsOfAssignedPayerDTO } from './models/response-args-of-assign
|
||||
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';
|
||||
@@ -87,9 +91,6 @@ 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 { 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 { 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';
|
||||
|
||||
@@ -11,6 +11,7 @@ import { CustomerType } from './customer-type';
|
||||
import { KeyValueDTOOfStringAndString } from './key-value-dtoof-string-and-string';
|
||||
import { Gender } from './gender';
|
||||
import { EntityDTOContainerOfLabelDTO } from './entity-dtocontainer-of-label-dto';
|
||||
import { LinkedRecordDTO } from './linked-record-dto';
|
||||
import { NotificationChannel } from './notification-channel';
|
||||
import { OrganisationDTO } from './organisation-dto';
|
||||
import { AssignedPayerDTO } from './assigned-payer-dto';
|
||||
@@ -40,7 +41,7 @@ export interface CustomerDTO extends EntityDTOOfCustomerDTOAndICustomer{
|
||||
isGuestAccount?: boolean;
|
||||
label?: EntityDTOContainerOfLabelDTO;
|
||||
lastName?: string;
|
||||
linkedRecords?: Array<KeyValueDTOOfStringAndString>;
|
||||
linkedRecords?: Array<LinkedRecordDTO>;
|
||||
notificationChannels?: NotificationChannel;
|
||||
orderCount?: number;
|
||||
organisation?: OrganisationDTO;
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
/* tslint:disable */
|
||||
export type InputType = 0 | 1 | 2 | 4 | 8 | 16 | 32 | 64 | 96;
|
||||
export type InputType = 0 | 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128 | 256 | 512 | 1024 | 2048 | 3072 | 4096 | 8192 | 12288;
|
||||
7
apps/swagger/crm/src/lib/models/linked-record-dto.ts
Normal file
7
apps/swagger/crm/src/lib/models/linked-record-dto.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/* tslint:disable */
|
||||
export interface LinkedRecordDTO {
|
||||
isSource?: boolean;
|
||||
number?: string;
|
||||
pk?: string;
|
||||
repository?: string;
|
||||
}
|
||||
@@ -2,6 +2,9 @@
|
||||
export interface ProblemDetails {
|
||||
detail?: string;
|
||||
extensions?: {[key: string]: any};
|
||||
|
||||
instance?: string;
|
||||
status?: number;
|
||||
title?: string;
|
||||
type?: string;
|
||||
[prop: string]: any;
|
||||
}
|
||||
|
||||
@@ -20,6 +20,7 @@ import { ListResponseArgsOfShippingAddressDTO } from '../models/list-response-ar
|
||||
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';
|
||||
@@ -27,7 +28,6 @@ import { ResponseArgsOfIEnumerableOfAutocompleteDTO } from '../models/response-a
|
||||
import { AutocompleteTokenDTO } from '../models/autocomplete-token-dto';
|
||||
import { ListResponseArgsOfAssignedPayerDTO } from '../models/list-response-args-of-assigned-payer-dto';
|
||||
import { ResponseArgsOfHistoryDTO } from '../models/response-args-of-history-dto';
|
||||
import { ResponseArgsOfIEnumerableOfCountryDTO } from '../models/response-args-of-ienumerable-of-country-dto';
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
@@ -47,6 +47,7 @@ class CustomerService extends __BaseService {
|
||||
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}';
|
||||
@@ -58,7 +59,6 @@ class CustomerService extends __BaseService {
|
||||
static readonly CustomerGetShippingaddressPath = '/customer/shippingaddress/{shippingaddressId}';
|
||||
static readonly CustomerModifyShippingAddressFlagPath = '/customer/{customerId}/shippingaddress/{shippingAddressId}/modifydefaultflag';
|
||||
static readonly CustomerGetShippingAddressHistoryPath = '/customer/{customerId}/shippingaddress/{shippingAddressId}/history';
|
||||
static readonly CustomerGetCountriesPath = '/customer/countries';
|
||||
|
||||
constructor(
|
||||
config: __Configuration,
|
||||
@@ -83,7 +83,7 @@ class CustomerService extends __BaseService {
|
||||
if (params.locale != null) __params = __params.set('locale', params.locale.toString());
|
||||
let req = new HttpRequest<any>(
|
||||
'GET',
|
||||
this.rootUrl + `/customer/${encodeURIComponent(params.customerId)}/canextend`,
|
||||
this.rootUrl + `/customer/${encodeURIComponent(String(params.customerId))}/canextend`,
|
||||
__body,
|
||||
{
|
||||
headers: __headers,
|
||||
@@ -197,7 +197,7 @@ class CustomerService extends __BaseService {
|
||||
if (params.eagerLoading != null) __params = __params.set('eagerLoading', params.eagerLoading.toString());
|
||||
let req = new HttpRequest<any>(
|
||||
'GET',
|
||||
this.rootUrl + `/customer/${encodeURIComponent(params.customerId)}`,
|
||||
this.rootUrl + `/customer/${encodeURIComponent(String(params.customerId))}`,
|
||||
__body,
|
||||
{
|
||||
headers: __headers,
|
||||
@@ -242,7 +242,7 @@ class CustomerService extends __BaseService {
|
||||
__body = params.customer;
|
||||
let req = new HttpRequest<any>(
|
||||
'PUT',
|
||||
this.rootUrl + `/customer/${encodeURIComponent(params.customerId)}`,
|
||||
this.rootUrl + `/customer/${encodeURIComponent(String(params.customerId))}`,
|
||||
__body,
|
||||
{
|
||||
headers: __headers,
|
||||
@@ -290,7 +290,7 @@ class CustomerService extends __BaseService {
|
||||
if (params.eagerLoading != null) __params = __params.set('eagerLoading', params.eagerLoading.toString());
|
||||
let req = new HttpRequest<any>(
|
||||
'PATCH',
|
||||
this.rootUrl + `/customer/${encodeURIComponent(params.customerId)}`,
|
||||
this.rootUrl + `/customer/${encodeURIComponent(String(params.customerId))}`,
|
||||
__body,
|
||||
{
|
||||
headers: __headers,
|
||||
@@ -339,7 +339,7 @@ class CustomerService extends __BaseService {
|
||||
if (params.deletionComment != null) __params = __params.set('deletionComment', params.deletionComment.toString());
|
||||
let req = new HttpRequest<any>(
|
||||
'DELETE',
|
||||
this.rootUrl + `/customer/${encodeURIComponent(params.customerId)}`,
|
||||
this.rootUrl + `/customer/${encodeURIComponent(String(params.customerId))}`,
|
||||
__body,
|
||||
{
|
||||
headers: __headers,
|
||||
@@ -422,7 +422,7 @@ class CustomerService extends __BaseService {
|
||||
|
||||
let req = new HttpRequest<any>(
|
||||
'POST',
|
||||
this.rootUrl + `/customer/${encodeURIComponent(params.customerId)}/shippingaddress`,
|
||||
this.rootUrl + `/customer/${encodeURIComponent(String(params.customerId))}/shippingaddress`,
|
||||
__body,
|
||||
{
|
||||
headers: __headers,
|
||||
@@ -461,7 +461,7 @@ class CustomerService extends __BaseService {
|
||||
|
||||
let req = new HttpRequest<any>(
|
||||
'GET',
|
||||
this.rootUrl + `/customer/${encodeURIComponent(customerId)}/shippingaddress`,
|
||||
this.rootUrl + `/customer/${encodeURIComponent(String(customerId))}/shippingaddress`,
|
||||
__body,
|
||||
{
|
||||
headers: __headers,
|
||||
@@ -543,7 +543,7 @@ class CustomerService extends __BaseService {
|
||||
if (params.eagerLoading != null) __params = __params.set('eagerLoading', params.eagerLoading.toString());
|
||||
let req = new HttpRequest<any>(
|
||||
'POST',
|
||||
this.rootUrl + `/customer/${encodeURIComponent(params.customerId)}/payer`,
|
||||
this.rootUrl + `/customer/${encodeURIComponent(String(params.customerId))}/payer`,
|
||||
__body,
|
||||
{
|
||||
headers: __headers,
|
||||
@@ -592,7 +592,7 @@ class CustomerService extends __BaseService {
|
||||
if (params.deactivationComment != null) __params = __params.set('deactivationComment', params.deactivationComment.toString());
|
||||
let req = new HttpRequest<any>(
|
||||
'PATCH',
|
||||
this.rootUrl + `/customer/${encodeURIComponent(params.customerId)}/deactivate`,
|
||||
this.rootUrl + `/customer/${encodeURIComponent(String(params.customerId))}/deactivate`,
|
||||
__body,
|
||||
{
|
||||
headers: __headers,
|
||||
@@ -668,7 +668,7 @@ class CustomerService extends __BaseService {
|
||||
|
||||
let req = new HttpRequest<any>(
|
||||
'GET',
|
||||
this.rootUrl + `/customer/${encodeURIComponent(customerId)}/bonuscard`,
|
||||
this.rootUrl + `/customer/${encodeURIComponent(String(customerId))}/bonuscard`,
|
||||
__body,
|
||||
{
|
||||
headers: __headers,
|
||||
@@ -693,6 +693,56 @@ 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
|
||||
@@ -790,7 +840,7 @@ class CustomerService extends __BaseService {
|
||||
|
||||
let req = new HttpRequest<any>(
|
||||
'PUT',
|
||||
this.rootUrl + `/customer/${encodeURIComponent(params.customerId)}/shippingaddress/${encodeURIComponent(params.shippingAddressId)}`,
|
||||
this.rootUrl + `/customer/${encodeURIComponent(String(params.customerId))}/shippingaddress/${encodeURIComponent(String(params.shippingAddressId))}`,
|
||||
__body,
|
||||
{
|
||||
headers: __headers,
|
||||
@@ -837,7 +887,7 @@ class CustomerService extends __BaseService {
|
||||
|
||||
let req = new HttpRequest<any>(
|
||||
'DELETE',
|
||||
this.rootUrl + `/customer/${encodeURIComponent(params.customerId)}/shippingaddress/${encodeURIComponent(params.shippingAddressId)}`,
|
||||
this.rootUrl + `/customer/${encodeURIComponent(String(params.customerId))}/shippingaddress/${encodeURIComponent(String(params.shippingAddressId))}`,
|
||||
__body,
|
||||
{
|
||||
headers: __headers,
|
||||
@@ -910,7 +960,7 @@ class CustomerService extends __BaseService {
|
||||
|
||||
let req = new HttpRequest<any>(
|
||||
'GET',
|
||||
this.rootUrl + `/customer/${encodeURIComponent(customerId)}/assignedpayers`,
|
||||
this.rootUrl + `/customer/${encodeURIComponent(String(customerId))}/assignedpayers`,
|
||||
__body,
|
||||
{
|
||||
headers: __headers,
|
||||
@@ -955,7 +1005,7 @@ class CustomerService extends __BaseService {
|
||||
if (params.eagerLoading != null) __params = __params.set('eagerLoading', params.eagerLoading.toString());
|
||||
let req = new HttpRequest<any>(
|
||||
'PATCH',
|
||||
this.rootUrl + `/customer/${encodeURIComponent(params.customerId)}/payer/${encodeURIComponent(params.payerId)}/modifydefaultflag`,
|
||||
this.rootUrl + `/customer/${encodeURIComponent(String(params.customerId))}/payer/${encodeURIComponent(String(params.payerId))}/modifydefaultflag`,
|
||||
__body,
|
||||
{
|
||||
headers: __headers,
|
||||
@@ -1002,7 +1052,7 @@ class CustomerService extends __BaseService {
|
||||
if (params.locale != null) __params = __params.set('locale', params.locale.toString());
|
||||
let req = new HttpRequest<any>(
|
||||
'GET',
|
||||
this.rootUrl + `/customer/${encodeURIComponent(params.customerId)}/history`,
|
||||
this.rootUrl + `/customer/${encodeURIComponent(String(params.customerId))}/history`,
|
||||
__body,
|
||||
{
|
||||
headers: __headers,
|
||||
@@ -1040,7 +1090,7 @@ class CustomerService extends __BaseService {
|
||||
|
||||
let req = new HttpRequest<any>(
|
||||
'GET',
|
||||
this.rootUrl + `/customer/shippingaddress/${encodeURIComponent(shippingaddressId)}`,
|
||||
this.rootUrl + `/customer/shippingaddress/${encodeURIComponent(String(shippingaddressId))}`,
|
||||
__body,
|
||||
{
|
||||
headers: __headers,
|
||||
@@ -1082,7 +1132,7 @@ class CustomerService extends __BaseService {
|
||||
if (params.isDefault != null) __params = __params.set('isDefault', params.isDefault.toString());
|
||||
let req = new HttpRequest<any>(
|
||||
'PATCH',
|
||||
this.rootUrl + `/customer/${encodeURIComponent(params.customerId)}/shippingaddress/${encodeURIComponent(params.shippingAddressId)}/modifydefaultflag`,
|
||||
this.rootUrl + `/customer/${encodeURIComponent(String(params.customerId))}/shippingaddress/${encodeURIComponent(String(params.shippingAddressId))}/modifydefaultflag`,
|
||||
__body,
|
||||
{
|
||||
headers: __headers,
|
||||
@@ -1130,7 +1180,7 @@ class CustomerService extends __BaseService {
|
||||
if (params.locale != null) __params = __params.set('locale', params.locale.toString());
|
||||
let req = new HttpRequest<any>(
|
||||
'GET',
|
||||
this.rootUrl + `/customer/${encodeURIComponent(params.customerId)}/shippingaddress/${encodeURIComponent(params.shippingAddressId)}/history`,
|
||||
this.rootUrl + `/customer/${encodeURIComponent(String(params.customerId))}/shippingaddress/${encodeURIComponent(String(params.shippingAddressId))}/history`,
|
||||
__body,
|
||||
{
|
||||
headers: __headers,
|
||||
@@ -1159,54 +1209,6 @@ class CustomerService extends __BaseService {
|
||||
__map(_r => _r.body as ResponseArgsOfHistoryDTO)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param params The `CustomerService.CustomerGetCountriesParams` containing the following parameters:
|
||||
*
|
||||
* - `take`:
|
||||
*
|
||||
* - `skip`:
|
||||
*
|
||||
* - `locale`:
|
||||
*/
|
||||
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>;
|
||||
})
|
||||
);
|
||||
}
|
||||
/**
|
||||
* @param params The `CustomerService.CustomerGetCountriesParams` containing the following parameters:
|
||||
*
|
||||
* - `take`:
|
||||
*
|
||||
* - `skip`:
|
||||
*
|
||||
* - `locale`:
|
||||
*/
|
||||
CustomerGetCountries(params: CustomerService.CustomerGetCountriesParams): __Observable<ResponseArgsOfIEnumerableOfCountryDTO> {
|
||||
return this.CustomerGetCountriesResponse(params).pipe(
|
||||
__map(_r => _r.body as ResponseArgsOfIEnumerableOfCountryDTO)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
module CustomerService {
|
||||
@@ -1350,6 +1352,19 @@ module CustomerService {
|
||||
deactivationComment?: null | string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Parameters for CustomerGetCountries
|
||||
*/
|
||||
export interface CustomerGetCountriesParams {
|
||||
take?: null | number;
|
||||
skip?: null | number;
|
||||
|
||||
/**
|
||||
* Lokalisierung
|
||||
*/
|
||||
locale?: null | string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Parameters for CustomerUpdateShippingAddress
|
||||
*/
|
||||
@@ -1422,15 +1437,6 @@ module CustomerService {
|
||||
customerId: string;
|
||||
locale?: null | string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Parameters for CustomerGetCountries
|
||||
*/
|
||||
export interface CustomerGetCountriesParams {
|
||||
take?: null | number;
|
||||
skip?: null | number;
|
||||
locale?: null | string;
|
||||
}
|
||||
}
|
||||
|
||||
export { CustomerService }
|
||||
|
||||
@@ -35,7 +35,7 @@ class OptInService extends __BaseService {
|
||||
|
||||
let req = new HttpRequest<any>(
|
||||
'GET',
|
||||
this.rootUrl + `/optin/${encodeURIComponent(optInId)}`,
|
||||
this.rootUrl + `/optin/${encodeURIComponent(String(optInId))}`,
|
||||
__body,
|
||||
{
|
||||
headers: __headers,
|
||||
@@ -74,7 +74,7 @@ class OptInService extends __BaseService {
|
||||
__body = params.optIn;
|
||||
let req = new HttpRequest<any>(
|
||||
'PUT',
|
||||
this.rootUrl + `/optin/${encodeURIComponent(params.optInId)}`,
|
||||
this.rootUrl + `/optin/${encodeURIComponent(String(params.optInId))}`,
|
||||
__body,
|
||||
{
|
||||
headers: __headers,
|
||||
@@ -112,7 +112,7 @@ class OptInService extends __BaseService {
|
||||
|
||||
let req = new HttpRequest<any>(
|
||||
'DELETE',
|
||||
this.rootUrl + `/optin/${encodeURIComponent(optInId)}`,
|
||||
this.rootUrl + `/optin/${encodeURIComponent(String(optInId))}`,
|
||||
__body,
|
||||
{
|
||||
headers: __headers,
|
||||
|
||||
@@ -81,7 +81,7 @@ class PayerService extends __BaseService {
|
||||
__body = params.payer;
|
||||
let req = new HttpRequest<any>(
|
||||
'PUT',
|
||||
this.rootUrl + `/payer/${encodeURIComponent(params.payerId)}`,
|
||||
this.rootUrl + `/payer/${encodeURIComponent(String(params.payerId))}`,
|
||||
__body,
|
||||
{
|
||||
headers: __headers,
|
||||
@@ -120,7 +120,7 @@ class PayerService extends __BaseService {
|
||||
|
||||
let req = new HttpRequest<any>(
|
||||
'GET',
|
||||
this.rootUrl + `/payer/${encodeURIComponent(payerId)}`,
|
||||
this.rootUrl + `/payer/${encodeURIComponent(String(payerId))}`,
|
||||
__body,
|
||||
{
|
||||
headers: __headers,
|
||||
@@ -160,7 +160,7 @@ class PayerService extends __BaseService {
|
||||
if (params.deactivationComment != null) __params = __params.set('deactivationComment', params.deactivationComment.toString());
|
||||
let req = new HttpRequest<any>(
|
||||
'PATCH',
|
||||
this.rootUrl + `/payer/${encodeURIComponent(params.payerId)}/deactivate`,
|
||||
this.rootUrl + `/payer/${encodeURIComponent(String(params.payerId))}/deactivate`,
|
||||
__body,
|
||||
{
|
||||
headers: __headers,
|
||||
@@ -207,7 +207,7 @@ class PayerService extends __BaseService {
|
||||
if (params.deletionComment != null) __params = __params.set('deletionComment', params.deletionComment.toString());
|
||||
let req = new HttpRequest<any>(
|
||||
'DELETE',
|
||||
this.rootUrl + `/payer/${encodeURIComponent(params.payerId)}/delete`,
|
||||
this.rootUrl + `/payer/${encodeURIComponent(String(params.payerId))}/delete`,
|
||||
__body,
|
||||
{
|
||||
headers: __headers,
|
||||
@@ -253,7 +253,7 @@ class PayerService extends __BaseService {
|
||||
if (params.locale != null) __params = __params.set('locale', params.locale.toString());
|
||||
let req = new HttpRequest<any>(
|
||||
'GET',
|
||||
this.rootUrl + `/payer/${encodeURIComponent(params.payerId)}/history`,
|
||||
this.rootUrl + `/payer/${encodeURIComponent(String(params.payerId))}/history`,
|
||||
__body,
|
||||
{
|
||||
headers: __headers,
|
||||
|
||||
Reference in New Issue
Block a user