product.ts 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import { Document } from '../decorators/document-type';
  2. import { Entrypoint } from '../decorators/entrypoint';
  3. @Document("product")
  4. @Entrypoint("product_product")
  5. export class Product {
  6. public default_code: string;
  7. public description: string;
  8. public ean13: string;
  9. public image_medium: string;
  10. public image_small: string;
  11. public name: string;
  12. public list_price: number;
  13. public purchase_ok: boolean;
  14. public qty_available: number;
  15. public rental: boolean;
  16. public sale_ok: boolean;
  17. public standard_price: number;
  18. public type: string;
  19. public website_published: false;
  20. public remote_id: number;
  21. public doc_state: string;
  22. public company_id: number;
  23. public attribute_line_ids: Array<any>;
  24. constructor() {
  25. this.default_code = null;
  26. this.description = null;
  27. this.ean13 = null;
  28. this.image_medium = null;
  29. this.image_small = null;
  30. this.name = null;
  31. this.list_price = 1;
  32. this.purchase_ok = false;
  33. this.qty_available = 0;
  34. this.rental = false;
  35. this.standard_price = 1;
  36. this.type = "product";
  37. this.website_published = false;
  38. this.remote_id = 0;
  39. this.doc_state = "created";
  40. this.company_id = 0;
  41. this.attribute_line_ids = [];
  42. }
  43. }