public class AddressGateway extends Object
Address
objects.
This class does not need to be instantiated directly.
Instead, use BraintreeGateway.address()
to get an instance of this class:
BraintreeGateway gateway = new BraintreeGateway(...); gateway.address().create(...)
Modifier and Type | Field and Description |
---|---|
private Configuration |
configuration |
private Http |
http |
Constructor and Description |
---|
AddressGateway(Http http,
Configuration configuration) |
Modifier and Type | Method and Description |
---|---|
Result<Address> |
create(String customerId,
AddressRequest request)
|
Result<Address> |
delete(String customerId,
String id)
Deletes a Customer's
Address . |
Address |
find(String customerId,
String id)
Finds a Customer's
Address . |
Result<Address> |
update(String customerId,
String id,
AddressRequest request)
Updates a Customer's
Address . |
private Http http
private Configuration configuration
public AddressGateway(Http http, Configuration configuration)
public Result<Address> create(String customerId, AddressRequest request)
public Address find(String customerId, String id)
Address
.customerId
- the id of the Customer
.id
- the id of the Address
.Address
or raises a NotFoundException
.public Result<Address> update(String customerId, String id, AddressRequest request)
Address
.customerId
- the id of the Customer
.id
- the id of the Address
.request
- the request object containing the AddressRequest
parameters.Address
or raises a NotFoundException
.Copyright © 2013-2017. All Rights Reserved.