• Internal

    Takes in a raw article object and parses it to an article object. In case of invalid data, an error is thrown.

    Parameters

    • rawArticle: {
          article_billReference: string;
          article_category_id?: number;
          article_code?: string;
          article_comment?: string;
          article_eanCode?: string;
          article_gross_sellingPrice?: string;
          article_id?: string;
          article_minStock: string;
          article_name: string;
          article_negativeStock?: boolean;
          article_net_purchacePrice?: string;
          article_net_sellingPrice?: string;
          article_stock?: string;
          article_stockStatus?: number;
          article_taxRate?: string;
          article_unit?: string;
      }

    Returns Article