From 7da09ca255ac3717faf984f42f1ecf0efc95739d Mon Sep 17 00:00:00 2001 From: Akise17 Date: Wed, 10 Dec 2025 12:25:14 +0700 Subject: [PATCH] [FUS-638] Introduce LineThree --- lib/secretariat/trade_party.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/secretariat/trade_party.rb b/lib/secretariat/trade_party.rb index c15afaf..9545b91 100644 --- a/lib/secretariat/trade_party.rb +++ b/lib/secretariat/trade_party.rb @@ -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) @@ -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