shopify_api 12.2.1 → 12.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. checksums.yaml +4 -4
  2. data/.github/ISSUE_TEMPLATE/BUG_REPORT.md +40 -0
  3. data/.github/ISSUE_TEMPLATE/ENHANCEMENT.md +9 -0
  4. data/.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md +9 -0
  5. data/.github/workflows/build.yml +0 -3
  6. data/.github/workflows/stale.yml +1 -0
  7. data/CHANGELOG.md +13 -0
  8. data/Gemfile.lock +17 -17
  9. data/README.md +9 -10
  10. data/docs/getting_started.md +1 -1
  11. data/docs/usage/oauth.md +3 -4
  12. data/lib/shopify_api/admin_versions.rb +2 -1
  13. data/lib/shopify_api/auth/oauth.rb +1 -4
  14. data/lib/shopify_api/clients/http_client.rb +3 -3
  15. data/lib/shopify_api/context.rb +38 -8
  16. data/lib/shopify_api/errors/feature_deprecated_error.rb +9 -0
  17. data/lib/shopify_api/errors/http_response_error.rb +7 -3
  18. data/lib/shopify_api/errors/log_level_not_found_error.rb +9 -0
  19. data/lib/shopify_api/logger.rb +82 -0
  20. data/lib/shopify_api/rest/base.rb +11 -4
  21. data/lib/shopify_api/rest/resources/2022_01/assigned_fulfillment_order.rb +7 -0
  22. data/lib/shopify_api/rest/resources/2022_01/customer.rb +9 -1
  23. data/lib/shopify_api/rest/resources/2022_01/fulfillment.rb +5 -1
  24. data/lib/shopify_api/rest/resources/2022_01/fulfillment_order.rb +3 -3
  25. data/lib/shopify_api/rest/resources/2022_04/assigned_fulfillment_order.rb +7 -0
  26. data/lib/shopify_api/rest/resources/2022_04/customer.rb +9 -1
  27. data/lib/shopify_api/rest/resources/2022_04/fulfillment.rb +5 -1
  28. data/lib/shopify_api/rest/resources/2022_04/fulfillment_order.rb +3 -3
  29. data/lib/shopify_api/rest/resources/2022_04/metafield.rb +5 -3
  30. data/lib/shopify_api/rest/resources/2022_07/assigned_fulfillment_order.rb +7 -0
  31. data/lib/shopify_api/rest/resources/2022_07/customer.rb +9 -1
  32. data/lib/shopify_api/rest/resources/2022_07/fulfillment.rb +5 -1
  33. data/lib/shopify_api/rest/resources/2022_07/fulfillment_order.rb +3 -3
  34. data/lib/shopify_api/rest/resources/2022_07/metafield.rb +5 -3
  35. data/lib/shopify_api/rest/resources/2022_10/assigned_fulfillment_order.rb +7 -0
  36. data/lib/shopify_api/rest/resources/2022_10/customer.rb +9 -1
  37. data/lib/shopify_api/rest/resources/2022_10/fulfillment.rb +5 -1
  38. data/lib/shopify_api/rest/resources/2022_10/fulfillment_order.rb +3 -3
  39. data/lib/shopify_api/rest/resources/2022_10/metafield.rb +5 -3
  40. data/lib/shopify_api/rest/resources/2023_01/abandoned_checkout.rb +190 -0
  41. data/lib/shopify_api/rest/resources/2023_01/access_scope.rb +58 -0
  42. data/lib/shopify_api/rest/resources/2023_01/apple_pay_certificate.rb +105 -0
  43. data/lib/shopify_api/rest/resources/2023_01/application_charge.rb +104 -0
  44. data/lib/shopify_api/rest/resources/2023_01/application_credit.rb +87 -0
  45. data/lib/shopify_api/rest/resources/2023_01/article.rb +265 -0
  46. data/lib/shopify_api/rest/resources/2023_01/asset.rb +118 -0
  47. data/lib/shopify_api/rest/resources/2023_01/assigned_fulfillment_order.rb +86 -0
  48. data/lib/shopify_api/rest/resources/2023_01/balance.rb +50 -0
  49. data/lib/shopify_api/rest/resources/2023_01/blog.rb +162 -0
  50. data/lib/shopify_api/rest/resources/2023_01/cancellation_request.rb +83 -0
  51. data/lib/shopify_api/rest/resources/2023_01/carrier_service.rb +113 -0
  52. data/lib/shopify_api/rest/resources/2023_01/checkout.rb +209 -0
  53. data/lib/shopify_api/rest/resources/2023_01/collect.rb +142 -0
  54. data/lib/shopify_api/rest/resources/2023_01/collection.rb +110 -0
  55. data/lib/shopify_api/rest/resources/2023_01/collection_listing.rb +155 -0
  56. data/lib/shopify_api/rest/resources/2023_01/comment.rb +283 -0
  57. data/lib/shopify_api/rest/resources/2023_01/country.rb +137 -0
  58. data/lib/shopify_api/rest/resources/2023_01/currency.rb +57 -0
  59. data/lib/shopify_api/rest/resources/2023_01/custom_collection.rb +187 -0
  60. data/lib/shopify_api/rest/resources/2023_01/customer.rb +329 -0
  61. data/lib/shopify_api/rest/resources/2023_01/customer_address.rb +201 -0
  62. data/lib/shopify_api/rest/resources/2023_01/customer_saved_search.rb +169 -0
  63. data/lib/shopify_api/rest/resources/2023_01/deprecated_api_call.rb +57 -0
  64. data/lib/shopify_api/rest/resources/2023_01/discount_code.rb +219 -0
  65. data/lib/shopify_api/rest/resources/2023_01/dispute.rb +111 -0
  66. data/lib/shopify_api/rest/resources/2023_01/draft_order.rb +275 -0
  67. data/lib/shopify_api/rest/resources/2023_01/event.rb +148 -0
  68. data/lib/shopify_api/rest/resources/2023_01/fulfillment.rb +225 -0
  69. data/lib/shopify_api/rest/resources/2023_01/fulfillment_event.rb +166 -0
  70. data/lib/shopify_api/rest/resources/2023_01/fulfillment_order.rb +316 -0
  71. data/lib/shopify_api/rest/resources/2023_01/fulfillment_request.rb +87 -0
  72. data/lib/shopify_api/rest/resources/2023_01/fulfillment_service.rb +130 -0
  73. data/lib/shopify_api/rest/resources/2023_01/gift_card.rb +215 -0
  74. data/lib/shopify_api/rest/resources/2023_01/gift_card_adjustment.rb +118 -0
  75. data/lib/shopify_api/rest/resources/2023_01/image.rb +157 -0
  76. data/lib/shopify_api/rest/resources/2023_01/inventory_item.rb +108 -0
  77. data/lib/shopify_api/rest/resources/2023_01/inventory_level.rb +179 -0
  78. data/lib/shopify_api/rest/resources/2023_01/location.rb +167 -0
  79. data/lib/shopify_api/rest/resources/2023_01/locations_for_move.rb +56 -0
  80. data/lib/shopify_api/rest/resources/2023_01/marketing_event.rb +209 -0
  81. data/lib/shopify_api/rest/resources/2023_01/metafield.rb +344 -0
  82. data/lib/shopify_api/rest/resources/2023_01/mobile_platform_application.rb +110 -0
  83. data/lib/shopify_api/rest/resources/2023_01/order.rb +479 -0
  84. data/lib/shopify_api/rest/resources/2023_01/order_risk.rb +135 -0
  85. data/lib/shopify_api/rest/resources/2023_01/page.rb +194 -0
  86. data/lib/shopify_api/rest/resources/2023_01/payment.rb +140 -0
  87. data/lib/shopify_api/rest/resources/2023_01/payment_gateway.rb +143 -0
  88. data/lib/shopify_api/rest/resources/2023_01/payment_transaction.rb +107 -0
  89. data/lib/shopify_api/rest/resources/2023_01/payout.rb +97 -0
  90. data/lib/shopify_api/rest/resources/2023_01/policy.rb +69 -0
  91. data/lib/shopify_api/rest/resources/2023_01/price_rule.rb +223 -0
  92. data/lib/shopify_api/rest/resources/2023_01/product.rb +223 -0
  93. data/lib/shopify_api/rest/resources/2023_01/product_listing.rb +196 -0
  94. data/lib/shopify_api/rest/resources/2023_01/product_resource_feedback.rb +88 -0
  95. data/lib/shopify_api/rest/resources/2023_01/province.rb +132 -0
  96. data/lib/shopify_api/rest/resources/2023_01/recurring_application_charge.rb +167 -0
  97. data/lib/shopify_api/rest/resources/2023_01/redirect.rb +139 -0
  98. data/lib/shopify_api/rest/resources/2023_01/refund.rb +151 -0
  99. data/lib/shopify_api/rest/resources/2023_01/report.rb +121 -0
  100. data/lib/shopify_api/rest/resources/2023_01/resource_feedback.rb +73 -0
  101. data/lib/shopify_api/rest/resources/2023_01/script_tag.rb +155 -0
  102. data/lib/shopify_api/rest/resources/2023_01/shipping_zone.rb +83 -0
  103. data/lib/shopify_api/rest/resources/2023_01/shop.rb +221 -0
  104. data/lib/shopify_api/rest/resources/2023_01/smart_collection.rb +216 -0
  105. data/lib/shopify_api/rest/resources/2023_01/storefront_access_token.rb +87 -0
  106. data/lib/shopify_api/rest/resources/2023_01/tender_transaction.rb +93 -0
  107. data/lib/shopify_api/rest/resources/2023_01/theme.rb +120 -0
  108. data/lib/shopify_api/rest/resources/2023_01/transaction.rb +181 -0
  109. data/lib/shopify_api/rest/resources/2023_01/usage_charge.rb +97 -0
  110. data/lib/shopify_api/rest/resources/2023_01/user.rb +138 -0
  111. data/lib/shopify_api/rest/resources/2023_01/variant.rb +212 -0
  112. data/lib/shopify_api/rest/resources/2023_01/webhook.rb +168 -0
  113. data/lib/shopify_api/utils/session_utils.rb +38 -21
  114. data/lib/shopify_api/version.rb +1 -1
  115. data/shopify_api.gemspec +2 -2
  116. metadata +100 -16
  117. 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
