Skip to content

Conversation

@nawaik
Copy link

@nawaik nawaik commented Sep 17, 2025

Add list user packages and delete user packages from basekit.

Doc: https://basekit.stoplight.io/docs/basekit/vkmfmoy8dbcvg-list-users-account-packages

I use the old object way to keep it consistent with the rest of the codebase.

Have to ignore baseline 4 times as the interface expects static which isn't always the case as these can be placed in a multidimensional array as well.

'isFree' => $this->isFree,
'billingPeriodMonths' => $this->billingPeriodMonths,
'isActive' => $this->isActive,
'package' => $this->package,

Choose a reason for hiding this comment

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

Currently with the toArray call, I myself would expect that would be done recursively. If you do agree on this, then I would make the following change:

Suggested change
'package' => $this->package,
'package' => $this->package->toArray(),

If you do not agree, then keeping it like it is, is no problem.

Copy link
Author

Choose a reason for hiding this comment

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

I agree, as some of them can be null I made some null safe, resolving the one below as well as it is the same

@nawaik nawaik closed this Sep 19, 2025
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