Skip to content

Commit

Permalink
Merge pull request #441 from Zarthus/patch-1
Browse files Browse the repository at this point in the history
DynamicContentItemVariants: Fix objectName variables
  • Loading branch information
ecoologic authored Oct 10, 2023
2 parents ed814e5 + 712f742 commit ba4886e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Zendesk/API/Resources/Core/DynamicContentItemVariants.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use Zendesk\API\Traits\Resource\Delete;
use Zendesk\API\Traits\Resource\Find;
use Zendesk\API\Traits\Resource\FindAll;
use Zendesk\API\Traits\Resource\Update;
use Zendesk\API\Traits\Resource\UpdateMany;

/**
Expand All @@ -17,6 +18,7 @@ class DynamicContentItemVariants extends ResourceAbstract
{
use Create;
use Delete;
use Update;
use Find;
use FindAll;

Expand All @@ -26,11 +28,11 @@ class DynamicContentItemVariants extends ResourceAbstract
/**
* {@inheritdoc}
*/
protected $objectName = 'item';
protected $objectName = 'variant';
/**
* {@inheritdoc}
*/
protected $objectNamePlural = 'items';
protected $objectNamePlural = 'variants';

/**
* {@inheritdoc}
Expand All @@ -43,6 +45,7 @@ protected function setUpRoutes()
'find' => 'dynamic_content/items/{item_id}/variants/{id}.json',
'create' => 'dynamic_content/items/{item_id}/variants.json',
'delete' => 'dynamic_content/items/{item_id}/variants.json',
'update' => 'dynamic_content/items/{item_id}/variants/{id}.json',
'createMany' => 'dynamic_content/items/{item_id}/variants/create_many.json',
'updateMany' => 'dynamic_content/items/{item_id}/variants/update_many.json',
]
Expand Down

0 comments on commit ba4886e

Please sign in to comment.