Sha256: 5f592714a132c980a1930cc96ef497ebc680258a4fd3a8f4d407e93b7ac2ef6e
Contents?: true
Size: 433 Bytes
Versions: 5
Compression:
Stored size: 433 Bytes
Contents
module Workarea if Plugin.installed?(:api) decorate Api::Storefront::CheckoutsController, with: 'gift_cards' do def add_gift_card Checkout::Steps::GiftCard.new(current_checkout).update(params) render_checkout end def remove_gift_card step = Checkout::Steps::GiftCard.new(current_checkout) step.remove(params[:gift_card_id]) render_checkout end end end end
Version data entries
5 entries across 5 versions & 1 rubygems