378 Commits

Author SHA1 Message Date
wangjohn
ef249b7ceb Create the file upload api resource (+ bump version) 2014-12-22 18:04:53 -08:00
wangjohn
62e110a33e Bumping version to 1.16.1 v1.16.1 2014-12-19 18:03:44 -08:00
John J. Wang
8e311b716f Merge pull request #188 from stripe/wangjohn-stripe-account-header
Include stripe account parameter for setting header.
2014-12-19 21:01:00 -05:00
wangjohn
6990bbd798 Include stripe account parameter for setting header. 2014-12-19 11:27:12 -08:00
Kyle Conroy
67da7aa9a7 Merge pull request #187 from stripe/idempotency
Replace the `api_key` argument with a hash of options
2014-12-18 16:09:40 -08:00
Kyle Conroy
e3a68bb3b9 Replace api_key with an options hash
For now, only two options are supported: `api_key` and
`idempotency_key`. In the future, we'll be adding support for additional
headers as needed.
2014-12-17 23:23:46 -08:00
shalecraig
9407c932af Merge pull request #184 from stripe/shale/more-per-request-headers
More per request headers
2014-12-16 18:24:10 -08:00
Shale Craig
7c6c8269c6 Add ability to specify custom headers for list_object.create 2014-12-16 15:46:08 -08:00
Shale Craig
fd104697f3 Add ability to specify custom headers for application_fee.refund 2014-12-16 15:44:57 -08:00
Shale Craig
4bef41192a Add the ability to use an api_key for application_fee.refund 2014-12-16 15:43:16 -08:00
Kyle Conroy
100c522a32 Merge pull request #183 from stripe/per-request-headers
Add per-request headers
2014-12-15 16:56:58 -08:00
Kyle Conroy
bfaaae9336 Add per-request headers 2014-12-15 16:11:45 -08:00
Kyle Conroy
f0c698163e Merge pull request #182 from joshk/patch-1
Use the new build env on Travis
2014-12-15 14:27:44 -08:00
Josh Kalderimis
d309437bd0 Use the new build env on Travis
more capacity, more ram, more cpu, more wow
2014-12-15 20:21:53 +01:00
Michael Manapat
34a86a241b Merge pull request #180 from stripe/mlm-add-fraud-reporting-methods
Add fraud reporting methods
2014-12-14 12:37:56 -08:00
Michael Manapat
f3c0766a0d Add fraud reporting methods 2014-12-11 20:33:50 -08:00
Russell Davis
9c7ebd21c9 Merge pull request #168 from harlow/hw-ruby-19-hash
Consistently use symbols for hash keys
2014-11-14 16:09:48 -08:00
Harlow Ward
1d97c81d8b Consistently use symbols for hash keys
* Updated keys to symbols to match the rest of the test helper
2014-11-14 15:45:25 -08:00
Russell Davis
99cb861dbd Merge pull request #172 from westonplatter/rename-internal-var
rename internal variable. rename `new` to `new_hash` so it's not a keyword
2014-11-14 14:31:20 -08:00
Russell Davis
5c4fa57f09 Merge pull request #170 from westonplatter/formatting
Formatting. Just a few suggestions on code format.
2014-11-14 14:30:03 -08:00
Russell Davis
d6e2dae298 Change Helpers to Stripe::TestData 2014-11-14 14:10:45 -08:00
Russell Davis
3e1e4ea240 Merge pull request #169 from harlow/hw-extract-helpers
Extract response helpers to module
2014-11-14 13:57:08 -08:00
Harlow Ward
cdfbfee06c Extract response helpers to module
Allow developers to use Stripe test data when stubbing responses
locally. This should help mitigate the risk of API drift with stubbed
responses.

