Skip to content

Commit

Permalink
pay-api update get routing slip to include refund_amount (bcgov#1407)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jxio authored Feb 8, 2024
1 parent 183205f commit 1bf3bb8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pay-api/src/pay_api/models/routing_slip.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 1bf3bb8

Please sign in to comment.