com.braintreegateway.Descriptor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.apache.servicemix.bundles.braintree-java
Show all versions of org.apache.servicemix.bundles.braintree-java
This OSGi bundle wraps ${pkgArtifactId} ${pkgVersion} jar file.
package com.braintreegateway;
import com.braintreegateway.util.NodeWrapper;
/**
* An address can belong to:
*
* - a CreditCard as the billing address
*
- a Customer as an address
*
- a Transaction as a billing or shipping address
*
*
*/
public class Descriptor {
private String name;
private String phone;
private String url;
public Descriptor(NodeWrapper node) {
name = node.findString("name");
phone = node.findString("phone");
url = node.findString("url");
}
public String getName() {
return name;
}
public String getPhone() {
return phone;
}
public String getUrl() {
return url;
}
}