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,1646 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `rbi` gem.
5
+ # Please instead update this file by running `bin/tapioca gem rbi`.
6
+
7
+ module RBI; end
8
+
9
+ class RBI::ASTVisitor
10
+ abstract!
11
+
12
+ def initialize(*args, &blk); end
13
+
14
+ sig { abstract.params(node: T.nilable(AST::Node)).void }
15
+ def visit(node); end
16
+
17
+ sig { params(nodes: T::Array[AST::Node]).void }
18
+ def visit_all(nodes); end
19
+
20
+ private
21
+
22
+ sig { params(node: AST::Node).returns(String) }
23
+ def parse_expr(node); end
24
+
25
+ sig { params(node: AST::Node).returns(String) }
26
+ def parse_name(node); end
27
+ end
28
+
29
+ class RBI::Arg < ::RBI::Node
30
+ sig { params(value: String, loc: T.nilable(RBI::Loc)).void }
31
+ def initialize(value, loc: T.unsafe(nil)); end
32
+
33
+ sig { params(other: T.nilable(Object)).returns(T::Boolean) }
34
+ def ==(other); end
35
+
36
+ sig { override.params(v: RBI::Printer).void }
37
+ def accept_printer(v); end
38
+
39
+ sig { returns(String) }
40
+ def to_s; end
41
+
42
+ sig { returns(String) }
43
+ def value; end
44
+ end
45
+
46
+ class RBI::Attr < ::RBI::NodeWithComments
47
+ include ::RBI::Indexable
48
+
49
+ abstract!
50
+
51
+ sig { params(name: Symbol, names: T::Array[Symbol], visibility: RBI::Visibility, sigs: T::Array[RBI::Sig], loc: T.nilable(RBI::Loc), comments: T::Array[RBI::Comment]).void }
52
+ def initialize(name, names, visibility: T.unsafe(nil), sigs: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil)); end
53
+
54
+ sig { override.params(v: RBI::Printer).void }
55
+ def accept_printer(v); end
56
+
57
+ sig { override.params(other: RBI::Node).returns(T::Boolean) }
58
+ def compatible_with?(other); end
59
+
60
+ sig { abstract.returns(T::Array[String]) }
61
+ def fully_qualified_names; end
62
+
63
+ sig { override.returns(T::Array[String]) }
64
+ def index_ids; end
65
+
66
+ sig { override.params(other: RBI::Node).void }
67
+ def merge_with(other); end
68
+
69
+ sig { returns(T::Array[Symbol]) }
70
+ def names; end
71
+
72
+ def names=(_arg0); end
73
+
74
+ sig { override.returns(T::Boolean) }
75
+ def oneline?; end
76
+
77
+ sig { returns(T::Array[RBI::Sig]) }
78
+ def sigs; end
79
+
80
+ sig { returns(RBI::Visibility) }
81
+ def visibility; end
82
+
83
+ def visibility=(_arg0); end
84
+ end
85
+
86
+ class RBI::AttrAccessor < ::RBI::Attr
87
+ sig { params(name: Symbol, names: Symbol, visibility: RBI::Visibility, sigs: T::Array[RBI::Sig], loc: T.nilable(RBI::Loc), comments: T::Array[RBI::Comment], block: T.nilable(T.proc.params(node: RBI::AttrAccessor).void)).void }
88
+ def initialize(name, *names, visibility: T.unsafe(nil), sigs: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
89
+
90
+ sig { override.params(other: RBI::Node).returns(T::Boolean) }
91
+ def compatible_with?(other); end
92
+
93
+ sig { override.returns(T::Array[String]) }
94
+ def fully_qualified_names; end
95
+
96
+ sig { override.returns(String) }
97
+ def to_s; end
98
+ end
99
+
100
+ class RBI::AttrReader < ::RBI::Attr
101
+ sig { params(name: Symbol, names: Symbol, visibility: RBI::Visibility, sigs: T::Array[RBI::Sig], loc: T.nilable(RBI::Loc), comments: T::Array[RBI::Comment], block: T.nilable(T.proc.params(node: RBI::AttrReader).void)).void }
102
+ def initialize(name, *names, visibility: T.unsafe(nil), sigs: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
103
+
104
+ sig { override.params(other: RBI::Node).returns(T::Boolean) }
105
+ def compatible_with?(other); end
106
+
107
+ sig { override.returns(T::Array[String]) }
108
+ def fully_qualified_names; end
109
+
110
+ sig { override.returns(String) }
111
+ def to_s; end
112
+ end
113
+
114
+ class RBI::AttrWriter < ::RBI::Attr
115
+ sig { params(name: Symbol, names: Symbol, visibility: RBI::Visibility, sigs: T::Array[RBI::Sig], loc: T.nilable(RBI::Loc), comments: T::Array[RBI::Comment], block: T.nilable(T.proc.params(node: RBI::AttrWriter).void)).void }
116
+ def initialize(name, *names, visibility: T.unsafe(nil), sigs: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
117
+
118
+ sig { override.params(other: RBI::Node).returns(T::Boolean) }
119
+ def compatible_with?(other); end
120
+
121
+ sig { override.returns(T::Array[String]) }
122
+ def fully_qualified_names; end
123
+
124
+ sig { override.returns(String) }
125
+ def to_s; end
126
+ end
127
+
128
+ class RBI::BlankLine < ::RBI::Comment
129
+ sig { params(loc: T.nilable(RBI::Loc)).void }
130
+ def initialize(loc: T.unsafe(nil)); end
131
+
132
+ sig { override.params(v: RBI::Printer).void }
133
+ def accept_printer(v); end
134
+ end
135
+
136
+ class RBI::BlockParam < ::RBI::Param
137
+ sig { params(name: String, loc: T.nilable(RBI::Loc), comments: T::Array[RBI::Comment], block: T.nilable(T.proc.params(node: RBI::BlockParam).void)).void }
138
+ def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
139
+
140
+ sig { params(other: T.nilable(Object)).returns(T::Boolean) }
141
+ def ==(other); end
142
+
143
+ sig { override.params(v: RBI::Printer).void }
144
+ def accept_printer(v); end
145
+
146
+ sig { override.params(v: RBI::Printer, last: T::Boolean).void }
147
+ def print_comment_leading_space(v, last:); end
148
+
149
+ sig { override.returns(String) }
150
+ def to_s; end
151
+ end
152
+
153
+ class RBI::Class < ::RBI::Scope
154
+ sig { params(name: String, superclass_name: T.nilable(String), loc: T.nilable(RBI::Loc), comments: T::Array[RBI::Comment], block: T.nilable(T.proc.params(node: RBI::Class).void)).void }
155
+ def initialize(name, superclass_name: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
156
+
157
+ sig { override.params(other: RBI::Node).returns(T::Boolean) }
158
+ def compatible_with?(other); end
159
+
160
+ sig { override.returns(String) }
161
+ def fully_qualified_name; end
162
+
163
+ sig { returns(String) }
164
+ def name; end
165
+
166
+ def name=(_arg0); end
167
+
168
+ sig { override.params(v: RBI::Printer).void }
169
+ def print_header(v); end
170
+
171
+ sig { returns(T.nilable(String)) }
172
+ def superclass_name; end
173
+
174
+ def superclass_name=(_arg0); end
175
+ end
176
+
177
+ class RBI::Comment < ::RBI::Node
178
+ sig { params(text: String, loc: T.nilable(RBI::Loc)).void }
179
+ def initialize(text, loc: T.unsafe(nil)); end
180
+
181
+ sig { params(other: Object).returns(T::Boolean) }
182
+ def ==(other); end
183
+
184
+ sig { override.params(v: RBI::Printer).void }
185
+ def accept_printer(v); end
186
+
187
+ sig { returns(String) }
188
+ def text; end
189
+
190
+ def text=(_arg0); end
191
+ end
192
+
193
+ class RBI::ConflictTree < ::RBI::Tree
194
+ sig { params(left_name: String, right_name: String).void }
195
+ def initialize(left_name: T.unsafe(nil), right_name: T.unsafe(nil)); end
196
+
197
+ sig { override.params(v: RBI::Printer).void }
198
+ def accept_printer(v); end
199
+
200
+ sig { returns(RBI::Tree) }
201
+ def left; end
202
+
203
+ def right; end
204
+ end
205
+
206
+ class RBI::Const < ::RBI::NodeWithComments
207
+ include ::RBI::Indexable
208
+
209
+ sig { params(name: String, value: String, loc: T.nilable(RBI::Loc), comments: T::Array[RBI::Comment], block: T.nilable(T.proc.params(node: RBI::Const).void)).void }
210
+ def initialize(name, value, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
211
+
212
+ sig { override.params(v: RBI::Printer).void }
213
+ def accept_printer(v); end
214
+
215
+ sig { override.params(other: RBI::Node).returns(T::Boolean) }
216
+ def compatible_with?(other); end
217
+
218
+ sig { returns(String) }
219
+ def fully_qualified_name; end
220
+
221
+ sig { override.returns(T::Array[String]) }
222
+ def index_ids; end
223
+
224
+ sig { returns(String) }
225
+ def name; end
226
+
227
+ sig { override.returns(String) }
228
+ def to_s; end
229
+
230
+ def value; end
231
+ end
232
+
233
+ class RBI::ConstBuilder < ::RBI::ASTVisitor
234
+ sig { void }
235
+ def initialize; end
236
+
237
+ sig { returns(T::Array[String]) }
238
+ def names; end
239
+
240
+ def names=(_arg0); end
241
+
242
+ sig { override.params(node: T.nilable(AST::Node)).void }
243
+ def visit(node); end
244
+
245
+ class << self
246
+ sig { params(node: T.nilable(AST::Node)).returns(T.nilable(String)) }
247
+ def visit(node); end
248
+ end
249
+ end
250
+
251
+ class RBI::Error < ::StandardError; end
252
+
253
+ class RBI::Extend < ::RBI::Mixin
254
+ include ::RBI::Indexable
255
+
256
+ sig { params(name: String, names: String, loc: T.nilable(RBI::Loc), comments: T::Array[RBI::Comment], block: T.nilable(T.proc.params(node: RBI::Extend).void)).void }
257
+ def initialize(name, *names, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
258
+
259
+ sig { override.params(other: RBI::Node).returns(T::Boolean) }
260
+ def compatible_with?(other); end
261
+
262
+ sig { override.returns(T::Array[String]) }
263
+ def index_ids; end
264
+
265
+ sig { override.returns(String) }
266
+ def to_s; end
267
+ end
268
+
269
+ class RBI::File
270
+ sig { params(strictness: T.nilable(String), comments: T::Array[RBI::Comment], block: T.nilable(T.proc.params(file: RBI::File).void)).void }
271
+ def initialize(strictness: T.unsafe(nil), comments: T.unsafe(nil), &block); end
272
+
273
+ sig { params(node: RBI::Node).void }
274
+ def <<(node); end
275
+
276
+ sig { params(v: RBI::Printer).void }
277
+ def accept_printer(v); end
278
+
279
+ sig { returns(T::Array[RBI::Comment]) }
280
+ def comments; end
281
+
282
+ def comments=(_arg0); end
283
+
284
+ sig { returns(T::Boolean) }
285
+ def empty?; end
286
+
287
+ sig { params(out: T.any(IO, StringIO), indent: Integer, print_locs: T::Boolean, max_line_length: T.nilable(Integer)).void }
288
+ def print(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil), max_line_length: T.unsafe(nil)); end
289
+
290
+ sig { returns(RBI::Tree) }
291
+ def root; end
292
+
293
+ def root=(_arg0); end
294
+
295
+ sig { void }
296
+ def set_empty_body_content; end
297
+
298
+ sig { params(command: String, reason: T.nilable(String), display_heading: T::Boolean).void }
299
+ def set_file_header(command, reason: T.unsafe(nil), display_heading: T.unsafe(nil)); end
300
+
301
+ sig { returns(T.nilable(String)) }
302
+ def strictness; end
303
+
304
+ def strictness=(_arg0); end
305
+
306
+ sig { params(indent: Integer, print_locs: T::Boolean, max_line_length: T.nilable(Integer)).returns(String) }
307
+ def string(indent: T.unsafe(nil), print_locs: T.unsafe(nil), max_line_length: T.unsafe(nil)); end
308
+
309
+ sig { void }
310
+ def transform_rbi!; end
311
+
312
+ sig { returns(String) }
313
+ def transformed_string; end
314
+ end
315
+
316
+ class RBI::Group < ::RBI::Tree
317
+ sig { params(kind: RBI::Group::Kind).void }
318
+ def initialize(kind); end
319
+
320
+ sig { override.params(v: RBI::Printer).void }
321
+ def accept_printer(v); end
322
+
323
+ sig { returns(RBI::Group::Kind) }
324
+ def kind; end
325
+ end
326
+
327
+ class RBI::Group::Kind < ::T::Enum
328
+ enums do
329
+ Mixins = new
330
+ RequiredAncestors = new
331
+ Helpers = new
332
+ TypeMembers = new
333
+ MixesInClassMethods = new
334
+ Sends = new
335
+ Attrs = new
336
+ TStructFields = new
337
+ TEnums = new
338
+ Inits = new
339
+ Methods = new
340
+ SingletonClasses = new
341
+ Consts = new
342
+ end
343
+ end
344
+
345
+ class RBI::Helper < ::RBI::NodeWithComments
346
+ include ::RBI::Indexable
347
+
348
+ sig { params(name: String, loc: T.nilable(RBI::Loc), comments: T::Array[RBI::Comment], block: T.nilable(T.proc.params(node: RBI::Helper).void)).void }
349
+ def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
350
+
351
+ sig { override.params(v: RBI::Printer).void }
352
+ def accept_printer(v); end
353
+
354
+ sig { override.params(other: RBI::Node).returns(T::Boolean) }
355
+ def compatible_with?(other); end
356
+
357
+ sig { override.returns(T::Array[String]) }
358
+ def index_ids; end
359
+
360
+ sig { returns(String) }
361
+ def name; end
362
+
363
+ sig { override.returns(String) }
364
+ def to_s; end
365
+ end
366
+
367
+ class RBI::Include < ::RBI::Mixin
368
+ include ::RBI::Indexable
369
+
370
+ sig { params(name: String, names: String, loc: T.nilable(RBI::Loc), comments: T::Array[RBI::Comment], block: T.nilable(T.proc.params(node: RBI::Include).void)).void }
371
+ def initialize(name, *names, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
372
+
373
+ sig { override.params(other: RBI::Node).returns(T::Boolean) }
374
+ def compatible_with?(other); end
375
+
376
+ sig { override.returns(T::Array[String]) }
377
+ def index_ids; end
378
+
379
+ sig { override.returns(String) }
380
+ def to_s; end
381
+ end
382
+
383
+ class RBI::Index < ::RBI::Visitor
384
+ sig { void }
385
+ def initialize; end
386
+
387
+ sig { params(id: String).returns(T::Array[RBI::Node]) }
388
+ def [](id); end
389
+
390
+ sig { params(nodes: RBI::Node).void }
391
+ def index(*nodes); end
392
+
393
+ sig { returns(T::Array[String]) }
394
+ def keys; end
395
+
396
+ sig { override.params(node: T.nilable(RBI::Node)).void }
397
+ def visit(node); end
398
+
399
+ private
400
+
401
+ sig { params(node: T.all(RBI::Indexable, RBI::Node)).void }
402
+ def index_node(node); end
403
+
404
+ class << self
405
+ sig { params(node: RBI::Node).returns(RBI::Index) }
406
+ def index(*node); end
407
+ end
408
+ end
409
+
410
+ module RBI::Indexable
411
+ interface!
412
+
413
+ sig { abstract.returns(T::Array[String]) }
414
+ def index_ids; end
415
+ end
416
+
417
+ class RBI::KwArg < ::RBI::Arg
418
+ sig { params(keyword: String, value: String, loc: T.nilable(RBI::Loc)).void }
419
+ def initialize(keyword, value, loc: T.unsafe(nil)); end
420
+
421
+ sig { params(other: T.nilable(Object)).returns(T::Boolean) }
422
+ def ==(other); end
423
+
424
+ sig { override.params(v: RBI::Printer).void }
425
+ def accept_printer(v); end
426
+
427
+ sig { returns(String) }
428
+ def keyword; end
429
+
430
+ sig { returns(String) }
431
+ def to_s; end
432
+ end
433
+
434
+ class RBI::KwOptParam < ::RBI::Param
435
+ sig { params(name: String, value: String, loc: T.nilable(RBI::Loc), comments: T::Array[RBI::Comment], block: T.nilable(T.proc.params(node: RBI::KwOptParam).void)).void }
436
+ def initialize(name, value, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
437
+
438
+ sig { params(other: T.nilable(Object)).returns(T::Boolean) }
439
+ def ==(other); end
440
+
441
+ sig { override.params(v: RBI::Printer).void }
442
+ def accept_printer(v); end
443
+
444
+ sig { override.params(v: RBI::Printer, last: T::Boolean).void }
445
+ def print_comment_leading_space(v, last:); end
446
+
447
+ sig { override.returns(String) }
448
+ def to_s; end
449
+
450
+ sig { returns(String) }
451
+ def value; end
452
+ end
453
+
454
+ class RBI::KwParam < ::RBI::Param
455
+ sig { params(name: String, loc: T.nilable(RBI::Loc), comments: T::Array[RBI::Comment], block: T.nilable(T.proc.params(node: RBI::KwParam).void)).void }
456
+ def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
457
+
458
+ sig { params(other: T.nilable(Object)).returns(T::Boolean) }
459
+ def ==(other); end
460
+
461
+ sig { override.params(v: RBI::Printer).void }
462
+ def accept_printer(v); end
463
+
464
+ sig { override.params(v: RBI::Printer, last: T::Boolean).void }
465
+ def print_comment_leading_space(v, last:); end
466
+
467
+ sig { override.returns(String) }
468
+ def to_s; end
469
+ end
470
+
471
+ class RBI::KwRestParam < ::RBI::Param
472
+ sig { params(name: String, loc: T.nilable(RBI::Loc), comments: T::Array[RBI::Comment], block: T.nilable(T.proc.params(node: RBI::KwRestParam).void)).void }
473
+ def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
474
+
475
+ sig { params(other: T.nilable(Object)).returns(T::Boolean) }
476
+ def ==(other); end
477
+
478
+ sig { override.params(v: RBI::Printer).void }
479
+ def accept_printer(v); end
480
+
481
+ sig { override.params(v: RBI::Printer, last: T::Boolean).void }
482
+ def print_comment_leading_space(v, last:); end
483
+
484
+ sig { override.returns(String) }
485
+ def to_s; end
486
+ end
487
+
488
+ class RBI::Loc
489
+ sig { params(file: T.nilable(String), begin_line: T.nilable(Integer), end_line: T.nilable(Integer), begin_column: T.nilable(Integer), end_column: T.nilable(Integer)).void }
490
+ def initialize(file: T.unsafe(nil), begin_line: T.unsafe(nil), end_line: T.unsafe(nil), begin_column: T.unsafe(nil), end_column: T.unsafe(nil)); end
491
+
492
+ def begin_column; end
493
+
494
+ sig { returns(T.nilable(Integer)) }
495
+ def begin_line; end
496
+
497
+ def end_column; end
498
+ def end_line; end
499
+
500
+ sig { returns(T.nilable(String)) }
501
+ def file; end
502
+
503
+ sig { returns(String) }
504
+ def to_s; end
505
+
506
+ class << self
507
+ sig { params(file: String, ast_loc: T.any(Parser::Source::Map, Parser::Source::Range)).returns(RBI::Loc) }
508
+ def from_ast_loc(file, ast_loc); end
509
+ end
510
+ end
511
+
512
+ class RBI::MergeTree < ::RBI::Tree
513
+ sig { params(loc: T.nilable(RBI::Loc), comments: T::Array[RBI::Comment], conflicts: T::Array[RBI::Rewriters::Merge::Conflict], block: T.nilable(T.proc.params(node: RBI::Tree).void)).void }
514
+ def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), conflicts: T.unsafe(nil), &block); end
515
+
516
+ sig { returns(T::Array[RBI::Rewriters::Merge::Conflict]) }
517
+ def conflicts; end
518
+ end
519
+
520
+ class RBI::Method < ::RBI::NodeWithComments
521
+ include ::RBI::Indexable
522
+
523
+ sig { params(name: String, params: T::Array[RBI::Param], is_singleton: T::Boolean, visibility: RBI::Visibility, sigs: T::Array[RBI::Sig], loc: T.nilable(RBI::Loc), comments: T::Array[RBI::Comment], block: T.nilable(T.proc.params(node: RBI::Method).void)).void }
524
+ def initialize(name, params: T.unsafe(nil), is_singleton: T.unsafe(nil), visibility: T.unsafe(nil), sigs: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
525
+
526
+ sig { params(param: RBI::Param).void }
527
+ def <<(param); end
528
+
529
+ sig { override.params(v: RBI::Printer).void }
530
+ def accept_printer(v); end
531
+
532
+ sig { override.params(other: RBI::Node).returns(T::Boolean) }
533
+ def compatible_with?(other); end
534
+
535
+ sig { returns(String) }
536
+ def fully_qualified_name; end
537
+
538
+ sig { override.returns(T::Array[String]) }
539
+ def index_ids; end
540
+
541
+ sig { returns(T::Boolean) }
542
+ def inline_params?; end
543
+
544
+ sig { returns(T::Boolean) }
545
+ def is_singleton; end
546
+
547
+ def is_singleton=(_arg0); end
548
+
549
+ sig { override.params(other: RBI::Node).void }
550
+ def merge_with(other); end
551
+
552
+ sig { returns(String) }
553
+ def name; end
554
+
555
+ def name=(_arg0); end
556
+
557
+ sig { override.returns(T::Boolean) }
558
+ def oneline?; end
559
+
560
+ sig { returns(T::Array[RBI::Param]) }
561
+ def params; end
562
+
563
+ sig { returns(T::Array[RBI::Sig]) }
564
+ def sigs; end
565
+
566
+ def sigs=(_arg0); end
567
+
568
+ sig { override.returns(String) }
569
+ def to_s; end
570
+
571
+ sig { returns(RBI::Visibility) }
572
+ def visibility; end
573
+
574
+ def visibility=(_arg0); end
575
+ end
576
+
577
+ class RBI::MixesInClassMethods < ::RBI::Mixin
578
+ include ::RBI::Indexable
579
+
580
+ sig { params(name: String, names: String, loc: T.nilable(RBI::Loc), comments: T::Array[RBI::Comment], block: T.nilable(T.proc.params(node: RBI::MixesInClassMethods).void)).void }
581
+ def initialize(name, *names, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
582
+
583
+ sig { override.params(other: RBI::Node).returns(T::Boolean) }
584
+ def compatible_with?(other); end
585
+
586
+ sig { override.returns(T::Array[String]) }
587
+ def index_ids; end
588
+
589
+ sig { override.returns(String) }
590
+ def to_s; end
591
+ end
592
+
593
+ class RBI::Mixin < ::RBI::NodeWithComments
594
+ abstract!
595
+
596
+ sig { params(name: String, names: T::Array[String], loc: T.nilable(RBI::Loc), comments: T::Array[RBI::Comment]).void }
597
+ def initialize(name, names, loc: T.unsafe(nil), comments: T.unsafe(nil)); end
598
+
599
+ sig { override.params(v: RBI::Printer).void }
600
+ def accept_printer(v); end
601
+
602
+ sig { override.params(other: RBI::Node).returns(T::Boolean) }
603
+ def compatible_with?(other); end
604
+
605
+ sig { returns(T::Array[String]) }
606
+ def names; end
607
+
608
+ def names=(_arg0); end
609
+ end
610
+
611
+ class RBI::Module < ::RBI::Scope
612
+ sig { params(name: String, loc: T.nilable(RBI::Loc), comments: T::Array[RBI::Comment], block: T.nilable(T.proc.params(node: RBI::Module).void)).void }
613
+ def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
614
+
615
+ sig { override.params(other: RBI::Node).returns(T::Boolean) }
616
+ def compatible_with?(other); end
617
+
618
+ sig { override.returns(String) }
619
+ def fully_qualified_name; end
620
+
621
+ sig { returns(String) }
622
+ def name; end
623
+
624
+ def name=(_arg0); end
625
+
626
+ sig { override.params(v: RBI::Printer).void }
627
+ def print_header(v); end
628
+ end
629
+
630
+ class RBI::Node
631
+ abstract!
632
+
633
+ sig { params(loc: T.nilable(RBI::Loc)).void }
634
+ def initialize(loc: T.unsafe(nil)); end
635
+
636
+ sig { abstract.params(v: RBI::Printer).void }
637
+ def accept_printer(v); end
638
+
639
+ sig { params(_other: RBI::Node).returns(T::Boolean) }
640
+ def compatible_with?(_other); end
641
+
642
+ sig { void }
643
+ def detach; end
644
+
645
+ sig { returns(RBI::Group::Kind) }
646
+ def group_kind; end
647
+
648
+ sig { returns(T.nilable(RBI::Loc)) }
649
+ def loc; end
650
+
651
+ def loc=(_arg0); end
652
+
653
+ sig { params(other: RBI::Node).void }
654
+ def merge_with(other); end
655
+
656
+ sig { returns(T::Boolean) }
657
+ def oneline?; end
658
+
659
+ sig { returns(T.nilable(RBI::ConflictTree)) }
660
+ def parent_conflict_tree; end
661
+
662
+ sig { returns(T.nilable(RBI::Scope)) }
663
+ def parent_scope; end
664
+
665
+ sig { returns(T.nilable(RBI::Tree)) }
666
+ def parent_tree; end
667
+
668
+ def parent_tree=(_arg0); end
669
+
670
+ sig { params(out: T.any(IO, StringIO), indent: Integer, print_locs: T::Boolean, max_line_length: T.nilable(Integer)).void }
671
+ def print(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil), max_line_length: T.unsafe(nil)); end
672
+
673
+ sig { params(v: RBI::Printer).void }
674
+ def print_blank_line_before(v); end
675
+
676
+ sig { params(node: RBI::Node).void }
677
+ def replace(node); end
678
+
679
+ sig { params(indent: Integer, print_locs: T::Boolean, max_line_length: T.nilable(Integer)).returns(String) }
680
+ def string(indent: T.unsafe(nil), print_locs: T.unsafe(nil), max_line_length: T.unsafe(nil)); end
681
+ end
682
+
683
+ class RBI::NodeWithComments < ::RBI::Node
684
+ abstract!
685
+
686
+ sig { params(loc: T.nilable(RBI::Loc), comments: T::Array[RBI::Comment]).void }
687
+ def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil)); end
688
+
689
+ sig { returns(T::Array[String]) }
690
+ def annotations; end
691
+
692
+ sig { returns(T::Array[RBI::Comment]) }
693
+ def comments; end
694
+
695
+ def comments=(_arg0); end
696
+
697
+ sig { override.params(other: RBI::Node).void }
698
+ def merge_with(other); end
699
+
700
+ sig { override.returns(T::Boolean) }
701
+ def oneline?; end
702
+ end
703
+
704
+ class RBI::OptParam < ::RBI::Param
705
+ sig { params(name: String, value: String, loc: T.nilable(RBI::Loc), comments: T::Array[RBI::Comment], block: T.nilable(T.proc.params(node: RBI::OptParam).void)).void }
706
+ def initialize(name, value, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
707
+
708
+ sig { params(other: T.nilable(Object)).returns(T::Boolean) }
709
+ def ==(other); end
710
+
711
+ sig { override.params(v: RBI::Printer).void }
712
+ def accept_printer(v); end
713
+
714
+ sig { override.params(v: RBI::Printer, last: T::Boolean).void }
715
+ def print_comment_leading_space(v, last:); end
716
+
717
+ sig { returns(String) }
718
+ def value; end
719
+ end
720
+
721
+ class RBI::Param < ::RBI::NodeWithComments
722
+ abstract!
723
+
724
+ sig { params(name: String, loc: T.nilable(RBI::Loc), comments: T::Array[RBI::Comment]).void }
725
+ def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil)); end
726
+
727
+ sig { override.params(v: RBI::Printer).void }
728
+ def accept_printer(v); end
729
+
730
+ sig { returns(T::Array[String]) }
731
+ def comments_lines; end
732
+
733
+ sig { returns(String) }
734
+ def name; end
735
+
736
+ sig { params(v: RBI::Printer, last: T::Boolean).void }
737
+ def print_comment_leading_space(v, last:); end
738
+
739
+ sig { override.returns(String) }
740
+ def to_s; end
741
+ end
742
+
743
+ class RBI::ParseError < ::StandardError
744
+ sig { params(message: String, location: RBI::Loc).void }
745
+ def initialize(message, location); end
746
+
747
+ sig { returns(RBI::Loc) }
748
+ def location; end
749
+ end
750
+
751
+ class RBI::Parser
752
+ sig { void }
753
+ def initialize; end
754
+
755
+ sig { params(path: String).returns(RBI::Tree) }
756
+ def parse_file(path); end
757
+
758
+ sig { params(string: String).returns(RBI::Tree) }
759
+ def parse_string(string); end
760
+
761
+ private
762
+
763
+ sig { params(content: String, file: String).returns(RBI::Tree) }
764
+ def parse(content, file:); end
765
+
766
+ class << self
767
+ sig { params(path: String).returns(RBI::Tree) }
768
+ def parse_file(path); end
769
+
770
+ sig { params(paths: T::Array[String]).returns(T::Array[RBI::Tree]) }
771
+ def parse_files(paths); end
772
+
773
+ sig { params(string: String).returns(RBI::Tree) }
774
+ def parse_string(string); end
775
+
776
+ sig { params(strings: T::Array[String]).returns(T::Array[RBI::Tree]) }
777
+ def parse_strings(strings); end
778
+ end
779
+ end
780
+
781
+ class RBI::Printer < ::RBI::Visitor
782
+ sig { params(out: T.any(IO, StringIO), indent: Integer, print_locs: T::Boolean, max_line_length: T.nilable(Integer)).void }
783
+ def initialize(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil), max_line_length: T.unsafe(nil)); end
784
+
785
+ sig { returns(Integer) }
786
+ def current_indent; end
787
+
788
+ sig { void }
789
+ def dedent; end
790
+
791
+ def in_visibility_group; end
792
+ def in_visibility_group=(_arg0); end
793
+
794
+ sig { void }
795
+ def indent; end
796
+
797
+ sig { returns(T.nilable(Integer)) }
798
+ def max_line_length; end
799
+
800
+ sig { returns(T.nilable(RBI::Node)) }
801
+ def previous_node; end
802
+
803
+ sig { params(string: String).void }
804
+ def print(string); end
805
+
806
+ sig { returns(T::Boolean) }
807
+ def print_locs; end
808
+
809
+ def print_locs=(_arg0); end
810
+
811
+ sig { params(string: String).void }
812
+ def printl(string); end
813
+
814
+ sig { params(string: T.nilable(String)).void }
815
+ def printn(string = T.unsafe(nil)); end
816
+
817
+ sig { params(string: T.nilable(String)).void }
818
+ def printt(string = T.unsafe(nil)); end
819
+
820
+ sig { override.params(node: T.nilable(RBI::Node)).void }
821
+ def visit(node); end
822
+
823
+ sig { override.params(nodes: T::Array[RBI::Node]).void }
824
+ def visit_all(nodes); end
825
+
826
+ sig { params(file: RBI::File).void }
827
+ def visit_file(file); end
828
+ end
829
+
830
+ class RBI::Private < ::RBI::Visibility
831
+ sig { params(loc: T.nilable(RBI::Loc), comments: T::Array[RBI::Comment], block: T.nilable(T.proc.params(node: RBI::Private).void)).void }
832
+ def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
833
+ end
834
+
835
+ class RBI::Protected < ::RBI::Visibility
836
+ sig { params(loc: T.nilable(RBI::Loc), comments: T::Array[RBI::Comment], block: T.nilable(T.proc.params(node: RBI::Protected).void)).void }
837
+ def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
838
+ end
839
+
840
+ class RBI::Public < ::RBI::Visibility
841
+ sig { params(loc: T.nilable(RBI::Loc), comments: T::Array[RBI::Comment], block: T.nilable(T.proc.params(node: RBI::Public).void)).void }
842
+ def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
843
+ end
844
+
845
+ class RBI::ReqParam < ::RBI::Param
846
+ sig { params(name: String, loc: T.nilable(RBI::Loc), comments: T::Array[RBI::Comment], block: T.nilable(T.proc.params(node: RBI::ReqParam).void)).void }
847
+ def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
848
+
849
+ sig { params(other: T.nilable(Object)).returns(T::Boolean) }
850
+ def ==(other); end
851
+ end
852
+
853
+ class RBI::RequiresAncestor < ::RBI::NodeWithComments
854
+ include ::RBI::Indexable
855
+
856
+ sig { params(name: String, loc: T.nilable(RBI::Loc), comments: T::Array[RBI::Comment]).void }
857
+ def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil)); end
858
+
859
+ sig { override.params(v: RBI::Printer).void }
860
+ def accept_printer(v); end
861
+
862
+ sig { override.returns(T::Array[String]) }
863
+ def index_ids; end
864
+
865
+ sig { returns(String) }
866
+ def name; end
867
+
868
+ sig { override.returns(String) }
869
+ def to_s; end
870
+ end
871
+
872
+ class RBI::RestParam < ::RBI::Param
873
+ sig { params(name: String, loc: T.nilable(RBI::Loc), comments: T::Array[RBI::Comment], block: T.nilable(T.proc.params(node: RBI::RestParam).void)).void }
874
+ def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
875
+
876
+ sig { params(other: T.nilable(Object)).returns(T::Boolean) }
877
+ def ==(other); end
878
+
879
+ sig { override.params(v: RBI::Printer).void }
880
+ def accept_printer(v); end
881
+
882
+ sig { override.params(v: RBI::Printer, last: T::Boolean).void }
883
+ def print_comment_leading_space(v, last:); end
884
+
885
+ sig { override.returns(String) }
886
+ def to_s; end
887
+ end
888
+
889
+ module RBI::Rewriters; end
890
+
891
+ class RBI::Rewriters::AddSigTemplates < ::RBI::Visitor
892
+ sig { params(with_todo_comment: T::Boolean).void }
893
+ def initialize(with_todo_comment: T.unsafe(nil)); end
894
+
895
+ sig { override.params(node: T.nilable(RBI::Node)).void }
896
+ def visit(node); end
897
+
898
+ private
899
+
900
+ sig { params(attr: RBI::Attr).void }
901
+ def add_attr_sig(attr); end
902
+
903
+ sig { params(method: RBI::Method).void }
904
+ def add_method_sig(method); end
905
+
906
+ sig { params(node: RBI::NodeWithComments).void }
907
+ def add_todo_comment(node); end
908
+ end
909
+
910
+ class RBI::Rewriters::Annotate < ::RBI::Visitor
911
+ sig { params(annotation: String, annotate_scopes: T::Boolean, annotate_properties: T::Boolean).void }
912
+ def initialize(annotation, annotate_scopes: T.unsafe(nil), annotate_properties: T.unsafe(nil)); end
913
+
914
+ sig { override.params(node: T.nilable(RBI::Node)).void }
915
+ def visit(node); end
916
+
917
+ private
918
+
919
+ sig { params(node: RBI::NodeWithComments).void }
920
+ def annotate_node(node); end
921
+
922
+ sig { params(node: RBI::Node).returns(T::Boolean) }
923
+ def root?(node); end
924
+ end
925
+
926
+ class RBI::Rewriters::Deannotate < ::RBI::Visitor
927
+ sig { params(annotation: String).void }
928
+ def initialize(annotation); end
929
+
930
+ sig { override.params(node: T.nilable(RBI::Node)).void }
931
+ def visit(node); end
932
+
933
+ private
934
+
935
+ sig { params(node: RBI::NodeWithComments).void }
936
+ def deannotate_node(node); end
937
+ end
938
+
939
+ class RBI::Rewriters::GroupNodes < ::RBI::Visitor
940
+ sig { override.params(node: T.nilable(RBI::Node)).void }
941
+ def visit(node); end
942
+ end
943
+
944
+ class RBI::Rewriters::Merge
945
+ sig { params(left_name: String, right_name: String, keep: RBI::Rewriters::Merge::Keep).void }
946
+ def initialize(left_name: T.unsafe(nil), right_name: T.unsafe(nil), keep: T.unsafe(nil)); end
947
+
948
+ sig { params(tree: RBI::Tree).void }
949
+ def merge(tree); end
950
+
951
+ sig { returns(RBI::MergeTree) }
952
+ def tree; end
953
+
954
+ class << self
955
+ sig { params(left: RBI::Tree, right: RBI::Tree, left_name: String, right_name: String, keep: RBI::Rewriters::Merge::Keep).returns(RBI::MergeTree) }
956
+ def merge_trees(left, right, left_name: T.unsafe(nil), right_name: T.unsafe(nil), keep: T.unsafe(nil)); end
957
+ end
958
+ end
959
+
960
+ class RBI::Rewriters::Merge::Conflict < ::T::Struct
961
+ const :left, RBI::Node
962
+ const :left_name, String
963
+ const :right, RBI::Node
964
+ const :right_name, String
965
+
966
+ sig { returns(String) }
967
+ def to_s; end
968
+
969
+ class << self
970
+ def inherited(s); end
971
+ end
972
+ end
973
+
974
+ class RBI::Rewriters::Merge::ConflictTreeMerger < ::RBI::Visitor
975
+ sig { override.params(node: T.nilable(RBI::Node)).void }
976
+ def visit(node); end
977
+
978
+ sig { override.params(nodes: T::Array[RBI::Node]).void }
979
+ def visit_all(nodes); end
980
+
981
+ private
982
+
983
+ sig { params(left: RBI::Tree, right: RBI::Tree).void }
984
+ def merge_conflict_trees(left, right); end
985
+ end
986
+
987
+ class RBI::Rewriters::Merge::Keep < ::T::Enum
988
+ enums do
989
+ NONE = new
990
+ LEFT = new
991
+ RIGHT = new
992
+ end
993
+ end
994
+
995
+ class RBI::Rewriters::Merge::TreeMerger < ::RBI::Visitor
996
+ sig { params(output: RBI::Tree, left_name: String, right_name: String, keep: RBI::Rewriters::Merge::Keep).void }
997
+ def initialize(output, left_name: T.unsafe(nil), right_name: T.unsafe(nil), keep: T.unsafe(nil)); end
998
+
999
+ sig { returns(T::Array[RBI::Rewriters::Merge::Conflict]) }
1000
+ def conflicts; end
1001
+
1002
+ sig { override.params(node: T.nilable(RBI::Node)).void }
1003
+ def visit(node); end
1004
+
1005
+ private
1006
+
1007
+ sig { returns(RBI::Tree) }
1008
+ def current_scope; end
1009
+
1010
+ sig { params(left: RBI::Scope, right: RBI::Scope).void }
1011
+ def make_conflict_scope(left, right); end
1012
+
1013
+ sig { params(left: RBI::Node, right: RBI::Node).void }
1014
+ def make_conflict_tree(left, right); end
1015
+
1016
+ sig { params(node: RBI::Node).returns(T.nilable(RBI::Node)) }
1017
+ def previous_definition(node); end
1018
+
1019
+ sig { params(left: RBI::Scope, right: RBI::Scope).returns(RBI::Scope) }
1020
+ def replace_scope_header(left, right); end
1021
+ end
1022
+
1023
+ class RBI::Rewriters::NestNonPublicMethods < ::RBI::Visitor
1024
+ sig { override.params(node: T.nilable(RBI::Node)).void }
1025
+ def visit(node); end
1026
+ end
1027
+
1028
+ class RBI::Rewriters::NestSingletonMethods < ::RBI::Visitor
1029
+ sig { override.params(node: T.nilable(RBI::Node)).void }
1030
+ def visit(node); end
1031
+ end
1032
+
1033
+ class RBI::Rewriters::RemoveKnownDefinitions < ::RBI::Visitor
1034
+ sig { params(index: RBI::Index).void }
1035
+ def initialize(index); end
1036
+
1037
+ sig { returns(T::Array[RBI::Rewriters::RemoveKnownDefinitions::Operation]) }
1038
+ def operations; end
1039
+
1040
+ sig { override.params(node: T.nilable(RBI::Node)).void }
1041
+ def visit(node); end
1042
+
1043
+ sig { params(nodes: T::Array[RBI::Node]).void }
1044
+ def visit_all(nodes); end
1045
+
1046
+ private
1047
+
1048
+ sig { params(node: RBI::Node, previous: RBI::Node).returns(T::Boolean) }
1049
+ def can_delete_node?(node, previous); end
1050
+
1051
+ sig { params(node: RBI::Node, previous: RBI::Node).void }
1052
+ def delete_node(node, previous); end
1053
+
1054
+ sig { params(node: RBI::Indexable).returns(T.nilable(RBI::Node)) }
1055
+ def previous_definition_for(node); end
1056
+
1057
+ class << self
1058
+ sig { params(tree: RBI::Tree, index: RBI::Index).returns([RBI::Tree, T::Array[RBI::Rewriters::RemoveKnownDefinitions::Operation]]) }
1059
+ def remove(tree, index); end
1060
+ end
1061
+ end
1062
+
1063
+ class RBI::Rewriters::RemoveKnownDefinitions::Operation < ::T::Struct
1064
+ const :deleted_node, RBI::Node
1065
+ const :duplicate_of, RBI::Node
1066
+
1067
+ sig { returns(String) }
1068
+ def to_s; end
1069
+
1070
+ class << self
1071
+ def inherited(s); end
1072
+ end
1073
+ end
1074
+
1075
+ class RBI::Rewriters::SortNodes < ::RBI::Visitor
1076
+ sig { override.params(node: T.nilable(RBI::Node)).void }
1077
+ def visit(node); end
1078
+
1079
+ private
1080
+
1081
+ sig { params(kind: RBI::Group::Kind).returns(Integer) }
1082
+ def group_rank(kind); end
1083
+
1084
+ sig { params(node: RBI::Node).returns(T.nilable(String)) }
1085
+ def node_name(node); end
1086
+
1087
+ sig { params(node: RBI::Node).returns(Integer) }
1088
+ def node_rank(node); end
1089
+
1090
+ sig { params(node: RBI::Node).void }
1091
+ def sort_node_names!(node); end
1092
+ end
1093
+
1094
+ class RBI::Scope < ::RBI::Tree
1095
+ include ::RBI::Indexable
1096
+
1097
+ abstract!
1098
+
1099
+ def initialize(*args, &blk); end
1100
+
1101
+ sig { override.params(v: RBI::Printer).void }
1102
+ def accept_printer(v); end
1103
+
1104
+ sig { returns(T.self_type) }
1105
+ def dup_empty; end
1106
+
1107
+ sig { abstract.returns(String) }
1108
+ def fully_qualified_name; end
1109
+
1110
+ sig { override.returns(T::Array[String]) }
1111
+ def index_ids; end
1112
+
1113
+ sig { params(v: RBI::Printer).void }
1114
+ def print_body(v); end
1115
+
1116
+ sig { abstract.params(v: RBI::Printer).void }
1117
+ def print_header(v); end
1118
+
1119
+ sig { override.returns(String) }
1120
+ def to_s; end
1121
+ end
1122
+
1123
+ class RBI::ScopeConflict < ::RBI::Tree
1124
+ sig { params(left: RBI::Scope, right: RBI::Scope, left_name: String, right_name: String).void }
1125
+ def initialize(left:, right:, left_name: T.unsafe(nil), right_name: T.unsafe(nil)); end
1126
+
1127
+ sig { override.params(v: RBI::Printer).void }
1128
+ def accept_printer(v); end
1129
+
1130
+ sig { returns(RBI::Scope) }
1131
+ def left; end
1132
+
1133
+ sig { override.returns(T::Boolean) }
1134
+ def oneline?; end
1135
+
1136
+ def right; end
1137
+ end
1138
+
1139
+ class RBI::Send < ::RBI::NodeWithComments
1140
+ include ::RBI::Indexable
1141
+
1142
+ sig { params(method: String, args: T::Array[RBI::Arg], loc: T.nilable(RBI::Loc), comments: T::Array[RBI::Comment], block: T.nilable(T.proc.params(node: RBI::Send).void)).void }
1143
+ def initialize(method, args = T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
1144
+
1145
+ sig { params(arg: RBI::Arg).void }
1146
+ def <<(arg); end
1147
+
1148
+ sig { params(other: T.nilable(Object)).returns(T::Boolean) }
1149
+ def ==(other); end
1150
+
1151
+ sig { override.params(v: RBI::Printer).void }
1152
+ def accept_printer(v); end
1153
+
1154
+ sig { returns(T::Array[RBI::Arg]) }
1155
+ def args; end
1156
+
1157
+ sig { override.params(other: RBI::Node).returns(T::Boolean) }
1158
+ def compatible_with?(other); end
1159
+
1160
+ sig { override.returns(T::Array[String]) }
1161
+ def index_ids; end
1162
+
1163
+ sig { returns(String) }
1164
+ def method; end
1165
+
1166
+ sig { returns(String) }
1167
+ def to_s; end
1168
+ end
1169
+
1170
+ class RBI::Sig < ::RBI::Node
1171
+ sig { params(params: T::Array[RBI::SigParam], return_type: T.nilable(String), is_abstract: T::Boolean, is_override: T::Boolean, is_overridable: T::Boolean, type_params: T::Array[String], checked: T.nilable(Symbol), loc: T.nilable(RBI::Loc), block: T.nilable(T.proc.params(node: RBI::Sig).void)).void }
1172
+ def initialize(params: T.unsafe(nil), return_type: T.unsafe(nil), is_abstract: T.unsafe(nil), is_override: T.unsafe(nil), is_overridable: T.unsafe(nil), type_params: T.unsafe(nil), checked: T.unsafe(nil), loc: T.unsafe(nil), &block); end
1173
+
1174
+ sig { params(param: RBI::SigParam).void }
1175
+ def <<(param); end
1176
+
1177
+ sig { params(other: Object).returns(T::Boolean) }
1178
+ def ==(other); end
1179
+
1180
+ sig { override.params(v: RBI::Printer).void }
1181
+ def accept_printer(v); end
1182
+
1183
+ sig { returns(T.nilable(Symbol)) }
1184
+ def checked; end
1185
+
1186
+ def checked=(_arg0); end
1187
+
1188
+ sig { returns(T::Boolean) }
1189
+ def inline_params?; end
1190
+
1191
+ sig { returns(T::Boolean) }
1192
+ def is_abstract; end
1193
+
1194
+ def is_abstract=(_arg0); end
1195
+ def is_overridable; end
1196
+ def is_overridable=(_arg0); end
1197
+ def is_override; end
1198
+ def is_override=(_arg0); end
1199
+
1200
+ sig { override.returns(T::Boolean) }
1201
+ def oneline?; end
1202
+
1203
+ sig { returns(T::Array[RBI::SigParam]) }
1204
+ def params; end
1205
+
1206
+ sig { returns(T.nilable(String)) }
1207
+ def return_type; end
1208
+
1209
+ def return_type=(_arg0); end
1210
+
1211
+ sig { returns(T::Array[String]) }
1212
+ def type_params; end
1213
+
1214
+ private
1215
+
1216
+ sig { params(v: RBI::Printer).void }
1217
+ def print_as_block(v); end
1218
+
1219
+ sig { params(v: RBI::Printer).void }
1220
+ def print_as_line(v); end
1221
+
1222
+ sig { returns(T::Array[String]) }
1223
+ def sig_modifiers; end
1224
+ end
1225
+
1226
+ class RBI::SigBuilder < ::RBI::ASTVisitor
1227
+ sig { void }
1228
+ def initialize; end
1229
+
1230
+ sig { returns(RBI::Sig) }
1231
+ def current; end
1232
+
1233
+ def current=(_arg0); end
1234
+
1235
+ sig { override.params(node: T.nilable(AST::Node)).void }
1236
+ def visit(node); end
1237
+
1238
+ sig { params(node: AST::Node).void }
1239
+ def visit_send(node); end
1240
+
1241
+ class << self
1242
+ sig { params(node: AST::Node).returns(RBI::Sig) }
1243
+ def build(node); end
1244
+ end
1245
+ end
1246
+
1247
+ class RBI::SigParam < ::RBI::NodeWithComments
1248
+ sig { params(name: String, type: String, loc: T.nilable(RBI::Loc), comments: T::Array[RBI::Comment], block: T.nilable(T.proc.params(node: RBI::SigParam).void)).void }
1249
+ def initialize(name, type, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
1250
+
1251
+ sig { params(other: Object).returns(T::Boolean) }
1252
+ def ==(other); end
1253
+
1254
+ sig { override.params(v: RBI::Printer).void }
1255
+ def accept_printer(v); end
1256
+
1257
+ sig { returns(T::Array[String]) }
1258
+ def comments_lines; end
1259
+
1260
+ sig { returns(String) }
1261
+ def name; end
1262
+
1263
+ sig { params(v: RBI::Printer, last: T::Boolean).void }
1264
+ def print_comment_leading_space(v, last:); end
1265
+
1266
+ def type; end
1267
+ end
1268
+
1269
+ class RBI::SingletonClass < ::RBI::Scope
1270
+ sig { params(loc: T.nilable(RBI::Loc), comments: T::Array[RBI::Comment], block: T.nilable(T.proc.params(node: RBI::SingletonClass).void)).void }
1271
+ def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
1272
+
1273
+ sig { override.returns(String) }
1274
+ def fully_qualified_name; end
1275
+
1276
+ sig { override.params(v: RBI::Printer).void }
1277
+ def print_header(v); end
1278
+ end
1279
+
1280
+ class RBI::Struct < ::RBI::Scope
1281
+ sig { params(name: String, members: T::Array[Symbol], keyword_init: T::Boolean, loc: T.nilable(RBI::Loc), comments: T::Array[RBI::Comment], block: T.nilable(T.proc.params(struct: RBI::Struct).void)).void }
1282
+ def initialize(name, members: T.unsafe(nil), keyword_init: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
1283
+
1284
+ sig { override.params(other: RBI::Node).returns(T::Boolean) }
1285
+ def compatible_with?(other); end
1286
+
1287
+ sig { override.returns(String) }
1288
+ def fully_qualified_name; end
1289
+
1290
+ sig { returns(T::Boolean) }
1291
+ def keyword_init; end
1292
+
1293
+ def keyword_init=(_arg0); end
1294
+
1295
+ sig { returns(T::Array[Symbol]) }
1296
+ def members; end
1297
+
1298
+ def members=(_arg0); end
1299
+
1300
+ sig { returns(String) }
1301
+ def name; end
1302
+
1303
+ def name=(_arg0); end
1304
+
1305
+ sig { override.params(v: RBI::Printer).void }
1306
+ def print_header(v); end
1307
+ end
1308
+
1309
+ class RBI::TEnum < ::RBI::Class
1310
+ sig { params(name: String, loc: T.nilable(RBI::Loc), comments: T::Array[RBI::Comment], block: T.nilable(T.proc.params(klass: RBI::TEnum).void)).void }
1311
+ def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
1312
+ end
1313
+
1314
+ class RBI::TEnumBlock < ::RBI::NodeWithComments
1315
+ include ::RBI::Indexable
1316
+
1317
+ sig { params(names: T::Array[String], loc: T.nilable(RBI::Loc), comments: T::Array[RBI::Comment], block: T.nilable(T.proc.params(node: RBI::TEnumBlock).void)).void }
1318
+ def initialize(names = T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
1319
+
1320
+ sig { params(name: String).void }
1321
+ def <<(name); end
1322
+
1323
+ sig { override.params(v: RBI::Printer).void }
1324
+ def accept_printer(v); end
1325
+
1326
+ sig { returns(T::Boolean) }
1327
+ def empty?; end
1328
+
1329
+ sig { override.returns(T::Array[String]) }
1330
+ def index_ids; end
1331
+
1332
+ sig { override.params(other: RBI::Node).void }
1333
+ def merge_with(other); end
1334
+
1335
+ sig { returns(T::Array[String]) }
1336
+ def names; end
1337
+
1338
+ sig { override.returns(String) }
1339
+ def to_s; end
1340
+ end
1341
+
1342
+ class RBI::TStruct < ::RBI::Class
1343
+ sig { params(name: String, loc: T.nilable(RBI::Loc), comments: T::Array[RBI::Comment], block: T.nilable(T.proc.params(klass: RBI::TStruct).void)).void }
1344
+ def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
1345
+ end
1346
+
1347
+ class RBI::TStructConst < ::RBI::TStructField
1348
+ include ::RBI::Indexable
1349
+
1350
+ sig { params(name: String, type: String, default: T.nilable(String), loc: T.nilable(RBI::Loc), comments: T::Array[RBI::Comment], block: T.nilable(T.proc.params(node: RBI::TStructConst).void)).void }
1351
+ def initialize(name, type, default: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
1352
+
1353
+ sig { override.params(other: RBI::Node).returns(T::Boolean) }
1354
+ def compatible_with?(other); end
1355
+
1356
+ sig { override.returns(T::Array[String]) }
1357
+ def fully_qualified_names; end
1358
+
1359
+ sig { override.returns(T::Array[String]) }
1360
+ def index_ids; end
1361
+
1362
+ sig { override.returns(String) }
1363
+ def to_s; end
1364
+ end
1365
+
1366
+ class RBI::TStructField < ::RBI::NodeWithComments
1367
+ abstract!
1368
+
1369
+ sig { params(name: String, type: String, default: T.nilable(String), loc: T.nilable(RBI::Loc), comments: T::Array[RBI::Comment]).void }
1370
+ def initialize(name, type, default: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil)); end
1371
+
1372
+ sig { override.params(v: RBI::Printer).void }
1373
+ def accept_printer(v); end
1374
+
1375
+ sig { override.params(other: RBI::Node).returns(T::Boolean) }
1376
+ def compatible_with?(other); end
1377
+
1378
+ sig { returns(T.nilable(String)) }
1379
+ def default; end
1380
+
1381
+ def default=(_arg0); end
1382
+
1383
+ sig { abstract.returns(T::Array[String]) }
1384
+ def fully_qualified_names; end
1385
+
1386
+ sig { returns(String) }
1387
+ def name; end
1388
+
1389
+ def name=(_arg0); end
1390
+ def type; end
1391
+ def type=(_arg0); end
1392
+ end
1393
+
1394
+ class RBI::TStructProp < ::RBI::TStructField
1395
+ include ::RBI::Indexable
1396
+
1397
+ sig { params(name: String, type: String, default: T.nilable(String), loc: T.nilable(RBI::Loc), comments: T::Array[RBI::Comment], block: T.nilable(T.proc.params(node: RBI::TStructProp).void)).void }
1398
+ def initialize(name, type, default: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
1399
+
1400
+ sig { override.params(other: RBI::Node).returns(T::Boolean) }
1401
+ def compatible_with?(other); end
1402
+
1403
+ sig { override.returns(T::Array[String]) }
1404
+ def fully_qualified_names; end
1405
+
1406
+ sig { override.returns(T::Array[String]) }
1407
+ def index_ids; end
1408
+
1409
+ sig { override.returns(String) }
1410
+ def to_s; end
1411
+ end
1412
+
1413
+ class RBI::Tree < ::RBI::NodeWithComments
1414
+ sig { params(loc: T.nilable(RBI::Loc), comments: T::Array[RBI::Comment], block: T.nilable(T.proc.params(node: RBI::Tree).void)).void }
1415
+ def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
1416
+
1417
+ sig { params(node: RBI::Node).void }
1418
+ def <<(node); end
1419
+
1420
+ sig { override.params(v: RBI::Printer).void }
1421
+ def accept_printer(v); end
1422
+
1423
+ sig { params(with_todo_comment: T::Boolean).void }
1424
+ def add_sig_templates!(with_todo_comment: T.unsafe(nil)); end
1425
+
1426
+ sig { params(annotation: String, annotate_scopes: T::Boolean, annotate_properties: T::Boolean).void }
1427
+ def annotate!(annotation, annotate_scopes: T.unsafe(nil), annotate_properties: T.unsafe(nil)); end
1428
+
1429
+ sig { params(name: String, superclass_name: T.nilable(String), block: T.nilable(T.proc.params(scope: RBI::Scope).void)).returns(RBI::Scope) }
1430
+ def create_class(name, superclass_name: T.unsafe(nil), &block); end
1431
+
1432
+ sig { params(name: String, value: String).void }
1433
+ def create_constant(name, value:); end
1434
+
1435
+ sig { params(name: String).void }
1436
+ def create_extend(name); end
1437
+
1438
+ sig { params(name: String).void }
1439
+ def create_include(name); end
1440
+
1441
+ sig { params(name: String, parameters: T::Array[RBI::TypedParam], return_type: String, class_method: T::Boolean, visibility: RBI::Visibility).void }
1442
+ def create_method(name, parameters: T.unsafe(nil), return_type: T.unsafe(nil), class_method: T.unsafe(nil), visibility: T.unsafe(nil)); end
1443
+
1444
+ sig { params(name: String).void }
1445
+ def create_mixes_in_class_methods(name); end
1446
+
1447
+ sig { params(name: String, block: T.nilable(T.proc.params(scope: RBI::Scope).void)).returns(RBI::Scope) }
1448
+ def create_module(name, &block); end
1449
+
1450
+ sig { params(constant: Module, block: T.nilable(T.proc.params(scope: RBI::Scope).void)).void }
1451
+ def create_path(constant, &block); end
1452
+
1453
+ sig { params(name: String, value: String).void }
1454
+ def create_type_member(name, value: T.unsafe(nil)); end
1455
+
1456
+ sig { params(annotation: String).void }
1457
+ def deannotate!(annotation); end
1458
+
1459
+ sig { returns(T::Boolean) }
1460
+ def empty?; end
1461
+
1462
+ sig { void }
1463
+ def group_nodes!; end
1464
+
1465
+ sig { returns(RBI::Index) }
1466
+ def index; end
1467
+
1468
+ sig { params(other: RBI::Tree, left_name: String, right_name: String, keep: RBI::Rewriters::Merge::Keep).returns(RBI::MergeTree) }
1469
+ def merge(other, left_name: T.unsafe(nil), right_name: T.unsafe(nil), keep: T.unsafe(nil)); end
1470
+
1471
+ sig { void }
1472
+ def nest_non_public_methods!; end
1473
+
1474
+ sig { void }
1475
+ def nest_singleton_methods!; end
1476
+
1477
+ sig { returns(T::Array[RBI::Node]) }
1478
+ def nodes; end
1479
+
1480
+ sig { override.returns(T::Boolean) }
1481
+ def oneline?; end
1482
+
1483
+ sig { void }
1484
+ def sort_nodes!; end
1485
+
1486
+ private
1487
+
1488
+ sig { params(node: RBI::Node).returns(RBI::Node) }
1489
+ def create_node(node); end
1490
+
1491
+ sig { returns(T::Hash[String, RBI::Node]) }
1492
+ def nodes_cache; end
1493
+
1494
+ sig { params(name: String).returns(T::Boolean) }
1495
+ def valid_method_name?(name); end
1496
+ end
1497
+
1498
+ RBI::Tree::SPECIAL_METHOD_NAMES = T.let(T.unsafe(nil), Array)
1499
+
1500
+ class RBI::TreeBuilder < ::RBI::ASTVisitor
1501
+ sig { params(file: String, comments: T::Array[Parser::Source::Comment], nodes_comments_assoc: T::Hash[Parser::Source::Map, T::Array[Parser::Source::Comment]]).void }
1502
+ def initialize(file:, comments: T.unsafe(nil), nodes_comments_assoc: T.unsafe(nil)); end
1503
+
1504
+ sig { void }
1505
+ def post_process; end
1506
+
1507
+ sig { returns(RBI::Tree) }
1508
+ def tree; end
1509
+
1510
+ sig { override.params(node: T.nilable(Object)).void }
1511
+ def visit(node); end
1512
+
1513
+ private
1514
+
1515
+ sig { void }
1516
+ def assoc_dangling_comments; end
1517
+
1518
+ sig { returns(RBI::Tree) }
1519
+ def current_scope; end
1520
+
1521
+ sig { returns(T::Array[RBI::Sig]) }
1522
+ def current_sigs; end
1523
+
1524
+ sig { params(node: AST::Node).returns(T::Array[RBI::Comment]) }
1525
+ def node_comments(node); end
1526
+
1527
+ sig { params(node: AST::Node).returns(RBI::Loc) }
1528
+ def node_loc(node); end
1529
+
1530
+ sig { params(node: AST::Node).returns(T.nilable(RBI::Node)) }
1531
+ def parse_block(node); end
1532
+
1533
+ sig { params(node: AST::Node).returns(RBI::Node) }
1534
+ def parse_const_assign(node); end
1535
+
1536
+ sig { params(node: AST::Node).returns(RBI::Method) }
1537
+ def parse_def(node); end
1538
+
1539
+ sig { params(node: AST::Node).returns(RBI::TEnumBlock) }
1540
+ def parse_enum(node); end
1541
+
1542
+ sig { params(node: AST::Node).returns(RBI::Param) }
1543
+ def parse_param(node); end
1544
+
1545
+ sig { params(node: AST::Node).returns(RBI::RequiresAncestor) }
1546
+ def parse_requires_ancestor(node); end
1547
+
1548
+ sig { params(node: AST::Node).returns(RBI::Scope) }
1549
+ def parse_scope(node); end
1550
+
1551
+ sig { params(node: AST::Node).returns(T.nilable(RBI::Node)) }
1552
+ def parse_send(node); end
1553
+
1554
+ sig { params(node: AST::Node).returns(T::Array[RBI::Arg]) }
1555
+ def parse_send_args(node); end
1556
+
1557
+ sig { params(node: AST::Node).returns(RBI::Sig) }
1558
+ def parse_sig(node); end
1559
+
1560
+ sig { params(node: AST::Node).returns(RBI::Struct) }
1561
+ def parse_struct(node); end
1562
+
1563
+ sig { params(node: AST::Node).returns([String, String, T.nilable(String)]) }
1564
+ def parse_tstruct_prop(node); end
1565
+
1566
+ sig { void }
1567
+ def separate_header_comments; end
1568
+
1569
+ sig { void }
1570
+ def set_root_tree_loc; end
1571
+
1572
+ sig { params(node: AST::Node).returns(T::Boolean) }
1573
+ def struct_definition?(node); end
1574
+ end
1575
+
1576
+ class RBI::TypeMember < ::RBI::NodeWithComments
1577
+ sig { params(name: String, value: String, loc: T.nilable(RBI::Loc), comments: T::Array[RBI::Comment], block: T.nilable(T.proc.params(node: RBI::TypeMember).void)).void }
1578
+ def initialize(name, value, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
1579
+
1580
+ sig { override.params(v: RBI::Printer).void }
1581
+ def accept_printer(v); end
1582
+
1583
+ sig { returns(String) }
1584
+ def fully_qualified_name; end
1585
+
1586
+ sig { returns(String) }
1587
+ def name; end
1588
+
1589
+ sig { override.returns(String) }
1590
+ def to_s; end
1591
+
1592
+ def value; end
1593
+ end
1594
+
1595
+ RBI::VERSION = T.let(T.unsafe(nil), String)
1596
+
1597
+ class RBI::Visibility < ::RBI::NodeWithComments
1598
+ abstract!
1599
+
1600
+ sig { params(visibility: Symbol, loc: T.nilable(RBI::Loc), comments: T::Array[RBI::Comment]).void }
1601
+ def initialize(visibility, loc: T.unsafe(nil), comments: T.unsafe(nil)); end
1602
+
1603
+ sig { params(other: RBI::Visibility).returns(T::Boolean) }
1604
+ def ==(other); end
1605
+
1606
+ sig { override.params(v: RBI::Printer).void }
1607
+ def accept_printer(v); end
1608
+
1609
+ sig { returns(T::Boolean) }
1610
+ def private?; end
1611
+
1612
+ sig { returns(T::Boolean) }
1613
+ def protected?; end
1614
+
1615
+ sig { returns(T::Boolean) }
1616
+ def public?; end
1617
+
1618
+ sig { returns(Symbol) }
1619
+ def visibility; end
1620
+ end
1621
+
1622
+ class RBI::VisibilityGroup < ::RBI::Tree
1623
+ sig { params(visibility: RBI::Visibility).void }
1624
+ def initialize(visibility); end
1625
+
1626
+ sig { override.params(v: RBI::Printer).void }
1627
+ def accept_printer(v); end
1628
+
1629
+ sig { override.returns(T::Boolean) }
1630
+ def oneline?; end
1631
+
1632
+ sig { returns(RBI::Visibility) }
1633
+ def visibility; end
1634
+ end
1635
+
1636
+ class RBI::Visitor
1637
+ abstract!
1638
+
1639
+ def initialize(*args, &blk); end
1640
+
1641
+ sig { abstract.params(node: T.nilable(RBI::Node)).void }
1642
+ def visit(node); end
1643
+
1644
+ sig { params(nodes: T::Array[RBI::Node]).void }
1645
+ def visit_all(nodes); end
1646
+ end