Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Changed
- Changed `board_id` and `phase_id` to be optional in `POST /api/v1/projects`

## [15.4.0](https://github.com/pipedrive/client-php/compare/15.3.0...15.4.0) (2026-02-16)

Expand Down
1 change: 1 addition & 0 deletions docs/versions/v1/Model/LeadResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Name | Type | Description | Notes
**origin_id** | **string** | The optional ID to further distinguish the origin of the lead - e.g. Which API integration created this Lead. | [optional]
**channel** | **int** | The ID of your Marketing channel this Lead was created from. Recognized Marketing channels can be configured in your <a href=\"https://app.pipedrive.com/settings/fields\" target=\"_blank\" rel=\"noopener noreferrer\">Company settings</a>. | [optional]
**channel_id** | **string** | The optional ID to further distinguish the Marketing channel. | [optional]
**source_deal_id** | **int** | The ID of the deal if the lead was converted from a deal. | [optional]
**is_archived** | **bool** | A flag indicating whether the lead is archived or not | [optional]
**was_seen** | **bool** | A flag indicating whether the lead was seen by someone in the Pipedrive UI | [optional]
**value** | [**\Pipedrive\versions\v1\Model\LeadValue**](LeadValue.md) | | [optional]
Expand Down
2 changes: 0 additions & 2 deletions docs/versions/v1/Model/ProjectMandatoryObjectFragment.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,5 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**title** | **string** | The title of the project | [optional]
**board_id** | **float** | The ID of the board this project is associated with | [optional]
**phase_id** | **float** | The ID of the phase this project is associated with | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
2 changes: 2 additions & 0 deletions docs/versions/v1/Model/ProjectObjectFragment.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**board_id** | **float** | The ID of the board this project is associated with | [optional]
**phase_id** | **float** | The ID of the phase this project is associated with | [optional]
**description** | **string** | The description of the project | [optional]
**status** | **string** | The status of the project | [optional]
**owner_id** | **float** | The ID of a project owner | [optional]
Expand Down
4 changes: 2 additions & 2 deletions docs/versions/v1/Model/ProjectPostObject.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**title** | **string** | The title of the project |
**board_id** | **float** | The ID of a project board |
**phase_id** | **float** | The ID of a phase on a project board |
**board_id** | **float** | The ID of the board this project is associated with | [optional]
**phase_id** | **float** | The ID of the phase this project is associated with | [optional]
**description** | **string** | The description of the project | [optional]
**status** | **string** | The status of the project | [optional]
**owner_id** | **float** | The ID of a project owner | [optional]
Expand Down
2 changes: 0 additions & 2 deletions docs/versions/v1/Model/RequiredPostProjectParameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,5 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**title** | **string** | The title of the project |
**board_id** | **float** | The ID of a project board |
**phase_id** | **float** | The ID of a phase on a project board |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1 change: 1 addition & 0 deletions docs/versions/v2/Model/DealItem.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Name | Type | Description | Notes
**origin_id** | **string** | The optional ID to further distinguish the origin of the deal - e.g. Which API integration created this Deal. | [optional]
**channel** | **int** | The ID of your Marketing channel this Deal was created from. Recognized Marketing channels can be configured in your <a href=\"https://app.pipedrive.com/settings/fields\" target=\"_blank\" rel=\"noopener noreferrer\">Company settings</a>. | [optional]
**channel_id** | **string** | The optional ID to further distinguish the Marketing channel. | [optional]
**source_lead_id** | **string** | The ID of the lead if the deal was converted from a lead. Only included when requested via include_fields parameter. | [optional]
**arr** | **float** | Only available in Growth and above plans The Annual Recurring Revenue of the deal Null if there are no products attached to the deal | [optional]
**mrr** | **float** | Only available in Growth and above plans The Monthly Recurring Revenue of the deal Null if there are no products attached to the deal | [optional]
**acv** | **float** | Only available in Growth and above plans The Annual Contract Value of the deal Null if there are no products attached to the deal | [optional]
Expand Down
2 changes: 1 addition & 1 deletion lib/versions/v1/Model/GetProductFieldResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class GetProductFieldResponse implements ModelInterface, ArrayAccess, JsonSerial
*/
protected static array $openAPITypes = [
'success' => 'bool',
'data' => 'ProductField'
'data' => '\Pipedrive\versions\v1\Model\ProductField'
];

