mirror of
https://github.com/valitydev/capi-v2.git
synced 2024-11-06 01:55:20 +00:00
TD-266: Fix - empty invoice id field (#18)
This commit is contained in:
parent
b8544b7cea
commit
05518a801c
@ -61,7 +61,7 @@ make_query(payments, Context, Req) ->
|
||||
#magista_PaymentSearchQuery{
|
||||
common_search_query_params = CommonSearchQueryParams,
|
||||
payment_params = PaymentParams,
|
||||
invoice_ids = genlib_list:wrap(genlib_map:get('invoiceID', Req))
|
||||
invoice_ids = encode_invoice_ids(genlib_map:get('invoiceID', Req))
|
||||
}.
|
||||
|
||||
process_search_request(QueryType, Query, _Req, Context, Opts = #{thrift_fun := ThriftFun}) ->
|
||||
@ -114,6 +114,9 @@ encode_payment_system_ref(undefined) -> undefined.
|
||||
encode_payment_token_provider(ID) when is_binary(ID) -> #domain_BankCardTokenServiceRef{id = ID};
|
||||
encode_payment_token_provider(undefined) -> undefined.
|
||||
|
||||
encode_invoice_ids(ID) when is_binary(ID) -> [ID];
|
||||
encode_invoice_ids(undefined) -> undefined.
|
||||
|
||||
%%
|
||||
|
||||
decode_stat_payment(Stat, Context) ->
|
||||
|
Loading…
Reference in New Issue
Block a user