com.transbank.webpay.wswebpay.service.Authorize Maven / Gradle / Ivy
Show all versions of transbank-sdk-java Show documentation
package com.transbank.webpay.wswebpay.service;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for authorize complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="authorize">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="token" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="paymentTypeList" type="{http://service.wswebpay.webpay.transbank.com/}wsCompletePaymentTypeInput" maxOccurs="unbounded"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "authorize", propOrder = {
"token",
"paymentTypeList"
})
public class Authorize {
@XmlElement(required = true)
protected String token;
@XmlElement(required = true)
protected List paymentTypeList;
/**
* Gets the value of the token property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getToken() {
return token;
}
/**
* Sets the value of the token property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setToken(String value) {
this.token = value;
}
/**
* Gets the value of the paymentTypeList 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 paymentTypeList property.
*
*
* For example, to add a new item, do as follows:
*
* getPaymentTypeList().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link WsCompletePaymentTypeInput }
*
*
*/
public List getPaymentTypeList() {
if (paymentTypeList == null) {
paymentTypeList = new ArrayList();
}
return this.paymentTypeList;
}
}