Wise.Types (Wise v1.0.0)

Copy Markdown View Source

Shared type definitions for the Wise Platform API.

All domain types are represented as plain maps with atom keys. This module documents the shapes used throughout the library.

Summary

Types

Wise address ID

Money amount with currency

Wise balance ID

Balance type

Wise batch group ID

Wise card order ID

Card status

Wise card token

Card type

Wise support case ID

Wise dispute ID

Wise KYC review ID

Successful API result with no body

Pagination parameters

Wise profile ID

Profile type: personal or business

Wise quote UUID

Wise recipient account ID

Successful API result

Wise transfer ID

Transfer status

Wise user ID

Webhook event type

Wise webhook subscription ID

Types

address_id()

@type address_id() :: pos_integer()

Wise address ID

amount()

@type amount() :: %{value: number(), currency: String.t()}

Money amount with currency

balance_id()

@type balance_id() :: pos_integer()

Wise balance ID

balance_type()

@type balance_type() :: :STANDARD | :SAVINGS

Balance type

batch_group_id()

@type batch_group_id() :: String.t()

Wise batch group ID

card_order_id()

@type card_order_id() :: String.t()

Wise card order ID

card_status()

@type card_status() :: :ACTIVE | :INACTIVE | :FROZEN | :BLOCKED

Card status

card_token()

@type card_token() :: String.t()

Wise card token

card_type()

@type card_type() :: :PHYSICAL | :VIRTUAL

Card type

case_id()

@type case_id() :: String.t()

Wise support case ID

dispute_id()

@type dispute_id() :: String.t()

Wise dispute ID

kyc_review_id()

@type kyc_review_id() :: String.t()

Wise KYC review ID

ok_result()

@type ok_result() :: {:ok, :ok} | {:error, Wise.Error.t()}

Successful API result with no body

page_params()

@type page_params() :: %{
  optional(:limit) => pos_integer(),
  optional(:offset) => non_neg_integer(),
  optional(:cursor) => String.t()
}

Pagination parameters

profile_id()

@type profile_id() :: pos_integer()

Wise profile ID

profile_type()

@type profile_type() :: :personal | :business

Profile type: personal or business

quote_id()

@type quote_id() :: String.t()

Wise quote UUID

recipient_id()

@type recipient_id() :: pos_integer()

Wise recipient account ID

result(t)

@type result(t) :: {:ok, t} | {:error, Wise.Error.t()}

Successful API result

transfer_id()

@type transfer_id() :: pos_integer()

Wise transfer ID

transfer_status()

@type transfer_status() ::
  :draft
  | :pending_customer_input
  | :processing
  | :funds_converted
  | :outgoing_payment_sent
  | :canceled
  | :funds_refunded
  | :bounced_back
  | :charged_back

Transfer status

user_id()

@type user_id() :: pos_integer()

Wise user ID

webhook_event_type()

@type webhook_event_type() :: String.t()

Webhook event type

webhook_subscription_id()

@type webhook_subscription_id() :: String.t()

Wise webhook subscription ID