865 Commits

Author SHA1 Message Date
Cosmin Nicolaescu
4aed61af42 v1.15.0 2014-07-29 20:13:56 -07:00
Cosmin Nicolaescu
d3dfa18990 make ApplicationFee.refunds a list object instead of array 2014-07-28 23:28:24 -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
Vladimir Andrijevik
238e071232 Merge remote-tracking branch 'stripe/master' into nested-to-hash 2014-06-30 12:45:40 +02:00
Kyle Conroy
bb9388384f Bump to version 1.14.0 2014-06-17 17:35:47 -07:00
Kyle Conroy
e59a494215 Add support for refund resource 2014-06-16 17:13:57 -07:00
Kyle Conroy
0695960fc7 Don't check blacklist if SSL verification is off
It's helpful to be able to test the bindings with instances of the
Stripe API running locally, or running on a server that doesn't support
SSL. When :verify_ssl_certs is false, don't check the SSL cert against
the blacklist, as there probably isn't a certificate to check.
2014-06-05 15:49:26 -07:00
Stephen Wan
79cdeb0545 Bump Version 2014-05-28 16:11:40 -07:00
Stephen Wan
f13a050935 Added support for transfer cancelation 2014-05-26 11:30:20 -07:00
Amber Feng
56176b2539 Bump version. 2014-05-21 16:52:13 -07:00
Amber Feng
51af58c947 This needs to be a respond_to? instead. 2014-05-21 11:43:12 -07:00
Amber Feng
bc43fff551 Construct the recipient card URL if the recipient property exists. 2014-05-21 10:49:38 -07:00
Richo Healey
48f76057f4 Document our approach to SSL preflighting 2014-04-10 12:44:16 -07:00
Richo Healey
e6850316f7 Bump version 2014-04-09 20:57:37 -07:00
Richo Healey
67f90ec108 Verify the fingerprint on api.stripe.com before making any requests 2014-04-09 19:57:45 -07:00
Andy Brody
6944e4e97f Update CA certificates bundle to 20130906.
http://www.ubuntu.com/usn/usn-2154-1/
https://gist.github.com/ab/9756531
2014-03-25 00:24:05 -07:00
Andy Brody
5c166e09c2 Sort the CA bundle in preparation for updating it. 2014-03-24 23:18:41 -07:00
Vladimir Andrijevik
5502c58162 Merge remote-tracking branch 'origin/master' into nested-to-hash 2014-03-18 11:10:14 +01:00
Matt Colyer
974f5ce425 Check for @values in StripeObject#method_not_found
If a StripeObject is being deserialized by psych, @values.has_key? is
called before @values is initialized which prevents proper
deserialization from occurring. Checking for existence first resolves
the issue.
2014-02-24 14:16:21 -08:00
Amber Feng
5a7d69cd04 Bump version to 1.10.2 2014-02-18 14:56:55 -08:00
Logan Leger
3ba9148042 Add ability to create subscriptions without fetching customer record
This commit adds `Customer#create_subscription`, which allows a
subscription to be created on a customer without first fetching the
customer record.

Previously:
```
customer = Stripe::Customer.retrieve('cus_abc123def') # GET request
customer.subscriptions.create(plan: 'cool-plan-1')    # POST request
```

**No alteration has been made to the above method; the preceding
implementation still functions as it did previously.**

With `#create_subscription`:
```
customer = Stripe::Customer.new('cus_abc123def')      # No request
customer.create_subscription(plan: 'cool-plan-1')     # POST request
```

This method removes the initial `GET` request and instead issues a
`POST` directly to create the subscription.
2014-02-18 15:12:44 -06:00
Vladimir Andrijevik
310c69e90d In StripeObject#to_hash, call #to_hash on values which respond to it 2014-02-12 20:19:30 +01:00
Andrew Thorp
218178ea54 Bump to 1.10.1 2014-02-03 21:37:07 -06:00
Andrew Thorp
0fdd830975 fixed marshaling forrealz 2014-02-03 21:29:32 -06:00
Andrew Thorp
c46d285b47 fix lurky marshaling 2014-02-03 21:29:32 -06:00
Andrew Thorp
f74edde14c remove nilcheck of @values 2014-02-03 21:29:32 -06:00
Andrew Thorp
7ec8a12dff use _dump and self._load instead of marshal_* 2014-02-03 21:29:32 -06:00
Andrew Thorp
02b40e6637 fix tests 2014-02-03 21:29:32 -06:00
Andrew Thorp
c880d6a277 fixed marshaling of stripe objects, fixes #90 2014-02-03 21:29:32 -06:00
Andrew Thorp
7275b9b951 whoops, respond_to? cannot be protected 2014-02-03 21:29:32 -06:00
Andrew Thorp
11ed3d2d32 Merge pull request #110 from stripe/allow-expanding-on-save
Allow save to take opts
2014-01-29 17:50:06 -08:00
Andrew Thorp
9b3a3a020b Merge pull request #106 from stripe/replace-multi-json-with-json
Replace multi_json with json
2014-01-29 17:49:41 -08:00
Jim Danz
eeb2528a74 Bump version to 1.10.0 2014-01-29 16:51:03 -08:00
Jim Danz
02b1b05eef Merge branch 'master' of github.com:stripe/stripe-ruby into ms 2014-01-29 14:59:33 -08:00
Jim Danz
c4d5774170 Support deleting subscription discounts 2014-01-29 14:59:29 -08:00
Jim Danz
06cfcc6131 Also uncomment legacy methods 2014-01-29 14:59:23 -08:00
Jim Danz
8231fba217 Revert "Clearing out subscription code/tests from Customer."
This reverts commit d6ebab33109ff2501ba9709d2ac1dd666be0ab67.
We'll support the legacy single-subscription API style
indefinitely, and also we generaly try to make it so that
people can use modern bindings with out-of-date API versions.
2014-01-29 14:57:40 -08:00
Jim Danz
97f8df2934 Merge branch 'multiple-subscriptions' of github.com:pat/stripe-ruby into ms 2014-01-29 14:42:57 -08:00
Andrew Thorp
5331e81f54 #save doesn't need an api_key, it's on the object already 2014-01-26 12:13:39 -06:00
Andrew Thorp
88b4afbac0 allow save to take opts, and an api_key
fixes #78
2014-01-25 15:26:51 -08:00
Andrew Thorp
8b5f7d038c whoops, respond_to? cannot be protected 2014-01-24 23:37:35 -08:00
Andrew Thorp
ebfe240ab5 whoops, respond_to? cannot be protected 2014-01-24 23:37:09 -08:00
Andrew Thorp
9ead81b352 replace multi_json with json, fixes #101 2014-01-24 23:27:25 -08:00
Andrew Thorp
8b3a00c587 cleaning up a pull request from @thomasbrus 2014-01-24 21:27:45 -08:00
Thomas Brus
6a7f705be3 Fall back to #respond_to? if ruby version is lower than 1.9.2 2014-01-24 21:27:45 -08:00
Thomas Brus
a4b12fac62 Override #respond_to_missing? instead 2014-01-24 21:27:45 -08:00
Thomas Brus
dc10c1b344 Implemented #respond_to? 2014-01-24 21:27:45 -08:00
Andrew Thorp
ff7595c006 Merge pull request #97 from surfacedamage/customer-create-upcoming-invoice
Allow creation of new Invoice off Customer
2014-01-24 20:46:08 -08:00
Jim Danz
5bfe10c031 Add missing List operation to card 2014-01-22 19:42:04 -10:00
Pat Allan
b0f0c03990 Ensure delete parameters are passed through for subscriptions. 2014-01-22 17:42:37 +11:00