View Source ExPipedrive.ProductVariation (ex_pipedrive v0.2.0)

Product variation entity decoded from Pipedrive API v2 responses.

Variations live on the separate /api/v2/products/:id/variations API (see ExPipedrive.ProductVariations), not embedded in ExPipedrive.Product. Prices are kept as maps (currency, price, cost, direct_cost, notes). The raw payload remains on original_object.

Summary

Types

@type t() :: %ExPipedrive.ProductVariation{
  id: pos_integer() | nil,
  name: String.t(),
  original_object: map() | nil,
  prices: list(),
  product_id: pos_integer() | nil
}

Functions