Skip to content

Commit f3b0985

Browse files
committed
Updating auto-generated REST resources
1 parent 76cc76d commit f3b0985

471 files changed

Lines changed: 33792 additions & 3036 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.

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

src/Rest/Admin2023_04/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
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
<?php
2+
3+
/***********************************************************************************************************************
4+
* This file is auto-generated. If you have an issue, please create a GitHub issue. *
5+
***********************************************************************************************************************/
6+
7+
declare(strict_types=1);
8+
9+
namespace Shopify\Rest\Admin2023_07;
10+
11+
use Shopify\Auth\Session;
12+
use Shopify\Rest\Base;
13+
14+
/**
15+
* @property string|null $abandoned_checkout_url
16+
* @property array|null $billing_address
17+
* @property bool|null $buyer_accepts_marketing
18+
* @property bool|null $buyer_accepts_sms_marketing
19+
* @property string|null $cart_token
20+
* @property string|null $closed_at
21+
* @property string|null $completed_at
22+
* @property string|null $created_at
23+
* @property Currency|null $currency
24+
* @property Customer|null $customer
25+
* @property string|null $customer_locale
26+
* @property int|null $device_id
27+
* @property DiscountCode[]|null $discount_codes
28+
* @property string|null $email
29+
* @property string|null $gateway
30+
* @property int|null $id
31+
* @property string|null $landing_site
32+
* @property array|null $line_items
33+
* @property int|null $location_id
34+
* @property string|null $note
35+
* @property string|null $phone
36+
* @property string|null $presentment_currency
37+
* @property string|null $referring_site
38+
* @property array|null $shipping_address
39+
* @property array|null $shipping_lines
40+
* @property string|null $sms_marketing_phone
41+
* @property string|null $source_name
42+
* @property string|null $subtotal_price
43+
* @property array|null $tax_lines
44+
* @property bool|null $taxes_included
45+
* @property string|null $token
46+
* @property string|null $total_discounts
47+
* @property string|null $total_duties
48+
* @property string|null $total_line_items_price
49+
* @property string|null $total_price
50+
* @property string|null $total_tax
51+
* @property int|null $total_weight
52+
* @property string|null $updated_at
53+
* @property int|null $user_id
54+
*/
55+
class AbandonedCheckout extends Base
56+
{
57+
public static string $API_VERSION = "2023-07";
58+
protected static array $HAS_ONE = [
59+
"currency" => Currency::class,
60+
"customer" => Customer::class
61+
];
62+
protected static array $HAS_MANY = [
63+
"discount_codes" => DiscountCode::class
64+
];
65+
protected static array $PATHS = [
66+
["http_method" => "get", "operation" => "checkouts", "ids" => [], "path" => "checkouts.json"],
67+
["http_method" => "get", "operation" => "checkouts", "ids" => [], "path" => "checkouts.json"]
68+
];
69+
70+
/**
71+
* @param Session $session
72+
* @param array $urlIds
73+
* @param mixed[] $params Allowed indexes:
74+
* since_id,
75+
* created_at_min,
76+
* created_at_max,
77+
* updated_at_min,
78+
* updated_at_max,
79+
* status,
80+
* limit
81+
*
82+
* @return array|null
83+
*/
84+
public static function checkouts(
85+
Session $session,
86+
array $urlIds = [],
87+
array $params = []
88+
): ?array {
89+
$response = parent::request(
90+
"get",
91+
"checkouts",
92+
$session,
93+
[],
94+
$params,
95+
[],
96+
);
97+
98+
return $response->getDecodedBody();
99+
}
100+
101+
}

0 commit comments

Comments
 (0)