com.adyen.model.marketpay.AccountStateLimit Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of adyen-java-api-library Show documentation
Show all versions of adyen-java-api-library Show documentation
Adyen API Client Library for Java
/*
* ######
* ######
* ############ ####( ###### #####. ###### ############ ############
* ############# #####( ###### #####. ###### ############# #############
* ###### #####( ###### #####. ###### ##### ###### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ######
* ############# ############# ############# ############# ##### ######
* ############ ############ ############# ############ ##### ######
* ######
* #############
* ############
*
* Adyen Java API Library
*
* Copyright (c) 2017 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
package com.adyen.model.marketpay;
import java.util.Objects;
import com.google.gson.annotations.SerializedName;
/**
* AccountStateLimit
*/
public class AccountStateLimit {
@SerializedName("amount")
private Long amount = null;
@SerializedName("currency")
private String currency = null;
public AccountStateLimit amount(Long amount) {
this.amount = amount;
return this;
}
/**
* the amount value in minor units
*
* @return amount
**/
public Long getAmount() {
return amount;
}
public void setAmount(Long amount) {
this.amount = amount;
}
public AccountStateLimit currency(String currency) {
this.currency = currency;
return this;
}
/**
* the amount three letter currency code (ISO 4217)
*
* @return currency
**/
public String getCurrency() {
return currency;
}
public void setCurrency(String currency) {
this.currency = currency;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AccountStateLimit accountStateLimit = (AccountStateLimit) o;
return Objects.equals(this.amount, accountStateLimit.amount) && Objects.equals(this.currency, accountStateLimit.currency);
}
@Override
public int hashCode() {
return Objects.hash(amount, currency);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AccountStateLimit {\n");
sb.append(" amount: ").append(toIndentedString(amount)).append("\n");
sb.append(" currency: ").append(toIndentedString(currency)).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 ");
}
}