public class CustomerGateway extends Object
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 https://developers.braintreepayments.com/reference/response/customer/java| Constructor and Description |
|---|
CustomerGateway(Http http,
Configuration configuration) |
| Modifier and Type | Method and Description |
|---|---|
ResourceCollection<Customer> |
all()
Finds all Customers and returns a
ResourceCollection. |
Result<Customer> |
confirmTransparentRedirect(String queryString)
Deprecated.
see TransparentRedirectGateway#confirmCustomer(String)
|
Result<Customer> |
create(CustomerRequest request)
Creates a
Customer. |
Result<Customer> |
delete(String id)
Deletes a
Customer by id. |
Customer |
find(String id)
Finds a
Customer by id. |
Customer |
find(String id,
String associationFilterId)
Finds a
Customer by id. |
ResourceCollection<Customer> |
search(CustomerSearchRequest query)
Finds all Transactions that match the query and returns a
ResourceCollection. |
String |
transparentRedirectURLForCreate()
Deprecated.
see TransparentRedirectGateway#url()
|
String |
transparentRedirectURLForUpdate()
Deprecated.
see TransparentRedirectGateway#url()
|
Result<Customer> |
update(String id,
CustomerRequest request)
Updates a
Customer. |
public CustomerGateway(Http http, Configuration configuration)
public ResourceCollection<Customer> all()
ResourceCollection.ResourceCollection.@Deprecated public Result<Customer> confirmTransparentRedirect(String queryString)
queryString - the query stringpublic Result<Customer> create(CustomerRequest request)
Customer.request - the request.Result.public Customer find(String id)
Customer by id.id - the id of the Customer.Customer or raises a
NotFoundException.public Customer find(String id, String associationFilterId)
Customer by id.id - the id of the Customer.associationFilterId - the id of the association filter to use.Customer or raises a
NotFoundException.public ResourceCollection<Customer> search(CustomerSearchRequest query)
ResourceCollection.
See: https://developers.braintreepayments.com/reference/request/transaction/search/javaquery - the request query to use for searchResourceCollection.@Deprecated public String transparentRedirectURLForCreate()
@Deprecated public String transparentRedirectURLForUpdate()
Copyright © 2013–2018. All rights reserved.