@piwikpro/ngx-piwik-pro
Version:
Piwik PRO tracking library for Angular apps.
45 lines (44 loc) • 1.94 kB
TypeScript
import { eCommerce } from '@piwikpro/tracking-base-library';
import { PaqService } from '../paq/paq.service';
import * as i0 from "@angular/core";
type IeCommerce = typeof eCommerce;
export declare class ECommerceService {
private readonly paqService;
constructor(paqService: PaqService);
/**
* @deprecated Please use the ecommerceAddToCart instead.
*/
addEcommerceItem(productSKU: string, productName: string, productCategory: string | string[], productPrice: number, productQuantity: number): void;
ecommerceAddToCart(...params: Parameters<IeCommerce['ecommerceAddToCart']>): void;
/**
* @deprecated Please use the ecommerceRemoveFromCart instead.
*/
removeEcommerceItem(productSKU: string): void;
ecommerceRemoveFromCart(...params: Parameters<IeCommerce['ecommerceRemoveFromCart']>): void;
/**
* @deprecated
*/
clearEcommerceCart(): void;
/**
* @deprecated
*/
getEcommerceItems(): Promise<object>;
/**
* @deprecated Please use the ecommerceOrder instead.
*/
trackEcommerceOrder(orderId: string, orderGrandTotal: number, orderSubTotal?: number, orderTax?: number, orderShipping?: number, orderDiscount?: number): void;
ecommerceOrder(...params: Parameters<IeCommerce['ecommerceOrder']>): void;
/**
* @deprecated Please use the ecommerceCartUpdate instead.
*/
trackEcommerceCartUpdate(cartAmount: number): void;
ecommerceCartUpdate(...params: Parameters<IeCommerce['ecommerceCartUpdate']>): void;
/**
* @deprecated
*/
setEcommerceView(productSKU: string, productName?: string, productCategory?: string[], productPrice?: string): void;
ecommerceProductDetailView(...params: Parameters<IeCommerce['ecommerceProductDetailView']>): void;
static ɵfac: i0.ɵɵFactoryDeclaration<ECommerceService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<ECommerceService>;
}
export {};