Class: Spree::Api::V3::Admin::PromotionRuleSerializer

Inherits:
BaseSerializer
  • Object
show all
Defined in:
app/serializers/spree/api/v3/admin/promotion_rule_serializer.rb

Overview

Serializes Spree::PromotionRule (and its STI subclasses) for the admin promotion editor. Same shape as PromotionAction so the frontend renders both with the same generic component.

Method Summary

Methods inherited from BaseSerializer

#current_currency, #current_locale, #current_store, #current_user, #expand?, #expands, #nested_expands_for, #nested_params