View Source Gumroad.Sale (gumroad_elixir v0.1.2)

A Gumroad sale.

See the Gumroad docs for more info.

Summary

Types

@type affiliate() :: %{email: String.t(), amount: String.t()}
@type t() :: %Gumroad.Sale{
  affiliate: affiliate() | nil,
  amount_refundable_in_currency: number(),
  average_rating: number(),
  can_contact: boolean(),
  cancelled: boolean(),
  card: map(),
  chargedback: boolean(),
  created_at: String.t(),
  currency_symbol: String.t(),
  custom_fields: map(),
  daystamp: String.t(),
  discover_fee_charged: boolean(),
  dispute_won: boolean(),
  disputed: boolean(),
  email: String.t(),
  ended: boolean(),
  formatted_display_price: String.t(),
  formatted_total_price: String.t(),
  gumroad_fee: number(),
  has_custom_fields: boolean(),
  has_variants: boolean(),
  id: String.t(),
  is_additional_contribution: boolean(),
  is_following: boolean(),
  is_gift_receiver_purchase: boolean(),
  is_gift_sender_purchase: boolean(),
  is_product_physical: boolean(),
  is_recurring_billing: boolean(),
  license_disabled: boolean(),
  license_id: String.t(),
  license_key: String.t(),
  order_id: number(),
  paid: boolean(),
  partially_refunded: boolean(),
  price: number(),
  product_has_variants: boolean(),
  product_id: String.t(),
  product_name: String.t(),
  product_permalink: String.t(),
  product_rating: nil,
  purchase_email: String.t(),
  purchaser_id: String.t(),
  quantity: 1,
  recurring_charge: boolean(),
  referrer: String.t(),
  reviews_count: number(),
  seller_id: String.t(),
  subscription_duration: String.t(),
  subscription_id: String.t(),
  timestamp: String.t(),
  variants: map() | nil,
  variants_and_quantity: String.t(),
  zip_code: number()
}

Functions