File

projects/core/src/model/address.model.ts

Index

Properties

Properties

cellphone
cellphone: string
Type : string
Optional
companyName
companyName: string
Type : string
Optional
country
country: Country
Type : Country
Optional
defaultAddress
defaultAddress: boolean
Type : boolean
Optional
district
district: string
Type : string
Optional
email
email: string
Type : string
Optional
firstName
firstName: string
Type : string
Optional
formattedAddress
formattedAddress: string
Type : string
Optional
id
id: string
Type : string
Optional
lastName
lastName: string
Type : string
Optional
line1
line1: string
Type : string
Optional
line2
line2: string
Type : string
Optional
phone
phone: string
Type : string
Optional
postalCode
postalCode: string
Type : string
Optional
region
region: Region
Type : Region
Optional
shippingAddress
shippingAddress: boolean
Type : boolean
Optional
title
title: string
Type : string
Optional
titleCode
titleCode: string
Type : string
Optional
town
town: string
Type : string
Optional
visibleInAddressBook
visibleInAddressBook: boolean
Type : boolean
Optional
import { ErrorModel } from './misc.model';

export interface Country {
  isocode?: string;
  name?: string;
}

export enum CountryType {
  BILLING = 'BILLING',
  SHIPPING = 'SHIPPING',
}

export interface Region {
  countryIso?: string;
  isocode?: string;
  isocodeShort?: string;
  name?: string;
}

export interface Address {
  id?: string;

  title?: string;
  titleCode?: string;

  email?: string;
  firstName?: string;
  lastName?: string;
  companyName?: string;

  line1?: string;
  line2?: string;
  postalCode?: string;
  town?: string;
  region?: Region;
  district?: string;
  country?: Country;
  cellphone?: string;

  defaultAddress?: boolean;
  shippingAddress?: boolean;

  formattedAddress?: string;
  phone?: string;

  visibleInAddressBook?: boolean;
}

export interface AddressValidation {
  decision?: string;
  // TODO: Simplify with converter
  errors?: { errors: ErrorModel[] };
  suggestedAddresses?: Address[];
}

result-matching ""

    No results matching ""