Add customer_id as an attribute to order_detailed_serializer

Therefor customer_id will be available on the order object for `/api/v0/orders/[ORDER_ID].json` endpoint
This commit is contained in:
Jean-Baptiste Bellet
2022-04-15 14:23:55 +02:00
parent 8825ff2711
commit d38e14ca5c

View File

@@ -10,7 +10,7 @@ module Api
has_many :payments, serializer: Api::PaymentSerializer
attributes :adjustments
attributes :adjustments, :customer_id
def adjustments
adjustments = object.all_adjustments.where(