shopify_api 10.0.3 → 10.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (306) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/Gemfile.lock +7 -7
  4. data/README.md +1 -1
  5. data/docs/usage/graphql.md +1 -1
  6. data/lib/shopify_api/admin_versions.rb +1 -1
  7. data/lib/shopify_api/rest/base.rb +33 -6
  8. data/lib/shopify_api/rest/resources/2021_07/abandoned_checkout.rb +4 -0
  9. data/lib/shopify_api/rest/resources/2021_07/access_scope.rb +4 -0
  10. data/lib/shopify_api/rest/resources/2021_07/android_pay_key.rb +4 -0
  11. data/lib/shopify_api/rest/resources/2021_07/apple_pay_certificate.rb +4 -0
  12. data/lib/shopify_api/rest/resources/2021_07/application_charge.rb +4 -0
  13. data/lib/shopify_api/rest/resources/2021_07/application_credit.rb +4 -0
  14. data/lib/shopify_api/rest/resources/2021_07/article.rb +4 -0
  15. data/lib/shopify_api/rest/resources/2021_07/asset.rb +4 -0
  16. data/lib/shopify_api/rest/resources/2021_07/assigned_fulfillment_order.rb +4 -0
  17. data/lib/shopify_api/rest/resources/2021_07/balance.rb +4 -0
  18. data/lib/shopify_api/rest/resources/2021_07/blog.rb +4 -0
  19. data/lib/shopify_api/rest/resources/2021_07/cancellation_request.rb +4 -0
  20. data/lib/shopify_api/rest/resources/2021_07/carrier_service.rb +4 -0
  21. data/lib/shopify_api/rest/resources/2021_07/checkout.rb +4 -0
  22. data/lib/shopify_api/rest/resources/2021_07/collect.rb +4 -0
  23. data/lib/shopify_api/rest/resources/2021_07/collection.rb +4 -0
  24. data/lib/shopify_api/rest/resources/2021_07/collection_listing.rb +4 -0
  25. data/lib/shopify_api/rest/resources/2021_07/comment.rb +4 -0
  26. data/lib/shopify_api/rest/resources/2021_07/country.rb +4 -0
  27. data/lib/shopify_api/rest/resources/2021_07/currency.rb +4 -0
  28. data/lib/shopify_api/rest/resources/2021_07/custom_collection.rb +4 -0
  29. data/lib/shopify_api/rest/resources/2021_07/customer.rb +4 -0
  30. data/lib/shopify_api/rest/resources/2021_07/customer_address.rb +4 -0
  31. data/lib/shopify_api/rest/resources/2021_07/customer_saved_search.rb +4 -0
  32. data/lib/shopify_api/rest/resources/2021_07/deprecated_api_call.rb +4 -0
  33. data/lib/shopify_api/rest/resources/2021_07/discount_code.rb +4 -0
  34. data/lib/shopify_api/rest/resources/2021_07/dispute.rb +4 -0
  35. data/lib/shopify_api/rest/resources/2021_07/draft_order.rb +4 -0
  36. data/lib/shopify_api/rest/resources/2021_07/event.rb +4 -0
  37. data/lib/shopify_api/rest/resources/2021_07/fulfillment.rb +75 -1
  38. data/lib/shopify_api/rest/resources/2021_07/fulfillment_event.rb +4 -0
  39. data/lib/shopify_api/rest/resources/2021_07/fulfillment_order.rb +4 -0
  40. data/lib/shopify_api/rest/resources/2021_07/fulfillment_request.rb +4 -0
  41. data/lib/shopify_api/rest/resources/2021_07/fulfillment_service.rb +4 -0
  42. data/lib/shopify_api/rest/resources/2021_07/gift_card.rb +4 -0
  43. data/lib/shopify_api/rest/resources/2021_07/gift_card_adjustment.rb +4 -0
  44. data/lib/shopify_api/rest/resources/2021_07/image.rb +4 -0
  45. data/lib/shopify_api/rest/resources/2021_07/inventory_item.rb +4 -0
  46. data/lib/shopify_api/rest/resources/2021_07/inventory_level.rb +4 -0
  47. data/lib/shopify_api/rest/resources/2021_07/location.rb +4 -0
  48. data/lib/shopify_api/rest/resources/2021_07/locations_for_move.rb +4 -0
  49. data/lib/shopify_api/rest/resources/2021_07/marketing_event.rb +4 -0
  50. data/lib/shopify_api/rest/resources/2021_07/metafield.rb +4 -0
  51. data/lib/shopify_api/rest/resources/2021_07/mobile_platform_application.rb +4 -0
  52. data/lib/shopify_api/rest/resources/2021_07/order.rb +4 -0
  53. data/lib/shopify_api/rest/resources/2021_07/order_risk.rb +4 -0
  54. data/lib/shopify_api/rest/resources/2021_07/page.rb +4 -0
  55. data/lib/shopify_api/rest/resources/2021_07/payment.rb +4 -0
  56. data/lib/shopify_api/rest/resources/2021_07/payment_gateway.rb +4 -0
  57. data/lib/shopify_api/rest/resources/2021_07/payment_transaction.rb +4 -0
  58. data/lib/shopify_api/rest/resources/2021_07/payout.rb +4 -0
  59. data/lib/shopify_api/rest/resources/2021_07/policy.rb +4 -0
  60. data/lib/shopify_api/rest/resources/2021_07/price_rule.rb +4 -0
  61. data/lib/shopify_api/rest/resources/2021_07/product.rb +4 -0
  62. data/lib/shopify_api/rest/resources/2021_07/product_listing.rb +4 -0
  63. data/lib/shopify_api/rest/resources/2021_07/product_resource_feedback.rb +4 -0
  64. data/lib/shopify_api/rest/resources/2021_07/province.rb +4 -0
  65. data/lib/shopify_api/rest/resources/2021_07/recurring_application_charge.rb +4 -0
  66. data/lib/shopify_api/rest/resources/2021_07/redirect.rb +4 -0
  67. data/lib/shopify_api/rest/resources/2021_07/refund.rb +4 -0
  68. data/lib/shopify_api/rest/resources/2021_07/report.rb +4 -0
  69. data/lib/shopify_api/rest/resources/2021_07/resource_feedback.rb +4 -0
  70. data/lib/shopify_api/rest/resources/2021_07/script_tag.rb +4 -0
  71. data/lib/shopify_api/rest/resources/2021_07/shipping_zone.rb +4 -0
  72. data/lib/shopify_api/rest/resources/2021_07/shop.rb +4 -0
  73. data/lib/shopify_api/rest/resources/2021_07/smart_collection.rb +4 -0
  74. data/lib/shopify_api/rest/resources/2021_07/storefront_access_token.rb +4 -0
  75. data/lib/shopify_api/rest/resources/2021_07/tender_transaction.rb +4 -0
  76. data/lib/shopify_api/rest/resources/2021_07/theme.rb +4 -0
  77. data/lib/shopify_api/rest/resources/2021_07/transaction.rb +4 -0
  78. data/lib/shopify_api/rest/resources/2021_07/usage_charge.rb +4 -0
  79. data/lib/shopify_api/rest/resources/2021_07/user.rb +4 -0
  80. data/lib/shopify_api/rest/resources/2021_07/variant.rb +4 -0
  81. data/lib/shopify_api/rest/resources/2021_07/webhook.rb +4 -0
  82. data/lib/shopify_api/rest/resources/2021_10/abandoned_checkout.rb +4 -0
  83. data/lib/shopify_api/rest/resources/2021_10/access_scope.rb +4 -0
  84. data/lib/shopify_api/rest/resources/2021_10/android_pay_key.rb +4 -0
  85. data/lib/shopify_api/rest/resources/2021_10/apple_pay_certificate.rb +4 -0
  86. data/lib/shopify_api/rest/resources/2021_10/application_charge.rb +4 -0
  87. data/lib/shopify_api/rest/resources/2021_10/application_credit.rb +4 -0
  88. data/lib/shopify_api/rest/resources/2021_10/article.rb +4 -0
  89. data/lib/shopify_api/rest/resources/2021_10/asset.rb +4 -0
  90. data/lib/shopify_api/rest/resources/2021_10/assigned_fulfillment_order.rb +4 -0
  91. data/lib/shopify_api/rest/resources/2021_10/balance.rb +4 -0
  92. data/lib/shopify_api/rest/resources/2021_10/blog.rb +4 -0
  93. data/lib/shopify_api/rest/resources/2021_10/cancellation_request.rb +4 -0
  94. data/lib/shopify_api/rest/resources/2021_10/carrier_service.rb +4 -0
  95. data/lib/shopify_api/rest/resources/2021_10/checkout.rb +4 -0
  96. data/lib/shopify_api/rest/resources/2021_10/collect.rb +4 -0
  97. data/lib/shopify_api/rest/resources/2021_10/collection.rb +4 -0
  98. data/lib/shopify_api/rest/resources/2021_10/collection_listing.rb +4 -0
  99. data/lib/shopify_api/rest/resources/2021_10/comment.rb +4 -0
  100. data/lib/shopify_api/rest/resources/2021_10/country.rb +4 -0
  101. data/lib/shopify_api/rest/resources/2021_10/currency.rb +4 -0
  102. data/lib/shopify_api/rest/resources/2021_10/custom_collection.rb +4 -0
  103. data/lib/shopify_api/rest/resources/2021_10/customer.rb +4 -0
  104. data/lib/shopify_api/rest/resources/2021_10/customer_address.rb +4 -0
  105. data/lib/shopify_api/rest/resources/2021_10/customer_saved_search.rb +4 -0
  106. data/lib/shopify_api/rest/resources/2021_10/deprecated_api_call.rb +4 -0
  107. data/lib/shopify_api/rest/resources/2021_10/discount_code.rb +4 -0
  108. data/lib/shopify_api/rest/resources/2021_10/dispute.rb +4 -0
  109. data/lib/shopify_api/rest/resources/2021_10/draft_order.rb +4 -0
  110. data/lib/shopify_api/rest/resources/2021_10/event.rb +4 -0
  111. data/lib/shopify_api/rest/resources/2021_10/fulfillment.rb +75 -1
  112. data/lib/shopify_api/rest/resources/2021_10/fulfillment_event.rb +4 -0
  113. data/lib/shopify_api/rest/resources/2021_10/fulfillment_order.rb +4 -0
  114. data/lib/shopify_api/rest/resources/2021_10/fulfillment_request.rb +4 -0
  115. data/lib/shopify_api/rest/resources/2021_10/fulfillment_service.rb +4 -0
  116. data/lib/shopify_api/rest/resources/2021_10/gift_card.rb +4 -0
  117. data/lib/shopify_api/rest/resources/2021_10/gift_card_adjustment.rb +4 -0
  118. data/lib/shopify_api/rest/resources/2021_10/image.rb +4 -0
  119. data/lib/shopify_api/rest/resources/2021_10/inventory_item.rb +4 -0
  120. data/lib/shopify_api/rest/resources/2021_10/inventory_level.rb +4 -0
  121. data/lib/shopify_api/rest/resources/2021_10/location.rb +4 -0
  122. data/lib/shopify_api/rest/resources/2021_10/locations_for_move.rb +4 -0
  123. data/lib/shopify_api/rest/resources/2021_10/marketing_event.rb +4 -0
  124. data/lib/shopify_api/rest/resources/2021_10/metafield.rb +4 -0
  125. data/lib/shopify_api/rest/resources/2021_10/mobile_platform_application.rb +4 -0
  126. data/lib/shopify_api/rest/resources/2021_10/order.rb +4 -0
  127. data/lib/shopify_api/rest/resources/2021_10/order_risk.rb +4 -0
  128. data/lib/shopify_api/rest/resources/2021_10/page.rb +4 -0
  129. data/lib/shopify_api/rest/resources/2021_10/payment.rb +4 -0
  130. data/lib/shopify_api/rest/resources/2021_10/payment_gateway.rb +4 -0
  131. data/lib/shopify_api/rest/resources/2021_10/payment_transaction.rb +4 -0
  132. data/lib/shopify_api/rest/resources/2021_10/payout.rb +4 -0
  133. data/lib/shopify_api/rest/resources/2021_10/policy.rb +4 -0
  134. data/lib/shopify_api/rest/resources/2021_10/price_rule.rb +4 -0
  135. data/lib/shopify_api/rest/resources/2021_10/product.rb +4 -0
  136. data/lib/shopify_api/rest/resources/2021_10/product_listing.rb +4 -0
  137. data/lib/shopify_api/rest/resources/2021_10/product_resource_feedback.rb +4 -0
  138. data/lib/shopify_api/rest/resources/2021_10/province.rb +4 -0
  139. data/lib/shopify_api/rest/resources/2021_10/recurring_application_charge.rb +4 -0
  140. data/lib/shopify_api/rest/resources/2021_10/redirect.rb +4 -0
  141. data/lib/shopify_api/rest/resources/2021_10/refund.rb +4 -0
  142. data/lib/shopify_api/rest/resources/2021_10/report.rb +4 -0
  143. data/lib/shopify_api/rest/resources/2021_10/resource_feedback.rb +4 -0
  144. data/lib/shopify_api/rest/resources/2021_10/script_tag.rb +4 -0
  145. data/lib/shopify_api/rest/resources/2021_10/shipping_zone.rb +4 -0
  146. data/lib/shopify_api/rest/resources/2021_10/shop.rb +4 -0
  147. data/lib/shopify_api/rest/resources/2021_10/smart_collection.rb +4 -0
  148. data/lib/shopify_api/rest/resources/2021_10/storefront_access_token.rb +4 -0
  149. data/lib/shopify_api/rest/resources/2021_10/tender_transaction.rb +4 -0
  150. data/lib/shopify_api/rest/resources/2021_10/theme.rb +4 -0
  151. data/lib/shopify_api/rest/resources/2021_10/transaction.rb +4 -0
  152. data/lib/shopify_api/rest/resources/2021_10/usage_charge.rb +4 -0
  153. data/lib/shopify_api/rest/resources/2021_10/user.rb +4 -0
  154. data/lib/shopify_api/rest/resources/2021_10/variant.rb +4 -0
  155. data/lib/shopify_api/rest/resources/2021_10/webhook.rb +4 -0
  156. data/lib/shopify_api/rest/resources/2022_01/abandoned_checkout.rb +4 -0
  157. data/lib/shopify_api/rest/resources/2022_01/access_scope.rb +4 -0
  158. data/lib/shopify_api/rest/resources/2022_01/android_pay_key.rb +4 -0
  159. data/lib/shopify_api/rest/resources/2022_01/apple_pay_certificate.rb +4 -0
  160. data/lib/shopify_api/rest/resources/2022_01/application_charge.rb +4 -0
  161. data/lib/shopify_api/rest/resources/2022_01/application_credit.rb +4 -0
  162. data/lib/shopify_api/rest/resources/2022_01/article.rb +4 -0
  163. data/lib/shopify_api/rest/resources/2022_01/asset.rb +4 -0
  164. data/lib/shopify_api/rest/resources/2022_01/assigned_fulfillment_order.rb +4 -0
  165. data/lib/shopify_api/rest/resources/2022_01/balance.rb +4 -0
  166. data/lib/shopify_api/rest/resources/2022_01/blog.rb +4 -0
  167. data/lib/shopify_api/rest/resources/2022_01/cancellation_request.rb +4 -0
  168. data/lib/shopify_api/rest/resources/2022_01/carrier_service.rb +4 -0
  169. data/lib/shopify_api/rest/resources/2022_01/checkout.rb +4 -0
  170. data/lib/shopify_api/rest/resources/2022_01/collect.rb +4 -0
  171. data/lib/shopify_api/rest/resources/2022_01/collection.rb +4 -0
  172. data/lib/shopify_api/rest/resources/2022_01/collection_listing.rb +4 -0
  173. data/lib/shopify_api/rest/resources/2022_01/comment.rb +4 -0
  174. data/lib/shopify_api/rest/resources/2022_01/country.rb +4 -0
  175. data/lib/shopify_api/rest/resources/2022_01/currency.rb +4 -0
  176. data/lib/shopify_api/rest/resources/2022_01/custom_collection.rb +4 -0
  177. data/lib/shopify_api/rest/resources/2022_01/customer.rb +4 -0
  178. data/lib/shopify_api/rest/resources/2022_01/customer_address.rb +4 -0
  179. data/lib/shopify_api/rest/resources/2022_01/customer_saved_search.rb +4 -0
  180. data/lib/shopify_api/rest/resources/2022_01/deprecated_api_call.rb +4 -0
  181. data/lib/shopify_api/rest/resources/2022_01/discount_code.rb +4 -0
  182. data/lib/shopify_api/rest/resources/2022_01/dispute.rb +4 -0
  183. data/lib/shopify_api/rest/resources/2022_01/draft_order.rb +4 -0
  184. data/lib/shopify_api/rest/resources/2022_01/event.rb +4 -0
  185. data/lib/shopify_api/rest/resources/2022_01/fulfillment.rb +75 -1
  186. data/lib/shopify_api/rest/resources/2022_01/fulfillment_event.rb +4 -0
  187. data/lib/shopify_api/rest/resources/2022_01/fulfillment_order.rb +4 -0
  188. data/lib/shopify_api/rest/resources/2022_01/fulfillment_request.rb +4 -0
  189. data/lib/shopify_api/rest/resources/2022_01/fulfillment_service.rb +4 -0
  190. data/lib/shopify_api/rest/resources/2022_01/gift_card.rb +4 -0
  191. data/lib/shopify_api/rest/resources/2022_01/gift_card_adjustment.rb +4 -0
  192. data/lib/shopify_api/rest/resources/2022_01/image.rb +4 -0
  193. data/lib/shopify_api/rest/resources/2022_01/inventory_item.rb +4 -0
  194. data/lib/shopify_api/rest/resources/2022_01/inventory_level.rb +4 -0
  195. data/lib/shopify_api/rest/resources/2022_01/location.rb +4 -0
  196. data/lib/shopify_api/rest/resources/2022_01/locations_for_move.rb +4 -0
  197. data/lib/shopify_api/rest/resources/2022_01/marketing_event.rb +4 -0
  198. data/lib/shopify_api/rest/resources/2022_01/metafield.rb +4 -0
  199. data/lib/shopify_api/rest/resources/2022_01/mobile_platform_application.rb +4 -0
  200. data/lib/shopify_api/rest/resources/2022_01/order.rb +4 -0
  201. data/lib/shopify_api/rest/resources/2022_01/order_risk.rb +4 -0
  202. data/lib/shopify_api/rest/resources/2022_01/page.rb +4 -0
  203. data/lib/shopify_api/rest/resources/2022_01/payment.rb +4 -0
  204. data/lib/shopify_api/rest/resources/2022_01/payment_gateway.rb +4 -0
  205. data/lib/shopify_api/rest/resources/2022_01/payment_transaction.rb +4 -0
  206. data/lib/shopify_api/rest/resources/2022_01/payout.rb +4 -0
  207. data/lib/shopify_api/rest/resources/2022_01/policy.rb +4 -0
  208. data/lib/shopify_api/rest/resources/2022_01/price_rule.rb +4 -0
  209. data/lib/shopify_api/rest/resources/2022_01/product.rb +4 -0
  210. data/lib/shopify_api/rest/resources/2022_01/product_listing.rb +4 -0
  211. data/lib/shopify_api/rest/resources/2022_01/product_resource_feedback.rb +4 -0
  212. data/lib/shopify_api/rest/resources/2022_01/province.rb +4 -0
  213. data/lib/shopify_api/rest/resources/2022_01/recurring_application_charge.rb +4 -0
  214. data/lib/shopify_api/rest/resources/2022_01/redirect.rb +4 -0
  215. data/lib/shopify_api/rest/resources/2022_01/refund.rb +4 -0
  216. data/lib/shopify_api/rest/resources/2022_01/report.rb +4 -0
  217. data/lib/shopify_api/rest/resources/2022_01/resource_feedback.rb +4 -0
  218. data/lib/shopify_api/rest/resources/2022_01/script_tag.rb +4 -0
  219. data/lib/shopify_api/rest/resources/2022_01/shipping_zone.rb +4 -0
  220. data/lib/shopify_api/rest/resources/2022_01/shop.rb +4 -0
  221. data/lib/shopify_api/rest/resources/2022_01/smart_collection.rb +4 -0
  222. data/lib/shopify_api/rest/resources/2022_01/storefront_access_token.rb +4 -0
  223. data/lib/shopify_api/rest/resources/2022_01/tender_transaction.rb +4 -0
  224. data/lib/shopify_api/rest/resources/2022_01/theme.rb +4 -0
  225. data/lib/shopify_api/rest/resources/2022_01/transaction.rb +4 -0
  226. data/lib/shopify_api/rest/resources/2022_01/usage_charge.rb +4 -0
  227. data/lib/shopify_api/rest/resources/2022_01/user.rb +4 -0
  228. data/lib/shopify_api/rest/resources/2022_01/variant.rb +4 -0
  229. data/lib/shopify_api/rest/resources/2022_01/webhook.rb +4 -0
  230. data/lib/shopify_api/rest/resources/2022_04/abandoned_checkout.rb +4 -0
  231. data/lib/shopify_api/rest/resources/2022_04/access_scope.rb +4 -0
  232. data/lib/shopify_api/rest/resources/2022_04/android_pay_key.rb +4 -0
  233. data/lib/shopify_api/rest/resources/2022_04/apple_pay_certificate.rb +4 -0
  234. data/lib/shopify_api/rest/resources/2022_04/application_charge.rb +4 -0
  235. data/lib/shopify_api/rest/resources/2022_04/application_credit.rb +4 -0
  236. data/lib/shopify_api/rest/resources/2022_04/article.rb +4 -0
  237. data/lib/shopify_api/rest/resources/2022_04/asset.rb +4 -0
  238. data/lib/shopify_api/rest/resources/2022_04/assigned_fulfillment_order.rb +4 -0
  239. data/lib/shopify_api/rest/resources/2022_04/balance.rb +4 -0
  240. data/lib/shopify_api/rest/resources/2022_04/blog.rb +4 -0
  241. data/lib/shopify_api/rest/resources/2022_04/cancellation_request.rb +4 -0
  242. data/lib/shopify_api/rest/resources/2022_04/carrier_service.rb +4 -0
  243. data/lib/shopify_api/rest/resources/2022_04/checkout.rb +4 -0
  244. data/lib/shopify_api/rest/resources/2022_04/collect.rb +4 -0
  245. data/lib/shopify_api/rest/resources/2022_04/collection.rb +4 -0
  246. data/lib/shopify_api/rest/resources/2022_04/collection_listing.rb +4 -0
  247. data/lib/shopify_api/rest/resources/2022_04/comment.rb +4 -0
  248. data/lib/shopify_api/rest/resources/2022_04/country.rb +4 -0
  249. data/lib/shopify_api/rest/resources/2022_04/currency.rb +4 -0
  250. data/lib/shopify_api/rest/resources/2022_04/custom_collection.rb +4 -0
  251. data/lib/shopify_api/rest/resources/2022_04/customer.rb +4 -0
  252. data/lib/shopify_api/rest/resources/2022_04/customer_address.rb +4 -0
  253. data/lib/shopify_api/rest/resources/2022_04/customer_saved_search.rb +4 -0
  254. data/lib/shopify_api/rest/resources/2022_04/deprecated_api_call.rb +4 -0
  255. data/lib/shopify_api/rest/resources/2022_04/discount_code.rb +4 -0
  256. data/lib/shopify_api/rest/resources/2022_04/dispute.rb +4 -0
  257. data/lib/shopify_api/rest/resources/2022_04/draft_order.rb +4 -0
  258. data/lib/shopify_api/rest/resources/2022_04/event.rb +4 -0
  259. data/lib/shopify_api/rest/resources/2022_04/fulfillment.rb +75 -1
  260. data/lib/shopify_api/rest/resources/2022_04/fulfillment_event.rb +4 -0
  261. data/lib/shopify_api/rest/resources/2022_04/fulfillment_order.rb +7 -0
  262. data/lib/shopify_api/rest/resources/2022_04/fulfillment_request.rb +4 -0
  263. data/lib/shopify_api/rest/resources/2022_04/fulfillment_service.rb +4 -0
  264. data/lib/shopify_api/rest/resources/2022_04/gift_card.rb +4 -0
  265. data/lib/shopify_api/rest/resources/2022_04/gift_card_adjustment.rb +4 -0
  266. data/lib/shopify_api/rest/resources/2022_04/image.rb +4 -0
  267. data/lib/shopify_api/rest/resources/2022_04/inventory_item.rb +4 -0
  268. data/lib/shopify_api/rest/resources/2022_04/inventory_level.rb +4 -0
  269. data/lib/shopify_api/rest/resources/2022_04/location.rb +4 -0
  270. data/lib/shopify_api/rest/resources/2022_04/locations_for_move.rb +4 -0
  271. data/lib/shopify_api/rest/resources/2022_04/marketing_event.rb +4 -0
  272. data/lib/shopify_api/rest/resources/2022_04/metafield.rb +4 -0
  273. data/lib/shopify_api/rest/resources/2022_04/mobile_platform_application.rb +4 -0
  274. data/lib/shopify_api/rest/resources/2022_04/order.rb +4 -0
  275. data/lib/shopify_api/rest/resources/2022_04/order_risk.rb +4 -0
  276. data/lib/shopify_api/rest/resources/2022_04/page.rb +4 -0
  277. data/lib/shopify_api/rest/resources/2022_04/payment.rb +4 -0
  278. data/lib/shopify_api/rest/resources/2022_04/payment_gateway.rb +4 -0
  279. data/lib/shopify_api/rest/resources/2022_04/payment_transaction.rb +4 -0
  280. data/lib/shopify_api/rest/resources/2022_04/payout.rb +4 -0
  281. data/lib/shopify_api/rest/resources/2022_04/policy.rb +4 -0
  282. data/lib/shopify_api/rest/resources/2022_04/price_rule.rb +4 -0
  283. data/lib/shopify_api/rest/resources/2022_04/product.rb +4 -0
  284. data/lib/shopify_api/rest/resources/2022_04/product_listing.rb +4 -0
  285. data/lib/shopify_api/rest/resources/2022_04/product_resource_feedback.rb +4 -0
  286. data/lib/shopify_api/rest/resources/2022_04/province.rb +4 -0
  287. data/lib/shopify_api/rest/resources/2022_04/recurring_application_charge.rb +4 -0
  288. data/lib/shopify_api/rest/resources/2022_04/redirect.rb +4 -0
  289. data/lib/shopify_api/rest/resources/2022_04/refund.rb +4 -0
  290. data/lib/shopify_api/rest/resources/2022_04/report.rb +4 -0
  291. data/lib/shopify_api/rest/resources/2022_04/resource_feedback.rb +4 -0
  292. data/lib/shopify_api/rest/resources/2022_04/script_tag.rb +4 -0
  293. data/lib/shopify_api/rest/resources/2022_04/shipping_zone.rb +4 -0
  294. data/lib/shopify_api/rest/resources/2022_04/shop.rb +4 -0
  295. data/lib/shopify_api/rest/resources/2022_04/smart_collection.rb +4 -0
  296. data/lib/shopify_api/rest/resources/2022_04/storefront_access_token.rb +4 -0
  297. data/lib/shopify_api/rest/resources/2022_04/tender_transaction.rb +4 -0
  298. data/lib/shopify_api/rest/resources/2022_04/theme.rb +4 -0
  299. data/lib/shopify_api/rest/resources/2022_04/transaction.rb +4 -0
  300. data/lib/shopify_api/rest/resources/2022_04/usage_charge.rb +4 -0
  301. data/lib/shopify_api/rest/resources/2022_04/user.rb +4 -0
  302. data/lib/shopify_api/rest/resources/2022_04/variant.rb +4 -0
  303. data/lib/shopify_api/rest/resources/2022_04/webhook.rb +4 -0
  304. data/lib/shopify_api/version.rb +1 -1
  305. data/lib/shopify_api/webhooks/registry.rb +0 -1
  306. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 81babe6da64bc6c8b0e413213fff00c818778c5bc5cf9bd79b1acb25fd3ea3d1
