2016-04-07 11:37:34 +00:00
|
|
|
% Common project erlang options.
|
|
|
|
{erl_opts, [
|
2016-06-15 16:10:22 +00:00
|
|
|
|
|
|
|
% mandatory
|
2016-04-07 11:37:34 +00:00
|
|
|
debug_info,
|
2016-06-15 16:10:22 +00:00
|
|
|
warnings_as_errors,
|
|
|
|
warn_export_all,
|
|
|
|
warn_missing_spec,
|
|
|
|
warn_untyped_record,
|
|
|
|
warn_export_vars,
|
|
|
|
|
|
|
|
% by default
|
|
|
|
warn_unused_record,
|
|
|
|
warn_bif_clash,
|
|
|
|
warn_obsolete_guard,
|
|
|
|
warn_unused_vars,
|
|
|
|
warn_shadow_vars,
|
|
|
|
warn_unused_import,
|
|
|
|
warn_unused_function,
|
|
|
|
warn_deprecated_function
|
|
|
|
|
|
|
|
% at will
|
|
|
|
% bin_opt_info
|
|
|
|
% no_auto_import
|
|
|
|
% warn_missing_spec_all
|
|
|
|
|
2016-04-07 11:37:34 +00:00
|
|
|
]}.
|
|
|
|
|
|
|
|
% Common project dependencies.
|
|
|
|
{deps, [
|
2020-10-24 06:01:20 +00:00
|
|
|
{prometheus, "4.6.0"},
|
|
|
|
{prometheus_cowboy, "0.1.8"},
|
2019-06-21 18:48:37 +00:00
|
|
|
{logger_logstash_formatter, {git, "git@github.com:rbkmoney/logger_logstash_formatter.git", {branch, "master"}}},
|
2019-05-20 11:59:29 +00:00
|
|
|
{gproc , "0.8.0"},
|
2017-09-18 14:02:46 +00:00
|
|
|
{genlib , {git, "https://github.com/rbkmoney/genlib.git", {branch, "master"}}},
|
|
|
|
{woody , {git, "git@github.com:rbkmoney/woody_erlang.git", {branch, "master"}}},
|
2017-05-17 08:50:18 +00:00
|
|
|
{woody_user_identity,
|
|
|
|
{git, "git@github.com:rbkmoney/woody_erlang_user_identity.git",
|
|
|
|
{branch, "master"}
|
|
|
|
}
|
|
|
|
},
|
HG-495: chargebacks (#346)
* wip chargeback handler
* add chargeback test draft
* update deps
* update deps
* create chargeback draft
* add create chargeback to client
* create chargeback test draft
* update dmsl
* update test
* cashflow wip
* update payment events
* update deps
* attempt fix deps
* update dmsl
* update test
* add get payment chargeback to client
* add get payment chargeback handler
* cashflow wip
* fix linter errors
* wip create chargeback
* damsel update
* fix dmsl
* update dominant
* merge cb terms
* update id generation
* add test placeheolders
* update hg client
* add update chargeback
* update client
* update tests
* update events
* add implementation wip
* update cancel
* update tests
* update damsel
* add more chargeback tests
* update implementation
* update dominant
* update damsel
* some fixes
* add reopen tests with hold funds
* update reopen logic
* udpate damsel
* add cancel after reopen test
* add cancel after reopen implementation
* add more tests
* add balance checks to tests
* cashflow fix
* add more balance checks in tests
* fix cashflow bug
* add tests for reopening chargebacks after failures
* add reopen after failures handling
* finalise test to be sure
* fix test
* do not change payment status on accept with partial cash
* remove failures from tests
* update damsel
* test updates and fixes
* update implementation
* update damsel
* type cleanup, some refactoring
* cleanup, remove ct:print, refactor
* minor cleanup
* update tests
* add inconsistent currency check
* udpate damsel
* update tests
* udpate damsel
* move chargebacks to separate module
* move chargebacks to a separate module
* fix types
* some refactoring
* types, some refactoring
* update damsel
* update dominant + minor
* update tests
* update implementation
* update damsel
* fix merge
* fix lost types
* add cash to pending, remove from cb changed
* update damsel
* update damsel
* update dominant
* minor
* update events
* add params to reject
* update damsel
* update tests WIP
* update invoice payment
* update chargebacks WIP
* update tests
* update damsel
* update events
* update invoice payment
* update chargeback implementation
* minor cleanup
* increase god module cap a bit
* cleanup
* update events
* update damsel
* update tests wip
* update implementation wip
* update events in tests
* update damsel
* update chargeback events
* clean prints, restore cash flow handling on first reopen, reset target status
* fix dialyzer
* update tests
* update cash flow handling and reject logic
* fix indentation
* refactoring, moved activities to chargebacks module
* move process result to chargeback
* fix config formatting
* move no pending chargebacks check to invoice
* move getters to chargebacks module
* idempotent creation
* merge party cb terms
* syntax fixes
* fail routing with no chargeback terms
* move choose_provider_account to payment institution
* fix export
* remove unnecessary validations
* revert accessibility validation
* fix deletion
* minor refactoring
* remove pending chargebacks check from invoice
* Fix postgresql link (#421)
* refactor chargeback activity, fix idempotency
* update tests
* update dmsl
* add cb to varset
* fix
* removed get_opts, set_opts
* clean up chargebacks
* update deps
* move choose_external_account
* fix types
* add todo for cash flow rework
* remove redundant aliases
* unified define_params_cash function
* remove contract validation
* remove contract validation
* cash flow handling rework, docs update
* remove redundant validation
* fix merge
* add partial capture chargeback test
* add separate plans for stages
* wrap events externally
* add partial payment chargeback test with exceeding body
* fix type errors
* rework event handling
* elvis update
* cleanup
* move pending chargebacks check
* move validations
* move more validations
* separate body and levy in cash flow
* minor
* update cb options
* minor rename
* disable cancel during initialisation
* update activity naming
* set operation_amount to 0 on reject
* update merge_change validations
* update test chargeback test fixture
* use remaining amount if body is undefined
* add double chargeback test
* fix wrong types
* move some validations
* move create validations, update opts
* longer hold period for capture
* update damsel
* add chargeback service terms validation
* add chargeback not allowed test
* minor cleanup
* tests cleanup, add chargeback fees placeholder
* add test placeholders for provider levy
* split service and provision cf contexts
* fix typo
* update dominant
* export hg_cashflow:compute_volume/2
* update test fixture
* implement provider levy
* formatting
* update tests
* fix types
* fix types
* prolong test timeout
* merge update
* reduce allow predicate
* cb provider levy cash flow update
* cleanup
* add chargebacks to reduce
* add eligibility validation
* fix chargeback terms reduction
* throw misconfiguration if allow can not be reduced
* use add_previous_stage function
* fix type errors
* update cancel handling, store last cash flow, use cb creation timestamp, cleanup
* update hg client
* update damsel
* update tests
* add occurred_at to invoice event
* update params macros
* implement occurred_at
* export cancel params
* disable flappy tests
* fix typo
* simplify occurred_at extraction
* restore explicit clause matching in finalise
* clean ct:prints
* fix whitespace
* attempt at unflapping tests
Co-authored-by: Sergey Yelin <elinsn@gmail.com>
2020-03-27 09:58:41 +00:00
|
|
|
{damsel, {git, "git@github.com:rbkmoney/damsel.git" , {branch, "release/erlang/master"}}},
|
2018-02-15 15:01:23 +00:00
|
|
|
{payproc_errors, {git, "git@github.com:rbkmoney/payproc-errors-erlang.git", {branch, "master"}}},
|
|
|
|
{mg_proto , {git, "git@github.com:rbkmoney/machinegun_proto.git" , {branch, "master"}}},
|
2019-10-15 10:17:42 +00:00
|
|
|
{shumpune_proto, {git, "git@github.com:rbkmoney/shumpune-proto.git" , {branch, "master"}}},
|
2018-02-15 15:01:23 +00:00
|
|
|
{dmt_client , {git, "git@github.com:rbkmoney/dmt_client.git" , {branch, "master"}}},
|
2018-04-12 15:02:05 +00:00
|
|
|
{scoper , {git, "git@github.com:rbkmoney/scoper.git" , {branch, "master"}}},
|
2018-09-06 15:50:37 +00:00
|
|
|
{party_client , {git, "git@github.com:rbkmoney/party_client_erlang.git" , {branch, "master"}}},
|
2019-01-14 21:36:59 +00:00
|
|
|
{how_are_you , {git, "https://github.com/rbkmoney/how_are_you.git" , {branch, "master"}}},
|
2019-05-27 08:06:38 +00:00
|
|
|
{erl_health , {git, "https://github.com/rbkmoney/erlang-health.git" , {branch, "master"}}},
|
2020-10-16 10:41:47 +00:00
|
|
|
{fault_detector_proto, {git, "git@github.com:rbkmoney/fault-detector-proto.git", {branch, "master"}}},
|
|
|
|
{cache, "2.3.2"}
|
2016-04-07 11:37:34 +00:00
|
|
|
]}.
|
|
|
|
|
|
|
|
{xref_checks, [
|
2020-02-28 12:02:26 +00:00
|
|
|
% mandatory
|
2016-04-07 11:37:34 +00:00
|
|
|
undefined_function_calls,
|
|
|
|
undefined_functions,
|
|
|
|
deprecated_functions_calls,
|
|
|
|
deprecated_functions
|
2020-02-28 12:02:26 +00:00
|
|
|
|
|
|
|
% at will
|
|
|
|
% exports_not_used
|
2016-04-07 11:37:34 +00:00
|
|
|
]}.
|
|
|
|
|
|
|
|
{relx, [
|
2016-06-15 16:10:22 +00:00
|
|
|
{release, {hellgate, "0.1"}, [
|
2019-07-10 09:30:07 +00:00
|
|
|
{recon , load}, % tools for introspection
|
|
|
|
{runtime_tools , load}, % debugger
|
|
|
|
{tools , load}, % profiler
|
|
|
|
{logger_logstash_formatter, load}, % log formatter
|
2016-06-15 16:10:22 +00:00
|
|
|
sasl,
|
|
|
|
hellgate
|
2016-04-07 11:37:34 +00:00
|
|
|
]},
|
|
|
|
{sys_config, "./config/sys.config"},
|
|
|
|
{vm_args, "./config/vm.args"},
|
|
|
|
{dev_mode, true},
|
|
|
|
{include_erts, false},
|
|
|
|
{extended_start_script, true}
|
|
|
|
]}.
|
|
|
|
|
2016-06-15 16:10:22 +00:00
|
|
|
{dialyzer, [
|
|
|
|
{warnings, [
|
|
|
|
% mandatory
|
|
|
|
unmatched_returns,
|
|
|
|
error_handling,
|
|
|
|
race_conditions,
|
|
|
|
unknown
|
|
|
|
]},
|
2019-08-09 10:54:11 +00:00
|
|
|
{plt_apps, all_deps}
|
2016-06-15 16:10:22 +00:00
|
|
|
]}.
|
|
|
|
|
2016-04-07 11:37:34 +00:00
|
|
|
{profiles, [
|
|
|
|
{prod, [
|
2017-02-10 12:33:33 +00:00
|
|
|
{deps, [
|
|
|
|
% for introspection on production
|
|
|
|
{recon, "2.3.2"}
|
|
|
|
]},
|
2016-04-07 11:37:34 +00:00
|
|
|
{relx, [
|
|
|
|
{dev_mode, false},
|
2020-10-24 06:01:20 +00:00
|
|
|
{include_src, false},
|
2016-04-07 11:37:34 +00:00
|
|
|
{include_erts, true}
|
|
|
|
]}
|
|
|
|
]},
|
|
|
|
{test, [
|
|
|
|
{deps, []}
|
|
|
|
]}
|
|
|
|
]}.
|
2016-06-15 16:10:22 +00:00
|
|
|
|
2020-09-25 15:14:03 +00:00
|
|
|
|
2016-06-15 16:10:22 +00:00
|
|
|
{plugins, [
|
2020-09-25 15:14:03 +00:00
|
|
|
{erlfmt, "0.7.0"}
|
|
|
|
]}.
|
|
|
|
|
|
|
|
{erlfmt, [
|
|
|
|
{print_width, 120},
|
|
|
|
{files, "apps/*/{src,include,test}/*.{hrl,erl}"}
|
2016-06-15 16:10:22 +00:00
|
|
|
]}.
|