All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.adyen.model.checkoututility.OriginKeysResponse Maven / Gradle / Ivy

There is a newer version: 28.4.0
Show newest version
/*
 *                       ######
 *                       ######
 * ############    ####( ######  #####. ######  ############   ############
 * #############  #####( ######  #####. ######  #############  #############
 *        ######  #####( ######  #####. ######  #####  ######  #####  ######
 * ###### ######  #####( ######  #####. ######  #####  #####   #####  ######
 * ###### ######  #####( ######  #####. ######  #####          #####  ######
 * #############  #############  #############  #############  #####  ######
 *  ############   ############  #############   ############  #####  ######
 *                                      ######
 *                               #############
 *                               ############
 *
 * 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.Map;
import java.util.Objects;

/**
 * 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 (this.originKeys == null) {
            this.originKeys = null;
        }

        this.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(this.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();
    }

    /**
     * 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    ");
    }


}







© 2015 - 2024 Weber Informatics LLC | Privacy Policy