// Path: src/main/java/com/payu/sdk/model/response/Response.java
// @XmlRootElement(name = "response")
// @XmlAccessorType(XmlAccessType.FIELD)
// public class Response implements Serializable {
// 
// 	/** The generated serial version Id */
// 	private static final long serialVersionUID = -3399914855691352540L;
// 	/** The response code sent by the server */
// 	@XmlElement
// 	private ResponseCode code;
// 	/** The error message sent by the server */
// 	@XmlElement(required = false)
// 	private String error;
// 
// 	/**
// 	 * Returns the code
// 	 *
// 	 * @return the code
// 	 */
// 	public ResponseCode getCode() {
// 		return code;
// 	}
// 
// 	/**
// 	 * Returns the error message
// 	 *
// 	 * @return the error message
// 	 */
// 	public String getError() {
// 		return error;
// 	}
// 
// 	/**
// 	 * Sets the error message
// 	 *
// 	 * @param error
// 	 *            the error message to set
// 	 */
// 	public void setError(String error) {
// 		this.error = error;
// 	}
// 
// 	/**
// 	 * Sets the code
// 	 *
// 	 * @param code
// 	 *            the code to set
// 	 */
// 	public void setCode(ResponseCode code) {
// 		this.code = code;
// 	}
// 
// 	/* (non-Javadoc)
// 	 * @see java.lang.Object#toString()
// 	 */
// 	@Override
// 	public String toString() {
// 		return String.format("Response [code=%s, error=%s]", code, error);
// 	}
// 
// 	/**
// 	 * Converts the response to string response
// 	 *
// 	 * @return The response in a xml format
// 	 * @throws PayUException
// 	 */
// 	public String toXml() throws PayUException {
// 
// 		try {
// 			return JaxbUtil.convertJavaToXml(this, true);
// 		} catch (Exception e) {
// 			throw new PayUException(ErrorCode.XML_SERIALIZATION_ERROR, e);
// 		}
// 	}
// 
// 	/**
// 	 * Converts a string response to the response
// 	 *
// 	 * @param xmlData
// 	 *            The response in a xml format
// 	 * @return The response object
// 	 * @throws PayUException
// 	 */
// 	protected static Response fromBaseXml(Response response, String xmlData)
// 			throws PayUException {
// 
// 		try {
// 
// 			// Response code
// 			ResponseCode responseCode = ResponseCode.SUCCESS;
// 			Response baseResponse = null;
// 
// 			if (xmlData.contains("<response>")) {
// 				baseResponse = JaxbUtil.convertXmlToJava(Response.class,
// 						xmlData);
// 				responseCode = baseResponse.getCode();
// 			} else if (xmlData.contains("<paymentResponse>")) {
// 				baseResponse = JaxbUtil.convertXmlToJava(PaymentResponse.class,
// 						xmlData);
// 				responseCode = baseResponse.getCode();
// 			} else if (xmlData.contains("<reportingResponse>")) {
// 				baseResponse = JaxbUtil.convertXmlToJava(
// 						ReportingResponse.class, xmlData);
// 				responseCode = baseResponse.getCode();
// 			} else if (xmlData.contains("<transactionTokenBatchResponse>")) {
// 				baseResponse = JaxbUtil.convertXmlToJava(MassiveTokenPaymentsResponse.class, xmlData);
// 				responseCode = baseResponse.getCode();
// 			}
// 
// 			if (ResponseCode.SUCCESS.equals(responseCode)) {
// 				return JaxbUtil.convertXmlToJava(response.getClass(), xmlData);
// 			} else {
// 				throw new PayUException(ErrorCode.API_ERROR,
// 						baseResponse.getError());
// 			}
// 
// 		} catch (PayUException e) {
// 			throw e;
// 		} catch (Exception e) {
// 			throw new PayUException(ErrorCode.XML_DESERIALIZATION_ERROR, e);
// 		}
// 	}
// }


import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import com.payu.sdk.exceptions.PayUException;
import com.payu.sdk.model.response.Response;
/**
 * The MIT License (MIT)
 *
 * Copyright (c) 2016 developers-payu-latam
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */
package com.payu.sdk.payments.model;



/**
 * Represents a massive token payments response in the PayU SDK.
 *
 * @author Alejandro Cadena (alejandro.cadena@payu.com)
 * @version 1.3.9
 * @since 29/09/21
 */
