ng-easycommerce 0.0.634 → 0.0.635

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -26,6 +26,7 @@ export declare class ProductDetailEcComponent extends ComponentHelper implements
26
26
  mediaUrl: any;
27
27
  show: boolean;
28
28
  quantity: number;
29
+ comments: string;
29
30
  breadcrumb: any[];
30
31
  carousel: any;
31
32
  code: any;
@@ -90,7 +90,7 @@ export declare class CartService {
90
90
  * @public
91
91
  * CART CRUD
92
92
  */
93
- addToCart: (product: Product, quantity: number, variant_id: any) => void;
93
+ addToCart: (product: Product, quantity: number, variant_id: any, comments?: string) => void;
94
94
  addToLot: (product: Product, quantity: number, variant_id: any, id?: any, order_item_id?: any, lot_quantity?: any, unit_price?: any, unit_total?: any, ajustement_total?: any, total_lot?: any, lot_status?: any, date_request?: any, notes?: any, shipping_address_id?: any, shipping_address_name?: any, action?: any) => void;
95
95
  addToCartPromise: (product: Product, quantity: number, variant_id: any) => Promise<{
96
96
  error: boolean;
@@ -49,9 +49,10 @@ export declare class ProductDetailService {
49
49
  * @description agrega/actualiza un item en el carrito
50
50
  * @param quantity cantidad a agregar
51
51
  * @param variant_code **(opcional)** codigo de la variante seleccionada del producto.
52
+ * @param comments **(opcional)** comentario personalizado del cliente.
52
53
  * @returns
53
54
  */
54
- addToCart(quantity: any, variant_code?: string): void;
55
+ addToCart(quantity: any, variant_code?: string, comments?: string): void;
55
56
  addToCartPromise: (quantity: any) => Promise<boolean | {
56
57
  error: boolean;
57
58
  message: string;