mirror of
https://github.com/valitydev/fistful-server.git
synced 2024-11-06 02:35:18 +00:00
Fix - withdrawal methods set (#47)
This commit is contained in:
parent
361122ff97
commit
985b51f5f0
@ -96,6 +96,13 @@
|
|||||||
}}
|
}}
|
||||||
).
|
).
|
||||||
|
|
||||||
|
-define(PAYMENT_METHOD_BANK_CARD_WITH_EMPTY_CVV(ID),
|
||||||
|
{bank_card, #'domain_BankCardPaymentMethod'{
|
||||||
|
payment_system = #domain_PaymentSystemRef{id = ID},
|
||||||
|
is_cvv_empty = true
|
||||||
|
}}
|
||||||
|
).
|
||||||
|
|
||||||
-define(PAYMENT_METHOD_DIGITAL_WALLET(ID),
|
-define(PAYMENT_METHOD_DIGITAL_WALLET(ID),
|
||||||
{digital_wallet, #domain_PaymentServiceRef{id = ID}}
|
{digital_wallet, #domain_PaymentServiceRef{id = ID}}
|
||||||
).
|
).
|
||||||
|
@ -930,12 +930,16 @@ domain_config(Options) ->
|
|||||||
ct_domain:category(?cat(1), <<"Generic Store">>, live),
|
ct_domain:category(?cat(1), <<"Generic Store">>, live),
|
||||||
|
|
||||||
ct_domain:payment_method(?pmt(?PAYMENT_METHOD_BANK_CARD(<<"VISA">>))),
|
ct_domain:payment_method(?pmt(?PAYMENT_METHOD_BANK_CARD(<<"VISA">>))),
|
||||||
|
ct_domain:payment_method(?pmt(?PAYMENT_METHOD_BANK_CARD(<<"MASTERCARD">>))),
|
||||||
|
ct_domain:payment_method(?pmt(?PAYMENT_METHOD_BANK_CARD_WITH_EMPTY_CVV(<<"MASTERCARD">>))),
|
||||||
|
ct_domain:payment_method(?pmt(?PAYMENT_METHOD_BANK_CARD(<<"NSPK MIR">>))),
|
||||||
ct_domain:payment_method(?pmt(?PAYMENT_METHOD_GENERIC(<<"IND">>))),
|
ct_domain:payment_method(?pmt(?PAYMENT_METHOD_GENERIC(<<"IND">>))),
|
||||||
ct_domain:payment_method(?pmt(?PAYMENT_METHOD_DIGITAL_WALLET(<<"webmoney">>))),
|
ct_domain:payment_method(?pmt(?PAYMENT_METHOD_DIGITAL_WALLET(<<"webmoney">>))),
|
||||||
ct_domain:payment_method(?pmt(?PAYMENT_METHOD_CRYPTO_CURRENCY(<<"Litecoin">>))),
|
ct_domain:payment_method(?pmt(?PAYMENT_METHOD_CRYPTO_CURRENCY(<<"Litecoin">>))),
|
||||||
ct_domain:payment_method(?pmt(?PAYMENT_METHOD_CRYPTO_CURRENCY(<<"bitcoin_cash">>))),
|
ct_domain:payment_method(?pmt(?PAYMENT_METHOD_CRYPTO_CURRENCY(<<"bitcoin_cash">>))),
|
||||||
ct_domain:payment_method(?pmt(?PAYMENT_METHOD_CRYPTO_CURRENCY(<<"ripple">>))),
|
ct_domain:payment_method(?pmt(?PAYMENT_METHOD_CRYPTO_CURRENCY(<<"ripple">>))),
|
||||||
|
|
||||||
|
ct_domain:payment_system(?pmtsys(<<"MASTERCARD">>), <<"MASTERCARD">>),
|
||||||
ct_domain:payment_system(?pmtsys(<<"VISA">>), <<"VISA">>),
|
ct_domain:payment_system(?pmtsys(<<"VISA">>), <<"VISA">>),
|
||||||
ct_domain:payment_system(?pmtsys(<<"NSPK MIR">>), <<"NSPK MIR">>),
|
ct_domain:payment_system(?pmtsys(<<"NSPK MIR">>), <<"NSPK MIR">>),
|
||||||
|
|
||||||
@ -1009,7 +1013,10 @@ default_termset(Options) ->
|
|||||||
methods =
|
methods =
|
||||||
{value,
|
{value,
|
||||||
?ordset([
|
?ordset([
|
||||||
|
?pmt(?PAYMENT_METHOD_BANK_CARD(<<"MASTERCARD">>)),
|
||||||
|
?pmt(?PAYMENT_METHOD_BANK_CARD_WITH_EMPTY_CVV(<<"MASTERCARD">>)),
|
||||||
?pmt(?PAYMENT_METHOD_BANK_CARD(<<"VISA">>)),
|
?pmt(?PAYMENT_METHOD_BANK_CARD(<<"VISA">>)),
|
||||||
|
?pmt(?PAYMENT_METHOD_BANK_CARD(<<"NSPK MIR">>)),
|
||||||
?pmt(?PAYMENT_METHOD_GENERIC(<<"IND">>)),
|
?pmt(?PAYMENT_METHOD_GENERIC(<<"IND">>)),
|
||||||
?pmt(?PAYMENT_METHOD_DIGITAL_WALLET(<<"webmoney">>)),
|
?pmt(?PAYMENT_METHOD_DIGITAL_WALLET(<<"webmoney">>)),
|
||||||
?pmt(?PAYMENT_METHOD_CRYPTO_CURRENCY(<<"Litecoin">>)),
|
?pmt(?PAYMENT_METHOD_CRYPTO_CURRENCY(<<"Litecoin">>)),
|
||||||
|
@ -64,7 +64,7 @@ handle_function_('GetWithdrawalMethods', {ID}, _Opts) ->
|
|||||||
end,
|
end,
|
||||||
DmslMethods
|
DmslMethods
|
||||||
),
|
),
|
||||||
{ok, Methods};
|
{ok, ordsets:from_list(Methods)};
|
||||||
{error, notfound} ->
|
{error, notfound} ->
|
||||||
woody_error:raise(business, #fistful_IdentityNotFound{})
|
woody_error:raise(business, #fistful_IdentityNotFound{})
|
||||||
end;
|
end;
|
||||||
|
@ -110,6 +110,8 @@ get_withdrawal_methods_ok(_C) ->
|
|||||||
Metadata = ff_entity_context_codec:marshal(#{<<"metadata">> => #{<<"some key">> => <<"some data">>}}),
|
Metadata = ff_entity_context_codec:marshal(#{<<"metadata">> => #{<<"some key">> => <<"some data">>}}),
|
||||||
#identity_IdentityState{id = ID} = create_identity(EID, Name, PID, ProvID, Ctx, Metadata),
|
#identity_IdentityState{id = ID} = create_identity(EID, Name, PID, ProvID, Ctx, Metadata),
|
||||||
{ok, [
|
{ok, [
|
||||||
|
{bank_card, _},
|
||||||
|
{bank_card, _},
|
||||||
{bank_card, _},
|
{bank_card, _},
|
||||||
{crypto_currency, _},
|
{crypto_currency, _},
|
||||||
{crypto_currency, _},
|
{crypto_currency, _},
|
||||||
|
Loading…
Reference in New Issue
Block a user