Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate record count in response layouts #18

Closed
hanneskod opened this issue Feb 1, 2018 · 1 comment
Closed

Validate record count in response layouts #18

hanneskod opened this issue Feb 1, 2018 · 1 comment

Comments

@hanneskod
Copy link
Member

hanneskod commented Feb 1, 2018

Response layouts typically contains a closing record that specifies the number of different records in the file (and the summed amounts for transactions). These counts can be validated using a visitor.

A generic CountingVisitor could count all node types and validate the count using a generic Closing record node. The type of node a count refers to could be specified at parse time.

Monetary amounts could possible be validated in the same manner.

Edit: There is now a generic closing record universaly applied.

@hanneskod
Copy link
Member Author

Payment sections also contain validatable counts. But in section headers... See for example PAYMENT_REFUND_OPENING.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant