Omise.Capability (omise v0.10.0)

Provides Capability API interfaces.

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

Summary

Functions

Retrieve the capability.

Types

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

Functions

@spec 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