18 Commits

Author SHA1 Message Date
Brian Krausz
ff5be97ada TIL Hash#select is different in 1.8 2015-02-10 11:25:24 -08:00
Brian Krausz
4d611c62f7 Support persisted use of Stripe-Account header everywhere
Including implicit use in /v1/accounts/ endpoints
2015-02-09 23:38:34 -08:00
Kyle Conroy
43d591a93e Pass along API key 2015-01-08 10:32:57 -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
Kyle Conroy
bfaaae9336 Add per-request headers 2014-12-15 16:11:45 -08:00
Tim Craft
0fc6ee5e5b Return self from Stripe::StripeObject#refresh_from 2014-08-22 19:43:13 +01: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
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
Pat Allan
b0f0c03990 Ensure delete parameters are passed through for subscriptions. 2014-01-22 17:42:37 +11:00
kiran-b
a0f1856cbb refactored update api operation, added ruby 1.9 tests back 2013-10-09 20:56:31 -07:00
kiran-b
b52c98c9c3 added support for setting/deleting individual keys 2013-10-08 17:38:40 -07:00
Brian Collins
b02b557b74 Style tweaks 2013-10-08 13:54:39 -07:00
kiran-b
57656f6e89 update now accounts for metadata={'key' => 'val'} syntax 2013-10-08 13:54:39 -07:00
Andrew Metcalf
88ead09193 support unsetting parameters by passing nil and updating 2013-08-06 11:37:35 -07:00
Jean Boussier
6a57264758 Allow to update a resource without retreiving it first
Rationale:

  Sometime you don't care about the current state of a resource
  you just want to update one of it's attributes.
  It should only require one request.

fixes #52

```ruby
  c = Stripe::Customer.new("cus_1EqKjPaFs4ZwDD")
  c.description = 'Ny new Description'
  c.save
```

Before:

```json
{
  error: {
    type: "invalid_request_error",
    message: "A parameter provided in the URL (id) was repeated as a GET or POST parameter. You can only provide this information as a portion of the URL.",
    param: "id",
  }
}
```

After:

Successfully update the customer and return it's whole state.
2013-03-14 11:04:18 -04:00
Greg Brockman
22907c7046 Fixup whitespace 2012-06-19 23:15:08 -07:00
Akash Manohar J
90ef0971d9 Moves API operations to seperate files
Signed-off-by: Akash Manohar J <akash@akash.im>
2012-05-15 02:56:40 +05:30