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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f178b071644d6b983c84a038558f00f935e9e6a640fac3afbaa10d6de00215a0
4
- data.tar.gz: de8ab63d17fc5a7fcadd707f85bce306e2e3c02d30013964fa0e7947eaac7e38
3
+ metadata.gz: a2f7b58163e4353bfa2145baed7e00ad770b8a84151047636a41b4a7e8e7eb60
4
+ data.tar.gz: 90e66e626c77ea4a1b8a8f664b46c5cef59903ebd00b8765e24ab4ec276de9af
5
5
  SHA512:
6
- metadata.gz: e6e8048f87b42d0984792d91629b06148f0461180659ed489a095f905882ba0ad10c98451dfdede7dcaa080e47c9ab0d9b8d2be0841b27dade67438d8d8a4640
7
- data.tar.gz: 29183605ce541cca61cdca1065d567106ca5c2d99b145f1a0c34a13d8f7c9e04c7c60779ab8b1c497c4ababce554a7790e3902e4c6651999d770175ca9e8f028
6
+ metadata.gz: 0d0b03dc95ab2be4ee4a10cd7c599f2e25e06f83b1c4d06166f13d56c2f4e979292b2b72a7f5ce134ab384a57fb39b5d9758bf4ebfd2e4607c664fa06c7c7a6c
7
+ data.tar.gz: 21db9ed53787a4213883fd1784099412fe174367ffe5ed2ccc58cbbf03ab6ac0ec80b52512bffea6efe2bcd29acbd4de649d50c9eb92de24b80961cc06966e7d
data/CHANGELOG.md CHANGED
@@ -1,14 +1,15 @@
1
1
  # Changelog
2
-
3
- ## 10.9.0-beta.1 - 2024-02-08
4
- * [#1321](https://github.com/stripe/stripe-ruby/pull/1321) Update generated code for beta
5
- * Release specs are identical.
6
-
7
- ## 10.8.0-beta.1 - 2024-02-01
8
- * [#1318](https://github.com/stripe/stripe-ruby/pull/1318) Update generated code for beta
9
- * Add support for new resources `Entitlements.Event` and `Entitlements.Feature`
10
- * Add support for `create` method on resource `Event`
11
- * Add support for `create` and `list` methods on resource `Feature`
2
+ ## 10.9.0 - 2024-02-15
3
+ * [#1329](https://github.com/stripe/stripe-ruby/pull/1329) Update generated code
4
+ * Fixed bug where `TaxId` resource `delete` method sent request to wrong URL (https://github.com/stripe/stripe-ruby/issues/1333)
5
+ * [#1324](https://github.com/stripe/stripe-ruby/pull/1324) Start running Sorbet in CI
6
+ * [#1327](https://github.com/stripe/stripe-ruby/pull/1327) Add methods for dynamically referenced constants
7
+
8
+ ## 10.8.0 - 2024-02-08
9
+ * [#1322](https://github.com/stripe/stripe-ruby/pull/1322) Update generated code
10
+ * [#1323](https://github.com/stripe/stripe-ruby/pull/1323) Extract other CRUDL api operations from mixins
11
+ * Extract more CRUDL operations, namely `create`, `delete`, `update`, and `list` into the resources. These methods will no longer rely on the APIOperation mixins.
12
+ * [#1314](https://github.com/stripe/stripe-ruby/pull/1314) Update mocha gem to 1.16
12
13
 
13
14
  ## 10.7.1 - 2024-02-05
14
15
  * [#1320](https://github.com/stripe/stripe-ruby/pull/1320) Remove spurious _search deprecation messages (https://github.com/stripe/stripe-ruby/issues/1319)
@@ -18,34 +19,15 @@
18
19
  * Removes list method mixin from child resources, as these methods always return `InvalidRequestError` and never succeed
19
20
  * [#1311](https://github.com/stripe/stripe-ruby/pull/1311) Use the deprecation gem in search and clean up usage of the gem
20
21
 
21
- ## 10.7.0-beta.3 - 2024-01-25
22
- * [#1313](https://github.com/stripe/stripe-ruby/pull/1313) Update generated code for beta
23
- * Add support for `create_preview` method on resource `Invoice`
24
- * [#1307](https://github.com/stripe/stripe-ruby/pull/1307) Beta: report raw request usage
25
-
26
- ## 10.7.0-beta.2 - 2024-01-19
27
- * [#1307](https://github.com/stripe/stripe-ruby/pull/1307) Beta: report raw request usage
28
-
29
- ## 10.7.0-beta.1 - 2024-01-12
30
- * [#1309](https://github.com/stripe/stripe-ruby/pull/1309) Update generated code for beta
31
- * [#1305](https://github.com/stripe/stripe-ruby/pull/1305) Update generated code for beta
32
-
33
22
  ## 10.6.0 - 2024-01-12
34
23
  * [#1310](https://github.com/stripe/stripe-ruby/pull/1310) Update generated code
35
24
  * Add support for new resource `CustomerSession`
36
25
  * Add support for `create` method on resource `CustomerSession`
37
26
 
38
- ## 10.6.0-beta.1 - 2024-01-04
39
- * [#1302](https://github.com/stripe/stripe-ruby/pull/1302) Update generated code for beta
40
- * Updated stable APIs to the latest version
41
-
42
27
  ## 10.5.0 - 2024-01-04
43
28
  * [#1306](https://github.com/stripe/stripe-ruby/pull/1306) Update generated code
44
29
  * Add support for `retrieve` method on resource `Tax.Registration`
45
30
 
46
- ## 10.5.0-beta.1 - 2023-12-22
47
- * [#1302](https://github.com/stripe/stripe-ruby/pull/1302) Update generated code for beta
48
-
49
31
  ## 10.4.0 - 2023-12-22
50
32
  * [#1303](https://github.com/stripe/stripe-ruby/pull/1303) Update generated code
51
33
  * Add support for new resource `FinancialConnections.Transaction`
@@ -53,16 +35,9 @@
53
35
  * Add support for `subscribe` and `unsubscribe` methods on resource `FinancialConnections.Account`
54
36
  * [#1304](https://github.com/stripe/stripe-ruby/pull/1304) Add support for updatable singleton resources
55
37
 
56
- ## 10.4.0-beta.1 - 2023-12-14
57
- Updated stable APIs to the latest version
58
-
59
38
  ## 10.3.0 - 2023-12-14
60
39
  * [#1294](https://github.com/stripe/stripe-ruby/pull/1294) Support sending parameters inside singleton retrieve
61
40
 
62
- ## 10.3.0-beta.1 - 2023-11-30
63
- * [#1298](https://github.com/stripe/stripe-ruby/pull/1298) Update generated code for beta
64
- * [#1296](https://github.com/stripe/stripe-ruby/pull/1296) Merge master into beta
65
-
66
41
  ## 10.2.0 - 2023-11-30
67
42
  * [#1292](https://github.com/stripe/stripe-ruby/pull/1292) Update generated code
68
43
  * Add support for new resources `Climate.Order`, `Climate.Product`, and `Climate.Supplier`
@@ -75,26 +50,12 @@
75
50
 
76
51
  * [#1288](https://github.com/stripe/stripe-ruby/pull/1288) Update generated code
77
52
 
78
- ## 10.2.0-beta.1 - 2023-11-02
79
- * [#1287](https://github.com/stripe/stripe-ruby/pull/1287) Update generated code for beta
80
- * Add support for `attach_payment_intent` method on resource `Invoice`
81
- * [#1285](https://github.com/stripe/stripe-ruby/pull/1285) Update generated code for beta
82
53
 
83
54
  ## 10.1.0 - 2023-11-02
84
55
  * [#1286](https://github.com/stripe/stripe-ruby/pull/1286) Update generated code
85
56
  * Add support for new resource `Tax.Registration`
86
57
  * Add support for `create`, `list`, and `update` methods on resource `Registration`
87
58
 
88
- ## 10.1.0-beta.2 - 2023-10-26
89
- * [#1285](https://github.com/stripe/stripe-ruby/pull/1285) Update generated code for beta
90
- * Add support for new resource `Margin`
91
- * Add support for `create`, `list`, `retrieve`, and `update` methods on resource `Margin`
92
-
93
- ## 10.1.0-beta.1 - 2023-10-17
94
- * [#1284](https://github.com/stripe/stripe-ruby/pull/1284) Update generated code for beta
95
- - Update pinned API version to `2023-10-16`
96
- * [#1282](https://github.com/stripe/stripe-ruby/pull/1282) Update generated code for beta
97
-
98
59
  ## 10.0.0 - 2023-10-16
99
60
  * This release changes the pinned API version to `2023-10-16`. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2023-10-16) and carefully review the API changes before upgrading `stripe-ruby`.
100
61
  * [#1283](https://github.com/stripe/stripe-ruby/pull/1283) Update generated code
@@ -102,33 +63,11 @@
102
63
  * [#1281](https://github.com/stripe/stripe-ruby/pull/1281) Update generated code
103
64
  * Documentation only changes
104
65
 
105
- ## 9.5.0-beta.2 - 2023-10-12
106
- * [#1280](https://github.com/stripe/stripe-ruby/pull/1280) Update generated code for beta
107
- * Add support for new resources `AccountNotice` and `Issuing.CreditUnderwritingRecord`
108
- * Add support for `list`, `retrieve`, and `update` methods on resource `AccountNotice`
109
- * Add support for `correct`, `create_from_application`, `create_from_proactive_review`, `list`, `report_decision`, and `retrieve` methods on resource `CreditUnderwritingRecord`
110
-
111
- ## 9.5.0-beta.1 - 2023-10-05
112
- * [#1278](https://github.com/stripe/stripe-ruby/pull/1278) Update generated code for beta
113
- * Add support for `mark_draft` and `mark_stale` methods on resource `Quote`
114
- * Remove support for `draft_quote` and `mark_stale_quote` methods on resource `Quote`
115
- * Rename `preview_invoice_lines` to `list_preview_invoice_lines` on resource `Quote`
116
-
117
66
  ## 9.4.0 - 2023-10-05
118
67
  * [#1277](https://github.com/stripe/stripe-ruby/pull/1277) Update generated code
119
68
  * Add support for new resources `Issuing.Token`
120
69
  * Add support for `list`, `retrieve`, and `update` methods on resource `Token`
121
70
 
122
- ## 9.4.0-beta.3 - 2023-09-28
123
- * [#1276](https://github.com/stripe/stripe-ruby/pull/1276) Update generated code for beta
124
- * Rename resources `Issuing.CardDesign` and `Issuing.CardBundle` to `Issuing.PersonalizationDesign` and `Issuing.PhysicalBundle`
125
-
126
- ## 9.4.0-beta.2 - 2023-09-21
127
- * [#1273](https://github.com/stripe/stripe-ruby/pull/1273) Update generated code for beta
128
-
129
- ## 9.4.0-beta.1 - 2023-09-14
130
- * Updated stable APIs to the latest version
131
-
132
71
  ## 9.3.0 - 2023-09-14
133
72
  * [#1272](https://github.com/stripe/stripe-ruby/pull/1272) Update generated code
134
73
  * Add support for new resource `PaymentMethodConfiguration`
@@ -137,38 +76,18 @@
137
76
  * Add support for `capture`, `create`, `expire`, `increment`, and `reverse` test helper methods on resource `Issuing.Authorization`
138
77
  * Add support for `create_force_capture`, `create_unlinked_refund`, and `refund` test helper methods on resource `Issuing.Transaction`
139
78
 
140
- ## 9.3.0-beta.1 - 2023-09-07
141
- * [#1269](https://github.com/stripe/stripe-ruby/pull/1269) Update generated code for beta
142
- * Release specs are identical.
143
- * [#1268](https://github.com/stripe/stripe-ruby/pull/1268) Update generated code for beta
144
- * Remove support for `submit_card` test helper method on resource `Issuing.Card`
145
- * [#1265](https://github.com/stripe/stripe-ruby/pull/1265) Update generated code for beta
146
- * Rename `Quote.preview_invoices` to `QuotePreviewInvoice.list` and `Quote.preview_schedules` to `QuotePreviewSchedules.list`
147
- * [#1264](https://github.com/stripe/stripe-ruby/pull/1264) Update generated code for beta
148
- * Add support for new resources `QuotePreviewInvoice` and `QuotePreviewSchedule`
149
- * [#1259](https://github.com/stripe/stripe-ruby/pull/1259) Update generated code for beta
150
-
151
- * [#1257](https://github.com/stripe/stripe-ruby/pull/1257) Update generated code for beta
152
-
153
- * [#1254](https://github.com/stripe/stripe-ruby/pull/1254) Update generated code for beta
154
- * Add support for `submit_card` test helper method on resource `Issuing.Card`
155
- * [#1252](https://github.com/stripe/stripe-ruby/pull/1252) Remove developer_message support
156
-
157
79
  ## 9.2.0 - 2023-09-07
158
80
  * [#1267](https://github.com/stripe/stripe-ruby/pull/1267) Update generated code
159
81
  * Add support for new resource `PaymentMethodDomain`
160
82
  * Add support for `create`, `list`, `retrieve`, `update`, and `validate` methods on resource `PaymentMethodDomain`
161
83
 
162
- ## 9.2.0-beta.1 - 2023-08-31
163
- * [#1265](https://github.com/stripe/stripe-ruby/pull/1265) Update generated code for beta
164
- * Rename `Quote.preview_invoices` to `QuotePreviewInvoice.list` and `Quote.preview_schedules` to `QuotePreviewSchedules.list`
165
-
166
84
  ## 9.1.0 - 2023-08-31
167
85
  * [#1266](https://github.com/stripe/stripe-ruby/pull/1266) Update generated code
168
86
  * Add support for new resource `AccountSession`
169
87
  * Add support for `create` method on resource `AccountSession`
170
88
  * [#1262](https://github.com/stripe/stripe-ruby/pull/1262) Explicitly format timestamp in SignatureVerificationError message
171
89
 
90
+
172
91
  ## 9.0.0 - 2023-08-16
173
92
  **⚠️ ACTION REQUIRED: the breaking change in this release likely affects you ⚠️**
174
93
 
@@ -201,39 +120,10 @@
201
120
 
202
121
  That is, instead of upgrading stripe-ruby and separately upgrading your Stripe API Version through the Stripe Dashboard. whenever you upgrade major versions of stripe-ruby, you should also upgrade your integration to be compatible with the latest Stripe API version.
203
122
 
204
- ## 9.0.0-beta.1 - 2023-08-24
205
- * [#1264](https://github.com/stripe/stripe-ruby/pull/1264) Update generated code for beta
206
- * Add support for new resources `QuotePreviewInvoice` and `QuotePreviewSchedule`
207
- * [#1259](https://github.com/stripe/stripe-ruby/pull/1259) Update generated code for beta
208
-
209
- ## 8.8.0-beta.1 - 2023-08-10
210
- * [#1257](https://github.com/stripe/stripe-ruby/pull/1257) Update generated code for beta
211
- * Updated stable APIs to the latest version
212
-
213
123
  ## 8.7.0 - 2023-08-10
214
124
  * [#1256](https://github.com/stripe/stripe-ruby/pull/1256) Update generated code
215
125
  Add resources `Tax::CalculationLineItem`, `Tax::TransactionLineItem`, and `Treasury::FinancialAccountFeatures`. These resources have no methods on them, but do represent the return type of methods elsewhere.
216
126
 
217
- ## 8.7.0-beta.3 - 2023-08-03
218
- * [#1254](https://github.com/stripe/stripe-ruby/pull/1254) Update generated code for beta
219
- * Add support for `submit_card` test helper method on resource `Issuing.Card`
220
- * [#1252](https://github.com/stripe/stripe-ruby/pull/1252) Remove developer_message support
221
-
222
- ## 8.7.0-beta.2 - 2023-07-28
223
- * [#1251](https://github.com/stripe/stripe-ruby/pull/1251) Update generated code for beta
224
- * Add support for new resource `Tax.Form`
225
- * Add support for `list`, `pdf`, and `retrieve` methods on resource `Form`
226
- * [#1249](https://github.com/stripe/stripe-ruby/pull/1249) Update generated code for beta
227
- * [#1246](https://github.com/stripe/stripe-ruby/pull/1246) Update generated code for beta
228
-
229
- ## 8.7.0-beta.1 - 2023-07-13
230
- * [#1245](https://github.com/stripe/stripe-ruby/pull/1245) Update generated code for beta
231
- Release specs are identical.
232
- * [#1243](https://github.com/stripe/stripe-ruby/pull/1243) Update generated code for beta
233
- * Add support for new resource `PaymentMethodConfiguration`
234
- * Add support for `create`, `list`, `retrieve`, and `update` methods on resource `PaymentMethodConfiguration`
235
- * [#1239](https://github.com/stripe/stripe-ruby/pull/1239) Update generated code for beta
236
-
237
127
  ## 8.6.0 - 2023-07-13
238
128
  * [#1244](https://github.com/stripe/stripe-ruby/pull/1244) Update generated code
239
129
  * Add support for new resource `Tax.Settings`
@@ -262,37 +152,6 @@
262
152
 
263
153
  * [#1204](https://github.com/stripe/stripe-ruby/pull/1204) Update generated code
264
154
 
265
- ## 8.6.0-beta.6 - 2023-06-22
266
- * [#1237](https://github.com/stripe/stripe-ruby/pull/1237) Update generated code for beta
267
- * Add support for new resource `CustomerSession`
268
- * Add support for `create` method on resource `CustomerSession`
269
- * [#1233](https://github.com/stripe/stripe-ruby/pull/1233) Update generated code for beta
270
- * [#1229](https://github.com/stripe/stripe-ruby/pull/1229) Update generated code for beta
271
-
272
- ## 8.6.0-beta.5 - 2023-06-01
273
- * [#1227](https://github.com/stripe/stripe-ruby/pull/1227) Update generated code for beta
274
- * [#1228](https://github.com/stripe/stripe-ruby/pull/1228) Document raw_request
275
- * [#1222](https://github.com/stripe/stripe-ruby/pull/1222) Update generated code for beta
276
- * [#1224](https://github.com/stripe/stripe-ruby/pull/1224) Handle developer message in preview error responses
277
-
278
- ## 8.6.0-beta.4 - 2023-05-19
279
- * [#1220](https://github.com/stripe/stripe-ruby/pull/1220) Update generated code for beta
280
- * Add support for `subscribe` and `unsubscribe` methods on resource `FinancialConnections.Account`
281
- * [#1217](https://github.com/stripe/stripe-ruby/pull/1217) Add raw_request
282
- * [#1216](https://github.com/stripe/stripe-ruby/pull/1216) Update generated code for beta
283
- * [#1214](https://github.com/stripe/stripe-ruby/pull/1214) Update generated code for beta
284
-
285
- ## 8.6.0-beta.3 - 2023-04-17
286
- * [#1211](https://github.com/stripe/stripe-ruby/pull/1211) Update generated code for beta
287
- * [#1210](https://github.com/stripe/stripe-ruby/pull/1210), [#1212](https://github.com/stripe/stripe-ruby/pull/1212), [#1213](https://github.com/stripe/stripe-ruby/pull/1213) Add support for request signing
288
-
289
- ## 8.6.0-beta.2 - 2023-04-13
290
- * [#1206](https://github.com/stripe/stripe-ruby/pull/1206) Update generated code for beta
291
- * Add support for `collect_payment_method` and `confirm_payment_intent` methods on resource `Terminal.Reader`
292
- * [#1205](https://github.com/stripe/stripe-ruby/pull/1205) Update generated code for beta
293
-
294
- ## 8.6.0-beta.1 - 2023-03-30
295
- * [#1202](https://github.com/stripe/stripe-ruby/pull/1202) Update generated code for beta
296
155
 
297
156
  ## 8.5.0 - 2023-03-30
298
157
  * [#1203](https://github.com/stripe/stripe-ruby/pull/1203) Update generated code
@@ -300,11 +159,6 @@
300
159
  * This is not a breaking change, as this method was deprecated before the Tax Transactions API was released in favor of the `create_from_calculation` method.
301
160
  * [#1201](https://github.com/stripe/stripe-ruby/pull/1201) Update save deprecation message
302
161
 
303
- ## 8.5.0-beta.1 - 2023-03-23
304
- * [#1194](https://github.com/stripe/stripe-ruby/pull/1194) Update generated code for beta (new)
305
- * Add support for new resources `Tax.CalculationLineItem` and `Tax.TransactionLineItem`
306
- * Add support for `collect_inputs` method on resource `Terminal.Reader`
307
-
308
162
  ## 8.4.0 - 2023-03-23
309
163
  * [#1197](https://github.com/stripe/stripe-ruby/pull/1197) Update generated code (new)
310
164
  * Add support for new resources `Tax.CalculationLineItem`, `Tax.Calculation`, `Tax.TransactionLineItem`, and `Tax.Transaction`
@@ -312,91 +166,18 @@
312
166
  * Add support for `create_from_calculation`, `create_reversal`, `create`, `list_line_items`, and `retrieve` methods on resource `Transaction`
313
167
  * [#1152](https://github.com/stripe/stripe-ruby/pull/1152) Symbolize hash keys inside `convert_to_stripe_object_with_params`
314
168
 
315
- ## 8.4.0-beta.4 - 2023-03-16
316
- * [#1189](https://github.com/stripe/stripe-ruby/pull/1189) Update generated code for beta (new)
317
- * Add support for `create_from_calculation` method on resource `Tax.Transaction`
318
- * [#1188](https://github.com/stripe/stripe-ruby/pull/1188) Update generated code for beta (new)
319
- * Remove support for resources `Capital.FinancingOffer` and `Capital.FinancingSummary`
320
- * Remove support for `list`, `mark_delivered`, and `retrieve` methods on resource `FinancingOffer`
321
- * Remove support for `retrieve` method on resource `FinancingSummary`
322
- * [#1187](https://github.com/stripe/stripe-ruby/pull/1187) Merge upstream master
323
-
324
- ## 8.4.0-beta.3 - 2023-03-09
325
- * [#1184](https://github.com/stripe/stripe-ruby/pull/1184) API Updates for beta branch
326
- * Updated stable APIs to the latest version
327
- * Remove support for `list_transactions` method on resource `Tax.Transaction`
328
-
329
- ## 8.4.0-beta.2 - 2023-03-03
330
- * [#1183](https://github.com/stripe/stripe-ruby/pull/1183) API Updates for beta branch
331
- * Updated stable APIs to the latest version
332
- * Add support for new resources `Issuing.CardBundle` and `Issuing.CardDesign`
333
- * Add support for `list` and `retrieve` methods on resource `CardBundle`
334
- * Add support for `list`, `retrieve`, and `update` methods on resource `CardDesign`
335
-
336
- ## 8.4.0-beta.1 - 2023-02-23
337
- * [#1182](https://github.com/stripe/stripe-ruby/pull/1182) API Updates for beta branch
338
- * Updated stable APIs to the latest version
339
-
340
169
  ## 8.3.0 - 2023-02-16
341
170
  * [#1175](https://github.com/stripe/stripe-ruby/pull/1175) API Updates
342
171
  * Add support for `refund_payment` method on resource `Terminal.Reader`
343
172
 
344
- ## 8.3.0-beta.1 - 2023-02-02
345
- * [#1174](https://github.com/stripe/stripe-ruby/pull/1174) API Updates for beta branch
346
- * Updated stable APIs to the latest version
347
- * Add support for new resource `FinancialConnections.Transaction`
348
- * Add support for `list` method on resource `Transaction`
349
-
350
173
  ## 8.2.0 - 2023-02-02
351
174
  * [#1173](https://github.com/stripe/stripe-ruby/pull/1173) API Updates
352
175
  * Add support for `resume` method on resource `Subscription`
353
176
  * [#1171](https://github.com/stripe/stripe-ruby/pull/1171) Remove unused `partial` param from `initialize_from`
354
177
 
355
- ## 8.2.0-beta.3 - 2023-01-26
356
- * [#1172](https://github.com/stripe/stripe-ruby/pull/1172) API Updates for beta branch
357
- * Updated stable APIs to the latest version
358
- * Add support for `list_transactions` method on resource `Tax.Transaction`
359
-
360
- ## 8.2.0-beta.2 - 2023-01-19
361
- * [#1170](https://github.com/stripe/stripe-ruby/pull/1170) API Updates for beta branch
362
- * Updated stable APIs to the latest version
363
- * Add support for `Tax.Settings` resource.
364
-
365
- ## 8.2.0-beta.1 - 2023-01-12
366
- * [#1167](https://github.com/stripe/stripe-ruby/pull/1167) API Updates for beta branch
367
- * Updated stable APIs to the latest version
368
- * Change `quote.draft_quote` implementation to from calling `POST /v1/quotes/{quote}/draft` to `POST /v1/quotes/{quote}/mark_draft`
369
- * Add support for `Tax::Register` resource
370
-
371
178
  ## 8.1.0 - 2023-01-12
372
179
  * [#1162](https://github.com/stripe/stripe-ruby/pull/1162) Improve request events instrumentation
373
180
 
374
- ## 8.1.0-beta.4 - 2023-01-05
375
- * [#1164](https://github.com/stripe/stripe-ruby/pull/1164) API Updates for beta branch
376
- * Updated stable APIs to the latest version
377
- * Add support for `mark_stale_quote` method on resource `Quote`
378
-
379
- ## 8.1.0-beta.3 - 2022-12-22
380
- * [#1158](https://github.com/stripe/stripe-ruby/pull/1158) API Updates for beta branch
381
- * Updated stable APIs to the latest version
382
- * Move `TaxCalculation` and `TaxTransaction` to `Tax::Calculation` and `Tax::Transaction`.
383
-
384
- ## 8.1.0-beta.2 - 2022-12-15
385
- * [#1156](https://github.com/stripe/stripe-ruby/pull/1156) API Updates for beta branch
386
- * Updated stable APIs to the latest version
387
- * Add support for new resources `TaxCalculation`, and `TaxTransaction`
388
- * Add support for `create` and `list_line_items` methods on resource `TaxCalculation`
389
- * Add support for `create_reversal`, `create`, and `retrieve` methods on resource `TaxTransaction`
390
- * [#1155](https://github.com/stripe/stripe-ruby/pull/1155) API Updates for beta branch
391
- * Updated stable APIs to the latest version
392
- * Add support for new resource `QuoteLine`.
393
-
394
- ## 8.1.0-beta.1 - 2022-12-08
395
- * [#1153](https://github.com/stripe/stripe-ruby/pull/1153) API Updates for beta branch
396
- * Updated stable APIs to the latest version
397
- * [#1146](https://github.com/stripe/stripe-ruby/pull/1146) API Updates for beta branch
398
- * Updated stable APIs to the latest version
399
-
400
181
  ## 8.0.0 - 2022-11-16
401
182
  * [#1144](https://github.com/stripe/stripe-ruby/pull/1144) Next major release changes
402
183
 
@@ -404,29 +185,30 @@ Breaking changes that arose during code generation of the library that we postpo
404
185
 
405
186
  "⚠️" symbol highlights breaking changes.
406
187
 
407
- ## 7.2.0-beta.5 - 2022-11-02
408
- * [#1139](https://github.com/stripe/stripe-ruby/pull/1139) API Updates for beta branch
409
- * Updated beta APIs to the latest stable version
410
- * [#1135](https://github.com/stripe/stripe-ruby/pull/1135) API Updates for beta branch
411
- * Updated stable APIs to the latest version
412
-
413
- ## 7.2.0-beta.4 - 2022-10-07
414
- * [#999](https://github.com/stripe/stripe-ruby/pull/999) DESCRIBE CHANGES HERE (try to use the same style, tense, etc. as the other entries)
188
+ ### Deprecated
189
+ - The `save` method is deprecated. Prefer the static `update` method that doesn't require retrieval of the resource to update it.
190
+ ``` ruby
191
+ # before
192
+ refund = Stripe::Refund.retrieve("re_123")
193
+ refund.description = "Refund description"
194
+ refund.save
195
+
196
+ # after
197
+ Stripe::Refund.update("re_123", description: "Refund description")
198
+ ```
415
199
 
416
- ## 7.2.0-beta.3 - 2022-09-26
417
- * [#1129](https://github.com/stripe/stripe-ruby/pull/1129) API Updates for beta branch
418
- * Updated stable APIs to the latest version
419
- * Add `FinancingOffer`, `FinancingSummary` and `FinancingTransaction` resources.
200
+ ### ⚠️ Removed
201
+ - Removed deprecated `Sku` resource.
202
+ - Removed deprecated `Orders` resource.
203
+ - Removed deprecated `delete` method on `Subscription` resource. Please use `cancel` method instead.
204
+ ```ruby
205
+ # before
206
+ Stripe::Subscription::delete("sub_12345")
420
207
 
421
- ## 7.2.0-beta.2 - 2022-08-26
422
- * [#1127](https://github.com/stripe/stripe-ruby/pull/1127) API Updates for beta branch
423
- * Updated stable APIs to the latest version
424
- * Add support for the beta [Gift Card API](https://stripe.com/docs/gift-cards).
208
+ # after
209
+ Stripe::Subscription::cancel("sub_12345")
210
+ ```
425
211
 
426
- ## 7.2.0-beta.1 - 2022-08-23
427
- * [#1122](https://github.com/stripe/stripe-ruby/pull/1122) API Updates for beta branch
428
- - Updated stable APIs to the latest version
429
- - `Stripe-Version` beta headers are not pinned by-default and need to be manually specified, please refer to [beta SDKs README section](https://github.com/stripe/stripe-ruby/blob/master/README.md#beta-sdks)
430
212
 
431
213
  ## 7.1.0 - 2022-08-19
432
214
  * [#1116](https://github.com/stripe/stripe-ruby/pull/1116) API Updates
@@ -435,16 +217,6 @@ Breaking changes that arose during code generation of the library that we postpo
435
217
  * [#1117](https://github.com/stripe/stripe-ruby/pull/1117) Refresh rubocop config.
436
218
  * [#1115](https://github.com/stripe/stripe-ruby/pull/1115) Add a support section to the readme
437
219
 
438
- ## 7.1.0-beta.2 - 2022-08-11
439
- * [#1113](https://github.com/stripe/stripe-ruby/pull/1113) API Updates for beta branch
440
- - Updated stable APIs to the latest version
441
- - Add `refund_payment` method to Terminal resource
442
-
443
- ## 7.1.0-beta.1 - 2022-08-03
444
- * [#1107](https://github.com/stripe/stripe-ruby/pull/1107) API Updates for beta branch
445
- - Updated stable APIs to the latest version
446
- - Added the `Order` resource support
447
-
448
220
  ## 7.0.0 - 2022-08-02
449
221
 
450
222
  Breaking changes that arose during code generation of the library that we postponed for the next major version. For changes to the SDK, read more detailed description at https://github.com/stripe/stripe-ruby/wiki/Migration-guide-for-v7. For changes to the Stripe products, read more at https://stripe.com/docs/upgrades#2022-08-01.
@@ -456,19 +228,21 @@ Breaking changes that arose during code generation of the library that we postpo
456
228
  * [#1090](https://github.com/stripe/stripe-ruby/pull/1090) Use auto-generation for `Invoice` methods
457
229
  * [#1103](https://github.com/stripe/stripe-ruby/pull/1103) Next major release changes
458
230
 
459
- ## 6.6.0-beta.1 - 2022-07-22
460
- * [#1100](https://github.com/stripe/stripe-ruby/pull/1100) API Updates for beta branch
461
- - Updated stable APIs to the latest version
462
- - Add `QuotePhase` resource
463
- * [#1097](https://github.com/stripe/stripe-ruby/pull/1097) API Updates for beta branch
464
- - Updated stable APIs to the latest version
465
- - Add `SubscriptionSchedule.amend` method.
466
- * [#1093](https://github.com/stripe/stripe-ruby/pull/1093) API Updates for beta branch
467
- - Include `server_side_confirmation_beta=v1` beta
468
- - Add `secretKeyConfirmation` to `PaymentIntent`
469
- * [#1085](https://github.com/stripe/stripe-ruby/pull/1085) API Updates for beta branch
470
- - Updated stable APIs to the latest version
471
- * [#1075](https://github.com/stripe/stripe-ruby/pull/1075) Use the generated API version
231
+ ### ⚠️ Changed
232
+ * `retrieve_cash_balance` and `update_cash_balance` methods on `Customer` resource no longer requires the second argument to always be `nil`. The methods now now take in `customer_id`, `params`, and `opts` parameters.
233
+ * Update default bundle of CA certificates to April 26, 2022.
234
+
235
+ ### Deprecated
236
+ * Deprecate `delete` method on `Subscription` resource. Please use `cancel` method instead.
237
+
238
+ ### ⚠️ Removed
239
+ * Remove `details` method from `Issuing.Card` resource. The method was not supported.
240
+ * Remove `Issuing.CardDetails` resource. Read more at https://stripe.com/docs/issuing/cards/virtual.
241
+ * Remove `create` method from `ReportType` resource. The method was not supported.
242
+ * Remove `usage_record_summaries` method from `SubscriptionItem` resource. Please use `list_usage_record_summaries` method instead.
243
+ * Remove `AlipayAccount`, `BitcoinReceiver`, `BitcoinTransaction`, `Issuing::CardDetails`, `Recipient`, ` RecipientTransfer`, and `ThreeDSecure` resources. The resources were deprecated or no longer in use.
244
+ * Remove ability to list `Card` resource for a `Recipient`.
245
+ * Remove `cancel` method from `Transfer` resource. The method was deprecated.
472
246
 
473
247
  ## 6.5.0 - 2022-06-29
474
248
  * [#1084](https://github.com/stripe/stripe-ruby/pull/1084) API Updates
@@ -498,6 +272,8 @@ Breaking changes that arose during code generation of the library that we postpo
498
272
  * Add support for new resources `Treasury.CreditReversal`, `Treasury.DebitReversal`, `Treasury.FinancialAccountFeatures`, `Treasury.FinancialAccount`, `Treasury.FlowDetails`, `Treasury.InboundTransfer`, `Treasury.OutboundPayment`, `Treasury.OutboundTransfer`, `Treasury.ReceivedCredit`, `Treasury.ReceivedDebit`, `Treasury.TransactionEntry`, and `Treasury.Transaction`
499
273
  * Add support for `retrieve_payment_method` method on resource `Customer`
500
274
  * Add support for `list_owners` and `list` methods on resource `FinancialConnections.Account`
275
+
276
+
501
277
 
502
278
  ## 6.0.0 - 2022-05-09
503
279
  * [#1056](https://github.com/stripe/stripe-ruby/pull/1056) API Updates
@@ -513,6 +289,7 @@ Breaking changes that arose during code generation of the library that we postpo
513
289
  ## 5.55.0 - 2022-05-05
514
290
  * [#1055](https://github.com/stripe/stripe-ruby/pull/1055) API Updates
515
291
  * Add support for new resources `FinancialConnections.AccountOwner`, `FinancialConnections.AccountOwnership`, `FinancialConnections.Account`, and `FinancialConnections.Session`
292
+
516
293
 
517
294
  ## 5.54.0 - 2022-05-03
518
295
  * [#1053](https://github.com/stripe/stripe-ruby/pull/1053) API Updates
@@ -1543,4 +1320,3 @@ Identical to 1.56.0 above. I incorrectly cut a patch-level release.
1543
1320
  <!--
1544
1321
  # vim: set tw=0:
1545
1322
  -->
1546
-
data/Gemfile CHANGED
@@ -31,6 +31,9 @@ group :development do
31
31
  # don't install on truffleruby
32
32
  gem "jaro_winkler", "1.5.4" unless RUBY_ENGINE == "truffleruby"
33
33
 
34
+ gem "sorbet-static"
35
+ gem "tapioca"
36
+
34
37
  platforms :mri do
35
38
  gem "byebug"
36
39
  gem "pry"
data/Makefile CHANGED
@@ -9,5 +9,12 @@ codegen-format:
9
9
 
10
10
  ci-test:
11
11
  bundle install && bundle exec rake test
12
+ @version=$$(ruby -e "puts RUBY_VERSION.split('.')[0..1].join.to_i"); \
13
+ if [ $$version -ge 27 ]; then \
14
+ echo "Ruby version >= 2.7, continue with srb tc"; \
15
+ bundle exec srb tc; \
16
+ else \
17
+ echo "Ruby version < 2.7, skipping srb tc"; \
18
+ fi
12
19
 
13
20
  test: ci-test
data/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v810
1
+ v829
data/README.md CHANGED
@@ -324,17 +324,6 @@ If your beta feature requires a `Stripe-Version` header to be sent, use the `Str
324
324
  Stripe.api_version += "; feature_beta=v3"
325
325
  ```
326
326
 
327
- ### Custom requests
328
-
329
- If you would like to send a request to an undocumented API (for example you are in a private beta), or if you prefer to bypass the method definitions in the library and specify your request details directly, you can use the `raw_request` method on `Stripe`.
330
-
331
- ```ruby
332
- resp = Stripe.raw_request(:post, "/v1/beta_endpoint", {param: 123}, {stripe_version: "2022-11-15; feature_beta=v3"})
333
-
334
- # (Optional) resp is a StripeResponse. You can use `Stripe.deserialize` to get a StripeObject.
335
- deserialized_resp = Stripe.deserialize(resp.http_body)
336
- ```
337
-
338
327
  ## Support
339
328
 
340
329
  New features and bug fixes are released on the latest major version of the Stripe Ruby library. If you are on an older major version, we recommend that you upgrade to the latest in order to use the new features and bug fixes including those for security vulnerabilities. Older major versions of the package will continue to be available for use, but will not be receiving any updates.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 10.9.0-beta.1
1
+ 10.9.0
data/bin/tapioca ADDED
@@ -0,0 +1,27 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'tapioca' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
12
+
13
+ bundle_binstub = File.expand_path("bundle", __dir__)
14
+
15
+ if File.file?(bundle_binstub)
16
+ if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
17
+ load(bundle_binstub)
18
+ else
19
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
20
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
21
+ end
22
+ end
23
+
24
+ require "rubygems"
25
+ require "bundler/setup"
26
+
27
+ load Gem.bin_path("tapioca", "tapioca")
@@ -48,14 +48,13 @@ module Stripe
48
48
  api_key = headers.delete(:api_key)
49
49
  api_base = headers.delete(:api_base)
50
50
  client = headers.delete(:client)
51
- api_mode = headers.delete(:api_mode)
52
51
  # Assume all remaining opts must be headers
53
52
 
54
53
  resp, opts[:api_key] = client.send(
55
54
  client_request_method_sym,
56
55
  method, url,
57
56
  api_base: api_base, api_key: api_key,
58
- headers: headers, params: params, usage: usage, api_mode: api_mode,
57
+ headers: headers, params: params, usage: usage,
59
58
  &read_body_chunk_block
60
59
  )
61
60
 
@@ -11,6 +11,15 @@ module Stripe
11
11
  # for example, where this is allowed.
12
12
  attr_accessor :save_with_parent
13
13
 
14
+ # TODO: (major) Remove OBJECT_NAME and stop using const_get here
15
+ # This is a workaround to avoid breaking users who have defined their own
16
+ # APIResource subclasses with a custom OBJECT_NAME. We should never fallback
17
+ # on this case otherwise.
18
+ OBJECT_NAME = ""
19
+ def self.object_name
20
+ const_get(:OBJECT_NAME)
21
+ end
22
+
14
23
  def self.class_name
15
24
  name.split("::")[-1]
16
25
  end
@@ -23,7 +32,7 @@ module Stripe
23
32
  end
24
33
  # Namespaces are separated in object names with periods (.) and in URLs
25
34
  # with forward slashes (/), so replace the former with the latter.
26
- "/v1/#{self::OBJECT_NAME.downcase.tr('.', '/')}s"
35
+ "/v1/#{object_name.downcase.tr('.', '/')}s"
27
36
  end
28
37
 
29
38
  # A metaprogramming call that specifies that a field of a resource can be
@@ -14,6 +14,10 @@ module Stripe
14
14
  @resource = resource
15
15
  end
16
16
 
17
+ def self.resource_class
18
+ nil
19
+ end
20
+
17
21
  # Adds a custom method to a test helper. This is used to add support for
18
22
  # non-CRUDL API requests, e.g. capturing charges. custom_method takes the
19
23
  # following parameters:
@@ -27,12 +31,12 @@ module Stripe
27
31
  # adds a `capture` class method to the resource class that, when called,
28
32
  # will send a POST request to `/v1/<object_name>/capture`.
29
33
  def self.custom_method(name, http_verb:, http_path: nil)
30
- Util.custom_method self::RESOURCE_CLASS, self, name, http_verb, http_path
34
+ Util.custom_method resource_class, self, name, http_verb, http_path
31
35
  end
32
36
 
33
37
  def self.resource_url
34
38
  "/v1/test_helpers/" \
35
- "#{self::RESOURCE_CLASS::OBJECT_NAME.downcase.tr('.', '/')}s"
39
+ "#{resource_class.object_name.downcase.tr('.', '/')}s"
36
40
  end
37
41
 
38
42
  def resource_url