"""Schema for payment_group_payment_account_detail serialization.""" from abacus_common_logic.marshalling.custom_fields import ma class PaymentDebitCreditDataEntrySchema(ma.Schema): """PaymentDebitCreditDataEntry schema.""" account_id = ma.NonNegativeInteger(required=True) contract_id = ma.NonNegativeInteger(required=True) currency_code = ma.NonemptyString(required=True) amount = ma.Decimal(as_string=True, required=True) worksheet_account_contract_payable_after_tax_id = ma.NonNegativeInteger( required=True )