984 Commits

Author SHA1 Message Date
Olivier Bellone
130704a09a
Bump version to 4.6.0 2019-01-21 13:21:22 +01:00
Olivier Bellone
6b89b3b6c1
Properly serialize individual on Account objects 2019-01-18 15:31:47 +01:00
Remi Jannel
359a0c9cdf Move CheckoutSession to the Checkout namespace and rename to Session 2019-01-16 18:50:14 -08:00
Brandur
55b4d78026 Bump version to 4.5.0 2019-01-02 08:00:53 -07:00
Brandur
403be3b106 Generate OAuth authorize URLs for express accounts
Connect with Express accounts uses a slightly different version of the
OAuth authorize URL [1] in that it's prefixed with `/express`.

Here we add a new option to `Stripe::OAuth.authorize_url` which allows
`express: true` to be passed in to generate the Express variant.

Note that the token endpoint has no equivalent so we don't need the
option there.

Fixes #717.

[1] https://stripe.com/docs/connect/oauth-reference#express-account-differences
2018-12-31 13:47:35 -07:00
Brandur
6f81c907e8 Bump version to 4.4.1 2018-12-31 11:09:56 -07:00
Kazuhiro Sera
4081d8c5ed Fix typo/misspell in comments & error messages 2018-12-31 15:26:56 +09:00
Remi Jannel
e2c352de07 Bump version to 4.4.0 2018-12-21 09:43:55 +01:00
Remi Jannel
0747d59752 Add support for the Checkout Session resource 2018-12-21 09:20:29 +01:00
Olivier Bellone
98851f9ad3
Bump version to 4.3.0 2018-12-10 17:21:21 -08:00
Remi Jannel
220bac9397 Add support for the Account Link resource 2018-12-07 16:06:04 -08:00
Remi Jannel
c186e71c92 Revert "Add support for the Account Link resource"
This reverts commit 335c40b4d8cf974c427f34024072272441a5131e.
2018-12-07 16:05:05 -08:00
Remi Jannel
335c40b4d8 Add support for the Account Link resource 2018-12-07 15:54:50 -08:00
Remi Jannel
b34d527f60 Bump version to 4.2.0 2018-11-28 11:42:22 -05:00
Remi Jannel
0383de9dc2 Add support for the Review resource 2018-11-28 09:50:42 -05:00
Olivier Bellone
3c7995f030
Bump version to 4.1.0 2018-11-27 14:17:38 +01:00
Remi Jannel
ceab2740c1
Add support for Radar List and ListItem resources 2018-11-27 14:10:18 +01:00
Brandur
67c88f3572 Bump version to 4.0.3 2018-11-19 08:29:15 -08:00
Olivier Bellone
bea6d5dd12
Don't use net-http-persistent on Windows 2018-11-19 12:37:58 +01:00
Olivier Bellone
aa611c268c
Bump version to 4.0.2 2018-11-16 18:07:00 +01:00
Brandur
63d95e1e34 Bump version to 4.0.1 2018-11-15 14:54:06 -08:00
Brandur
78df532c8c Only send telemetry if request ID was present
Tweaks telemetry implementation slightly to be inline with the recent
implementation in stripe-php. Telemetry isn't much good if a request ID
wasn't present, so we only send telemetry if it was.
2018-11-15 14:45:45 -08:00
Brandur
8c4813fcbf Bump version to 4.0.0 2018-11-15 10:41:58 -08:00
Brandur
85013c9770 Use Faraday's Net::HTTP::Persistent adapter
This changes the library's default connection over to use the adapter
for `Net::HTTP::Persistent`, which is a connection pooling library for
Ruby.

In the long run, I think we should probably just drop Faraday ... the
amount of value it's getting us is extremely tenuous and its API is
difficult to work with. I hate to do it at this point though because
technically people could be writing custom middleware for it.
2018-11-15 08:55:28 -08:00
Brandur
7a444d8fb0 Bump version to 3.31.1 2018-11-12 16:42:22 -08:00
Anton Kropp
5e3c3a9b45
Making stripe telemetry more specific in terms of units 2018-11-12 16:35:21 -08:00
Brandur
ba23aa5e2c Bump version to 3.31.0 2018-11-12 10:44:20 -08:00
Anton Kropp
ab248ec691
Adding metadata header to client requests 2018-11-12 10:24:06 -08:00
Remi Jannel
e2f4fa23d0 Bump version to 3.30.0 2018-11-08 17:41:11 -08:00
Remi Jannel
bbec79ccba Add new methods to the Invoice resource 2018-11-08 17:28:55 -08:00
Remi Jannel
d62f12f277 Bump version to 3.29.0 2018-10-30 10:48:15 -07:00
Remi Jannel
da9d15df95 Add support for the Webhook Endpoint resource 2018-10-30 10:36:10 -07:00
Remi Jannel
23d94005d3 Add support for the Person resource 2018-10-30 10:25:10 -07:00
Brandur
9bc6ae85a5 Bump version to 3.28.0 2018-09-24 16:14:36 -06:00
David Zhu
b3055bfd44 Terminal Bindings 2018-09-24 13:43:32 -07:00
Olivier Bellone
6237a28b87
Bump version to 3.27.0 2018-09-24 21:10:29 +02:00
Olivier Bellone
ea09249e67
Use files.stripe.com only for the file create endpoint 2018-09-20 23:02:00 +02:00
Olivier Bellone
f3dd3ab1bf
Handle file objects like file_upload 2018-09-17 16:53:23 +02:00
Brandur
b43b83cee1 Add a few more comments around new #eql?/#hash 2018-09-14 09:59:38 -06:00
Olivier Bellone
45e807a41a
Bump version to 3.26.1 2018-09-14 10:12:00 +02:00
Brandur
7c01836135 Override StripeObject#eql? and #hash to produce more optimistic equivalency
Overrides `#eql?` (hash equality) and `#hash` so that Stripe objects can
be used more easily as Hash keys and that certain other frameworks that
rely on these methods will have an easier time (e.g. RSpec's `change`,
see #687).

I think this might be a little controversial if we weren't already
overriding the `#==` implementation, but because we are, I think it
makes sense to extent it to these two methods as well.
2018-09-13 17:39:18 -06:00
Brandur
27f39aed85 Bump version to 3.26.0 2018-09-05 14:54:35 -07:00
Brandur
856201f67e
Merge pull request #681 from stripe/remi-add-reporting-resources
Add support for the Reporting resources
2018-09-05 14:52:48 -07:00
Brandur
68cfe0fd8b
Merge pull request #685 from timcraft/use-keyword-args
Use keyword args for StripeObject#update_attributes
2018-09-05 09:54:22 -07:00
Brandur
8d01c03515
Merge pull request #684 from timcraft/remove-util-titlecase-parts
Remove Util.titlecase_parts method
2018-09-05 09:52:49 -07:00
Tim Craft
29fe27d245 Use keyword args for StripeObject#update_attributes 2018-09-05 14:28:50 +01:00
Tim Craft
92775b1358 Remove Util.titlecase_parts method 2018-09-05 14:25:39 +01:00
Tim Craft
a43296d242 Remove unused Util.file_readable method 2018-09-05 14:11:05 +01:00
Remi Jannel
66248ba2aa Add support for the Reporting resources 2018-08-30 20:11:07 -04:00
Brandur
7331bf33de Bump version to 3.25.0 2018-08-28 13:23:26 -07:00