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

com.siftscience.model.CreateAccountFieldSet 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 CreateAccountFieldSet extends BaseAccountFieldSet {
    public static CreateAccountFieldSet fromJson(String json) {
        return gson.fromJson(json, CreateAccountFieldSet.class);
    }

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

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

    public List getPromotions() {
        return promotions;
    }

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

    public List getAccountTypes() { return accountTypes; }

    public CreateAccountFieldSet setAccountTypes(List accountTypes) {
        this.accountTypes = accountTypes;
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy