🚨 Announcing Vendure v2 Beta

Address

Address

Represent’s a Customer’s address.

Signature

class Address extends VendureEntity implements HasCustomFields {
  constructor(input?: DeepPartial<Address>)
  @ManyToOne(type => Customer, customer => customer.addresses)
    customer: Customer;
  @Column({ default: '' }) fullName: string;
  @Column({ default: '' })
    company: string;
  @Column() streetLine1: string;
  @Column({ default: '' })
    streetLine2: string;
  @Column({ default: '' }) city: string;
  @Column({ default: '' })
    province: string;
  @Column({ default: '' }) postalCode: string;
  @ManyToOne(type => Country)
    country: Country;
  @Column({ default: '' })
    phoneNumber: string;
  @Column({ default: false })
    defaultShippingAddress: boolean;
  @Column({ default: false })
    defaultBillingAddress: boolean;
  @Column(type => CustomAddressFields)
    customFields: CustomAddressFields;
}

Extends

Implements

  • HasCustomFields

Members

constructor

method
type:
(input?: DeepPartial<Address>) => Address

customer

property
type:
Customer

fullName

property
type:
string

company

property
type:
string

streetLine1

property
type:
string

streetLine2

property
type:
string

city

property
type:
string

province

property
type:
string

postalCode

property
type:
string

country

property
type:
Country

phoneNumber

property
type:
string

defaultShippingAddress

property
type:
boolean

defaultBillingAddress

property
type:
boolean

customFields

property
type:
CustomAddressFields