Paddle.Product (paddlex v0.1.0) View Source

Product

Link to this section Summary

Functions

List all published one-time products in your account

Link to this section Types

Specs

t() :: %Paddle.Product{
  base_price: number(),
  currency: String.t(),
  description: String.t() | nil,
  icon: String.t(),
  id: integer(),
  name: String.t(),
  sale_price: nil,
  screenshots: list()
}

Link to this section Functions

Specs

list(keyword()) :: {:ok, [t()]} | {:error, Paddle.Error.t()}

List all published one-time products in your account

Examples

Paddle.Product.list() 
{:ok, [
  %Paddle.Product{
    id: 489171,
    name: "A Product",
    description: "A description of the product.",
    base_price: 58,
    sale_price: nil,
    currency: "USD",
    screenshots: [],
    icon: "https://paddle-static.s3.amazonaws.com/email/2013-04-10/og.png"
  },
  %Paddle.Product{
    id: 489278,
    name: "Another Product",
    description: nil,
    base_price: 39.99,
    sale_price: nil,
    currency: "GBP",
    screenshots: [],
    icon: "https://paddle.s3.amazonaws.com/user/91/489278geekbench.png"
  },
]}