Class: Lithic::Resources::Transactions::Events::EnhancedCommercialData
- Inherits:
-
Object
- Object
- Lithic::Resources::Transactions::Events::EnhancedCommercialData
- Defined in:
- lib/lithic/resources/transactions/events/enhanced_commercial_data.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ EnhancedCommercialData
constructor
private
A new instance of EnhancedCommercialData.
-
#retrieve(event_token, request_options: {}) ⇒ Lithic::Models::Transactions::Events::EnhancedData
Get L2/L3 enhanced commercial data associated with a transaction event.
Constructor Details
#initialize(client:) ⇒ EnhancedCommercialData
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of EnhancedCommercialData.
32 33 34 |
# File 'lib/lithic/resources/transactions/events/enhanced_commercial_data.rb', line 32 def initialize(client:) @client = client end |
Instance Method Details
#retrieve(event_token, request_options: {}) ⇒ Lithic::Models::Transactions::Events::EnhancedData
Get L2/L3 enhanced commercial data associated with a transaction event. Not available in sandbox.
20 21 22 23 24 25 26 27 |
# File 'lib/lithic/resources/transactions/events/enhanced_commercial_data.rb', line 20 def retrieve(event_token, params = {}) @client.request( method: :get, path: ["v1/transactions/events/%1$s/enhanced_commercial_data", event_token], model: Lithic::Transactions::Events::EnhancedData, options: params[:request_options] ) end |