com.adyen.model.nexo.POIProfile Maven / Gradle / Ivy
package com.adyen.model.nexo;
import io.swagger.v3.oas.annotations.media.Schema;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlList;
import javax.xml.bind.annotation.XmlType;
import java.util.ArrayList;
import java.util.List;
/**
* Definition: Functional profile of the POI Terminal. -- Usage: Sent in the Login Response to identify the profiles the POI Terminal support during the session. The value of this data element contains: One of the generic profile: Basic, Standard or Extended, A list (possibly empty) of services
*
* Java class for POIProfile complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="POIProfile">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="ServiceProfiles" type="{}ServiceProfiles" minOccurs="0"/>
* </sequence>
* <attribute name="GenericProfile" type="{}GenericProfileType" default="Standard" />
* </restriction>
* </complexContent>
* </complexType>
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "POIProfile", propOrder = {
"serviceProfiles"
})
public class POIProfile {
/**
* The Service profiles.
*/
@XmlList
@XmlElement(name = "ServiceProfiles")
@Schema(description = "Service profiles of the Sale to POI protocol. --Rule: If a service profile could be requested")
protected List serviceProfiles;
/**
* The Generic profile.
*/
@XmlElement(name = "GenericProfile")
@Schema(description = "Functional profile of the Sale to POI protocol.")
protected GenericProfileType genericProfile;
/**
* Gets the value of the serviceProfiles property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a set
method for the serviceProfiles property.
*
*
* For example, to add a new item, do as follows:
*
* getServiceProfiles().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link ServiceProfilesType }
*
* @return the service profiles
*/
public List getServiceProfiles() {
if (serviceProfiles == null) {
serviceProfiles = new ArrayList<>();
}
return this.serviceProfiles;
}
/**
* Gets the value of the genericProfile property.
*
* @return possible object is {@link GenericProfileType }
*/
public GenericProfileType getGenericProfile() {
if (genericProfile == null) {
return GenericProfileType.STANDARD;
} else {
return genericProfile;
}
}
/**
* Sets the value of the genericProfile property.
*
* @param value allowed object is {@link GenericProfileType }
*/
public void setGenericProfile(GenericProfileType value) {
this.genericProfile = value;
}
}