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

jp.gopay.sdk.models.response.subscription.ScheduledPayment Maven / Gradle / Ivy

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

import com.google.gson.annotations.SerializedName;
import jp.gopay.sdk.models.common.ScheduledPaymentId;
import jp.gopay.sdk.models.response.GoPayResponse;
import jp.gopay.sdk.models.response.SimpleModel;
import org.joda.time.LocalDate;
import org.threeten.bp.ZoneId;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Date;
import java.util.UUID;

public class ScheduledPayment extends GoPayResponse implements SimpleModel {

    @SerializedName("id")
    private UUID id;

    @SerializedName("due_date")
    private LocalDate dueDate;

    @SerializedName("zone_id")
    private ZoneId zoneId;

    @SerializedName("amount")
    private BigInteger amount;

    @SerializedName("amount_formatted")
    private BigDecimal amountFormatted;

    @SerializedName("currency")
    private String currency;

    @SerializedName("is_paid")
    private Boolean isPaid;

    @SerializedName("is_last_payment")
    private Boolean isLastPayment;

    @SerializedName("created_on")
    private Date createdOn;

    @SerializedName("updated_on")
    private Date updatedOn;

    @Override
    public ScheduledPaymentId getId() {
        return new ScheduledPaymentId(id);
    }

    public LocalDate getDueDate() {
        return dueDate;
    }

    public ZoneId getZoneId() {
        return zoneId;
    }

    public BigInteger getAmount() {
        return amount;
    }

    public String getCurrency() {
        return currency;
    }

    public BigDecimal getAmountFormatted() {
        return amountFormatted;
    }

    public Boolean getIsPaid() {
        return isPaid;
    }

    public Boolean getIsLastPayment() {
        return isLastPayment;
    }

    public Date getCreatedOn() {
        return createdOn;
    }

    public Date getUpdatedOn() {
        return updatedOn;
    }

    public Boolean getPaid() {
        return isPaid;
    }

    public Boolean getLastPayment() {
        return isLastPayment;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy