com.adyen.model.checkoututility.OriginKeysResponse 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) 2018 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.checkoututility;
import com.google.gson.annotations.SerializedName;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
import static com.adyen.util.Util.toIndentedString;
/**
* OriginKeysResponse
*/
public class OriginKeysResponse {
@SerializedName("originKeys")
private Map originKeys = null;
public OriginKeysResponse originKeys(Map originKeys) {
this.originKeys = originKeys;
return this;
}
public OriginKeysResponse putOriginKeysItem(String key, String originKeysItem) {
if (originKeys == null) {
originKeys = new HashMap<>();
}
originKeys.put(key, originKeysItem);
return this;
}
/**
* The list of origin keys for all requested domains. For each list item, the key is the domain and the value is the origin key.
*
* @return originKeys
**/
public Map getOriginKeys() {
return originKeys;
}
public void setOriginKeys(Map originKeys) {
this.originKeys = originKeys;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
OriginKeysResponse originKeysResponse = (OriginKeysResponse) o;
return Objects.equals(originKeys, originKeysResponse.originKeys);
}
@Override
public int hashCode() {
return Objects.hash(originKeys);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class OriginKeysResponse {\n");
sb.append(" originKeys: ").append(toIndentedString(originKeys)).append("\n");
sb.append("}");
return sb.toString();
}
}