Skip to content

Commit 185c0a6

Browse files
committed
Bump version to 2021-07, remove force_ssl for shop
1 parent a884055 commit 185c0a6

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

data/mocks/objects/Shop.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
"has_storefront": true,
4848
"eligible_for_card_reader_giveaway": false,
4949
"finances": true,
50-
"setup_required": false,
51-
"force_ssl": false
50+
"setup_required": false
5251
}
53-
}
52+
}

src/AbstractApi.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
abstract class AbstractApi implements ApiInterface
1010
{
11-
const DEFAULT_API_VERSION = '2021-04';
11+
const DEFAULT_API_VERSION = '2021-07';
1212

1313
/**
1414
* Domain of the Shopify store
@@ -43,7 +43,7 @@ abstract class AbstractApi implements ApiInterface
4343
*
4444
* @param array $options
4545
*/
46-
public function __construct(array $options = array())
46+
public function __construct(array $options = [])
4747
{
4848
foreach ($options as $key => $value) {
4949
if (!property_exists($this, $key)) {

src/Enum/Fields/ShopFields.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ class ShopFields extends AbstractObjectEnum
3737
const PROVINCE_CODE = 'province_code';
3838
const SHOP_OWNER = 'shop_owner';
3939
const SOURCE = 'source';
40-
const FORCE_SSL = 'force_ssl';
4140
const TAX_SHIPPING = 'tax_shipping';
4241
const TAXES_INCLUDED = 'taxes_included';
4342
const COUNTY_TAXES = 'county_taxes';
@@ -49,7 +48,7 @@ class ShopFields extends AbstractObjectEnum
4948

5049
public function getFieldTypes()
5150
{
52-
return array(
51+
return [
5352
'address1' => 'string',
5453
'address2' => 'string',
5554
'city' => 'string',
@@ -83,7 +82,6 @@ public function getFieldTypes()
8382
'province_code' => 'string',
8483
'shop_owner' => 'string',
8584
'source' => 'string',
86-
'force_ssl' => 'boolean',
8785
'tax_shipping' => 'boolean',
8886
'taxes_included' => 'boolean',
8987
'county_taxes' => 'string',
@@ -92,6 +90,6 @@ public function getFieldTypes()
9290
'zip' => 'string',
9391
'has_storefront' => 'boolean',
9492
'setup_required' => 'boolean'
95-
);
93+
];
9694
}
9795
}

0 commit comments

Comments
 (0)