![JAR search and dependency download from the Maven repository](/logo.png)
com.lionbridge.content.sdk.models.Payment Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of liox-content-sdk-java Show documentation
Show all versions of liox-content-sdk-java Show documentation
Client for Lionbridge Ondemand API
package com.lionbridge.content.sdk.models;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Marshaller;
import javax.xml.bind.annotation.XmlRootElement;
import java.io.StringWriter;
@JsonDeserialize
@JacksonXmlRootElement(localName="Payment")
@XmlRootElement
public class Payment {
@JacksonXmlProperty(localName="PaymentType")
private String paymentType;
@JacksonXmlProperty(localName="PaymentDescription")
private String paymentDescription;
@JacksonXmlProperty(localName="PaymentAmount")
private String paymentAmount;
@JacksonXmlProperty(localName="PaymentCurrency")
private String paymentCurrency;
public String toXmlStringSimple() {
String xmlString = "";
try {
JAXBContext context = JAXBContext.newInstance(this.getClass());
Marshaller m = context.createMarshaller();
m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true); // To format XML
StringWriter sw = new StringWriter();
m.marshal(this, sw);
xmlString = sw.toString();
} catch (JAXBException e) {
e.printStackTrace();
}
return xmlString;
}
public final String getPaymentType() {
return this.paymentType;
}
public final void setPaymentType(final String paymentType) {
this.paymentType = paymentType;
}
public final String getPaymentDescription() {
return this.paymentDescription;
}
public final void setPaymentDescription(final String paymentDescription) {
this.paymentDescription = paymentDescription;
}
public final String getPaymentAmount() {
return this.paymentAmount;
}
public final void setPaymentAmount(final String paymentAmount) {
this.paymentAmount = paymentAmount;
}
public final String getPaymentCurrency() {
return this.paymentCurrency;
}
public final void setPaymentCurrency(final String paymentCurrency) {
this.paymentCurrency = paymentCurrency;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy