@spartacus/core
Version:
Spartacus - the core framework
21 lines (20 loc) • 1.21 kB
TypeScript
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs';
import { Address, AddressValidation } from '../../../model/address.model';
import { UserAddressAdapter } from '../../../user/connectors/address/user-address.adapter';
import { ConverterService } from '../../../util/converter.service';
import { OccEndpointsService } from '../../services/occ-endpoints.service';
import * as i0 from "@angular/core";
export declare class OccUserAddressAdapter implements UserAddressAdapter {
protected http: HttpClient;
protected occEndpoints: OccEndpointsService;
protected converter: ConverterService;
constructor(http: HttpClient, occEndpoints: OccEndpointsService, converter: ConverterService);
loadAll(userId: string): Observable<Address[]>;
add(userId: string, address: Address): Observable<{}>;
update(userId: string, addressId: string, address: Address): Observable<{}>;
verify(userId: string, address: Address): Observable<AddressValidation>;
delete(userId: string, addressId: string): Observable<{}>;
static ɵfac: i0.ɵɵFactoryDeclaration<OccUserAddressAdapter, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<OccUserAddressAdapter>;
}