Wise.Services.SpendLimits (Wise v1.0.0)

Copy Markdown View Source

Wise Spend Limits API.

Summary

Functions

get_card_limits(config, profile_id, token)

@spec get_card_limits(
  Wise.Config.t(),
  Wise.Types.profile_id(),
  Wise.Types.card_token()
) ::
  {:ok, map()} | {:error, Wise.Error.t()}

get_profile_limits(config, profile_id)

@spec get_profile_limits(Wise.Config.t(), Wise.Types.profile_id()) ::
  {:ok, map()} | {:error, Wise.Error.t()}

update_card_limits(config, profile_id, token, limits)

@spec update_card_limits(
  Wise.Config.t(),
  Wise.Types.profile_id(),
  Wise.Types.card_token(),
  map()
) :: {:ok, map()} | {:error, Wise.Error.t()}

update_profile_limits(config, profile_id, limits)

@spec update_profile_limits(Wise.Config.t(), Wise.Types.profile_id(), map()) ::
  {:ok, map()} | {:error, Wise.Error.t()}