1373 Commits

Author SHA1 Message Date
Remi Jannel
54dcf73d96 Fix examples to not use hash rockets 2019-06-12 10:56:16 -07:00
Alex Rattray (Stripe)
0d7968b97b
Merge pull request #791 from stripe/ralex/codegen-2
Some small changes to object_types for codegen
2019-05-31 18:25:12 -04:00
Alex Rattray
bc9fed3635 Some small changes to object_types for codegen 2019-05-30 17:44:52 -04:00
Alex Rattray (Stripe)
1ed21bcb57
Merge pull request #790 from stripe/ralex/codegen
Formatting changes from codegen
2019-05-30 10:56:11 -04:00
Alex Rattray
d998c3342e Only ignore line-length on resources 2019-05-29 21:07:34 -04:00
Alex Rattray
64571bee75 Move resources to their own folder 2019-05-29 21:03:37 -04:00
Alex Rattray
58d47e96f8 Move resource requires into their own file 2019-05-29 18:45:57 -04:00
Alex Rattray
01c5776b06 Add some private methods back to Order 2019-05-29 18:24:56 -04:00
Alex Rattray
ea736eba1b Use Util.convert_to_stripe_object instead of initialize_from 2019-05-29 18:24:42 -04:00
Alex Rattray
0d465ce91c More reordering and hopefully-safe formatting changes 2019-05-29 18:16:29 -04:00
Alex Rattray
91cfc0f748 Deprecate Transfer#cancel_url 2019-05-29 12:55:24 -04:00
Alex Rattray
9a21c99966 Move object types map to its own file 2019-05-29 11:36:07 -04:00
Alex Rattray
bc2a5e0deb Exclude stripe dir from line length limit 2019-05-29 11:34:35 -04:00
Alex Rattray
eff920662e Some safe transformations from codegen 2019-05-29 11:34:16 -04:00
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