mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-07 01:54:16 +01:00
We need to achieve only one process for all booking, not one for subscription, one for reservations, etc. Moreover we must store one object per invoice_item/payment_schedule_object and stop using Invoice.invoiced or PaymentSchedule.scheduled
18 lines
316 B
Ruby
18 lines
316 B
Ruby
# frozen_string_literal: true
|
|
|
|
# Items that can be added to the shopping cart
|
|
module CartItem; end
|
|
|
|
# This is an abstract class implemented by classes that can be added to the shopping cart
|
|
class CartItem::BaseItem
|
|
def price
|
|
{ elements: {}, amount: 0 }
|
|
end
|
|
|
|
def name
|
|
''
|
|
end
|
|
|
|
def to_object; end
|
|
end
|