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,402 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `rainbow` gem.
5
+ # Please instead update this file by running `bin/tapioca gem rainbow`.
6
+
7
+ class Object < ::BasicObject
8
+ include ::Kernel
9
+ include ::PP::ObjectMixin
10
+
11
+ private
12
+
13
+ # source://rainbow//lib/rainbow/global.rb#23
14
+ def Rainbow(string); end
15
+ end
16
+
17
+ # source://rainbow//lib/rainbow/string_utils.rb#3
18
+ module Rainbow
19
+ class << self
20
+ # source://rainbow//lib/rainbow/global.rb#10
21
+ def enabled; end
22
+
23
+ # source://rainbow//lib/rainbow/global.rb#14
24
+ def enabled=(value); end
25
+
26
+ # source://rainbow//lib/rainbow/global.rb#6
27
+ def global; end
28
+
29
+ # source://rainbow//lib/rainbow.rb#6
30
+ def new; end
31
+
32
+ # source://rainbow//lib/rainbow/global.rb#18
33
+ def uncolor(string); end
34
+ end
35
+ end
36
+
37
+ # source://rainbow//lib/rainbow/color.rb#4
38
+ class Rainbow::Color
39
+ # Returns the value of attribute ground.
40
+ #
41
+ # source://rainbow//lib/rainbow/color.rb#5
42
+ def ground; end
43
+
44
+ class << self
45
+ # source://rainbow//lib/rainbow/color.rb#7
46
+ def build(ground, values); end
47
+
48
+ # source://rainbow//lib/rainbow/color.rb#40
49
+ def parse_hex_color(hex); end
50
+ end
51
+ end
52
+
53
+ # source://rainbow//lib/rainbow/color.rb#54
54
+ class Rainbow::Color::Indexed < ::Rainbow::Color
55
+ # @return [Indexed] a new instance of Indexed
56
+ #
57
+ # source://rainbow//lib/rainbow/color.rb#57
58
+ def initialize(ground, num); end
59
+
60
+ # source://rainbow//lib/rainbow/color.rb#62
61
+ def codes; end
62
+
63
+ # Returns the value of attribute num.
64
+ #
65
+ # source://rainbow//lib/rainbow/color.rb#55
66
+ def num; end
67
+ end
68
+
69
+ # source://rainbow//lib/rainbow/color.rb#69
70
+ class Rainbow::Color::Named < ::Rainbow::Color::Indexed
71
+ # @return [Named] a new instance of Named
72
+ #
73
+ # source://rainbow//lib/rainbow/color.rb#90
74
+ def initialize(ground, name); end
75
+
76
+ class << self
77
+ # source://rainbow//lib/rainbow/color.rb#82
78
+ def color_names; end
79
+
80
+ # source://rainbow//lib/rainbow/color.rb#86
81
+ def valid_names; end
82
+ end
83
+ end
84
+
85
+ # source://rainbow//lib/rainbow/color.rb#70
86
+ Rainbow::Color::Named::NAMES = T.let(T.unsafe(nil), Hash)
87
+
88
+ # source://rainbow//lib/rainbow/color.rb#100
89
+ class Rainbow::Color::RGB < ::Rainbow::Color::Indexed
90
+ # @return [RGB] a new instance of RGB
91
+ #
92
+ # source://rainbow//lib/rainbow/color.rb#107
93
+ def initialize(ground, *values); end
94
+
95
+ # Returns the value of attribute b.
96
+ #
97
+ # source://rainbow//lib/rainbow/color.rb#101
98
+ def b; end
99
+
100
+ # source://rainbow//lib/rainbow/color.rb#116
101
+ def codes; end
102
+
103
+ # Returns the value of attribute g.
104
+ #
105
+ # source://rainbow//lib/rainbow/color.rb#101
106
+ def g; end
107
+
108
+ # Returns the value of attribute r.
109
+ #
110
+ # source://rainbow//lib/rainbow/color.rb#101
111
+ def r; end
112
+
113
+ private
114
+
115
+ # source://rainbow//lib/rainbow/color.rb#122
116
+ def code_from_rgb; end
117
+
118
+ class << self
119
+ # source://rainbow//lib/rainbow/color.rb#103
120
+ def to_ansi_domain(value); end
121
+ end
122
+ end
123
+
124
+ # source://rainbow//lib/rainbow/color.rb#129
125
+ class Rainbow::Color::X11Named < ::Rainbow::Color::RGB
126
+ include ::Rainbow::X11ColorNames
127
+
128
+ # @return [X11Named] a new instance of X11Named
129
+ #
130
+ # source://rainbow//lib/rainbow/color.rb#140
131
+ def initialize(ground, name); end
132
+
133
+ class << self
134
+ # source://rainbow//lib/rainbow/color.rb#132
135
+ def color_names; end
136
+
137
+ # source://rainbow//lib/rainbow/color.rb#136
138
+ def valid_names; end
139
+ end
140
+ end
141
+
142
+ # source://rainbow//lib/rainbow/null_presenter.rb#4
143
+ class Rainbow::NullPresenter < ::String
144
+ # source://rainbow//lib/rainbow/null_presenter.rb#9
145
+ def background(*_values); end
146
+
147
+ # source://rainbow//lib/rainbow/null_presenter.rb#9
148
+ def bg(*_values); end
149
+
150
+ # source://rainbow//lib/rainbow/null_presenter.rb#49
151
+ def black; end
152
+
153
+ # source://rainbow//lib/rainbow/null_presenter.rb#33
154
+ def blink; end
155
+
156
+ # source://rainbow//lib/rainbow/null_presenter.rb#65
157
+ def blue; end
158
+
159
+ # source://rainbow//lib/rainbow/null_presenter.rb#17
160
+ def bold; end
161
+
162
+ # source://rainbow//lib/rainbow/null_presenter.rb#17
163
+ def bright; end
164
+
165
+ # source://rainbow//lib/rainbow/null_presenter.rb#5
166
+ def color(*_values); end
167
+
168
+ # source://rainbow//lib/rainbow/null_presenter.rb#45
169
+ def cross_out; end
170
+
171
+ # source://rainbow//lib/rainbow/null_presenter.rb#73
172
+ def cyan; end
173
+
174
+ # source://rainbow//lib/rainbow/null_presenter.rb#21
175
+ def dark; end
176
+
177
+ # source://rainbow//lib/rainbow/null_presenter.rb#21
178
+ def faint; end
179
+
180
+ # source://rainbow//lib/rainbow/null_presenter.rb#5
181
+ def fg(*_values); end
182
+
183
+ # source://rainbow//lib/rainbow/null_presenter.rb#5
184
+ def foreground(*_values); end
185
+
186
+ # source://rainbow//lib/rainbow/null_presenter.rb#57
187
+ def green; end
188
+
189
+ # source://rainbow//lib/rainbow/null_presenter.rb#41
190
+ def hide; end
191
+
192
+ # source://rainbow//lib/rainbow/null_presenter.rb#37
193
+ def inverse; end
194
+
195
+ # source://rainbow//lib/rainbow/null_presenter.rb#25
196
+ def italic; end
197
+
198
+ # source://rainbow//lib/rainbow/null_presenter.rb#69
199
+ def magenta; end
200
+
201
+ # source://rainbow//lib/rainbow/null_presenter.rb#81
202
+ def method_missing(method_name, *args); end
203
+
204
+ # source://rainbow//lib/rainbow/null_presenter.rb#53
205
+ def red; end
206
+
207
+ # source://rainbow//lib/rainbow/null_presenter.rb#13
208
+ def reset; end
209
+
210
+ # source://rainbow//lib/rainbow/null_presenter.rb#45
211
+ def strike; end
212
+
213
+ # source://rainbow//lib/rainbow/null_presenter.rb#29
214
+ def underline; end
215
+
216
+ # source://rainbow//lib/rainbow/null_presenter.rb#77
217
+ def white; end
218
+
219
+ # source://rainbow//lib/rainbow/null_presenter.rb#61
220
+ def yellow; end
221
+
222
+ private
223
+
224
+ # @return [Boolean]
225
+ #
226
+ # source://rainbow//lib/rainbow/null_presenter.rb#89
227
+ def respond_to_missing?(method_name, *args); end
228
+ end
229
+
230
+ # source://rainbow//lib/rainbow/presenter.rb#8
231
+ class Rainbow::Presenter < ::String
232
+ # Sets background color of this text.
233
+ #
234
+ # source://rainbow//lib/rainbow/presenter.rb#30
235
+ def background(*values); end
236
+
237
+ # Sets background color of this text.
238
+ #
239
+ # source://rainbow//lib/rainbow/presenter.rb#30
240
+ def bg(*values); end
241
+
242
+ # source://rainbow//lib/rainbow/presenter.rb#92
243
+ def black; end
244
+
245
+ # Turns on blinking attribute for this text (not well supported by terminal
246
+ # emulators).
247
+ #
248
+ # source://rainbow//lib/rainbow/presenter.rb#72
249
+ def blink; end
250
+
251
+ # source://rainbow//lib/rainbow/presenter.rb#108
252
+ def blue; end
253
+
254
+ # Turns on bright/bold for this text.
255
+ #
256
+ # source://rainbow//lib/rainbow/presenter.rb#45
257
+ def bold; end
258
+
259
+ # Turns on bright/bold for this text.
260
+ #
261
+ # source://rainbow//lib/rainbow/presenter.rb#45
262
+ def bright; end
263
+
264
+ # Sets color of this text.
265
+ #
266
+ # source://rainbow//lib/rainbow/presenter.rb#22
267
+ def color(*values); end
268
+
269
+ # source://rainbow//lib/rainbow/presenter.rb#86
270
+ def cross_out; end
271
+
272
+ # source://rainbow//lib/rainbow/presenter.rb#116
273
+ def cyan; end
274
+
275
+ # Turns on faint/dark for this text (not well supported by terminal
276
+ # emulators).
277
+ #
278
+ # source://rainbow//lib/rainbow/presenter.rb#53
279
+ def dark; end
280
+
281
+ # Turns on faint/dark for this text (not well supported by terminal
282
+ # emulators).
283
+ #
284
+ # source://rainbow//lib/rainbow/presenter.rb#53
285
+ def faint; end
286
+
287
+ # Sets color of this text.
288
+ #
289
+ # source://rainbow//lib/rainbow/presenter.rb#22
290
+ def fg(*values); end
291
+
292
+ # Sets color of this text.
293
+ #
294
+ # source://rainbow//lib/rainbow/presenter.rb#22
295
+ def foreground(*values); end
296
+
297
+ # source://rainbow//lib/rainbow/presenter.rb#100
298
+ def green; end
299
+
300
+ # Hides this text (set its color to the same as background).
301
+ #
302
+ # source://rainbow//lib/rainbow/presenter.rb#82
303
+ def hide; end
304
+
305
+ # Inverses current foreground/background colors.
306
+ #
307
+ # source://rainbow//lib/rainbow/presenter.rb#77
308
+ def inverse; end
309
+
310
+ # Turns on italic style for this text (not well supported by terminal
311
+ # emulators).
312
+ #
313
+ # source://rainbow//lib/rainbow/presenter.rb#61
314
+ def italic; end
315
+
316
+ # source://rainbow//lib/rainbow/presenter.rb#112
317
+ def magenta; end
318
+
319
+ # We take care of X11 color method call here.
320
+ # Such as #aqua, #ghostwhite.
321
+ #
322
+ # source://rainbow//lib/rainbow/presenter.rb#126
323
+ def method_missing(method_name, *args); end
324
+
325
+ # source://rainbow//lib/rainbow/presenter.rb#96
326
+ def red; end
327
+
328
+ # Resets terminal to default colors/backgrounds.
329
+ #
330
+ # It shouldn't be needed to use this method because all methods
331
+ # append terminal reset code to end of string.
332
+ #
333
+ # source://rainbow//lib/rainbow/presenter.rb#40
334
+ def reset; end
335
+
336
+ # source://rainbow//lib/rainbow/presenter.rb#86
337
+ def strike; end
338
+
339
+ # Turns on underline decoration for this text.
340
+ #
341
+ # source://rainbow//lib/rainbow/presenter.rb#66
342
+ def underline; end
343
+
344
+ # source://rainbow//lib/rainbow/presenter.rb#120
345
+ def white; end
346
+
347
+ # source://rainbow//lib/rainbow/presenter.rb#104
348
+ def yellow; end
349
+
350
+ private
351
+
352
+ # @return [Boolean]
353
+ #
354
+ # source://rainbow//lib/rainbow/presenter.rb#134
355
+ def respond_to_missing?(method_name, *args); end
356
+
357
+ # source://rainbow//lib/rainbow/presenter.rb#140
358
+ def wrap_with_sgr(codes); end
359
+ end
360
+
361
+ # source://rainbow//lib/rainbow/presenter.rb#9
362
+ Rainbow::Presenter::TERM_EFFECTS = T.let(T.unsafe(nil), Hash)
363
+
364
+ # source://rainbow//lib/rainbow/string_utils.rb#4
365
+ class Rainbow::StringUtils
366
+ class << self
367
+ # source://rainbow//lib/rainbow/string_utils.rb#17
368
+ def uncolor(string); end
369
+
370
+ # source://rainbow//lib/rainbow/string_utils.rb#5
371
+ def wrap_with_sgr(string, codes); end
372
+ end
373
+ end
374
+
375
+ # source://rainbow//lib/rainbow/wrapper.rb#7
376
+ class Rainbow::Wrapper
377
+ # @return [Wrapper] a new instance of Wrapper
378
+ #
379
+ # source://rainbow//lib/rainbow/wrapper.rb#10
380
+ def initialize(enabled = T.unsafe(nil)); end
381
+
382
+ # Returns the value of attribute enabled.
383
+ #
384
+ # source://rainbow//lib/rainbow/wrapper.rb#8
385
+ def enabled; end
386
+
387
+ # Sets the attribute enabled
388
+ #
389
+ # @param value the value to set the attribute enabled to.
390
+ #
391
+ # source://rainbow//lib/rainbow/wrapper.rb#8
392
+ def enabled=(_arg0); end
393
+
394
+ # source://rainbow//lib/rainbow/wrapper.rb#14
395
+ def wrap(string); end
396
+ end
397
+
398
+ # source://rainbow//lib/rainbow/x11_color_names.rb#4
399
+ module Rainbow::X11ColorNames; end
400
+
401
+ # source://rainbow//lib/rainbow/x11_color_names.rb#5
402
+ Rainbow::X11ColorNames::NAMES = T.let(T.unsafe(nil), Hash)