shopify_api 12.2.1 → 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 +13 -0
- data/Gemfile.lock +17 -17
- data/README.md +9 -10
- data/docs/getting_started.md +1 -1
- data/docs/usage/oauth.md +3 -4
- data/lib/shopify_api/admin_versions.rb +2 -1
- data/lib/shopify_api/auth/oauth.rb +1 -4
- data/lib/shopify_api/clients/http_client.rb +3 -3
- data/lib/shopify_api/context.rb +38 -8
- data/lib/shopify_api/errors/feature_deprecated_error.rb +9 -0
- data/lib/shopify_api/errors/http_response_error.rb +7 -3
- data/lib/shopify_api/errors/log_level_not_found_error.rb +9 -0
- data/lib/shopify_api/logger.rb +82 -0
- 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/utils/session_utils.rb +38 -21
- data/lib/shopify_api/version.rb +1 -1
- data/shopify_api.gemspec +2 -2
- metadata +100 -16
- data/.github/ISSUE_TEMPLATE.md +0 -35
@@ -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"},
|
@@ -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"},
|