949 Commits

Author SHA1 Message Date
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
Brandur
96e03a8443 Update some OpenAPI repository conventions
See [1] for details, but a few conventions changed around the structure
of the OpenAPI repository and the data within the fixtures file. Here we
put in some minor changes to compensate for them.

[1] https://github.com/stripe/openapi/pull/3
2017-03-23 16:28:36 -07:00
Brandur
0727e11a5b Bump version to 2.1.0 v2.1.0 2017-03-17 12:17:00 -07:00
Brandur
53f97b5000 Merge pull request #515 from stripe/ob-delete-sources
Adds support for detaching sources from customers
2017-03-17 12:15:56 -07:00
Olivier Bellone
433c660cfe Fix sources 2017-03-17 16:11:05 +01:00
Olivier Bellone
58a965523a Fix cards 2017-03-17 16:11:05 +01:00
Olivier Bellone
89f207f993 Update fixtures files 2017-03-17 16:11:05 +01:00
Olivier Bellone
b8e6a385cf Adds support for detaching sources from customers 2017-03-17 16:11:05 +01:00
Brandur
c9a3c7933b Bump version to 2.0.3 v2.0.3 2017-03-16 13:03:27 -07:00
Brandur
bb53b3e63f Merge pull request #516 from stripe/ob-fix-512
Exclude client when dumping objects
2017-03-16 13:02:34 -07:00
Olivier Bellone
d3e40bb1de Exclude client when dumping objects 2017-03-16 20:54:13 +01:00
Brandur
66d8ecd0d0 Bump version to 2.0.2 v2.0.2 2017-03-16 09:06:27 -07:00
Brandur
da9d8f7353 Merge pull request #517 from iamvery/fix-typo-in-json-error-handling
Replace invalid message Faraday::Response#code with valid #status
2017-03-16 09:02:10 -07:00
Jay Hayes
20553e7422 Replace invalid message Faraday::Response#code with valid #status
The Faraday::Response object does not respond to #code. The correct
message is #status. It seems this case was previously unhandled by the
test suite as there was no case for the server responding "success" with
an invalid JSON body.
2017-03-16 06:24:45 -05:00
Brandur
ae5bf8d460 Merge pull request #514 from stripe/brandur-update-certs-url
Point certificate bundle URL directly at cURL
2017-03-15 13:20:08 -07:00
Brandur
f4e0de5974 Also update our certificate bundle for good measure 2017-03-15 10:46:35 -07:00
Brandur
90344eeaa0 Point certificate bundle URL directly at cURL
We were using this GitHub link instead because the cURL site didn't
support HTTPS for the longest time. They do now, so repoint this URL.
2017-03-15 10:44:59 -07:00
Brandur
eb0883ee75 Merge pull request #513 from stripe/brandur-update-spec
Add Rake task to update OpenAPI specification
2017-03-14 23:52:10 -07:00
Brandur
effce7f181 Rename schema_data to spec_data for consistency 2017-03-14 17:07:50 -07:00
Brandur
4d7019bee6 Move OpenAPI spec from spec/ to openapi/
Naming a directory `spec` in a Ruby project is terribly ambiguous. This
clarifies the purpose of this directory and makes it easier to find if
you know that you're looking for OpenAPI.
2017-03-14 17:07:50 -07:00
Brandur
3b193db847 Add script to update the OpenAPI specification
Also fixes the task to retrieve a CA bundle which broke on the upgrade
from rest-client to Faraday.
2017-03-14 17:07:49 -07:00
Brandur
8564d3b629 Update bundle OpenAPI specification 2017-03-14 16:50:50 -07:00
Brandur
edac0b2c51 Merge pull request #511 from stripe/brandur-readme-update
Prefer use of the word "library" over "bindings"
2017-03-14 10:43:07 -07:00
Brandur
677454efe8 Link directly to API keys 2017-03-14 10:41:33 -07:00
Brandur
a84d8e7691 s/SDK/library/ 2017-03-14 10:38:54 -07:00
Brandur
500ace9f7b Prefer use of the word "SDK" over "bindings"
Minor difference in vernacular, but as noted in stripe/stripe-node#312,
the usage of the word "bindings" is unusual outside of Stripe.
2017-03-13 16:09:52 -07:00
Brandur
8f817b8365 Merge pull request #509 from stripe/brandur-bump-api-spec
Bump OpenAPI spec to latest
2017-02-24 10:19:12 -08:00
Brandur
6393ea6416 Expect cards instead of tokens 2017-02-23 18:12:51 -08:00
Brandur
3a0417c648 Add latest API spec and fixtures 2017-02-23 18:12:43 -08:00