🚨 Announcing Vendure v2 Beta

Zone

Zone

Package: @vendure/core File: zone.entity.ts

A Zone is a grouping of one or more Country entities. It is used for calculating applicable shipping and taxes.

Signature

class Zone extends VendureEntity implements HasCustomFields {
  constructor(input?: DeepPartial<Zone>)
  @Column() name: string;
  @ManyToMany(type => Country)
    @JoinTable()
    members: Country[];
  @Column(type => CustomZoneFields)
    customFields: CustomZoneFields;
}

Extends

Implements

  • HasCustomFields

Members

constructor

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

name

property
type:
string

members

property
type:
Country[]

customFields

property
type:
CustomZoneFields