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

jp.gopay.sdk.models.request.configuration.TransferScheduleConfigurationRequest Maven / Gradle / Ivy

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

import com.google.gson.annotations.SerializedName;
import jp.gopay.sdk.types.DayOfMonth;
import jp.gopay.sdk.types.DayOfWeek;
import jp.gopay.sdk.types.TransferPeriod;
import jp.gopay.sdk.types.WeekOfMonth;
import org.joda.time.Period;

public class TransferScheduleConfigurationRequest {

    @SerializedName("wait_period")
    private Period waitPeriod;

    @SerializedName("period")
    private TransferPeriod period;

    @SerializedName("full_period_required")
    private Boolean fullPeriodRequired;

    @SerializedName("day_of_week")
    private DayOfWeek dayOfWeek;

    @SerializedName("week_of_month")
    private WeekOfMonth weekOfMonth;

    @SerializedName("day_of_month")
    private DayOfMonth dayOfMonth;

    @SerializedName("preconfigured")
    private PreconfiguredTransferSchedule preconfigured;

    public TransferScheduleConfigurationRequest(Period waitPeriod,
                                                TransferPeriod period,
                                                DayOfWeek dayOfWeek,
                                                WeekOfMonth weekOfMonth,
                                                DayOfMonth dayOfMonth,
                                                Boolean fullPeriodRequired) {
        this.waitPeriod = waitPeriod;
        this.period = period;
        this.fullPeriodRequired = fullPeriodRequired;
        this.dayOfWeek = dayOfWeek;
        this.weekOfMonth = weekOfMonth;
        this.dayOfMonth = dayOfMonth;
    }

    public TransferScheduleConfigurationRequest(PreconfiguredTransferSchedule preconfigured, Boolean fullPeriodRequired) {
        this.fullPeriodRequired = fullPeriodRequired;
        this.preconfigured = preconfigured;
    }

    public TransferScheduleConfigurationRequest(PreconfiguredTransferSchedule preconfigured) {
        this.preconfigured = preconfigured;
    }

    public Period getWaitPeriod() {
        return waitPeriod;
    }

    public TransferPeriod getPeriod() {
        return period;
    }

    public Boolean getFullPeriodRequired() {
        return fullPeriodRequired;
    }

    public DayOfWeek getDayOfWeek() {
        return dayOfWeek;
    }

    public WeekOfMonth getWeekOfMonth() {
        return weekOfMonth;
    }

    public DayOfMonth getDayOfMonth() {
        return dayOfMonth;
    }

    public PreconfiguredTransferSchedule getPreconfigured() {
        return preconfigured;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy