762 Commits

Author SHA1 Message Date
Brandur
af68678895 Add usage section to README
Add a section that contains basic usage information to the README.
2016-08-10 11:00:41 -07:00
Brandur
e7f09c2e68 Bump version to 1.49.0 v1.49.0 2016-07-28 17:35:50 -07:00
Brandur
830e2baf42 Merge pull request #446 from stripe/will-add-source-functionality
Add Source functionality
2016-07-28 17:34:58 -07:00
Will Bronitsky
4a6d70bf14 Add Source functionality 2016-07-28 17:25:06 -07:00
Romain Huet
2026c06242 Update the Travis CI badge 2016-07-12 18:55:38 -07:00
Brandur
d7abd71071 Bump version to 1.48.0 v1.48.0 2016-07-12 10:11:55 -07:00
Brandur
5d31fc1e1b Merge pull request #442 from stripe/ob-3ds
Added support for 3D Secure
2016-07-12 10:11:29 -07:00
Olivier Bellone
be8c56458f Added support for 3D Secure 2016-07-12 17:01:33 +02:00
Brandur
7ed6e48b48 Bump version to 1.47.0 v1.47.0 2016-07-11 16:54:50 -07:00
Brandur
b0f347dcf3 Merge pull request #439 from mikesea/rest-client-version
Relax rest-client version requirements
2016-07-11 16:53:40 -07:00
Mike Chlipala
65bbee4bf8 Relax rest-client version requirements 2016-07-11 16:36:23 -07:00
Brandur
d32a514393 Merge pull request #441 from stripe/brandur-mime-types-workaround-2
Workaround for mime-types related failures on 1.9
2016-07-11 15:48:45 -07:00
Brandur
d250120102 Workaround for mime-types related failures on 1.9 2016-07-11 15:06:56 -07:00
Brandur
d6c73c2b65 Merge pull request #438 from stripe/brandur-remove-restclient-workaround
Remove hack to work around rest-client bug
2016-07-07 11:16:51 -07:00
Brandur
ac49ef0b59 Remove hack to work around rest-client bug
This removes a hack in the code that's designed to work around a
rest-client bug which was added back in 2011. Unfortunately neither
comments nor commit messages bother to tell us what the nature of the
bug actually was, but based on what it's rescuing, it might be
rest-client/rest-client#58, which has been fixed for over five years
now.

Following up on the work done in #436, let's continue to try and simply
the error handling paths by taking this out.
2016-07-07 09:25:48 -07:00
Brandur
660f7725b7 Bump version to 1.46.0 v1.46.0 2016-07-07 09:20:14 -07:00
Brandur
b97e1010c0 Merge pull request #436 from stripe/brandur-retry-conflict
Rework HTTP retry path + retry 409s
2016-07-07 09:19:36 -07:00
Brandur
bf1cc03227 Bump version to 1.45.0 v1.45.0 2016-07-07 09:05:25 -07:00
Brandur
e2499edfa3 Merge pull request #433 from stripe/brandur-serialize-whitelist
Go back to not saving subresources, but exclude `Customer#source=`
2016-07-07 09:04:06 -07:00
Brandur
3984246514 Rework HTTP retry path + retry 409s
Two changes:

1. The HTTP retry path has been refactored to make retries on errors
that are not RestClient exceptions possible by bringing the logic up a
level. This also has the effect of somewhat simplifying the exception
handling logic which can be somewhat difficult to reason about right
now.

2. Retry on `RestClient::Conflict` (a 409 from the API) as discussed in
issue #431.

Fixes #431.
2016-07-05 12:37:39 -07:00
Brandur
6a41234406 Additional commentary on #source= method and implementation 2016-07-01 15:54:38 -07:00
Brandur
6560cfaf4b Don't talk about "default source" here 2016-07-01 15:54:38 -07:00
Brandur
2a4a50da8e Introduce #save_with_parent flag
Introduce a `#save_with_parent` flag that allows the default behavior of
never saving API resources nested under a parent to be overridden, a
feature that we so far only know to need for updating a source under a
customer.
2016-07-01 15:54:38 -07:00
Brandur
d0a3493144 Revert "Remove check that prevents API resource subobjects from being serialized"
This reverts commit 7bbc6ef2e59006cc6d9410a92a09d8c5c68d2893.
2016-07-01 15:54:38 -07:00
Brandur
be8466b47b Merge pull request #434 from stripe/brandur-fix-ci
Fix Gem builds in CI
2016-07-01 15:54:18 -07:00
Brandur
1e166d9be7 Fix Gem builds in CI
CI is failing for a number of Ruby versions because shoulda is pulling
in should-matchers, which then pulls in activesupport. activesupport's
new 5.0.0 version is being picked up, and that requires at least Ruby
2.2.2.

Luckily the solution is easy, we're not using shoulda-matchers, only
shoulda-context, so just tighten up our dependencies a little and the
problem goes away.
2016-07-01 15:44:32 -07:00
Brandur
774e885334 Clean up comments around exponential backoff 2016-06-30 10:44:08 -07:00
Kyle Conroy
8377a9f941 Bump version to 1.44.0 v1.44.0 2016-06-29 14:35:07 -07:00
Kyle Conroy
732a494ac4 Add update class method to API resources (#426)
* Rename the `Update` operation to `Save`
* Add the `update` class method to all saveable resources
* Add tests for update method
* Add tests for plans, invoice items, and application fees
2016-06-29 14:13:42 -07:00
Brandur
cb8917b7a3 Merge pull request #432 from Edouard-chin/req_url_doc_fix
Removed a forgotten line of doc [ci skip]:
2016-06-29 07:23:07 -07:00
Edouard CHIN
d288be358a Removed a forgotten line of doc [ci skip]:
- This removes the doc about `req_url` while saving a StripeObject, this options was removed in `e226ef`
2016-06-29 02:11:56 -04:00
Brandur
f2aa8c1e58 Bump version to 1.43.1 v1.43.1 2016-06-17 14:48:07 -07:00
Brandur
ea06b1ba67 Merge pull request #428 from stripe/rasmus-fix_order_return_object
Convert return_order response to OrderReturn.
2016-06-17 14:47:14 -07:00
Rasmus Rygaard
f37a1f2f9f Convert return_order response to OrderReturn. 2016-06-17 11:03:56 -07:00
Brandur
3b06b2c880 Merge pull request #424 from JuanitoFatas/fix/gemspec-homepage
Fix homepage for Ruby docs in gemspec
2016-06-13 09:07:40 -07:00
JuanitoFatas
f4f8d38643 Fix homepage for Ruby docs in gemspec 2016-06-13 18:07:11 +08:00
Brandur
6fb907b322 Merge pull request #423 from stripe/brandur-document-convert
Document `Util.convert_to_stripe_object`
2016-06-09 09:39:24 -07:00
Brandur
6695340d50 Minor fixes to Rubydoc of #update_attributes 2016-06-09 09:19:28 -07:00
Brandur
531e0ff317 Document Util.convert_to_stripe_object
Adds some basic documentation to `Util.convert_to_stripe_object`.
2016-06-09 09:02:23 -07:00
Brandur
6920d9db68 Update authors/email in Gemspec
Unfortunately neither of these people work for Stripe anymore. Let's put
a valid contact email address in here instead.
2016-05-25 10:55:29 -07:00
Brandur
065ad92c0e Bump version to 1.43.0 v1.43.0 2016-05-20 10:32:29 -07:00
Brandur
31c6fbe8bb Merge pull request #419 from stripe/rasmus-add_order_returns
Add order returns
2016-05-20 10:28:02 -07:00
Rasmus Rygaard
6202d66873 Add tests for return deletion, updating. 2016-05-20 09:54:09 -07:00
Rasmus Rygaard
dab45737c9 Add order returns. 2016-05-18 17:56:15 -07:00
Brandur
43c86909d7 Merge pull request #418 from stripe/remi-add-alipay-account
Support AlipayAccount retrieval and deletion
2016-05-18 11:02:03 +02:00
Remi Jannel
2a6673a8e5 Support AlipayAccount retrieval and deletion 2016-05-17 17:52:00 -04:00
Kyle Conroy
49382f7ac2 Bump version to 1.42.0 v1.42.0 2016-05-04 14:15:44 -07:00
Jacqueline
60248fbd00 Use v1/subs endpoints for operations on subs and allow direct sub access (#411)
* allow subs to be retrieved & created with new v1/subs API endpoint

* edit tests to check for url

* fix customer subscription URLs to go through v1/customers
2016-05-04 14:14:24 -07:00
Brandur
ca7adcf8c8 Bump version to 1.41.0 v1.41.0 2016-04-13 14:00:35 -07:00
Brandur
679b2b9b19 Merge pull request #412 from Edouard-chin/global-stripe-account-head
Allow `stripe_account` to be set globally:
2016-04-13 13:58:32 -07:00