Packages

An Elixir client library for the Pomelo API — the Latin American fintech platform for card issuing, digital accounts, KYC/KYB, fraud prevention, loyalty, and credit products.

Current section

Files

Jump to
pomelo_ex lib pomelo_ex fraud soft_block remove_soft_block.ex
Raw

lib/pomelo_ex/fraud/soft_block/remove_soft_block.ex

defmodule PomeloEx.Fraud.SoftBlock.RemoveSoftBlock do
@moduledoc false
alias PomeloEx.Types.Fraud.SoftBlock.RemoveSoftBlockType
def execute(%RemoveSoftBlockType{token: token, merchant_name: merchant_name}) do
headers = build_headers(token)
PomeloEx.Client.request(:delete, "/fraud/merchant/softblock/#{merchant_name}", nil, headers)
end
defp build_headers(token) do
[
{"Content-Type", "application/json"},
{"Authorization", "Bearer #{token}"}
]
end
end