refactor: prepare for free ticket

This commit is contained in:
kbe
2025-09-16 16:36:39 +02:00
parent b228d5a174
commit 9c56b2e1e5
15 changed files with 96 additions and 17 deletions

View File

@@ -116,6 +116,11 @@ class Order < ApplicationRecord
promoter_payout_cents / 100.0
end
# Check if order contains only free tickets
def free?
total_amount_cents == 0
end
# Create Stripe invoice for accounting records
#
# This method creates a post-payment invoice in Stripe for accounting purposes