Paddle.Coupon.list

You're seeing just the function list, go back to Paddle.Coupon module for more information.
Link to this function

list(product_id, opts \\ [])

View Source

Specs

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

List all coupons valid for a specified one-time product or subscription plan

Examples

Paddle.Coupon.list(1234)  
{:ok, [
  %Paddle.Coupon{
    coupon: "56604810a6990",
    description: "56604810a6dcd",
    discount_type: "percentage",
    discount_amount: 0.5,
    discount_currency: "USD",
    allowed_uses: 3,
    times_used: 2,
    is_recurring: true,
    expires: ~U"2020-12-03 00:00:00Z"
  }
]}