1359 Commits

Author SHA1 Message Date
Olivier Bellone
4c95b992cf
Bump version to 4.18.1 v4.18.1 2019-05-27 17:38:19 -07:00
mbianco-stripe
41538b3970 Order#pay without arguments (#789)
* Don't require params in order.pay

* Test for order#pay without arguments
2019-05-27 17:36:43 -07:00
Olivier Bellone
ec91de6849
Upgrade Rubocop and fix a bunch of issues (#786)
* Bump Rubocop to 0.57.2

* Style/StderrPuts: Use warn instead of .puts

* Style/ExpandPathArguments: Use expand_path('../test_helper', __dir__) instead of expand_path('../../test_helper', __FILE__)

* Style/Encoding: Unnecessary utf-8 encoding comment

* Style/StringLiterals: Prefer double-quoted strings

* Style/AccessModifierDeclarations

* Style/FormatStringToken: Prefer annotated tokens

* Naming/UncommunicativeMethodParamName

* Metrics/LineLength: set maximum line length to 100 characters

* Style/IfUnlessModifier: Favor modifier if usage when having a single-line body

* Style/ClassVars

* Metrics/LineLength: set maximum line length to 80 characters (default)

* Style/AccessModifierDeclarations: EnforcedStyle: inline
2019-05-24 10:43:42 -07:00
Olivier Bellone
7fa3585e82
Bump version to 4.18.0 v4.18.0 2019-05-23 17:41:31 -07:00
Olivier Bellone
f68fb25b83
Add support for radar.early_fraud_warning resource (#783) 2019-05-23 17:40:54 -07:00
Olivier Bellone
f6d4910877
Test Ruby 2.6 in Travis CI (#785) 2019-05-23 17:32:05 -07:00
Olivier Bellone
6612b5b3c6
Bump stripe-mock to 0.57.0 and fix tests (#784) 2019-05-23 17:27:14 -07:00
Olivier Bellone
ab180e7dfc
Add VSCode and EditorConfig files (#782) 2019-05-23 15:47:37 -07:00
Olivier Bellone
b26d57c90e
Bump version to 4.17.0 v4.17.0 2019-05-14 11:52:53 -07:00
remi-stripe
270e88b169 Add support for the Capability resource and APIs (#779) 2019-05-14 11:52:04 -07:00
Pavel Pravosud
793a61ccfb Apply safe transformations from current codegen (#777) 2019-05-08 16:09:53 -07:00
Pavel Pravosud
b13fc8465f Remove explicit Util.normalize_opts calls (#778) 2019-05-07 18:20:07 -07:00
Pavel Pravosud
cd05d363f8 More simplifying inheritance (#775) 2019-05-06 17:34:23 -07:00
Pavel Pravosud
14d6a4e6bf More method sorting for Topup class (#776) 2019-05-06 17:26:51 -07:00
Pavel Pravosud
044aa5286e Sort includes by method name for consistency (#773) 2019-05-06 13:15:58 -07:00
Pavel Pravosud
9832c5354f Simplify inheritance for nested classes (#769) 2019-05-06 11:19:53 -07:00
Michael Bianco
322a8c60be Readme example of expanding parameters and specifying a per-request API version (#642)
These options aren't immediately appartent without digging through
the client source code
2019-04-30 09:53:48 -07:00
Remi Jannel
93deaef626 Bump version to 4.16.0 v4.16.0 2019-04-24 14:26:18 -07:00
remi-stripe
27c4d3dc2f
Merge pull request #760 from stripe/remi-add-tax-rates
Add support for TaxRate resource and APIs
2019-04-24 14:23:40 -07:00
Remi Jannel
962538b149 Add support for TaxRate resource and APIs 2019-04-23 09:56:03 -07:00
Remi Jannel
b5b15f390e Bump version to 4.15.0 v4.15.0 2019-04-22 16:42:48 -07:00
remi-stripe
959bb706a4
Merge pull request #762 from stripe/remi-add-tax-ids
Add support for TaxId resource and APIs
2019-04-22 16:41:54 -07:00
Remi Jannel
b5cd9e3682 Add support for TaxId resource and APIs 2019-04-19 10:13:57 -07:00
Remi Jannel
5416f020d8 Bump version to 4.14.0 v4.14.0 2019-04-18 12:29:34 -07:00
remi-stripe
06498dbe14
Merge pull request #758 from stripe/remi-add-creditnote
Add support for CreditNote
2019-04-18 12:24:05 -07:00
Brandur
d915cd6284 Bump version to 4.13.0 v4.13.0 2019-04-16 11:50:37 -07:00
Brandur
c7db5de52f
Merge pull request #766 from stripe/brandur-relax-file-constraints
Relax constraints on objects that we'll accept as a file
2019-04-16 11:49:09 -07:00
Brandur
81b7cb3ca8 Relax constraints on objects that we'll accept as a file
When uploading a file, we previously made a check on whether it
supported both `#read` and `#path` before wrapping it in a
`Faraday::UploadIO` and sending it off. The second check on `#path`
isn't strictly necessary, and as reported in #761 can prevent objects
created by `open-uri` from being compatible with file upload.

Here we remove the check `#path` so that we just require that objects
support `#read`, and in addition error when an object is passed that's
not file-compatible and not a string. This should prevent users from
seeing the very confusing "Invalid hash" error in these situations.

Fixes #761.
2019-04-16 08:33:42 -07:00
remi-stripe
42d475b638
Merge pull request #763 from stripe/remi-bring-nested-tests-up
Move tests for nested resources up to the parent class
2019-04-15 09:47:20 -07:00
Remi Jannel
5aa63d2cc6 Move tests for nested resources up to the parent class 2019-04-12 19:23:52 -07:00
Remi Jannel
0233deb5c6 Add support for CreditNote 2019-04-07 09:47:43 -07:00
remi-stripe
c3e65b2552 Fix our test suite for latest stripe-mock (#757) 2019-04-05 21:11:24 -07:00
Olivier Bellone
81035d401f
Include file_link_data parameter in file creation test (#756) 2019-04-05 14:43:52 -07:00
Olivier Bellone
796f4bd63c
Fix minimum Ruby version in README.md 2019-04-03 10:49:12 -07:00
Olivier Bellone
51d167aa29
Bump version to 4.12.0 v4.12.0 2019-04-02 10:28:11 -07:00
Olivier Bellone
0790bb4154
Static methods for delete (#752)
New `.delete` class method on deletable API resources
2019-04-02 10:25:05 -07:00
Olivier Bellone
160028ada1
New custom_method DSL for defining custom API request methods as static methods (#754)
New `custom_method` DSL for defining custom API request methods as static methods
2019-04-02 10:06:40 -07:00
Olivier Bellone
bb25d09052 Bump version to 4.11.0 v4.11.0 2019-03-26 09:06:55 -07:00
Olivier Bellone
d98e40697b
Merge pull request #753 from stripe/ob-proxy
Add a global proxy configuration parameter
2019-03-26 09:05:35 -07:00
Olivier Bellone
6e95bf45f9 Add a global proxy configuration parameter 2019-03-25 18:34:12 -07:00
Remi Jannel
287a2e6979 Bump version to 4.10.0 v4.10.0 2019-03-18 16:48:39 -07:00
remi-stripe
39d66c00ce
Merge pull request #745 from stripe/remi-add-payment-methods
Add support for the PaymentMethod resource
2019-03-18 16:42:53 -07:00
remi-stripe
7b9b7b6aab
Merge pull request #748 from stripe/remi-add-terminal-delete
Add support for Terminal Location and Reader deletion
2019-03-18 16:41:08 -07:00
remi-stripe
26ac12679c
Merge pull request #747 from stripe/remi-add-checkout-session-retrieve
Add support for retrieving a Checkout Session
2019-03-18 16:41:01 -07:00
Remi Jannel
f93c0075c0 Add support for the PaymentMethod resource 2019-03-18 16:30:51 -07:00
Remi Jannel
de204dda1c Add support for retrieving a Checkout Session 2019-03-18 16:29:04 -07:00
Remi Jannel
031075c954 Add support for Terminal Location and Reader deletion 2019-03-18 16:28:24 -07:00
Brandur
67edf85459 Bump version to 4.9.1 v4.9.1 2019-03-18 12:52:10 -07:00
Brandur
c1894e8f3e
Merge pull request #750 from stripe/brandur-warn-on-remove-error
Catch error and warn if unable to remove a method
2019-03-18 12:51:03 -07:00
Brandur
8702e714bc Catch error and warn if unable to remove a method
In some cases there can be a method that's detected with
`method_defined?`, but which cannot be removed with `remove_method`,
even though it's on the same class. The only case so far that we've
noticed this is when a class is reopened for monkey patching like in
issue #749.

We'll still try to discourage this sort of use, but here we swallow the
error and issue a warning so at least the program doesn't crash.

Fixes #749.
2019-03-18 11:52:35 -07:00