1027 Commits

Author SHA1 Message Date
Brandur
358af9ffb8 Merge pull request #547 from stripe/remi-remove-raw-pans
Remove raw PANs and use magic tokens instead
2017-05-30 12:36:14 -07:00
Remi Jannel
f0b9ba7c6f Remove raw PANs and use magic tokens instead 2017-05-28 10:05:36 -04:00
Brandur
d152f0766c Bump version to 2.11.0 v2.11.0 2017-05-26 14:18:29 -07:00
Andrew Yang
855ce0c7d4 Merge pull request #545 from stripe/andrewyang-idempotency-key-param
Warn user if a known opt (such as `idempotency_key`) is in params
2017-05-26 13:48:49 -07:00
Andrew Yang
e66eac41d1 Warn user if a known opt (such as idempotency_key) is in params 2017-05-26 13:29:36 -07:00
Brandur
1d2359cfbc Bump version to 2.10.0 v2.10.0 2017-05-25 10:16:06 -07:00
Brandur
c98057fbf9 Merge pull request #546 from stripe/ob-login-links
Add support for login_links on the Account resource
2017-05-25 10:15:25 -07:00
Remi Jannel
27dca775c7 Do not rely on fixtures for login_links as it's not always here. 2017-05-19 14:49:33 -04:00
Olivier Bellone
330763aa02 Adds support for login links 2017-05-19 17:22:54 +02:00
Brandur
f87e1ed219 Merge pull request #543 from stripe/brandur-update-openapi
Update OpenAPI
2017-05-18 16:05:23 -07:00
Brandur
08d24f9835 Modify a few tests to comply with new OpenAPI changes 2017-05-18 15:56:59 -07:00
Brandur
47aa53e3bd Update OpenAPI and fixtures 2017-05-18 15:56:50 -07:00
Brandur
89cb224b39 Bump version to 2.9.0 v2.9.0 2017-05-18 12:57:08 -07:00
Brandur
429afa959f Merge pull request #523 from stripe/ob-oauth
Add OAuth methods
2017-05-18 12:56:19 -07:00
Olivier Bellone
a645a78cd0 Add OAuth methods 2017-05-18 11:29:59 +02:00
Brandur
b27cd9b5ed Bump version to 2.8.0 v2.8.0 2017-04-28 09:46:23 -07:00
Brandur
2854e7565f Merge pull request #537 from stripe/ob-webhook-signatures
Support for deserializing webhook events and verifying signatures
2017-04-28 09:43:36 -07:00
Brandur
bac96faf8e Merge pull request #536 from stripe/brandur-timeouts
Add section for configuring timeouts to README
2017-04-28 08:01:03 -07:00
Olivier Bellone
0376e242d9 Support for deserializing webhook events and verifying signatures 2017-04-28 14:25:40 +02:00
Brandur
b44744db39 Add section for configuring timeouts to README
Timeouts are about to come to stripe-java [1], so for consistency we
mirror the README section that we're going to be adding over there.

