Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Properties

Private baseUrl

baseUrl: string
memberof

BaseService

Private key

key: string
memberof

BaseService

Private urlService

urlService: string

Base Url of the Service API

memberof

BaseService

Private user

user: string
memberof

BaseService

Accessors

Protected serviceUrl

  • get serviceUrl(): string

Methods

getUpdated

  • Renvoie la liste des categories de produit créés ou modifiés depuis une date de référence

    memberof

    ProductCategoryService

    Parameters

    • Default value __namedParameters: { length: undefined | number; start: undefined | number; updated: Date } = {length: 20,start: 0,updated: new Date()}

      Options object

      • length: undefined | number

        Longueur de la liste renvoyée (pagination).

      • start: undefined | number

        Index de départ (pagination).

      • updated: Date

        date de référence.

    Returns Promise<KobanResultList<KobanProductCategory>>

handleApiError

postMany

  • Crée ou modifie un ensemble de catégories de produits. Si un produit correspondant à la clé uniqueproperty existe, alors l'API effectue une création. Sinon l'API met à jour le produit.

    memberof

    ProductCategoryService

    Parameters

    • categories: KobanProductCategory[]

      Liste des categories KobanProductCategory sous forme de tableau

    • uniqueproperty: KobanProductCategoryUniqueProperty

      Propriété sélectionnée pour vérifier si le produit doit être créé ou modifié. L'API vérifie qu'une catégorie correspondant à cette clé existe. Si il existe, il effectue une modification, sinon il effectue une création

    Returns Promise<string[]>

postOne

  • Crée ou modifie une catégorie de produit. Si une catégories de produit correspondant à la clé uniqueproperty existe, alors l'API effectue une création. Sinon l'API met à jour le produit.

    memberof

    ProductCategoryService

    Parameters

    • category: KobanProductCategory

      La categorie

    • uniqueproperty: KobanProductCategoryUniqueProperty

      Propriété sélectionnée pour vérifier si le produit doit être créé ou modifié. L'API vérifie qu'une catégorie correspondant à cette clé existe. Si il existe, il effectue une modification, sinon il effectue une création

    Returns Promise<string>

Legend

  • Constructor
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Private property
  • Private method
  • Property

Generated using TypeDoc