urn.ebay.api.PayPalAPI.CreateBillingAgreementReq Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of merchantsdk Show documentation
Show all versions of merchantsdk Show documentation
The PayPal Merchant SDK provides Java APIs for processing payments, recurring payments, subscriptions and transactions using PayPal's Merchant APIs, which include Express Checkout, Recurring Payments, Direct Payment and Transactional APIs.
package urn.ebay.api.PayPalAPI;
import urn.ebay.api.PayPalAPI.CreateBillingAgreementRequestType;
import com.paypal.core.SDKUtil;
/**
*
*/
public class CreateBillingAgreementReq{
private static final String nameSpace="urn:ebay:api:PayPalAPI";
private static final String preferredPrefix="ns";
/**
*
*/
private CreateBillingAgreementRequestType createBillingAgreementRequest;
/**
* Default Constructor
*/
public CreateBillingAgreementReq (){
}
/**
* Getter for createBillingAgreementRequest
*/
public CreateBillingAgreementRequestType getCreateBillingAgreementRequest() {
return createBillingAgreementRequest;
}
/**
* Setter for createBillingAgreementRequest
*/
public void setCreateBillingAgreementRequest(CreateBillingAgreementRequestType createBillingAgreementRequest) {
this.createBillingAgreementRequest = createBillingAgreementRequest;
}
public String toXMLString(String prefix, String name) {
StringBuilder sb = new StringBuilder();
if(name!=null){
if(prefix!=null){
sb.append("<").append(prefix).append(":").append(name).append(">");
}
else{
sb.append("<").append(preferredPrefix).append(":").append(name).append(">");
}
}
if(createBillingAgreementRequest != null) {
sb.append(createBillingAgreementRequest.toXMLString(null,"CreateBillingAgreementRequest"));
}
if(name!=null){
if(prefix!=null){
sb.append("").append(prefix).append(":").append(name).append(">");
}
else{
sb.append("").append(preferredPrefix).append(":").append(name).append(">");
}
}
return sb.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy