tmus / monzo

A Go library for interacting with the Monzo Bank API.
MIT License
3 stars 0 forks source link

Adding a Receipt to a Transaction should fail if the Receipt total is greater than the Transaction total #10

Open tmus opened 5 years ago

tmus commented 5 years ago

The Monzo API does not validate the receipt total against the transaction, meaning that the receipt total can be more or less than the transaction total.

A receipt should describe the transaction in full, so any receipts where the total does not equal the transaction total should return an error and not send a request to the Monzo API.