😈🥅
Go to file
Aleksey Kashapov 47b4b8e8bb
OPS-474: Adds support for amount randomization invoice mutation (#136)
* OPS-474: Adds support for amount randomization invoice mutation

* Bumps dmt_client and party_client

* Completes amount mutation with cart's line price and adds unit tests

* Refactors amount mutation func

* Moves mutations into separate module

* Refactors into separate make and apply mutation functions

* Fixes make_mutations foldl

* Fixes cart validation clause

* Retires 'rounding' option in amount randomization
2024-06-20 12:11:19 +03:00
.github TD-788: Makes prometheus start before woody and friends (#124) 2024-04-16 10:03:45 +03:00
apps OPS-474: Adds support for amount randomization invoice mutation (#136) 2024-06-20 12:11:19 +03:00
config TD-788: Bumps woody; adds hackney metrics config example (#114) 2024-01-17 18:49:35 +03:00
doc Fix pins unrandomizing (#134) 2024-05-30 12:06:37 +05:00
test/machinegun TD-904: Removes testcase w/ obsolete recurrent paytools event sink usage (#126) 2024-06-03 11:52:58 +03:00
.dockerignore TD-158: Add new ci (#6) 2022-02-09 18:21:50 +03:00
.editorconfig TD-158: Add new ci (#6) 2022-02-09 18:21:50 +03:00
.env TD-763: Add UI Cascade as default (#96) 2023-10-19 17:21:53 +05:00
.gitignore TD-572: Get payment routes limit values (#79) 2023-05-19 17:43:59 +03:00
compose.tracing.yaml TD-904: Removes testcase w/ obsolete recurrent paytools event sink usage (#126) 2024-06-03 11:52:58 +03:00
compose.yaml TD-904: Removes testcase w/ obsolete recurrent paytools event sink usage (#126) 2024-06-03 11:52:58 +03:00
Dockerfile OPS-268: Adds default logger permissions (#85) 2023-07-13 15:29:49 +03:00
Dockerfile.dev TD-225: Remove UserInfo auth logic (#22) 2022-04-15 14:07:54 +03:00
elvis.config TD-291: test refactoring/split suite (#82) 2023-09-04 10:19:30 +03:00
LICENSE Update file(s) from valitydev/.github 2022-02-22 08:11:46 +00:00
Makefile TD-686: Adds tracing to woody wrapper calls (#94) 2023-10-25 15:23:18 +03:00
README.md TD-158: Add new ci (#6) 2022-02-09 18:21:50 +03:00
rebar.config TD-788: Adds woody pool/connections metrics (#107) 2023-12-19 15:59:02 +03:00
rebar.lock OPS-474: Adds support for amount randomization invoice mutation (#136) 2024-06-20 12:11:19 +03:00
renovate.json Add renovate.json (#1) 2022-11-24 16:31:12 +05:00
TODO.md HG-48: Switch to the new stateproc protocol (#14) 2016-08-11 15:52:58 +00:00

Hellgate

Core logic service for payment states processing.

Building

To build the project, run the following command:

$ make compile

Running

To enter the Erlang shell with the project running, run the following command:

$ make rebar-shell

Development environment

Run in a docker container

You can run any of the tasks defined in the Makefile from inside of a docker container (defined in Dockerfile.dev) by prefixing the task name with wc-. To successfully build the dev container you need Docker BuildKit enabled. This can be accomplished by either installing docker-buildx locally, or exporting the DOCKER_BUILDKIT=1 environment variable.

Example

  • This command will run the compile task in a docker container:
$ make wc-compile

Run in a docker-compose environment

Similarly, you can run any of the tasks defined in the Makefile from inside of a docker-compose environment (defined in docker-compose.yaml) by prefixing the task name with wdeps-. To successfully build the dev container you need Docker BuildKit enabled (see Run in a docker container section). It may also be necessary to export a COMPOSE_DOCKER_CLI_BUILD=1 environment variable for docker-compose container builds to work properly.

Example

  • This command will run the test task in a docker-compose environment:
$ make wdeps-test

Documentation

@TODO Please write a couple of words about what your project does and how it does it.