Omise.Capability (omise v0.9.0)

Provides Capability API interfaces.

https://www.omise.co/capability-api

Link to this section Summary

Functions

Retrieve the capability.

Link to this section Types

Specs

t() :: %Omise.Capability{
  banks: list(),
  country: String.t(),
  location: String.t(),
  object: String.t(),
  payment_methods: [Omise.PaymentMethod],
  zero_interest_installments: boolean()
}

Link to this section Functions

Specs

retrieve() :: {:ok, t()} | {:error, Omise.Error.t()}

Retrieve the capability.

Returns {:ok, capability} if the request is successful, {:error, error} otherwise.

Examples

Omise.Capability.retrieve