com.adyen.model.terminal.TerminalAPIRequest 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) 2019 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.terminal;
import com.adyen.model.nexo.SaleToPOIRequest;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.gson.annotations.SerializedName;
import java.util.Objects;
/**
* Terminal API Request
*/
public class TerminalAPIRequest {
@SerializedName("SaleToPOIRequest")
@JsonProperty("SaleToPOIRequest")
private SaleToPOIRequest saleToPOIRequest;
/**
* Gets sale to POI request.
*
* @return the sale to POI request
*/
public SaleToPOIRequest getSaleToPOIRequest() {
return saleToPOIRequest;
}
/**
* Sets sale to POI request.
*
* @param saleToPOIRequest the sale to POI request
*/
public void setSaleToPOIRequest(SaleToPOIRequest saleToPOIRequest) {
this.saleToPOIRequest = saleToPOIRequest;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
TerminalAPIRequest that = (TerminalAPIRequest) o;
return saleToPOIRequest.equals(that.saleToPOIRequest);
}
@Override
public int hashCode() {
return Objects.hash(saleToPOIRequest);
}
@Override
public String toString() {
return "TerminalAPIRequest{" +
"saleToPOIRequest=" + saleToPOIRequest +
'}';
}
}