[WIP] Fix

This commit is contained in:
Andrey Mayorov 2018-07-09 13:02:59 +03:00
parent 6a1329c094
commit 77e04c2dab

View File

@ -601,7 +601,7 @@ to_swag(destination_resource, {bank_card, BankCard}) ->
to_swag(map, #{
<<"type">> => <<"BankCardDestinationResource">>,
<<"token">> => maps:get(token, BankCard),
<<"paymentSystem">> => genlib_map:get(payment_system, BankCard),
<<"paymentSystem">> => genlib:to_binary(genlib_map:get(payment_system, BankCard)),
<<"bin">> => genlib_map:get(bin, BankCard),
<<"lastDigits">> => to_swag(pan_last_digits, genlib_map:get(masked_pan, BankCard))
});