89 Commits

Author SHA1 Message Date
Michael Manapat
f3c0766a0d Add fraud reporting methods 2014-12-11 20:33:50 -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
d6e2dae298 Change Helpers to Stripe::TestData 2014-11-14 14:10:45 -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
Kyle Conroy
8d066ca608 Add coupon update 2014-08-06 16:10:18 -07:00
Cosmin Nicolaescu
d3dfa18990 make ApplicationFee.refunds a list object instead of array 2014-07-28 23:28:24 -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
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
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
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
Andrew Thorp
9ead81b352 replace multi_json with json, fixes #101 2014-01-24 23:27:25 -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
Finbarr Taylor
0851f2a7fd Added BalanceTransaction list resource.
Added Balance singleton resource.
2013-08-13 20:53:19 +01:00
Andrew Metcalf
c0ca48f848 rename mnemonic to description 2013-08-07 09:36:54 -07:00
Andrew Metcalf
88ead09193 support unsetting parameters by passing nil and updating 2013-08-06 11:37:35 -07:00
Sheena Pakanati
87604d945e Initial support for multiple cards. 2013-07-11 16:47:58 -07:00
Tim Craft
9ae705f845 Add version specifiers for activesupport/shoulda/mocha dev dependencies 2013-07-05 17:36:36 +01:00
Evan Broder
2861964755 Fix handling of per-resource API keys (fixes #67) 2013-05-06 13:53:00 -07:00
Evan Broder
1b3dd625fd Merge remote-tracking branch 'origin/pull/60' 2013-05-01 14:43:44 -07:00
Evan Broder
91c90ff43e Merge remote-tracking branch 'origin/pull/47'
Conflicts:
	lib/stripe.rb
2013-05-01 14:37:51 -07:00