shopify_api 12.3.0 → 12.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/ISSUE_TEMPLATE/BUG_REPORT.md +40 -0
- data/.github/ISSUE_TEMPLATE/ENHANCEMENT.md +9 -0
- data/.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md +9 -0
- data/.github/workflows/build.yml +0 -3
- data/.github/workflows/stale.yml +1 -0
- data/CHANGELOG.md +8 -1
- data/Gemfile.lock +9 -9
- data/lib/shopify_api/admin_versions.rb +2 -1
- data/lib/shopify_api/rest/base.rb +11 -4
- data/lib/shopify_api/rest/resources/2022_01/assigned_fulfillment_order.rb +7 -0
- data/lib/shopify_api/rest/resources/2022_01/customer.rb +9 -1
- data/lib/shopify_api/rest/resources/2022_01/fulfillment.rb +5 -1
- data/lib/shopify_api/rest/resources/2022_01/fulfillment_order.rb +3 -3
- data/lib/shopify_api/rest/resources/2022_04/assigned_fulfillment_order.rb +7 -0
- data/lib/shopify_api/rest/resources/2022_04/customer.rb +9 -1
- data/lib/shopify_api/rest/resources/2022_04/fulfillment.rb +5 -1
- data/lib/shopify_api/rest/resources/2022_04/fulfillment_order.rb +3 -3
- data/lib/shopify_api/rest/resources/2022_04/metafield.rb +5 -3
- data/lib/shopify_api/rest/resources/2022_07/assigned_fulfillment_order.rb +7 -0
- data/lib/shopify_api/rest/resources/2022_07/customer.rb +9 -1
- data/lib/shopify_api/rest/resources/2022_07/fulfillment.rb +5 -1
- data/lib/shopify_api/rest/resources/2022_07/fulfillment_order.rb +3 -3
- data/lib/shopify_api/rest/resources/2022_07/metafield.rb +5 -3
- data/lib/shopify_api/rest/resources/2022_10/assigned_fulfillment_order.rb +7 -0
- data/lib/shopify_api/rest/resources/2022_10/customer.rb +9 -1
- data/lib/shopify_api/rest/resources/2022_10/fulfillment.rb +5 -1
- data/lib/shopify_api/rest/resources/2022_10/fulfillment_order.rb +3 -3
- data/lib/shopify_api/rest/resources/2022_10/metafield.rb +5 -3
- data/lib/shopify_api/rest/resources/2023_01/abandoned_checkout.rb +190 -0
- data/lib/shopify_api/rest/resources/2023_01/access_scope.rb +58 -0
- data/lib/shopify_api/rest/resources/2023_01/apple_pay_certificate.rb +105 -0
- data/lib/shopify_api/rest/resources/2023_01/application_charge.rb +104 -0
- data/lib/shopify_api/rest/resources/2023_01/application_credit.rb +87 -0
- data/lib/shopify_api/rest/resources/2023_01/article.rb +265 -0
- data/lib/shopify_api/rest/resources/2023_01/asset.rb +118 -0
- data/lib/shopify_api/rest/resources/2023_01/assigned_fulfillment_order.rb +86 -0
- data/lib/shopify_api/rest/resources/2023_01/balance.rb +50 -0
- data/lib/shopify_api/rest/resources/2023_01/blog.rb +162 -0
- data/lib/shopify_api/rest/resources/2023_01/cancellation_request.rb +83 -0
- data/lib/shopify_api/rest/resources/2023_01/carrier_service.rb +113 -0
- data/lib/shopify_api/rest/resources/2023_01/checkout.rb +209 -0
- data/lib/shopify_api/rest/resources/2023_01/collect.rb +142 -0
- data/lib/shopify_api/rest/resources/2023_01/collection.rb +110 -0
- data/lib/shopify_api/rest/resources/2023_01/collection_listing.rb +155 -0
- data/lib/shopify_api/rest/resources/2023_01/comment.rb +283 -0
- data/lib/shopify_api/rest/resources/2023_01/country.rb +137 -0
- data/lib/shopify_api/rest/resources/2023_01/currency.rb +57 -0
- data/lib/shopify_api/rest/resources/2023_01/custom_collection.rb +187 -0
- data/lib/shopify_api/rest/resources/2023_01/customer.rb +329 -0
- data/lib/shopify_api/rest/resources/2023_01/customer_address.rb +201 -0
- data/lib/shopify_api/rest/resources/2023_01/customer_saved_search.rb +169 -0
- data/lib/shopify_api/rest/resources/2023_01/deprecated_api_call.rb +57 -0
- data/lib/shopify_api/rest/resources/2023_01/discount_code.rb +219 -0
- data/lib/shopify_api/rest/resources/2023_01/dispute.rb +111 -0
- data/lib/shopify_api/rest/resources/2023_01/draft_order.rb +275 -0
- data/lib/shopify_api/rest/resources/2023_01/event.rb +148 -0
- data/lib/shopify_api/rest/resources/2023_01/fulfillment.rb +225 -0
- data/lib/shopify_api/rest/resources/2023_01/fulfillment_event.rb +166 -0
- data/lib/shopify_api/rest/resources/2023_01/fulfillment_order.rb +316 -0
- data/lib/shopify_api/rest/resources/2023_01/fulfillment_request.rb +87 -0
- data/lib/shopify_api/rest/resources/2023_01/fulfillment_service.rb +130 -0
- data/lib/shopify_api/rest/resources/2023_01/gift_card.rb +215 -0
- data/lib/shopify_api/rest/resources/2023_01/gift_card_adjustment.rb +118 -0
- data/lib/shopify_api/rest/resources/2023_01/image.rb +157 -0
- data/lib/shopify_api/rest/resources/2023_01/inventory_item.rb +108 -0
- data/lib/shopify_api/rest/resources/2023_01/inventory_level.rb +179 -0
- data/lib/shopify_api/rest/resources/2023_01/location.rb +167 -0
- data/lib/shopify_api/rest/resources/2023_01/locations_for_move.rb +56 -0
- data/lib/shopify_api/rest/resources/2023_01/marketing_event.rb +209 -0
- data/lib/shopify_api/rest/resources/2023_01/metafield.rb +344 -0
- data/lib/shopify_api/rest/resources/2023_01/mobile_platform_application.rb +110 -0
- data/lib/shopify_api/rest/resources/2023_01/order.rb +479 -0
- data/lib/shopify_api/rest/resources/2023_01/order_risk.rb +135 -0
- data/lib/shopify_api/rest/resources/2023_01/page.rb +194 -0
- data/lib/shopify_api/rest/resources/2023_01/payment.rb +140 -0
- data/lib/shopify_api/rest/resources/2023_01/payment_gateway.rb +143 -0
- data/lib/shopify_api/rest/resources/2023_01/payment_transaction.rb +107 -0
- data/lib/shopify_api/rest/resources/2023_01/payout.rb +97 -0
- data/lib/shopify_api/rest/resources/2023_01/policy.rb +69 -0
- data/lib/shopify_api/rest/resources/2023_01/price_rule.rb +223 -0
- data/lib/shopify_api/rest/resources/2023_01/product.rb +223 -0
- data/lib/shopify_api/rest/resources/2023_01/product_listing.rb +196 -0
- data/lib/shopify_api/rest/resources/2023_01/product_resource_feedback.rb +88 -0
- data/lib/shopify_api/rest/resources/2023_01/province.rb +132 -0
- data/lib/shopify_api/rest/resources/2023_01/recurring_application_charge.rb +167 -0
- data/lib/shopify_api/rest/resources/2023_01/redirect.rb +139 -0
- data/lib/shopify_api/rest/resources/2023_01/refund.rb +151 -0
- data/lib/shopify_api/rest/resources/2023_01/report.rb +121 -0
- data/lib/shopify_api/rest/resources/2023_01/resource_feedback.rb +73 -0
- data/lib/shopify_api/rest/resources/2023_01/script_tag.rb +155 -0
- data/lib/shopify_api/rest/resources/2023_01/shipping_zone.rb +83 -0
- data/lib/shopify_api/rest/resources/2023_01/shop.rb +221 -0
- data/lib/shopify_api/rest/resources/2023_01/smart_collection.rb +216 -0
- data/lib/shopify_api/rest/resources/2023_01/storefront_access_token.rb +87 -0
- data/lib/shopify_api/rest/resources/2023_01/tender_transaction.rb +93 -0
- data/lib/shopify_api/rest/resources/2023_01/theme.rb +120 -0
- data/lib/shopify_api/rest/resources/2023_01/transaction.rb +181 -0
- data/lib/shopify_api/rest/resources/2023_01/usage_charge.rb +97 -0
- data/lib/shopify_api/rest/resources/2023_01/user.rb +138 -0
- data/lib/shopify_api/rest/resources/2023_01/variant.rb +212 -0
- data/lib/shopify_api/rest/resources/2023_01/webhook.rb +168 -0
- data/lib/shopify_api/version.rb +1 -1
- metadata +78 -3
- data/.github/ISSUE_TEMPLATE.md +0 -35
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f87e892122968b0fc410c734d089ec03952c3b5bbf2793fcca078730ac280233
|
4
|
+
data.tar.gz: 928a01df0d1bc4312fee18e768d84c3585e1d72b39871e63b473080ee35943ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd43ee271006e1ca390d151c002ad9a65439ad2cbe2a9350bd20e2756797dd38697eaf1c3437f243d3d478fd55d116eebb991be148913d2b0c48293fcd572496
|
7
|
+
data.tar.gz: 295e7ec37443a12589fe3bd2a8edd18fdba3cc76016d1fa829a6334378547a017f326f798f318eb833da33f75361921553843cb1207139edf33e426636ef2c6c
|
@@ -0,0 +1,40 @@
|
|
1
|
+
---
|
2
|
+
name: "🐛 Bug Report"
|
3
|
+
about: Something isn't working
|
4
|
+
labels: "Type: Bug 🐛"
|
5
|
+
---
|
6
|
+
|
7
|
+
# Issue summary
|
8
|
+
|
9
|
+
<!--
|
10
|
+
|
11
|
+
Write a short description of the issue here. Please provide any details or logs that
|
12
|
+
can help us debug it.
|
13
|
+
|
14
|
+
Increase the logs as described in the README by setting log_level to :debug, and paste the relevant portion here.
|
15
|
+
|
16
|
+
Learn more: https://github.com/Shopify/shopify-api-ruby#setup-shopify-context
|
17
|
+
|
18
|
+
-->
|
19
|
+
|
20
|
+
- `shopify_api` version:
|
21
|
+
- Ruby version:
|
22
|
+
- Operating system:
|
23
|
+
|
24
|
+
```
|
25
|
+
// Paste any relevant logs here
|
26
|
+
```
|
27
|
+
|
28
|
+
## Expected behavior
|
29
|
+
|
30
|
+
<!-- What do you think should happen? -->
|
31
|
+
|
32
|
+
## Actual behavior
|
33
|
+
|
34
|
+
<!-- What actually happens? -->
|
35
|
+
|
36
|
+
## Steps to reproduce the problem
|
37
|
+
|
38
|
+
1.
|
39
|
+
1.
|
40
|
+
1.
|
data/.github/workflows/build.yml
CHANGED
data/.github/workflows/stale.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -3,14 +3,21 @@
|
|
3
3
|
Note: For changes to the API, see https://shopify.dev/changelog?filter=api
|
4
4
|
|
5
5
|
## Unreleased
|
6
|
+
|
7
|
+
## Version 12.4.0
|
8
|
+
|
9
|
+
- [#1092](https://github.com/Shopify/shopify-api-ruby/pull/1092) Add support for 2023-01 API version.
|
10
|
+
- [#1081](https://github.com/Shopify/shopify-api-ruby/pull/1081) Fixed an error when parsing the JSON response body for the AssignedFulfillmentOrder resource.
|
11
|
+
|
6
12
|
## Version 12.3.0
|
7
13
|
|
8
14
|
- [#1040](https://github.com/Shopify/shopify-api-ruby/pull/1040) `ShopifyAPI::Clients::HttpResponse` as argument for `ShopifyAPI::Errors::HttpResponseError`
|
9
|
-
- [#1055](https://github.com/Shopify/shopify-api-ruby/pull/1055) Makes session_storage optional. Configuring the API with session_storage is now deprecated.
|
15
|
+
- [#1055](https://github.com/Shopify/shopify-api-ruby/pull/1055) Makes session_storage optional. Configuring the API with session_storage is now deprecated. Session persistence is handled by the [shopify_app gem](https://github.com/Shopify/shopify_app) if using Rails.
|
10
16
|
- [#1063](https://github.com/Shopify/shopify-api-ruby/pull/1063) Fix ActiveSupport inflector dependency
|
11
17
|
- [#1069](https://github.com/Shopify/shopify-api-ruby/pull/1069) Adds a custom Logger to help write uniform logs across the api and the [shopify_app gem](https://github.com/Shopify/shopify_app)
|
12
18
|
|
13
19
|
## Version 12.2.1
|
20
|
+
|
14
21
|
- [#1045](https://github.com/Shopify/shopify-api-ruby/pull/1045) Fixes bug with host/host_name requirement.
|
15
22
|
|
16
23
|
## Version 12.2.0
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
shopify_api (12.
|
4
|
+
shopify_api (12.4.0)
|
5
5
|
activesupport
|
6
6
|
concurrent-ruby
|
7
7
|
hash_diff
|
@@ -33,24 +33,22 @@ GEM
|
|
33
33
|
fakefs (1.4.1)
|
34
34
|
hash_diff (1.1.1)
|
35
35
|
hashdiff (1.0.1)
|
36
|
-
httparty (0.
|
37
|
-
|
36
|
+
httparty (0.21.0)
|
37
|
+
mini_mime (>= 1.0.0)
|
38
38
|
multi_xml (>= 0.5.2)
|
39
39
|
i18n (1.12.0)
|
40
40
|
concurrent-ruby (~> 1.0)
|
41
41
|
json (2.6.2)
|
42
|
-
jwt (2.
|
42
|
+
jwt (2.6.0)
|
43
43
|
language_server-protocol (3.17.0.1)
|
44
44
|
method_source (1.0.0)
|
45
|
-
|
46
|
-
mime-types-data (~> 3.2015)
|
47
|
-
mime-types-data (3.2022.0105)
|
45
|
+
mini_mime (1.1.2)
|
48
46
|
minitest (5.15.0)
|
49
47
|
mocha (1.13.0)
|
50
48
|
multi_xml (0.6.0)
|
51
49
|
netrc (0.11.0)
|
52
50
|
oj (3.13.23)
|
53
|
-
openssl (3.0
|
51
|
+
openssl (3.1.0)
|
54
52
|
parallel (1.22.1)
|
55
53
|
parser (3.1.2.1)
|
56
54
|
ast (~> 2.4.1)
|
@@ -92,11 +90,12 @@ GEM
|
|
92
90
|
sorbet-runtime
|
93
91
|
syntax_tree (>= 3.4)
|
94
92
|
ruby-progressbar (1.11.0)
|
95
|
-
securerandom (0.2.
|
93
|
+
securerandom (0.2.2)
|
96
94
|
sorbet (0.5.10438)
|
97
95
|
sorbet-static (= 0.5.10438)
|
98
96
|
sorbet-runtime (0.5.10438)
|
99
97
|
sorbet-static (0.5.10438-universal-darwin-21)
|
98
|
+
sorbet-static (0.5.10438-universal-darwin-22)
|
100
99
|
sorbet-static (0.5.10438-x86_64-linux)
|
101
100
|
sorbet-static-and-runtime (0.5.10438)
|
102
101
|
sorbet (= 0.5.10438)
|
@@ -138,6 +137,7 @@ GEM
|
|
138
137
|
|
139
138
|
PLATFORMS
|
140
139
|
arm64-darwin-21
|
140
|
+
universal-darwin-22
|
141
141
|
x86_64-linux
|
142
142
|
|
143
143
|
DEPENDENCIES
|
@@ -5,13 +5,14 @@ module ShopifyAPI
|
|
5
5
|
module AdminVersions
|
6
6
|
SUPPORTED_ADMIN_VERSIONS = T.let([
|
7
7
|
"unstable",
|
8
|
+
"2023-01",
|
8
9
|
"2022-10",
|
9
10
|
"2022-07",
|
10
11
|
"2022-04",
|
11
12
|
"2022-01",
|
12
13
|
], T::Array[String])
|
13
14
|
|
14
|
-
LATEST_SUPPORTED_ADMIN_VERSION = T.let("
|
15
|
+
LATEST_SUPPORTED_ADMIN_VERSION = T.let("2023-01", String)
|
15
16
|
end
|
16
17
|
|
17
18
|
SUPPORTED_ADMIN_VERSIONS = ShopifyAPI::AdminVersions::SUPPORTED_ADMIN_VERSIONS
|
@@ -97,6 +97,11 @@ module ShopifyAPI
|
|
97
97
|
class_name.underscore
|
98
98
|
end
|
99
99
|
|
100
|
+
sig { returns(String) }
|
101
|
+
def json_response_body_name
|
102
|
+
class_name
|
103
|
+
end
|
104
|
+
|
100
105
|
sig { returns(T.nilable(String)) }
|
101
106
|
def prev_page_info
|
102
107
|
instance_variable_get(:"@prev_page_info").value
|
@@ -205,12 +210,14 @@ module ShopifyAPI
|
|
205
210
|
|
206
211
|
body = T.cast(response.body, T::Hash[String, T.untyped])
|
207
212
|
|
208
|
-
|
209
|
-
|
213
|
+
response_name = json_response_body_name
|
214
|
+
|
215
|
+
if body.key?(response_name.pluralize) || (body.key?(response_name) && body[response_name].is_a?(Array))
|
216
|
+
(body[response_name.pluralize] || body[response_name]).each do |entry|
|
210
217
|
objects << create_instance(data: entry, session: session)
|
211
218
|
end
|
212
|
-
elsif body.key?(
|
213
|
-
objects << create_instance(data: body[
|
219
|
+
elsif body.key?(response_name)
|
220
|
+
objects << create_instance(data: body[response_name], session: session)
|
214
221
|
end
|
215
222
|
|
216
223
|
objects
|
@@ -197,11 +197,19 @@ module ShopifyAPI
|
|
197
197
|
|
198
198
|
sig do
|
199
199
|
params(
|
200
|
+
created_at_min: T.untyped,
|
201
|
+
created_at_max: T.untyped,
|
202
|
+
updated_at_min: T.untyped,
|
203
|
+
updated_at_max: T.untyped,
|
200
204
|
session: Auth::Session,
|
201
205
|
kwargs: T.untyped
|
202
206
|
).returns(T.untyped)
|
203
207
|
end
|
204
208
|
def count(
|
209
|
+
created_at_min: nil,
|
210
|
+
created_at_max: nil,
|
211
|
+
updated_at_min: nil,
|
212
|
+
updated_at_max: nil,
|
205
213
|
session: ShopifyAPI::Context.active_session,
|
206
214
|
**kwargs
|
207
215
|
)
|
@@ -210,7 +218,7 @@ module ShopifyAPI
|
|
210
218
|
operation: :count,
|
211
219
|
session: session,
|
212
220
|
ids: {},
|
213
|
-
params: {}.merge(kwargs).compact,
|
221
|
+
params: {created_at_min: created_at_min, created_at_max: created_at_max, updated_at_min: updated_at_min, updated_at_max: updated_at_max}.merge(kwargs).compact,
|
214
222
|
body: {},
|
215
223
|
entity: nil,
|
216
224
|
)
|
@@ -245,11 +245,15 @@ module ShopifyAPI
|
|
245
245
|
|
246
246
|
sig do
|
247
247
|
params(
|
248
|
+
notify_customer: T.untyped,
|
249
|
+
tracking_info: T.untyped,
|
248
250
|
body: T.untyped,
|
249
251
|
kwargs: T.untyped
|
250
252
|
).returns(T.untyped)
|
251
253
|
end
|
252
254
|
def update_tracking(
|
255
|
+
notify_customer: nil,
|
256
|
+
tracking_info: nil,
|
253
257
|
body: nil,
|
254
258
|
**kwargs
|
255
259
|
)
|
@@ -258,7 +262,7 @@ module ShopifyAPI
|
|
258
262
|
operation: :update_tracking,
|
259
263
|
session: @session,
|
260
264
|
ids: {id: @id},
|
261
|
-
params: {}.merge(kwargs).compact,
|
265
|
+
params: {notify_customer: notify_customer, tracking_info: tracking_info}.merge(kwargs).compact,
|
262
266
|
body: body,
|
263
267
|
entity: self,
|
264
268
|
)
|
@@ -193,13 +193,13 @@ module ShopifyAPI
|
|
193
193
|
|
194
194
|
sig do
|
195
195
|
params(
|
196
|
-
|
196
|
+
fulfillment_order: T.untyped,
|
197
197
|
body: T.untyped,
|
198
198
|
kwargs: T.untyped
|
199
199
|
).returns(T.untyped)
|
200
200
|
end
|
201
201
|
def move(
|
202
|
-
|
202
|
+
fulfillment_order: nil,
|
203
203
|
body: nil,
|
204
204
|
**kwargs
|
205
205
|
)
|
@@ -208,7 +208,7 @@ module ShopifyAPI
|
|
208
208
|
operation: :move,
|
209
209
|
session: @session,
|
210
210
|
ids: {id: @id},
|
211
|
-
params: {
|
211
|
+
params: {fulfillment_order: fulfillment_order}.merge(kwargs).compact,
|
212
212
|
body: body,
|
213
213
|
entity: self,
|
214
214
|
)
|
@@ -200,11 +200,19 @@ module ShopifyAPI
|
|
200
200
|
|
201
201
|
sig do
|
202
202
|
params(
|
203
|
+
created_at_min: T.untyped,
|
204
|
+
created_at_max: T.untyped,
|
205
|
+
updated_at_min: T.untyped,
|
206
|
+
updated_at_max: T.untyped,
|
203
207
|
session: Auth::Session,
|
204
208
|
kwargs: T.untyped
|
205
209
|
).returns(T.untyped)
|
206
210
|
end
|
207
211
|
def count(
|
212
|
+
created_at_min: nil,
|
213
|
+
created_at_max: nil,
|
214
|
+
updated_at_min: nil,
|
215
|
+
updated_at_max: nil,
|
208
216
|
session: ShopifyAPI::Context.active_session,
|
209
217
|
**kwargs
|
210
218
|
)
|
@@ -213,7 +221,7 @@ module ShopifyAPI
|
|
213
221
|
operation: :count,
|
214
222
|
session: session,
|
215
223
|
ids: {},
|
216
|
-
params: {}.merge(kwargs).compact,
|
224
|
+
params: {created_at_min: created_at_min, created_at_max: created_at_max, updated_at_min: updated_at_min, updated_at_max: updated_at_max}.merge(kwargs).compact,
|
217
225
|
body: {},
|
218
226
|
entity: nil,
|
219
227
|
)
|
@@ -245,11 +245,15 @@ module ShopifyAPI
|
|
245
245
|
|
246
246
|
sig do
|
247
247
|
params(
|
248
|
+
notify_customer: T.untyped,
|
249
|
+
tracking_info: T.untyped,
|
248
250
|
body: T.untyped,
|
249
251
|
kwargs: T.untyped
|
250
252
|
).returns(T.untyped)
|
251
253
|
end
|
252
254
|
def update_tracking(
|
255
|
+
notify_customer: nil,
|
256
|
+
tracking_info: nil,
|
253
257
|
body: nil,
|
254
258
|
**kwargs
|
255
259
|
)
|
@@ -258,7 +262,7 @@ module ShopifyAPI
|
|
258
262
|
operation: :update_tracking,
|
259
263
|
session: @session,
|
260
264
|
ids: {id: @id},
|
261
|
-
params: {}.merge(kwargs).compact,
|
265
|
+
params: {notify_customer: notify_customer, tracking_info: tracking_info}.merge(kwargs).compact,
|
262
266
|
body: body,
|
263
267
|
entity: self,
|
264
268
|
)
|
@@ -196,13 +196,13 @@ module ShopifyAPI
|
|
196
196
|
|
197
197
|
sig do
|
198
198
|
params(
|
199
|
-
|
199
|
+
fulfillment_order: T.untyped,
|
200
200
|
body: T.untyped,
|
201
201
|
kwargs: T.untyped
|
202
202
|
).returns(T.untyped)
|
203
203
|
end
|
204
204
|
def move(
|
205
|
-
|
205
|
+
fulfillment_order: nil,
|
206
206
|
body: nil,
|
207
207
|
**kwargs
|
208
208
|
)
|
@@ -211,7 +211,7 @@ module ShopifyAPI
|
|
211
211
|
operation: :move,
|
212
212
|
session: @session,
|
213
213
|
ids: {id: @id},
|
214
|
-
params: {
|
214
|
+
params: {fulfillment_order: fulfillment_order}.merge(kwargs).compact,
|
215
215
|
body: body,
|
216
216
|
entity: self,
|
217
217
|
)
|
@@ -43,6 +43,7 @@ module ShopifyAPI
|
|
43
43
|
@paths = T.let([
|
44
44
|
{http_method: :delete, operation: :delete, ids: [:article_id, :id], path: "articles/<article_id>/metafields/<id>.json"},
|
45
45
|
{http_method: :delete, operation: :delete, ids: [:blog_id, :id], path: "blogs/<blog_id>/metafields/<id>.json"},
|
46
|
+
{http_method: :delete, operation: :delete, ids: [:blog_id, :id], path: "blogs/<blog_id>/metafields/<id>.json"},
|
46
47
|
{http_method: :delete, operation: :delete, ids: [:collection_id, :id], path: "collections/<collection_id>/metafields/<id>.json"},
|
47
48
|
{http_method: :delete, operation: :delete, ids: [:customer_id, :id], path: "customers/<customer_id>/metafields/<id>.json"},
|
48
49
|
{http_method: :delete, operation: :delete, ids: [:draft_order_id, :id], path: "draft_orders/<draft_order_id>/metafields/<id>.json"},
|
@@ -50,18 +51,17 @@ module ShopifyAPI
|
|
50
51
|
{http_method: :delete, operation: :delete, ids: [:order_id, :id], path: "orders/<order_id>/metafields/<id>.json"},
|
51
52
|
{http_method: :delete, operation: :delete, ids: [:page_id, :id], path: "pages/<page_id>/metafields/<id>.json"},
|
52
53
|
{http_method: :delete, operation: :delete, ids: [:product_image_id, :id], path: "product_images/<product_image_id>/metafields/<id>.json"},
|
53
|
-
{http_method: :delete, operation: :delete, ids: [:product_image_id, :id], path: "product_images/<product_image_id>/metafields/<id>.json"},
|
54
54
|
{http_method: :delete, operation: :delete, ids: [:product_id, :id], path: "products/<product_id>/metafields/<id>.json"},
|
55
55
|
{http_method: :delete, operation: :delete, ids: [:variant_id, :id], path: "variants/<variant_id>/metafields/<id>.json"},
|
56
56
|
{http_method: :get, operation: :count, ids: [:article_id], path: "articles/<article_id>/metafields/count.json"},
|
57
57
|
{http_method: :get, operation: :count, ids: [:blog_id], path: "blogs/<blog_id>/metafields/count.json"},
|
58
|
+
{http_method: :get, operation: :count, ids: [:blog_id], path: "blogs/<blog_id>/metafields/count.json"},
|
58
59
|
{http_method: :get, operation: :count, ids: [:collection_id], path: "collections/<collection_id>/metafields/count.json"},
|
59
60
|
{http_method: :get, operation: :count, ids: [:customer_id], path: "customers/<customer_id>/metafields/count.json"},
|
60
61
|
{http_method: :get, operation: :count, ids: [:draft_order_id], path: "draft_orders/<draft_order_id>/metafields/count.json"},
|
61
62
|
{http_method: :get, operation: :count, ids: [], path: "metafields/count.json"},
|
62
63
|
{http_method: :get, operation: :count, ids: [:order_id], path: "orders/<order_id>/metafields/count.json"},
|
63
64
|
{http_method: :get, operation: :count, ids: [:page_id], path: "pages/<page_id>/metafields/count.json"},
|
64
|
-
{http_method: :get, operation: :count, ids: [:page_id], path: "pages/<page_id>/metafields/count.json"},
|
65
65
|
{http_method: :get, operation: :count, ids: [:product_image_id], path: "product_images/<product_image_id>/metafields/count.json"},
|
66
66
|
{http_method: :get, operation: :count, ids: [:product_id], path: "products/<product_id>/metafields/count.json"},
|
67
67
|
{http_method: :get, operation: :count, ids: [:variant_id], path: "variants/<variant_id>/metafields/count.json"},
|
@@ -70,6 +70,7 @@ module ShopifyAPI
|
|
70
70
|
{http_method: :get, operation: :get, ids: [:blog_id], path: "blogs/<blog_id>/metafields.json"},
|
71
71
|
{http_method: :get, operation: :get, ids: [:blog_id], path: "blogs/<blog_id>/metafields.json"},
|
72
72
|
{http_method: :get, operation: :get, ids: [:blog_id, :id], path: "blogs/<blog_id>/metafields/<id>.json"},
|
73
|
+
{http_method: :get, operation: :get, ids: [:blog_id, :id], path: "blogs/<blog_id>/metafields/<id>.json"},
|
73
74
|
{http_method: :get, operation: :get, ids: [:collection_id], path: "collections/<collection_id>/metafields.json"},
|
74
75
|
{http_method: :get, operation: :get, ids: [:collection_id, :id], path: "collections/<collection_id>/metafields/<id>.json"},
|
75
76
|
{http_method: :get, operation: :get, ids: [:customer_id], path: "customers/<customer_id>/metafields.json"},
|
@@ -88,9 +89,9 @@ module ShopifyAPI
|
|
88
89
|
{http_method: :get, operation: :get, ids: [:product_id, :id], path: "products/<product_id>/metafields/<id>.json"},
|
89
90
|
{http_method: :get, operation: :get, ids: [:variant_id], path: "variants/<variant_id>/metafields.json"},
|
90
91
|
{http_method: :get, operation: :get, ids: [:variant_id, :id], path: "variants/<variant_id>/metafields/<id>.json"},
|
91
|
-
{http_method: :get, operation: :get, ids: [:variant_id, :id], path: "variants/<variant_id>/metafields/<id>.json"},
|
92
92
|
{http_method: :post, operation: :post, ids: [:article_id], path: "articles/<article_id>/metafields.json"},
|
93
93
|
{http_method: :post, operation: :post, ids: [:blog_id], path: "blogs/<blog_id>/metafields.json"},
|
94
|
+
{http_method: :post, operation: :post, ids: [:blog_id], path: "blogs/<blog_id>/metafields.json"},
|
94
95
|
{http_method: :post, operation: :post, ids: [:collection_id], path: "collections/<collection_id>/metafields.json"},
|
95
96
|
{http_method: :post, operation: :post, ids: [:customer_id], path: "customers/<customer_id>/metafields.json"},
|
96
97
|
{http_method: :post, operation: :post, ids: [:draft_order_id], path: "draft_orders/<draft_order_id>/metafields.json"},
|
@@ -102,6 +103,7 @@ module ShopifyAPI
|
|
102
103
|
{http_method: :post, operation: :post, ids: [:variant_id], path: "variants/<variant_id>/metafields.json"},
|
103
104
|
{http_method: :put, operation: :put, ids: [:article_id, :id], path: "articles/<article_id>/metafields/<id>.json"},
|
104
105
|
{http_method: :put, operation: :put, ids: [:blog_id, :id], path: "blogs/<blog_id>/metafields/<id>.json"},
|
106
|
+
{http_method: :put, operation: :put, ids: [:blog_id, :id], path: "blogs/<blog_id>/metafields/<id>.json"},
|
105
107
|
{http_method: :put, operation: :put, ids: [:collection_id, :id], path: "collections/<collection_id>/metafields/<id>.json"},
|
106
108
|
{http_method: :put, operation: :put, ids: [:customer_id, :id], path: "customers/<customer_id>/metafields/<id>.json"},
|
107
109
|
{http_method: :put, operation: :put, ids: [:draft_order_id, :id], path: "draft_orders/<draft_order_id>/metafields/<id>.json"},
|
@@ -200,11 +200,19 @@ module ShopifyAPI
|
|
200
200
|
|
201
201
|
sig do
|
202
202
|
params(
|
203
|
+
created_at_min: T.untyped,
|
204
|
+
created_at_max: T.untyped,
|
205
|
+
updated_at_min: T.untyped,
|
206
|
+
updated_at_max: T.untyped,
|
203
207
|
session: Auth::Session,
|
204
208
|
kwargs: T.untyped
|
205
209
|
).returns(T.untyped)
|
206
210
|
end
|
207
211
|
def count(
|
212
|
+
created_at_min: nil,
|
213
|
+
created_at_max: nil,
|
214
|
+
updated_at_min: nil,
|
215
|
+
updated_at_max: nil,
|
208
216
|
session: ShopifyAPI::Context.active_session,
|
209
217
|
**kwargs
|
210
218
|
)
|
@@ -213,7 +221,7 @@ module ShopifyAPI
|
|
213
221
|
operation: :count,
|
214
222
|
session: session,
|
215
223
|
ids: {},
|
216
|
-
params: {}.merge(kwargs).compact,
|
224
|
+
params: {created_at_min: created_at_min, created_at_max: created_at_max, updated_at_min: updated_at_min, updated_at_max: updated_at_max}.merge(kwargs).compact,
|
217
225
|
body: {},
|
218
226
|
entity: nil,
|
219
227
|
)
|
@@ -198,11 +198,15 @@ module ShopifyAPI
|
|
198
198
|
|
199
199
|
sig do
|
200
200
|
params(
|
201
|
+
notify_customer: T.untyped,
|
202
|
+
tracking_info: T.untyped,
|
201
203
|
body: T.untyped,
|
202
204
|
kwargs: T.untyped
|
203
205
|
).returns(T.untyped)
|
204
206
|
end
|
205
207
|
def update_tracking(
|
208
|
+
notify_customer: nil,
|
209
|
+
tracking_info: nil,
|
206
210
|
body: nil,
|
207
211
|
**kwargs
|
208
212
|
)
|
@@ -211,7 +215,7 @@ module ShopifyAPI
|
|
211
215
|
operation: :update_tracking,
|
212
216
|
session: @session,
|
213
217
|
ids: {id: @id},
|
214
|
-
params: {}.merge(kwargs).compact,
|
218
|
+
params: {notify_customer: notify_customer, tracking_info: tracking_info}.merge(kwargs).compact,
|
215
219
|
body: body,
|
216
220
|
entity: self,
|
217
221
|
)
|
@@ -197,13 +197,13 @@ module ShopifyAPI
|
|
197
197
|
|
198
198
|
sig do
|
199
199
|
params(
|
200
|
-
|
200
|
+
fulfillment_order: T.untyped,
|
201
201
|
body: T.untyped,
|
202
202
|
kwargs: T.untyped
|
203
203
|
).returns(T.untyped)
|
204
204
|
end
|
205
205
|
def move(
|
206
|
-
|
206
|
+
fulfillment_order: nil,
|
207
207
|
body: nil,
|
208
208
|
**kwargs
|
209
209
|
)
|
@@ -212,7 +212,7 @@ module ShopifyAPI
|
|
212
212
|
operation: :move,
|
213
213
|
session: @session,
|
214
214
|
ids: {id: @id},
|
215
|
-
params: {
|
215
|
+
params: {fulfillment_order: fulfillment_order}.merge(kwargs).compact,
|
216
216
|
body: body,
|
217
217
|
entity: self,
|
218
218
|
)
|
@@ -43,6 +43,7 @@ module ShopifyAPI
|
|
43
43
|
@paths = T.let([
|
44
44
|
{http_method: :delete, operation: :delete, ids: [:article_id, :id], path: "articles/<article_id>/metafields/<id>.json"},
|
45
45
|
{http_method: :delete, operation: :delete, ids: [:blog_id, :id], path: "blogs/<blog_id>/metafields/<id>.json"},
|
46
|
+
{http_method: :delete, operation: :delete, ids: [:blog_id, :id], path: "blogs/<blog_id>/metafields/<id>.json"},
|
46
47
|
{http_method: :delete, operation: :delete, ids: [:collection_id, :id], path: "collections/<collection_id>/metafields/<id>.json"},
|
47
48
|
{http_method: :delete, operation: :delete, ids: [:customer_id, :id], path: "customers/<customer_id>/metafields/<id>.json"},
|
48
49
|
{http_method: :delete, operation: :delete, ids: [:draft_order_id, :id], path: "draft_orders/<draft_order_id>/metafields/<id>.json"},
|
@@ -50,18 +51,17 @@ module ShopifyAPI
|
|
50
51
|
{http_method: :delete, operation: :delete, ids: [:order_id, :id], path: "orders/<order_id>/metafields/<id>.json"},
|
51
52
|
{http_method: :delete, operation: :delete, ids: [:page_id, :id], path: "pages/<page_id>/metafields/<id>.json"},
|
52
53
|
{http_method: :delete, operation: :delete, ids: [:product_image_id, :id], path: "product_images/<product_image_id>/metafields/<id>.json"},
|
53
|
-
{http_method: :delete, operation: :delete, ids: [:product_image_id, :id], path: "product_images/<product_image_id>/metafields/<id>.json"},
|
54
54
|
{http_method: :delete, operation: :delete, ids: [:product_id, :id], path: "products/<product_id>/metafields/<id>.json"},
|
55
55
|
{http_method: :delete, operation: :delete, ids: [:variant_id, :id], path: "variants/<variant_id>/metafields/<id>.json"},
|
56
56
|
{http_method: :get, operation: :count, ids: [:article_id], path: "articles/<article_id>/metafields/count.json"},
|
57
57
|
{http_method: :get, operation: :count, ids: [:blog_id], path: "blogs/<blog_id>/metafields/count.json"},
|
58
|
+
{http_method: :get, operation: :count, ids: [:blog_id], path: "blogs/<blog_id>/metafields/count.json"},
|
58
59
|
{http_method: :get, operation: :count, ids: [:collection_id], path: "collections/<collection_id>/metafields/count.json"},
|
59
60
|
{http_method: :get, operation: :count, ids: [:customer_id], path: "customers/<customer_id>/metafields/count.json"},
|
60
61
|
{http_method: :get, operation: :count, ids: [:draft_order_id], path: "draft_orders/<draft_order_id>/metafields/count.json"},
|
61
62
|
{http_method: :get, operation: :count, ids: [], path: "metafields/count.json"},
|
62
63
|
{http_method: :get, operation: :count, ids: [:order_id], path: "orders/<order_id>/metafields/count.json"},
|
63
64
|
{http_method: :get, operation: :count, ids: [:page_id], path: "pages/<page_id>/metafields/count.json"},
|
64
|
-
{http_method: :get, operation: :count, ids: [:page_id], path: "pages/<page_id>/metafields/count.json"},
|
65
65
|
{http_method: :get, operation: :count, ids: [:product_image_id], path: "product_images/<product_image_id>/metafields/count.json"},
|
66
66
|
{http_method: :get, operation: :count, ids: [:product_id], path: "products/<product_id>/metafields/count.json"},
|
67
67
|
{http_method: :get, operation: :count, ids: [:variant_id], path: "variants/<variant_id>/metafields/count.json"},
|
@@ -70,6 +70,7 @@ module ShopifyAPI
|
|
70
70
|
{http_method: :get, operation: :get, ids: [:blog_id], path: "blogs/<blog_id>/metafields.json"},
|
71
71
|
{http_method: :get, operation: :get, ids: [:blog_id], path: "blogs/<blog_id>/metafields.json"},
|
72
72
|
{http_method: :get, operation: :get, ids: [:blog_id, :id], path: "blogs/<blog_id>/metafields/<id>.json"},
|
73
|
+
{http_method: :get, operation: :get, ids: [:blog_id, :id], path: "blogs/<blog_id>/metafields/<id>.json"},
|
73
74
|
{http_method: :get, operation: :get, ids: [:collection_id], path: "collections/<collection_id>/metafields.json"},
|
74
75
|
{http_method: :get, operation: :get, ids: [:collection_id, :id], path: "collections/<collection_id>/metafields/<id>.json"},
|
75
76
|
{http_method: :get, operation: :get, ids: [:customer_id], path: "customers/<customer_id>/metafields.json"},
|
@@ -88,9 +89,9 @@ module ShopifyAPI
|
|
88
89
|
{http_method: :get, operation: :get, ids: [:product_id, :id], path: "products/<product_id>/metafields/<id>.json"},
|
89
90
|
{http_method: :get, operation: :get, ids: [:variant_id], path: "variants/<variant_id>/metafields.json"},
|
90
91
|
{http_method: :get, operation: :get, ids: [:variant_id, :id], path: "variants/<variant_id>/metafields/<id>.json"},
|
91
|
-
{http_method: :get, operation: :get, ids: [:variant_id, :id], path: "variants/<variant_id>/metafields/<id>.json"},
|
92
92
|
{http_method: :post, operation: :post, ids: [:article_id], path: "articles/<article_id>/metafields.json"},
|
93
93
|
{http_method: :post, operation: :post, ids: [:blog_id], path: "blogs/<blog_id>/metafields.json"},
|
94
|
+
{http_method: :post, operation: :post, ids: [:blog_id], path: "blogs/<blog_id>/metafields.json"},
|
94
95
|
{http_method: :post, operation: :post, ids: [:collection_id], path: "collections/<collection_id>/metafields.json"},
|
95
96
|
{http_method: :post, operation: :post, ids: [:customer_id], path: "customers/<customer_id>/metafields.json"},
|
96
97
|
{http_method: :post, operation: :post, ids: [:draft_order_id], path: "draft_orders/<draft_order_id>/metafields.json"},
|
@@ -102,6 +103,7 @@ module ShopifyAPI
|
|
102
103
|
{http_method: :post, operation: :post, ids: [:variant_id], path: "variants/<variant_id>/metafields.json"},
|
103
104
|
{http_method: :put, operation: :put, ids: [:article_id, :id], path: "articles/<article_id>/metafields/<id>.json"},
|
104
105
|
{http_method: :put, operation: :put, ids: [:blog_id, :id], path: "blogs/<blog_id>/metafields/<id>.json"},
|
106
|
+
{http_method: :put, operation: :put, ids: [:blog_id, :id], path: "blogs/<blog_id>/metafields/<id>.json"},
|
105
107
|
{http_method: :put, operation: :put, ids: [:collection_id, :id], path: "collections/<collection_id>/metafields/<id>.json"},
|
106
108
|
{http_method: :put, operation: :put, ids: [:customer_id, :id], path: "customers/<customer_id>/metafields/<id>.json"},
|
107
109
|
{http_method: :put, operation: :put, ids: [:draft_order_id, :id], path: "draft_orders/<draft_order_id>/metafields/<id>.json"},
|