Class: Api::Vendor::V1::Getyourguide::NotifiesController
- Inherits:
-
BaseController
- Object
- ActionController::Base
- ApplicationController
- BaseController
- Api::Vendor::V1::Getyourguide::NotifiesController
- Defined in:
- app/controllers/api/vendor/v1/getyourguide/notifies_controller.rb
Instance Attribute Summary
Attributes inherited from BaseController
Instance Method Summary collapse
Methods inherited from BaseController
Methods included from ResponseCacheConcern
Methods inherited from ApplicationController
#after_sign_in_path_for, #after_sign_out_path_for, #default_url_options, #identity_cache_memoization, #render_not_found, #routing_error, search_params_key=
Methods included from LogrageCustomLogger
Methods included from ControllerHelpers
#check_boolean_param, #get_banners, #inventory_params, #reservation_params
Instance Method Details
#index ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'app/controllers/api/vendor/v1/getyourguide/notifies_controller.rb', line 6 def index if params.dig(:data, :notificationType) == 'PRODUCT_DEACTIVATION' HH_LOGGER.info('GetYourGuide: Product Deactivation', slug: params.dig(:data, :productDetails, :productId), description: params.dig(:data, :description)) send_notify_email(params.dig(:data, :productDetails, :productId), params.dig(:data, :description)) end render json: { data: { }, } end |