Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bank-import: Add amount in donation create bank object (#606)
* Donation table structural changes - Payment table will save the information regarding the payment - Donation table will save information regarding the donation(e.g. campaign, wish etc..) * Initial API changes for new payment structure * Adjust existing tests to cover the restructure * src/vault: Add possibility to decrement many vaults as well In future situations, we might need to decrement many vaults at once as well,(e.g. payment refund etc..) - Added some unit tests to cover vaults updates -Did some refactoring on commonly used types, as well as test mocks * schema.prisma: Rename Payments to Payment As the name of the model is used as a type, the acceptednaming convention is to name that type in singular way * Infer person.email as string in campaign.controller test cases Fixes TS related errors * src/bank-transactions: Check for admin privilleges regardless of env when simulating IRIS transactions * donations.service: Rename currentDonation to currentPayment in update fn * db/seed: Adapt seeding scripts to new structure * payment/seed: Use payment's createdAt updatedAt values for donation In production, the insertion is done within a single transaction, thus the dates should be the same * bank-import: Add amount in donation create bank object * import-transactions: Fix failing test case
- Loading branch information