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 http://www.braintreepaymentsolutions.com/gateway/customer-apiModifier and Type | Field and Description |
---|---|
private Configuration |
configuration |
private Http |
http |
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.
|
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 . |
private Configuration configuration
private Http http
public CustomerGateway(Http http, Configuration configuration)
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 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#searchingResourceCollection
.@Deprecated public String transparentRedirectURLForCreate()
@Deprecated public String transparentRedirectURLForUpdate()
Copyright © 2013-2016. All Rights Reserved.