5
6
7
8
9
10
11
12
13
14
|
# File 'app/serializers/spree/v2/storefront/variant_serializer_decorator.rb', line 5
def self.prepended(base)
base.attributes :need_confirmation, :product_type, :kyc, :allow_anonymous_booking,
:reminder_in_hours, :start_time, :delivery_option,
:number_of_guests, :max_quantity_per_order, :discontinue_on, :high_demand
base.attribute :delivery_required, &:delivery_required?
base.has_many :stock_locations
base.has_many :stock_items, serializer: ::SpreeCmCommissioner::V2::Storefront::StockItemSerializer
end
|