stripe 10.9.0.pre.beta.1 → 10.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (216) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +51 -275
  3. data/Gemfile +3 -0
  4. data/Makefile +7 -0
  5. data/OPENAPI_VERSION +1 -1
  6. data/README.md +0 -11
  7. data/VERSION +1 -1
  8. data/bin/tapioca +27 -0
  9. data/lib/stripe/api_operations/request.rb +1 -2
  10. data/lib/stripe/api_resource.rb +10 -1
  11. data/lib/stripe/api_resource_test_helpers.rb +6 -2
  12. data/lib/stripe/api_version.rb +0 -1
  13. data/lib/stripe/list_object.rb +3 -0
  14. data/lib/stripe/object_types.rb +120 -141
  15. data/lib/stripe/resources/account.rb +6 -4
  16. data/lib/stripe/resources/account_link.rb +3 -0
  17. data/lib/stripe/resources/account_session.rb +3 -0
  18. data/lib/stripe/resources/apple_pay_domain.rb +3 -0
  19. data/lib/stripe/resources/application_fee.rb +3 -0
  20. data/lib/stripe/resources/application_fee_refund.rb +3 -0
  21. data/lib/stripe/resources/apps/secret.rb +3 -0
  22. data/lib/stripe/resources/balance.rb +3 -0
  23. data/lib/stripe/resources/balance_transaction.rb +3 -0
  24. data/lib/stripe/resources/bank_account.rb +3 -0
  25. data/lib/stripe/resources/billing_portal/configuration.rb +3 -0
  26. data/lib/stripe/resources/billing_portal/session.rb +3 -0
  27. data/lib/stripe/resources/capability.rb +3 -0
  28. data/lib/stripe/resources/card.rb +3 -0
  29. data/lib/stripe/resources/cash_balance.rb +3 -0
  30. data/lib/stripe/resources/charge.rb +3 -0
  31. data/lib/stripe/resources/checkout/session.rb +3 -0
  32. data/lib/stripe/resources/climate/order.rb +3 -0
  33. data/lib/stripe/resources/climate/product.rb +3 -0
  34. data/lib/stripe/resources/climate/supplier.rb +3 -0
  35. data/lib/stripe/resources/country_spec.rb +3 -0
  36. data/lib/stripe/resources/coupon.rb +3 -0
  37. data/lib/stripe/resources/credit_note.rb +3 -0
  38. data/lib/stripe/resources/credit_note_line_item.rb +3 -0
  39. data/lib/stripe/resources/customer.rb +7 -13
  40. data/lib/stripe/resources/customer_balance_transaction.rb +3 -0
  41. data/lib/stripe/resources/customer_cash_balance_transaction.rb +3 -0
  42. data/lib/stripe/resources/customer_session.rb +3 -0
  43. data/lib/stripe/resources/discount.rb +3 -0
  44. data/lib/stripe/resources/dispute.rb +3 -0
  45. data/lib/stripe/resources/ephemeral_key.rb +3 -0
  46. data/lib/stripe/resources/event.rb +3 -0
  47. data/lib/stripe/resources/exchange_rate.rb +3 -0
  48. data/lib/stripe/resources/file.rb +6 -0
  49. data/lib/stripe/resources/file_link.rb +3 -0
  50. data/lib/stripe/resources/financial_connections/account.rb +3 -3
  51. data/lib/stripe/resources/financial_connections/account_owner.rb +3 -0
  52. data/lib/stripe/resources/financial_connections/account_ownership.rb +3 -0
  53. data/lib/stripe/resources/financial_connections/session.rb +3 -0
  54. data/lib/stripe/resources/financial_connections/transaction.rb +3 -0
  55. data/lib/stripe/resources/funding_instructions.rb +3 -0
  56. data/lib/stripe/resources/identity/verification_report.rb +3 -0
  57. data/lib/stripe/resources/identity/verification_session.rb +3 -0
  58. data/lib/stripe/resources/invoice.rb +2 -52
  59. data/lib/stripe/resources/invoice_item.rb +3 -0
  60. data/lib/stripe/resources/invoice_line_item.rb +3 -0
  61. data/lib/stripe/resources/issuing/authorization.rb +6 -0
  62. data/lib/stripe/resources/issuing/card.rb +6 -0
  63. data/lib/stripe/resources/issuing/cardholder.rb +3 -0
  64. data/lib/stripe/resources/issuing/dispute.rb +3 -0
  65. data/lib/stripe/resources/issuing/token.rb +3 -0
  66. data/lib/stripe/resources/issuing/transaction.rb +6 -0
  67. data/lib/stripe/resources/line_item.rb +3 -0
  68. data/lib/stripe/resources/login_link.rb +3 -0
  69. data/lib/stripe/resources/mandate.rb +3 -0
  70. data/lib/stripe/resources/payment_intent.rb +5 -4
  71. data/lib/stripe/resources/payment_link.rb +3 -0
  72. data/lib/stripe/resources/payment_method.rb +3 -0
  73. data/lib/stripe/resources/payment_method_configuration.rb +3 -0
  74. data/lib/stripe/resources/payment_method_domain.rb +3 -0
  75. data/lib/stripe/resources/payout.rb +3 -0
  76. data/lib/stripe/resources/person.rb +3 -0
  77. data/lib/stripe/resources/plan.rb +3 -0
  78. data/lib/stripe/resources/price.rb +3 -0
  79. data/lib/stripe/resources/product.rb +3 -0
  80. data/lib/stripe/resources/promotion_code.rb +3 -0
  81. data/lib/stripe/resources/quote.rb +3 -104
  82. data/lib/stripe/resources/radar/early_fraud_warning.rb +3 -0
  83. data/lib/stripe/resources/radar/value_list.rb +3 -0
  84. data/lib/stripe/resources/radar/value_list_item.rb +3 -0
  85. data/lib/stripe/resources/refund.rb +6 -0
  86. data/lib/stripe/resources/reporting/report_run.rb +3 -0
  87. data/lib/stripe/resources/reporting/report_type.rb +3 -0
  88. data/lib/stripe/resources/reversal.rb +3 -0
  89. data/lib/stripe/resources/review.rb +3 -0
  90. data/lib/stripe/resources/setup_attempt.rb +3 -0
  91. data/lib/stripe/resources/setup_intent.rb +3 -0
  92. data/lib/stripe/resources/shipping_rate.rb +3 -0
  93. data/lib/stripe/resources/sigma/scheduled_query_run.rb +3 -0
  94. data/lib/stripe/resources/source.rb +3 -0
  95. data/lib/stripe/resources/source_transaction.rb +3 -0
  96. data/lib/stripe/resources/subscription.rb +3 -0
  97. data/lib/stripe/resources/subscription_item.rb +3 -0
  98. data/lib/stripe/resources/subscription_schedule.rb +2 -19
  99. data/lib/stripe/resources/tax/calculation.rb +3 -0
  100. data/lib/stripe/resources/tax/calculation_line_item.rb +3 -0
  101. data/lib/stripe/resources/tax/registration.rb +3 -0
  102. data/lib/stripe/resources/tax/settings.rb +3 -0
  103. data/lib/stripe/resources/tax/transaction.rb +3 -0
  104. data/lib/stripe/resources/tax/transaction_line_item.rb +3 -0
  105. data/lib/stripe/resources/tax_code.rb +3 -0
  106. data/lib/stripe/resources/tax_id.rb +5 -4
  107. data/lib/stripe/resources/tax_rate.rb +3 -0
  108. data/lib/stripe/resources/terminal/configuration.rb +3 -0
  109. data/lib/stripe/resources/terminal/connection_token.rb +3 -0
  110. data/lib/stripe/resources/terminal/location.rb +3 -0
  111. data/lib/stripe/resources/terminal/reader.rb +6 -60
  112. data/lib/stripe/resources/test_helpers/test_clock.rb +3 -0
  113. data/lib/stripe/resources/token.rb +3 -0
  114. data/lib/stripe/resources/topup.rb +3 -0
  115. data/lib/stripe/resources/transfer.rb +3 -0
  116. data/lib/stripe/resources/treasury/credit_reversal.rb +3 -0
  117. data/lib/stripe/resources/treasury/debit_reversal.rb +3 -0
  118. data/lib/stripe/resources/treasury/financial_account.rb +3 -0
  119. data/lib/stripe/resources/treasury/financial_account_features.rb +3 -0
  120. data/lib/stripe/resources/treasury/inbound_transfer.rb +6 -0
  121. data/lib/stripe/resources/treasury/outbound_payment.rb +6 -0
  122. data/lib/stripe/resources/treasury/outbound_transfer.rb +6 -0
  123. data/lib/stripe/resources/treasury/received_credit.rb +6 -0
  124. data/lib/stripe/resources/treasury/received_debit.rb +6 -0
  125. data/lib/stripe/resources/treasury/transaction.rb +3 -0
  126. data/lib/stripe/resources/treasury/transaction_entry.rb +3 -0
  127. data/lib/stripe/resources/usage_record.rb +3 -0
  128. data/lib/stripe/resources/usage_record_summary.rb +3 -0
  129. data/lib/stripe/resources/webhook_endpoint.rb +3 -0
  130. data/lib/stripe/resources.rb +0 -22
  131. data/lib/stripe/search_result_object.rb +3 -0
  132. data/lib/stripe/singleton_api_resource.rb +1 -1
  133. data/lib/stripe/stripe_client.rb +28 -62
  134. data/lib/stripe/stripe_configuration.rb +1 -2
  135. data/lib/stripe/util.rb +1 -8
  136. data/lib/stripe/version.rb +1 -1
  137. data/lib/stripe.rb +0 -46
  138. data/sorbet/config +4 -0
  139. data/sorbet/rbi/annotations/.gitattributes +1 -0
  140. data/sorbet/rbi/annotations/coveralls_reborn.rbi +3 -0
  141. data/sorbet/rbi/gems/.gitattributes +1 -0
  142. data/sorbet/rbi/gems/addressable@2.8.6.rbi +1993 -0
  143. data/sorbet/rbi/gems/ast@2.4.2.rbi +584 -0
  144. data/sorbet/rbi/gems/byebug@11.1.3.rbi +3606 -0
  145. data/sorbet/rbi/gems/coderay@1.1.3.rbi +3437 -0
  146. data/sorbet/rbi/gems/coveralls_reborn@0.25.0.rbi +8 -0
  147. data/sorbet/rbi/gems/crack@0.4.5.rbi +144 -0
  148. data/sorbet/rbi/gems/docile@1.4.0.rbi +8 -0
  149. data/sorbet/rbi/gems/erubi@1.12.0.rbi +146 -0
  150. data/sorbet/rbi/gems/hashdiff@1.1.0.rbi +352 -0
  151. data/sorbet/rbi/gems/jaro_winkler@1.5.4.rbi +19 -0
  152. data/sorbet/rbi/gems/json@2.7.1.rbi +1561 -0
  153. data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +14237 -0
  154. data/sorbet/rbi/gems/method_source@1.0.0.rbi +272 -0
  155. data/sorbet/rbi/gems/mocha@1.16.1.rbi +11 -0
  156. data/sorbet/rbi/gems/netrc@0.11.0.rbi +161 -0
  157. data/sorbet/rbi/gems/parallel@1.24.0.rbi +280 -0
  158. data/sorbet/rbi/gems/parser@3.2.2.4.rbi +9454 -0
  159. data/sorbet/rbi/gems/power_assert@2.0.3.rbi +414 -0
  160. data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +951 -0
  161. data/sorbet/rbi/gems/prism@0.19.0.rbi +29883 -0
  162. data/sorbet/rbi/gems/pry-byebug@3.10.1.rbi +1150 -0
  163. data/sorbet/rbi/gems/pry@0.14.2.rbi +10085 -0
  164. data/sorbet/rbi/gems/public_suffix@5.0.4.rbi +931 -0
  165. data/sorbet/rbi/gems/racc@1.7.3.rbi +161 -0
  166. data/sorbet/rbi/gems/rack@3.0.8.rbi +5193 -0
  167. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +402 -0
  168. data/sorbet/rbi/gems/rake@13.1.0.rbi +2884 -0
  169. data/sorbet/rbi/gems/rbi@0.1.6.rbi +2922 -0
  170. data/sorbet/rbi/gems/regexp_parser@2.8.3.rbi +3766 -0
  171. data/sorbet/rbi/gems/rexml@3.2.6.rbi +4887 -0
  172. data/sorbet/rbi/gems/rubocop-ast@1.30.0.rbi +7004 -0
  173. data/sorbet/rbi/gems/rubocop@1.57.2.rbi +56919 -0
  174. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1317 -0
  175. data/sorbet/rbi/gems/shoulda-context@2.0.0.rbi +555 -0
  176. data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +8 -0
  177. data/sorbet/rbi/gems/simplecov@0.21.2.rbi +8 -0
  178. data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +8 -0
  179. data/sorbet/rbi/gems/spoom@1.2.4.rbi +3777 -0
  180. data/sorbet/rbi/gems/sync@0.5.0.rbi +8 -0
  181. data/sorbet/rbi/gems/syntax_tree@6.2.0.rbi +23136 -0
  182. data/sorbet/rbi/gems/tapioca@0.11.17.rbi +3503 -0
  183. data/sorbet/rbi/gems/term-ansicolor@1.7.1.rbi +8 -0
  184. data/sorbet/rbi/gems/test-unit@3.6.1.rbi +4403 -0
  185. data/sorbet/rbi/gems/thor@1.3.0.rbi +4345 -0
  186. data/sorbet/rbi/gems/tins@1.32.1.rbi +8 -0
  187. data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +65 -0
  188. data/sorbet/rbi/gems/webmock@3.19.1.rbi +1740 -0
  189. data/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi +428 -0
  190. data/sorbet/rbi/gems/yard@0.9.34.rbi +18219 -0
  191. data/sorbet/tapioca/config.yml +13 -0
  192. data/sorbet/tapioca/require.rb +4 -0
  193. metadata +61 -27
  194. data/lib/stripe/request_signing_authenticator.rb +0 -79
  195. data/lib/stripe/resources/account_notice.rb +0 -29
  196. data/lib/stripe/resources/capital/financing_offer.rb +0 -46
  197. data/lib/stripe/resources/capital/financing_summary.rb +0 -12
  198. data/lib/stripe/resources/capital/financing_transaction.rb +0 -24
  199. data/lib/stripe/resources/confirmation_token.rb +0 -13
  200. data/lib/stripe/resources/customer_entitlement.rb +0 -9
  201. data/lib/stripe/resources/customer_entitlement_summary.rb +0 -9
  202. data/lib/stripe/resources/entitlements/event.rb +0 -23
  203. data/lib/stripe/resources/entitlements/feature.rb +0 -35
  204. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -11
  205. data/lib/stripe/resources/gift_cards/card.rb +0 -56
  206. data/lib/stripe/resources/gift_cards/transaction.rb +0 -90
  207. data/lib/stripe/resources/invoice_payment.rb +0 -9
  208. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -85
  209. data/lib/stripe/resources/issuing/personalization_design.rb +0 -113
  210. data/lib/stripe/resources/issuing/physical_bundle.rb +0 -23
  211. data/lib/stripe/resources/margin.rb +0 -34
  212. data/lib/stripe/resources/order.rb +0 -117
  213. data/lib/stripe/resources/quote_phase.rb +0 -36
  214. data/lib/stripe/resources/quote_preview_invoice.rb +0 -40
  215. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -8
  216. data/lib/stripe/resources/tax/form.rb +0 -46
