mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-01 12:24:28 +01:00
bc6ef8ef50
- from stripe only to payment gateway abstract - from reservation params style to unified cart_items TODO: fix not passing tests, subscriptions/renew_as_admin_test.rb fails because InvoiceItem(9).amount = nil
16 lines
294 B
Ruby
16 lines
294 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
|
|
end
|