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
5 changes: 4 additions & 1 deletion lib/secretariat/trade_party.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module Secretariat
using ObjectExtensions

TradeParty = Struct.new('TradeParty',
:name, :street1, :street2, :city, :postal_code, :country_id, :vat_id, :contact_name, :contact_phone, :contact_email, :global_id, :global_id_scheme_id, :tax_id,
:name, :street1, :street2, :street3, :city, :postal_code, :country_id, :vat_id, :contact_name, :contact_phone, :contact_email, :global_id, :global_id_scheme_id, :tax_id,
keyword_init: true,
) do
def to_xml(xml, exclude_tax: false, version: 2)
Expand Down Expand Up @@ -49,6 +49,9 @@ def to_xml(xml, exclude_tax: false, version: 2)
if street2.present?
xml['ram'].LineTwo street2
end
if street3.present?
xml['ram'].LineThree street3
end
xml['ram'].CityName city
xml['ram'].CountryID country_id
end
Expand Down