react-native-netmera 1.9.0-beta01 → 1.9.0-beta02
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.
- package/index.ts +13 -15
- package/package.json +1 -1
- package/src/events/NetmeraEventBannerOpen.ts +10 -10
- package/src/events/NetmeraEventBatteryLevel.ts +6 -6
- package/src/events/NetmeraEventCategoryView.ts +10 -10
- package/src/events/NetmeraEventInAppPurchase.ts +38 -38
- package/src/events/NetmeraEventLogin.ts +6 -6
- package/src/events/NetmeraEventRegister.ts +6 -6
- package/src/events/NetmeraEventScreenView.ts +22 -22
- package/src/events/NetmeraEventSearch.ts +10 -10
- package/src/events/NetmeraEventShare.ts +10 -10
- package/src/events/commerce/NetmeraEventCartAddProduct.ts +10 -10
- package/src/events/commerce/NetmeraEventCartRemoveProduct.ts +6 -6
- package/src/events/commerce/NetmeraEventCartView.ts +10 -10
- package/src/events/commerce/NetmeraEventOrderCancel.ts +18 -18
- package/src/events/commerce/NetmeraEventProductComment.ts +2 -2
- package/src/events/commerce/NetmeraEventProductRate.ts +6 -6
- package/src/events/commerce/NetmeraEventProductView.ts +2 -2
- package/src/events/commerce/NetmeraEventPurchase.ts +50 -51
- package/src/events/commerce/NetmeraEventWishList.ts +2 -2
- package/src/events/commerce/NetmeraLineItem.ts +6 -6
- package/src/events/commerce/NetmeraProduct.ts +50 -50
- package/src/events/media/NetmeraEventContent.ts +42 -42
- package/src/events/media/NetmeraEventContentComment.ts +2 -2
- package/src/events/media/NetmeraEventContentRate.ts +6 -6
- package/src/events/media/NetmeraEventContentView.ts +3 -3
package/index.ts
CHANGED
|
@@ -24,19 +24,18 @@ import { NetmeraEventSearch } from "./src/events/NetmeraEventSearch";
|
|
|
24
24
|
import { NetmeraEventShare } from "./src/events/NetmeraEventShare";
|
|
25
25
|
import { NetmeraEventCartAddProduct } from "./src/events/commerce/NetmeraEventCartAddProduct";
|
|
26
26
|
import { NetmeraEventCartRemoveProduct } from "./src/events/commerce/NetmeraEventCartRemoveProduct";
|
|
27
|
-
import {NetmeraEventCartView} from "./src/events/commerce/NetmeraEventCartView";
|
|
28
|
-
import {NetmeraEventOrderCancel} from "./src/events/commerce/NetmeraEventOrderCancel";
|
|
29
|
-
import {NetmeraEventProductComment} from "./src/events/commerce/NetmeraEventProductComment";
|
|
30
|
-
import {NetmeraEventProductRate} from "./src/events/commerce/NetmeraEventProductRate";
|
|
31
|
-
import {NetmeraEventProductView} from "./src/events/commerce/NetmeraEventProductView";
|
|
32
|
-
import {NetmeraEventPurchase} from "./src/events/commerce/NetmeraEventPurchase";
|
|
33
|
-
import {NetmeraEventWishList} from "./src/events/commerce/NetmeraEventWishList";
|
|
34
|
-
import {NetmeraLineItem} from "./src/events/commerce/NetmeraLineItem";
|
|
35
|
-
import {NetmeraProduct} from "./src/events/commerce/NetmeraProduct";
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {NetmeraEventContentView} from "./src/events/media/NetmeraEventContentView";
|
|
27
|
+
import { NetmeraEventCartView } from "./src/events/commerce/NetmeraEventCartView";
|
|
28
|
+
import { NetmeraEventOrderCancel } from "./src/events/commerce/NetmeraEventOrderCancel";
|
|
29
|
+
import { NetmeraEventProductComment } from "./src/events/commerce/NetmeraEventProductComment";
|
|
30
|
+
import { NetmeraEventProductRate } from "./src/events/commerce/NetmeraEventProductRate";
|
|
31
|
+
import { NetmeraEventProductView } from "./src/events/commerce/NetmeraEventProductView";
|
|
32
|
+
import { NetmeraEventPurchase } from "./src/events/commerce/NetmeraEventPurchase";
|
|
33
|
+
import { NetmeraEventWishList } from "./src/events/commerce/NetmeraEventWishList";
|
|
34
|
+
import { NetmeraLineItem } from "./src/events/commerce/NetmeraLineItem";
|
|
35
|
+
import { NetmeraProduct } from "./src/events/commerce/NetmeraProduct";
|
|
36
|
+
import { NetmeraEventContentComment } from "./src/events/media/NetmeraEventContentComment";
|
|
37
|
+
import { NetmeraEventContentRate } from "./src/events/media/NetmeraEventContentRate";
|
|
38
|
+
import { NetmeraEventContentView } from "./src/events/media/NetmeraEventContentView";
|
|
40
39
|
|
|
41
40
|
export {
|
|
42
41
|
Netmera,
|
|
@@ -75,8 +74,7 @@ export {
|
|
|
75
74
|
NetmeraEventProductView,
|
|
76
75
|
NetmeraEventPurchase,
|
|
77
76
|
NetmeraEventWishList,
|
|
78
|
-
NetmeraEventContent,
|
|
79
77
|
NetmeraEventContentComment,
|
|
80
78
|
NetmeraEventContentRate,
|
|
81
|
-
NetmeraEventContentView
|
|
79
|
+
NetmeraEventContentView,
|
|
82
80
|
};
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import NetmeraEvent from
|
|
1
|
+
import NetmeraEvent from "./NetmeraEvent";
|
|
2
2
|
|
|
3
3
|
export class NetmeraEventBannerOpen extends NetmeraEvent {
|
|
4
|
-
|
|
4
|
+
code = "n:bc";
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
private ea: string | undefined;
|
|
7
|
+
private eg: string[] | undefined;
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
setId(id: string): void {
|
|
10
|
+
this.ea = id;
|
|
11
|
+
}
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
setKeywords(keywords: string[]): void {
|
|
14
|
+
this.eg = keywords;
|
|
15
|
+
}
|
|
16
16
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import NetmeraEvent from
|
|
1
|
+
import NetmeraEvent from "./NetmeraEvent";
|
|
2
2
|
|
|
3
3
|
export class NetmeraEventBatteryLevel extends NetmeraEvent {
|
|
4
|
-
|
|
4
|
+
code = "n:bl";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
private ec: number | undefined;
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
setBatteryLevel(batteryLevel: number): void {
|
|
9
|
+
this.ec = batteryLevel;
|
|
10
|
+
}
|
|
11
11
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import NetmeraEvent from
|
|
1
|
+
import NetmeraEvent from "./NetmeraEvent";
|
|
2
2
|
|
|
3
3
|
export class NetmeraEventCategoryView extends NetmeraEvent {
|
|
4
|
-
|
|
4
|
+
code = "n:cv";
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
private ga: string | undefined;
|
|
7
|
+
private ef: string | undefined;
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
setId(id: string): void {
|
|
10
|
+
this.ga = id;
|
|
11
|
+
}
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
setName(name: string): void {
|
|
14
|
+
this.ef = name;
|
|
15
|
+
}
|
|
16
16
|
}
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import NetmeraEvent from
|
|
1
|
+
import NetmeraEvent from "./NetmeraEvent";
|
|
2
2
|
|
|
3
3
|
export class NetmeraEventInAppPurchase extends NetmeraEvent {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
4
|
+
code = "n:ip";
|
|
5
|
+
|
|
6
|
+
private ea: string | undefined;
|
|
7
|
+
private eb: string | undefined;
|
|
8
|
+
private eq: number | undefined;
|
|
9
|
+
private ec: number | undefined;
|
|
10
|
+
private ga: string[] | undefined;
|
|
11
|
+
private ef: string[] | undefined;
|
|
12
|
+
private eg: string[] | undefined;
|
|
13
|
+
|
|
14
|
+
setId(id: string): void {
|
|
15
|
+
this.ea = id;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
setName(name: string): void {
|
|
19
|
+
this.eb = name;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
setPrice(price: number): void {
|
|
23
|
+
this.eq = price;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
setCount(count: number): void {
|
|
27
|
+
this.ec = count;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
setCategoryIds(categoryIds: string[]): void {
|
|
31
|
+
this.ga = categoryIds;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
setCategoryNames(categoryNames: string[]): void {
|
|
35
|
+
this.ef = categoryNames;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
setKeywords(keywords: string[]): void {
|
|
39
|
+
this.eg = keywords;
|
|
40
|
+
}
|
|
41
41
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import NetmeraEvent from
|
|
1
|
+
import NetmeraEvent from "./NetmeraEvent";
|
|
2
2
|
|
|
3
3
|
export class NetmeraEventLogin extends NetmeraEvent {
|
|
4
|
-
|
|
4
|
+
code = "n:cl";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
private uid: string | undefined;
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
setUserId(userId: string): void {
|
|
9
|
+
this.uid = userId;
|
|
10
|
+
}
|
|
11
11
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import NetmeraEvent from
|
|
1
|
+
import NetmeraEvent from "./NetmeraEvent";
|
|
2
2
|
|
|
3
3
|
export class NetmeraEventRegister extends NetmeraEvent {
|
|
4
|
-
|
|
4
|
+
code = "n:rg";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
private uid: string | undefined;
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
setUserId(userId: string): void {
|
|
9
|
+
this.uid = userId;
|
|
10
|
+
}
|
|
11
11
|
}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import NetmeraEvent from
|
|
1
|
+
import NetmeraEvent from "./NetmeraEvent";
|
|
2
2
|
|
|
3
3
|
export class NetmeraEventScreenView extends NetmeraEvent {
|
|
4
|
-
|
|
4
|
+
code = "n:sv";
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
private ee: string | undefined;
|
|
7
|
+
private ef: string | undefined;
|
|
8
|
+
private ej: string | undefined;
|
|
9
|
+
private el: number | undefined;
|
|
10
|
+
private ea: string | undefined;
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
setPageId(pageId: string): void {
|
|
13
|
+
this.ee = pageId;
|
|
14
|
+
}
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
setReferrerPageId(referrerPageId: string): void {
|
|
17
|
+
this.ef = referrerPageId;
|
|
18
|
+
}
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
setReferrerPageName(referrerPageName: string): void {
|
|
21
|
+
this.ej = referrerPageName;
|
|
22
|
+
}
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
setTimeInPage(timeInPage: number): void {
|
|
25
|
+
this.el = timeInPage;
|
|
26
|
+
}
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
setPageName(pageName: string): void {
|
|
29
|
+
this.ea = pageName;
|
|
30
|
+
}
|
|
31
31
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import NetmeraEvent from
|
|
1
|
+
import NetmeraEvent from "./NetmeraEvent";
|
|
2
2
|
|
|
3
3
|
export class NetmeraEventSearch extends NetmeraEvent {
|
|
4
|
-
|
|
4
|
+
code = "n:sr";
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
private ga: string | undefined;
|
|
7
|
+
private ef: number | undefined;
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
setQuery(query: string): void {
|
|
10
|
+
this.ga = query;
|
|
11
|
+
}
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
setResultCount(resultCount: number): void {
|
|
14
|
+
this.ef = resultCount;
|
|
15
|
+
}
|
|
16
16
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import NetmeraEvent from
|
|
1
|
+
import NetmeraEvent from "./NetmeraEvent";
|
|
2
2
|
|
|
3
3
|
export class NetmeraEventShare extends NetmeraEvent {
|
|
4
|
-
|
|
4
|
+
code = "n:sh";
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
private ga: string | undefined;
|
|
7
|
+
private ef: string | undefined;
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
setChannel(channel: string): void {
|
|
10
|
+
this.ga = channel;
|
|
11
|
+
}
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
setContent(content: string): void {
|
|
14
|
+
this.ef = content;
|
|
15
|
+
}
|
|
16
16
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import NetmeraEvent from
|
|
1
|
+
import NetmeraEvent from "./../NetmeraEvent";
|
|
2
2
|
|
|
3
3
|
export class NetmeraEventCartAddProduct extends NetmeraEvent {
|
|
4
|
-
|
|
4
|
+
code = "n:acp";
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
private ec: number | undefined;
|
|
7
|
+
private er: number | undefined;
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
setCount(count: number): void {
|
|
10
|
+
this.ec = count;
|
|
11
|
+
}
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
setBasketTotal(basketTotal: number): void {
|
|
14
|
+
this.er = basketTotal;
|
|
15
|
+
}
|
|
16
16
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import NetmeraEvent from
|
|
1
|
+
import NetmeraEvent from "./../NetmeraEvent";
|
|
2
2
|
|
|
3
3
|
export class NetmeraEventCartRemoveProduct extends NetmeraEvent {
|
|
4
|
-
|
|
4
|
+
code = "n:rcp";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
private ec: number | undefined;
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
setCount(count: number): void {
|
|
9
|
+
this.ec = count;
|
|
10
|
+
}
|
|
11
11
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import NetmeraEvent from
|
|
1
|
+
import NetmeraEvent from "./../NetmeraEvent";
|
|
2
2
|
|
|
3
3
|
export class NetmeraEventCartView extends NetmeraEvent {
|
|
4
|
-
|
|
4
|
+
code = "n:vt";
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
private ec: number | undefined;
|
|
7
|
+
private er: number | undefined;
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
setItemCount(itemCount: number): void {
|
|
10
|
+
this.ec = itemCount;
|
|
11
|
+
}
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
setSubTotal(subTotal: number): void {
|
|
14
|
+
this.er = subTotal;
|
|
15
|
+
}
|
|
16
16
|
}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import NetmeraEvent from
|
|
1
|
+
import NetmeraEvent from "./../NetmeraEvent";
|
|
2
2
|
|
|
3
3
|
export class NetmeraEventOrderCancel extends NetmeraEvent {
|
|
4
|
-
|
|
4
|
+
code = "n:co";
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
private er: number | undefined;
|
|
7
|
+
private es: number | undefined;
|
|
8
|
+
private ec: number | undefined;
|
|
9
|
+
private em: string | undefined;
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
setSubTotal(subTotal: number): void {
|
|
12
|
+
this.er = subTotal;
|
|
13
|
+
}
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
setGrandTotal(grandTotal: number): void {
|
|
16
|
+
this.es = grandTotal;
|
|
17
|
+
}
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
setItemCount(itemCount: number): void {
|
|
20
|
+
this.ec = itemCount;
|
|
21
|
+
}
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
setPaymentMethod(paymentMethod: string): void {
|
|
24
|
+
this.em = paymentMethod;
|
|
25
|
+
}
|
|
26
26
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import NetmeraEvent from
|
|
1
|
+
import NetmeraEvent from "./../NetmeraEvent";
|
|
2
2
|
|
|
3
3
|
export class NetmeraEventProductRate extends NetmeraEvent {
|
|
4
|
-
|
|
4
|
+
code = "n:rp";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
private eo: number | undefined;
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
setRating(rating: number): void {
|
|
9
|
+
this.eo = rating;
|
|
10
|
+
}
|
|
11
11
|
}
|
|
@@ -1,53 +1,52 @@
|
|
|
1
|
-
import NetmeraEvent from
|
|
2
|
-
import {NetmeraLineItem} from "./NetmeraLineItem";
|
|
1
|
+
import NetmeraEvent from "./../NetmeraEvent";
|
|
2
|
+
import { NetmeraLineItem } from "./NetmeraLineItem";
|
|
3
3
|
|
|
4
4
|
export class NetmeraEventPurchase extends NetmeraEvent {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
5
|
+
code = "n:ph";
|
|
6
|
+
|
|
7
|
+
private er: number | undefined;
|
|
8
|
+
private es: number | undefined;
|
|
9
|
+
private ec: number | undefined;
|
|
10
|
+
private fz: number | undefined;
|
|
11
|
+
private items: NetmeraLineItem[] | undefined;
|
|
12
|
+
private em: string | undefined;
|
|
13
|
+
private ep: number | undefined;
|
|
14
|
+
private el: number | undefined;
|
|
15
|
+
private ek: string | undefined;
|
|
16
|
+
|
|
17
|
+
setSubTotal(subTotal: number): void {
|
|
18
|
+
this.er = subTotal;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
setGrandTotal(grandTotal: number): void {
|
|
22
|
+
this.es = grandTotal;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
setItemCount(itemCount: number): void {
|
|
26
|
+
this.ec = itemCount;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
setProductCount(productCount: number): void {
|
|
30
|
+
this.fz = productCount;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
setLineItems(lineItems: NetmeraLineItem[]) {
|
|
34
|
+
this.items = lineItems;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
setPaymentMethod(paymentMethod: string) {
|
|
38
|
+
this.em = paymentMethod;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
setShippingCost(shippingCost: number): void {
|
|
42
|
+
this.ep = shippingCost;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
setDiscount(discount: number): void {
|
|
46
|
+
this.el = discount;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
setCoupon(coupon: string) {
|
|
50
|
+
this.ek = coupon;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {NetmeraProduct} from "./NetmeraProduct";
|
|
1
|
+
import { NetmeraProduct } from "./NetmeraProduct";
|
|
2
2
|
|
|
3
3
|
export class NetmeraLineItem extends NetmeraProduct {
|
|
4
|
-
|
|
4
|
+
private ec: number | undefined;
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
6
|
+
setCount(count: number) {
|
|
7
|
+
this.ec = count;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
export class NetmeraProduct {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
2
|
+
private ea: string | undefined; // id
|
|
3
|
+
private eb: string | undefined; // name
|
|
4
|
+
private eq: number | undefined; // price
|
|
5
|
+
private ga: string[] | undefined; // categoryIds
|
|
6
|
+
private ef: string[] | undefined; // categoryNames
|
|
7
|
+
private eh: string | undefined; // brandName
|
|
8
|
+
private gd: string | undefined; // brandId
|
|
9
|
+
private ei: string | undefined; // variant
|
|
10
|
+
private eg: string[] | undefined; // keywords
|
|
11
|
+
private ge: string | undefined; // campaignId
|
|
12
|
+
|
|
13
|
+
setId(value: string) {
|
|
14
|
+
this.ea = value;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
setName(value: string) {
|
|
18
|
+
this.eb = value;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
setPrice(value: number) {
|
|
22
|
+
this.eq = value;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
setCategoryIds(value: string[]) {
|
|
26
|
+
this.ga = value;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
setCategoryNames(value: string[]) {
|
|
30
|
+
this.ef = value;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
setBrandName(value: string) {
|
|
34
|
+
this.eh = value;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
setBrandId(value: string) {
|
|
38
|
+
this.gd = value;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
setVariant(value: string) {
|
|
42
|
+
this.ei = value;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
setKeywords(value: string[]) {
|
|
46
|
+
this.eg = value;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
setCampaignId(value: string) {
|
|
50
|
+
this.ge = value;
|
|
51
|
+
}
|
|
52
52
|
}
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import NetmeraEvent from
|
|
1
|
+
import NetmeraEvent from "./../NetmeraEvent";
|
|
2
2
|
|
|
3
3
|
export abstract class NetmeraEventContent extends NetmeraEvent {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
4
|
+
static readonly TYPE_OTHER = 0;
|
|
5
|
+
static readonly TYPE_IMAGE = 1;
|
|
6
|
+
static readonly TYPE_AUDIO = 2;
|
|
7
|
+
static readonly TYPE_VIDEO = 3;
|
|
8
|
+
static readonly TYPE_TEXT = 4;
|
|
9
|
+
|
|
10
|
+
private ea: string | undefined; // id
|
|
11
|
+
private eb: string | undefined; // name
|
|
12
|
+
private ed: number | undefined; // type
|
|
13
|
+
private ee: string | undefined; // provider
|
|
14
|
+
private ga: string[] | undefined; // categoryIds
|
|
15
|
+
private ef: string[] | undefined; // categoryNames
|
|
16
|
+
private eg: string[] | undefined; // keywords
|
|
17
|
+
|
|
18
|
+
setId(value: string): void {
|
|
19
|
+
this.ea = value;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
setName(value: string): void {
|
|
23
|
+
this.eb = value;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
setType(value: number): void {
|
|
27
|
+
this.ed = value;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
setProvider(value: string): void {
|
|
31
|
+
this.ee = value;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
setCategoryIds(value: string[]): void {
|
|
35
|
+
this.ga = value;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
setCategoryNames(value: string[]): void {
|
|
39
|
+
this.ef = value;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
setKeywords(value: string[]): void {
|
|
43
|
+
this.eg = value;
|
|
44
|
+
}
|
|
45
45
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { NetmeraEventContent } from
|
|
1
|
+
import { NetmeraEventContent } from "./NetmeraEventContent";
|
|
2
2
|
|
|
3
3
|
export class NetmeraEventContentRate extends NetmeraEventContent {
|
|
4
|
-
|
|
4
|
+
code: string = "n:rc";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
private eo: number | undefined;
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
setRating(value: number): void {
|
|
9
|
+
this.eo = value;
|
|
10
|
+
}
|
|
11
11
|
}
|