PromotionInfo.java
1.64 KB
1
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/*
* Decompiled with CFR 0_118.
*
* Could not load the following classes:
* aQute.bnd.annotation.ProviderType
*/
package com.adobe.cq.commerce.api.promotion;
import aQute.bnd.annotation.ProviderType;
@ProviderType
public class PromotionInfo {
private String path;
private String title;
private PromotionStatus status;
private String description;
private String message;
private Integer cartEntryIndex;
public PromotionInfo(String path, String title, PromotionStatus status, String description, String message, Integer cartEntryIndex) {
this.path = path;
this.title = title;
this.status = status;
this.message = message;
this.description = description;
this.cartEntryIndex = cartEntryIndex;
}
public String getPath() {
return this.path;
}
public String getTitle() {
return this.title;
}
public PromotionStatus getStatus() {
return this.status;
}
public String getDescription() {
return this.description;
}
public String getMessage() {
return this.message;
}
public Integer getCartEntryIndex() {
return this.cartEntryIndex;
}
@Deprecated
public PromotionInfo(String path, String title, PromotionStatus status, String message) {
this.path = path;
this.title = title;
this.status = status;
this.message = message;
this.description = null;
this.cartEntryIndex = null;
}
public static enum PromotionStatus {
POTENTIAL,
FIRED,
NOT_APPLICABLE;
private PromotionStatus() {
}
}
}