85 Commits

Author SHA1 Message Date
Vladimir Andrijevik
238e071232 Merge remote-tracking branch 'stripe/master' into nested-to-hash 2014-06-30 12:45:40 +02:00
Kyle Conroy
e59a494215 Add support for refund resource 2014-06-16 17:13:57 -07:00
Stephen Wan
c25d4b0cbf Cleaned up transfer tests 2014-05-27 16:59:22 -07:00
Stephen Wan
f13a050935 Added support for transfer cancelation 2014-05-26 11:30:20 -07:00
Michelle Bu
57309a05de Add tests for cards 2014-05-21 16:27:49 -07:00
Richo Healey
67f90ec108 Verify the fingerprint on api.stripe.com before making any requests 2014-04-09 19:57:45 -07:00
Vladimir Andrijevik
5502c58162 Merge remote-tracking branch 'origin/master' into nested-to-hash 2014-03-18 11:10:14 +01:00
Amber Feng
089090cbe3 Merge pull request #121 from newaperio/lleger-create-subscription
Add ability to create subscriptions without fetching customer record. Closes #120.
2014-02-18 14:39:17 -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
Vladimir Andrijevik
650179b2aa Fix order of assert_equal calls that were backwards 2014-02-12 20:18:52 +01:00
Andrew Thorp
7ec8a12dff use _dump and self._load instead of marshal_* 2014-02-03 21:29:32 -06:00
Andrew Thorp
45fe0c2591 whoops, forgot 1.8 support 2014-02-03 21:29:16 -06:00
Andrew Thorp
413939f89f fixed marshaling of stripe objects, fixes #90 2014-02-03 21:29:16 -06:00
Jim Danz
d2058b3d1a Fixup old tests for new param style in test_subscription 2014-01-29 16:34:48 -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
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
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
42cee040e0 Added unit test for 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
Pat Allan
b0f0c03990 Ensure delete parameters are passed through for subscriptions. 2014-01-22 17:42:37 +11:00
Pat Allan
d6ebab3310 Clearing out subscription code/tests from Customer. 2014-01-22 17:09:49 +11:00
Pat Allan
ee42d9c583 Adding tests for Subscription. 2014-01-22 17:09:49 +11:00
Amber Feng
127e906d60 Unit tests for ApplicationFee. 2013-11-14 14:04:55 -08:00
Amber Feng
0149f83027 Fix api_resource_test to not return in blocks. 2013-11-14 13:52:22 -08:00
Amber Feng
84bda71e62 Remove whitespace. 2013-11-14 13:52:14 -08:00
surfacedamage
73919cd1d5 Allow creation of new invoice off customer 2013-10-31 22:09:30 -04:00
Vipul A M
3e019adb6a Cleanup unused test variables 2013-10-25 23:23:22 +05:30
kiran-b
a0f1856cbb refactored update api operation, added ruby 1.9 tests back 2013-10-09 20:56:31 -07:00
kiran-b
2970a577ba removed occasionally failing test: curl args order inconsistent 2013-10-08 21:13:44 -07:00
kiran-b
1724f85e26 tests for metadata 2013-10-08 21:01:13 -07:00
Michelle Bu
f9b13dfc2a active_card is no longer a thing 2013-10-07 10:05:59 -07:00
David Czarnecki
e593b0e0df Breakup tests into separate test files 2013-03-22 17:20:04 -04:00