Class: Lithic::Resources::Transactions::Events::EnhancedCommercialData

Inherits:
Object
  • Object
show all
Defined in:
lib/lithic/resources/transactions/events/enhanced_commercial_data.rb

Instance Method Summary collapse

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.

Parameters:



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.

Parameters:

  • event_token (String)

    The token of the transaction event that the enhanced data is associated with.

  • request_options (Lithic::RequestOptions, Hash{Symbol=>Object}, nil)

Returns:

See Also:



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