* Move response helpers to their own file
2014-11-13 23:19:46 -08:00
Weston Platter
c060ce63f0 rename internal variable. rename new to new_hash so it's not a Ruby keyword 2014-11-02 21:17:08 -07:00
Weston Platter
7810d888c1 formatting. alphabetize key-values by keys and add comments. 2014-11-02 20:29:13 -07:00
Weston Platter
30b0e4156a formatting. remove () from methods that don't have arguments 2014-11-02 20:28:43 -07:00
Russell Davis
7aee297980 Merge pull request #157 from timcraft/return-self
Return self from Stripe::StripeObject#refresh_from
2014-10-30 16:44:21 -07:00
Russell Davis
da216fd53b Add instructions for use with Ruby versions < 1.9.2 2014-10-09 16:02:03 -07:00
Michelle Bu
e751a48bce Merge pull request #153 from stripe/update-coupon
Add coupon update
2014-10-09 13:07:00 -07:00
Greg Sabo
ed873459b7 Bump version to 1.16.0 v1.16.0 2014-10-08 14:17:09 -07:00
Tim Craft
0fc6ee5e5b Return self from Stripe::StripeObject#refresh_from 2014-08-22 19:43:13 +01:00
Greg Sabo
2c6f4caa99 Merge pull request #156 from stripe/make_coupons_updateable
Make coupons update-able.
2014-08-20 13:32:52 -04:00
Greg Sabo
a596138526 Make coupons update-able. 2014-08-19 16:24:44 -07:00
Russell Davis
afd42ecd41 Merge pull request #155 from stripe/fix-connection-error-message
Better error message for ServerBrokeConnection exception
2014-08-18 16:05:36 -07:00
Russell Davis
f7467728d7 Better error message for ServerBrokeConnection exception 2014-08-18 15:05:16 -07:00
Russell Davis
5ec4c3f68f Fix error in new versions of bundler from using frozen version string 2014-08-18 14:56:38 -07:00
Kyle Conroy
8d066ca608 Add coupon update 2014-08-06 16:10:18 -07:00
Cosmin Nicolaescu
4aed61af42 v1.15.0 v1.15.0 2014-07-29 20:13:56 -07:00
Cosmin Nicolaescu
1d5da7f9ae Merge pull request #150 from stripe/cos-appfee-refund
make ApplicationFee.refunds a list object instead of array
2014-07-29 09:51:48 -07:00
Cosmin Nicolaescu
d3dfa18990 make ApplicationFee.refunds a list object instead of array 2014-07-28 23:28:24 -07:00
Andy Brody
9cf5089dc1 Revert "Change rest-client pin to ruby < 1.9.2."
This reverts commit 39a196541f857ac6266b7a06f589ead21c87a8aa.

Just kidding. Activesupport itself depends on ruby >= 1.9.3.
2014-07-15 13:42:48 -07:00
Andy Brody
39a196541f Change rest-client pin to ruby < 1.9.2.
The latest rest-client supports rubies >= 1.9.2
2014-07-15 13:06:04 -07:00
Russell Davis
8b604f630b Merge pull request #143 from ngauthier/update-mime-types
update mime-types requirement to allow 1.x and 2.x
2014-07-14 13:33:46 -07:00
Russell Davis
1d49b4cc41 Merge pull request #145 from stripe/fix-gemfiles
Fix gemfiles for use with Ruby  < 1.9.3
2014-07-14 10:58:16 -07:00
Russell Davis
3c76c9f150 Fix gemfiles for use with Ruby < 1.9.3
Any project using this gem (with Ruby < 1.9.3) will need to do the same
in its own gemfile.
2014-07-13 13:44:36 -07:00
Russell Davis
ca0d2e603d Merge pull request #144 from stripe/better-rakefile
Run tests using TestTask
2014-07-11 16:19:31 -07:00
Russell Davis
2827ad15d6 Run tests using TestTask
- Runs all tests at once instead of one at a time, this way we don't pay
the cost of constantly reloading the environment. Takes test time from 20
seconds to 4.

- Removes the separate testing using activesupport/all, which wasn't actually
doing anything since the tests were running in a separate process.

Thanks to @JoshCheek for surfacing these issues.
2014-07-11 14:54:21 -07:00
Amber Feng
8bb6acfca9 Merge pull request #122 from mcolyer/fix-psych-deserialization
Check for `@values` in StripeObject#method_not_found.

This is necessary because we check for `@values` in `respond_to_missing?` now, but this isn't necessarily always set. For example, in deserializing from YAML, Psych creates the object using `allocate` and not `new`, which ends up skipping any initializing of instance variables. See #122 for more details.
2014-07-08 21:52:05 -07:00
Nick Gauthier
660befd6c3 update mime-types requirement to allow 1.x and 2.x 2014-07-08 09:41:00 -04:00
Amber Feng
52792264ef Merge pull request #118 from vandrijevik/nested-to-hash
Improved StripeObject#to_hash
2014-07-07 21:23:00 -07:00