1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-04 15:24:23 +01:00
fab-manager/app/views/api/coupons/validate.json.jbuilder

5 lines
183 B
Plaintext
Raw Normal View History

# frozen_string_literal: true
json.extract! @coupon, :id, :code, :type, :percent_off, :validity_per_user
json.amount_off (@coupon.amount_off / 100.00) unless @coupon.amount_off.nil?