Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Properties

Optional archived

archived: null | Date

Readonly backObjects

backObjects: Set<Entity> = ...

Optional cartItems

cartItems: CartItem[]

Optional cartItemsSubtotalCost

cartItemsSubtotalCost: number

Optional cartItemsTaxAmount

cartItemsTaxAmount: number

Optional cartItemsTotalCost

cartItemsTotalCost: number

Optional client

client: null | User

Optional clientCompany

clientCompany: null | Company

create

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

Type declaration

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

      • Optional options: CreateOptions

      Returns Promise<Cart>

Optional creationDate

creationDate: Date

Optional currency

currency: number

Optional domain

domain: Domain

Optional id

id: number

Optional invoice

invoice: null | Invoice

Optional ip

ip: null | string

isDirty

isDirty: boolean = false

key

key: string = ...

merchi

merchi: Merchi

propertiesMap

propertiesMap: Map<string, PropertyInfo>

Optional receiverAddress

receiverAddress: null | Address

Optional receiverNotes

receiverNotes: null | string

Optional shipmentGroups

shipmentGroups: CartShipmentGroup[]

Optional shipmentTotalCost

shipmentTotalCost: number

Optional subtotalCost

subtotalCost: number

Optional taxAmount

taxAmount: number

Optional token

token: null | string

Optional totalCost

totalCost: number

Static merchi

merchi: Merchi

Methods

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>

requiresShipment

  • requiresShipment(): boolean

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