Class: Braintree::Address


An Address belongs to a Customer. It can be associated to a CreditCard as the billing address. It can also be used as the shipping address when creating a Transaction.


Attributes
[R] company
[R] country_code_alpha2
[R] country_code_alpha3
[R] country_code_numeric
[R] country_name
[R] created_at
[R] customer_id
[R] extended_address
[R] first_name
[R] id
[R] last_name
[R] locality
[R] postal_code
[R] region
[R] street_address
[R] updated_at

Public Class Methods
create(attributes)
create!(attributes)
delete(customer_or_customer_id, address_id)
find(customer_or_customer_id, address_id)

Finds the address with the given address_id that is associated to the given customer_or_customer_id. If the address cannot be found, a NotFoundError will be raised.

update(customer_or_customer_id, address_id, attributes)
update!(customer_or_customer_id, address_id, attributes)

Public Instance Methods
delete()

Deletes the address.

update(attributes)
update!(attributes)

© Copyright 2009 Braintree Payment Solutions. All Rights Reserved.