shopify_api 9.5.1 → 10.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (766) hide show
  1. checksums.yaml +4 -4
  2. data/.github/CODEOWNERS +1 -1
  3. data/.github/ISSUE_TEMPLATE.md +1 -2
  4. data/.github/dependabot.yml +20 -0
  5. data/.github/probots.yml +1 -1
  6. data/.github/pull_request_template.md +20 -0
  7. data/.github/workflows/build.yml +18 -19
  8. data/.rubocop.yml +49 -18
  9. data/CHANGELOG.md +3 -1
  10. data/CONTRIBUTING.md +4 -3
  11. data/Gemfile +6 -4
  12. data/Gemfile.lock +104 -117
  13. data/LICENSE +2 -2
  14. data/README.md +92 -494
  15. data/RELEASING +1 -1
  16. data/Rakefile +14 -46
  17. data/SECURITY.md +2 -2
  18. data/bin/tapioca +29 -0
  19. data/dev.yml +22 -1
  20. data/docs/README.md +13 -0
  21. data/docs/getting_started.md +53 -0
  22. data/docs/issues.md +39 -0
  23. data/docs/usage/graphql.md +115 -0
  24. data/docs/usage/graphql_storefront.md +42 -0
  25. data/docs/usage/oauth.md +105 -0
  26. data/docs/usage/rest.md +137 -0
  27. data/docs/usage/session_storage.md +46 -0
  28. data/docs/usage/webhooks.md +98 -0
  29. data/lib/shopify_api/admin_versions.rb +15 -0
  30. data/lib/shopify_api/auth/associated_user.rb +36 -0
  31. data/lib/shopify_api/auth/auth_scopes.rb +75 -0
  32. data/lib/shopify_api/auth/file_session_storage.rb +70 -0
  33. data/lib/shopify_api/auth/jwt_payload.rb +69 -0
  34. data/lib/shopify_api/auth/oauth/auth_query.rb +47 -0
  35. data/lib/shopify_api/auth/oauth/session_cookie.rb +28 -0
  36. data/lib/shopify_api/auth/oauth.rb +129 -0
  37. data/lib/shopify_api/auth/session.rb +119 -0
  38. data/lib/shopify_api/auth/session_storage.rb +30 -0
  39. data/lib/shopify_api/clients/graphql/admin.rb +15 -0
  40. data/lib/shopify_api/clients/graphql/client.rb +40 -0
  41. data/lib/shopify_api/clients/graphql/storefront.rb +35 -0
  42. data/lib/shopify_api/clients/http_client.rb +100 -0
  43. data/lib/shopify_api/clients/http_request.rb +35 -0
  44. data/lib/shopify_api/clients/http_response.rb +66 -0
  45. data/lib/shopify_api/clients/rest/admin.rb +118 -0
  46. data/lib/shopify_api/context.rb +151 -0
  47. data/lib/shopify_api/errors/context_not_setup_error.rb +9 -0
  48. data/lib/shopify_api/errors/cookie_not_found_error.rb +9 -0
  49. data/lib/shopify_api/errors/http_response_error.rb +19 -0
  50. data/lib/shopify_api/errors/invalid_graphql_request_error.rb +9 -0
  51. data/lib/shopify_api/errors/invalid_http_request_error.rb +9 -0
  52. data/lib/shopify_api/errors/invalid_jwt_token_error.rb +9 -0
  53. data/lib/shopify_api/errors/invalid_oauth_error.rb +9 -0
  54. data/lib/shopify_api/errors/invalid_webhook_error.rb +9 -0
  55. data/lib/shopify_api/errors/invalid_webhook_registration_error.rb +9 -0
  56. data/lib/shopify_api/errors/max_http_retries_exceeded_error.rb +9 -0
  57. data/lib/shopify_api/errors/missing_jwt_token_error.rb +9 -0
  58. data/lib/shopify_api/errors/no_active_session_error.rb +9 -0
  59. data/lib/shopify_api/errors/no_session_cookie_error.rb +9 -0
  60. data/lib/shopify_api/errors/no_webhook_handler.rb +9 -0
  61. data/lib/shopify_api/errors/private_app_error.rb +9 -0
  62. data/lib/shopify_api/errors/request_access_token_error.rb +9 -0
  63. data/lib/shopify_api/errors/session_not_found_error.rb +9 -0
  64. data/lib/shopify_api/errors/session_storage_error.rb +9 -0
  65. data/lib/shopify_api/errors/unsupported_oauth_error.rb +9 -0
  66. data/lib/shopify_api/errors/unsupported_version_error.rb +9 -0
  67. data/lib/shopify_api/errors/webhook_registration_error.rb +9 -0
  68. data/lib/shopify_api/inflector.rb +17 -0
  69. data/lib/shopify_api/rest/base.rb +318 -0
  70. data/lib/shopify_api/rest/base_errors.rb +32 -0
  71. data/lib/shopify_api/rest/resources/2021_07/abandoned_checkout.rb +186 -0
  72. data/lib/shopify_api/rest/resources/2021_07/access_scope.rb +54 -0
  73. data/lib/shopify_api/rest/resources/2021_07/android_pay_key.rb +73 -0
  74. data/lib/shopify_api/rest/resources/2021_07/apple_pay_certificate.rb +101 -0
  75. data/lib/shopify_api/rest/resources/2021_07/application_charge.rb +100 -0
  76. data/lib/shopify_api/rest/resources/2021_07/application_credit.rb +83 -0
  77. data/lib/shopify_api/rest/resources/2021_07/article.rb +254 -0
  78. data/lib/shopify_api/rest/resources/2021_07/asset.rb +114 -0
  79. data/lib/shopify_api/rest/resources/2021_07/assigned_fulfillment_order.rb +75 -0
  80. data/lib/shopify_api/rest/resources/2021_07/balance.rb +46 -0
  81. data/lib/shopify_api/rest/resources/2021_07/blog.rb +158 -0
  82. data/lib/shopify_api/rest/resources/2021_07/cancellation_request.rb +79 -0
  83. data/lib/shopify_api/rest/resources/2021_07/carrier_service.rb +112 -0
  84. data/lib/shopify_api/rest/resources/2021_07/checkout.rb +205 -0
  85. data/lib/shopify_api/rest/resources/2021_07/collect.rb +138 -0
  86. data/lib/shopify_api/rest/resources/2021_07/collection.rb +106 -0
  87. data/lib/shopify_api/rest/resources/2021_07/collection_listing.rb +151 -0
  88. data/lib/shopify_api/rest/resources/2021_07/comment.rb +279 -0
  89. data/lib/shopify_api/rest/resources/2021_07/country.rb +133 -0
  90. data/lib/shopify_api/rest/resources/2021_07/currency.rb +53 -0
  91. data/lib/shopify_api/rest/resources/2021_07/custom_collection.rb +183 -0
  92. data/lib/shopify_api/rest/resources/2021_07/customer.rb +285 -0
  93. data/lib/shopify_api/rest/resources/2021_07/customer_address.rb +197 -0
  94. data/lib/shopify_api/rest/resources/2021_07/customer_saved_search.rb +165 -0
  95. data/lib/shopify_api/rest/resources/2021_07/deprecated_api_call.rb +53 -0
  96. data/lib/shopify_api/rest/resources/2021_07/discount_code.rb +215 -0
  97. data/lib/shopify_api/rest/resources/2021_07/dispute.rb +107 -0
  98. data/lib/shopify_api/rest/resources/2021_07/draft_order.rb +266 -0
  99. data/lib/shopify_api/rest/resources/2021_07/event.rb +144 -0
  100. data/lib/shopify_api/rest/resources/2021_07/fulfillment.rb +191 -0
  101. data/lib/shopify_api/rest/resources/2021_07/fulfillment_event.rb +162 -0
  102. data/lib/shopify_api/rest/resources/2021_07/fulfillment_order.rb +224 -0
  103. data/lib/shopify_api/rest/resources/2021_07/fulfillment_request.rb +79 -0
  104. data/lib/shopify_api/rest/resources/2021_07/fulfillment_service.rb +126 -0
  105. data/lib/shopify_api/rest/resources/2021_07/gift_card.rb +203 -0
  106. data/lib/shopify_api/rest/resources/2021_07/gift_card_adjustment.rb +114 -0
  107. data/lib/shopify_api/rest/resources/2021_07/image.rb +153 -0
  108. data/lib/shopify_api/rest/resources/2021_07/inventory_item.rb +104 -0
  109. data/lib/shopify_api/rest/resources/2021_07/inventory_level.rb +175 -0
  110. data/lib/shopify_api/rest/resources/2021_07/location.rb +163 -0
  111. data/lib/shopify_api/rest/resources/2021_07/locations_for_move.rb +52 -0
  112. data/lib/shopify_api/rest/resources/2021_07/marketing_event.rb +205 -0
  113. data/lib/shopify_api/rest/resources/2021_07/metafield.rb +338 -0
  114. data/lib/shopify_api/rest/resources/2021_07/mobile_platform_application.rb +106 -0
  115. data/lib/shopify_api/rest/resources/2021_07/order.rb +466 -0
  116. data/lib/shopify_api/rest/resources/2021_07/order_risk.rb +131 -0
  117. data/lib/shopify_api/rest/resources/2021_07/page.rb +190 -0
  118. data/lib/shopify_api/rest/resources/2021_07/payment.rb +136 -0
  119. data/lib/shopify_api/rest/resources/2021_07/payment_gateway.rb +139 -0
  120. data/lib/shopify_api/rest/resources/2021_07/payment_transaction.rb +103 -0
  121. data/lib/shopify_api/rest/resources/2021_07/payout.rb +93 -0
  122. data/lib/shopify_api/rest/resources/2021_07/policy.rb +65 -0
  123. data/lib/shopify_api/rest/resources/2021_07/price_rule.rb +219 -0
  124. data/lib/shopify_api/rest/resources/2021_07/product.rb +219 -0
  125. data/lib/shopify_api/rest/resources/2021_07/product_listing.rb +192 -0
  126. data/lib/shopify_api/rest/resources/2021_07/product_resource_feedback.rb +84 -0
  127. data/lib/shopify_api/rest/resources/2021_07/province.rb +128 -0
  128. data/lib/shopify_api/rest/resources/2021_07/recurring_application_charge.rb +163 -0
  129. data/lib/shopify_api/rest/resources/2021_07/redirect.rb +135 -0
  130. data/lib/shopify_api/rest/resources/2021_07/refund.rb +147 -0
  131. data/lib/shopify_api/rest/resources/2021_07/report.rb +117 -0
  132. data/lib/shopify_api/rest/resources/2021_07/resource_feedback.rb +69 -0
  133. data/lib/shopify_api/rest/resources/2021_07/script_tag.rb +151 -0
  134. data/lib/shopify_api/rest/resources/2021_07/shipping_zone.rb +79 -0
  135. data/lib/shopify_api/rest/resources/2021_07/shop.rb +214 -0
  136. data/lib/shopify_api/rest/resources/2021_07/smart_collection.rb +212 -0
  137. data/lib/shopify_api/rest/resources/2021_07/storefront_access_token.rb +83 -0
  138. data/lib/shopify_api/rest/resources/2021_07/tender_transaction.rb +89 -0
  139. data/lib/shopify_api/rest/resources/2021_07/theme.rb +116 -0
  140. data/lib/shopify_api/rest/resources/2021_07/transaction.rb +174 -0
  141. data/lib/shopify_api/rest/resources/2021_07/usage_charge.rb +93 -0
  142. data/lib/shopify_api/rest/resources/2021_07/user.rb +134 -0
  143. data/lib/shopify_api/rest/resources/2021_07/variant.rb +204 -0
  144. data/lib/shopify_api/rest/resources/2021_07/webhook.rb +164 -0
  145. data/lib/shopify_api/rest/resources/2021_10/abandoned_checkout.rb +186 -0
  146. data/lib/shopify_api/rest/resources/2021_10/access_scope.rb +54 -0
  147. data/lib/shopify_api/rest/resources/2021_10/android_pay_key.rb +73 -0
  148. data/lib/shopify_api/rest/resources/2021_10/apple_pay_certificate.rb +101 -0
  149. data/lib/shopify_api/rest/resources/2021_10/application_charge.rb +100 -0
  150. data/lib/shopify_api/rest/resources/2021_10/application_credit.rb +83 -0
  151. data/lib/shopify_api/rest/resources/2021_10/article.rb +254 -0
  152. data/lib/shopify_api/rest/resources/2021_10/asset.rb +114 -0
  153. data/lib/shopify_api/rest/resources/2021_10/assigned_fulfillment_order.rb +75 -0
  154. data/lib/shopify_api/rest/resources/2021_10/balance.rb +46 -0
  155. data/lib/shopify_api/rest/resources/2021_10/blog.rb +158 -0
  156. data/lib/shopify_api/rest/resources/2021_10/cancellation_request.rb +79 -0
  157. data/lib/shopify_api/rest/resources/2021_10/carrier_service.rb +112 -0
  158. data/lib/shopify_api/rest/resources/2021_10/checkout.rb +205 -0
  159. data/lib/shopify_api/rest/resources/2021_10/collect.rb +138 -0
  160. data/lib/shopify_api/rest/resources/2021_10/collection.rb +106 -0
  161. data/lib/shopify_api/rest/resources/2021_10/collection_listing.rb +151 -0
  162. data/lib/shopify_api/rest/resources/2021_10/comment.rb +279 -0
  163. data/lib/shopify_api/rest/resources/2021_10/country.rb +133 -0
  164. data/lib/shopify_api/rest/resources/2021_10/currency.rb +53 -0
  165. data/lib/shopify_api/rest/resources/2021_10/custom_collection.rb +183 -0
  166. data/lib/shopify_api/rest/resources/2021_10/customer.rb +288 -0
  167. data/lib/shopify_api/rest/resources/2021_10/customer_address.rb +197 -0
  168. data/lib/shopify_api/rest/resources/2021_10/customer_saved_search.rb +165 -0
  169. data/lib/shopify_api/rest/resources/2021_10/deprecated_api_call.rb +53 -0
  170. data/lib/shopify_api/rest/resources/2021_10/discount_code.rb +215 -0
  171. data/lib/shopify_api/rest/resources/2021_10/dispute.rb +107 -0
  172. data/lib/shopify_api/rest/resources/2021_10/draft_order.rb +269 -0
  173. data/lib/shopify_api/rest/resources/2021_10/event.rb +144 -0
  174. data/lib/shopify_api/rest/resources/2021_10/fulfillment.rb +194 -0
  175. data/lib/shopify_api/rest/resources/2021_10/fulfillment_event.rb +162 -0
  176. data/lib/shopify_api/rest/resources/2021_10/fulfillment_order.rb +277 -0
  177. data/lib/shopify_api/rest/resources/2021_10/fulfillment_request.rb +79 -0
  178. data/lib/shopify_api/rest/resources/2021_10/fulfillment_service.rb +126 -0
  179. data/lib/shopify_api/rest/resources/2021_10/gift_card.rb +203 -0
  180. data/lib/shopify_api/rest/resources/2021_10/gift_card_adjustment.rb +114 -0
  181. data/lib/shopify_api/rest/resources/2021_10/image.rb +153 -0
  182. data/lib/shopify_api/rest/resources/2021_10/inventory_item.rb +104 -0
  183. data/lib/shopify_api/rest/resources/2021_10/inventory_level.rb +175 -0
  184. data/lib/shopify_api/rest/resources/2021_10/location.rb +163 -0
  185. data/lib/shopify_api/rest/resources/2021_10/locations_for_move.rb +52 -0
  186. data/lib/shopify_api/rest/resources/2021_10/marketing_event.rb +205 -0
  187. data/lib/shopify_api/rest/resources/2021_10/metafield.rb +338 -0
  188. data/lib/shopify_api/rest/resources/2021_10/mobile_platform_application.rb +106 -0
  189. data/lib/shopify_api/rest/resources/2021_10/order.rb +469 -0
  190. data/lib/shopify_api/rest/resources/2021_10/order_risk.rb +131 -0
  191. data/lib/shopify_api/rest/resources/2021_10/page.rb +190 -0
  192. data/lib/shopify_api/rest/resources/2021_10/payment.rb +136 -0
  193. data/lib/shopify_api/rest/resources/2021_10/payment_gateway.rb +139 -0
  194. data/lib/shopify_api/rest/resources/2021_10/payment_transaction.rb +103 -0
  195. data/lib/shopify_api/rest/resources/2021_10/payout.rb +93 -0
  196. data/lib/shopify_api/rest/resources/2021_10/policy.rb +65 -0
  197. data/lib/shopify_api/rest/resources/2021_10/price_rule.rb +219 -0
  198. data/lib/shopify_api/rest/resources/2021_10/product.rb +219 -0
  199. data/lib/shopify_api/rest/resources/2021_10/product_listing.rb +192 -0
  200. data/lib/shopify_api/rest/resources/2021_10/product_resource_feedback.rb +84 -0
  201. data/lib/shopify_api/rest/resources/2021_10/province.rb +128 -0
  202. data/lib/shopify_api/rest/resources/2021_10/recurring_application_charge.rb +163 -0
  203. data/lib/shopify_api/rest/resources/2021_10/redirect.rb +135 -0
  204. data/lib/shopify_api/rest/resources/2021_10/refund.rb +147 -0
  205. data/lib/shopify_api/rest/resources/2021_10/report.rb +117 -0
  206. data/lib/shopify_api/rest/resources/2021_10/resource_feedback.rb +69 -0
  207. data/lib/shopify_api/rest/resources/2021_10/script_tag.rb +151 -0
  208. data/lib/shopify_api/rest/resources/2021_10/shipping_zone.rb +79 -0
  209. data/lib/shopify_api/rest/resources/2021_10/shop.rb +214 -0
  210. data/lib/shopify_api/rest/resources/2021_10/smart_collection.rb +212 -0
  211. data/lib/shopify_api/rest/resources/2021_10/storefront_access_token.rb +83 -0
  212. data/lib/shopify_api/rest/resources/2021_10/tender_transaction.rb +89 -0
  213. data/lib/shopify_api/rest/resources/2021_10/theme.rb +116 -0
  214. data/lib/shopify_api/rest/resources/2021_10/transaction.rb +177 -0
  215. data/lib/shopify_api/rest/resources/2021_10/usage_charge.rb +93 -0
  216. data/lib/shopify_api/rest/resources/2021_10/user.rb +134 -0
  217. data/lib/shopify_api/rest/resources/2021_10/variant.rb +204 -0
  218. data/lib/shopify_api/rest/resources/2021_10/webhook.rb +164 -0
  219. data/lib/shopify_api/rest/resources/2022_01/abandoned_checkout.rb +186 -0
  220. data/lib/shopify_api/rest/resources/2022_01/access_scope.rb +54 -0
  221. data/lib/shopify_api/rest/resources/2022_01/android_pay_key.rb +73 -0
  222. data/lib/shopify_api/rest/resources/2022_01/apple_pay_certificate.rb +101 -0
  223. data/lib/shopify_api/rest/resources/2022_01/application_charge.rb +100 -0
  224. data/lib/shopify_api/rest/resources/2022_01/application_credit.rb +83 -0
  225. data/lib/shopify_api/rest/resources/2022_01/article.rb +254 -0
  226. data/lib/shopify_api/rest/resources/2022_01/asset.rb +114 -0
  227. data/lib/shopify_api/rest/resources/2022_01/assigned_fulfillment_order.rb +75 -0
  228. data/lib/shopify_api/rest/resources/2022_01/balance.rb +46 -0
  229. data/lib/shopify_api/rest/resources/2022_01/blog.rb +158 -0
  230. data/lib/shopify_api/rest/resources/2022_01/cancellation_request.rb +79 -0
  231. data/lib/shopify_api/rest/resources/2022_01/carrier_service.rb +112 -0
  232. data/lib/shopify_api/rest/resources/2022_01/checkout.rb +205 -0
  233. data/lib/shopify_api/rest/resources/2022_01/collect.rb +138 -0
  234. data/lib/shopify_api/rest/resources/2022_01/collection.rb +106 -0
  235. data/lib/shopify_api/rest/resources/2022_01/collection_listing.rb +151 -0
  236. data/lib/shopify_api/rest/resources/2022_01/comment.rb +279 -0
  237. data/lib/shopify_api/rest/resources/2022_01/country.rb +133 -0
  238. data/lib/shopify_api/rest/resources/2022_01/currency.rb +53 -0
  239. data/lib/shopify_api/rest/resources/2022_01/custom_collection.rb +183 -0
  240. data/lib/shopify_api/rest/resources/2022_01/customer.rb +288 -0
  241. data/lib/shopify_api/rest/resources/2022_01/customer_address.rb +197 -0
  242. data/lib/shopify_api/rest/resources/2022_01/customer_saved_search.rb +165 -0
  243. data/lib/shopify_api/rest/resources/2022_01/deprecated_api_call.rb +53 -0
  244. data/lib/shopify_api/rest/resources/2022_01/discount_code.rb +215 -0
  245. data/lib/shopify_api/rest/resources/2022_01/dispute.rb +107 -0
  246. data/lib/shopify_api/rest/resources/2022_01/draft_order.rb +269 -0
  247. data/lib/shopify_api/rest/resources/2022_01/event.rb +144 -0
  248. data/lib/shopify_api/rest/resources/2022_01/fulfillment.rb +194 -0
  249. data/lib/shopify_api/rest/resources/2022_01/fulfillment_event.rb +162 -0
  250. data/lib/shopify_api/rest/resources/2022_01/fulfillment_order.rb +277 -0
  251. data/lib/shopify_api/rest/resources/2022_01/fulfillment_request.rb +79 -0
  252. data/lib/shopify_api/rest/resources/2022_01/fulfillment_service.rb +126 -0
  253. data/lib/shopify_api/rest/resources/2022_01/gift_card.rb +203 -0
  254. data/lib/shopify_api/rest/resources/2022_01/gift_card_adjustment.rb +114 -0
  255. data/lib/shopify_api/rest/resources/2022_01/image.rb +153 -0
  256. data/lib/shopify_api/rest/resources/2022_01/inventory_item.rb +104 -0
  257. data/lib/shopify_api/rest/resources/2022_01/inventory_level.rb +175 -0
  258. data/lib/shopify_api/rest/resources/2022_01/location.rb +163 -0
  259. data/lib/shopify_api/rest/resources/2022_01/locations_for_move.rb +52 -0
  260. data/lib/shopify_api/rest/resources/2022_01/marketing_event.rb +205 -0
  261. data/lib/shopify_api/rest/resources/2022_01/metafield.rb +338 -0
  262. data/lib/shopify_api/rest/resources/2022_01/mobile_platform_application.rb +106 -0
  263. data/lib/shopify_api/rest/resources/2022_01/order.rb +469 -0
  264. data/lib/shopify_api/rest/resources/2022_01/order_risk.rb +131 -0
  265. data/lib/shopify_api/rest/resources/2022_01/page.rb +190 -0
  266. data/lib/shopify_api/rest/resources/2022_01/payment.rb +136 -0
  267. data/lib/shopify_api/rest/resources/2022_01/payment_gateway.rb +139 -0
  268. data/lib/shopify_api/rest/resources/2022_01/payment_transaction.rb +103 -0
  269. data/lib/shopify_api/rest/resources/2022_01/payout.rb +93 -0
  270. data/lib/shopify_api/rest/resources/2022_01/policy.rb +65 -0
  271. data/lib/shopify_api/rest/resources/2022_01/price_rule.rb +219 -0
  272. data/lib/shopify_api/rest/resources/2022_01/product.rb +219 -0
  273. data/lib/shopify_api/rest/resources/2022_01/product_listing.rb +192 -0
  274. data/lib/shopify_api/rest/resources/2022_01/product_resource_feedback.rb +84 -0
  275. data/lib/shopify_api/rest/resources/2022_01/province.rb +128 -0
  276. data/lib/shopify_api/rest/resources/2022_01/recurring_application_charge.rb +163 -0
  277. data/lib/shopify_api/rest/resources/2022_01/redirect.rb +135 -0
  278. data/lib/shopify_api/rest/resources/2022_01/refund.rb +147 -0
  279. data/lib/shopify_api/rest/resources/2022_01/report.rb +117 -0
  280. data/lib/shopify_api/rest/resources/2022_01/resource_feedback.rb +69 -0
  281. data/lib/shopify_api/rest/resources/2022_01/script_tag.rb +151 -0
  282. data/lib/shopify_api/rest/resources/2022_01/shipping_zone.rb +79 -0
  283. data/lib/shopify_api/rest/resources/2022_01/shop.rb +214 -0
  284. data/lib/shopify_api/rest/resources/2022_01/smart_collection.rb +212 -0
  285. data/lib/shopify_api/rest/resources/2022_01/storefront_access_token.rb +83 -0
  286. data/lib/shopify_api/rest/resources/2022_01/tender_transaction.rb +89 -0
  287. data/lib/shopify_api/rest/resources/2022_01/theme.rb +116 -0
  288. data/lib/shopify_api/rest/resources/2022_01/transaction.rb +177 -0
  289. data/lib/shopify_api/rest/resources/2022_01/usage_charge.rb +93 -0
  290. data/lib/shopify_api/rest/resources/2022_01/user.rb +134 -0
  291. data/lib/shopify_api/rest/resources/2022_01/variant.rb +204 -0
  292. data/lib/shopify_api/rest/resources/2022_01/webhook.rb +164 -0
  293. data/lib/shopify_api/rest/resources/2022_04/abandoned_checkout.rb +186 -0
  294. data/lib/shopify_api/rest/resources/2022_04/access_scope.rb +54 -0
  295. data/lib/shopify_api/rest/resources/2022_04/android_pay_key.rb +73 -0
  296. data/lib/shopify_api/rest/resources/2022_04/apple_pay_certificate.rb +101 -0
  297. data/lib/shopify_api/rest/resources/2022_04/application_charge.rb +100 -0
  298. data/lib/shopify_api/rest/resources/2022_04/application_credit.rb +83 -0
  299. data/lib/shopify_api/rest/resources/2022_04/article.rb +254 -0
  300. data/lib/shopify_api/rest/resources/2022_04/asset.rb +114 -0
  301. data/lib/shopify_api/rest/resources/2022_04/assigned_fulfillment_order.rb +75 -0
  302. data/lib/shopify_api/rest/resources/2022_04/balance.rb +46 -0
  303. data/lib/shopify_api/rest/resources/2022_04/blog.rb +158 -0
  304. data/lib/shopify_api/rest/resources/2022_04/cancellation_request.rb +79 -0
  305. data/lib/shopify_api/rest/resources/2022_04/carrier_service.rb +112 -0
  306. data/lib/shopify_api/rest/resources/2022_04/checkout.rb +205 -0
  307. data/lib/shopify_api/rest/resources/2022_04/collect.rb +138 -0
  308. data/lib/shopify_api/rest/resources/2022_04/collection.rb +106 -0
  309. data/lib/shopify_api/rest/resources/2022_04/collection_listing.rb +151 -0
  310. data/lib/shopify_api/rest/resources/2022_04/comment.rb +279 -0
  311. data/lib/shopify_api/rest/resources/2022_04/country.rb +133 -0
  312. data/lib/shopify_api/rest/resources/2022_04/currency.rb +53 -0
  313. data/lib/shopify_api/rest/resources/2022_04/custom_collection.rb +183 -0
  314. data/lib/shopify_api/rest/resources/2022_04/customer.rb +291 -0
  315. data/lib/shopify_api/rest/resources/2022_04/customer_address.rb +197 -0
  316. data/lib/shopify_api/rest/resources/2022_04/customer_saved_search.rb +165 -0
  317. data/lib/shopify_api/rest/resources/2022_04/deprecated_api_call.rb +53 -0
  318. data/lib/shopify_api/rest/resources/2022_04/discount_code.rb +215 -0
  319. data/lib/shopify_api/rest/resources/2022_04/dispute.rb +107 -0
  320. data/lib/shopify_api/rest/resources/2022_04/draft_order.rb +269 -0
  321. data/lib/shopify_api/rest/resources/2022_04/event.rb +144 -0
  322. data/lib/shopify_api/rest/resources/2022_04/fulfillment.rb +194 -0
  323. data/lib/shopify_api/rest/resources/2022_04/fulfillment_event.rb +162 -0
  324. data/lib/shopify_api/rest/resources/2022_04/fulfillment_order.rb +277 -0
  325. data/lib/shopify_api/rest/resources/2022_04/fulfillment_request.rb +79 -0
  326. data/lib/shopify_api/rest/resources/2022_04/fulfillment_service.rb +126 -0
  327. data/lib/shopify_api/rest/resources/2022_04/gift_card.rb +203 -0
  328. data/lib/shopify_api/rest/resources/2022_04/gift_card_adjustment.rb +114 -0
  329. data/lib/shopify_api/rest/resources/2022_04/image.rb +153 -0
  330. data/lib/shopify_api/rest/resources/2022_04/inventory_item.rb +104 -0
  331. data/lib/shopify_api/rest/resources/2022_04/inventory_level.rb +175 -0
  332. data/lib/shopify_api/rest/resources/2022_04/location.rb +163 -0
  333. data/lib/shopify_api/rest/resources/2022_04/locations_for_move.rb +52 -0
  334. data/lib/shopify_api/rest/resources/2022_04/marketing_event.rb +205 -0
  335. data/lib/shopify_api/rest/resources/2022_04/metafield.rb +338 -0
  336. data/lib/shopify_api/rest/resources/2022_04/mobile_platform_application.rb +106 -0
  337. data/lib/shopify_api/rest/resources/2022_04/order.rb +469 -0
  338. data/lib/shopify_api/rest/resources/2022_04/order_risk.rb +131 -0
  339. data/lib/shopify_api/rest/resources/2022_04/page.rb +190 -0
  340. data/lib/shopify_api/rest/resources/2022_04/payment.rb +136 -0
  341. data/lib/shopify_api/rest/resources/2022_04/payment_gateway.rb +139 -0
  342. data/lib/shopify_api/rest/resources/2022_04/payment_transaction.rb +103 -0
  343. data/lib/shopify_api/rest/resources/2022_04/payout.rb +93 -0
  344. data/lib/shopify_api/rest/resources/2022_04/policy.rb +65 -0
  345. data/lib/shopify_api/rest/resources/2022_04/price_rule.rb +219 -0
  346. data/lib/shopify_api/rest/resources/2022_04/product.rb +219 -0
  347. data/lib/shopify_api/rest/resources/2022_04/product_listing.rb +192 -0
  348. data/lib/shopify_api/rest/resources/2022_04/product_resource_feedback.rb +84 -0
  349. data/lib/shopify_api/rest/resources/2022_04/province.rb +128 -0
  350. data/lib/shopify_api/rest/resources/2022_04/recurring_application_charge.rb +163 -0
  351. data/lib/shopify_api/rest/resources/2022_04/redirect.rb +135 -0
  352. data/lib/shopify_api/rest/resources/2022_04/refund.rb +147 -0
  353. data/lib/shopify_api/rest/resources/2022_04/report.rb +117 -0
  354. data/lib/shopify_api/rest/resources/2022_04/resource_feedback.rb +69 -0
  355. data/lib/shopify_api/rest/resources/2022_04/script_tag.rb +151 -0
  356. data/lib/shopify_api/rest/resources/2022_04/shipping_zone.rb +79 -0
  357. data/lib/shopify_api/rest/resources/2022_04/shop.rb +214 -0
  358. data/lib/shopify_api/rest/resources/2022_04/smart_collection.rb +212 -0
  359. data/lib/shopify_api/rest/resources/2022_04/storefront_access_token.rb +83 -0
  360. data/lib/shopify_api/rest/resources/2022_04/tender_transaction.rb +89 -0
  361. data/lib/shopify_api/rest/resources/2022_04/theme.rb +116 -0
  362. data/lib/shopify_api/rest/resources/2022_04/transaction.rb +177 -0
  363. data/lib/shopify_api/rest/resources/2022_04/usage_charge.rb +93 -0
  364. data/lib/shopify_api/rest/resources/2022_04/user.rb +134 -0
  365. data/lib/shopify_api/rest/resources/2022_04/variant.rb +204 -0
  366. data/lib/shopify_api/rest/resources/2022_04/webhook.rb +164 -0
  367. data/lib/shopify_api/utils/graphql_proxy.rb +52 -0
  368. data/lib/shopify_api/utils/hmac_validator.rb +34 -0
  369. data/lib/shopify_api/utils/http_utils.rb +17 -0
  370. data/lib/shopify_api/utils/session_utils.rb +135 -0
  371. data/lib/shopify_api/utils/verifiable_query.rb +18 -0
  372. data/lib/shopify_api/version.rb +3 -1
  373. data/lib/shopify_api/webhooks/handler.rb +15 -0
  374. data/lib/shopify_api/webhooks/register_result.rb +14 -0
  375. data/lib/shopify_api/webhooks/registration.rb +73 -0
  376. data/lib/shopify_api/webhooks/registrations/event_bridge.rb +61 -0
  377. data/lib/shopify_api/webhooks/registrations/http.rb +66 -0
  378. data/lib/shopify_api/webhooks/registrations/pub_sub.rb +65 -0
  379. data/lib/shopify_api/webhooks/registry.rb +216 -0
  380. data/lib/shopify_api/webhooks/request.rb +56 -0
  381. data/lib/shopify_api.rb +18 -40
  382. data/service.yml +0 -3
  383. data/shipit.rubygems.yml +1 -1
  384. data/shopify_api.gemspec +28 -23
  385. data/sorbet/config +3 -0
  386. data/sorbet/rbi/gems/activesupport@7.0.1.rbi +654 -0
  387. data/sorbet/rbi/gems/addressable@2.8.0.rbi +290 -0
  388. data/sorbet/rbi/gems/ast@2.4.2.rbi +54 -0
  389. data/sorbet/rbi/gems/coderay@1.1.3.rbi +8 -0
  390. data/sorbet/rbi/gems/concurrent-ruby@1.1.9.rbi +2401 -0
  391. data/sorbet/rbi/gems/crack@0.4.5.rbi +57 -0
  392. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +185 -0
  393. data/sorbet/rbi/gems/fakefs@1.4.1.rbi +571 -0
  394. data/sorbet/rbi/gems/hash_diff@1.0.0.rbi +47 -0
  395. data/sorbet/rbi/gems/hashdiff@1.0.1.rbi +82 -0
  396. data/sorbet/rbi/gems/httparty@0.20.0.rbi +573 -0
  397. data/sorbet/rbi/gems/i18n@1.8.11.rbi +25 -0
  398. data/sorbet/rbi/gems/jwt@2.3.0.rbi +437 -0
  399. data/sorbet/rbi/gems/method_source@1.0.0.rbi +8 -0
  400. data/sorbet/rbi/gems/mime-types-data@3.2022.0105.rbi +73 -0
  401. data/sorbet/rbi/gems/mime-types@3.4.1.rbi +295 -0
  402. data/sorbet/rbi/gems/minitest@5.15.0.rbi +541 -0
  403. data/sorbet/rbi/gems/mocha@1.13.0.rbi +986 -0
  404. data/sorbet/rbi/gems/multi_xml@0.6.0.rbi +36 -0
  405. data/sorbet/rbi/gems/oj@3.13.11.rbi +274 -0
  406. data/sorbet/rbi/gems/openssl@3.0.0.rbi +581 -0
  407. data/sorbet/rbi/gems/parallel@1.21.0.rbi +113 -0
  408. data/sorbet/rbi/gems/parser@3.1.0.0.rbi +1741 -0
  409. data/sorbet/rbi/gems/pry@0.14.1.rbi +8 -0
  410. data/sorbet/rbi/gems/public_suffix@4.0.6.rbi +145 -0
  411. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +157 -0
  412. data/sorbet/rbi/gems/rake@13.0.6.rbi +814 -0
  413. data/sorbet/rbi/gems/rbi@0.0.11.rbi +1646 -0
  414. data/sorbet/rbi/gems/regexp_parser@2.2.0.rbi +1130 -0
  415. data/sorbet/rbi/gems/rexml@3.2.5.rbi +709 -0
  416. data/sorbet/rbi/gems/rubocop-ast@1.15.1.rbi +1921 -0
  417. data/sorbet/rbi/gems/rubocop-shopify@2.4.0.rbi +8 -0
  418. data/sorbet/rbi/gems/rubocop-sorbet@0.6.5.rbi +295 -0
  419. data/sorbet/rbi/gems/rubocop@1.25.1.rbi +13507 -0
  420. data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +405 -0
  421. data/sorbet/rbi/gems/securerandom@0.1.1.rbi +10 -0
  422. data/sorbet/rbi/gems/spoom@1.1.8.rbi +1252 -0
  423. data/sorbet/rbi/gems/tapioca@0.6.3.rbi +1238 -0
  424. data/sorbet/rbi/gems/thor@1.2.1.rbi +844 -0
  425. data/sorbet/rbi/gems/tzinfo@2.0.4.rbi +858 -0
  426. data/sorbet/rbi/gems/unicode-display_width@2.1.0.rbi +26 -0
  427. data/sorbet/rbi/gems/unparser@0.6.3.rbi +1816 -0
  428. data/sorbet/rbi/gems/webmock@3.14.0.rbi +683 -0
  429. data/sorbet/rbi/gems/webrick@1.7.0.rbi +601 -0
  430. data/sorbet/rbi/gems/yard-sorbet@0.6.1.rbi +199 -0
  431. data/sorbet/rbi/gems/yard@0.9.27.rbi +4145 -0
  432. data/sorbet/rbi/gems/zeitwerk@2.5.4.rbi +200 -0
  433. data/sorbet/rbi/shims/fakefs.rbi +1 -0
  434. data/sorbet/rbi/shims/openssl.rb +3 -0
  435. data/sorbet/rbi/todo.rbi +9 -0
  436. data/sorbet/tapioca/config.yml +4 -0
  437. data/sorbet/tapioca/require.rb +20 -0
  438. metadata +511 -356
  439. data/.document +0 -5
  440. data/.gitignore +0 -14
  441. data/.rubocop_todo.yml +0 -75
  442. data/CONTRIBUTORS +0 -3
  443. data/Gemfile_ar41 +0 -5
  444. data/Gemfile_ar50 +0 -5
  445. data/Gemfile_ar51 +0 -5
  446. data/Gemfile_ar60 +0 -5
  447. data/Gemfile_ar_main +0 -5
  448. data/docker-compose.yml +0 -13
  449. data/docs/_config.yml +0 -1
  450. data/docs/_includes/footer.html +0 -28
  451. data/docs/_includes/head.html +0 -28
  452. data/docs/_layouts/index.html +0 -57
  453. data/docs/graphql.md +0 -241
  454. data/docs/index.md +0 -639
  455. data/lib/active_resource/connection_ext.rb +0 -11
  456. data/lib/active_resource/detailed_log_subscriber.rb +0 -55
  457. data/lib/active_resource/json_errors.rb +0 -37
  458. data/lib/shopify_api/api_access.rb +0 -57
  459. data/lib/shopify_api/api_version.rb +0 -206
  460. data/lib/shopify_api/connection.rb +0 -36
  461. data/lib/shopify_api/countable.rb +0 -15
  462. data/lib/shopify_api/disable_prefix_check.rb +0 -31
  463. data/lib/shopify_api/events.rb +0 -8
  464. data/lib/shopify_api/graphql/http_client.rb +0 -22
  465. data/lib/shopify_api/graphql/railtie.rb +0 -17
  466. data/lib/shopify_api/graphql/task.rake +0 -100
  467. data/lib/shopify_api/graphql.rb +0 -103
  468. data/lib/shopify_api/hmac_params.rb +0 -33
  469. data/lib/shopify_api/limits.rb +0 -77
  470. data/lib/shopify_api/message_enricher.rb +0 -25
  471. data/lib/shopify_api/meta.rb +0 -14
  472. data/lib/shopify_api/metafields.rb +0 -21
  473. data/lib/shopify_api/paginated_collection.rb +0 -69
  474. data/lib/shopify_api/pagination_link_headers.rb +0 -34
  475. data/lib/shopify_api/resources/abandoned_checkout.rb +0 -7
  476. data/lib/shopify_api/resources/access_scope.rb +0 -10
  477. data/lib/shopify_api/resources/access_token.rb +0 -9
  478. data/lib/shopify_api/resources/address.rb +0 -5
  479. data/lib/shopify_api/resources/announcement.rb +0 -5
  480. data/lib/shopify_api/resources/api_permission.rb +0 -9
  481. data/lib/shopify_api/resources/application_charge.rb +0 -16
  482. data/lib/shopify_api/resources/application_credit.rb +0 -5
  483. data/lib/shopify_api/resources/array_base.rb +0 -13
  484. data/lib/shopify_api/resources/article.rb +0 -22
  485. data/lib/shopify_api/resources/asset.rb +0 -101
  486. data/lib/shopify_api/resources/assigned_fulfillment_order.rb +0 -16
  487. data/lib/shopify_api/resources/base.rb +0 -166
  488. data/lib/shopify_api/resources/billing_address.rb +0 -5
  489. data/lib/shopify_api/resources/blog.rb +0 -11
  490. data/lib/shopify_api/resources/carrier_service.rb +0 -5
  491. data/lib/shopify_api/resources/cart.rb +0 -5
  492. data/lib/shopify_api/resources/checkout.rb +0 -30
  493. data/lib/shopify_api/resources/collect.rb +0 -7
  494. data/lib/shopify_api/resources/collection.rb +0 -14
  495. data/lib/shopify_api/resources/collection_listing.rb +0 -19
  496. data/lib/shopify_api/resources/collection_publication.rb +0 -10
  497. data/lib/shopify_api/resources/comment.rb +0 -24
  498. data/lib/shopify_api/resources/country.rb +0 -5
  499. data/lib/shopify_api/resources/currency.rb +0 -6
  500. data/lib/shopify_api/resources/custom_collection.rb +0 -20
  501. data/lib/shopify_api/resources/customer.rb +0 -30
  502. data/lib/shopify_api/resources/customer_group.rb +0 -6
  503. data/lib/shopify_api/resources/customer_invite.rb +0 -5
  504. data/lib/shopify_api/resources/customer_saved_search.rb +0 -12
  505. data/lib/shopify_api/resources/discount_code.rb +0 -10
  506. data/lib/shopify_api/resources/discount_code_batch.rb +0 -34
  507. data/lib/shopify_api/resources/draft_order.rb +0 -15
  508. data/lib/shopify_api/resources/draft_order_invoice.rb +0 -5
  509. data/lib/shopify_api/resources/event.rb +0 -9
  510. data/lib/shopify_api/resources/fulfillment.rb +0 -56
  511. data/lib/shopify_api/resources/fulfillment_event.rb +0 -16
  512. data/lib/shopify_api/resources/fulfillment_order.rb +0 -151
  513. data/lib/shopify_api/resources/fulfillment_order_locations_for_move.rb +0 -5
  514. data/lib/shopify_api/resources/fulfillment_request.rb +0 -16
  515. data/lib/shopify_api/resources/fulfillment_service.rb +0 -5
  516. data/lib/shopify_api/resources/fulfillment_v2.rb +0 -21
  517. data/lib/shopify_api/resources/gift_card.rb +0 -8
  518. data/lib/shopify_api/resources/image.rb +0 -17
  519. data/lib/shopify_api/resources/inventory_item.rb +0 -6
  520. data/lib/shopify_api/resources/inventory_level.rb +0 -54
  521. data/lib/shopify_api/resources/line_item.rb +0 -15
  522. data/lib/shopify_api/resources/location.rb +0 -8
  523. data/lib/shopify_api/resources/marketing_event.rb +0 -11
  524. data/lib/shopify_api/resources/metafield.rb +0 -14
  525. data/lib/shopify_api/resources/note_attribute.rb +0 -5
  526. data/lib/shopify_api/resources/option.rb +0 -5
  527. data/lib/shopify_api/resources/order.rb +0 -44
  528. data/lib/shopify_api/resources/order_risk.rb +0 -9
  529. data/lib/shopify_api/resources/page.rb +0 -7
  530. data/lib/shopify_api/resources/payment.rb +0 -7
  531. data/lib/shopify_api/resources/payment_details.rb +0 -5
  532. data/lib/shopify_api/resources/ping.rb +0 -3
  533. data/lib/shopify_api/resources/policy.rb +0 -8
  534. data/lib/shopify_api/resources/price_rule.rb +0 -8
  535. data/lib/shopify_api/resources/product.rb +0 -59
  536. data/lib/shopify_api/resources/product_listing.rb +0 -17
  537. data/lib/shopify_api/resources/product_publication.rb +0 -10
  538. data/lib/shopify_api/resources/province.rb +0 -6
  539. data/lib/shopify_api/resources/publication.rb +0 -5
  540. data/lib/shopify_api/resources/receipt.rb +0 -5
  541. data/lib/shopify_api/resources/recurring_application_charge.rb +0 -34
  542. data/lib/shopify_api/resources/redirect.rb +0 -5
  543. data/lib/shopify_api/resources/refund.rb +0 -15
  544. data/lib/shopify_api/resources/report.rb +0 -5
  545. data/lib/shopify_api/resources/resource_feedback.rb +0 -19
  546. data/lib/shopify_api/resources/rule.rb +0 -5
  547. data/lib/shopify_api/resources/script_tag.rb +0 -5
  548. data/lib/shopify_api/resources/shipping_address.rb +0 -5
  549. data/lib/shopify_api/resources/shipping_line.rb +0 -5
  550. data/lib/shopify_api/resources/shipping_rate.rb +0 -7
  551. data/lib/shopify_api/resources/shipping_zone.rb +0 -5
  552. data/lib/shopify_api/resources/shop.rb +0 -26
  553. data/lib/shopify_api/resources/smart_collection.rb +0 -15
  554. data/lib/shopify_api/resources/storefront_access_token.rb +0 -5
  555. data/lib/shopify_api/resources/tax_line.rb +0 -5
  556. data/lib/shopify_api/resources/tax_service.rb +0 -5
  557. data/lib/shopify_api/resources/tender_transaction.rb +0 -6
  558. data/lib/shopify_api/resources/theme.rb +0 -5
  559. data/lib/shopify_api/resources/transaction.rb +0 -6
  560. data/lib/shopify_api/resources/usage_charge.rb +0 -6
  561. data/lib/shopify_api/resources/user.rb +0 -5
  562. data/lib/shopify_api/resources/variant.rb +0 -43
  563. data/lib/shopify_api/resources/webhook.rb +0 -5
  564. data/lib/shopify_api/resources.rb +0 -4
  565. data/lib/shopify_api/session.rb +0 -203
  566. data/lib/verify_docs.rb +0 -8
  567. data/test/abandoned_checkouts_test.rb +0 -29
  568. data/test/access_scope_test.rb +0 -23
  569. data/test/access_token_test.rb +0 -20
  570. data/test/active_resource/json_errors_test.rb +0 -19
  571. data/test/api_access_test.rb +0 -153
  572. data/test/api_permission_test.rb +0 -9
  573. data/test/api_version_test.rb +0 -157
  574. data/test/application_charge_test.rb +0 -82
  575. data/test/application_credit_test.rb +0 -36
  576. data/test/article_test.rb +0 -72
  577. data/test/asset_test.rb +0 -26
  578. data/test/assigned_fulfillment_order_test.rb +0 -78
  579. data/test/base_test.rb +0 -213
  580. data/test/blog_test.rb +0 -9
  581. data/test/carrier_service_test.rb +0 -18
  582. data/test/cart_test.rb +0 -14
  583. data/test/checkouts_test.rb +0 -77
  584. data/test/collect_test.rb +0 -10
  585. data/test/collection_listing_test.rb +0 -84
  586. data/test/collection_publication_test.rb +0 -40
  587. data/test/collection_test.rb +0 -50
  588. data/test/countable_test.rb +0 -14
  589. data/test/currency_test.rb +0 -21
  590. data/test/custom_collection_test.rb +0 -10
  591. data/test/customer_saved_search_test.rb +0 -37
  592. data/test/customer_test.rb +0 -58
  593. data/test/detailed_log_subscriber_test.rb +0 -143
  594. data/test/discount_code_batch_test.rb +0 -41
  595. data/test/discount_code_test.rb +0 -59
  596. data/test/draft_order_test.rb +0 -167
  597. data/test/fixtures/abandoned_checkout.json +0 -184
  598. data/test/fixtures/abandoned_checkouts.json +0 -186
  599. data/test/fixtures/access_scopes.json +0 -10
  600. data/test/fixtures/access_token_delegate.json +0 -4
  601. data/test/fixtures/api_versions.json +0 -38
  602. data/test/fixtures/apis.json +0 -42
  603. data/test/fixtures/application_charge.json +0 -16
  604. data/test/fixtures/application_charges.json +0 -57
  605. data/test/fixtures/application_credit.json +0 -12
  606. data/test/fixtures/application_credits.json +0 -24
  607. data/test/fixtures/article.json +0 -15
  608. data/test/fixtures/articles.json +0 -39
  609. data/test/fixtures/asset.json +0 -9
  610. data/test/fixtures/assets.json +0 -136
  611. data/test/fixtures/assigned_fulfillment_orders.json +0 -80
  612. data/test/fixtures/authors.json +0 -1
  613. data/test/fixtures/blog.json +0 -13
  614. data/test/fixtures/blogs.json +0 -13
  615. data/test/fixtures/carrier_service.json +0 -9
  616. data/test/fixtures/carts.json +0 -43
  617. data/test/fixtures/checkout.json +0 -160
  618. data/test/fixtures/checkouts.json +0 -162
  619. data/test/fixtures/collect.json +0 -12
  620. data/test/fixtures/collection.json +0 -17
  621. data/test/fixtures/collection_listing.json +0 -11
  622. data/test/fixtures/collection_listing_product_ids.json +0 -1
  623. data/test/fixtures/collection_listing_product_ids2.json +0 -1
  624. data/test/fixtures/collection_listings.json +0 -13
  625. data/test/fixtures/collection_products.json +0 -47
  626. data/test/fixtures/collection_publication.json +0 -11
  627. data/test/fixtures/collection_publications.json +0 -13
  628. data/test/fixtures/currencies.json +0 -25
  629. data/test/fixtures/custom_collection.json +0 -17
  630. data/test/fixtures/customer_invite.json +0 -9
  631. data/test/fixtures/customer_saved_search.json +0 -9
  632. data/test/fixtures/customer_saved_search_customers.json +0 -60
  633. data/test/fixtures/customers.json +0 -59
  634. data/test/fixtures/customers_account_activation_url.json +0 -3
  635. data/test/fixtures/customers_search.json +0 -60
  636. data/test/fixtures/discount_code.json +0 -10
  637. data/test/fixtures/discount_code_batch.json +0 -14
  638. data/test/fixtures/discount_code_batch_discount_codes.json +0 -21
  639. data/test/fixtures/discount_codes.json +0 -12
  640. data/test/fixtures/draft_order.json +0 -159
  641. data/test/fixtures/draft_order_completed.json +0 -159
  642. data/test/fixtures/draft_order_invoice.json +0 -9
  643. data/test/fixtures/draft_orders.json +0 -161
  644. data/test/fixtures/engagement.json +0 -15
  645. data/test/fixtures/events.json +0 -31
  646. data/test/fixtures/fulfillment.json +0 -49
  647. data/test/fixtures/fulfillment_event.json +0 -12
  648. data/test/fixtures/fulfillment_order.json +0 -39
  649. data/test/fixtures/fulfillment_order_locations_for_move.json +0 -18
  650. data/test/fixtures/fulfillment_orders.json +0 -80
  651. data/test/fixtures/fulfillment_request.json +0 -28
  652. data/test/fixtures/fulfillment_service.json +0 -10
  653. data/test/fixtures/fulfillments.json +0 -53
  654. data/test/fixtures/gift_card.json +0 -20
  655. data/test/fixtures/gift_card_disabled.json +0 -20
  656. data/test/fixtures/graphql/2019-10.json +0 -1083
  657. data/test/fixtures/graphql/dummy_schema.rb +0 -16
  658. data/test/fixtures/graphql/unstable.json +0 -1083
  659. data/test/fixtures/image.json +0 -10
  660. data/test/fixtures/images.json +0 -20
  661. data/test/fixtures/inventory_level.json +0 -7
  662. data/test/fixtures/inventory_levels.json +0 -24
  663. data/test/fixtures/marketing_event.json +0 -28
  664. data/test/fixtures/marketing_events.json +0 -54
  665. data/test/fixtures/metafield.json +0 -12
  666. data/test/fixtures/metafields.json +0 -34
  667. data/test/fixtures/order.json +0 -297
  668. data/test/fixtures/order_risk.json +0 -14
  669. data/test/fixtures/order_risks.json +0 -28
  670. data/test/fixtures/order_with_properties.json +0 -373
  671. data/test/fixtures/orders.json +0 -299
  672. data/test/fixtures/payment.json +0 -7
  673. data/test/fixtures/payments.json +0 -9
  674. data/test/fixtures/ping/conversation.json +0 -1
  675. data/test/fixtures/ping/failed_delivery_confirmation.json +0 -1
  676. data/test/fixtures/ping/message.json +0 -1
  677. data/test/fixtures/ping/successful_delivery_confirmation.json +0 -1
  678. data/test/fixtures/policies.json +0 -8
  679. data/test/fixtures/price_rule.json +0 -27
  680. data/test/fixtures/price_rules.json +0 -28
  681. data/test/fixtures/product.json +0 -116
  682. data/test/fixtures/product_listing.json +0 -86
  683. data/test/fixtures/product_listing_product_ids.json +0 -1
  684. data/test/fixtures/product_listing_product_ids2.json +0 -1
  685. data/test/fixtures/product_listings.json +0 -174
  686. data/test/fixtures/product_publication.json +0 -11
  687. data/test/fixtures/product_publications.json +0 -13
  688. data/test/fixtures/publications.json +0 -9
  689. data/test/fixtures/recurring_application_charge.json +0 -22
  690. data/test/fixtures/recurring_application_charge_adjustment.json +0 -5
  691. data/test/fixtures/recurring_application_charges.json +0 -106
  692. data/test/fixtures/redirect.json +0 -7
  693. data/test/fixtures/refund.json +0 -112
  694. data/test/fixtures/report.json +0 -9
  695. data/test/fixtures/reports.json +0 -11
  696. data/test/fixtures/script_tag.json +0 -10
  697. data/test/fixtures/script_tags.json +0 -18
  698. data/test/fixtures/shipping_rates.json +0 -12
  699. data/test/fixtures/shipping_zones.json +0 -315
  700. data/test/fixtures/shop.json +0 -26
  701. data/test/fixtures/smart_collection.json +0 -21
  702. data/test/fixtures/smart_collection_products.json +0 -155
  703. data/test/fixtures/storefront_access_token.json +0 -9
  704. data/test/fixtures/storefront_access_tokens.json +0 -18
  705. data/test/fixtures/tags.json +0 -1
  706. data/test/fixtures/tax_service.json +0 -9
  707. data/test/fixtures/tender_transactions.json +0 -52
  708. data/test/fixtures/transaction.json +0 -29
  709. data/test/fixtures/usage_charge.json +0 -11
  710. data/test/fixtures/usage_charges.json +0 -23
  711. data/test/fixtures/user.json +0 -21
  712. data/test/fixtures/users.json +0 -42
  713. data/test/fixtures/variant.json +0 -23
  714. data/test/fixtures/variants.json +0 -88
  715. data/test/fixtures/webhook.json +0 -10
  716. data/test/fixtures/webhooks.json +0 -18
  717. data/test/fulfillment_event_test.rb +0 -74
  718. data/test/fulfillment_order_test.rb +0 -530
  719. data/test/fulfillment_order_test_helper.rb +0 -8
  720. data/test/fulfillment_request_test.rb +0 -35
  721. data/test/fulfillment_service_test.rb +0 -18
  722. data/test/fulfillment_test.rb +0 -239
  723. data/test/fulfillment_v2_test.rb +0 -66
  724. data/test/gift_card_test.rb +0 -24
  725. data/test/graphql/http_client_test.rb +0 -26
  726. data/test/graphql_test.rb +0 -190
  727. data/test/hmac_params_test.rb +0 -25
  728. data/test/image_test.rb +0 -41
  729. data/test/inventory_level_test.rb +0 -68
  730. data/test/lib/webmock_extensions/last_request.rb +0 -16
  731. data/test/limits_test.rb +0 -39
  732. data/test/location_test.rb +0 -15
  733. data/test/marketing_event_test.rb +0 -68
  734. data/test/message_enricher_test.rb +0 -45
  735. data/test/meta_test.rb +0 -47
  736. data/test/metafield_test.rb +0 -56
  737. data/test/order_risk_test.rb +0 -47
  738. data/test/order_test.rb +0 -140
  739. data/test/pagination_test.rb +0 -290
  740. data/test/payment_test.rb +0 -19
  741. data/test/policy_test.rb +0 -20
  742. data/test/price_rule_test.rb +0 -70
  743. data/test/product_listing_test.rb +0 -97
  744. data/test/product_publication_test.rb +0 -40
  745. data/test/product_test.rb +0 -111
  746. data/test/publication_test.rb +0 -12
  747. data/test/recurring_application_charge_test.rb +0 -204
  748. data/test/redirect_test.rb +0 -10
  749. data/test/refund_test.rb +0 -37
  750. data/test/report_test.rb +0 -37
  751. data/test/resource_feedback_test.rb +0 -43
  752. data/test/script_tag_test.rb +0 -31
  753. data/test/session_test.rb +0 -640
  754. data/test/shipping_rate_test.rb +0 -17
  755. data/test/shipping_zone_test.rb +0 -11
  756. data/test/shop_test.rb +0 -82
  757. data/test/smart_collection_test.rb +0 -11
  758. data/test/storefront_access_token_test.rb +0 -30
  759. data/test/tax_service_test.rb +0 -12
  760. data/test/tender_transaction_test.rb +0 -18
  761. data/test/test_helper.rb +0 -126
  762. data/test/transaction_test.rb +0 -18
  763. data/test/usage_charge_test.rb +0 -25
  764. data/test/user_test.rb +0 -18
  765. data/test/variant_test.rb +0 -73
  766. data/test/webhook_test.rb +0 -24
