com.siftscience.model.CreateAccountFieldSet Maven / Gradle / Ivy
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;
}
}