PromotionInfo.java 1.64 KB
/*
 * 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() {
        }
    }

}