Class: ONEAccess::API::V3_0::Interactions

Inherits:
Base
  • Object
show all
Defined in:
lib/oneaccess/api/v3_0/interactions.rb

Defined Under Namespace

Modules: Types

Class Method Summary collapse

Methods inherited from ApiBase

api_url, resource_api_path, send_get, send_post

Class Method Details

.buy_side_interactions(type:, start_date:, end_date:, user_id:, broker:, company_name:, email:) ⇒ Object



23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/oneaccess/api/v3_0/interactions.rb', line 23

def buy_side_interactions(
  type:,
  start_date:,
  end_date:,
  user_id:,
  broker:,
  company_name:,
  email:
)

  validate_date(start_date)
  validate_date(end_date)

  response = send_post(
    "buysideinteractions",
    payload(type, start_date, end_date, user_id, broker, company_name, email)
  )

  Response::BuySideInteractionsResponse.from_json(response.body)
end