Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes for update activity #31

Merged
merged 1 commit into from
May 15, 2024
Merged
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
4 changes: 2 additions & 2 deletions src/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Palpalani\BayRewards\Resources\PointsResource;
use Palpalani\BayRewards\Resources\StoreFeatureResource;
use Palpalani\BayRewards\Resources\StoreResource;
use Palpalani\BayRewards\Resources\updateActivityResource;
use Palpalani\BayRewards\Resources\UpdateActivityResource;
use Saloon\Http\Connector;

final class Factory extends Connector
Expand Down Expand Up @@ -60,7 +60,7 @@ public function getStoreFeatures(): StoreFeatureResource
return new StoreFeatureResource($this);
}

public function updateActivity(): updateActivityResource
public function updateActivity(): UpdateActivityResource
{
return new UpdateActivityResource($this);
}
Expand Down
4 changes: 2 additions & 2 deletions src/Resources/UpdateActivityResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

namespace Palpalani\BayRewards\Resources;

use Palpalani\BayRewards\Objects\UpdateActivity;
use Palpalani\BayRewards\Objects\Action;
use Palpalani\BayRewards\Requests\Store\UpdateActivityRequest;

final class UpdateActivityResource extends Resource
{
/**
* @return mixed|UpdateActivity
* @return mixed|Action
*/
public function post(string $access_token, array $data): mixed
{
Expand Down
Loading