4
- data.tar.gz: b9dda7bb0992365df524d1e22d70ee34fee776a68c5dc9e958b826d49c6c0541
3
+ metadata.gz: fc4cfe78db0e88c911424f8d3e2b3ed88b41a3bb91db59beea5a250222a784af
4
+ data.tar.gz: c2f3d45bf47d0b0e5d8da086895c59145b0c84ef4b70f04acee72188278f4b74
5
5
  SHA512:
6
- metadata.gz: cb1eeacedfe1a0fdd8f0262e0bb63ea52996aa6a98f1ffee803481a2ce38424f31d8aa0658108f53a376fef29d5a65acf7bb1384d6d87ce21e52eabdc4926da8
7
- data.tar.gz: 03c666d05fc413b5da1951a0693818ca97c48064bb2735facb019a4e04a55581525ee061e19dc1c1406e4c67a0949ded89ffec69ef5cab1f1d8866f8d514277f
6
+ metadata.gz: f5fdbadb1ba50cf494e3eee2e08c6e2ee29085093821d24da8965d3215c1197ddadbaf0c1b2fb979ba59a3e3fad315691a85658ba970dd8f58b0a5f4b23456ab
7
+ data.tar.gz: b71d5ec832995ae090aa52ee61c5fe3a67c05ad04d78a3e8f34cfee2fa8565f221ce5229a354f981c1de2d9eed25e2fd341919c6474695a973b7052b71db72df
data/CHANGELOG.md CHANGED
@@ -1,7 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ Note: For changes to the API, see https://shopify.dev/changelog?filter=api
4
+
3
5
  ## Unreleased