[1] https://github.com/stripe/stripe-java/pull/369
2017-04-27 14:03:27 -07:00
Brandur
5f18d3d18c Bump version to 2.7.0 v2.7.0 2017-04-26 12:14:16 -07:00
Brandur
4ca10ae845 Merge pull request #535 from stripe/brandur-invoice-line-item-test
Add test structure for `InvoiceLineItem`
2017-04-26 12:13:38 -07:00
Brandur
24e12b1422 Add test structure for InvoiceLineItem
This doesn't come back directly from the API so the suite is empty, but
just for completeness add a test file for the newly created
`InvoiceLineItem` model.
2017-04-26 12:08:19 -07:00
Brandur
48c0067efe Merge pull request #534 from frewsxcv/invoice-line-item
Add `Stripe::InvoiceLineItem` class.
2017-04-26 12:06:48 -07:00
Corey Farwell
408c697847 Add Stripe::InvoiceLineItem class.
Fixes #531.
2017-04-26 14:59:02 -04:00
Brandur
8cda03a1bf Bump version to 2.6.0 v2.6.0 2017-04-26 11:35:51 -07:00
Brandur
b7c5cf96ba Merge pull request #533 from frewsxcv/constantize-object-names
Add string constants for each of the Stripe object names.
2017-04-26 11:35:07 -07:00
Corey Farwell
c4c38d63fc Add string constants for each of the Stripe object names. 2017-04-26 14:20:22 -04:00
Brandur
500dfd98a0 Bump version to 2.5.0 v2.5.0 2017-04-24 16:35:33 -07:00
Brandur
14f54018c4 Merge pull request #532 from frewsxcv/patch-1
Don't require `opts` param for `convert_to_stripe_object`.
2017-04-24 16:34:37 -07:00
Corey Farwell
f057ee1893 Don't require opts param for convert_to_stripe_object. 2017-04-24 18:40:03 -04:00
Brandur
ed15772fd6 Bump version to 2.4.0 v2.4.0 2017-04-18 06:05:52 -07:00
Brandur
0be4b69710 Merge pull request #529 from stripe/brandur-app-info
Support "app info" for plugins in Ruby
2017-04-18 06:04:59 -07:00
Brandur
cdccdbe4e2 Remove private modifier
Ruby 2.0 doesn't seem to like this syntax unfortunately.
2017-04-18 05:07:39 -07:00
Brandur
06992ef370 Add app info to User-Agent as well 2017-04-17 12:57:16 -07:00
Brandur
65c5c675ed Unset global .stripe_account after test 2017-04-14 14:40:19 -07:00
Brandur
6acd21ac48 Support "app info" for plugins in Ruby
Adds support for "app info" (a mechanism that allows a plugin's author
to identify that plugin) in Ruby. This is already supported in PHP and
we're adding it elsewhere.
2017-04-14 14:37:01 -07:00
Brandur
74b5f08930 Bump version to 2.3.0 v2.3.0 2017-04-14 09:48:55 -07:00
Brandur
420aac584b Annotate why we get this value with a comment 2017-04-14 09:47:51 -07:00
Brandur
34b524547a Merge pull request #528 from iamvery/iamvery/add-boolean-predicates-when-accessor-is-missing
Include predicate for lazily added boolean accessors
2017-04-14 09:46:56 -07:00
Jay Hayes
44bad70987 Include predicate for lazily added boolean accessors
Previously, the value of whatever accessor was missing was left out of
the call to build it. This had the effect of skipping over the
lazily-built predicate method when the missing accessor is for a
boolean.

Of course, I realize this all is a bit contrived as most of the time
folks aren't assigning these values manually to stripe objects. However,
in my testing it caught me by surprised that the behavior is asymmetric
depending on how and when values are assigned.

As such I believe this is a less surprising implementation.
2017-04-14 09:31:58 -05:00
Brandur
d2cada1c1c Bump version to 2.2.1 v2.2.1 2017-04-07 12:18:42 -07:00
Brandur
ef512aa855 Merge pull request #527 from stripe/ob-fix-faraday-min-version
Fix Faraday minimum version
2017-04-07 12:16:53 -07:00
Olivier Bellone
2c2180fc5c Fix Faraday minimum version 2017-04-07 09:40:43 -07:00
Brandur
2979e5fc62 Bump version to 2.2.0 v2.2.0 2017-04-06 14:02:39 -07:00
Brandur
8684b27b54 Merge pull request #522 from stripe/remi-split-payout-transfer
Added support for the new Payout and RecipientTransfer objects
2017-04-06 14:01:43 -07:00
Brandur
8fe03b40fc Update OpenAPI specification and fixtures 2017-04-06 13:48:41 -07:00
Remi Jannel
65e8f505d5 Added support for the new Payout and RecipientTransfer objects
The Transfer object used to represent all movements of funds in Stripe. It
split in three resources:
- Transfer: this describes the movement of funds between Stripe accounts
and is specific to Stripe Connect.
- Payout: this describes the movement of funds from a Stripe account to a
bank account, debit card or any future payout method.
- RecipientTransfer: this describes the movement of funds from a Stripe
account to a Recipient's card or Bank Account. This is here for legacy
reasons and can only be accessed from an expanded BalanceTransaction.

This change is behind an API version so old API versions would still use
the Transfer object for everything while new API version would see the
split.

This applies beyond the new object as some properties/methods are removed
from Transfer and other properties are renamed on other objects.
2017-03-31 14:03:56 -04:00
Brandur
f9fda0ed4c Small update for wording consistency and Vim hint 2017-03-28 12:16:45 -07:00
Brandur
cb841602fa Merge pull request #520 from stripe/brandur-update-openapi-conventions
Update some OpenAPI repository conventions
2017-03-23 17:29:46 -07:00