Class: Launchpad::IEO::OrderReleaseWorker
- Inherits:
-
Object
- Object
- Launchpad::IEO::OrderReleaseWorker
- Includes:
- Sidekiq::Worker
- Defined in:
- app/workers/launchpad/ieo/order_release_worker.rb
Overview
TODO: Document code.
Instance Method Summary collapse
Instance Method Details
#perform(ogid) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'app/workers/launchpad/ieo/order_release_worker.rb', line 8 def perform(ogid) order = GlobalID::Locator.locate_signed(ogid, for: 'order_release') Rails.logger.info { "Start #{order.id} order release" } begin order.unlock! rescue ManagementAPIV2::Exception => e Rails.logger.error order_id: order.id, message: 'Failed to refund', error: e. end end |