😈🥅
Go to file
ndiezel0 edfb7be342
OPS-170: Add RegisterInvoicePayment (#49)
* OPS-170: Add RegisterInvoicePayment

* Lots of fixes

* Remove deprecated payment_system_is

* Fix cost

* Fix cost again

* Modify next_event to give exact amount of events

* Fix test

* Fix capture session and add RegisteredOrigin to InvoicePayment

* Add adjustment and refund test for registered payment

* Add limits add commiting of cashflow to register

* Fix commit cashflow

* Add customer register test

* Format

* Move commits to separate timeout

* Use all kinds of payers

* Update damsel

* Remove Prohibited Origin exception

* Export some functions

* Compile fix

* Fix

* Fix

* Fix

* Fix some spec errors

* Fix

* More spec fixes

* More spec fixes

* Increment cache

* Remove payment tool validation

* Reuse cashflow construction and refactor a little

* Fix

* Hide pull change code in invoicing client

* Fix

* Fix

* Fix

* Fix partial capture test change order

* Hide next change default timeout behind define

* Remove kv_storage from invoicing client

* Fix

* Fix

* Fix

* Fix

* Fix

* Fix

* Fix

* Review fix

* Update damsel

* Fix merge

* Add timeout to pull_change

* Add next_changes to Suite

* Use ?trx_info more

* Fix matching

* Review fixes

* Review fixes

* Fix

* Add test to check limit working

* Try to add extra stage for hold

* Update damsel

* Review fixes

* Try to fix build

* Try to fix build

* Try to fix build

* Try to fix build

* Try something else

* Update erlang-workflows

* Update erlang-workflows

* Move erlang-workflow to release

* Fix

* Move castom merge_change usage to hg_invoice_registered_payment

* Review fix

* Simplify registration

* Review fixes

* Fix

* Fix

* Fix spec

* Format
2022-12-06 12:26:44 +05:00
.github Update valitydev/erlang-workflows action to v1.0.10 (#54) 2022-11-24 17:08:45 +05:00
apps OPS-170: Add RegisterInvoicePayment (#49) 2022-12-06 12:26:44 +05:00
config TD-167: Refactor hg_route_rules_tests_SUITE (#29) 2022-07-19 07:25:45 +03:00
doc add project sceleton 2016-03-02 18:50:50 +03:00
test/machinegun TD-269: Machine tagging via bender (w/ fallback)(#27) 2022-05-18 16:33:54 +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-312: Switch to valitydev/damsel@dac2cb5 (#35) 2022-06-24 19:03:41 +03:00
.gitignore TD-158: Add new ci (#6) 2022-02-09 18:21:50 +03:00
compose.yaml Ensure refund limits rolled back properly (#44) 2022-08-31 13:20:40 +03:00
Dockerfile TD-225: Remove UserInfo auth logic (#22) 2022-04-15 14:07:54 +03:00
Dockerfile.dev TD-225: Remove UserInfo auth logic (#22) 2022-04-15 14:07:54 +03:00
elvis.config TD-158: Add new ci (#6) 2022-02-09 18:21:50 +03:00
LICENSE Update file(s) from valitydev/.github 2022-02-22 08:11:46 +00:00
Makefile TD-158: Enable fail and fulfill session scenarios on capture session (#8) 2022-02-24 11:23:24 +03:00
README.md TD-158: Add new ci (#6) 2022-02-09 18:21:50 +03:00
rebar.config OPS-170: Add RegisterInvoicePayment (#49) 2022-12-06 12:26:44 +05:00
rebar.lock OPS-170: Add RegisterInvoicePayment (#49) 2022-12-06 12:26:44 +05: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.