/**
Expand Down
30 changes: 30 additions & 0 deletions lib/versions/v1/Model/LeadResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ class LeadResponse implements ModelInterface, ArrayAccess, JsonSerializable
'origin_id' => 'string',
'channel' => 'int',
'channel_id' => 'string',
'source_deal_id' => 'int',
'is_archived' => 'bool',
'was_seen' => 'bool',
'value' => '\Pipedrive\versions\v1\Model\LeadValue',
Expand Down Expand Up @@ -109,6 +110,7 @@ class LeadResponse implements ModelInterface, ArrayAccess, JsonSerializable
'origin_id' => null,
'channel' => null,
'channel_id' => null,
'source_deal_id' => null,
'is_archived' => null,
'was_seen' => null,
'value' => null,
Expand Down Expand Up @@ -163,6 +165,7 @@ public static function openAPIFormats(): array
'origin_id' => 'origin_id',
'channel' => 'channel',
'channel_id' => 'channel_id',
'source_deal_id' => 'source_deal_id',
'is_archived' => 'is_archived',
'was_seen' => 'was_seen',
'value' => 'value',
Expand Down Expand Up @@ -192,6 +195,7 @@ public static function openAPIFormats(): array
'origin_id' => 'setOriginId',
'channel' => 'setChannel',
'channel_id' => 'setChannelId',
'source_deal_id' => 'setSourceDealId',
'is_archived' => 'setIsArchived',
'was_seen' => 'setWasSeen',
'value' => 'setValue',
Expand Down Expand Up @@ -221,6 +225,7 @@ public static function openAPIFormats(): array
'origin_id' => 'getOriginId',
'channel' => 'getChannel',
'channel_id' => 'getChannelId',
'source_deal_id' => 'getSourceDealId',
'is_archived' => 'getIsArchived',
'was_seen' => 'getWasSeen',
'value' => 'getValue',
Expand Down Expand Up @@ -311,6 +316,7 @@ public function __construct(array $data = null)
$this->container['origin_id'] = $data['origin_id'] ?? null;
$this->container['channel'] = $data['channel'] ?? null;
$this->container['channel_id'] = $data['channel_id'] ?? null;
$this->container['source_deal_id'] = $data['source_deal_id'] ?? null;
$this->container['is_archived'] = $data['is_archived'] ?? null;
$this->container['was_seen'] = $data['was_seen'] ?? null;
$this->container['value'] = $data['value'] ?? null;
Expand Down Expand Up @@ -636,6 +642,30 @@ public function setChannelId($channel_id): self
return $this;
}

/**
* Gets source_deal_id
*
* @return int|null
*/
public function getSourceDealId()
{
return $this->container['source_deal_id'];
}

/**
* Sets source_deal_id
*
* @param int|null $source_deal_id The ID of the deal if the lead was converted from a deal.
*
* @return self
*/
public function setSourceDealId($source_deal_id): self
{
$this->container['source_deal_id'] = $source_deal_id;

return $this;
}

/**
* Gets is_archived
*
Expand Down
70 changes: 5 additions & 65 deletions lib/versions/v1/Model/ProjectMandatoryObjectFragment.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,7 @@ class ProjectMandatoryObjectFragment implements ModelInterface, ArrayAccess, Jso
* @phpsalm-var array<string, string>
*/
protected static array $openAPITypes = [
'title' => 'string',
'board_id' => 'float',
'phase_id' => 'float'
'title' => 'string'
];

/**
Expand All @@ -79,9 +77,7 @@ class ProjectMandatoryObjectFragment implements ModelInterface, ArrayAccess, Jso
* @psalm-var array<string, string|null>
*/
protected static $openAPIFormats = [
'title' => null,
'board_id' => null,
'phase_id' => null
'title' => null
];

/**
Expand Down Expand Up @@ -115,9 +111,7 @@ public static function openAPIFormats(): array
* @var string[]
*/
protected static $attributeMap = [
'title' => 'title',
'board_id' => 'board_id',
'phase_id' => 'phase_id'
'title' => 'title'
];

/**
Expand All @@ -126,9 +120,7 @@ public static function openAPIFormats(): array
* @var string[]
*/
protected static $setters = [
'title' => 'setTitle',
'board_id' => 'setBoardId',
'phase_id' => 'setPhaseId'
'title' => 'setTitle'
];