@@ -0,0 +1,414 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `power_assert` gem.
5
+ # Please instead update this file by running `bin/tapioca gem power_assert`.
6
+
7
+ # source://power_assert//lib/power_assert/configuration.rb#1
8
+ module PowerAssert
9
+ class << self
10
+ # source://power_assert//lib/power_assert.rb#48
11
+ def app_caller_locations; end
12
+
13
+ # @return [Boolean]
14
+ #
15
+ # source://power_assert//lib/power_assert.rb#52
16
+ def app_context?; end
17
+
18
+ # source://power_assert//lib/power_assert/configuration.rb#3
19
+ def configuration; end
20
+
21
+ # @yield [configuration]
22
+ #
23
+ # source://power_assert//lib/power_assert/configuration.rb#7
24
+ def configure; end
25
+
26
+ # @yield [BlockContext.new(assertion_proc_or_source, assertion_method, source_binding)]
27
+ #
28
+ # source://power_assert//lib/power_assert.rb#30
29
+ def start(assertion_proc_or_source, assertion_method: T.unsafe(nil), source_binding: T.unsafe(nil)); end
30
+
31
+ # source://power_assert//lib/power_assert.rb#37
32
+ def trace(frame); end
33
+
34
+ private
35
+
36
+ # source://power_assert//lib/power_assert.rb#82
37
+ def clear_global_method_cache; end
38
+
39
+ # @return [Boolean]
40
+ #
41
+ # source://power_assert//lib/power_assert.rb#59
42
+ def internal_file?(file); end
43
+
44
+ # source://power_assert//lib/power_assert.rb#74
45
+ def lib_dir(obj, mid, depth); end
46
+
47
+ # source://power_assert//lib/power_assert.rb#67
48
+ def setup_internal_lib_dir(lib, mid, depth, lib_obj = T.unsafe(nil)); end
49
+ end
50
+ end
51
+
52
+ # source://power_assert//lib/power_assert/context.rb#161
53
+ class PowerAssert::BlockContext < ::PowerAssert::Context
54
+ # @return [BlockContext] a new instance of BlockContext
55
+ #
56
+ # source://power_assert//lib/power_assert/context.rb#162
57
+ def initialize(assertion_proc_or_source, assertion_method, source_binding); end
58
+
59
+ # source://power_assert//lib/power_assert/context.rb#188
60
+ def yield; end
61
+
62
+ private
63
+
64
+ # source://power_assert//lib/power_assert/context.rb#195
65
+ def invoke_yield; end
66
+ end
67
+
68
+ # source://power_assert//lib/power_assert/configuration.rb#12
69
+ class PowerAssert::Configuration < ::Struct
70
+ # Sets the attribute colorize_message
71
+ #
72
+ # @param value [Object] the value to set the attribute colorize_message to.
73
+ # @return [Object] the newly set value
74
+ #
75
+ # source://power_assert//lib/power_assert/configuration.rb#13
76
+ def colorize_message=(bool); end
77
+
78
+ # Sets the attribute inspector
79
+ #
80
+ # @param value [Object] the value to set the attribute inspector to.
81
+ # @return [Object] the newly set value
82
+ #
83
+ # source://power_assert//lib/power_assert/configuration.rb#30
84
+ def inspector=(inspector); end
85
+
86
+ # Sets the attribute lazy_inspection
87
+ #
88
+ # @param value [Object] the value to set the attribute lazy_inspection to.
89
+ # @return [Object] the newly set value
90
+ #
91
+ # source://power_assert//lib/power_assert/configuration.rb#23
92
+ def lazy_inspection=(bool); end
93
+ end
94
+
95
+ # source://power_assert//lib/power_assert/context.rb#7
96
+ class PowerAssert::Context
97
+ # @return [Context] a new instance of Context
98
+ #
99
+ # source://power_assert//lib/power_assert/context.rb#10
100
+ def initialize(base_caller_length); end
101
+
102
+ # source://power_assert//lib/power_assert/context.rb#43
103
+ def message; end
104
+
105
+ # source://power_assert//lib/power_assert/context.rb#48
106
+ def message_proc; end
107
+
108
+ private
109
+
110
+ # source://power_assert//lib/power_assert/context.rb#58
111
+ def build_assertion_message(parser, return_values); end
112
+
113
+ # source://power_assert//lib/power_assert/context.rb#149
114
+ def column2display_offset(str); end
115
+
116
+ # source://power_assert//lib/power_assert/context.rb#104
117
+ def detect_path(parser, return_values); end
118
+
119
+ # source://power_assert//lib/power_assert/context.rb#138
120
+ def encoding_safe_rstrip(str); end
121
+
122
+ # source://power_assert//lib/power_assert/context.rb#134
123
+ def enum_count_by(enum, &blk); end
124
+
125
+ # source://power_assert//lib/power_assert/context.rb#124
126
+ def find_all_identified_calls(return_values, path); end
127
+
128
+ # @return [Boolean]
129
+ #
130
+ # source://power_assert//lib/power_assert/context.rb#54
131
+ def fired?; end
132
+
133
+ # source://power_assert//lib/power_assert/context.rb#119
134
+ def uniq_calls(paths); end
135
+ end
136
+
137
+ # source://power_assert//lib/power_assert/context.rb#8
138
+ class PowerAssert::Context::Value < ::Struct
139
+ # Returns the value of attribute column
140
+ #
141
+ # @return [Object] the current value of column
142
+ def column; end
143
+
144
+ # Sets the attribute column
145
+ #
146
+ # @param value [Object] the value to set the attribute column to.
147
+ # @return [Object] the newly set value
148
+ #
149
+ # source://power_assert//lib/power_assert/context.rb#8
150
+ def column=(_); end
151
+
152
+ # Returns the value of attribute display_offset
153
+ #
154
+ # @return [Object] the current value of display_offset
155
+ def display_offset; end
156
+
157
+ # Sets the attribute display_offset
158
+ #
159
+ # @param value [Object] the value to set the attribute display_offset to.
160
+ # @return [Object] the newly set value
161
+ #
162
+ # source://power_assert//lib/power_assert/context.rb#8
163
+ def display_offset=(_); end
164
+
165
+ # Returns the value of attribute lineno
166
+ #
167
+ # @return [Object] the current value of lineno
168
+ def lineno; end
169
+
170
+ # Sets the attribute lineno
171
+ #
172
+ # @param value [Object] the value to set the attribute lineno to.
173
+ # @return [Object] the newly set value
174
+ #
175
+ # source://power_assert//lib/power_assert/context.rb#8
176
+ def lineno=(_); end
177
+
178
+ # Returns the value of attribute name
179
+ #
180
+ # @return [Object] the current value of name
181
+ def name; end
182
+
183
+ # Sets the attribute name
184
+ #
185
+ # @param value [Object] the value to set the attribute name to.
186
+ # @return [Object] the newly set value
187
+ #
188
+ # source://power_assert//lib/power_assert/context.rb#8
189
+ def name=(_); end
190
+
191
+ # Returns the value of attribute value
192
+ #
193
+ # @return [Object] the current value of value
194
+ def value; end
195
+
196
+ # Sets the attribute value
197
+ #
198
+ # @param value [Object] the value to set the attribute value to.
199
+ # @return [Object] the newly set value
200
+ #
201
+ # source://power_assert//lib/power_assert/context.rb#8
202
+ def value=(_); end
203
+
204
+ class << self
205
+ def [](*_arg0); end
206
+ def inspect; end
207
+ def members; end
208
+ def new(*_arg0); end
209
+ end
210
+ end
211
+
212
+ # source://power_assert//lib/power_assert.rb#88
213
+ module PowerAssert::Empty; end
214
+
215
+ # source://power_assert//lib/power_assert.rb#26
216
+ PowerAssert::INTERNAL_LIB_DIRS = T.let(T.unsafe(nil), Hash)
217
+
218
+ # source://power_assert//lib/power_assert/inspector.rb#8
219
+ class PowerAssert::InspectedValue
220
+ # @return [InspectedValue] a new instance of InspectedValue
221
+ #
222
+ # source://power_assert//lib/power_assert/inspector.rb#9
223
+ def initialize(value); end
224
+
225
+ # source://power_assert//lib/power_assert/inspector.rb#13
226
+ def inspect; end
227
+ end
228
+
229
+ # source://power_assert//lib/power_assert/inspector.rb#41
230
+ class PowerAssert::Inspector
231
+ # @return [Inspector] a new instance of Inspector
232
+ #
233
+ # source://power_assert//lib/power_assert/inspector.rb#42
234
+ def initialize(value, indent); end
235
+
236
+ # source://power_assert//lib/power_assert/inspector.rb#47
237
+ def inspect; end
238
+ end
239
+
240
+ # source://power_assert//lib/power_assert.rb#25
241
+ PowerAssert::POWER_ASSERT_LIB_DIR = T.let(T.unsafe(nil), String)
242
+
243
+ # source://power_assert//lib/power_assert/parser.rb#4
244
+ class PowerAssert::Parser
245
+ # @return [Parser] a new instance of Parser
246
+ #
247
+ # source://power_assert//lib/power_assert/parser.rb#9
248
+ def initialize(line, path, lineno, binding, assertion_method_name = T.unsafe(nil), assertion_proc = T.unsafe(nil)); end
249
+
250
+ # Returns the value of attribute binding.
251
+ #
252
+ # source://power_assert//lib/power_assert/parser.rb#7
253
+ def binding; end
254
+
255
+ # source://power_assert//lib/power_assert/parser.rb#24
256
+ def call_paths; end
257
+
258
+ # source://power_assert//lib/power_assert/parser.rb#20
259
+ def idents; end
260
+
261
+ # Returns the value of attribute line.
262
+ #
263
+ # source://power_assert//lib/power_assert/parser.rb#7
264
+ def line; end
265
+
266
+ # Returns the value of attribute lineno.
267
+ #
268
+ # source://power_assert//lib/power_assert/parser.rb#7
269
+ def lineno; end
270
+
271
+ # source://power_assert//lib/power_assert/parser.rb#28
272
+ def method_id_set; end
273
+
274
+ # Returns the value of attribute path.
275
+ #
276
+ # source://power_assert//lib/power_assert/parser.rb#7
277
+ def path; end
278
+
279
+ private
280
+
281
+ # source://power_assert//lib/power_assert/parser.rb#221
282
+ def collect_paths(idents, prefixes = T.unsafe(nil), index = T.unsafe(nil)); end
283
+
284
+ # Returns idents as graph structure.
285
+ #
286
+ # +--c--b--+
287
+ # extract_idents(Ripper.sexp('a&.b(c).d')) #=> a--+ +--d
288
+ # +--------+
289
+ #
290
+ # source://power_assert//lib/power_assert/parser.rb#70
291
+ def extract_idents(sexp); end
292
+
293
+ # source://power_assert//lib/power_assert/parser.rb#200
294
+ def handle_columnless_ident(left_idents, mid, right_idents, with_safe_op = T.unsafe(nil)); end
295
+
296
+ # source://power_assert//lib/power_assert/parser.rb#48
297
+ def slice_expression(str); end
298
+
299
+ # source://power_assert//lib/power_assert/parser.rb#184
300
+ def str_indices(str, re, offset, limit); end
301
+
302
+ # @return [Boolean]
303
+ #
304
+ # source://power_assert//lib/power_assert/parser.rb#35
305
+ def valid_syntax?(str); end
306
+ end
307
+
308
+ # source://power_assert//lib/power_assert/parser.rb#61
309
+ PowerAssert::Parser::AND_OR_OPS = T.let(T.unsafe(nil), Array)
310
+
311
+ # source://power_assert//lib/power_assert/parser.rb#58
312
+ class PowerAssert::Parser::Branch < ::Array; end
313
+
314
+ # source://power_assert//lib/power_assert/parser.rb#248
315
+ PowerAssert::Parser::DUMMY = T.let(T.unsafe(nil), PowerAssert::Parser::DummyParser)
316
+
317
+ # source://power_assert//lib/power_assert/parser.rb#235
318
+ class PowerAssert::Parser::DummyParser < ::PowerAssert::Parser
319
+ # @return [DummyParser] a new instance of DummyParser
320
+ #
321
+ # source://power_assert//lib/power_assert/parser.rb#236
322
+ def initialize; end
323
+
324
+ # source://power_assert//lib/power_assert/parser.rb#244
325
+ def call_paths; end
326
+
327
+ # source://power_assert//lib/power_assert/parser.rb#240
328
+ def idents; end
329
+ end
330
+
331
+ # source://power_assert//lib/power_assert/parser.rb#5
332
+ class PowerAssert::Parser::Ident < ::Struct
333
+ # Returns the value of attribute column
334
+ #
335
+ # @return [Object] the current value of column
336
+ def column; end
337
+
338
+ # Sets the attribute column
339
+ #
340
+ # @param value [Object] the value to set the attribute column to.
341
+ # @return [Object] the newly set value
342
+ #
343
+ # source://power_assert//lib/power_assert/parser.rb#5
344
+ def column=(_); end
345
+
346
+ # Returns the value of attribute name
347
+ #
348
+ # @return [Object] the current value of name
349
+ def name; end
350
+
351
+ # Sets the attribute name
352
+ #
353
+ # @param value [Object] the value to set the attribute name to.
354
+ # @return [Object] the newly set value
355
+ #
356
+ # source://power_assert//lib/power_assert/parser.rb#5
357
+ def name=(_); end
358
+
359
+ # Returns the value of attribute type
360
+ #
361
+ # @return [Object] the current value of type
362
+ def type; end
363
+
364
+ # Sets the attribute type
365
+ #
366
+ # @param value [Object] the value to set the attribute type to.
367
+ # @return [Object] the newly set value
368
+ #
369
+ # source://power_assert//lib/power_assert/parser.rb#5
370
+ def type=(_); end
371
+
372
+ class << self
373
+ def [](*_arg0); end
374
+ def inspect; end
375
+ def members; end
376
+ def new(*_arg0); end
377
+ end
378
+ end
379
+
380
+ # source://power_assert//lib/power_assert/parser.rb#193
381
+ PowerAssert::Parser::MID2SRCTXT = T.let(T.unsafe(nil), Hash)
382
+
383
+ # source://power_assert//lib/power_assert/inspector.rb#19
384
+ class PowerAssert::SafeInspectable
385
+ # @return [SafeInspectable] a new instance of SafeInspectable
386
+ #
387
+ # source://power_assert//lib/power_assert/inspector.rb#20
388
+ def initialize(value); end
389
+
390
+ # source://power_assert//lib/power_assert/inspector.rb#24
391
+ def inspect; end
392
+ end
393
+
394
+ # source://power_assert//lib/power_assert/context.rb#205
395
+ class PowerAssert::TraceContext < ::PowerAssert::Context
396
+ # @return [TraceContext] a new instance of TraceContext
397
+ #
398
+ # source://power_assert//lib/power_assert/context.rb#206
399
+ def initialize(binding); end
400
+
401
+ # source://power_assert//lib/power_assert/context.rb#224
402
+ def disable; end
403
+
404
+ # source://power_assert//lib/power_assert/context.rb#219
405
+ def enable; end
406
+
407
+ # @return [Boolean]
408
+ #
409
+ # source://power_assert//lib/power_assert/context.rb#228
410
+ def enabled?; end
411
+ end
412
+
413
+ # source://power_assert//lib/power_assert/version.rb#2
414
+ PowerAssert::VERSION = T.let(T.unsafe(nil), String)