Skip to content

Commit

Permalink
Update Shopify API version references
Browse files Browse the repository at this point in the history
  • Loading branch information
nfourtythree committed Dec 17, 2024
1 parent bfa0c57 commit 44ea891
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/controllers/WebhooksController.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
use craft\shopify\Plugin;
use craft\web\assets\admintable\AdminTableAsset;
use craft\web\Controller;
use Shopify\Rest\Admin2023_10\Webhook;
use Shopify\Rest\Admin2024_10\Webhook;
use Shopify\Webhooks\Registry;
use Shopify\Webhooks\Topics;
use yii\web\ConflictHttpException;
Expand Down
2 changes: 1 addition & 1 deletion src/events/ShopifyProductSyncEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

use craft\events\CancelableEvent;
use craft\shopify\elements\Product as ProductElement;
use Shopify\Rest\Admin2023_10\Product as ShopifyProduct;
use Shopify\Rest\Admin2024_10\Product as ShopifyProduct;

/**
* Event triggered just before a synchronized product element is going to be saved.
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/Metafields.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
namespace craft\shopify\helpers;

use craft\helpers\Json;
use Shopify\Rest\Admin2023_10\Metafield as ShopifyMetafield;
use Shopify\Rest\Admin2024_10\Metafield as ShopifyMetafield;

class Metafields
{
Expand Down
8 changes: 4 additions & 4 deletions src/services/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
use Shopify\Clients\HttpClientFactory;
use Shopify\Clients\Rest;
use Shopify\Context;
use Shopify\Rest\Admin2023_10\Metafield as ShopifyMetafield;
use Shopify\Rest\Admin2023_10\Product as ShopifyProduct;
use Shopify\Rest\Admin2023_10\Variant as ShopifyVariant;
use Shopify\Rest\Admin2024_10\Metafield as ShopifyMetafield;
use Shopify\Rest\Admin2024_10\Product as ShopifyProduct;
use Shopify\Rest\Admin2024_10\Variant as ShopifyVariant;
use Shopify\Rest\Base as ShopifyBaseResource;

/**
Expand All @@ -38,7 +38,7 @@ class Api extends Component
/**
* @var string
*/
public const SHOPIFY_API_VERSION = '2023-10';
public const SHOPIFY_API_VERSION = '2024-10';

/**
* @var Session|null
Expand Down
6 changes: 3 additions & 3 deletions src/services/Products.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
use craft\shopify\helpers\Metafields as MetafieldsHelper;
use craft\shopify\Plugin;
use craft\shopify\records\ProductData as ProductDataRecord;
use Shopify\Rest\Admin2023_10\Metafield as ShopifyMetafield;
use Shopify\Rest\Admin2023_10\Product as ShopifyProduct;
use Shopify\Rest\Admin2023_10\Variant as ShopifyVariant;
use Shopify\Rest\Admin2024_10\Metafield as ShopifyMetafield;
use Shopify\Rest\Admin2024_10\Product as ShopifyProduct;
use Shopify\Rest\Admin2024_10\Variant as ShopifyVariant;

/**
* Shopify Products service.
Expand Down

0 comments on commit 44ea891

Please sign in to comment.