stripe 3.3.1 → 5.38.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (205) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +962 -0
  3. data/CODE_OF_CONDUCT.md +77 -0
  4. data/Gemfile +24 -22
  5. data/History.txt +1 -689
  6. data/README.md +202 -55
  7. data/Rakefile +18 -12
  8. data/VERSION +1 -1
  9. data/bin/stripe-console +5 -3
  10. data/lib/stripe/api_operations/create.rb +4 -2
  11. data/lib/stripe/api_operations/delete.rb +31 -3
  12. data/lib/stripe/api_operations/list.rb +4 -13
  13. data/lib/stripe/api_operations/nested_resource.rb +73 -0
  14. data/lib/stripe/api_operations/request.rb +84 -17
  15. data/lib/stripe/api_operations/save.rb +25 -13
  16. data/lib/stripe/api_resource.rb +70 -11
  17. data/lib/stripe/connection_manager.rb +179 -0
  18. data/lib/stripe/error_object.rb +93 -0
  19. data/lib/stripe/errors.rb +47 -19
  20. data/lib/stripe/instrumentation.rb +84 -0
  21. data/lib/stripe/list_object.rb +54 -22
  22. data/lib/stripe/multipart_encoder.rb +131 -0
  23. data/lib/stripe/oauth.rb +29 -20
  24. data/lib/stripe/object_types.rb +107 -0
  25. data/lib/stripe/{account.rb → resources/account.rb} +70 -36
  26. data/lib/stripe/resources/account_link.rb +10 -0
  27. data/lib/stripe/resources/alipay_account.rb +34 -0
  28. data/lib/stripe/{apple_pay_domain.rb → resources/apple_pay_domain.rb} +5 -2
  29. data/lib/stripe/resources/application_fee.rb +14 -0
  30. data/lib/stripe/resources/application_fee_refund.rb +31 -0
  31. data/lib/stripe/resources/balance.rb +8 -0
  32. data/lib/stripe/resources/balance_transaction.rb +10 -0
  33. data/lib/stripe/resources/bank_account.rb +43 -0
  34. data/lib/stripe/resources/billing_portal/configuration.rb +14 -0
  35. data/lib/stripe/resources/billing_portal/session.rb +12 -0
  36. data/lib/stripe/{bitcoin_receiver.rb → resources/bitcoin_receiver.rb} +7 -5
  37. data/lib/stripe/resources/bitcoin_transaction.rb +16 -0
  38. data/lib/stripe/resources/capability.rb +34 -0
  39. data/lib/stripe/resources/card.rb +38 -0
  40. data/lib/stripe/resources/charge.rb +23 -0
  41. data/lib/stripe/resources/checkout/session.rb +16 -0
  42. data/lib/stripe/resources/country_spec.rb +10 -0
  43. data/lib/stripe/{coupon.rb → resources/coupon.rb} +5 -2
  44. data/lib/stripe/resources/credit_note.rb +33 -0
  45. data/lib/stripe/resources/credit_note_line_item.rb +8 -0
  46. data/lib/stripe/resources/customer.rb +41 -0
  47. data/lib/stripe/resources/customer_balance_transaction.rb +31 -0
  48. data/lib/stripe/resources/discount.rb +7 -0
  49. data/lib/stripe/resources/dispute.rb +22 -0
  50. data/lib/stripe/resources/ephemeral_key.rb +20 -0
  51. data/lib/stripe/resources/event.rb +10 -0
  52. data/lib/stripe/resources/exchange_rate.rb +10 -0
  53. data/lib/stripe/resources/file.rb +36 -0
  54. data/lib/stripe/resources/file_link.rb +12 -0
  55. data/lib/stripe/resources/identity/verification_report.rb +12 -0
  56. data/lib/stripe/resources/identity/verification_session.rb +35 -0
  57. data/lib/stripe/resources/invoice.rb +74 -0
  58. data/lib/stripe/{invoice_item.rb → resources/invoice_item.rb} +5 -2
  59. data/lib/stripe/resources/invoice_line_item.rb +8 -0
  60. data/lib/stripe/resources/issuing/authorization.rb +34 -0
  61. data/lib/stripe/resources/issuing/card.rb +25 -0
  62. data/lib/stripe/resources/issuing/card_details.rb +9 -0
  63. data/lib/stripe/resources/issuing/cardholder.rb +14 -0
  64. data/lib/stripe/resources/issuing/dispute.rb +25 -0
  65. data/lib/stripe/resources/issuing/transaction.rb +13 -0
  66. data/lib/stripe/resources/line_item.rb +8 -0
  67. data/lib/stripe/resources/login_link.rb +15 -0
  68. data/lib/stripe/resources/mandate.rb +8 -0
  69. data/lib/stripe/resources/order.rb +33 -0
  70. data/lib/stripe/resources/order_return.rb +10 -0
  71. data/lib/stripe/resources/payment_intent.rb +43 -0
  72. data/lib/stripe/resources/payment_method.rb +33 -0
  73. data/lib/stripe/resources/payout.rb +33 -0
  74. data/lib/stripe/resources/person.rb +32 -0
  75. data/lib/stripe/{plan.rb → resources/plan.rb} +4 -1
  76. data/lib/stripe/resources/price.rb +12 -0
  77. data/lib/stripe/{product.rb → resources/product.rb} +6 -3
  78. data/lib/stripe/resources/promotion_code.rb +12 -0
  79. data/lib/stripe/resources/quote.rb +105 -0
  80. data/lib/stripe/resources/radar/early_fraud_warning.rb +12 -0
  81. data/lib/stripe/resources/radar/value_list.rb +15 -0
  82. data/lib/stripe/resources/radar/value_list_item.rb +14 -0
  83. data/lib/stripe/resources/recipient.rb +14 -0
  84. data/lib/stripe/resources/recipient_transfer.rb +7 -0
  85. data/lib/stripe/{refund.rb → resources/refund.rb} +4 -1
  86. data/lib/stripe/resources/reporting/report_run.rb +13 -0
  87. data/lib/stripe/resources/reporting/report_type.rb +13 -0
  88. data/lib/stripe/resources/reversal.rb +30 -0
  89. data/lib/stripe/resources/review.rb +21 -0
  90. data/lib/stripe/resources/setup_attempt.rb +10 -0
  91. data/lib/stripe/resources/setup_intent.rb +33 -0
  92. data/lib/stripe/resources/sigma/scheduled_query_run.rb +16 -0
  93. data/lib/stripe/{sku.rb → resources/sku.rb} +6 -3
  94. data/lib/stripe/resources/source.rb +47 -0
  95. data/lib/stripe/resources/source_transaction.rb +7 -0
  96. data/lib/stripe/resources/subscription.rb +26 -0
  97. data/lib/stripe/resources/subscription_item.rb +26 -0
  98. data/lib/stripe/resources/subscription_schedule.rb +33 -0
  99. data/lib/stripe/resources/tax_code.rb +10 -0
  100. data/lib/stripe/resources/tax_id.rb +27 -0
  101. data/lib/stripe/resources/tax_rate.rb +12 -0
  102. data/lib/stripe/resources/terminal/connection_token.rb +12 -0
  103. data/lib/stripe/resources/terminal/location.rb +15 -0
  104. data/lib/stripe/resources/terminal/reader.rb +15 -0
  105. data/lib/stripe/{three_d_secure.rb → resources/three_d_secure.rb} +4 -1
  106. data/lib/stripe/resources/token.rb +10 -0
  107. data/lib/stripe/resources/topup.rb +23 -0
  108. data/lib/stripe/resources/transfer.rb +27 -0
  109. data/lib/stripe/resources/usage_record.rb +8 -0
  110. data/lib/stripe/resources/usage_record_summary.rb +8 -0
  111. data/lib/stripe/{recipient.rb → resources/webhook_endpoint.rb} +6 -7
  112. data/lib/stripe/resources.rb +90 -0
  113. data/lib/stripe/singleton_api_resource.rb +10 -4
  114. data/lib/stripe/stripe_client.rb +798 -346
  115. data/lib/stripe/stripe_configuration.rb +194 -0
  116. data/lib/stripe/stripe_object.rb +271 -126
  117. data/lib/stripe/stripe_response.rb +89 -27
  118. data/lib/stripe/util.rb +134 -194
  119. data/lib/stripe/version.rb +3 -1
  120. data/lib/stripe/webhook.rb +57 -18
  121. data/lib/stripe.rb +74 -186
  122. data/stripe.gemspec +35 -16
  123. metadata +110 -165
  124. data/.gitattributes +0 -4
  125. data/.github/ISSUE_TEMPLATE.md +0 -5
  126. data/.gitignore +0 -5
  127. data/.travis.yml +0 -38
  128. data/lib/stripe/alipay_account.rb +0 -22
  129. data/lib/stripe/application_fee.rb +0 -22
  130. data/lib/stripe/application_fee_refund.rb +0 -20
  131. data/lib/stripe/balance.rb +0 -5
  132. data/lib/stripe/balance_transaction.rb +0 -11
  133. data/lib/stripe/bank_account.rb +0 -30
  134. data/lib/stripe/bitcoin_transaction.rb +0 -11
  135. data/lib/stripe/card.rb +0 -27
  136. data/lib/stripe/charge.rb +0 -82
  137. data/lib/stripe/country_spec.rb +0 -11
  138. data/lib/stripe/customer.rb +0 -79
  139. data/lib/stripe/dispute.rb +0 -17
  140. data/lib/stripe/ephemeral_key.rb +0 -18
  141. data/lib/stripe/event.rb +0 -7
  142. data/lib/stripe/file_upload.rb +0 -33
  143. data/lib/stripe/invoice.rb +0 -29
  144. data/lib/stripe/invoice_line_item.rb +0 -5
  145. data/lib/stripe/login_link.rb +0 -9
  146. data/lib/stripe/order.rb +0 -29
  147. data/lib/stripe/order_return.rb +0 -11
  148. data/lib/stripe/payout.rb +0 -18
  149. data/lib/stripe/recipient_transfer.rb +0 -6
  150. data/lib/stripe/reversal.rb +0 -20
  151. data/lib/stripe/source.rb +0 -23
  152. data/lib/stripe/subscription.rb +0 -33
  153. data/lib/stripe/subscription_item.rb +0 -14
  154. data/lib/stripe/token.rb +0 -7
  155. data/lib/stripe/transfer.rb +0 -18
  156. data/test/api_stub_helpers.rb +0 -0
  157. data/test/stripe/account_test.rb +0 -202
  158. data/test/stripe/alipay_account_test.rb +0 -17
  159. data/test/stripe/api_operations_test.rb +0 -31
  160. data/test/stripe/api_resource_test.rb +0 -558
  161. data/test/stripe/apple_pay_domain_test.rb +0 -31
  162. data/test/stripe/application_fee_refund_test.rb +0 -35
  163. data/test/stripe/application_fee_test.rb +0 -12
  164. data/test/stripe/balance_test.rb +0 -11
  165. data/test/stripe/bank_account_test.rb +0 -36
  166. data/test/stripe/bitcoin_receiver_test.rb +0 -67
  167. data/test/stripe/bitcoin_transaction_test.rb +0 -19
  168. data/test/stripe/charge_test.rb +0 -57
  169. data/test/stripe/country_spec_test.rb +0 -18
  170. data/test/stripe/coupon_test.rb +0 -42
  171. data/test/stripe/customer_card_test.rb +0 -46
  172. data/test/stripe/customer_test.rb +0 -114
  173. data/test/stripe/dispute_test.rb +0 -40
  174. data/test/stripe/ephemeral_key_test.rb +0 -84
  175. data/test/stripe/errors_test.rb +0 -18
  176. data/test/stripe/file_upload_test.rb +0 -66
  177. data/test/stripe/invoice_item_test.rb +0 -53
  178. data/test/stripe/invoice_line_item_test.rb +0 -6
  179. data/test/stripe/invoice_test.rb +0 -110
  180. data/test/stripe/list_object_test.rb +0 -170
  181. data/test/stripe/login_link_test.rb +0 -35
  182. data/test/stripe/oauth_test.rb +0 -85
  183. data/test/stripe/order_return_test.rb +0 -19
  184. data/test/stripe/order_test.rb +0 -57
  185. data/test/stripe/payout_test.rb +0 -48
  186. data/test/stripe/plan_test.rb +0 -50
  187. data/test/stripe/product_test.rb +0 -45
  188. data/test/stripe/recipient_card_test.rb +0 -44
  189. data/test/stripe/recipient_test.rb +0 -48
  190. data/test/stripe/refund_test.rb +0 -37
  191. data/test/stripe/reversal_test.rb +0 -41
  192. data/test/stripe/sku_test.rb +0 -48
  193. data/test/stripe/source_test.rb +0 -68
  194. data/test/stripe/stripe_client_test.rb +0 -750
  195. data/test/stripe/stripe_object_test.rb +0 -398
  196. data/test/stripe/stripe_response_test.rb +0 -46
  197. data/test/stripe/subscription_item_test.rb +0 -52
  198. data/test/stripe/subscription_test.rb +0 -58
  199. data/test/stripe/three_d_secure_test.rb +0 -21
  200. data/test/stripe/transfer_test.rb +0 -41
  201. data/test/stripe/util_test.rb +0 -414
  202. data/test/stripe/webhook_test.rb +0 -92
  203. data/test/stripe_test.rb +0 -59
  204. data/test/test_data.rb +0 -59
  205. data/test/test_helper.rb +0 -56
