Method: GfreshPoint::Client#consume_point

Defined in:
lib/gfresh_point.rb

#consume_point(user_id, point, event_name, origin_id, force, comment = {}) ⇒ Object



52
53
54
55
56
57
# File 'lib/gfresh_point.rb', line 52

def consume_point(user_id, point, event_name, origin_id, force, comment = {})
  request = GfreshPoint::RequestObjects::ConsumePointRequest.new(app_id, user_id, point, event_name, origin_id, force, comment)
  use_case = GfreshPoint::Usecase::ConsumePointUsecase.new(repo)
  response = use_case.call(request)
  response
end