Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Properties

Optional acceptBankTransfer

acceptBankTransfer: boolean

Optional acceptPaypal

acceptPaypal: boolean

Optional acceptPhonePayment

acceptPhonePayment: boolean

Optional acceptStripe

acceptStripe: boolean

Optional acceptUtrust

acceptUtrust: boolean

Optional allowPaymentUpfront

allowPaymentUpfront: boolean

Optional allowQuotation

allowQuotation: boolean

Optional archived

archived: null | Date

Readonly backObjects

backObjects: Set<Entity> = ...

Optional bestPrice

bestPrice: number

Optional buyUnitPrice

buyUnitPrice: number

Optional cartItems

cartItems: CartItem[]

Optional categories

categories: Category[]

Optional chainedSellerProduct

chainedSellerProduct: null | Product

Optional chainedSupplierProduct

chainedSupplierProduct: null | Product

create

create: (options?: CreateOptions) => Promise<Product> = ...

Type declaration

    • (options?: CreateOptions): Promise<Product>
    • Parameters

      • Optional options: CreateOptions

      Returns Promise<Product>

Optional createdByJob

createdByJob: null | Job

Optional deliveryDaysNormal

deliveryDaysNormal: number

Optional description

description: null | string

Optional discountGroups

discountGroups: DiscountGroup[]

Optional domain

domain: Domain

Optional dropShipment

dropShipment: boolean

Optional featureImage

featureImage: null | MerchiFile

Optional groupVariationFields

groupVariationFields: VariationField[]

Optional id

id: number

Optional images

images: MerchiFile[]

Optional independentVariationFields

independentVariationFields: VariationField[]

Optional inventories

inventories: Inventory[]

isDirty

isDirty: boolean = false

Optional jobs

jobs: Job[]

key

key: string = ...

Optional margin

margin: number

merchi

merchi: Merchi

Optional minimum

minimum: number

Optional name

name: string

Optional needsDrafting

needsDrafting: boolean

Optional needsInvoicing

needsInvoicing: boolean

Optional needsProduction

needsProduction: boolean

Optional needsShipping

needsShipping: boolean

Optional notes

notes: null | string

Optional originalProduct

originalProduct: null | Product

Optional platformCategories

platformCategories: Category[]

Optional productType

productType: number

Optional productionFiles

productionFiles: MerchiFile[]

propertiesMap

propertiesMap: Map<string, PropertyInfo>

Optional publicFiles

publicFiles: MerchiFile[]

Optional savedByCompanies

savedByCompanies: Company[]

Optional savedByUsers

savedByUsers: User[]

Optional shipmentMethods

shipmentMethods: ShipmentMethod[]

Optional showPublic

showPublic: boolean

Optional suppliedByDomains

suppliedByDomains: SupplyDomain[]

Optional suppliers

suppliers: User[]

Optional supplyDomains

supplyDomains: SupplyDomain[]

Optional tags

tags: DomainTag[]

Optional taxType

taxType: null | CountryTax

Optional unitDepth

unitDepth: null | number

Optional unitHeight

unitHeight: null | number

Optional unitPrice

unitPrice: number

Optional unitPriceDiscountGroup

unitPriceDiscountGroup: null | DiscountGroup

Optional unitVolume

unitVolume: number

Optional unitWeight

unitWeight: null | number

Optional unitWidth

unitWidth: null | number

Optional useCompanyShipmentMethods

useCompanyShipmentMethods: boolean

Static merchi

merchi: Merchi

Methods

allVariationFields

buildEmptyVariationGroup

buildEmptyVariations

cleanDirty

  • cleanDirty(): void

createFactory

  • createFactory(__namedParameters: Object): (options?: CreateOptions) => Promise<this>
  • Parameters

    • __namedParameters: Object

    Returns (options?: CreateOptions) => Promise<this>

      • (options?: CreateOptions): Promise<this>
      • Parameters

        • Optional options: CreateOptions

        Returns Promise<this>

currency

  • currency(): string

delete

  • delete(options?: DeleteOptions): Promise<this>

duplicate

fromJson

  • fromJson(json: any, options?: FromJsonOptions): this

getPrimaryKeyValue

  • getPrimaryKeyValue(): any

hasGroupVariationFields

  • hasGroupVariationFields(): boolean

hasIndependentVariationFields

  • hasIndependentVariationFields(): boolean

primaryImage

recover

  • recover(options?: SaveOptions): Promise<this>

removeVariationField

save

  • save(options?: SaveOptions): Promise<this>

toFormData

  • toFormData(options?: SerialiseOptions, fileIndex?: Counter): FormData

toJson

  • toJson(): any

updateOrder

  • updateOrder(property: string): void

Static get

  • get<T>(key: string | number, options?: GetOptions): Promise<InstanceType<T>>
  • Type parameters

    Parameters

    • key: string | number
    • Optional options: GetOptions

    Returns Promise<InstanceType<T>>

Static list

  • list<T>(options?: ListOptions): Promise<ListResponse<InstanceType<T>>>

Generated using TypeDoc