data/CHANGELOG.md ADDED
@@ -0,0 +1,962 @@
1
+ # Changelog
2
+
3
+ ## 5.38.0 - 2021-08-10
4
+ * [#993](https://github.com/stripe/stripe-ruby/pull/993) Add `request_id` to RequestEndEvent
5
+ * [#991](https://github.com/stripe/stripe-ruby/pull/991) Codegen more files
6
+ * [#989](https://github.com/stripe/stripe-ruby/pull/989) Remove unused API error types from docs.
7
+
8
+ ## 5.37.0 - 2021-07-14
9
+ * [#988](https://github.com/stripe/stripe-ruby/pull/988) API Updates
10
+ * Add support for `list_computed_upfront_line_items` method on resource `Quote`
11
+
12
+ ## 5.36.0 - 2021-07-09
13
+ * [#987](https://github.com/stripe/stripe-ruby/pull/987) Add support for `Quote` API
14
+
15
+ ## 5.35.0 - 2021-06-30
16
+ * [#985](https://github.com/stripe/stripe-ruby/pull/985) Update normalize_opts to use dup instead of clone.
17
+ * [#982](https://github.com/stripe/stripe-ruby/pull/982) Deprecate travis
18
+ * [#983](https://github.com/stripe/stripe-ruby/pull/983) Add support for making a request and receiving the response as a stream.
19
+
20
+ ## 5.34.0 - 2021-06-04
21
+ * [#981](https://github.com/stripe/stripe-ruby/pull/981) API Updates
22
+ * Add support for `TaxCode` API.
23
+
24
+ ## 5.33.0 - 2021-05-19
25
+ * [#979](https://github.com/stripe/stripe-ruby/pull/979) Add support for the Identify VerificationSession and VerificationReport APIs
26
+
27
+ ## 5.32.1 - 2021-04-05
28
+ * Correct use of regexp `match` in gemspec for old versions of Ruby
29
+
30
+ ## 5.32.0 - 2021-04-05
31
+ * [#973](https://github.com/stripe/stripe-ruby/pull/973) Reduce packed gem size
32
+
33
+ ## 5.31.0 - 2021-04-02
34
+ * [#968](https://github.com/stripe/stripe-ruby/pull/968) Allow StripeClient to be configured per instance
35
+ * [#971](https://github.com/stripe/stripe-ruby/pull/971) On config change, only clear connection managers for changed config
36
+ * [#972](https://github.com/stripe/stripe-ruby/pull/972) Rename `Stripe.configuration` to `Stripe.config`
37
+ * [#970](https://github.com/stripe/stripe-ruby/pull/970) Reserve some critical field names when adding `StripeObject` accessors
38
+ * [#967](https://github.com/stripe/stripe-ruby/pull/967) CI: github actions
39
+
40
+ ## 5.30.0 - 2021-02-22
41
+ * [#965](https://github.com/stripe/stripe-ruby/pull/965) Add support for the Billing Portal Configuration API
42
+
43
+ ## 5.29.1 - 2021-02-09
44
+ * [#964](https://github.com/stripe/stripe-ruby/pull/964) Fix return value of `Customer#delete_discount`
45
+
46
+ ## 5.29.0 - 2021-01-05
47
+ * [#952](https://github.com/stripe/stripe-ruby/pull/952) Allow client_id configuration on instance config
48
+
49
+ ## 5.28.0 - 2020-10-14
50
+ * [#950](https://github.com/stripe/stripe-ruby/pull/950) Add configuration option for `write_timeout` for connections on Ruby 2.6+
51
+
52
+ ## 5.27.0 - 2020-10-14
53
+ * [#951](https://github.com/stripe/stripe-ruby/pull/951) Add support for the Payout Reverse API
54
+
55
+ ## 5.26.0 - 2020-09-29
56
+ * [#949](https://github.com/stripe/stripe-ruby/pull/949) Add support for the `SetupAttempt` resource and List API
57
+
58
+ ## 5.25.0 - 2020-09-02
59
+ * [#944](https://github.com/stripe/stripe-ruby/pull/944) Add support for the Issuing Dispute Submit API
60
+
61
+ ## 5.24.0 - 2020-08-26
62
+ * [#939](https://github.com/stripe/stripe-ruby/pull/939) Extract configurations into separate object
63
+ * [#940](https://github.com/stripe/stripe-ruby/pull/940) Fix typo in documentation of `stripe_object.rb`
64
+
65
+ ## 5.23.1 - 2020-08-05
66
+ * [#936](https://github.com/stripe/stripe-ruby/pull/936) Rename API resource's `request` method
67
+
68
+ ## 5.23.0 - 2020-08-05
69
+ * [#937](https://github.com/stripe/stripe-ruby/pull/937) Add support for the `PromotionCode` resource and APIs
70
+
71
+ ## 5.22.0 - 2020-05-11
72
+ * [#918](https://github.com/stripe/stripe-ruby/pull/918) Add support for the `LineItem` resource and APIs
73
+
74
+ ## 5.21.0 - 2020-04-29
75
+ * [#917](https://github.com/stripe/stripe-ruby/pull/917) Add support for the `Price` resource and APIs
76
+
77
+ ## 5.20.0 - 2020-04-27
78
+ * [#916](https://github.com/stripe/stripe-ruby/pull/916) Add new `.generate_header` method for webhooks
79
+
80
+ ## 5.19.0 - 2020-04-24
81
+ * [#915](https://github.com/stripe/stripe-ruby/pull/915) Expose `Stripe::Webhook.compute_signature` publicly
82
+
83
+ ## 5.18.0 - 2020-04-22
84
+ * [#911](https://github.com/stripe/stripe-ruby/pull/911) Add support for `BillingPortal` namespace and `Session` resource and APIs
85
+
86
+ ## 5.17.0 - 2020-02-26
87
+ * [#907](https://github.com/stripe/stripe-ruby/pull/907) Add `StripeError#idempotent_replayed?`
88
+
89
+ ## 5.16.0 - 2020-02-26
90
+ * [#906](https://github.com/stripe/stripe-ruby/pull/906) Add support for listing Checkout sessions
91
+ * [#903](https://github.com/stripe/stripe-ruby/pull/903) Upgrade to Rubocop 0.80
92
+
93
+ ## 5.15.0 - 2020-02-10
94
+ * [#902](https://github.com/stripe/stripe-ruby/pull/902) Add `request_begin` instrumentation callback
95
+
96
+ ## 5.14.0 - 2020-01-14
97
+ * [#896](https://github.com/stripe/stripe-ruby/pull/896) Add support for `CreditNoteLineItem`
98
+ * [#894](https://github.com/stripe/stripe-ruby/pull/894) Clean up test output by capturing `$stderr` when we expect warnings
99
+ * [#892](https://github.com/stripe/stripe-ruby/pull/892) Explicitly pass a parameter as hash to be more ruby 2.7 friendly
100
+ * [#893](https://github.com/stripe/stripe-ruby/pull/893) Upgrade Rubocop to 0.79
101
+
102
+ ## 5.13.0 - 2020-01-08
103
+ * [#891](https://github.com/stripe/stripe-ruby/pull/891) Fix most Ruby 2.7 warnings
104
+
105
+ ## 5.12.1 - 2020-01-06
106
+ * [#890](https://github.com/stripe/stripe-ruby/pull/890) Override API key with `client_secret` in `OAuth.token`
107
+
108
+ ## 5.12.0 - 2020-01-02
109
+ * [#889](https://github.com/stripe/stripe-ruby/pull/889) Add support for retrieve source transaction API method
110
+
111
+ ## 5.11.0 - 2019-11-26
112
+ * [#885](https://github.com/stripe/stripe-ruby/pull/885) Add support for `CreditNote` preview
113
+
114
+ ## 5.10.0 - 2019-11-08
115
+ * [#882](https://github.com/stripe/stripe-ruby/pull/882) Add list_usage_record_summaries and list_source_transactions
116
+
117
+ ## 5.9.0 - 2019-11-07
118
+ * [#870](https://github.com/stripe/stripe-ruby/pull/870) Add request instrumentation callback (see `README.md` for usage example)
119
+
120
+ ## 5.8.0 - 2019-11-05
121
+ * [#879](https://github.com/stripe/stripe-ruby/pull/879) Add support for `Mandate`
122
+ * [#876](https://github.com/stripe/stripe-ruby/pull/876) Add additional per-request configuration documentation
123
+ * [#874](https://github.com/stripe/stripe-ruby/pull/874) Raise an error when requests params are invalid
124
+ * [#873](https://github.com/stripe/stripe-ruby/pull/873) Contributor Covenant
125
+
126
+ ## 5.7.1 - 2019-10-15
127
+ * [#869](https://github.com/stripe/stripe-ruby/pull/869) Fixes the misnamed `connection_base=` setter to be named `connect_base=`
128
+
129
+ ## 5.7.0 - 2019-10-10
130
+ * [#865](https://github.com/stripe/stripe-ruby/pull/865) Support backwards pagination with list's `#auto_paging_each`
131
+
132
+ ## 5.6.0 - 2019-10-04
133
+ * [#861](https://github.com/stripe/stripe-ruby/pull/861) Nicer error when specifying non-nil non-string opt value
134
+
135
+ ## 5.5.0 - 2019-10-03
136
+ * [#859](https://github.com/stripe/stripe-ruby/pull/859) User-friendly messages and retries for `EOFError`, `Errno::ECONNRESET`, `Errno::ETIMEDOUT`, and `Errno::EHOSTUNREACH` network errors
137
+
138
+ ## 5.4.1 - 2019-10-01
139
+ * [#858](https://github.com/stripe/stripe-ruby/pull/858) Drop Timecop dependency
140
+
141
+ ## 5.4.0 - 2019-10-01
142
+ * [#857](https://github.com/stripe/stripe-ruby/pull/857) Move to monotonic time for duration calculations
143
+
144
+ ## 5.3.0 - 2019-10-01
145
+ * [#853](https://github.com/stripe/stripe-ruby/pull/853) Support `Stripe-Should-Retry` header
146
+
147
+ ## 5.2.0 - 2019-09-19
148
+ * [#851](https://github.com/stripe/stripe-ruby/pull/851) Introduce system for garbage collecting connection managers
149
+
150
+ ## 5.1.1 - 2019-09-04
151
+ * [#845](https://github.com/stripe/stripe-ruby/pull/845) Transfer the request_id from the http_headers to error.
152
+
153
+ ## 5.1.0 - 2019-08-27
154
+ * [#841](https://github.com/stripe/stripe-ruby/pull/841) Retry requests on a 429 that's a lock timeout
155
+
156
+ ## 5.0.1 - 2019-08-20
157
+ * [#836](https://github.com/stripe/stripe-ruby/pull/836) Increase connection keep alive timeout to 30 seconds
158
+
159
+ ## 5.0.0 - 2019-08-20
160
+ Major version release. The [migration guide](https://github.com/stripe/stripe-ruby/wiki/Migration-guide-for-v5) contains a detailed list of backwards-incompatible changes with upgrade instructions.
161
+
162
+ Pull requests included in this release (cf. [#815](https://github.com/stripe/stripe-ruby/pull/815)) (⚠️ = breaking changes):
163
+ * ⚠️ [#813](https://github.com/stripe/stripe-ruby/pull/813): Convert library to use built-in `Net::HTTP`
164
+ * ⚠️ [#816](https://github.com/stripe/stripe-ruby/pull/816): Make `code` argument in `CardError` named instead of positional.
165
+ * ⚠️ [#817](https://github.com/stripe/stripe-ruby/pull/817): Drop support for very old Ruby versions.
166
+ * [#818](https://github.com/stripe/stripe-ruby/pull/818): Bump Rubocop to latest version
167
+ * [#819](https://github.com/stripe/stripe-ruby/pull/819): Ruby minimum version increase followup
168
+ * ⚠️ [#820](https://github.com/stripe/stripe-ruby/pull/820): Remove old deprecated methods
169
+ * ⚠️ [#823](https://github.com/stripe/stripe-ruby/pull/823): Remove all alias for list methods
170
+ * ⚠️ [#826](https://github.com/stripe/stripe-ruby/pull/826): Remove `UsageRecord.create` method
171
+ * ⚠️ [#827](https://github.com/stripe/stripe-ruby/pull/827): Remove `IssuerFraudRecord`
172
+ * [#811](https://github.com/stripe/stripe-ruby/pull/811): Add `ErrorObject` to `StripeError` exceptions
173
+ * [#828](https://github.com/stripe/stripe-ruby/pull/828): Tweak retry logic to be a little more like stripe-node
174
+ * [#829](https://github.com/stripe/stripe-ruby/pull/829): Reset connections when connection-changing configuration changes (optional)
175
+ * [#830](https://github.com/stripe/stripe-ruby/pull/830): Fix inverted sign for 500 retries
176
+ * ⚠️[#831](https://github.com/stripe/stripe-ruby/pull/831): Remove a few more very old deprecated methods
177
+ * [#832](https://github.com/stripe/stripe-ruby/pull/832): Minor cleanup in `StripeClient`
178
+ * [#833](https://github.com/stripe/stripe-ruby/pull/833): Do better bookkeeping when tracking state in `Thread.current`
179
+ * [#834](https://github.com/stripe/stripe-ruby/pull/834): Add `Invoice.list_upcoming_line_items` method
180
+
181
+ ## 4.24.0 - 2019-08-12
182
+ * [#825](https://github.com/stripe/stripe-ruby/pull/825) Add `SubscriptionItem.create_usage_record` method
183
+ - This release also removed the `SubscriptionSchedule.revisions` method. This should have been included in the previous release (4.23.0)
184
+
185
+ ## 4.23.0 - 2019-08-09
186
+ * [#824](https://github.com/stripe/stripe-ruby/pull/824) Remove SubscriptionScheduleRevision
187
+ - This is technically a breaking change. We've chosen to release it as a minor vesion bump because the associated API is unused.
188
+
189
+ ## 4.22.1 - 2019-08-09
190
+ * [#808](https://github.com/stripe/stripe-ruby/pull/808) Unify request/response handling
191
+
192
+ ## 4.22.0 - 2019-07-30
193
+ * [#821](https://github.com/stripe/stripe-ruby/pull/821) Listing `BalanceTransaction` objects now uses `/v1/balance_transactions` instead of `/v1/balance/history`
194
+
195
+ ## 4.21.3 - 2019-07-15
196
+ * [#810](https://github.com/stripe/stripe-ruby/pull/810) Better error message when passing non-string to custom method
197
+
198
+ ## 4.21.2 - 2019-07-05
199
+ * [#806](https://github.com/stripe/stripe-ruby/pull/806) Revert back to `initialize_from` from `Util.convert_to_stripe_object`
200
+
201
+ ## 4.21.1 - 2019-07-04
202
+ * [#807](https://github.com/stripe/stripe-ruby/pull/807) Add gem metadata
203
+
204
+ ## 4.21.0 - 2019-06-28
205
+ * [#803](https://github.com/stripe/stripe-ruby/pull/803) Add support for the `SetupIntent` resource and APIs
206
+
207
+ ## 4.20.1 - 2019-06-28
208
+ * [#805](https://github.com/stripe/stripe-ruby/pull/805) Fix formatting in `ConnectionFailed` error message
209
+
210
+ ## 4.20.0 - 2019-06-24
211
+ * [#800](https://github.com/stripe/stripe-ruby/pull/800) Enable request latency telemetry by default
212
+
213
+ ## 4.19.0 - 2019-06-17
214
+ * [#770](https://github.com/stripe/stripe-ruby/pull/770) Add support for `CustomerBalanceTransaction` resource and APIs
215
+
216
+ ## 4.18.1 - 2019-05-27
217
+ * [#789](https://github.com/stripe/stripe-ruby/pull/789) Allow `Order#pay` to be called without arguments
218
+
219
+ ## 4.18.0 - 2019-05-23
220
+ * [#783](https://github.com/stripe/stripe-ruby/pull/783) Add support for `radar.early_fraud_warning` resource
221
+
222
+ ## 4.17.0 - 2019-05-14
223
+ * [#779](https://github.com/stripe/stripe-ruby/pull/779) Add support for the Capability resource and APIs
224
+
225
+ ## 4.16.0 - 2019-04-24
226
+ * [#760](https://github.com/stripe/stripe-ruby/pull/760) Add support for the `TaxRate` resource and APIs
227
+
228
+ ## 4.15.0 - 2019-04-22
229
+ * [#762](https://github.com/stripe/stripe-ruby/pull/762) Add support for the `TaxId` resource and APIs
230
+
231
+ ## 4.14.0 - 2019-04-18
232
+ * [#758](https://github.com/stripe/stripe-ruby/pull/758) Add support for the `CreditNote` resource and APIs
233
+
234
+ ## 4.13.0 - 2019-04-16
235
+ * [#766](https://github.com/stripe/stripe-ruby/pull/766) Relax constraints on objects that we'll accept as a file (now they just need to respond to `#read`)
236
+
237
+ ## 4.12.0 - 2019-04-02
238
+ * [#752](https://github.com/stripe/stripe-ruby/pull/752) Add `.delete` class method on deletable API resources
239
+ * [#754](https://github.com/stripe/stripe-ruby/pull/754) Add class methods for all custom API requests (e.g. `Charge.capture`)
240
+
241
+ ## 4.11.0 - 2019-03-26
242
+ * [#753](https://github.com/stripe/stripe-ruby/pull/753) Add a global proxy configuration parameter
243
+
244
+ ## 4.10.0 - 2019-03-18
245
+ * [#745](https://github.com/stripe/stripe-ruby/pull/745) Add support for the `PaymentMethod` resource and APIs
246
+ * [#747](https://github.com/stripe/stripe-ruby/pull/747) Add support for retrieving a Checkout `Session`
247
+ * [#748](https://github.com/stripe/stripe-ruby/pull/748) Add support for deleting a Terminal `Location` and `Reader`
248
+
249
+ ## 4.9.1 - 2019-03-18
250
+ * [#750](https://github.com/stripe/stripe-ruby/pull/750) Catch error and warn if unable to remove a method
251
+
252
+ ## 4.9.0 - 2019-02-12
253
+ * [#739](https://github.com/stripe/stripe-ruby/pull/739) Add support for `SubscriptionSchedule` and `SubscriptionScheduleRevision`
254
+
255
+ ## 4.8.1 - 2019-02-11
256
+ * [#743](https://github.com/stripe/stripe-ruby/pull/743) Fix bug in file uploading introduced in #741
257
+
258
+ ## 4.8.0 - 2019-02-03
259
+ * [#741](https://github.com/stripe/stripe-ruby/pull/741) Use `FaradayStripeEncoder` to encode all parameter styles
260
+
261
+ ## 4.7.1 - 2019-02-01
262
+ * [#740](https://github.com/stripe/stripe-ruby/pull/740) Fix query encoding for integer-indexed maps
263
+
264
+ ## 4.7.0 - 2019-01-23
265
+ * [#735](https://github.com/stripe/stripe-ruby/pull/735) Rename `CheckoutSession` to `Session` and move it under the `Checkout` namespace. This is a breaking change, but we've reached out to affected merchants and all new merchants would use the new approach.
266
+
267
+ ## 4.6.0 - 2019-01-21
268
+ * [#736](https://github.com/stripe/stripe-ruby/pull/736) Properly serialize `individual` on `Account` objects
269
+
270
+ ## 4.5.0 - 2019-01-02
271
+ * [#719](https://github.com/stripe/stripe-ruby/pull/719) Generate OAuth authorize URLs for Express accounts as well as standard
272
+
273
+ ## 4.4.1 - 2018-12-31
274
+ * [#718](https://github.com/stripe/stripe-ruby/pull/718) Fix an error message typo
275
+
276
+ ## 4.4.0 - 2018-12-21
277
+ * [#716](https://github.com/stripe/stripe-ruby/pull/716) Add support for the `CheckoutSession` resource
278
+
279
+ ## 4.3.0 - 2018-12-10
280
+ * [#711](https://github.com/stripe/stripe-ruby/pull/711) Add support for account links
281
+
282
+ ## 4.2.0 - 2018-11-28
283
+ * [#705](https://github.com/stripe/stripe-ruby/pull/705) Add support for the `Review` APIs
284
+
285
+ ## 4.1.0 - 2018-11-27
286
+ * [#695](https://github.com/stripe/stripe-ruby/pull/695) Add support for `ValueList` and `ValueListItem` for Radar
287
+
288
+ ## 4.0.3 - 2018-11-19
289
+ * [#703](https://github.com/stripe/stripe-ruby/pull/703) Don't use `Net::HTTP::Persistent` on Windows where it's not well supported
290
+
291
+ ## 4.0.2 - 2018-11-16
292
+ * [#701](https://github.com/stripe/stripe-ruby/pull/701) Require minimum Faraday 0.13 for proper support of persistent connections
293
+
294
+ ## 4.0.1 - 2018-11-15
295
+ * [#699](https://github.com/stripe/stripe-ruby/pull/699) Only send telemetry if `Request-Id` was present in the response
296
+
297
+ ## 4.0.0 - 2018-11-15
298
+ * [#698](https://github.com/stripe/stripe-ruby/pull/698) Use persistent connections by default through `Net::HTTP::Persistent`
299
+ * [#698](https://github.com/stripe/stripe-ruby/pull/698) Drop support for Ruby 2.0 (which we consider a breaking change here)
300
+
301
+ ## 3.31.1 - 2018-11-12
302
+ * [#697](https://github.com/stripe/stripe-ruby/pull/697) Send telemetry in milliseconds specifically
303
+
304
+ ## 3.31.0 - 2018-11-12
305
+ * [#696](https://github.com/stripe/stripe-ruby/pull/696) Add configurable telemetry to gather information on client-side request latency
306
+
307
+ ## 3.30.0 - 2018-11-08
308
+ * [#693](https://github.com/stripe/stripe-ruby/pull/693) Add new API endpoints for the `Invoice` resource.
309
+
310
+ ## 3.29.0 - 2018-10-30
311
+ * [#692](https://github.com/stripe/stripe-ruby/pull/692) Add support for the `Person` resource
312
+ * [#694](https://github.com/stripe/stripe-ruby/pull/694) Add support for the `WebhookEndpoint` resource
313
+
314
+ ## 3.28.0 - 2018-09-24
315
+ * [#690](https://github.com/stripe/stripe-ruby/pull/690) Add support for Stripe Terminal
316
+
317
+ ## 3.27.0 - 2018-09-24
318
+ * [#689](https://github.com/stripe/stripe-ruby/pull/689) Rename `FileUpload` to `File`
319
+
320
+ ## 3.26.1 - 2018-09-14
321
+ * [#688](https://github.com/stripe/stripe-ruby/pull/688) Fix hash equality on `StripeObject`
322
+
323
+ ## 3.26.0 - 2018-09-05
324
+ * [#681](https://github.com/stripe/stripe-ruby/pull/681) Add support for reporting resources
325
+
326
+ ## 3.25.0 - 2018-08-28
327
+ * [#678](https://github.com/stripe/stripe-ruby/pull/678) Allow payment intent `#cancel`, `#capture`, and `#confirm` to take their own parameters
328
+
329
+ ## 3.24.0 - 2018-08-27
330
+ * [#675](https://github.com/stripe/stripe-ruby/pull/675) Remove support for `BitcoinReceiver` write-actions
331
+
332
+ ## 3.23.0 - 2018-08-23
333
+ * [#676](https://github.com/stripe/stripe-ruby/pull/676) Add support for usage record summaries
334
+
335
+ ## 3.22.0 - 2018-08-15
336
+ * [#674](https://github.com/stripe/stripe-ruby/pull/674) Use integer-indexed encoding for all arrays
337
+
338
+ ## 3.21.0 - 2018-08-03
339
+ * [#671](https://github.com/stripe/stripe-ruby/pull/671) Add cancel support for topups
340
+
341
+ ## 3.20.0 - 2018-08-03
342
+ * [#669](https://github.com/stripe/stripe-ruby/pull/669) Add support for file links
343
+
344
+ ## 3.19.0 - 2018-07-27
345
+ * [#666](https://github.com/stripe/stripe-ruby/pull/666) Add support for scheduled query runs (`Stripe::Sigma::ScheduledQueryRun`) for Sigma
346
+
347
+ ## 3.18.0 - 2018-07-26
348
+ * [#665](https://github.com/stripe/stripe-ruby/pull/665) Add support for Stripe Issuing
349
+
350
+ ## 3.17.2 - 2018-07-19
351
+ * [#664](https://github.com/stripe/stripe-ruby/pull/664) Don't colorize log output being sent to a configured logger
352
+
353
+ ## 3.17.1 - 2018-07-19
354
+ * [#663](https://github.com/stripe/stripe-ruby/pull/663) Internal improvements to `ApiResource.class_url`
355
+
356
+ ## 3.17.0 - 2018-06-28
357
+ * [#658](https://github.com/stripe/stripe-ruby/pull/658) Add support for `partner_id` from `Stripe.set_app_info`
358
+
359
+ ## 3.16.0 - 2018-06-28
360
+ * [#657](https://github.com/stripe/stripe-ruby/pull/657) Add support for payment intents
361
+
362
+ ## 3.15.0 - 2018-05-10
363
+ * [#649](https://github.com/stripe/stripe-ruby/pull/649) Freeze all string literals
364
+
365
+ ## 3.14.0 - 2018-05-09
366
+ * [#645](https://github.com/stripe/stripe-ruby/pull/645) Add support for issuer fraud records
367
+
368
+ ## 3.13.1 - 2018-05-07
369
+ * [#647](https://github.com/stripe/stripe-ruby/pull/647) Merge query parameters coming from path with `params` argument
370
+
371
+ ## 3.13.0 - 2018-04-11
372
+ * [#498](https://github.com/stripe/stripe-ruby/pull/498) Add support for flexible billing primitives
373
+
374
+ ## 3.12.1 - 2018-04-05
375
+ * [#636](https://github.com/stripe/stripe-ruby/pull/636) Fix a warning for uninitialized instance variable `@additive_params`
376
+
377
+ ## 3.12.0 - 2018-04-05
378
+ * [#632](https://github.com/stripe/stripe-ruby/pull/632) Introduce `additive_object_param` so that non-`metadata` subobjects don't zero their keys as they're being replaced
379
+
380
+ ## 3.11.0 - 2018-02-26
381
+ * [#628](https://github.com/stripe/stripe-ruby/pull/628) Add support for `code` attribute on all Stripe exceptions
382
+
383
+ ## 3.10.0 - 2018-02-21
384
+ * [#627](https://github.com/stripe/stripe-ruby/pull/627) Add support for topups
385
+
386
+ ## 3.9.2 - 2018-02-12
387
+ * [#625](https://github.com/stripe/stripe-ruby/pull/625) Skip calling `to_hash` for `nil`
388
+
389
+ ## 3.9.1 - 2017-12-15
390
+ * [#616](https://github.com/stripe/stripe-ruby/pull/616) Support all file-like objects for uploads with duck typed checks on `path` and `read` (we previously whitelisted only certain classes)
391
+
392
+ ## 3.9.0 - 2017-12-08
393
+ * [#613](https://github.com/stripe/stripe-ruby/pull/613) Introduce new `IdempotencyError` type for idempotency-specific failures
394
+
395
+ ## 3.8.2 - 2017-12-07
396
+ * [#612](https://github.com/stripe/stripe-ruby/pull/612) Fix integer-indexed array encoding when sent as query parameter (subscription items can now be used when fetching an upcoming invoice)
397
+
398
+ ## 3.8.1 - 2017-12-06
399
+ * [#611](https://github.com/stripe/stripe-ruby/pull/611) Support `Tempfile` (as well as `File`) in file uploads
400
+
401
+ ## 3.8.0 - 2017-10-31
402
+ * [#606](https://github.com/stripe/stripe-ruby/pull/606) Support for exchange rates APIs
403
+
404
+ ## 3.7.0 - 2017-10-26
405
+ * [#603](https://github.com/stripe/stripe-ruby/pull/603) Support for listing source transactions
406
+
407
+ ## 3.6.0 - 2017-10-17
408
+ * [#597](https://github.com/stripe/stripe-ruby/pull/597) Add static methods to manipulate resources from parent
409
+ * `Account` gains methods for external accounts and login links (e.g. `.create_account`, `create_login_link`)
410
+ * `ApplicationFee` gains methods for refunds
411
+ * `Customer` gains methods for sources
412
+ * `Transfer` gains methods for reversals
413
+
414
+ ## 3.5.3 - 2017-10-16
415
+ * [#594](https://github.com/stripe/stripe-ruby/pull/594) Make sure that `StripeObject`'s `#deep_copy` maintains original class
416
+ * [#595](https://github.com/stripe/stripe-ruby/pull/595) Allow `Object#method` to be called on `StripeObject` even if it conflicts with an accessor
417
+ * [#596](https://github.com/stripe/stripe-ruby/pull/596) Encode arrays as integer-indexed hashes where appropriate
418
+ * [#598](https://github.com/stripe/stripe-ruby/pull/598) Don't persist `idempotency_key` opt between requests
419
+
420
+ ## 3.5.2 - 2017-10-13
421
+ * [#592](https://github.com/stripe/stripe-ruby/pull/592) Bring back `Marshal.dump/load` support with custom marshal encoder/decoder
422
+
423
+ ## 3.5.1 - 2017-10-12
424
+ * [#591](https://github.com/stripe/stripe-ruby/pull/591) Use thread-local `StripeClient` instances for thread safety
425
+
426
+ ## 3.5.0 - 2017-10-11
427
+ * [#589](https://github.com/stripe/stripe-ruby/pull/589) Rename source `delete` to `detach` (and deprecate the former)
428
+
429
+ ## 3.4.1 - 2017-10-05
430
+ * [#586](https://github.com/stripe/stripe-ruby/pull/586) Log query strings as well as form bodies with STRIPE_LOG
431
+ * [#588](https://github.com/stripe/stripe-ruby/pull/588) Require minimum Faraday 0.10 for bug fix in parameter encoding
432
+
433
+ ## 3.4.0 - 2017-09-20
434
+ * Mark legacy Bitcoin API as deprecated, and remove corresponding tests
435
+ * Mark recipients API as deprecated, and remove recipient card tests
436
+
437
+ ## 3.3.2 - 2017-09-20
438
+ * Correct minimum required Ruby version in gemspec (it's 2.0.0)
439
+
440
+ ## 3.3.1 - 2017-08-18
441
+ * Only parse webhook payload after verification to decrease likelihood of
442
+ attack
443
+
444
+ ## 3.3.0 - 2017-08-11
445
+ * Add support for standard library logger interface with `Stripe.logger`
446
+ * Error logs now go to stderr if using `Stripe.log_level`/`STRIPE_LOG`
447
+ * `Stripe.log_level`/`STRIPE_LOG` now support `Stipe::LEVEL_ERROR`
448
+
449
+ ## 3.2.0 - 2017-08-03
450
+ * Add logging for request retry account and `Stripe-Account` header
451
+
452
+ ## 3.1.0 - 2017-08-03
453
+ * Implement request logging with `Stripe.log_level` and `STRIPE_LOG`
454
+
455
+ ## 3.0.3 - 2017-07-28
456
+ * Revert `nil` to empty string coercion from 3.0.2
457
+ * Handle `invalid_client` OAuth error code
458
+ * Improve safety of error handling logic safer for unrecognized OAuth error codes
459
+
460
+ ## 3.0.2 - 2017-07-12
461
+ **Important:** This version is non-functional and has been yanked in favor of 3.0.3.
462
+ * Convert `nil` to empty string when serializing parameters (instead of opaquely dropping it) -- NOTE: this change has since been reverted
463
+
464
+ ## 3.0.1 - 2017-07-11
465
+ * Properties set with an API resource will now serialize that resource's ID if possible
466
+ * API resources will throw an ArgumentError on save if a property has been with an API resource that cannot be serialized
467
+
468
+ ## 3.0.0 - 2017-06-27
469
+ * `#pay` on invoice now takes params as well as opts
470
+
471
+ ## 2.12.0 - 2017-06-20
472
+ * Add support for ephemeral keys
473
+
474
+ ## 2.11.0 - 2017-05-26
475
+ * Warn when keys that look like opts are included as parameters
476
+
477
+ ## 2.10.0 - 2017-05-25
478
+ * Add support for account login links
479
+
480
+ ## 2.9.0 - 2017-05-18
481
+ * Support for OAuth operations in `Stripe::OAuth`
482
+
483
+ ## 2.8.0 - 2017-04-28
484
+ * Support for checking webhook signatures
485
+
486
+ ## 2.7.0 - 2017-04-26
487
+ * Add model `InvoiceLineItem`
488
+
489
+ ## 2.6.0 - 2017-04-26
490
+ * Add `OBJECT_NAME` constants to all API resources
491
+
492
+ ## 2.5.0 - 2017-04-24
493
+ * Make `opts` argument in `Util.convert_to_stripe_object` optional
494
+
495
+ ## 2.4.0 - 2017-04-18
496
+ * Add `Stripe.set_app_info` for use by plugin creators
497
+
498
+ ## 2.3.0 - 2017-04-14
499
+ * Add question mark accessor when assigning boolean value to undefined field
500
+
501
+ ## 2.2.1 - 2017-04-07
502
+ * Declare minimum required Faraday as 0.9
503
+
504
+ ## 2.2.0 - 2017-04-06
505
+ * Add support for payouts and recipient transfers
506
+
507
+ ## 2.1.0 - 2017-03-17
508
+ * Support for detaching sources from customers
509
+
510
+ ## 2.0.3 - 2017-03-16
511
+ * Fix marshalling of `StripeObjects` that have an embedded client
512
+
513
+ ## 2.0.2 - 2017-03-16
514
+ * Fix bad field reference when recovering from a JSON parsing problem
515
+
516
+ ## 2.0.1 - 2017-02-22
517
+ * Fix multipart parameter encoding to repair broken file uploads
518
+
519
+ ## 2.0.0 - 2017-02-14
520
+ * Drop support for Ruby 1.9
521
+ * Allow HTTP client that makes Stripe calls to be configured via Faraday
522
+ * Drop RestClient
523
+ * Switch to OpenAPI 2.0 spec and generated fixtures in test suite
524
+ * Switch to Webmock in test suite
525
+
526
+ ## 1.58.0 - 2017-01-19
527
+ * Remove erroneously added list methods for `Source` model
528
+
529
+ ## 1.57.1 - 2016-11-28
530
+ * Disallow sending protected fields along with API resource `.update`
531
+
532
+ ## 1.57.0 - 2016-11-21
533
+ * Add retrieve method for 3-D Secure resources
534
+
535
+ ## 1.56.2 - 2016-11-17
536
+ * Improve `StripeObject`'s `#to_s` to better handle how embedded objects are displayed
537
+
538
+ ## 1.56.1 - 2016-11-09
539
+ * Fix (fairly serious) memory like in `StripeObject`
540
+
541
+ ## 1.56.0 - 2016-10-24
542
+ * Add accessors for new fields added in `#update_attributes`
543
+ * Handle multi-plan subscriptions through new subscription items
544
+ * Handle 403 status codes from the API
545
+
546
+ ## 1.55.1 - 2016-10-24
547
+ Identical to 1.56.0 above. I incorrectly cut a patch-level release.
548
+
549
+ ## 1.55.0 - 2016-09-15
550
+ * Add support for Apple Pay domains
551
+
552
+ ## 1.54.0 - 2016-09-01
553
+ * Whitelist errors that should be retried; scope to known socket and HTTP errors
554
+
555
+ ## 1.53.0 - 2016-08-31
556
+ * Relax version constraint on rest-client (and by extension mime-types) for users on Ruby 2+
557
+
558
+ ## 1.52.0 - 2016-08-30
559
+ * Make sure `Subscription`'s `source` is saved with its parent
560
+
561
+ ## 1.51.1 - 2016-08-30
562
+ * Make sure `Account`'s `external_account` is saved with its parent
563
+
564
+ ## 1.51.0 - 2016-08-26
565
+ * Error when an array of maps is detected that cannot be accurately encoded
566
+ * Start using strings for header names instead of symbols for better clarity
567
+
568
+ ## 1.50.1 - 2016-08-25
569
+ * Fix encoding of arrays of maps where maps unequal sets of keys
570
+
571
+ ## 1.50.0 - 2016-08-15
572
+ * Allow sources to be created
573
+
574
+ ## 1.49.0 - 2016-07-28
575
+ * Add top-level `Source` model
576
+
577
+ ## 1.48.0 - 2016-07-12
578
+ * Add `ThreeDSecure` model for 3-D secure payments
579
+
580
+ ## 1.47.0 - 2016-07-11
581
+ * Allow rest-client version 2.0+ to be used with the gem
582
+
583
+ ## 1.46.0 - 2016-07-07
584
+ * Allow retry when a 409 conflict is encountered
585
+
586
+ ## 1.45.0 - 2016-07-07
587
+ * Do not send subresources when updating except when explicitly told to do so (see #433)
588
+
589
+ ## 1.44.0 - 2016-06-29
590
+ * Add `update` class method to all resources that can be updated
591
+
592
+ ## 1.43.1 - 2016-06-17
593
+ * Fix type of resource returned from `Order#return_order`
594
+
595
+ ## 1.43.0 - 2016-05-20
596
+ * Allow Relay orders to be returned and add associated types
597
+ * Support Alipay account retrieval and deletion
598
+
599
+ ## 1.42.0 - 2016-05-04
600
+ * Add support for the new /v1/subscriptions endpoint (retrieve, list, create, update, and delete)
601
+
602
+ ## 1.41.0 - 2016-04-13
603
+ * Add global `stripe_account` option that adds a `Stripe-Account` header to all requests
604
+
605
+ ## 1.40.0 - 2016-04-06
606
+ * Fix bug that omitted subresources from serialization
607
+
608
+ ## 1.39.0 - 2016-03-31
609
+ * Update CA cert bundle for compatibility with OpenSSL versions below 1.0.1
610
+
611
+ ## 1.38.0 - 2016-03-18
612
+ * Allow `opts` to be passed to an API resource's `#save` method
613
+
614
+ ## 1.37.0 - 2016-03-14
615
+ * Add `Account#reject` to support the new API feature
616
+
617
+ ## 1.36.2 - 2016-03-14
618
+ * Fix reference to non-existent `#url` in `ListObject`
619
+
620
+ ## 1.36.1 - 2016-03-04
621
+ * Fix serialization when subhash given to `#save` or `#update_attributes`
622
+
623
+ ## 1.36.0 - 2016-02-08
624
+ * Add `CountrySpec` model for looking up country payment information
625
+
626
+ ## 1.35.1 - 2016-02-03
627
+ * Add compatibility layer for old API versions on `Charge#refund`
628
+
629
+ ## 1.35.0 - 2016-02-01
630
+ * Allow CA cert bundle location to be configured
631
+ * Updated bundled CA certs
632
+
633
+ ## 1.34.0 - 2016-01-25
634
+ * Add support for deleting products and SKUs
635
+
636
+ ## 1.33.1 - 2016-01-21
637
+ * Pass through arguments of `Charge#refund`
638
+
639
+ ## 1.33.0 - 2016-01-19
640
+ * Re-implement `Charge#refund` helper to use the modern endpoint suggested by docs
641
+
642
+ ## 1.32.1 - 2016-01-07
643
+ * Fix bug where ivar left uninitialized in StripeObject could error on serialization
644
+ * Fix bug where a nil customer from API could error Bitcoin model on refresh
645
+
646
+ ## 1.32.0 - 2016-01-05
647
+ * Add configuration to optionally retry network failures
648
+ * Use modern API endpoint for producing application fee refunds
649
+
650
+ ## 1.31.0 - 2015-10-29
651
+ * Add BankAccount#verify convenience method
652
+
653
+ ## 1.30.3 - 2015-10-28
654
+ * Fix bug where arrays that were not `additional_owners` were not properly encoded for requests
655
+
656
+ ## 1.30.2 - 2015-10-12
657
+ * Fix bug where `opts` didn't properly propagate to descendant `StripeObjects`
658
+
659
+ ## 1.30.1 - 2015-10-10
660
+ * Fix bug that prevent lists of hashes from being URI-encoded properly
661
+ * Fix bug where filter conditions were not making it past the first instantiated `ListObject`
662
+
663
+ ## 1.30.0 - 2015-10-09
664
+ * Add `StripeObject#deleted?` for a reliable way to check whether an object is alive
665
+ * Deprecate `StripeObject#refresh_from`
666
+ * New parameter encoding scheme that doesn't use `URI.escape`
667
+
668
+ ## 1.29.1 - 2015-10-06
669
+ * Fix bug where ampersands were not being properly encoded
670
+
671
+ ## 1.29.0 - 2015-10-05
672
+ * Add pagination helpers `#auto_paging_each`, `#previous_page`, and `#next_page`
673
+
674
+ ## 1.28.1 - 2015-10-05
675
+ * Fix URI being referenced by file upload resources
676
+
677
+ ## 1.28.0 - 2015-10-05
678
+ * Make StripeObject's #save "upsert"-like; creates an object if new
679
+ * Add #update_attributes to StripeObject for safe mass assignment
680
+ * Properly mass assign attributes on calls to #save
681
+ * Add question mark helpers for boolean fields (e.g. #paid? as well as old #paid)
682
+ * Fix a bug that broke the API for StripeObject initialization
683
+ * Remove use of deprecated URI.escape
684
+
685
+ ## 1.27.2 - 2015-09-25
686
+ * Correct the URLs used to fetch Bitcoin transactions.
687
+
688
+ ## 1.27.1 - 2015-09-20
689
+ * Use hash rockets for backwards compatibility.
690
+
691
+ ## 1.27.0 - 2015-09-14
692
+ * Add Orders, Products, and SKUs for Relay
693
+
694
+ ## 1.26.0 - 2015-09-11
695
+ * Add support for 429 Rate Limited response
696
+
697
+ ## 1.25.0 - 2015-08-17
698
+ * Added support for refund listing and retrieval without an associated charge
699
+
700
+ ## 1.24.0 - 2015-08-03
701
+ * Added support for deleting managed accounts
702
+ * Added support for dispute listing and retrieval
703
+ * Bugfix: token objects now are the correct class
704
+
705
+ ## 1.23.0 - 2015-07-06
706
+ * Added request IDs and HTTP headers to errors
707
+
708
+ ## 1.22.0 - 2015-06-10
709
+ * Added support for bank accounts and debit cards in managed accounts (via the `external_accounts` param)
710
+
711
+ ## 1.21.0 - 2015-04-14
712
+ * Remove TLS cert revocation check (all pre-heartbleed certs have expired)
713
+ * Bugfix: don't unset keys when they don't exist on StripeObject
714
+
715
+ ## 1.20.4 - 2015-03-26
716
+ * Raise an error when explicitly passing nil as the API key on resource methods
717
+ * Fix error when passing an API key to Balance.retrieve (github issue #232)
718
+
719
+ ## 1.20.3 - 2015-03-13
720
+ * Fixed error when updating certain resources (github issue #224)
721
+
722
+ ## 1.20.2 - 2015-03-10
723
+ * Added support for updating nested hashes besides `metadata` (which was already supported)
724
+ * Fixed bug in balance retrieval
725
+
726
+ ## 1.20.1 - 2015-02-26
727
+ * Updated Card to point to customer sources endpoint when customer property is set
728
+
729
+ ## 1.20.0 - 2015-02-19
730
+ * Added Update & Delete operations to Bitcoin Receivers
731
+
732
+ ## 1.19.1 - 2015-02-18
733
+ * Fixed fetching upcoming invoice/paying invoice methods
734
+
735
+ ## 1.19.0 - 2015-02-15
736
+ * Support for new Transfers /reversals endpoint
737
+ * Account retrieval now optionally accepts an account ID
738
+ * Better support for passing custom headers, like Stripe-Account, through requests
739
+
740
+ ## 1.18.0 - 2015-01-21
741
+ * 1 major enhancement:
742
+ * Added support for making bitcoin charges through BitcoinReceiver source object
743
+
744
+ ## 1.17.3 - 2015-01-12
745
+ * 1 bugfix:
746
+ * Fixed API key propagation for ApplicationFee#refund
747
+
748
+ ## 1.17.2 - 2015-01-08
749
+ * 1 bugfix:
750
+ * Fixed API key propagation for child resources
751
+
752
+ ## 1.17.1 - 2015-01-07
753
+ * 2 minor enhacements:
754
+ * Fixed dependencies for Ruby versions less than 1.9.3
755
+ * Added deauthorize method to Account object
756
+
757
+ ## 1.17.0 - 2014-12-15
758
+ * 1 major enhacement:
759
+ * File uploads resource was added (for uploading pdf or image documents for disputes)
760
+
761
+ ## 1.16.1 - 2014-12-19
762
+ * 2 minor enhancements:
763
+ * Ability to send idempotent requests
764
+ * Ability to specify stripe account as a header
765
+
766
+ ## 1.16.0 - 2014-10-08
767
+ * 1 minor enhacement:
768
+ * Coupons now support update operations - useful for manipulating metadata
769
+
770
+ ## 1.15.0 - 2014-07-26
771
+ * 1 major enhacement:
772
+ * Application Fee refunds now a list instead of array
773
+
774
+ ## 1.14.0 - 2014-06-17
775
+ * 1 major enhancement:
776
+ * Add metadata for refunds and disputes
777
+
778
+ ## 1.13.0 - 2014-05-28
779
+ * 1 major enhancement:
780
+ * Support for canceling transfers
781
+
782
+ ## 1.12.0 - 2014-05-21
783
+ * 1 major enhancement:
784
+ * Support for cards for recipients
785
+
786
+ ## 1.11.0 - 2014-04-09
787
+ * 2 minor enhancements:
788
+ * Update included ca bundles
789
+ * Implement certificate blacklisting
790
+
791
+ ## 1.10.2 - 2014-02-18
792
+ * 1 minor enhancement:
793
+ * Add create_subscription on Customer resources, so you can create
794
+ subscriptions without needing to retrieve the customer first (github
795
+ issue #120)
796
+
797
+ ## 1.10.1 - 2014-02-03
798
+ * 1 bugfix:
799
+ * Fix marshaling of StripeObjects
800
+
801
+ ## 1.10.0 - 2014-01-29
802
+ * 2 major enhancements
803
+ * Support for multiple subscriptions per customer
804
+ * Testing ruby 2.1.0
805
+
806
+ * 2 minor enhancements
807
+ * Replace multi_json with json
808
+ * Allow #save to take opts (for :expand)
809
+
810
+ * 1 bugfix
811
+ * Fix #try and #respond_to? on StripeObjects
812
+
813
+ ## 1.9.9 - 2013-12-02
814
+ * 1 major enhancement
815
+ * Add ApplicationFee resource
816
+
817
+ ## 1.8.9 - 2013-11-14
818
+ * 2 bugfixes:
819
+ * Fix gemspec dependencies so the gem doesn't break for Ruby 1.8 users
820
+ * Fix api_resource_test to not use returns as a way of testing rescue behavior
821
+
822
+ ## 1.8.8 - 2013-10-3
823
+ * 1 major enhancement
824
+ * Add support for metadata on resources
825
+
826
+ ## 1.8.7 - 2013-08-18
827
+ * 1 minor enhancement
828
+ * Add support for closing disputes.
829
+
830
+ ## 1.8.6 - 2013-08-13
831
+ * 1 major enhancement
832
+ * Add Balance and BalanceTransaction resources
833
+
834
+ ## 1.8.5 - 2013-08-12
835
+ * 1 major enhancement
836
+ * Add support for unsetting attributes by setting to nil. This permits unsetting email and description on customers and description on charges. Setting properties to a blank string is now an error.
837
+ * Attempting to set an object's id is now an error
838
+
839
+ ## 1.8.4 - 2013-07-11
840
+ * 1 major enhancement
841
+ * Add support for new cards API (Stripe API version - 2013-07-05)
842
+
843
+ ## 1.8.3 - 2013-05-06
844
+ * 1 bugfix:
845
+ * Fix handling of per-call API keys (github issue #67)
846
+
847
+ ## 1.8.2 - 2013-05-01
848
+ * 3 minor enhancements:
849
+ * Use to_sym instead of type checking for minor performance improvement (github issue #59)
850
+ * Handle low-memory situations without throwing an exception (github issue #61)
851
+ * Add an Customer#upcoming_invoice convenience method (github issue #65)
852
+
853
+ * 1 bugfix:
854
+ * Allow updating resources without first retrieving them (github issue #60)
855
+
856
+ ## 1.8.1 - 2013-04-19
857
+ * 1 minor enhancement:
858
+ * Add support for specifying an API key when retrieving an upcoming invoice
859
+
860
+ ## 1.8.0 - 2013-04-11
861
+ * 1 major enhancement:
862
+ * Add new Recipient resource
863
+ * Allow Transfers to be createable
864
+
865
+ ## 1.7.11 - 2013-02-21
866
+ * 1 minor enhancement
867
+ * Add 'id' to the list of permanent attributes
868
+
869
+ ## 1.7.10 - 2013-02-01
870
+ * 1 major enhancement
871
+ * Add support for passing options when retrieving Stripe objects e.g., Stripe::Charge.retrieve({id:"foo", expand:["customer"]}) Stripe::Charge("foo") is still supported as well
872
+
873
+ ## 1.7.9 - 2013-01-15
874
+ * 1 major enhancement
875
+ * Add support for setting a Stripe API version override.
876
+
877
+ ## 1.7.8 - 2012-11-21
878
+ * 1 bugfix
879
+ * Relax the version constraint on multi_json (github issue #44)
880
+
881
+ ## 1.7.7 - 2012-11-07
882
+ * 1 minor enhancement:
883
+ * Add support for updating charge disputes
884
+
885
+ * 1 bugfix
886
+ * Fix Account API resource bug
887
+
888
+ ## 1.7.6 - 2012-10-30
889
+ * 1 major enhancement
890
+ * Add support for creating invoices
891
+
892
+ ## 1.7.5 - 2012-10-25
893
+ * 1 major enhancement
894
+ * Add support for new API lists
895
+
896
+ ## 1.7.4 - 2012-10-08
897
+ * 1 bugfix
898
+ * Fix bug introduced in 1.7.3 calling API methods that take no
899
+ arguments, like Stripe::Invoice#pay (github issue #42)
900
+
901
+ ## 1.7.3 - 2012-09-14
902
+ * 2 bugfixes
903
+ * Make sure that both keys and values of GET params are URL-encoded. NOTE: If you were previously URL-encoding values yourself, you may need to adjust your code.
904
+ * URL-encode POST params directly, instead of allowing rest-client to do it to work around an unfortunate interaction with the hashery gem (github issue #38)
905
+
906
+ ## 1.7.2 - 2012-08-31
907
+ * 1 major enhancement
908
+ * Add support for new pay and update methods for Invoice objects
909
+
910
+ ## 1.7.1 - 2012-08-15
911
+ * 1 major enhancement
912
+ * Add new Account API resource
913
+
914
+ ## 1.7.0 - 2012-05-17
915
+ * 3 major enhancements:
916
+ * Switch from vendored stripe-json to multi_json for all JSON parsing and rendering. This should not impact programmatic usage of the library, but may cause small rendering differences from, e.g., StripeObject#inspect (github issue #22)
917
+ * Add new delete_discount method to Customer objects
918
+ * Add new Transfer API resource
919
+
920
+ * 2 minor enhancements:
921
+ * Switch from HTTP Basic auth to Bearer auth (Note: Stripe will support Basic auth for the indefinite future, but recommends Bearer auth when possible going forward)
922
+ * Numerous test suite improvements
923
+
924
+ ## 1.6.3 - 2012-03-22
925
+ * 1 bugfix:
926
+ * Encode GET query strings ourselves instead of using rest-client to work around a bug
927
+
928
+ ## 1.6.2 - 2012-02-24
929
+ * 1 bugfix:
930
+ * Correct argument handling in StripeObject#as_json
931
+
932
+ ## 1.6.1 - 2012-02-22
933
+ * 1 bugfix:
934
+ * Fix StripeObject#inspect when ActiveSupport 3.0 is loaded
935
+
936
+ ## 1.6.0 - 2012-02-01
937
+ * A whole bunch of releases between 1.5.0 and 1.6.0, but few changes, mainly the addition of plans, coupons, events, and tokens
938
+ * 1.6.0 also contains a new inspect/to_string implementation
939
+
940
+ ## 1.5.0 - 2011-05-09
941
+ * 1 major enhancement:
942
+ * Update for new RESTful API
943
+
944
+ ## 1.3.4 - 2011-01-07
945
+ * 1 major enhancement:
946
+ * Rename to Stripe
947
+
948
+ ## 1.2 - 2010-06-06
949
+ * 1 major enhancement:
950
+ * Support for the set_customer_subscription and delete_customer API methods
951
+
952
+ ## 1.1 - 2010-03-14
953
+ * 1 major enhancement:
954
+ * Support for recurring billing
955
+
956
+ ## 1.0 - 2010-01-05
957
+ * 1 major enhancement:
958
+ * Initial release
959
+
960
+ <!--
961
+ # vim: set tw=0:
962
+ -->