com.adyen.Service 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;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
public class Service {
protected static final Gson GSON = new GsonBuilder().disableHtmlEscaping().create();
private boolean isApiKeyRequired = false;
private Client client;
protected Service(Client client) {
this.client = client;
}
public Client getClient() {
return client;
}
public void setClient(Client client) {
this.client = client;
}
public boolean isApiKeyRequired() {
return isApiKeyRequired;
}
public void setApiKeyRequired(boolean apiKeyRequired) {
isApiKeyRequired = apiKeyRequired;
}
}