/**
Expand All @@ -137,9 +129,7 @@ public static function openAPIFormats(): array
* @var string[]
*/
protected static $getters = [
'title' => 'getTitle',
'board_id' => 'getBoardId',
'phase_id' => 'getPhaseId'
'title' => 'getTitle'
];

/**
Expand Down Expand Up @@ -210,8 +200,6 @@ public function getModelName(): string
public function __construct(array $data = null)
{
$this->container['title'] = $data['title'] ?? null;
$this->container['board_id'] = $data['board_id'] ?? null;
$this->container['phase_id'] = $data['phase_id'] ?? null;
}

/**
Expand Down Expand Up @@ -263,54 +251,6 @@ public function setTitle($title): self

return $this;
}

/**
* Gets board_id
*
* @return float|null
*/
public function getBoardId()
{
return $this->container['board_id'];
}

/**
* Sets board_id
*
* @param float|null $board_id The ID of the board this project is associated with
*
* @return self
*/
public function setBoardId($board_id): self
{
$this->container['board_id'] = $board_id;

return $this;
}

/**
* Gets phase_id
*
* @return float|null
*/
public function getPhaseId()
{
return $this->container['phase_id'];
}

/**
* Sets phase_id
*
* @param float|null $phase_id The ID of the phase this project is associated with
*
* @return self
*/
public function setPhaseId($phase_id): self
{
$this->container['phase_id'] = $phase_id;

return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
Expand Down
60 changes: 60 additions & 0 deletions lib/versions/v1/Model/ProjectObjectFragment.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ class ProjectObjectFragment implements ModelInterface, ArrayAccess, JsonSerializ
* @phpsalm-var array<string, string>
*/
protected static array $openAPITypes = [
'board_id' => 'float',
'phase_id' => 'float',
'description' => 'string',
'status' => 'string',
'owner_id' => 'float',
Expand All @@ -85,6 +87,8 @@ class ProjectObjectFragment implements ModelInterface, ArrayAccess, JsonSerializ
* @psalm-var array<string, string|null>
*/
protected static $openAPIFormats = [
'board_id' => null,
'phase_id' => null,
'description' => null,
'status' => null,
'owner_id' => null,
Expand Down Expand Up @@ -127,6 +131,8 @@ public static function openAPIFormats(): array
* @var string[]
*/
protected static $attributeMap = [
'board_id' => 'board_id',
'phase_id' => 'phase_id',
'description' => 'description',
'status' => 'status',
'owner_id' => 'owner_id',
Expand All @@ -144,6 +150,8 @@ public static function openAPIFormats(): array
* @var string[]
*/
protected static $setters = [
'board_id' => 'setBoardId',
'phase_id' => 'setPhaseId',
'description' => 'setDescription',
'status' => 'setStatus',
'owner_id' => 'setOwnerId',
Expand All @@ -161,6 +169,8 @@ public static function openAPIFormats(): array
* @var string[]
*/
protected static $getters = [
'board_id' => 'getBoardId',
'phase_id' => 'getPhaseId',
'description' => 'getDescription',
'status' => 'getStatus',
'owner_id' => 'getOwnerId',
Expand Down Expand Up @@ -239,6 +249,8 @@ public function getModelName(): string
*/
public function __construct(array $data = null)
{
$this->container['board_id'] = $data['board_id'] ?? null;
$this->container['phase_id'] = $data['phase_id'] ?? null;
$this->container['description'] = $data['description'] ?? null;
$this->container['status'] = $data['status'] ?? null;
$this->container['owner_id'] = $data['owner_id'] ?? null;
Expand Down Expand Up @@ -276,6 +288,54 @@ public function valid(): bool
}


/**
* Gets board_id
*
* @return float|null
*/
public function getBoardId()
{
return $this->container['board_id'];
}

/**
* Sets board_id
*
* @param float|null $board_id The ID of the board this project is associated with
*
* @return self
*/
public function setBoardId($board_id): self
{
$this->container['board_id'] = $board_id;

return $this;
}

/**
* Gets phase_id
*
* @return float|null
*/
public function getPhaseId()
{
return $this->container['phase_id'];
}

/**
* Sets phase_id
*
* @param float|null $phase_id The ID of the phase this project is associated with
*
* @return self
*/
public function setPhaseId($phase_id): self
{
$this->container['phase_id'] = $phase_id;

return $this;
}

/**
* Gets description
*
Expand Down
Loading