4
6
 
7
+ ## Version 10.1.0
8
+
9
+ - [#933](https://github.com/Shopify/shopify_api/pull/933) Fix syntax of GraphQL query in `Webhooks.get_webhook_id` method by removing extra curly brace
10
+ - [#941](https://github.com/Shopify/shopify_api/pull/941) Fix `to_hash` to return readonly attributes, unless being used for serialize the object for saving - fix issue [#930](https://github.com/Shopify/shopify_api/issues/930)
11
+ - [#959](https://github.com/Shopify/shopify_api/pull/959) Update `LATEST_SUPPORTED_ADMIN_VERSION` to `2022-04` to align it with the current value
12
+
5
13
  ## Version 10.0.3
6
14
 
7
15
  ### Fixed
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- shopify_api (10.0.3)
4
+ shopify_api (10.1.0)
5
5
  concurrent-ruby
6
6
  hash_diff
7
7
  httparty
@@ -79,16 +79,16 @@ GEM
79
79
  rubocop (>= 0.90.0)
80
80
  ruby-progressbar (1.11.0)
81
81
  securerandom (0.2.0)
82
- sorbet (0.5.9924)
83
- sorbet-static (= 0.5.9924)
84
- sorbet-runtime (0.5.9924)
85
- sorbet-static (0.5.9924-universal-darwin-21)
86
- sorbet-static (0.5.9924-x86_64-linux)
82
+ sorbet (0.5.10016)
83
+ sorbet-static (= 0.5.10016)
84
+ sorbet-runtime (0.5.10016)
85
+ sorbet-static (0.5.10016-universal-darwin-21)
86
+ sorbet-static (0.5.10016-x86_64-linux)
87
87
  spoom (1.1.8)
88
88
  sorbet (>= 0.5.9204)
89
89
  sorbet-runtime (>= 0.5.9204)
90
90
  thor (>= 0.19.2)
91
- tapioca (0.6.3)
91
+ tapioca (0.6.4)
92
92
  bundler (>= 1.17.3)
93
93
  pry (>= 0.12.2)
94
94
  rbi (~> 0.0.0, >= 0.0.9)
data/README.md CHANGED
@@ -57,7 +57,7 @@ ShopifyAPI::Context.setup(
57
57
  session_storage: ShopifyAPI::Auth::FileSessionStorage.new, # See more details below
58
58
  is_embedded: true, # Set to true if you are building an embedded app
59
59
  is_private: false, # Set to true if you are building a private app
60
- api_version: "2022-01" # The vesion of the API you would like to use
60
+ api_version: "2022-01" # The version of the API you would like to use
61
61
  )
62
62
  ```
63
63
 
@@ -54,7 +54,7 @@ variables = {
54
54
  first: 3
55
55
  }
56
56
 
57
- response = client.query(data: query, variables: variables)
57
+ response = client.query(query: query, variables: variables)
58
58
 
59
59
  ```
60
60
 
@@ -12,7 +12,7 @@ module ShopifyAPI
12
12
  "2021-04",
13
13
  ], T::Array[String])
14
14
 
15
- LATEST_SUPPORTED_ADMIN_VERSION = T.let("2022-01", String)
15
+ LATEST_SUPPORTED_ADMIN_VERSION = T.let("2022-04", String)
16
16
  end
17
17
 
18
18
  SUPPORTED_ADMIN_VERSIONS = ShopifyAPI::AdminVersions::SUPPORTED_ADMIN_VERSIONS
@@ -55,6 +55,12 @@ module ShopifyAPI
55
55
  sig { returns(T.nilable(String)) }
56
56
  attr_reader :custom_prefix
57
57
 
58
+ sig { returns(T::Hash[Symbol, Class]) }
59
+ attr_reader :has_many
60
+
61
+ sig { returns(T::Hash[Symbol, Class]) }
62
+ attr_reader :has_one
63
+
58
64
  sig do
59
65
  params(
60
66
  session: T.nilable(Auth::Session),
@@ -261,8 +267,8 @@ module ShopifyAPI
261
267
  match.nil? ? true : super
262
268
  end
263
269
 
264
- sig { returns(T::Hash[String, T.untyped]) }
265
- def to_hash
270
+ sig { params(saving: T::Boolean).returns(T::Hash[String, T.untyped]) }
271
+ def to_hash(saving = false)
266
272
  hash = {}
267
273
  instance_variables.each do |var|
268
274
  next if [
@@ -273,7 +279,7 @@ module ShopifyAPI
273
279
  :"@errors",
274
280
  :"@aliased_properties",
275
281
  ].include?(var)
276
- next if self.class.read_only_attributes&.include?(var)
282
+ next if saving && self.class.read_only_attributes&.include?(var)
277
283
 
278
284
  var = var.to_s.delete("@")
279
285
  attribute = if @aliased_properties.value?(var)
@@ -283,9 +289,16 @@ module ShopifyAPI
283
289
  end.to_sym
284
290
 
285
291
  if self.class.has_many?(attribute)
286
- hash[attribute.to_s] = get_property(attribute).map(&:to_hash).to_a if get_property(attribute)
292
+ attribute_class = self.class.has_many[attribute]
293
+ hash[attribute.to_s] = get_property(attribute).map do |element|
294
+ get_element_hash(element, T.unsafe(attribute_class), saving)
295
+ end.to_a if get_property(attribute)
287
296
  elsif self.class.has_one?(attribute)
288
- element_hash = get_property(attribute)&.to_hash
297
+ element_hash = get_element_hash(
298
+ get_property(attribute),
299
+ T.unsafe(self.class.has_one[attribute]),
300
+ saving
301
+ )
289
302
  hash[attribute.to_s] = element_hash if element_hash || @forced_nils[attribute.to_s]
290
303
  elsif !get_property(attribute).nil? || @forced_nils[attribute.to_s]
291
304
  hash[attribute.to_s] =
@@ -313,7 +326,7 @@ module ShopifyAPI
313
326
 
314
327
  sig { params(update_object: T::Boolean).void }
315
328
  def save(update_object: false)
316
- hash = HashDiff::Comparison.new(original_state, to_hash).left_diff
329
+ hash = HashDiff::Comparison.new(original_state, to_hash(true)).left_diff
317
330
  method = hash[self.class.primary_key] ? :put : :post
318
331
 
319
332
  path = self.class.get_path(http_method: method, operation: method, entity: self)
@@ -355,6 +368,20 @@ module ShopifyAPI
355
368
 
356
369
  instance_variable_get("@#{clean_key}")
357
370
  end
371
+
372
+ sig do
373
+ params(
374
+ element: T.nilable(T.any(T::Hash[String, T.untyped], ShopifyAPI::Rest::Base)),
375
+ attribute_class: Class,
376
+ saving: T::Boolean,
377
+ ).returns(T.nilable(T::Hash[String, T.untyped]))
378
+ end
379
+ def get_element_hash(element, attribute_class, saving)
380
+ return nil if element.nil?
381
+ return element.to_hash(saving) unless element.is_a?(Hash)
382
+
383
+ T.unsafe(attribute_class).create_instance(session: @session, data: element).to_hash(saving)
384
+ end
358
385
  end
359
386
  end
360
387
  end
@@ -1,6 +1,10 @@
1
1
  # typed: false
2
2
  # frozen_string_literal: true
3
3
 
4
+ ########################################################################################################################
5
+ # This file is auto-generated. If you have an issue, please create a GitHub issue. #
6
+ ########################################################################################################################
7
+
4
8
  module ShopifyAPI
5
9
  class AbandonedCheckout < ShopifyAPI::Rest::Base
6
10
  extend T::Sig
@@ -1,6 +1,10 @@
1
1
  # typed: false
2
2
  # frozen_string_literal: true
3
3
 
4
+ ########################################################################################################################
5
+ # This file is auto-generated. If you have an issue, please create a GitHub issue. #
6
+ ########################################################################################################################
7
+
4
8
  module ShopifyAPI
5
9
  class AccessScope < ShopifyAPI::Rest::Base
6
10
  extend T::Sig
@@ -1,6 +1,10 @@
1
1
  # typed: false
2
2
  # frozen_string_literal: true
3
3
 
4
+ ########################################################################################################################
5
+ # This file is auto-generated. If you have an issue, please create a GitHub issue. #
6
+ ########################################################################################################################
7
+
4
8
  module ShopifyAPI
5
9
  class AndroidPayKey < ShopifyAPI::Rest::Base
6
10
  extend T::Sig
@@ -1,6 +1,10 @@
1
1
  # typed: false
2
2
  # frozen_string_literal: true
3
3
 
4
+ ########################################################################################################################
5
+ # This file is auto-generated. If you have an issue, please create a GitHub issue. #
6
+ ########################################################################################################################
7
+
4
8
  module ShopifyAPI
5
9
  class ApplePayCertificate < ShopifyAPI::Rest::Base
6
10
  extend T::Sig
@@ -1,6 +1,10 @@
1
1
  # typed: false
2
2
  # frozen_string_literal: true
3
3
 
4
+ ########################################################################################################################
5
+ # This file is auto-generated. If you have an issue, please create a GitHub issue. #
6
+ ########################################################################################################################
7
+
4
8
  module ShopifyAPI
5
9
  class ApplicationCharge < ShopifyAPI::Rest::Base
6
10
  extend T::Sig
@@ -1,6 +1,10 @@
1
1
  # typed: false
2
2
  # frozen_string_literal: true
3
3
 
4
+ ########################################################################################################################
5
+ # This file is auto-generated. If you have an issue, please create a GitHub issue. #
6
+ ########################################################################################################################
7
+
4
8
  module ShopifyAPI
5
9
  class ApplicationCredit < ShopifyAPI::Rest::Base
6
10
  extend T::Sig
@@ -1,6 +1,10 @@
1
1
  # typed: false
2
2
  # frozen_string_literal: true
3
3
 
4
+ ########################################################################################################################
5
+ # This file is auto-generated. If you have an issue, please create a GitHub issue. #
6
+ ########################################################################################################################
7
+
4
8
  module ShopifyAPI
5
9
  class Article < ShopifyAPI::Rest::Base
6
10
  extend T::Sig
@@ -1,6 +1,10 @@
1
1
  # typed: false
2
2
  # frozen_string_literal: true
3
3
 
4
+ ########################################################################################################################
5
+ # This file is auto-generated. If you have an issue, please create a GitHub issue. #
6
+ ########################################################################################################################
7
+
4
8
  module ShopifyAPI
5
9
  class Asset < ShopifyAPI::Rest::Base
6
10
  extend T::Sig
@@ -1,6 +1,10 @@
1
1
  # typed: false
2
2
  # frozen_string_literal: true
3
3
 
4
+ ########################################################################################################################
5
+ # This file is auto-generated. If you have an issue, please create a GitHub issue. #
6
+ ########################################################################################################################
7
+
4
8
  module ShopifyAPI
5
9
  class AssignedFulfillmentOrder < ShopifyAPI::Rest::Base
6
10
  extend T::Sig
@@ -1,6 +1,10 @@
1
1
  # typed: false
2
2
  # frozen_string_literal: true
3
3
 
4
+ ########################################################################################################################
5
+ # This file is auto-generated. If you have an issue, please create a GitHub issue. #
6
+ ########################################################################################################################
7
+
4
8
  module ShopifyAPI
5
9
  class Balance < ShopifyAPI::Rest::Base
6
10
  extend T::Sig
@@ -1,6 +1,10 @@
1
1
  # typed: false
2
2
  # frozen_string_literal: true
3
3
 
4
+ ########################################################################################################################
5
+ # This file is auto-generated. If you have an issue, please create a GitHub issue. #
6
+ ########################################################################################################################
7
+
4
8
  module ShopifyAPI
5
9
  class Blog < ShopifyAPI::Rest::Base
6
10
  extend T::Sig
@@ -1,6 +1,10 @@
1
1
  # typed: false
2
2
  # frozen_string_literal: true
3
3
 
4
+ ########################################################################################################################
5
+ # This file is auto-generated. If you have an issue, please create a GitHub issue. #
6
+ ########################################################################################################################
7
+
4
8
  module ShopifyAPI
5
9
  class CancellationRequest < ShopifyAPI::Rest::Base
6
10
  extend T::Sig
@@ -1,6 +1,10 @@
1
1
  # typed: false
2
2
  # frozen_string_literal: true
3
3
 
4
+ ########################################################################################################################
5
+ # This file is auto-generated. If you have an issue, please create a GitHub issue. #
6
+ ########################################################################################################################
7
+
4
8
  module ShopifyAPI
5
9
  class CarrierService < ShopifyAPI::Rest::Base
6
10
  extend T::Sig
@@ -1,6 +1,10 @@
1
1
  # typed: false
2
2
  # frozen_string_literal: true
3
3
 
4
+ ########################################################################################################################
5
+ # This file is auto-generated. If you have an issue, please create a GitHub issue. #
6
+ ########################################################################################################################
7
+
4
8
  module ShopifyAPI
5
9
  class Checkout < ShopifyAPI::Rest::Base
6
10
  extend T::Sig
@@ -1,6 +1,10 @@
1
1
  # typed: false
2
2
  # frozen_string_literal: true
3
3
 
4
+ ########################################################################################################################
5
+ # This file is auto-generated. If you have an issue, please create a GitHub issue. #
6
+ ########################################################################################################################
7
+
4
8
  module ShopifyAPI
5
9
  class Collect < ShopifyAPI::Rest::Base
6
10
  extend T::Sig
@@ -1,6 +1,10 @@
1
1
  # typed: false
2
2
  # frozen_string_literal: true
3
3
 
4
+ ########################################################################################################################
5
+ # This file is auto-generated. If you have an issue, please create a GitHub issue. #
6
+ ########################################################################################################################
7
+
4
8
  module ShopifyAPI
5
9
  class Collection < ShopifyAPI::Rest::Base
6
10
  extend T::Sig
@@ -1,6 +1,10 @@
1
1
  # typed: false
2
2
  # frozen_string_literal: true
3
3
 
4
+ ########################################################################################################################
5
+ # This file is auto-generated. If you have an issue, please create a GitHub issue. #
6
+ ########################################################################################################################
7
+
4
8
  module ShopifyAPI
5
9
  class CollectionListing < ShopifyAPI::Rest::Base
6
10
  extend T::Sig
@@ -1,6 +1,10 @@
1
1
  # typed: false
2
2
  # frozen_string_literal: true
3
3
 
4
+ ########################################################################################################################
5
+ # This file is auto-generated. If you have an issue, please create a GitHub issue. #
6
+ ########################################################################################################################
7
+
4
8
  module ShopifyAPI
5
9
  class Comment < ShopifyAPI::Rest::Base
6
10
  extend T::Sig
@@ -1,6 +1,10 @@
1
1
  # typed: false
2
2
  # frozen_string_literal: true
3
3
 
4
+ ########################################################################################################################
5
+ # This file is auto-generated. If you have an issue, please create a GitHub issue. #
6
+ ########################################################################################################################
7
+
4
8
  module ShopifyAPI
5
9
  class Country < ShopifyAPI::Rest::Base
6
10
  extend T::Sig
@@ -1,6 +1,10 @@
1
1
  # typed: false
2
2
  # frozen_string_literal: true
3
3
 
4
+ ########################################################################################################################
5
+ # This file is auto-generated. If you have an issue, please create a GitHub issue. #
6
+ ########################################################################################################################
7
+
4
8
  module ShopifyAPI
5
9
  class Currency < ShopifyAPI::Rest::Base
6
10
  extend T::Sig
@@ -1,6 +1,10 @@
1
1
  # typed: false
2
2
  # frozen_string_literal: true
3
3
 
4
+ ########################################################################################################################
5
+ # This file is auto-generated. If you have an issue, please create a GitHub issue. #
6
+ ########################################################################################################################
7
+
4
8
  module ShopifyAPI
5
9
  class CustomCollection < ShopifyAPI::Rest::Base
6
10
  extend T::Sig
@@ -1,6 +1,10 @@
1
1
  # typed: false
2
2
  # frozen_string_literal: true
3
3
 
4
+ ########################################################################################################################
5
+ # This file is auto-generated. If you have an issue, please create a GitHub issue. #
6
+ ########################################################################################################################
7
+
4
8
  module ShopifyAPI
5
9
  class Customer < ShopifyAPI::Rest::Base
6
10
  extend T::Sig
@@ -1,6 +1,10 @@
1
1
  # typed: false
2
2
  # frozen_string_literal: true
3
3
 
4
+ ########################################################################################################################
5
+ # This file is auto-generated. If you have an issue, please create a GitHub issue. #
6
+ ########################################################################################################################
7
+
4
8
  module ShopifyAPI
5
9
  class CustomerAddress < ShopifyAPI::Rest::Base
6
10
  extend T::Sig
@@ -1,6 +1,10 @@
1
1
  # typed: false
2
2
  # frozen_string_literal: true
3
3
 
4
+ ########################################################################################################################
5
+ # This file is auto-generated. If you have an issue, please create a GitHub issue. #
6
+ ########################################################################################################################
7
+
4
8
  module ShopifyAPI
5
9
  class CustomerSavedSearch < ShopifyAPI::Rest::Base
6
10
  extend T::Sig
@@ -1,6 +1,10 @@
1
1
  # typed: false
2
2
  # frozen_string_literal: true
3
3
 
4
+ ########################################################################################################################
5
+ # This file is auto-generated. If you have an issue, please create a GitHub issue. #
6
+ ########################################################################################################################
7
+
4
8
  module ShopifyAPI
5
9
  class DeprecatedApiCall < ShopifyAPI::Rest::Base
6
10
  extend T::Sig
@@ -1,6 +1,10 @@
1
1
  # typed: false
2
2
  # frozen_string_literal: true
3
3
 
4
+ ########################################################################################################################
5
+ # This file is auto-generated. If you have an issue, please create a GitHub issue. #
6
+ ########################################################################################################################
7
+
4
8
  module ShopifyAPI
5
9
  class DiscountCode < ShopifyAPI::Rest::Base
6
10
  extend T::Sig
@@ -1,6 +1,10 @@
1
1
  # typed: false
2
2
  # frozen_string_literal: true
3
3
 
4
+ ########################################################################################################################
5
+ # This file is auto-generated. If you have an issue, please create a GitHub issue. #
6
+ ########################################################################################################################
7
+
4
8
  module ShopifyAPI
5
9
  class Dispute < ShopifyAPI::Rest::Base
6
10
  extend T::Sig
@@ -1,6 +1,10 @@
1
1
  # typed: false
2
2
  # frozen_string_literal: true
3
3
 
4
+ ########################################################################################################################
5
+ # This file is auto-generated. If you have an issue, please create a GitHub issue. #
6
+ ########################################################################################################################
7
+
4
8
  module ShopifyAPI
5
9
  class DraftOrder < ShopifyAPI::Rest::Base
6
10
  extend T::Sig
@@ -1,6 +1,10 @@
1
1
  # typed: false
2
2
  # frozen_string_literal: true
3
3
 
4
+ ########################################################################################################################
5
+ # This file is auto-generated. If you have an issue, please create a GitHub issue. #
6
+ ########################################################################################################################
7
+
4
8
  module ShopifyAPI
5
9
  class Event < ShopifyAPI::Rest::Base
6
10
  extend T::Sig
@@ -1,6 +1,10 @@
1
1
  # typed: false
2
2
  # frozen_string_literal: true
3
3
 
4
+ ########################################################################################################################
5
+ # This file is auto-generated. If you have an issue, please create a GitHub issue. #
6
+ ########################################################################################################################
7
+
4
8
  module ShopifyAPI
5
9
  class Fulfillment < ShopifyAPI::Rest::Base
6
10
  extend T::Sig
@@ -37,7 +41,14 @@ module ShopifyAPI
37
41
  {http_method: :get, operation: :get, ids: [:fulfillment_order_id], path: "fulfillment_orders/<fulfillment_order_id>/fulfillments.json"},
38
42
  {http_method: :get, operation: :get, ids: [:order_id], path: "orders/<order_id>/fulfillments.json"},
39
43
  {http_method: :get, operation: :get, ids: [:order_id, :id], path: "orders/<order_id>/fulfillments/<id>.json"},
40
- {http_method: :post, operation: :update_tracking, ids: [:id], path: "fulfillments/<id>/update_tracking.json"}
44
+ {http_method: :post, operation: :cancel, ids: [:id], path: "fulfillments/<id>/cancel.json"},
45
+ {http_method: :post, operation: :cancel, ids: [:order_id, :id], path: "orders/<order_id>/fulfillments/<id>/cancel.json"},
46
+ {http_method: :post, operation: :complete, ids: [:order_id, :id], path: "orders/<order_id>/fulfillments/<id>/complete.json"},
47
+ {http_method: :post, operation: :open, ids: [:order_id, :id], path: "orders/<order_id>/fulfillments/<id>/open.json"},
48
+ {http_method: :post, operation: :post, ids: [], path: "fulfillments.json"},
49
+ {http_method: :post, operation: :post, ids: [:order_id], path: "orders/<order_id>/fulfillments.json"},
50
+ {http_method: :post, operation: :update_tracking, ids: [:id], path: "fulfillments/<id>/update_tracking.json"},
51
+ {http_method: :put, operation: :put, ids: [:order_id, :id], path: "orders/<order_id>/fulfillments/<id>.json"}
41
52
  ], T::Array[T::Hash[String, T.any(T::Array[Symbol], String, Symbol)]])