- new_location_id: T.untyped,
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
- new_location_id: nil,
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: {new_location_id: new_location_id}.merge(kwargs).compact,
211
+ params: {fulfillment_order: fulfillment_order}.merge(kwargs).compact,
212
212
  body: body,
213
213
  entity: self,
214
214
  )
@@ -50,6 +50,13 @@ module ShopifyAPI
50
50
  attr_reader :status
51
51
 
52
52
  class << self
53
+ sig do
54
+ returns(String)
55
+ end
56
+ def json_response_body_name()
57
+ "fulfillment_order"
58
+ end
59
+
53
60
  sig do
54
61
  params(
55
62
  assignment_status: T.untyped,
@@ -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
- new_location_id: T.untyped,
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
- new_location_id: nil,
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: {new_location_id: new_location_id}.merge(kwargs).compact,
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"},
@@ -50,6 +50,13 @@ module ShopifyAPI
50
50
  attr_reader :status
51
51
 
52
52
  class << self
53
+ sig do
54
+ returns(String)
55
+ end
56
+ def json_response_body_name()
57
+ "fulfillment_order"
58
+ end
59
+
53
60
  sig do
54
61
  params(
55
62
  assignment_status: T.untyped,
@@ -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
- new_location_id: T.untyped,
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
- new_location_id: nil,
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: {new_location_id: new_location_id}.merge(kwargs).compact,
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"},
@@ -50,6 +50,13 @@ module ShopifyAPI
50
50
  attr_reader :status
51
51
 
52
52
  class << self
53
+ sig do
54
+ returns(String)
55
+ end
56
+ def json_response_body_name()
57
+ "fulfillment_order"
58
+ end
59
+
53
60
  sig do
54
61
  params(
55
62
  assignment_status: T.untyped,
@@ -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
- new_location_id: T.untyped,
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
- new_location_id: nil,
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: {new_location_id: new_location_id}.merge(kwargs).compact,
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"},