Merge pull request #9103 from jibees/add-customer-id-to-order-endpoint-on-api

API: Add customer_id as an attribute to the GET /orders/ORDER_ID endpoint
This commit is contained in:
Maikel
2022-04-20 14:28:31 +10:00
committed by GitHub

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(