Skip to content
Open
Show file tree
Hide file tree
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/avatax/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ module Configuration
:custom_logger_options,
:proxy,
:faraday_response,
:response_big_decimal_conversion
:response_big_decimal_conversion,
:client_uid
].freeze

DEFAULT_APP_NAME = nil
Expand All @@ -36,6 +37,7 @@ module Configuration
DEFAULT_PROXY = nil
DEFAULT_FARADAY_RESPONSE = false
DEFAULT_RESPONSE_BIG_DECIMAL_CONVERSION = false
DEFAULT_CLIENT_UID = nil

attr_accessor *VALID_OPTIONS_KEYS

Expand Down Expand Up @@ -70,6 +72,7 @@ def reset
self.proxy = DEFAULT_PROXY
self.faraday_response = DEFAULT_FARADAY_RESPONSE
self.response_big_decimal_conversion = DEFAULT_RESPONSE_BIG_DECIMAL_CONVERSION
self.client_uid = DEFAULT_CLIENT_UID
end

end
Expand Down
3 changes: 2 additions & 1 deletion lib/avatax/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ def connection
{
'Accept' => "application/json; charset=utf-8",
'User-Agent' => user_agent,
'X-Avalara-Client' => client_id
'X-Avalara-Client' => client_id,
'X-Avalara-UID' => client_uid
},
:url => endpoint,
:proxy => proxy
Expand Down