@XmlRootElement(name = "transactionTokenBatchResponse")
@XmlAccessorType(XmlAccessType.FIELD)
// Path: src/main/java/com/payu/sdk/model/response/Response.java
// @XmlRootElement(name = "response")
// @XmlAccessorType(XmlAccessType.FIELD)
// public class Response implements Serializable {
// 
// 	/** The generated serial version Id */
// 	private static final long serialVersionUID = -3399914855691352540L;
// 	/** The response code sent by the server */
// 	@XmlElement
// 	private ResponseCode code;
// 	/** The error message sent by the server */
// 	@XmlElement(required = false)
// 	private String error;
// 
// 	/**
// 	 * Returns the code
// 	 *
// 	 * @return the code
// 	 */
// 	public ResponseCode getCode() {
// 		return code;
// 	}
// 
// 	/**
// 	 * Returns the error message
// 	 *
// 	 * @return the error message
// 	 */
// 	public String getError() {
// 		return error;
// 	}
// 
// 	/**
// 	 * Sets the error message
// 	 *
// 	 * @param error
// 	 *            the error message to set
// 	 */
// 	public void setError(String error) {
// 		this.error = error;
// 	}
// 
// 	/**
// 	 * Sets the code
// 	 *
// 	 * @param code
// 	 *            the code to set
// 	 */
// 	public void setCode(ResponseCode code) {
// 		this.code = code;
// 	}
// 
// 	/* (non-Javadoc)
// 	 * @see java.lang.Object#toString()
// 	 */
// 	@Override
// 	public String toString() {
// 		return String.format("Response [code=%s, error=%s]", code, error);
// 	}
// 
// 	/**
// 	 * Converts the response to string response
// 	 *
// 	 * @return The response in a xml format
// 	 * @throws PayUException
// 	 */
// 	public String toXml() throws PayUException {
// 
// 		try {
// 			return JaxbUtil.convertJavaToXml(this, true);
// 		} catch (Exception e) {
// 			throw new PayUException(ErrorCode.XML_SERIALIZATION_ERROR, e);
// 		}
// 	}
// 
// 	/**
// 	 * Converts a string response to the response
// 	 *
// 	 * @param xmlData
// 	 *            The response in a xml format
// 	 * @return The response object
// 	 * @throws PayUException
// 	 */
// 	protected static Response fromBaseXml(Response response, String xmlData)
// 			throws PayUException {
// 
// 		try {
// 
// 			// Response code
// 			ResponseCode responseCode = ResponseCode.SUCCESS;
// 			Response baseResponse = null;
// 
// 			if (xmlData.contains("<response>")) {
// 				baseResponse = JaxbUtil.convertXmlToJava(Response.class,
// 						xmlData);
// 				responseCode = baseResponse.getCode();
// 			} else if (xmlData.contains("<paymentResponse>")) {
// 				baseResponse = JaxbUtil.convertXmlToJava(PaymentResponse.class,
// 						xmlData);
// 				responseCode = baseResponse.getCode();
// 			} else if (xmlData.contains("<reportingResponse>")) {
// 				baseResponse = JaxbUtil.convertXmlToJava(
// 						ReportingResponse.class, xmlData);
// 				responseCode = baseResponse.getCode();
// 			} else if (xmlData.contains("<transactionTokenBatchResponse>")) {
// 				baseResponse = JaxbUtil.convertXmlToJava(MassiveTokenPaymentsResponse.class, xmlData);
// 				responseCode = baseResponse.getCode();
// 			}
// 
// 			if (ResponseCode.SUCCESS.equals(responseCode)) {
// 				return JaxbUtil.convertXmlToJava(response.getClass(), xmlData);
// 			} else {
// 				throw new PayUException(ErrorCode.API_ERROR,
// 						baseResponse.getError());
// 			}
// 
// 		} catch (PayUException e) {
// 			throw e;
// 		} catch (Exception e) {
// 			throw new PayUException(ErrorCode.XML_DESERIALIZATION_ERROR, e);
// 		}
// 	}
// }


// Path: src/main/java/com/payu/sdk/payments/model/MassiveTokenPaymentsResponse.java
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import com.payu.sdk.exceptions.PayUException;
import com.payu.sdk.model.response.Response;

/**
 * The MIT License (MIT)
 *
 * Copyright (c) 2016 developers-payu-latam
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */
package com.payu.sdk.payments.model;



/**
 * Represents a massive token payments response in the PayU SDK.
 *
 * @author Alejandro Cadena (alejandro.cadena@payu.com)
 * @version 1.3.9
 * @since 29/09/21
 */
@XmlRootElement(name = "transactionTokenBatchResponse")
@XmlAccessorType(XmlAccessType.FIELD)
public class MassiveTokenPaymentsResponse extends Response {