Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Entity
    • VariationFieldsOption

Index

Constructors

constructor

Properties

Optional archived

archived: null | Date

Readonly backObjects

backObjects: Set<Entity> = ...

Optional buyCost

buyCost: number

Optional buyUnitCost

buyUnitCost: number

Optional colour

colour: null | string

create

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

Type declaration

Optional currency

currency: string

Optional default

default: boolean

Optional id

id: number

Optional inventoryUnitVariations

inventoryUnitVariations: InventoryUnitVariation[]

isDirty

isDirty: boolean = false

key

key: string = ...

Optional linkedFile

linkedFile: null | MerchiFile

merchi

merchi: Merchi

Optional position

position: number

propertiesMap

propertiesMap: Map<string, PropertyInfo>

Optional selectedByVariations

selectedByVariations: Variation[]

Optional value

value: null | string

Optional variationCost

variationCost: number

Optional variationCostDiscountGroup

variationCostDiscountGroup: null | DiscountGroup

Optional variationField

variationField: null | VariationField

Optional variationUnitCost

variationUnitCost: number

Optional variationUnitCostDiscountGroup

variationUnitCostDiscountGroup: null | DiscountGroup

Static merchi

merchi: Merchi

Methods

buildVariationOption

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>

delete

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

fromJson

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

getPrimaryKeyValue

  • getPrimaryKeyValue(): any

recover

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

save

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

toFormData

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

toJson

  • toJson(): any

totalCost

  • totalCost(quantity: number): number

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