|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.braintreegateway.CustomerGateway
public class CustomerGateway
Provides methods to create, delete, find, and update Customer
objects. This class does not need to be instantiated directly. Instead, use
BraintreeGateway.customer() to get an instance of this class:
BraintreeGateway gateway = new BraintreeGateway(...); gateway.customer().create(...)For more detailed information on
Customers, see http://www.braintreepaymentsolutions.com/gateway/customer-api
| Field Summary | |
|---|---|
private Configuration |
configuration
|
private Http |
http
|
| Constructor Summary | |
|---|---|
CustomerGateway(Http http,
Configuration configuration)
|
|
| Method Summary | |
|---|---|
ResourceCollection<Customer> |
all()
Finds all Customers and returns a ResourceCollection. |
Result<Customer> |
confirmTransparentRedirect(String queryString)
Deprecated. |
Result<Customer> |
create(CustomerRequest request)
Creates a Customer. |
Result<Customer> |
delete(String id)
Deletes a Customer by id. |
(package private) List<Customer> |
fetchCustomers(CustomerSearchRequest query,
List<String> ids)
|
Customer |
find(String id)
Finds a Customer by id. |
ResourceCollection<Customer> |
search(CustomerSearchRequest query)
Finds all Transactions that match the query and returns a ResourceCollection. |
String |
transparentRedirectURLForCreate()
Deprecated. |
String |
transparentRedirectURLForUpdate()
Deprecated. |
Result<Customer> |
update(String id,
CustomerRequest request)
Updates a Customer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Configuration configuration
private Http http
| Constructor Detail |
|---|
public CustomerGateway(Http http,
Configuration configuration)
| Method Detail |
|---|
public ResourceCollection<Customer> all()
ResourceCollection.
ResourceCollection.
List<Customer> fetchCustomers(CustomerSearchRequest query,
List<String> ids)
@Deprecated public Result<Customer> confirmTransparentRedirect(String queryString)
public Result<Customer> create(CustomerRequest request)
Customer.
request - the request.
Result.public Result<Customer> delete(String id)
Customer by id.
id - the id of the Customer.
Result.public Customer find(String id)
Customer by id.
id - the id of the Customer.
Customer or raises a
NotFoundException.public ResourceCollection<Customer> search(CustomerSearchRequest query)
ResourceCollection.
See: http://www.braintreepaymentsolutions.com/gateway/transaction-api#searching
ResourceCollection.@Deprecated public String transparentRedirectURLForCreate()
@Deprecated public String transparentRedirectURLForUpdate()
public Result<Customer> update(String id,
CustomerRequest request)
Customer.
id - the id of the Customer.request - the request.
Result.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||