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