Address
Address
Represents a Customer’s address.
Signature
class Address extends VendureEntity implements HasCustomFields {
constructor(input?: DeepPartial<Address>)
@Index() @ManyToOne(type => Customer, customer => customer.addresses) @Index()
@ManyToOne(type => Customer, customer => customer.addresses)
customer: Customer;
@Column({ default: '' }) @Column({ default: '' }) fullName: string;
@Column({ default: '' }) @Column({ default: '' })
company: string;
@Column() @Column() streetLine1: string;
@Column({ default: '' }) @Column({ default: '' })
streetLine2: string;
@Column({ default: '' }) @Column({ default: '' }) city: string;
@Column({ default: '' }) @Column({ default: '' })
province: string;
@Column({ default: '' }) @Column({ default: '' }) postalCode: string;
@Index() @ManyToOne(type => Country) @Index()
@ManyToOne(type => Country)
country: Country;
@Column({ default: '' }) @Column({ default: '' })
phoneNumber: string;
@Column({ default: false }) @Column({ default: false })
defaultShippingAddress: boolean;
@Column({ default: false }) @Column({ default: false })
defaultBillingAddress: boolean;
@Column(type => CustomAddressFields) @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