stripe 3.2.0 → 5.16.0

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