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

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

The 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 BaseAppBrowserSiteBrandFieldSet {
    public static AddPromotionFieldSet fromJson(String json) {
        return gson.fromJson(json, AddPromotionFieldSet.class);
    }

    @Expose @SerializedName("$promotions") private List promotions;
    @Expose @SerializedName(USER_EMAIL) private String userEmail;
    @Expose @SerializedName(VERIFICATION_PHONE_NUMBER) private String verificationPhoneNumber;

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

    public List getPromotions() {
        return promotions;
    }

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

    public String getUserEmail() {
        return userEmail;
    }

    public AddPromotionFieldSet setUserEmail(String userEmail) {
        this.userEmail = userEmail;
        return this;
    }

    public String getVerificationPhoneNumber() {
        return verificationPhoneNumber;
    }

    public AddPromotionFieldSet setVerificationPhoneNumber(String verificationPhoneNumber) {
        this.verificationPhoneNumber = verificationPhoneNumber;
        return this;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy