All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.siftscience.model.AddPromotionFieldSet Maven / Gradle / Ivy

There is a newer version: 3.16.0
Show newest version
package com.siftscience.model;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

import java.util.List;

public class AddPromotionFieldSet extends BaseAppBrowserFieldSet {
    public static AddPromotionFieldSet fromJson(String json) {
        return gson.fromJson(json, AddPromotionFieldSet.class);
    }

    @Expose @SerializedName("$promotions") private List promotions;

    @Override
    public String getEventType() {
        return "$add_promotion";
    }

    public List getPromotions() {
        return promotions;
    }

    public AddPromotionFieldSet setPromotions(List promotions) {
        this.promotions = promotions;
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy