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

jp.gopay.sdk.builders.ledgers.AbstractLedgersBuilders Maven / Gradle / Ivy

package jp.gopay.sdk.builders.ledgers;

import jp.gopay.sdk.builders.RetrofitRequestBuilderPaginated;
import jp.gopay.sdk.models.common.LedgerId;
import jp.gopay.sdk.models.common.TransferId;
import jp.gopay.sdk.models.response.ledger.Ledger;
import retrofit2.Retrofit;

public abstract class AbstractLedgersBuilders {


    public static abstract class AbstractListLedgersRequestBuilder
            extends RetrofitRequestBuilderPaginated {
        protected Boolean all;
        protected String from;
        protected String to;
        protected Integer min;
        protected Integer max;
        protected String currency;
        protected TransferId transferId;

        protected Boolean isAll() {
            return all;
        }

        protected String getFrom() {
            return from;
        }

        protected String getTo() {
            return to;
        }

        protected Integer getMin() {
            return min;
        }

        protected Integer getMax() {
            return max;
        }

        protected String getCurrency() {
            return currency;
        }

        protected TransferId getTransferId() {
            return transferId;
        }

        public AbstractListLedgersRequestBuilder(Retrofit retrofit, TransferId transferId) {
            super(retrofit);
            this.transferId = transferId;
        }

        public B withAll(Boolean all) {
            this.all = all;
            return (B)this;
        }

        public B withFrom(String from) {
            this.from = from;
            return (B)this;
        }

        public B withTo(String to) {
            this.to = to;
            return (B)this;
        }

        public B withMin(Integer min) {
            this.min = min;
            return (B)this;
        }

        public B withMax(Integer max) {
            this.max = max;
            return (B)this;
        }

        public B withCurrency(String currency) {
            this.currency = currency;
            return (B)this;
        }

    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy