Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib/ups/builders/address_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ def email_address
# @return [Ox::Element] XML representation of the current object
def to_xml
Element.new('Address').tap do |address|
# By setting the residential address indicator tag.
# We can trigger UPS to check for any surcharge related to that area
# and apply the charge automically.
address << element_with_value('ResidentialAddressIndicator', '')
address << address_line_1
address << address_line_2
address << email_address if opts[:email_address]
Expand Down