New: Headless Commerce with Remix! read more

Country

Country

A country to which is available when creating / updating an Address. Countries are grouped together into Zones which are in turn used to determine applicable shipping and taxes for an Order.

Signature

class Country extends VendureEntity implements Translatable, HasCustomFields {
  constructor(input?: DeepPartial<Country>)
  @Column() code: string;
  name: LocaleString;
  @Column() enabled: boolean;
  @OneToMany(type => CountryTranslation, translation => translation.base, { eager: true })
    translations: Array<Translation<Country>>;
  @Column(type => CustomCountryFields)
    customFields: CustomCountryFields;
}

Extends

Implements

Members

constructor

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

code

property
type:
string

name

property
type:
LocaleString

enabled

property
type:
boolean

translations

property
type:
Array<Translation<Country>>

customFields

property
type:
CustomCountryFields