Skip to content

Commit 47c4e4a

Browse files
committed
Merge branch 'apiVersion'
2 parents 16c3315 + 136d940 commit 47c4e4a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/ShopifySDK.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,13 +205,17 @@ class ShopifySDK
205205
*/
206206
public static $timeAllowedForEachApiCall = .5;
207207

208+
/**
209+
* @var string Default Shopify API version
210+
*/
211+
public static $defaultApiVersion = '2020-01';
212+
208213
/**
209214
* Shop / API configurations
210215
*
211216
* @var array
212217
*/
213218
public static $config = array(
214-
'ApiVersion' => '2019-10'
215219
);
216220

217221
/**
@@ -310,7 +314,7 @@ public static function config($config)
310314
* Reset config to it's initial values
311315
*/
312316
self::$config = array(
313-
'ApiVersion' => '2019-04'
317+
'ApiVersion' => self::$defaultApiVersion
314318
);
315319

316320
foreach ($config as $key => $value) {

0 commit comments

Comments
 (0)