jp.gopay.sdk.models.response.subscription.ScheduledPayment Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gopay-java-sdk Show documentation
Show all versions of gopay-java-sdk Show documentation
Official Gyro-n Payments Java SDK
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;
}
}