omise v0.4.0 Omise.Link
Provides Link API interfaces.
Summary
Types
Functions
Create a link.
Returns {:ok, link}
if the request is successful, {:error, error}
otherwise.
Examples
# For one time use
Omise.Link.create(
amount: 1000_00,
currency: "thb",
title: "Awesome Elixir",
description: "This book will teach you about Elixir Programming Language"
)
# For multiple time use
Omise.Link.create(
amount: 1000_00,
currency: "thb",
title: "Awesome Elixir",
description: "This book will teach you about Elixir Programming Language"
multiple: true
)
List all links.
Returns {:ok, links}
if the request is successful, {:error, error}
otherwise.
Examples
Omise.Link.list
Omise.Link.list(limit: 10, order: "reverse_chronological")