/* * Selling Partner API for Finances * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ package cn.amazon.aws.rp.spapi.clients.model; import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; /** * A loan advance, loan payment, or loan refund. */ @ApiModel(description = "A loan advance, loan payment, or loan refund.") @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-11-10T09:30:40.719+08:00") public class LoanServicingEvent { @SerializedName("LoanAmount") private Currency loanAmount = null; @SerializedName("SourceBusinessEventType") private String sourceBusinessEventType = null; public LoanServicingEvent loanAmount(Currency loanAmount) { this.loanAmount = loanAmount; return this; } /** * The amount of the loan. * @return loanAmount **/ @ApiModelProperty(value = "The amount of the loan.") public Currency getLoanAmount() { return loanAmount; } public void setLoanAmount(Currency loanAmount) { this.loanAmount = loanAmount; } public LoanServicingEvent sourceBusinessEventType(String sourceBusinessEventType) { this.sourceBusinessEventType = sourceBusinessEventType; return this; } /** * The type of event. Possible values: * LoanAdvance * LoanPayment * LoanRefund * @return sourceBusinessEventType **/ @ApiModelProperty(value = "The type of event. Possible values: * LoanAdvance * LoanPayment * LoanRefund") public String getSourceBusinessEventType() { return sourceBusinessEventType; } public void setSourceBusinessEventType(String sourceBusinessEventType) { this.sourceBusinessEventType = sourceBusinessEventType; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } LoanServicingEvent loanServicingEvent = (LoanServicingEvent) o; return Objects.equals(this.loanAmount, loanServicingEvent.loanAmount) && Objects.equals(this.sourceBusinessEventType, loanServicingEvent.sourceBusinessEventType); } @Override public int hashCode() { return Objects.hash(loanAmount, sourceBusinessEventType); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class LoanServicingEvent {\n"); sb.append(" loanAmount: ").append(toIndentedString(loanAmount)).append("\n"); sb.append(" sourceBusinessEventType: ").append(toIndentedString(sourceBusinessEventType)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }