From 1bf3bb8faacc0fffbd0501d61fceb2464eed4820 Mon Sep 17 00:00:00 2001 From: Jia Xu Date: Thu, 8 Feb 2024 14:02:58 -0800 Subject: [PATCH] pay-api update get routing slip to include refund_amount (#1407) --- pay-api/src/pay_api/models/routing_slip.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pay-api/src/pay_api/models/routing_slip.py b/pay-api/src/pay_api/models/routing_slip.py index 2b0b007e8..b304290c1 100644 --- a/pay-api/src/pay_api/models/routing_slip.py +++ b/pay-api/src/pay_api/models/routing_slip.py @@ -291,10 +291,11 @@ class Meta(BaseSchema.Meta): # pylint: disable=too-few-public-methods """Returns all the fields from the SQLAlchemy class.""" model = RoutingSlip - exclude = ['parent', 'refund_amount'] + exclude = ['parent'] total = fields.Float(data_key='total') remaining_amount = fields.Float(data_key='remaining_amount') + refund_amount = fields.Float(data_key='refund_amount') # pylint: disable=no-member payments = ma.Nested(PaymentSchema, many=True, data_key='payments') payment_account = ma.Nested(PaymentAccountSchema, many=False, data_key='payment_account')