jp.gopay.sdk.models.response.ledger.Ledger 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.ledger;
import com.google.gson.annotations.SerializedName;
import jp.gopay.sdk.models.common.LedgerId;
import jp.gopay.sdk.models.common.StoreId;
import jp.gopay.sdk.models.response.GoPayResponse;
import jp.gopay.sdk.models.response.SimpleModel;
import jp.gopay.sdk.types.LedgerOrigin;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Date;
import java.util.UUID;
public class Ledger extends GoPayResponse implements SimpleModel {
@SerializedName("id")
private UUID id;
@SerializedName("store_id")
private UUID storeId;
@SerializedName("amount")
private BigInteger amount;
@SerializedName("currency")
private String currency;
@SerializedName("amount_formatted")
private BigDecimal amountFormatted;
@SerializedName("percent_fee")
private BigDecimal percentFee;
@SerializedName("flat_fee_amount")
private BigDecimal flatFeeAmount;
@SerializedName("flat_fee_currency")
private String flatFeeCurrency;
@SerializedName("flat_fee_formatted")
private BigDecimal flatFeeFormatted;
@SerializedName("exchange_rate")
private BigDecimal exchangeRate;
@SerializedName("note")
private String note;
@SerializedName("origin")
private LedgerOrigin origin;
@SerializedName("created_on")
private Date createdOn;
@Override
public LedgerId getId() {
return new LedgerId(id);
}
public StoreId getStoreId() {
return new StoreId(storeId);
}
public BigInteger getAmount() {
return amount;
}
public String getCurrency() {
return currency;
}
public BigDecimal getAmountFormatted() {
return amountFormatted;
}
public BigDecimal getPercentFee() {
return percentFee;
}
public BigDecimal getFlatFeeAmount() {
return flatFeeAmount;
}
public String getFlatFeeCurrency() {
return flatFeeCurrency;
}
public BigDecimal getFlatFeeFormatted() {
return flatFeeFormatted;
}
public BigDecimal getExchangeRate() {
return exchangeRate;
}
public String getNote() {
return note;
}
public Date getCreatedOn() {
return createdOn;
}
public LedgerOrigin getOrigin() {
return origin;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy