|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.braintreegateway.AddressGateway
public class AddressGateway
Provides methods to create, delete, find, and update 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(...)
| Field Summary | |
|---|---|
private Http |
http
|
| Constructor Summary | |
|---|---|
AddressGateway(Http http)
|
|
| Method Summary | |
|---|---|
Result<Address> |
create(String customerId,
AddressRequest request)
Creates an Address for a Customer. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Http http
| Constructor Detail |
|---|
public AddressGateway(Http http)
| Method Detail |
|---|
public Result<Address> create(String customerId,
AddressRequest request)
Address for a Customer.
customerId - the id of the Customer.request - the request object.
Result object.
public Result<Address> delete(String customerId,
String id)
Address.
customerId - the id of the Customer.id - the id of the Address to delete.
Result object.
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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||