Commit graph

36 commits

Author SHA1 Message Date
Zach Daniel
9fe89dda88 fix: properly set authorize option when updating transfers 2024-08-03 19:06:31 -04:00
Zach Daniel
bd75d6c364 fix: set authorize? properly when creating balances 2024-08-03 18:53:54 -04:00
Zach Daniel
1b2b00edd1 fix: better validations around atomics
improvement: allow skipping balance updates on request
2024-06-23 20:04:47 -04:00
Zach Daniel
d95a8874e9 chore: can't update balance atomically, because we don't know the delta 2024-06-23 19:50:32 -04:00
Zach Daniel
16721bc176 improvement: don't destroy balances by default 2024-06-23 17:00:16 -04:00
Zach Daniel
f543bc80f5 improvement: use a guaranteed-last ulid for balance_as_of calculation 2024-06-23 11:59:17 -04:00
Zach Daniel
429d53472e fix: set a default for create_accept 2024-06-19 14:04:39 -04:00
Zach Daniel
2a961a486d improvement: accept attributes on transfer create
ci: dependabot only weekly
2024-06-19 10:00:34 -04:00
Zach Daniel
1d732a0c6c improvement: don't use raising variations of resource calls 2024-06-18 18:20:49 -04:00
Zach Daniel
5e7095fb15 chore: fix a dummy mistake, this is ash_double_entry not ash_authentication 2024-06-18 16:50:42 -04:00
Zach Daniel
e50bdc4a64 improvement: set context indicating that ash_authentication? is performing an action 2024-06-17 21:38:54 -04:00
Zach Daniel
ac8feda9ea fix: use a + -b, instead of a - b (which is not supported by our AshPostgresExtension) 2024-05-11 18:12:38 -04:00
Zach Daniel
c47c548a78 improvement: update to support new atomics & bulk actions 2024-04-29 15:40:53 -04:00
Zach Daniel
007d01d654 improvement!: update to Ash 3.0 2024-04-01 17:22:01 -04:00
Tw
fecbdc6afb
fix: correct amount_delta calculation from destorying (#13)
Signed-off-by: Tw <tw19881113@gmail.com>
2024-02-18 22:11:32 -05:00
Zach Daniel
937fbcb9e6 fix: properly update future balances from destroys 2024-02-14 10:19:46 -05:00
Tw
219e352f96
fix: incorrect balance when adding transfer later (#12)
Signed-off-by: Tw <tw19881113@gmail.com>
2024-02-14 10:15:11 -05:00
Zach Daniel
fc579caebb fix: make expression pure 2023-12-22 21:19:49 -05:00
Tw
c113fa080d
improvement: support updating transfer's amount (#8)
* support updating transfer's amount

Signed-off-by: Tw <tw19881113@gmail.com>

---------

Signed-off-by: Tw <tw19881113@gmail.com>
Co-authored-by: Zach Daniel <zachary.s.daniel@gmail.com>
2023-12-12 08:12:44 -05:00
Zach Daniel
4a0c1bd3ca improvement: support updating transfers, but not important fields 2023-12-10 13:20:49 -05:00
Zach Daniel
16f8e21fd1 improvement: support destroying transfers
error messaging is sub-par, but that can be improved later
2023-12-10 13:16:02 -05:00
Zach Daniel
1fcc2abc37 improvement: set context_to_opts when constructing the query 2023-12-08 10:53:22 -05:00
Tw
cb20306caa bugfix for db
Signed-off-by: Tw <tw19881113@gmail.com>
2023-12-07 14:36:22 +08:00
Zach Daniel
d45a089fdb fix: properly set context on account read in balance verification 2023-12-06 13:57:16 -05:00
Zach Daniel
da5ceeae3c improvement: migrate to AshMoney 2023-12-05 19:49:23 -05:00
Zach Daniel
37981f9094 fix: ensure transformers run before BelongsToAttribute 2023-10-10 22:48:03 -04:00
Zach Daniel
1c973fca6c chore: fix docs warning 2023-09-26 09:46:30 -04:00
Zach Daniel
093a3cf67a docs: update docs 2023-09-26 09:46:07 -04:00
Zach Daniel
7055d431f4 fix: properly calculate balance_as_of_ulid when transfer is to or from account 2023-08-19 01:13:04 -04:00
Zach Daniel
9dfad7d2fc fix: create balances after transfer is created 2023-08-19 00:51:40 -04:00
Zach Daniel
69b61103ae docs: update getting started guide
fix: don't require pagination
2023-08-19 00:45:18 -04:00
Zach Daniel
38b97720dc docs: docs and release setup 2023-08-19 00:17:07 -04:00
Zach Daniel
54608d5c76 improvement: wrap up initial implementaiton, add guides 2023-08-18 23:49:09 -04:00
Zach Daniel
364d661403 chore: remove unnecessary file 2023-08-06 00:27:52 -04:00
Zach Daniel
1e5f7ce8ff improvement: initial test suite & functionality 2023-08-06 00:27:33 -04:00
Zach Daniel
25b3dc3063 init 2023-07-21 20:27:52 -04:00