@@ -0,0 +1,1816 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `unparser` gem.
5
+ # Please instead update this file by running `bin/tapioca gem unparser`.
6
+
7
+ module Unparser
8
+ class << self
9
+ def buffer(source, identification = T.unsafe(nil)); end
10
+ def parse(source); end
11
+ def parse_either(source); end
12
+ def parse_with_comments(source); end
13
+ def parser; end
14
+ def unparse(node, comment_array = T.unsafe(nil)); end
15
+ def unparse_either(node); end
16
+ def unparse_validate(node, comment_array = T.unsafe(nil)); end
17
+ end
18
+ end
19
+
20
+ module Unparser::AST
21
+ class << self
22
+ def local_variable_assignments(node); end
23
+ def local_variable_reads(node); end
24
+ def not_close_scope?(node); end
25
+ def not_reset_scope?(node); end
26
+ end
27
+ end
28
+
29
+ Unparser::AST::ASSIGN_NODES = T.let(T.unsafe(nil), Set)
30
+ Unparser::AST::CLOSE_NODES = T.let(T.unsafe(nil), Array)
31
+
32
+ class Unparser::AST::Enumerator
33
+ include ::Enumerable
34
+ include ::Unparser::Equalizer::Methods
35
+ include ::Unparser::Adamantium
36
+ include ::Unparser::Adamantium::InstanceMethods
37
+ extend ::Unparser::Adamantium::ModuleMethods
38
+ extend ::Unparser::Adamantium::ClassMethods
39
+
40
+ def each(&block); end
41
+ def type(type); end
42
+ def types(types); end
43
+
44
+ class << self
45
+ def new(node, controller = T.unsafe(nil)); end
46
+
47
+ private
48
+
49
+ def set(enumerable); end
50
+ def type(node, type); end
51
+ end
52
+ end
53
+
54
+ Unparser::AST::FIRST_CHILD = T.let(T.unsafe(nil), Proc)
55
+ Unparser::AST::INHERIT_NODES = T.let(T.unsafe(nil), Array)
56
+
57
+ class Unparser::AST::LocalVariableScope
58
+ include ::Unparser::Equalizer::Methods
59
+ include ::Unparser::Adamantium
60
+ include ::Unparser::Adamantium::InstanceMethods
61
+ include ::Enumerable
62
+ extend ::Unparser::Adamantium::ModuleMethods
63
+ extend ::Unparser::Adamantium::ClassMethods
64
+
65
+ def initialize(node); end
66
+
67
+ def first_assignment?(node); end
68
+ def first_assignment_in?(left, right); end
69
+ def local_variable_defined_for_node?(node, name); end
70
+
71
+ private
72
+
73
+ def match(needle); end
74
+ end
75
+
76
+ class Unparser::AST::LocalVariableScopeEnumerator
77
+ include ::Enumerable
78
+
79
+ def initialize; end
80
+
81
+ def each(node, &block); end
82
+
83
+ private
84
+
85
+ def current; end
86
+ def define(name); end
87
+ def enter(node); end
88
+ def leave(node); end
89
+ def pop; end
90
+ def push_inherit; end
91
+ def push_reset; end
92
+ def visit(node, &block); end
93
+
94
+ class << self
95
+ def each(node, &block); end
96
+ end
97
+ end
98
+
99
+ Unparser::AST::RESET_NODES = T.let(T.unsafe(nil), Array)
100
+ Unparser::AST::TAUTOLOGY = T.let(T.unsafe(nil), Proc)
101
+
102
+ class Unparser::AST::Walker
103
+ include ::Unparser::Equalizer::Methods
104
+
105
+ def call(node); end
106
+
107
+ class << self
108
+ def call(node, controller = T.unsafe(nil), &block); end
109
+ end
110
+ end
111
+
112
+ module Unparser::AbstractType
113
+ mixes_in_class_methods ::Unparser::AbstractType::AbstractMethodDeclarations
114
+
115
+ class << self
116
+ private
117
+
118
+ def create_new_method(abstract_class); end
119
+ def included(descendant); end
120
+ end
121
+ end
122
+
123
+ module Unparser::AbstractType::AbstractMethodDeclarations
124
+ def abstract_method(*names); end
125
+ def abstract_singleton_method(*names); end
126
+
127
+ private
128
+
129
+ def create_abstract_instance_method(name); end
130
+ def create_abstract_singleton_method(name); end
131
+ end
132
+
133
+ module Unparser::Adamantium
134
+ include ::Unparser::Adamantium::InstanceMethods
135
+
136
+ mixes_in_class_methods ::Unparser::Adamantium::ModuleMethods
137
+ mixes_in_class_methods ::Unparser::Adamantium::ClassMethods
138
+
139
+ class << self
140
+ private
141
+
142
+ def included(descendant); end
143
+ end
144
+ end
145
+
146
+ module Unparser::Adamantium::ClassMethods
147
+ def new(*_arg0); end
148
+ end
149
+
150
+ module Unparser::Adamantium::InstanceMethods
151
+ def dup; end
152
+ def freeze; end
153
+
154
+ private
155
+
156
+ def memoized_method_cache; end
157
+ end
158
+
159
+ class Unparser::Adamantium::Memory
160
+ def initialize(values); end
161
+
162
+ def fetch(name); end
163
+ end
164
+
165
+ class Unparser::Adamantium::MethodBuilder
166
+ def initialize(descendant, method_name); end
167
+
168
+ def call; end
169
+
170
+ private
171
+
172
+ def assert_arity(arity); end
173
+ def create_memoized_method; end
174
+ def remove_original_method; end
175
+ def set_method_visibility; end
176
+ def visibility; end
177
+ end
178
+
179
+ class Unparser::Adamantium::MethodBuilder::BlockNotAllowedError < ::ArgumentError
180
+ def initialize(descendant, method); end
181
+ end
182
+
183
+ class Unparser::Adamantium::MethodBuilder::InvalidArityError < ::ArgumentError
184
+ def initialize(descendant, method, arity); end
185
+ end
186
+
187
+ module Unparser::Adamantium::ModuleMethods
188
+ def memoize(*methods); end
189
+ def memoized?(method_name); end
190
+ def unmemoized_instance_method(method_name); end
191
+
192
+ private
193
+
194
+ def memoize_method(method_name); end
195
+ def memoized_methods; end
196
+ end
197
+
198
+ class Unparser::Anima < ::Module
199
+ include ::Unparser::Equalizer::Methods
200
+ include ::Unparser::Adamantium
201
+ include ::Unparser::Adamantium::InstanceMethods
202
+ extend ::Unparser::Adamantium::ModuleMethods
203
+ extend ::Unparser::Adamantium::ClassMethods
204
+
205
+ def initialize(*names); end
206
+
207
+ def add(*names); end
208
+ def attribute_names(&block); end
209
+ def attributes; end
210
+ def attributes_hash(object); end
211
+ def initialize_instance(object, attribute_hash); end
212
+ def remove(*names); end
213
+
214
+ private
215
+
216
+ def assert_known_attributes(klass, attribute_hash); end
217
+ def included(descendant); end
218
+ def new(attributes); end
219
+ end
220
+
221
+ class Unparser::Anima::Attribute
222
+ include ::Unparser::Equalizer::Methods
223
+ include ::Unparser::Adamantium
224
+ include ::Unparser::Adamantium::InstanceMethods
225
+ extend ::Unparser::Adamantium::ModuleMethods
226
+ extend ::Unparser::Adamantium::ClassMethods
227
+
228
+ def initialize(name); end
229
+
230
+ def get(object); end
231
+ def instance_variable_name; end
232
+ def load(object, attributes); end
233
+ def name; end
234
+ def set(object, value); end
235
+ end
236
+
237
+ class Unparser::Anima::Error < ::RuntimeError
238
+ def initialize(klass, missing, unknown); end
239
+ end
240
+
241
+ Unparser::Anima::Error::FORMAT = T.let(T.unsafe(nil), String)
242
+
243
+ module Unparser::Anima::InstanceMethods
244
+ def initialize(attributes); end
245
+
246
+ def to_h; end
247
+ def with(attributes); end
248
+ end
249
+
250
+ class Unparser::Buffer
251
+ def initialize; end
252
+
253
+ def append(string); end
254
+ def append_without_prefix(string); end
255
+ def capture_content; end
256
+ def content; end
257
+ def fresh_line?; end
258
+ def indent; end
259
+ def nl; end
260
+ def root_indent; end
261
+ def unindent; end
262
+ def write(fragment); end
263
+
264
+ private
265
+
266
+ def prefix; end
267
+ end
268
+
269
+ Unparser::Buffer::INDENT_SPACE = T.let(T.unsafe(nil), String)
270
+ Unparser::Buffer::NL = T.let(T.unsafe(nil), String)
271
+
272
+ class Unparser::Builder < ::Parser::Builders::Default
273
+ def initialize; end
274
+ end
275
+
276
+ class Unparser::CLI
277
+ def initialize(arguments); end
278
+
279
+ def add_options(builder); end
280
+ def exit_status; end
281
+
282
+ private
283
+
284
+ def effective_targets; end
285
+ def process_target(target); end
286
+ def targets(file_name); end
287
+
288
+ class << self
289
+ def run(*arguments); end
290
+ end
291
+ end
292
+
293
+ Unparser::CLI::EXIT_FAILURE = T.let(T.unsafe(nil), Integer)
294
+ Unparser::CLI::EXIT_SUCCESS = T.let(T.unsafe(nil), Integer)
295
+
296
+ class Unparser::CLI::Target
297
+ include ::Unparser::AbstractType
298
+ extend ::Unparser::AbstractType::AbstractMethodDeclarations
299
+
300
+ class << self
301
+ def new(*args, &block); end
302
+ end
303
+ end
304
+
305
+ class Unparser::CLI::Target::Path < ::Unparser::CLI::Target
306
+ include ::Unparser::Equalizer::Methods
307
+
308
+ def literal_validation; end
309
+ def validation; end
310
+ end
311
+
312
+ class Unparser::CLI::Target::String
313
+ include ::Unparser::Equalizer::Methods
314
+
315
+ def literal_validation; end
316
+ def validation; end
317
+ end
318
+
319
+ class Unparser::Color
320
+ include ::Unparser::Equalizer::Methods
321
+ include ::Unparser::Adamantium
322
+ include ::Unparser::Adamantium::InstanceMethods
323
+ extend ::Unparser::Adamantium::ModuleMethods
324
+ extend ::Unparser::Adamantium::ClassMethods
325
+
326
+ def format(text); end
327
+ end
328
+
329
+ Unparser::Color::GREEN = T.let(T.unsafe(nil), Unparser::Color)
330
+ Unparser::Color::NONE = T.let(T.unsafe(nil), T.untyped)
331
+ Unparser::Color::RED = T.let(T.unsafe(nil), Unparser::Color)
332
+
333
+ class Unparser::Comments
334
+ def initialize(comments); end
335
+
336
+ def consume(node, source_part = T.unsafe(nil)); end
337
+ def source_range(*arguments); end
338
+ def take_all; end
339
+ def take_before(node, source_part); end
340
+ def take_eol_comments; end
341
+
342
+ private
343
+
344
+ def take_up_to_line(line); end
345
+ def take_while; end
346
+ def unshift_documents(comments); end
347
+
348
+ class << self
349
+ def source_range(node, part); end
350
+ end
351
+ end
352
+
353
+ class Unparser::Concord < ::Module
354
+ include ::Unparser::Equalizer::Methods
355
+ include ::Unparser::Adamantium
356
+ include ::Unparser::Adamantium::InstanceMethods
357
+ extend ::Unparser::Adamantium::ModuleMethods
358
+ extend ::Unparser::Adamantium::ClassMethods
359
+
360
+ def initialize(*names); end
361
+
362
+ def names; end
363
+
364
+ private
365
+
366
+ def define_equalizer; end
367
+ def define_initialize; end
368
+ def define_readers; end
369
+ def instance_variable_names; end
370
+ end
371
+
372
+ Unparser::Concord::MAX_NR_OF_OBJECTS = T.let(T.unsafe(nil), Integer)
373
+
374
+ class Unparser::Concord::Public < ::Unparser::Concord
375
+ def included(descendant); end
376
+ end
377
+
378
+ module Unparser::Constants; end
379
+ Unparser::Constants::BINARY_OPERATORS = T.let(T.unsafe(nil), Set)
380
+ Unparser::Constants::KEYWORDS = T.let(T.unsafe(nil), Set)
381
+ Unparser::Constants::K_ALIAS = T.let(T.unsafe(nil), String)
382
+ Unparser::Constants::K_AND = T.let(T.unsafe(nil), String)
383
+ Unparser::Constants::K_BEGIN = T.let(T.unsafe(nil), String)
384
+ Unparser::Constants::K_BREAK = T.let(T.unsafe(nil), String)
385
+ Unparser::Constants::K_CASE = T.let(T.unsafe(nil), String)
386
+ Unparser::Constants::K_CLASS = T.let(T.unsafe(nil), String)
387
+ Unparser::Constants::K_DEF = T.let(T.unsafe(nil), String)
388
+ Unparser::Constants::K_DEFINE = T.let(T.unsafe(nil), String)
389
+ Unparser::Constants::K_DEFINED = T.let(T.unsafe(nil), String)
390
+ Unparser::Constants::K_DO = T.let(T.unsafe(nil), String)
391
+ Unparser::Constants::K_EEND = T.let(T.unsafe(nil), String)
392
+ Unparser::Constants::K_ELSE = T.let(T.unsafe(nil), String)
393
+ Unparser::Constants::K_ELSIF = T.let(T.unsafe(nil), String)
394
+ Unparser::Constants::K_ENCODING = T.let(T.unsafe(nil), String)
395
+ Unparser::Constants::K_END = T.let(T.unsafe(nil), String)
396
+ Unparser::Constants::K_ENSURE = T.let(T.unsafe(nil), String)
397
+ Unparser::Constants::K_FALSE = T.let(T.unsafe(nil), String)
398
+ Unparser::Constants::K_FILE = T.let(T.unsafe(nil), String)
399
+ Unparser::Constants::K_FOR = T.let(T.unsafe(nil), String)
400
+ Unparser::Constants::K_IF = T.let(T.unsafe(nil), String)
401
+ Unparser::Constants::K_IN = T.let(T.unsafe(nil), String)
402
+ Unparser::Constants::K_MODULE = T.let(T.unsafe(nil), String)
403
+ Unparser::Constants::K_NEXT = T.let(T.unsafe(nil), String)
404
+ Unparser::Constants::K_NIL = T.let(T.unsafe(nil), String)
405
+ Unparser::Constants::K_NOT = T.let(T.unsafe(nil), String)
406
+ Unparser::Constants::K_OR = T.let(T.unsafe(nil), String)
407
+ Unparser::Constants::K_POSTEXE = T.let(T.unsafe(nil), String)
408
+ Unparser::Constants::K_PREEXE = T.let(T.unsafe(nil), String)
409
+ Unparser::Constants::K_REDO = T.let(T.unsafe(nil), String)
410
+ Unparser::Constants::K_RESCUE = T.let(T.unsafe(nil), String)
411
+ Unparser::Constants::K_RETRY = T.let(T.unsafe(nil), String)
412
+ Unparser::Constants::K_RETURN = T.let(T.unsafe(nil), String)
413
+ Unparser::Constants::K_SELF = T.let(T.unsafe(nil), String)
414
+ Unparser::Constants::K_SUPER = T.let(T.unsafe(nil), String)
415
+ Unparser::Constants::K_THEN = T.let(T.unsafe(nil), String)
416
+ Unparser::Constants::K_TRUE = T.let(T.unsafe(nil), String)
417
+ Unparser::Constants::K_UNDEF = T.let(T.unsafe(nil), String)
418
+ Unparser::Constants::K_UNLESS = T.let(T.unsafe(nil), String)
419
+ Unparser::Constants::K_UNTIL = T.let(T.unsafe(nil), String)
420
+ Unparser::Constants::K_WHEN = T.let(T.unsafe(nil), String)
421
+ Unparser::Constants::K_WHILE = T.let(T.unsafe(nil), String)
422
+ Unparser::Constants::K_YIELD = T.let(T.unsafe(nil), String)
423
+ Unparser::Constants::UNARY_OPERATORS = T.let(T.unsafe(nil), Set)
424
+
425
+ module Unparser::DSL
426
+ private
427
+
428
+ def children(*names); end
429
+ def define_child(name, index); end
430
+ def define_group(name, range); end
431
+ def define_remaining_children(names); end
432
+ end
433
+
434
+ class Unparser::Diff
435
+ include ::Unparser::Equalizer::Methods
436
+ include ::Unparser::Adamantium
437
+ include ::Unparser::Adamantium::InstanceMethods
438
+ extend ::Unparser::Adamantium::ModuleMethods
439
+ extend ::Unparser::Adamantium::ClassMethods
440
+
441
+ def colorized_diff(&block); end
442
+ def diff(&block); end
443
+
444
+ private
445
+
446
+ def diffs; end
447
+ def hunks; end
448
+ def max_length; end
449
+ def minimized_hunk; end
450
+
451
+ class << self
452
+ def build(old, new); end
453
+
454
+ private
455
+
456
+ def colorize_line(line); end
457
+ def lines(source); end
458
+ end
459
+ end
460
+
461
+ Unparser::Diff::ADDITION = T.let(T.unsafe(nil), String)
462
+ Unparser::Diff::DELETION = T.let(T.unsafe(nil), String)
463
+ Unparser::Diff::NEWLINE = T.let(T.unsafe(nil), String)
464
+ Unparser::EMPTY_ARRAY = T.let(T.unsafe(nil), Array)
465
+ Unparser::EMPTY_STRING = T.let(T.unsafe(nil), String)
466
+
467
+ class Unparser::Either
468
+ include ::Unparser::RequireBlock
469
+ include ::Unparser::Equalizer::Methods
470
+ include ::Unparser::Adamantium
471
+ include ::Unparser::Adamantium::InstanceMethods
472
+ extend ::Unparser::Adamantium::ModuleMethods
473
+ extend ::Unparser::Adamantium::ClassMethods
474
+
475
+ def left?; end
476
+ def right?; end
477
+
478
+ class << self
479
+ def wrap_error(*exceptions); end
480
+ end
481
+ end
482
+
483
+ class Unparser::Either::Left < ::Unparser::Either
484
+ def bind(&block); end
485
+ def either(left, _right); end
486
+ def fmap(&block); end
487
+ def from_left; end
488
+ def from_right; end
489
+ def lmap; end
490
+ end
491
+
492
+ class Unparser::Either::Right < ::Unparser::Either
493
+ def bind; end
494
+ def either(_left, right); end
495
+ def fmap; end
496
+ def from_left; end
497
+ def from_right; end
498
+ def lmap(&block); end
499
+ end
500
+
501
+ class Unparser::Emitter
502
+ include ::Unparser::NodeHelpers
503
+ include ::Unparser::Generation
504
+ include ::Unparser::Constants
505
+ include ::Unparser::AbstractType
506
+ include ::Unparser::Adamantium
507
+ include ::Unparser::Adamantium::InstanceMethods
508
+ include ::Unparser::Anima::InstanceMethods
509
+ include ::Unparser::Equalizer::Methods
510
+ extend ::Unparser::AbstractType::AbstractMethodDeclarations
511
+ extend ::Unparser::Adamantium::ModuleMethods
512
+ extend ::Unparser::Adamantium::ClassMethods
513
+ extend ::Unparser::DSL
514
+
515
+ def buffer; end
516
+ def comments; end
517
+ def dispatch(*_arg0); end
518
+ def emit_mlhs; end
519
+ def local_variable_scope; end
520
+ def node; end
521
+ def node_type; end
522
+
523
+ class << self
524
+ def anima; end
525
+ def emitter(buffer:, comments:, node:, local_variable_scope:); end
526
+ def new(*args, &block); end
527
+
528
+ private
529
+
530
+ def handle(*types); end
531
+ end
532
+ end
533
+
534
+ class Unparser::Emitter::Alias < ::Unparser::Emitter
535
+ private
536
+
537
+ def dispatch; end
538
+ def remaining_children; end
539
+ def source; end
540
+ def target; end
541
+ end
542
+
543
+ class Unparser::Emitter::Args < ::Unparser::Emitter
544
+ def emit_block_arguments; end
545
+ def emit_def_arguments; end
546
+ def emit_lambda_arguments; end
547
+
548
+ private
549
+
550
+ def emit_shadowargs; end
551
+ def normal_arguments(&block); end
552
+ def shadowargs(&block); end
553
+ end
554
+
555
+ class Unparser::Emitter::Argument < ::Unparser::Emitter
556
+ private
557
+
558
+ def dispatch; end
559
+ def name; end
560
+ def remaining_children; end
561
+ end
562
+
563
+ class Unparser::Emitter::Array < ::Unparser::Emitter
564
+ def emit_heredoc_reminders; end
565
+
566
+ private
567
+
568
+ def dispatch; end
569
+ def emitters(&block); end
570
+ end
571
+
572
+ class Unparser::Emitter::ArrayPattern < ::Unparser::Emitter
573
+ private
574
+
575
+ def dispatch; end
576
+ def emit_member(node); end
577
+ end
578
+
579
+ class Unparser::Emitter::Assignment < ::Unparser::Emitter
580
+ def emit_heredoc_reminders; end
581
+ def emit_left(*_arg0); end
582
+ def symbol_name; end
583
+
584
+ private
585
+
586
+ def dispatch; end
587
+ def emit_right; end
588
+ end
589
+
590
+ Unparser::Emitter::Assignment::BINARY_OPERATOR = T.let(T.unsafe(nil), Array)
591
+
592
+ class Unparser::Emitter::Assignment::Constant < ::Unparser::Emitter::Assignment
593
+ private
594
+
595
+ def base; end
596
+ def emit_left; end
597
+ def name; end
598
+ def remaining_children; end
599
+ def right; end
600
+ end
601
+
602
+ class Unparser::Emitter::Assignment::Variable < ::Unparser::Emitter::Assignment
603
+ private
604
+
605
+ def emit_left; end
606
+ def name; end
607
+ def remaining_children; end
608
+ def right; end
609
+ end
610
+
611
+ class Unparser::Emitter::Begin < ::Unparser::Emitter
612
+ def emit_heredoc_reminders; end
613
+
614
+ private
615
+
616
+ def body; end
617
+ def dispatch; end
618
+ def remaining_children; end
619
+ end
620
+
621
+ class Unparser::Emitter::Binary < ::Unparser::Emitter
622
+ private
623
+
624
+ def dispatch; end
625
+ def writer(&block); end
626
+ end
627
+
628
+ class Unparser::Emitter::BinaryAssign < ::Unparser::Emitter
629
+ def emit_heredoc_reminders; end
630
+
631
+ private
632
+
633
+ def dispatch; end
634
+ def expression; end
635
+ def remaining_children; end
636
+ def target; end
637
+ end
638
+
639
+ Unparser::Emitter::BinaryAssign::MAP = T.let(T.unsafe(nil), Hash)
640
+
641
+ class Unparser::Emitter::Block < ::Unparser::Emitter
642
+ private
643
+
644
+ def arguments; end
645
+ def body; end
646
+ def dispatch; end
647
+ def emit_block_arguments; end
648
+ def emit_lambda_arguments; end
649
+ def emit_send_target; end
650
+ def emit_target; end
651
+ def need_do?; end
652
+ def numblock?; end
653
+ def remaining_children; end
654
+ def target; end
655
+ def target_writer(&block); end
656
+ def write_close; end
657
+ def write_open; end
658
+ end
659
+
660
+ class Unparser::Emitter::BlockPass < ::Unparser::Emitter
661
+ private
662
+
663
+ def dispatch; end
664
+ def name; end
665
+ def remaining_children; end
666
+ end
667
+
668
+ class Unparser::Emitter::CBase < ::Unparser::Emitter
669
+ private
670
+
671
+ def dispatch; end
672
+ end
673
+
674
+ class Unparser::Emitter::Case < ::Unparser::Emitter
675
+ private
676
+
677
+ def condition; end
678
+ def dispatch; end
679
+ def emit_condition; end
680
+ def emit_else; end
681
+ def emit_whens; end
682
+ def remaining_children; end
683
+ def whens(&block); end
684
+ end
685
+
686
+ class Unparser::Emitter::CaseGuard < ::Unparser::Emitter
687
+ private
688
+
689
+ def condition; end
690
+ def dispatch; end
691
+ def remaining_children; end
692
+ end
693
+
694
+ Unparser::Emitter::CaseGuard::MAP = T.let(T.unsafe(nil), Hash)
695
+
696
+ class Unparser::Emitter::CaseMatch < ::Unparser::Emitter
697
+ private
698
+
699
+ def dispatch; end
700
+ def else_branch; end
701
+ def emit_else_branch; end
702
+ def patterns(&block); end
703
+ def remaining_children; end
704
+ def target; end
705
+ end
706
+
707
+ class Unparser::Emitter::Class < ::Unparser::Emitter
708
+ include ::Unparser::Emitter::LocalVariableRoot
709
+
710
+ def local_variable_scope(&block); end
711
+
712
+ private
713
+
714
+ def body; end
715
+ def dispatch; end
716
+ def emit_superclass; end
717
+ def name; end
718
+ def remaining_children; end
719
+ def superclass; end
720
+ end
721
+
722
+ class Unparser::Emitter::Const < ::Unparser::Emitter
723
+ private
724
+
725
+ def dispatch; end
726
+ def emit_scope; end
727
+ def name; end
728
+ def remaining_children; end
729
+ def scope; end
730
+ end
731
+
732
+ class Unparser::Emitter::ConstPattern < ::Unparser::Emitter
733
+ private
734
+
735
+ def const; end
736
+ def dispatch; end
737
+ def pattern; end
738
+ def remaining_children; end
739
+ end
740
+
741
+ class Unparser::Emitter::DStr < ::Unparser::Emitter
742
+ def emit_heredoc_reminders; end
743
+
744
+ private
745
+
746
+ def dispatch; end
747
+ end
748
+
749
+ class Unparser::Emitter::DSym < ::Unparser::Emitter
750
+ private
751
+
752
+ def dispatch; end
753
+ def emit_begin_child(component); end
754
+ def emit_str_child(value); end
755
+ end
756
+
757
+ class Unparser::Emitter::Def < ::Unparser::Emitter
758
+ include ::Unparser::Emitter::LocalVariableRoot
759
+
760
+ def local_variable_scope(&block); end
761
+
762
+ private
763
+
764
+ def body(*_arg0); end
765
+ def dispatch; end
766
+ def emit_arguments; end
767
+ def emit_name(*_arg0); end
768
+ end
769
+
770
+ class Unparser::Emitter::Def::Instance < ::Unparser::Emitter::Def
771
+ private
772
+
773
+ def arguments; end
774
+ def body; end
775
+ def emit_name; end
776
+ def name; end
777
+ def remaining_children; end
778
+ end
779
+
780
+ class Unparser::Emitter::Def::Singleton < ::Unparser::Emitter::Def
781
+ private
782
+
783
+ def arguments; end
784
+ def body; end
785
+ def emit_name; end
786
+ def name; end
787
+ def remaining_children; end
788
+ def subject; end
789
+ def subject_without_parens?; end
790
+ end
791
+
792
+ class Unparser::Emitter::Defined < ::Unparser::Emitter
793
+ private
794
+
795
+ def dispatch; end
796
+ def remaining_children; end
797
+ def subject; end
798
+ end
799
+
800
+ class Unparser::Emitter::FlipFlop < ::Unparser::Emitter
801
+ def symbol_name; end
802
+
803
+ private
804
+
805
+ def dispatch; end
806
+ def left; end
807
+ def remaining_children; end
808
+ def right; end
809
+ end
810
+
811
+ Unparser::Emitter::FlipFlop::MAP = T.let(T.unsafe(nil), Hash)
812
+ Unparser::Emitter::FlipFlop::SYMBOLS = T.let(T.unsafe(nil), Hash)
813
+
814
+ class Unparser::Emitter::Float < ::Unparser::Emitter
815
+ private
816
+
817
+ def dispatch; end
818
+ def remaining_children; end
819
+ def value; end
820
+ end
821
+
822
+ Unparser::Emitter::Float::INFINITY = T.let(T.unsafe(nil), Float)
823
+ Unparser::Emitter::Float::NEG_INFINITY = T.let(T.unsafe(nil), Float)
824
+
825
+ class Unparser::Emitter::FlowModifier < ::Unparser::Emitter
826
+ def emit_heredoc_reminders; end
827
+
828
+ private
829
+
830
+ def dispatch; end
831
+ def emit_arguments; end
832
+ end
833
+
834
+ Unparser::Emitter::FlowModifier::MAP = T.let(T.unsafe(nil), Hash)
835
+
836
+ class Unparser::Emitter::For < ::Unparser::Emitter
837
+ private
838
+
839
+ def assignment; end
840
+ def body; end
841
+ def condition; end
842
+ def dispatch; end
843
+ def emit_condition; end
844
+ def remaining_children; end
845
+ end
846
+
847
+ class Unparser::Emitter::Hash < ::Unparser::Emitter
848
+ def emit_heredoc_reminders; end
849
+ def emit_last_argument_hash; end
850
+
851
+ private
852
+
853
+ def dispatch; end
854
+ def emit_hash_body; end
855
+ def emit_heredoc_reminder_member(node); end
856
+ end
857
+
858
+ class Unparser::Emitter::HashPattern < ::Unparser::Emitter
859
+ def emit_const_pattern; end
860
+
861
+ private
862
+
863
+ def dispatch; end
864
+ def emit_hash_body; end
865
+ def emit_match_var(node); end
866
+ def emit_member(node); end
867
+ def emit_pair(node); end
868
+ def write_symbol_body(symbol); end
869
+ end
870
+
871
+ class Unparser::Emitter::Hookexe < ::Unparser::Emitter
872
+ private
873
+
874
+ def body; end
875
+ def dispatch; end
876
+ def remaining_children; end
877
+ end
878
+
879
+ Unparser::Emitter::Hookexe::MAP = T.let(T.unsafe(nil), Hash)
880
+
881
+ class Unparser::Emitter::If < ::Unparser::Emitter
882
+ def emit_ternary; end
883
+
884
+ private
885
+
886
+ def condition; end
887
+ def dispatch; end
888
+ def else_branch; end
889
+ def emit_condition; end
890
+ def emit_else_branch; end
891
+ def emit_if_branch; end
892
+ def emit_normal; end
893
+ def emit_postcondition; end
894
+ def if_branch; end
895
+ def keyword; end
896
+ def postcondition?; end
897
+ def remaining_children; end
898
+ def unless?; end
899
+ end
900
+
901
+ class Unparser::Emitter::InMatch < ::Unparser::Emitter
902
+ private
903
+
904
+ def dispatch; end
905
+ def pattern; end
906
+ def remaining_children; end
907
+ def target; end
908
+ end
909
+
910
+ class Unparser::Emitter::InPattern < ::Unparser::Emitter
911
+ private
912
+
913
+ def branch; end
914
+ def dispatch; end
915
+ def else_branch; end
916
+ def remaining_children; end
917
+ def target; end
918
+ def unless_guard; end
919
+ end
920
+
921
+ class Unparser::Emitter::Index < ::Unparser::Emitter
922
+ private
923
+
924
+ def dispatch; end
925
+ def emit_receiver; end
926
+ end
927
+
928
+ class Unparser::Emitter::Index::Assign < ::Unparser::Emitter::Index
929
+ def dispatch; end
930
+ def emit_heredoc_reminders; end
931
+ def emit_mlhs; end
932
+
933
+ private
934
+
935
+ def emit_operation(indices); end
936
+ end
937
+
938
+ Unparser::Emitter::Index::Assign::NO_VALUE_PARENT = T.let(T.unsafe(nil), Set)
939
+ Unparser::Emitter::Index::Assign::VALUE_RANGE = T.let(T.unsafe(nil), Range)
940
+
941
+ class Unparser::Emitter::Index::Reference < ::Unparser::Emitter::Index
942
+ private
943
+
944
+ def emit_operation; end
945
+ def indices(&block); end
946
+ end
947
+
948
+ class Unparser::Emitter::KWBegin < ::Unparser::Emitter
949
+ private
950
+
951
+ def dispatch; end
952
+ def emit_multiple_body; end
953
+ end
954
+
955
+ class Unparser::Emitter::KeywordOptional < ::Unparser::Emitter
956
+ private
957
+
958
+ def dispatch; end
959
+ def name; end
960
+ def remaining_children; end
961
+ def value; end
962
+ end
963
+
964
+ class Unparser::Emitter::KwSplat < ::Unparser::Emitter
965
+ private
966
+
967
+ def dispatch; end
968
+ def remaining_children; end
969
+ def subject; end
970
+ end
971
+
972
+ class Unparser::Emitter::Kwarg < ::Unparser::Emitter
973
+ private
974
+
975
+ def dispatch; end
976
+ def name; end
977
+ def remaining_children; end
978
+ end
979
+
980
+ class Unparser::Emitter::Kwargs < ::Unparser::Emitter
981
+ def dispatch; end
982
+ end
983
+
984
+ class Unparser::Emitter::Lambda < ::Unparser::Emitter
985
+ private
986
+
987
+ def dispatch; end
988
+ end
989
+
990
+ module Unparser::Emitter::LocalVariableRoot
991
+ def local_variable_scope; end
992
+
993
+ class << self
994
+ def included(descendant); end
995
+ end
996
+ end
997
+
998
+ class Unparser::Emitter::MASGN < ::Unparser::Emitter
999
+ private
1000
+
1001
+ def dispatch; end
1002
+ def remaining_children; end
1003
+ def source; end
1004
+ def target; end
1005
+ end
1006
+
1007
+ class Unparser::Emitter::MLHS < ::Unparser::Emitter
1008
+ private
1009
+
1010
+ def dispatch; end
1011
+ def emit_many; end
1012
+ def emit_one_child_mlhs; end
1013
+ end
1014
+
1015
+ Unparser::Emitter::MLHS::NO_COMMA = T.let(T.unsafe(nil), Array)
1016
+ class Unparser::Emitter::Match < ::Unparser::Emitter; end
1017
+
1018
+ class Unparser::Emitter::Match::CurrentLine < ::Unparser::Emitter::Match
1019
+ private
1020
+
1021
+ def dispatch; end
1022
+ def regexp; end
1023
+ def remaining_children; end
1024
+ end
1025
+
1026
+ class Unparser::Emitter::Match::Lvasgn < ::Unparser::Emitter::Match
1027
+ private
1028
+
1029
+ def dispatch; end
1030
+ def lvasgn; end
1031
+ def regexp; end
1032
+ def remaining_children; end
1033
+ end
1034
+
1035
+ class Unparser::Emitter::MatchAlt < ::Unparser::Emitter
1036
+ private
1037
+
1038
+ def dispatch; end
1039
+ def left; end
1040
+ def remaining_children; end
1041
+ def right; end
1042
+ end
1043
+
1044
+ class Unparser::Emitter::MatchAs < ::Unparser::Emitter
1045
+ private
1046
+
1047
+ def dispatch; end
1048
+ def left; end
1049
+ def remaining_children; end
1050
+ def right; end
1051
+ end
1052
+
1053
+ class Unparser::Emitter::MatchPattern < ::Unparser::Emitter
1054
+ private
1055
+
1056
+ def dispatch; end
1057
+ def pattern; end
1058
+ def remaining_children; end
1059
+ def target; end
1060
+ end
1061
+
1062
+ class Unparser::Emitter::MatchRest < ::Unparser::Emitter
1063
+ def emit_array_pattern; end
1064
+ def emit_hash_pattern; end
1065
+
1066
+ private
1067
+
1068
+ def emit_match_var; end
1069
+ def match_var; end
1070
+ def remaining_children; end
1071
+ end
1072
+
1073
+ class Unparser::Emitter::MatchVar < ::Unparser::Emitter
1074
+ private
1075
+
1076
+ def dispatch; end
1077
+ def name; end
1078
+ def remaining_children; end
1079
+ end
1080
+
1081
+ class Unparser::Emitter::Module < ::Unparser::Emitter
1082
+ include ::Unparser::Emitter::LocalVariableRoot
1083
+
1084
+ def local_variable_scope(&block); end
1085
+
1086
+ private
1087
+
1088
+ def body; end
1089
+ def dispatch; end
1090
+ def name; end
1091
+ def remaining_children; end
1092
+ end
1093
+
1094
+ class Unparser::Emitter::Morearg < ::Unparser::Emitter
1095
+ private
1096
+
1097
+ def dispatch; end
1098
+ def name; end
1099
+ def remaining_children; end
1100
+ end
1101
+
1102
+ Unparser::Emitter::Morearg::MAP = T.let(T.unsafe(nil), Hash)
1103
+ Unparser::Emitter::NO_INDENT = T.let(T.unsafe(nil), Array)
1104
+
1105
+ class Unparser::Emitter::NthRef < ::Unparser::Emitter
1106
+ private
1107
+
1108
+ def dispatch; end
1109
+ def name; end
1110
+ def remaining_children; end
1111
+ end
1112
+
1113
+ Unparser::Emitter::NthRef::PREFIX = T.let(T.unsafe(nil), String)
1114
+
1115
+ class Unparser::Emitter::OpAssign < ::Unparser::Emitter
1116
+ private
1117
+
1118
+ def dispatch; end
1119
+ def emit_operator; end
1120
+ def operator; end
1121
+ def remaining_children; end
1122
+ def target; end
1123
+ def value; end
1124
+ end
1125
+
1126
+ class Unparser::Emitter::Optarg < ::Unparser::Emitter
1127
+ private
1128
+
1129
+ def dispatch; end
1130
+ def name; end
1131
+ def remaining_children; end
1132
+ def value; end
1133
+ end
1134
+
1135
+ class Unparser::Emitter::Pair < ::Unparser::Emitter
1136
+ private
1137
+
1138
+ def colon?(key); end
1139
+ def dispatch; end
1140
+ def key; end
1141
+ def remaining_children; end
1142
+ def value; end
1143
+ end
1144
+
1145
+ Unparser::Emitter::Pair::BAREWORD = T.let(T.unsafe(nil), Regexp)
1146
+
1147
+ class Unparser::Emitter::Pin < ::Unparser::Emitter
1148
+ private
1149
+
1150
+ def dispatch; end
1151
+ def remaining_children; end
1152
+ def target; end
1153
+ end
1154
+
1155
+ class Unparser::Emitter::Post < ::Unparser::Emitter
1156
+ private
1157
+
1158
+ def body; end
1159
+ def condition; end
1160
+ def dispatch; end
1161
+ def remaining_children; end
1162
+ end
1163
+
1164
+ Unparser::Emitter::Post::MAP = T.let(T.unsafe(nil), Hash)
1165
+
1166
+ class Unparser::Emitter::Primitive < ::Unparser::Emitter
1167
+ private
1168
+
1169
+ def remaining_children; end
1170
+ def value; end
1171
+ end
1172
+
1173
+ class Unparser::Emitter::Primitive::Complex < ::Unparser::Emitter::Primitive
1174
+ private
1175
+
1176
+ def dispatch; end
1177
+ def emit_imaginary; end
1178
+ def imaginary_node; end
1179
+ end
1180
+
1181
+ Unparser::Emitter::Primitive::Complex::MAP = T.let(T.unsafe(nil), Hash)
1182
+ Unparser::Emitter::Primitive::Complex::RATIONAL_FORMAT = T.let(T.unsafe(nil), String)
1183
+
1184
+ class Unparser::Emitter::Primitive::Inspect < ::Unparser::Emitter::Primitive
1185
+ private
1186
+
1187
+ def dispatch; end
1188
+ end
1189
+
1190
+ class Unparser::Emitter::Primitive::Numeric < ::Unparser::Emitter::Primitive
1191
+ private
1192
+
1193
+ def dispatch; end
1194
+ end
1195
+
1196
+ class Unparser::Emitter::Primitive::Rational < ::Unparser::Emitter::Primitive
1197
+ private
1198
+
1199
+ def dispatch; end
1200
+ def write_rational(value); end
1201
+ end
1202
+
1203
+ Unparser::Emitter::Primitive::Rational::RATIONAL_FORMAT = T.let(T.unsafe(nil), String)
1204
+
1205
+ class Unparser::Emitter::Procarg < ::Unparser::Emitter
1206
+ private
1207
+
1208
+ def dispatch; end
1209
+ def needs_parens?; end
1210
+ end
1211
+
1212
+ Unparser::Emitter::Procarg::PARENS = T.let(T.unsafe(nil), Array)
1213
+ Unparser::Emitter::REGISTRY = T.let(T.unsafe(nil), Hash)
1214
+
1215
+ class Unparser::Emitter::Range < ::Unparser::Emitter
1216
+ def symbol_name; end
1217
+
1218
+ private
1219
+
1220
+ def begin_node; end
1221
+ def dispatch; end
1222
+ def end_node; end
1223
+ def remaining_children; end
1224
+ end
1225
+
1226
+ Unparser::Emitter::Range::SYMBOLS = T.let(T.unsafe(nil), Hash)
1227
+ Unparser::Emitter::Range::TOKENS = T.let(T.unsafe(nil), Hash)
1228
+
1229
+ class Unparser::Emitter::Regexp < ::Unparser::Emitter
1230
+ private
1231
+
1232
+ def body(&block); end
1233
+ def dispatch; end
1234
+ def emit_body(node); end
1235
+ def emit_options; end
1236
+ end
1237
+
1238
+ class Unparser::Emitter::Repetition < ::Unparser::Emitter
1239
+ private
1240
+
1241
+ def body; end
1242
+ def condition; end
1243
+ def dispatch; end
1244
+ def emit_keyword; end
1245
+ def emit_normal; end
1246
+ def emit_postcontrol; end
1247
+ def postcontrol?; end
1248
+ def remaining_children; end
1249
+ end
1250
+
1251
+ Unparser::Emitter::Repetition::MAP = T.let(T.unsafe(nil), Hash)
1252
+
1253
+ class Unparser::Emitter::Rescue < ::Unparser::Emitter
1254
+ private
1255
+
1256
+ def dispatch; end
1257
+ end
1258
+
1259
+ class Unparser::Emitter::Restarg < ::Unparser::Emitter
1260
+ private
1261
+
1262
+ def dispatch; end
1263
+ def name; end
1264
+ def remaining_children; end
1265
+ end
1266
+
1267
+ class Unparser::Emitter::Root < ::Unparser::Emitter
1268
+ include ::Unparser::Emitter::LocalVariableRoot
1269
+
1270
+ def dispatch; end
1271
+ def local_variable_scope(&block); end
1272
+ end
1273
+
1274
+ Unparser::Emitter::Root::END_NL = T.let(T.unsafe(nil), Array)
1275
+
1276
+ class Unparser::Emitter::SClass < ::Unparser::Emitter
1277
+ private
1278
+
1279
+ def body; end
1280
+ def dispatch; end
1281
+ def object; end
1282
+ def remaining_children; end
1283
+ end
1284
+
1285
+ class Unparser::Emitter::Send < ::Unparser::Emitter
1286
+ def emit_heredoc_reminders; end
1287
+ def emit_mlhs; end
1288
+
1289
+ private
1290
+
1291
+ def dispatch; end
1292
+ def writer(&block); end
1293
+ end
1294
+
1295
+ class Unparser::Emitter::Simple < ::Unparser::Emitter
1296
+ private
1297
+
1298
+ def dispatch; end
1299
+ end
1300
+
1301
+ Unparser::Emitter::Simple::MAP = T.let(T.unsafe(nil), Hash)
1302
+
1303
+ class Unparser::Emitter::Splat < ::Unparser::Emitter
1304
+ def emit_mlhs; end
1305
+
1306
+ private
1307
+
1308
+ def dispatch; end
1309
+ def remaining_children; end
1310
+ def subject; end
1311
+ def subject_emitter(&block); end
1312
+ end
1313
+
1314
+ class Unparser::Emitter::Super < ::Unparser::Emitter
1315
+ private
1316
+
1317
+ def dispatch; end
1318
+ end
1319
+
1320
+ class Unparser::Emitter::Undef < ::Unparser::Emitter
1321
+ private
1322
+
1323
+ def dispatch; end
1324
+ end
1325
+
1326
+ class Unparser::Emitter::Variable < ::Unparser::Emitter
1327
+ private
1328
+
1329
+ def dispatch; end
1330
+ def name; end
1331
+ def remaining_children; end
1332
+ end
1333
+
1334
+ class Unparser::Emitter::When < ::Unparser::Emitter
1335
+ private
1336
+
1337
+ def captures(&block); end
1338
+ def dispatch; end
1339
+ def emit_captures; end
1340
+ end
1341
+
1342
+ class Unparser::Emitter::XStr < ::Unparser::Emitter
1343
+ private
1344
+
1345
+ def dispatch; end
1346
+ def emit_begin(component); end
1347
+ def emit_heredoc; end
1348
+ def emit_string(value); end
1349
+ def emit_xstr; end
1350
+ def escape_xstr(input); end
1351
+ def heredoc?; end
1352
+ end
1353
+
1354
+ class Unparser::Emitter::Yield < ::Unparser::Emitter
1355
+ private
1356
+
1357
+ def dispatch; end
1358
+ end
1359
+
1360
+ class Unparser::Equalizer < ::Module
1361
+ def initialize(*keys); end
1362
+
1363
+ private
1364
+
1365
+ def define_cmp_method; end
1366
+ def define_hash_method; end
1367
+ def define_inspect_method; end
1368
+ def define_methods; end
1369
+ def included(descendant); end
1370
+ end
1371
+
1372
+ module Unparser::Equalizer::Methods
1373
+ def ==(other); end
1374
+ def eql?(other); end
1375
+ end
1376
+
1377
+ module Unparser::Generation
1378
+ def emit_heredoc_reminders; end
1379
+ def symbol_name; end
1380
+ def write_to_buffer; end
1381
+
1382
+ private
1383
+
1384
+ def children; end
1385
+ def conditional_parentheses(flag, &block); end
1386
+ def delimited(nodes, delimiter = T.unsafe(nil), &block); end
1387
+ def emit_body(node, indent: T.unsafe(nil)); end
1388
+ def emit_body_ensure_rescue(node); end
1389
+ def emit_body_inner(node); end
1390
+ def emit_body_member(node); end
1391
+ def emit_body_rescue(node); end
1392
+ def emit_comments(comments); end
1393
+ def emit_comments_before(source_part = T.unsafe(nil)); end
1394
+ def emit_ensure(node); end
1395
+ def emit_eof_comments; end
1396
+ def emit_eol_comments; end
1397
+ def emit_join(nodes, emit_node, emit_delimiter); end
1398
+ def emit_optional_body(node, indent: T.unsafe(nil)); end
1399
+ def emit_optional_body_ensure_rescue(node); end
1400
+ def emit_rescue_postcontrol(node); end
1401
+ def emit_rescue_regular(node); end
1402
+ def emitter(node); end
1403
+ def first_child; end
1404
+ def indented; end
1405
+ def k_end; end
1406
+ def nl; end
1407
+ def parentheses(open = T.unsafe(nil), close = T.unsafe(nil)); end
1408
+ def visit(node); end
1409
+ def visit_deep(node); end
1410
+ def with_comments; end
1411
+ def write(*strings); end
1412
+ def writer_with(klass, node); end
1413
+ def ws; end
1414
+ end
1415
+
1416
+ Unparser::Generation::EXTRA_NL = T.let(T.unsafe(nil), Array)
1417
+
1418
+ class Unparser::InvalidNodeError < ::RuntimeError
1419
+ def initialize(message, node); end
1420
+
1421
+ def node; end
1422
+ end
1423
+
1424
+ module Unparser::NodeDetails
1425
+ include ::Unparser::NodeHelpers
1426
+ include ::Unparser::Constants
1427
+
1428
+ private
1429
+
1430
+ def children; end
1431
+
1432
+ class << self
1433
+ def included(descendant); end
1434
+ end
1435
+ end
1436
+
1437
+ class Unparser::NodeDetails::Send
1438
+ include ::Unparser::NodeHelpers
1439
+ include ::Unparser::Constants
1440
+ include ::Unparser::NodeDetails
1441
+ include ::Unparser::Equalizer::Methods
1442
+ include ::Unparser::Adamantium
1443
+ include ::Unparser::Adamantium::InstanceMethods
1444
+ extend ::Unparser::Adamantium::ModuleMethods
1445
+ extend ::Unparser::Adamantium::ClassMethods
1446
+ extend ::Unparser::DSL
1447
+
1448
+ def arguments(&block); end
1449
+ def arguments?; end
1450
+ def assignment?(&block); end
1451
+ def assignment_operator?; end
1452
+ def binary_syntax_allowed?; end
1453
+ def non_assignment_selector; end
1454
+ def receiver; end
1455
+ def selector; end
1456
+ def selector_binary_operator?; end
1457
+ def selector_unary_operator?; end
1458
+ def string_selector(&block); end
1459
+
1460
+ private
1461
+
1462
+ def remaining_children; end
1463
+ end
1464
+
1465
+ Unparser::NodeDetails::Send::ASSIGN_SUFFIX = T.let(T.unsafe(nil), String)
1466
+ Unparser::NodeDetails::Send::NON_ASSIGN_RANGE = T.let(T.unsafe(nil), Range)
1467
+
1468
+ module Unparser::NodeHelpers
1469
+ def n(type, children = T.unsafe(nil)); end
1470
+ def n?(type, node); end
1471
+ def s(type, *children); end
1472
+ def unwrap_single_begin(node); end
1473
+
1474
+ private
1475
+
1476
+ def n_arg?(node); end
1477
+ def n_args?(node); end
1478
+ def n_array?(node); end
1479
+ def n_array_pattern?(node); end
1480
+ def n_begin?(node); end
1481
+ def n_block?(node); end
1482
+ def n_cbase?(node); end
1483
+ def n_const?(node); end
1484
+ def n_dstr?(node); end
1485
+ def n_empty_else?(node); end
1486
+ def n_ensure?(node); end
1487
+ def n_hash?(node); end
1488
+ def n_hash_pattern?(node); end
1489
+ def n_if?(node); end
1490
+ def n_in_pattern?(node); end
1491
+ def n_int?(node); end
1492
+ def n_kwarg?(node); end
1493
+ def n_kwargs?(node); end
1494
+ def n_kwsplat?(node); end
1495
+ def n_lambda?(node); end
1496
+ def n_match_rest?(node); end
1497
+ def n_pair?(node); end
1498
+ def n_rescue?(node); end
1499
+ def n_send?(node); end
1500
+ def n_shadowarg?(node); end
1501
+ def n_splat?(node); end
1502
+ def n_str?(node); end
1503
+ def n_sym?(node); end
1504
+ end
1505
+
1506
+ module Unparser::RequireBlock
1507
+ private
1508
+
1509
+ def require_block; end
1510
+ end
1511
+
1512
+ class Unparser::UnknownNodeError < ::ArgumentError; end
1513
+
1514
+ class Unparser::Validation
1515
+ include ::Unparser::Anima::InstanceMethods
1516
+ include ::Unparser::Equalizer::Methods
1517
+ include ::Unparser::Adamantium
1518
+ include ::Unparser::Adamantium::InstanceMethods
1519
+ extend ::Unparser::Adamantium::ModuleMethods
1520
+ extend ::Unparser::Adamantium::ClassMethods
1521
+
1522
+ def generated_node; end
1523
+ def generated_source; end
1524
+ def identification; end
1525
+ def original_node; end
1526
+ def original_source; end
1527
+ def report(&block); end
1528
+ def success?; end
1529
+
1530
+ private
1531
+
1532
+ def make_report(label, attribute_name); end
1533
+ def node_diff_report; end
1534
+ def report_exception(exception); end
1535
+
1536
+ class << self
1537
+ def anima; end
1538
+ def from_node(original_node); end
1539
+ def from_path(path); end
1540
+ def from_string(original_source); end
1541
+
1542
+ private
1543
+
1544
+ def const_unit(_value); end
1545
+ end
1546
+ end
1547
+
1548
+ class Unparser::Validation::Literal < ::Unparser::Validation
1549
+ def report; end
1550
+ def success?; end
1551
+
1552
+ private
1553
+
1554
+ def source_diff_report; end
1555
+ end
1556
+
1557
+ module Unparser::Writer
1558
+ include ::Unparser::NodeHelpers
1559
+ include ::Unparser::Generation
1560
+ include ::Unparser::Anima::InstanceMethods
1561
+ include ::Unparser::Equalizer::Methods
1562
+
1563
+ mixes_in_class_methods ::Unparser::DSL
1564
+
1565
+ class << self
1566
+ def included(descendant); end
1567
+ end
1568
+ end
1569
+
1570
+ class Unparser::Writer::Binary
1571
+ include ::Unparser::Adamantium
1572
+ include ::Unparser::Adamantium::InstanceMethods
1573
+ include ::Unparser::NodeHelpers
1574
+ include ::Unparser::Generation
1575
+ include ::Unparser::Writer
1576
+ include ::Unparser::Anima::InstanceMethods
1577
+ include ::Unparser::Equalizer::Methods
1578
+ extend ::Unparser::Adamantium::ModuleMethods
1579
+ extend ::Unparser::Adamantium::ClassMethods
1580
+ extend ::Unparser::DSL
1581
+
1582
+ def buffer; end
1583
+ def comments; end
1584
+ def dispatch; end
1585
+ def emit_operator; end
1586
+ def local_variable_scope; end
1587
+ def node; end
1588
+ def symbol_name; end
1589
+
1590
+ private
1591
+
1592
+ def effective_symbol; end
1593
+ def emit_with(map); end
1594
+ def keyword_symbol; end
1595
+ def left; end
1596
+ def left_emitter(&block); end
1597
+ def operator_symbol; end
1598
+ def remaining_children; end
1599
+ def right; end
1600
+ def right_emitter(&block); end
1601
+
1602
+ class << self
1603
+ def anima; end
1604
+ end
1605
+ end
1606
+
1607
+ Unparser::Writer::Binary::KEYWORD_SYMBOLS = T.let(T.unsafe(nil), Hash)
1608
+ Unparser::Writer::Binary::KEYWORD_TOKENS = T.let(T.unsafe(nil), Hash)
1609
+ Unparser::Writer::Binary::MAP = T.let(T.unsafe(nil), Hash)
1610
+ Unparser::Writer::Binary::NEED_KEYWORD = T.let(T.unsafe(nil), Array)
1611
+ Unparser::Writer::Binary::OPERATOR_SYMBOLS = T.let(T.unsafe(nil), Hash)
1612
+ Unparser::Writer::Binary::OPERATOR_TOKENS = T.let(T.unsafe(nil), Hash)
1613
+
1614
+ class Unparser::Writer::DynamicString
1615
+ include ::Unparser::Adamantium
1616
+ include ::Unparser::Adamantium::InstanceMethods
1617
+ include ::Unparser::NodeHelpers
1618
+ include ::Unparser::Generation
1619
+ include ::Unparser::Writer
1620
+ include ::Unparser::Anima::InstanceMethods
1621
+ include ::Unparser::Equalizer::Methods
1622
+ extend ::Unparser::Adamantium::ModuleMethods
1623
+ extend ::Unparser::Adamantium::ClassMethods
1624
+ extend ::Unparser::DSL
1625
+
1626
+ def buffer; end
1627
+ def comments; end
1628
+ def dispatch; end
1629
+ def emit_heredoc_reminder; end
1630
+ def local_variable_scope; end
1631
+ def node; end
1632
+
1633
+ private
1634
+
1635
+ def breakpoint?(child, current); end
1636
+ def classify(node); end
1637
+ def classify_str(node); end
1638
+ def emit_body(children); end
1639
+ def emit_dstr; end
1640
+ def emit_dynamic(child); end
1641
+ def emit_dynamic_component(node); end
1642
+ def emit_heredoc_body; end
1643
+ def emit_heredoc_footer; end
1644
+ def emit_heredoc_header; end
1645
+ def emit_normal_heredoc_body; end
1646
+ def emit_segment(children, index); end
1647
+ def emit_squiggly_heredoc_body; end
1648
+ def escape_dynamic(string); end
1649
+ def heredoc?; end
1650
+ def heredoc_header; end
1651
+ def heredoc_pattern?; end
1652
+ def heredoc_pattern_2?; end
1653
+ def heredoc_pattern_3?; end
1654
+ def nl_last_child?; end
1655
+ def segments; end
1656
+ def str_empty?(node); end
1657
+ def str_nl?(node); end
1658
+ def str_ws?(node); end
1659
+
1660
+ class << self
1661
+ def anima; end
1662
+ end
1663
+ end
1664
+
1665
+ Unparser::Writer::DynamicString::FLAT_INTERPOLATION = T.let(T.unsafe(nil), Set)
1666
+ Unparser::Writer::DynamicString::PATTERNS_2 = T.let(T.unsafe(nil), Array)
1667
+ Unparser::Writer::DynamicString::PATTERNS_3 = T.let(T.unsafe(nil), Array)
1668
+
1669
+ class Unparser::Writer::Resbody
1670
+ include ::Unparser::NodeHelpers
1671
+ include ::Unparser::Generation
1672
+ include ::Unparser::Writer
1673
+ include ::Unparser::Anima::InstanceMethods
1674
+ include ::Unparser::Equalizer::Methods
1675
+ extend ::Unparser::DSL
1676
+
1677
+ def buffer; end
1678
+ def comments; end
1679
+ def emit_postcontrol; end
1680
+ def emit_regular; end
1681
+ def local_variable_scope; end
1682
+ def node; end
1683
+
1684
+ private
1685
+
1686
+ def assignment; end
1687
+ def body; end
1688
+ def emit_assignment; end
1689
+ def emit_exception; end
1690
+ def exception; end
1691
+ def remaining_children; end
1692
+
1693
+ class << self
1694
+ def anima; end
1695
+ end
1696
+ end
1697
+
1698
+ class Unparser::Writer::Rescue
1699
+ include ::Unparser::Adamantium
1700
+ include ::Unparser::Adamantium::InstanceMethods
1701
+ include ::Unparser::NodeHelpers
1702
+ include ::Unparser::Generation
1703
+ include ::Unparser::Writer
1704
+ include ::Unparser::Anima::InstanceMethods
1705
+ include ::Unparser::Equalizer::Methods
1706
+ extend ::Unparser::Adamantium::ModuleMethods
1707
+ extend ::Unparser::Adamantium::ClassMethods
1708
+ extend ::Unparser::DSL
1709
+
1710
+ def buffer; end
1711
+ def comments; end
1712
+ def emit_heredoc_reminders; end
1713
+ def emit_postcontrol; end
1714
+ def emit_regular; end
1715
+ def local_variable_scope; end
1716
+ def node; end
1717
+
1718
+ private
1719
+
1720
+ def body; end
1721
+ def else_node; end
1722
+ def emit_rescue_body(node); end
1723
+ def remaining_children; end
1724
+ def rescue_bodies(&block); end
1725
+ def rescue_body; end
1726
+
1727
+ class << self
1728
+ def anima; end
1729
+ end
1730
+ end
1731
+
1732
+ class Unparser::Writer::Send
1733
+ include ::Unparser::NodeHelpers
1734
+ include ::Unparser::Generation
1735
+ include ::Unparser::Constants
1736
+ include ::Unparser::Adamantium
1737
+ include ::Unparser::Adamantium::InstanceMethods
1738
+ include ::Unparser::Writer
1739
+ include ::Unparser::Anima::InstanceMethods
1740
+ include ::Unparser::Equalizer::Methods
1741
+ extend ::Unparser::Adamantium::ModuleMethods
1742
+ extend ::Unparser::Adamantium::ClassMethods
1743
+ extend ::Unparser::DSL
1744
+
1745
+ def buffer; end
1746
+ def comments; end
1747
+ def dispatch; end
1748
+ def emit_heredoc_reminders; end
1749
+ def emit_mlhs; end
1750
+ def emit_selector; end
1751
+ def local_variable_scope; end
1752
+ def node; end
1753
+
1754
+ private
1755
+
1756
+ def arguments; end
1757
+ def avoid_clash?; end
1758
+ def details(&block); end
1759
+ def effective_writer(&block); end
1760
+ def effective_writer_class; end
1761
+ def emit_arguments; end
1762
+ def emit_heredoc_reminder(argument); end
1763
+ def emit_normal_arguments; end
1764
+ def emit_operator; end
1765
+ def emit_send_regular(node); end
1766
+ def local_variable_clash?; end
1767
+ def parses_as_constant?; end
1768
+ def receiver; end
1769
+ def remaining_children; end
1770
+ def selector; end
1771
+ def write_as_attribute_assignment?; end
1772
+
1773
+ class << self
1774
+ def anima; end
1775
+ end
1776
+ end
1777
+
1778
+ class Unparser::Writer::Send::AttributeAssignment < ::Unparser::Writer::Send
1779
+ def dispatch; end
1780
+ def emit_send_mlhs; end
1781
+
1782
+ private
1783
+
1784
+ def emit_attribute; end
1785
+ def emit_receiver; end
1786
+ def first_argument; end
1787
+ def receiver; end
1788
+ def remaining_children; end
1789
+ def selector; end
1790
+ end
1791
+
1792
+ class Unparser::Writer::Send::Binary < ::Unparser::Writer::Send
1793
+ def dispatch; end
1794
+
1795
+ private
1796
+
1797
+ def emit_operator; end
1798
+ def emit_right; end
1799
+ end
1800
+
1801
+ Unparser::Writer::Send::INDEX_ASSIGN = T.let(T.unsafe(nil), Symbol)
1802
+ Unparser::Writer::Send::INDEX_REFERENCE = T.let(T.unsafe(nil), Symbol)
1803
+ Unparser::Writer::Send::OPERATORS = T.let(T.unsafe(nil), Hash)
1804
+
1805
+ class Unparser::Writer::Send::Regular < ::Unparser::Writer::Send
1806
+ def dispatch; end
1807
+ def emit_arguments_without_heredoc_body; end
1808
+ def emit_receiver; end
1809
+ def emit_send_mlhs; end
1810
+ end
1811
+
1812
+ class Unparser::Writer::Send::Unary < ::Unparser::Writer::Send
1813
+ def dispatch; end
1814
+ end
1815
+
1816
+ Unparser::Writer::Send::Unary::MAP = T.let(T.unsafe(nil), Hash)