See also the
Braintree::Address response object.
The only attribute required to create an address is the
customer_id. Addresses stored in the Vault need to be associated to a customer. You cannot specify Address ID. It is always generated by the gateway as two alphanumeric characters. Address IDs are unique to the customer, so multiple customers can have the same address ID.
result = Braintree::Address.create( :customer_id => '131866', :first_name => 'Jenna', :last_name => 'Smith', :company => 'Braintree', :street_address => '1 E Main St', :extended_address => 'Suite 403', :locality => 'Chicago', :region => 'Illinois', :postal_code => '60622', :country_code_alpha2 => 'US' )
The country name specified in an address. Braintree only accepts specific country names.
The identification value of the customer. The value must be less than or equal to 36 characters. Valid characters are letters, numbers, - and _. The words "all" and "new" currently cannot be used.
The postal code. Postal code must be a string of 5 or 9 alphanumeric digits, optionally separated by a dash or a space. Spaces, hyphens, and all other special characters are ignored.
The state or province. The region must be a 2-letter abbreviation and must be less than or equal to 255 characters.