mirror of
https://github.com/valitydev/party-management.git
synced 2024-11-06 09:15:18 +00:00
MSPF-562: Add bank card category, condition category_is (#448)
This commit is contained in:
parent
bddf397e8b
commit
1e57bd4674
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@ -32,6 +32,9 @@ build('hellgate', 'docker-host', finalHook) {
|
||||
runStage('xref') {
|
||||
sh 'make wc_xref'
|
||||
}
|
||||
runStage('test') {
|
||||
sh "make wdeps_test"
|
||||
}
|
||||
runStage('pre-dialyze') {
|
||||
withWsCache("_build/default/rebar3_22.3.1_plt") {
|
||||
sh 'make wc_plt_update'
|
||||
@ -40,9 +43,6 @@ build('hellgate', 'docker-host', finalHook) {
|
||||
runStage('dialyze') {
|
||||
sh 'make wc_dialyze'
|
||||
}
|
||||
runStage('test') {
|
||||
sh "make wdeps_test"
|
||||
}
|
||||
}
|
||||
runStage('make release') {
|
||||
withGithubPrivkey {
|
||||
|
@ -91,6 +91,8 @@ test_bank_card_condition_def({issuer_country_is, IssuerCountry}, V, Rev) ->
|
||||
test_issuer_country_condition(IssuerCountry, V, Rev);
|
||||
test_bank_card_condition_def({issuer_bank_is, BankRef}, V, Rev) ->
|
||||
test_issuer_bank_condition(BankRef, V, Rev);
|
||||
test_bank_card_condition_def({category_is, CategoryRef}, V, Rev) ->
|
||||
test_bank_card_category_condition(CategoryRef, V, Rev);
|
||||
test_bank_card_condition_def(
|
||||
{empty_cvv_is, Val},
|
||||
#domain_BankCard{is_cvv_empty = Val},
|
||||
@ -131,6 +133,12 @@ test_issuer_bank_condition(BankRef, #domain_BankCard{bank_name = BankName, bin =
|
||||
{_, _} -> test_bank_card_bins(BIN, BINs)
|
||||
end.
|
||||
|
||||
test_bank_card_category_condition(CategoryRef, #domain_BankCard{category = Category}, Rev) ->
|
||||
#domain_BankCardCategory{
|
||||
category_patterns = Patterns
|
||||
} = pm_domain:get(Rev, {bank_card_category, CategoryRef}),
|
||||
test_bank_card_patterns(Patterns, Category).
|
||||
|
||||
test_bank_card_bins(BIN, BINs) ->
|
||||
ordsets:is_element(BIN, BINs).
|
||||
|
||||
|
@ -18,7 +18,7 @@ services:
|
||||
mem_limit: 256M
|
||||
|
||||
dominant:
|
||||
image: dr2.rbkmoney.com/rbkmoney/dominant:4c86d3f4292f33782cbeb3642cce7cbabbe9063b
|
||||
image: dr2.rbkmoney.com/rbkmoney/dominant:2b6ee3d9900f4d8b5230cbd08d8292f3ad8c0ea6
|
||||
command: /opt/dominant/bin/dominant foreground
|
||||
depends_on:
|
||||
machinegun:
|
||||
|
@ -10,7 +10,7 @@
|
||||
{<<"cowlib">>,{pkg,<<"cowlib">>,<<"2.8.0">>},2},
|
||||
{<<"damsel">>,
|
||||
{git,"git@github.com:rbkmoney/damsel.git",
|
||||
{ref,"bb9560362cfcce69ae91ae56fa6f0453b3530047"}},
|
||||
{ref,"a6c9401d85b856df783ed715f70304e7e104f052"}},
|
||||
0},
|
||||
{<<"dmt_client">>,
|
||||
{git,"git@github.com:rbkmoney/dmt_client.git",
|
||||
|
Loading…
Reference in New Issue
Block a user