42
53
 
43
54
  sig { returns(T.nilable(String)) }
@@ -166,6 +177,69 @@ module ShopifyAPI
166
177
 
167
178
  end
168
179
 
180
+ sig do
181
+ params(
182
+ body: T.untyped,
183
+ kwargs: T.untyped
184
+ ).returns(T.untyped)
185
+ end
186
+ def cancel(
187
+ body: nil,
188
+ **kwargs
189
+ )
190
+ self.class.request(
191
+ http_method: :post,
192
+ operation: :cancel,
193
+ session: @session,
194
+ ids: {id: @id, order_id: @order_id},
195
+ params: {}.merge(kwargs).compact,
196
+ body: body,
197
+ entity: self,
198
+ )
199
+ end
200
+
201
+ sig do
202
+ params(
203
+ body: T.untyped,
204
+ kwargs: T.untyped
205
+ ).returns(T.untyped)
206
+ end
207
+ def complete(
208
+ body: nil,
209
+ **kwargs
210
+ )
211
+ self.class.request(
212
+ http_method: :post,
213
+ operation: :complete,
214
+ session: @session,
215
+ ids: {id: @id, order_id: @order_id},
216
+ params: {}.merge(kwargs).compact,
217
+ body: body,
218
+ entity: self,
219
+ )
220
+ end
221
+
222
+ sig do
223
+ params(
224
+ body: T.untyped,
225
+ kwargs: T.untyped
226
+ ).returns(T.untyped)
227
+ end
228
+ def open(
229
+ body: nil,
230
+ **kwargs
231
+ )
232
+ self.class.request(
233
+ http_method: :post,
234
+ operation: :open,
235
+ session: @session,
236
+ ids: {id: @id, order_id: @order_id},
237
+ params: {}.merge(kwargs).compact,
238
+ body: body,
239
+ entity: self,
240
+ )
241
+ end
242
+
169
243
  sig do
170
244
  params(
171
245
  body: T.untyped,
@@ -1,6 +1,10 @@
1
1
  # typed: false
2
2
  # frozen_string_literal: true
3
3
 
4
+ ########################################################################################################################
5
+ # This file is auto-generated. If you have an issue, please create a GitHub issue. #
6
+ ########################################################################################################################
7
+
4
8
  module ShopifyAPI
5
9
  class FulfillmentEvent < ShopifyAPI::Rest::Base
6
10
  extend T::Sig
@@ -1,6 +1,10 @@
1
1
  # typed: false
2
2
  # frozen_string_literal: true
3
3
 
4
+ ########################################################################################################################
5
+ # This file is auto-generated. If you have an issue, please create a GitHub issue. #
6
+ ########################################################################################################################
7
+
4
8
  module ShopifyAPI
5
9
  class FulfillmentOrder < ShopifyAPI::Rest::Base
6
10
  extend T::Sig