Skip to content

Commit b4b98ec

Browse files
authored
Merge pull request #1 from Shopify/main
shopify-api-php v5.1.0 updates
2 parents a598323 + d368eef commit b4b98ec

File tree

474 files changed

+33801
-3038
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

474 files changed

+33801
-3038
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
88
## Unreleased
99
- PATCH: Fix the issue "Get Current Session ID process from Post Purchase Extension Token"
1010

11+
## v5.1.0 - 2023-07-11
12+
13+
- [#285](https://github.com/Shopify/shopify-api-php/pull/285) [Minor] Adding support for 2023-07 API version
14+
1115
## v5.0.0 - 2023-05-10
1216

1317
- [#269](https://github.com/Shopify/shopify-api-php/pull/269) [bugfix] Refactored query string building to account for Shopify-specific array format

src/ApiVersion.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ class ApiVersion
1919
/** @var string */
2020
public const APRIL_2023 = "2023-04";
2121
/** @var string */
22-
public const LATEST = self::APRIL_2023;
22+
public const JULY_2023 = "2023-07";
23+
/** @var string */
24+
public const LATEST = self::JULY_2023;
2325

2426
private static $ALL_VERSIONS = [
2527
self::UNSTABLE,
@@ -28,6 +30,7 @@ class ApiVersion
2830
self::OCTOBER_2022,
2931
self::JANUARY_2023,
3032
self::APRIL_2023,
33+
self::JULY_2023,
3134
];
3235

3336
public static function isValid(string $version): bool

src/Rest/Admin2022_04/FulfillmentOrder.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,7 @@ public function close(
137137

138138
/**
139139
* @param mixed[] $params Allowed indexes:
140-
* reason,
141-
* reason_notes,
142-
* notify_merchant
140+
* fulfillment_hold
143141
* @param array|string $body
144142
*
145143
* @return array|null

src/Rest/Admin2022_04/Shop.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
* @property string|null $shop_owner
6262
* @property string|null $source
6363
* @property string|null $tax_shipping
64-
* @property string|null $taxes_included
64+
* @property bool|null $taxes_included
6565
* @property string|null $timezone
6666
* @property bool|null $transactional_sms_disabled
6767
* @property string|null $updated_at

src/Rest/Admin2022_07/FulfillmentOrder.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,7 @@ public function close(
138138

139139
/**
140140
* @param mixed[] $params Allowed indexes:
141-
* reason,
142-
* reason_notes,
143-
* notify_merchant
141+
* fulfillment_hold
144142
* @param array|string $body
145143
*
146144
* @return array|null

src/Rest/Admin2022_07/Shop.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
* @property string|null $shop_owner
6262
* @property string|null $source
6363
* @property string|null $tax_shipping
64-
* @property string|null $taxes_included
64+
* @property bool|null $taxes_included
6565
* @property string|null $timezone
6666
* @property bool|null $transactional_sms_disabled
6767
* @property string|null $updated_at

src/Rest/Admin2022_10/FulfillmentOrder.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,7 @@ public function close(
138138

139139
/**
140140
* @param mixed[] $params Allowed indexes:
141-
* reason,
142-
* reason_notes,
143-
* notify_merchant
141+
* fulfillment_hold
144142
* @param array|string $body
145143
*
146144
* @return array|null

src/Rest/Admin2022_10/Shop.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
* @property string|null $shop_owner
6363
* @property string|null $source
6464
* @property string|null $tax_shipping
65-
* @property string|null $taxes_included
65+
* @property bool|null $taxes_included
6666
* @property string|null $timezone
6767
* @property bool|null $transactional_sms_disabled
6868
* @property string|null $updated_at

src/Rest/Admin2023_01/FulfillmentOrder.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,7 @@ public function close(
140140

141141
/**
142142
* @param mixed[] $params Allowed indexes:
143-
* reason,
144-
* reason_notes,
145-
* notify_merchant
143+
* fulfillment_hold
146144
* @param array|string $body
147145
*
148146
* @return array|null

src/Rest/Admin2023_01/Shop.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
* @property string|null $shop_owner
6363
* @property string|null $source
6464
* @property string|null $tax_shipping
65-
* @property string|null $taxes_included
65+
* @property bool|null $taxes_included
6666
* @property string|null $timezone
6767
* @property bool|null $transactional_sms_disabled
6868
* @property string|null $updated_at

0 commit comments

Comments
 (0)