Skip to content

Conversation

@Nielsvanpach
Copy link
Contributor

No description provided.

@Nielsvanpach Nielsvanpach requested a review from riasvdv March 28, 2025 17:21
Comment on lines +16 to +26
public ?bool $active = null,
public ?string $projectCode = null,
public ?int $clientId = null,
public ?bool $nonBillable = null,
public ?string $tagName = null,
public ?string $modifiedSince = null,
public ?array $fields = null,
public ?array $expand = null,
?int $page = null,
?int $perPage = null,
?string $sort = null,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these really all nullable? I'd also add the project id here, or is that project code in Float?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, everything is optional: https://developer.float.com/api_reference.html#!/Projects/getProjects

I'd add a different GetProjectRequest to retrieve a single project.
https://developer.float.com/api_reference.html#!/Projects/getProject

* @param array<string>|null $fields
*/
public function __construct(
public ?int $projectId = null,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we'll also need the task_id

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

* @param ?array<string> $expand
*/
public function __construct(
public ?bool $active = null,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll need the user id to link our users to float users, I guess we could use email as well though 🤔

@Nielsvanpach Nielsvanpach merged commit c575417 into main Apr 7, 2025
1 check passed
@Nielsvanpach Nielsvanpach deleted the feature/query-params branch April 7, 2025 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants