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

jp.gopay.sdk.models.response.store.CardConfiguration Maven / Gradle / Ivy

There is a newer version: 0.11.17
Show newest version
package jp.gopay.sdk.models.response.store;

import com.google.gson.annotations.SerializedName;
import jp.gopay.sdk.models.response.CardLimit;
import jp.gopay.sdk.types.CardBrand;
import jp.gopay.sdk.types.Country;

import javax.annotation.Nullable;
import java.util.List;

public class CardConfiguration{
    @SerializedName("enabled")
    private Boolean enabled;

    @SerializedName("debit_enabled")
    private Boolean debitEnabled;

    @SerializedName("prepaid_enabled")
    private Boolean prepaidEnabled;

    @SerializedName("forbidden_card_brands")
    private List forbiddenCardBrands;

    @SerializedName("allowed_countries_by_ip")
    private List allowedCountriesByIp;

    @SerializedName("foreign_cards_allowed")
    private Boolean foreignCardsAllowed;

    @SerializedName("fail_on_new_email")
    private Boolean failOnNewEmail;

    @SerializedName("allow_empty_cvv")
    private Boolean allowEmptyCvv;

    @SerializedName("card_limit")
    private CardLimit cardLimit;

    public Boolean getEnabled() {
        return enabled;
    }

    public Boolean getDebitEnabled() {
        return debitEnabled;
    }

    public Boolean getPrepaidEnabled() {
        return prepaidEnabled;
    }

    public List getForbiddenCardBrands() {
        return forbiddenCardBrands;
    }

    public List getAllowedCountriesByIp() {
        return allowedCountriesByIp;
    }

    public Boolean getForeignCardsAllowed() {
        return foreignCardsAllowed;
    }

    public Boolean getFailOnNewEmail() {
        return failOnNewEmail;
    }

    public Boolean getAllowEmptyCvv() {
        return allowEmptyCvv;
    }

    public CardLimit getCardLimit() {
        return cardLimit;
    }

    public CardConfiguration(@Nullable Boolean enabled,
                             @Nullable Boolean debitEnabled,
                             @Nullable Boolean prepaidEnabled,
                             @Nullable List forbiddenCardBrands,
                             @Nullable List allowedCountriesByIp,
                             @Nullable Boolean foreignCardsAllowed,
                             @Nullable Boolean failOnNewEmail,
                             @Nullable Boolean allowEmptyCvv,
                             @Nullable CardLimit cardLimit) {
        this.enabled = enabled;
        this.debitEnabled = debitEnabled;
        this.prepaidEnabled = prepaidEnabled;
        this.forbiddenCardBrands = forbiddenCardBrands;
        this.allowedCountriesByIp = allowedCountriesByIp;
        this.foreignCardsAllowed = foreignCardsAllowed;
        this.failOnNewEmail = failOnNewEmail;
        this.allowEmptyCvv = allowEmptyCvv;
        this.cardLimit = cardLimit;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy