View Source Craftgate.Adapter.FraudAdapter (Craftgate v1.0.42)

Provides capabilities to retrieve potentially fraudulent transactions and marking them as safe, or managing fraud values for the fraud rules

Link to this section Summary

Link to this section Functions

Link to this function

add_value_to_value_list(list_name, value, expire_in_seconds, options \\ [])

View Source
@spec add_value_to_value_list(binary(), binary() | nil, integer() | nil, keyword()) ::
  {:ok, :void} | {:error, any()}
Link to this function

add_value_to_value_list!(list_name, value, expire_in_seconds, options \\ [])

View Source
@spec add_value_to_value_list!(binary(), binary() | nil, integer() | nil, keyword()) ::
  :void | no_return()

Bangified version of add_value_to_value_list/4

Link to this function

create_value_list(list_name)

View Source
@spec create_value_list(binary()) :: {:ok, nil} | {:error, any()}
Link to this function

create_value_list!(list_name)

View Source
@spec create_value_list!(binary()) :: nil | no_return()
Link to this function

delete_value_list(list_name, options \\ [])

View Source
@spec delete_value_list(
  binary(),
  keyword()
) :: {:ok, :void} | {:error, any()}
Link to this function

delete_value_list!(list_name, options \\ [])

View Source
@spec delete_value_list!(
  binary(),
  keyword()
) :: :void | no_return()

Bangified version of delete_value_list/2

Link to this function

remove_value_from_value_list(list_name, value, options \\ [])

View Source
@spec remove_value_from_value_list(binary(), binary(), keyword()) ::
  {:ok, :void} | {:error, any()}
Link to this function

remove_value_from_value_list!(list_name, value, options \\ [])

View Source
@spec remove_value_from_value_list!(binary(), binary(), keyword()) ::
  :void | no_return()

Bangified version of remove_value_from_value_list/3

Link to this function

retrieve_all_value_lists(options \\ [])

View Source
@spec retrieve_all_value_lists(keyword()) ::
  {:ok, Craftgate.Response.FraudAllValueListsResponse.t()} | {:error, any()}

Retrieve all fraud value lists

Link to this function

retrieve_all_value_lists!(options \\ [])

View Source
@spec retrieve_all_value_lists!(keyword()) ::
  Craftgate.Response.FraudAllValueListsResponse.t() | no_return()

Bangified version of retrieve_all_value_lists/1

Link to this function

retrieve_value_list(list_name, options \\ [])

View Source
@spec retrieve_value_list(
  binary(),
  keyword()
) :: {:ok, Craftgate.Response.FraudValueListResponse.t()} | {:error, any()}

Retrieve the fraud list specified by list_name

Link to this function

retrieve_value_list!(list_name, options \\ [])

View Source
@spec retrieve_value_list!(
  binary(),
  keyword()
) :: Craftgate.Response.FraudValueListResponse.t() | no_return()

Bangified version of retrieve_value_list/2

Link to this function

search_fraud_checks(params, options \\ [])

View Source
@spec search_fraud_checks(
  Craftgate.Request.SearchFraudChecksRequest.t(),
  keyword()
) :: {:ok, Craftgate.Response.FraudCheckListResponse.t()} | {:error, any()}

Search for fraud checks that were generated for potentially fraudulent payments

Link to this function

search_fraud_checks!(params, options \\ [])

View Source

Bangified version of search_fraud_checks/2

Link to this function

update_fraud_checks(id, status, options \\ [])

View Source
@spec update_fraud_checks(integer(), Craftgate.Model.FraudCheckStatus.t(), keyword()) ::
  {:ok, :void} | {:error, any()}

Mark fraud checks as fraud or not fraud

Link to this function

update_fraud_checks!(id, status, options \\ [])

View Source
@spec update_fraud_checks!(integer(), Craftgate.Model.FraudCheckStatus.t(), keyword()) ::
  :void | no_return()

Bangified version of update_fraud_checks/3