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/History.txt CHANGED
@@ -1,689 +1 @@
1
- === 3.3.1 2017-08-18
2
-
3
- * Only parse webhook payload after verification to decrease likelihood of
4
- attack
5
-
6
- === 3.3.0 2017-08-11
7
-
8
- * Add support for standard library logger interface with `Stripe.logger`
9
- * Error logs now go to stderr if using `Stripe.log_level`/`STRIPE_LOG`
10
- * `Stripe.log_level`/`STRIPE_LOG` now support `Stipe::LEVEL_ERROR`
11
-
12
- === 3.2.0 2017-08-03
13
-
14
- * Add logging for request retry account and `Stripe-Account` header
15
-
16
- === 3.1.0 2017-08-03
17
-
18
- * Implement request logging with `Stripe.log_level` and `STRIPE_LOG`
19
-
20
- === 3.0.3 2017-07-28
21
-
22
- * Revert `nil` to empty string coercion from 3.0.2
23
- * Handle `invalid_client` OAuth error code
24
- * Improve safety of error handling logic safer for unrecognized OAuth error
25
- codes
26
-
27
- === 3.0.2 2017-07-12 (yanked)
28
-
29
- * Convert `nil` to empty string when serializing parameters (instead of
30
- opaquely dropping it) -- NOTE: this change has since been reverted
31
-
32
- === 3.0.1 2017-07-11
33
-
34
- * Properties set with an API resource will now serialize that resource's ID if
35
- possible
36
- * API resources will throw an ArgumentError on save if a property has been with
37
- an API resource that cannot be serialized
38
-
39
- === 3.0.0 2017-06-27
40
-
41
- * `#pay` on invoice now takes params as well as opts
42
-
43
- === 2.12.0 2017-06-20
44
-
45
- * Add support for ephemeral keys
46
-
47
- === 2.11.0 2017-05-26
48
-
49
- * Warn when keys that look like opts are included as parameters
50
-
51
- === 2.10.0 2017-05-25
52
-
53
- * Add support for account login links
54
-
55
- === 2.9.0 2017-05-18
56
-
57
- * Support for OAuth operations in `Stripe::OAuth`
58
-
59
- === 2.8.0 2017-04-28
60
-
61
- * Support for checking webhook signatures
62
-
63
- === 2.7.0 2017-04-26
64
-
65
- * Add model `InvoiceLineItem`
66
-
67
- === 2.6.0 2017-04-26
68
-
69
- * Add `OBJECT_NAME` constants to all API resources
70
-
71
- === 2.5.0 2017-04-24
72
-
73
- * Make `opts` argument in `Util.convert_to_stripe_object` optional
74
-
75
- === 2.4.0 2017-04-18
76
-
77
- * Add `Stripe.set_app_info` for use by plugin creators
78
-
79
- === 2.3.0 2017-04-14
80
-
81
- * Add question mark accessor when assigning boolean value to undefined field
82
-
83
- === 2.2.1 2017-04-07
84
-
85
- * Declare minimum required Faraday as 0.9
86
-
87
- === 2.2.0 2017-04-06
88
-
89
- * Add support for payouts and recipient transfers
90
-
91
- === 2.1.0 2017-03-17
92
-
93
- * Support for detaching sources from customers
94
-
95
- === 2.0.3 2017-03-16
96
-
97
- * Fix marshalling of `StripeObjects` that have an embedded client
98
-
99
- === 2.0.2 2017-03-16
100
-
101
- * Fix bad field reference when recovering from a JSON parsing problem
102
-
103
- === 2.0.1 2017-02-22
104
-
105
- * Fix multipart parameter encoding to repair broken file uploads
106
-
107
- === 2.0.0 2017-02-14
108
-
109
- * Drop support for Ruby 1.9
110
- * Allow HTTP client that makes Stripe calls to be configured via Faraday
111
- * Drop RestClient
112
- * Switch to OpenAPI 2.0 spec and generated fixtures in test suite
113
- * Switch to Webmock in test suite
114
-
115
- === 1.58.0 2017-01-19
116
-
117
- * Remove erroneously added list methods for `Source` model
118
-
119
- === 1.57.1 2016-11-28
120
-
121
- * Disallow sending protected fields along with API resource `.update`
122
-
123
- === 1.57.0 2016-11-21
124
-
125
- * Add retrieve method for 3-D Secure resources
126
-
127
- === 1.56.2 2016-11-17
128
-
129
- * Improve `StripeObject`'s `#to_s` to better handle how embedded objects are displayed
130
-
131
- === 1.56.1 2016-11-09
132
-
133
- * Fix (fairly serious) memory like in `StripeObject`
134
-
135
- === 1.56.0 2016-10-24
136
-
137
- * Add accessors for new fields added in `#update_attributes`
138
- * Handle multi-plan subscriptions through new subscription items
139
- * Handle 403 status codes from the API
140
-
141
- === 1.55.1 2016-10-24
142
-
143
- Identical to 1.56.0 above. I incorrectly cut a patch-level release.
144
-
145
- === 1.55.0 2016-09-15
146
-
147
- * Add support for Apple Pay domains
148
-
149
- === 1.54.0 2016-09-01
150
-
151
- * Whitelist errors that should be retried; scope to known socket and HTTP errors
152
-
153
- === 1.53.0 2016-08-31
154
-
155
- * Relax version constraint on rest-client (and by extension mime-types) for users on Ruby 2+
156
-
157
- === 1.52.0 2016-08-30
158
-
159
- * Make sure `Subscription`'s `source` is saved with its parent
160
-
161
- === 1.51.1 2016-08-30
162
-
163
- * Make sure `Account`'s `external_account` is saved with its parent
164
-
165
- === 1.51.0 2016-08-26
166
-
167
- * Error when an array of maps is detected that cannot be accurately encoded
168
- * Start using strings for header names instead of symbols for better clarity
169
-
170
- === 1.50.1 2016-08-25
171
-
172
- * Fix encoding of arrays of maps where maps unequal sets of keys
173
-
174
- === 1.50.0 2016-08-15
175
-
176
- * Allow sources to be created
177
-
178
- === 1.49.0 2016-07-28
179
-
180
- * Add top-level `Source` model
181
-
182
- === 1.48.0 2016-07-12
183
-
184
- * Add `ThreeDSecure` model for 3-D secure payments
185
-
186
- === 1.47.0 2016-07-11
187
-
188
- * Allow rest-client version 2.0+ to be used with the gem
189
-
190
- === 1.46.0 2016-07-07
191
-
192
- * Allow retry when a 409 conflict is encountered
193
-
194
- === 1.45.0 2016-07-07
195
-
196
- * Do not send subresources when updating except when explicitly told to do so (see #433)
197
-
198
- === 1.44.0 2016-06-29
199
-
200
- * Add `update` class method to all resources that can be updated
201
-
202
- === 1.43.1 2016-06-17
203
-
204
- * Fix type of resource returned from `Order#return_order`
205
-
206
- === 1.43.0 2016-05-20
207
-
208
- * Allow Relay orders to be returned and add associated types
209
- * Support Alipay account retrieval and deletion
210
-
211
- === 1.42.0 2016-05-04
212
-
213
- * Add support for the new /v1/subscriptions endpoint
214
- * Stripe::Subscription.retrieve
215
- * Stripe::Subscription.list
216
- * Stripe::Subscription.create
217
- * Stripe::Subscription.update
218
- * Stripe::Subscription.delete
219
-
220
- === 1.41.0 2016-04-13
221
-
222
- * Add global `stripe_account` option that adds a `Stripe-Account` header to all requests
223
-
224
- === 1.40.0 2016-04-06
225
-
226
- * Fix bug that omitted subresources from serialization
227
-
228
- === 1.39.0 2016-03-31
229
-
230
- * Update CA cert bundle for compatibility with OpenSSL versions below 1.0.1
231
-
232
- === 1.38.0 2016-03-18
233
-
234
- * Allow `opts` to be passed to an API resource's `#save` method
235
-
236
- === 1.37.0 2016-03-14
237
-
238
- * Add `Account#reject` to support the new API feature
239
-
240
- === 1.36.2 2016-03-14
241
-
242
- * Fix reference to non-existent `#url` in `ListObject`
243
-
244
- === 1.36.1 2016-03-04
245
-
246
- * Fix serialization when subhash given to `#save` or `#update_attributes`
247
-
248
- === 1.36.0 2016-02-08
249
-
250
- * Add `CountrySpec` model for looking up country payment information
251
-
252
- === 1.35.1 2016-02-03
253
-
254
- * Add compatibility layer for old API versions on `Charge#refund`
255
-
256
- === 1.35.0 2016-02-01
257
-
258
- * Allow CA cert bundle location to be configured
259
- * Updated bundled CA certs
260
-
261
- === 1.34.0 2016-01-25
262
-
263
- * Add support for deleting products and SKUs
264
-
265
- === 1.33.1 2016-01-21
266
-
267
- * Pass through arguments of `Charge#refund`
268
-
269
- === 1.33.0 2016-01-19
270
-
271
- * Re-implement `Charge#refund` helper to use the modern endpoint suggested by docs
272
-
273
- === 1.32.1 2016-01-07
274
-
275
- * Fix bug where ivar left uninitialized in StripeObject could error on serialization
276
- * Fix bug where a nil customer from API could error Bitcoin model on refresh
277
-
278
- === 1.32.0 2016-01-05
279
-
280
- * Add configuration to optionally retry network failures
281
- * Use modern API endpoint for producing application fee refunds
282
-
283
- === 1.31.0 2015-10-29
284
-
285
- * Add BankAccount#verify convenience method
286
-
287
- === 1.30.3 2015-10-28
288
-
289
- * Fix bug where arrays that were not `additional_owners` were not properly encoded for requests
290
-
291
- === 1.30.2 2015-10-12
292
-
293
- * Fix bug where `opts` didn't properly propagate to descendant `StripeObjects`
294
-
295
- === 1.30.1 2015-10-10
296
-
297
- * Fix bug that prevent lists of hashes from being URI-encoded properly
298
- * Fix bug where filter conditions were not making it past the first instantiated `ListObject`
299
-
300
- === 1.30.0 2015-10-09
301
-
302
- * Add `StripeObject#deleted?` for a reliable way to check whether an object is alive
303
- * Deprecate `StripeObject#refresh_from`
304
- * New parameter encoding scheme that doesn't use `URI.escape`
305
-
306
- === 1.29.1 2015-10-06
307
-
308
- * Fix bug where ampersands were not being properly encoded
309
-
310
- === 1.29.0 2015-10-05
311
-
312
- * Add pagination helpers `#auto_paging_each`, `#previous_page`, and `#next_page`
313
-
314
- === 1.28.1 2015-10-05
315
-
316
- * Fix URI being referenced by file upload resources
317
-
318
- === 1.28.0 2015-10-05
319
-
320
- * Make StripeObject's #save "upsert"-like; creates an object if new
321
- * Add #update_attributes to StripeObject for safe mass assignment
322
- * Properly mass assign attributes on calls to #save
323
- * Add question mark helpers for boolean fields (e.g. #paid? as well as old #paid)
324
- * Fix a bug that broke the API for StripeObject initialization
325
- * Remove use of deprecated URI.escape
326
-
327
- === 1.27.2 2015-09-25
328
-
329
- * Correct the URLs used to fetch Bitcoin transactions.
330
-
331
- === 1.27.1 2015-09-20
332
-
333
- * Use hash rockets for backwards compatibility.
334
-
335
- === 1.27.0 2015-09-14
336
-
337
- * Add Orders, Products, and SKUs for Relay.
338
-
339
- === 1.26.0 2015-09-11
340
-
341
- * Add support for 429 Rate Limited response
342
-
343
- === 1.25.0 2015-08-17
344
-
345
- * Added support for refund listing and retrieval without an associated charge
346
-
347
- === 1.24.0 2015-08-03
348
-
349
- * Added support for deleting managed accounts
350
- * Added support for dispute listing and retrieval
351
- * Bugfix: token objects now are the correct class
352
-
353
- === 1.23.0 2015-07-06
354
-
355
- * Added request IDs and HTTP headers to errors.
356
-
357
- === 1.22.0 2015-06-10
358
-
359
- * Added support for bank accounts and debit cards in managed accounts (via the `external_accounts` param)
360
-
361
- === 1.21.0 2015-04-14
362
-
363
- * Remove TLS cert revocation check. (All pre-heartbleed certs have expired.)
364
- * Bugfix: don't unset keys when they don't exist on StripeObject.
365
-
366
- === 1.20.4 2015-03-26
367
-
368
- * Raise an error when explicitly passing nil as the API key on resource methods
369
- * Fix error when passing an API key to Balance.retrieve (github issue #232)
370
-
371
- === 1.20.3 2015-03-13
372
-
373
- * Fixed error when updating certain resources (github issue #224)
374
-
375
- === 1.20.2 2015-03-10
376
-
377
- * Added support for updating nested hashes besides `metadata` (which was already supported)
378
- * Fixed bug in balance retrieval
379
-
380
- === 1.20.1 2015-02-26
381
-
382
- * Updated Card to point to customer sources endpoint when customer property is set
383
-
384
- === 1.20.0 2015-02-19
385
-
386
- * Added Update & Delete operations to Bitcoin Receivers
387
-
388
- === 1.19.1 2015-02-18
389
-
390
- * Fixed fetching upcoming invoice/paying invoice methods
391
-
392
- === 1.19.0 2015-02-15
393
-
394
- * Support for new Transfers /reversals endpoint
395
- * Account retrieval now optionally accepts an account ID
396
- * Better support for passing custom headers, like Stripe-Account, through requests
397
-
398
- === 1.18.0 2015-01-21
399
-
400
- * 1 major enhancement:
401
- * Added support for making bitcoin charges through BitcoinReceiver source object
402
-
403
- === 1.17.3 2015-01-12
404
-
405
- * 1 bugfix:
406
- * Fixed API key propagation for ApplicationFee#refund
407
-
408
- === 1.17.2 2015-01-08
409
-
410
- * 1 bugfix:
411
- * Fixed API key propagation for child resources
412
-
413
- === 1.17.1 2015-01-07
414
-
415
- * 2 minor enhacements:
416
- * Fixed dependencies for Ruby versions less than 1.9.3
417
- * Added deauthorize method to Account object
418
-
419
- === 1.17.0 2014-12-15
420
-
421
- * 1 major enhacement:
422
- * File uploads resource was added (for uploading pdf or image documents for
423
- disputes)
424
-
425
- === 1.16.1 2014-12-19
426
-
427
- * 2 minor enhancements:
428
- * Ability to send idempotent requests
429
- * Ability to specify stripe account as a header.
430
-
431
- === 1.16.0 2014-10-08
432
-
433
- * 1 minor enhacement:
434
- * Coupons now support update operations - useful for manipulating metadata.
435
-
436
- === 1.15.0 2014-07-26
437
-
438
- * 1 major enhacement:
439
- * Application Fee refunds now a list instead of array
440
-
441
- === 1.14.0 2014-06-17
442
-
443
- * 1 major enhancement:
444
- * Add metadata for refunds and disputes
445
-
446
- === 1.13.0 2014-05-28
447
-
448
- * 1 major enhancement:
449
- * Support for canceling transfers
450
-
451
- === 1.12.0 2014-05-21
452
-
453
- * 1 major enhancement:
454
- * Support for cards for recipients.
455
-
456
- === 1.11.0 2014-04-09
457
-
458
- * 2 minor enhancements:
459
- * Update included ca bundles
460
- * Implement certificate blacklisting
461
-
462
- === 1.10.2 2014-02-18
463
-
464
- * 1 minor enhancement:
465
- * Add create_subscription on Customer resources, so you can create
466
- subscriptions without needing to retrieve the customer first (github
467
- issue #120)
468
-
469
- === 1.10.1 2014-02-03
470
-
471
- * 1 bugfix:
472
- * Fix marshaling of StripeObjects
473
-
474
- === 1.10.0 2014-01-29
475
-
476
- * 2 major enhancements
477
- * Support for multiple subscriptions per customer
478
- * Testing ruby 2.1.0
479
-
480
- * 2 minor enhancements
481
- * Replace multi_json with json
482
- * Allow #save to take opts (for :expand)
483
-
484
- * 1 bugfix
485
- * Fix #try and #respond_to? on StripeObjects
486
-
487
- === 1.9.9 2013-12-02
488
-
489
- * 1 major enhancement
490
- * Add ApplicationFee resource
491
-
492
- === 1.8.9 2013-11-14
493
-
494
- * 2 bugfixes:
495
- * Fix gemspec dependencies so the gem doesn't break for Ruby 1.8 users
496
- * Fix api_resource_test to not use returns as a way of testing rescue behavior
497
-
498
- === 1.8.8 2013-10-3
499
-
500
- * 1 major enhancement
501
- * Add support for metadata on resources
502
-
503
- === 1.8.7 2013-08-18
504
-
505
- * 1 minor enhancement
506
- * Add support for closing disputes.
507
-
508
- === 1.8.6 2013-08-13
509
-
510
- * 1 major enhancement
511
- * Add Balance and BalanceTransaction resources
512
-
513
- === 1.8.5 2013-08-12
514
-
515
- * 1 major enhancement
516
- * Add support for unsetting attributes by setting to nil. This permits
517
- unsetting email and description on customers and description on charges.
518
- Setting properties to a blank string is now an error.
519
- * Attempting to set an object's id is now an error.
520
-
521
- === 1.8.4 2013-07-11
522
-
523
- * 1 major enhancement
524
- * Add support for new cards API (Stripe API version 2013-07-05)
525
-
526
- === 1.8.3 2013-05-06
527
-
528
- * 1 bugfix:
529
- * Fix handling of per-call API keys (github issue #67)
530
-
531
- === 1.8.2 2013-05-01
532
-
533
- * 3 minor enhancements:
534
- * Use to_sym instead of type checking for minor performance
535
- improvement (github issue #59)
536
- * Handle low-memory situations without throwing an exception (github
537
- issue #61)
538
- * Add an Customer#upcoming_invoice convenience method (github issue
539
- #65)
540
-
541
- * 1 bugfix:
542
- * Allow updating resources without first retrieving them (github
543
- issue #60)
544
-
545
- === 1.8.1 2013-04-19
546
-
547
- * 1 minor enhancement:
548
- * Add support for specifying an API key when retrieving an upcoming invoice
549
-
550
- === 1.8.0 2013-04-11
551
-
552
- * 1 major enhancement:
553
- * Add new Recipient resource
554
- * Allow Transfers to be createable
555
-
556
- === 1.7.11 2013-02-21
557
-
558
- * 1 minor enhancement
559
- * Add 'id' to the list of permanent attributes
560
-
561
- === 1.7.10 2013-02-01
562
-
563
- * 1 major enhancement
564
- * Add support for passing options when retrieving Stripe objects
565
- e.g., Stripe::Charge.retrieve({id:"foo", expand:["customer"]})
566
- Stripe::Charge("foo") is still supported as well
567
-
568
- === 1.7.9 2013-01-15
569
-
570
- * 1 major enhancement
571
- * Add support for setting a Stripe API version override.
572
-
573
- === 1.7.8 2012-11-21
574
-
575
- * 1 bugfix
576
- * Relax the version constraint on multi_json (github issue #44)
577
-
578
- === 1.7.7 2012-11-07
579
-
580
- * 1 minor enhancement:
581
- * Add support for updating charge disputes
582
-
583
- * 1 bugfix
584
- * Fix Account API resource bug
585
-
586
- === 1.7.6 2012-10-30
587
-
588
- * 1 major enhancement
589
- * Add support for creating invoices
590
-
591
- === 1.7.5 2012-10-25
592
-
593
- * 1 major enhancement
594
- * Add support for new API lists
595
-
596
- === 1.7.4 2012-10-08
597
-
598
- * 1 bugfix
599
- * Fix bug introduced in 1.7.3 calling API methods that take no
600
- arguments, like Stripe::Invoice#pay (github issue #42)
601
-
602
- === 1.7.3 2012-09-14
603
-
604
- * 2 bugfixes
605
- * Make sure that both keys and values of GET params are
606
- URL-encoded. NOTE: If you were previously URL-encoding values
607
- yourself, you may need to adjust your code.
608
- * URL-encode POST params directly, instead of allowing rest-client to
609
- do it to work around an unfortunate interaction with the hashery gem
610
- (github issue #38)
611
-
612
- === 1.7.2 2012-08-31
613
-
614
- * 1 major enhancement
615
- * Add support for new pay and update methods for Invoice objects
616
-
617
- === 1.7.1 2012-08-15
618
-
619
- * 1 major enhancement
620
- * Add new Account API resource
621
-
622
- === 1.7.0 2012-05-17
623
-
624
- * 3 major enhancements:
625
- * Switch from vendored stripe-json to multi_json for all JSON
626
- parsing and rendering. This should not impact programmatic usage
627
- of the library, but may cause small rendering differences from,
628
- e.g., StripeObject#inspect (github issue #22)
629
- * Add new delete_discount method to Customer objects
630
- * Add new Transfer API resource
631
-
632
- * 2 minor enhancements:
633
- * Switch from HTTP Basic auth to Bearer auth (Note: Stripe will
634
- support Basic auth for the indefinite future, but recommends
635
- Bearer auth when possible going forward)
636
- * Numerous test suite improvements
637
-
638
- === 1.6.3 2012-03-22
639
-
640
- * 1 bugfix:
641
- * Encode GET query strings ourselves instead of using rest-client to
642
- work around a bug
643
-
644
- === 1.6.2 2012-02-24
645
-
646
- * 1 bugfix:
647
- * Correct argument handling in StripeObject#as_json
648
-
649
- === 1.6.1 2012-02-22
650
-
651
- * 1 bugfix:
652
- * Fix StripeObject#inspect when ActiveSupport 3.0 is loaded
653
-
654
- === 1.6.0 2012-02-01
655
-
656
- * A whole bunch of releases between 1.5.0 and 1.6.0, but few changes, mainly
657
- the addition of:
658
- - plans
659
- - coupons
660
- - events
661
- - tokens
662
- * 1.6.0 also contains a new inspect/to_string implementation
663
-
664
- === 1.5.0 2011-05-09
665
-
666
- * 1 major enhancement:
667
- * Update for new RESTful API
668
-
669
- === 1.3.4 2011-01-07
670
-
671
- * 1 major enhancement:
672
- * Rename to Stripe
673
-
674
- === 1.2 2010-06-06
675
-
676
- * 1 major enhancement:
677
- * Support for the set_customer_subscription and delete_customer API methods
678
-
679
- === 1.1 2010-03-14
680
-
681
- * 1 major enhancement:
682
- * Support for recurring billing
683
-
684
- === 1.0 2010-01-05
685
-
686
- * 1 major enhancement:
687
- * Initial release
688
-
689
- # vim: set tw=79:
1
+ History.txt has been converted to a formal changelog. Please see CHANGELOG.md.