Skip to content

Commit cd96b17

Browse files
authored
Merge pull request #306 from Shopify/add_2023_10_api_version
Add 2023-10 api version
2 parents f5f4fe4 + 2d2708f commit cd96b17

507 files changed

Lines changed: 33981 additions & 4046 deletions

File tree

Some content is hidden

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

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
77

88
## Unreleased
99

10+
- [#306](https://github.com/Shopify/shopify-api-php/pull/306) [Minor] Adding support for 2023-10 API version
1011
- [#297](https://github.com/Shopify/shopify-api-php/pull/297) [Patch] Fix CustomerAddress methods, FulfillmentRequest save method
1112

1213
## v5.1.0 - 2023-07-11

src/ApiVersion.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ class ApiVersion
2121
/** @var string */
2222
public const JULY_2023 = "2023-07";
2323
/** @var string */
24-
public const LATEST = self::JULY_2023;
24+
public const OCTOBER_2023 = "2023-10";
25+
/** @var string */
26+
public const LATEST = self::OCTOBER_2023;
2527

2628
private static $ALL_VERSIONS = [
2729
self::UNSTABLE,
@@ -31,6 +33,7 @@ class ApiVersion
3133
self::JANUARY_2023,
3234
self::APRIL_2023,
3335
self::JULY_2023,
36+
self::OCTOBER_2023,
3437
];
3538

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

src/Rest/Admin2022_04/AssignedFulfillmentOrder.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,13 @@ class AssignedFulfillmentOrder extends Base
3333
/**
3434
3535
*
36-
* @return string
36+
* @return string[]
3737
*/
38-
protected static function getJsonResponseBodyName(): string
38+
protected static function getJsonResponseBodyNames(): array
3939
{
40-
return "fulfillment_order";
40+
return [
41+
"fulfillment_order"
42+
];
4143
}
4244

4345
/**

src/Rest/Admin2022_04/CustomerAddress.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,19 @@ protected static function getJsonBodyName(): string
5454
return "address";
5555
}
5656

57+
/**
58+
59+
*
60+
* @return string[]
61+
*/
62+
protected static function getJsonResponseBodyNames(): array
63+
{
64+
return [
65+
"customer_address",
66+
"address"
67+
];
68+
}
69+
5770
/**
5871
* @param Session $session
5972
* @param int|string $id

src/Rest/Admin2022_04/FulfillmentRequest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,19 @@ class FulfillmentRequest extends Base
2525
["http_method" => "post", "operation" => "reject", "ids" => ["fulfillment_order_id"], "path" => "fulfillment_orders/<fulfillment_order_id>/fulfillment_request/reject.json"]
2626
];
2727

28+
/**
29+
30+
*
31+
* @return string[]
32+
*/
33+
protected static function getJsonResponseBodyNames(): array
34+
{
35+
return [
36+
"submitted_fulfillment_order",
37+
"fulfillment_order"
38+
];
39+
}
40+
2841
/**
2942
* @param mixed[] $params Allowed indexes:
3043
* message

src/Rest/Admin2022_04/OrderRisk.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,13 @@ protected static function getJsonBodyName(): string
4949
/**
5050
5151
*
52-
* @return string
52+
* @return string[]
5353
*/
54-
protected static function getJsonResponseBodyName(): string
54+
protected static function getJsonResponseBodyNames(): array
5555
{
56-
return "risk";
56+
return [
57+
"risk"
58+
];
5759
}
5860

5961
/**

src/Rest/Admin2022_07/AssignedFulfillmentOrder.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,13 @@ class AssignedFulfillmentOrder extends Base
3333
/**
3434
3535
*
36-
* @return string
36+
* @return string[]
3737
*/
38-
protected static function getJsonResponseBodyName(): string
38+
protected static function getJsonResponseBodyNames(): array
3939
{
40-
return "fulfillment_order";
40+
return [
41+
"fulfillment_order"
42+
];
4143
}
4244

4345
/**

src/Rest/Admin2022_07/Balance.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use Shopify\Rest\Base;
1313

1414
/**
15-
15+
* @property array[]|null $balance
1616
*/
1717
class Balance extends Base
1818
{

src/Rest/Admin2022_07/CustomerAddress.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,19 @@ protected static function getJsonBodyName(): string
5454
return "address";
5555
}
5656

57+
/**
58+
59+
*
60+
* @return string[]
61+
*/
62+
protected static function getJsonResponseBodyNames(): array
63+
{
64+
return [
65+
"customer_address",
66+
"address"
67+
];
68+
}
69+
5770
/**
5871
* @param Session $session
5972
* @param int|string $id

src/Rest/Admin2022_07/FulfillmentRequest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,19 @@ class FulfillmentRequest extends Base
2525
["http_method" => "post", "operation" => "reject", "ids" => ["fulfillment_order_id"], "path" => "fulfillment_orders/<fulfillment_order_id>/fulfillment_request/reject.json"]
2626
];
2727

28+
/**
29+
30+
*
31+
* @return string[]
32+
*/
33+
protected static function getJsonResponseBodyNames(): array
34+
{
35+
return [
36+
"submitted_fulfillment_order",
37+
"fulfillment_order"
38+
];
39+
}
40+
2841
/**
2942
* @param mixed[] $params Allowed indexes:
3043
* message

0 commit comments

Comments
 (0)