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
Lachy Groom
a5a6c19742
update version
2013-09-18 15:48:11 -07:00
Lachy Groom
30da413efc
ability to close disputes
2013-09-18 15:43:05 -07:00
Amber Feng
06c860aeea
Bump version to 1.8.6.
2013-08-13 20:58:34 +01:00
Finbarr Taylor
0851f2a7fd
Added BalanceTransaction list resource.
...
Added Balance singleton resource.
2013-08-13 20:53:19 +01:00
Andrew Metcalf
56d8b910f7
Bump version
2013-08-12 09:07:37 -07:00
Andrew Metcalf
d291020a43
clean up syntax
2013-08-06 15:47:33 -07:00
Andrew Metcalf
7d2ca0dbee
better error messaging
2013-08-06 15:26:22 -07:00
Andrew Metcalf
88ead09193
support unsetting parameters by passing nil and updating
2013-08-06 11:37:35 -07:00
Sheena Pakanati
664a63a4de
Bump version to 1.8.4
2013-07-11 17:49:03 -07:00
Sheena Pakanati
87604d945e
Initial support for multiple cards.
2013-07-11 16:47:58 -07:00
Tim Craft
66be9d48dd
Fix comment and use two argument form of Hash#fetch
2013-07-05 19:42:00 +01:00
Tim Craft
da6736478e
Refactor Stripe::Util.convert_to_stripe_object method
...
* Extract hash mapping into object_classes method/ivar
* Use Hash#fetch instead of `if` and `||=`
2013-07-05 18:41:34 +01:00
Evan Broder
1fbce5288c
Add a more helpful error message to ListObject#[]
...
Our list calls return their results wrapped in an object so that we
can include extra information. We use this, e.g., to include the URL
to query for more records in the Transfer#transactions sublist.
When you get a ListObject, if you want to actually manipulate it as a
list, you have to call `#data` first to get the actual underlying
list.
This adds an exception to the `#[]` method to make what's going on
clearer.
Fixes #68
2013-06-30 23:00:01 -07:00
Evan Broder
daafdb983d
Fix confusion in ListObject around where api_key was coming from
...
Fixes #69
2013-06-30 22:34:30 -07:00
Evan Broder
c52973e7de
Add a comment explaining file_readable
2013-06-29 22:46:52 -07:00
Evan Broder
2dbc700fc3
Bump version
2013-05-06 13:56:14 -07:00
Evan Broder
aecfaa818f
Bump version
2013-05-01 16:34:18 -07:00
Evan Broder
a95da742d4
Pass the customer-specific API key when getting the upcoming invoice
2013-05-01 15:02:34 -07:00
Evan Broder
dcb407c6d7
Merge remote-tracking branch 'origin/pull/65'
2013-05-01 14:46:23 -07:00
Evan Broder
1b3dd625fd
Merge remote-tracking branch 'origin/pull/60'
2013-05-01 14:43:44 -07:00
Evan Broder
a3884060a3
Merge remote-tracking branch 'origin/pull/58'
2013-05-01 14:38:05 -07:00
Brian Collins
56f9ba200f
Add api_key argument to Invoice.upcoming
2013-04-19 13:06:17 +01:00
Rob Law
7e9407143e
Add customer.upcoming_invoice convenience method
...
It seems to embrace the 'Ruby Way' (and more convenient in my own code) to be able to access an upcoming invoice from the customer itself rather than de-reference the customer id and ask the Invoice class itself for that info.
2013-04-14 14:21:29 +03:00
Amber Feng
cdf09a6f75
Bump version to 1.8.0.
2013-04-11 18:07:53 -07:00
Amber Feng
b081187095
Allow creating transfers, add recipient object.
2013-04-11 18:00:31 -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
Tim Craft
6b43da28e3
Always call to_sym instead of type checking in Stripe::StripeObject#[] method
2013-03-14 14:06:09 +00:00
Ross Boucher
56b792ccad
Update version
2013-02-21 12:09:10 -08:00
Ross Boucher
b2aafa854e
Add id to the list of permanent attributes
2013-02-21 11:54:16 -08:00
Ross Boucher
5ffde047d3
Add the ability to send options with retrieve requests.
2013-02-01 12:12:03 -08:00
Sheena Pakanati
4df245996b
Add support for setting API version.
2013-01-15 11:31:03 -08:00
Evan Broder
cf3c4a11b6
Bump version
2012-11-21 13:59:18 -08:00
Amber Feng
be31c1934f
Fix account API resource bug.
2012-11-08 14:40:15 -08:00
Sheena Pakanati
a841cbe0f4
Update version to 1.7.7
2012-11-08 12:18:31 -08:00
Sheena Pakanati
f389031887
Support for updating charge disputes
2012-11-08 12:16:36 -08:00
Ross Boucher
140ef12a06
Merge remote branch 'origin/sp-invoice-create'
2012-10-30 17:04:35 -07:00
Ross Boucher
c0999ac5bb
Remove the conflicting definition of transactions for transfers.
2012-10-29 22:13:07 -07:00
Sheena Pakanati
fd42cec19d
Add support for creating invoices; bump version.
2012-10-29 11:03:51 -07:00
Ross Boucher
7f87b2bc4a
Add support for list objects. Bumps version to 1.7.5
2012-10-25 19:42:23 -07:00
Evan Broder
7571ab5a38
Bump version
2012-10-08 16:54:40 -07:00
Evan Broder
f625968bfd
Bump version
2012-09-14 20:36:16 -07:00
Evan Broder
6b58d14fc1
URL-encode values (as well as keys) in GET params
2012-09-14 20:30:49 -07:00
Sheena Pakanati
fa2cc10632
Bump version.
2012-08-31 10:05:18 +05:30
Sheena Pakanati
151c25872f
Add support for updating and paying to invoices
2012-08-31 10:02:37 +05:30
Amber Feng
478ff80ac4
Add Account API resource.
2012-08-16 12:25:15 -07:00
Greg Brockman
22907c7046
Fixup whitespace
2012-06-19 23:15:08 -07:00
Greg Brockman
6031cbf7b1
Improve method layout
2012-06-19 23:13:59 -07:00
Greg Brockman
020177faa5
Merge pull request #28 from HashNuke/refactor2
...
Refactors code into different files and other minor changes
2012-05-22 23:06:18 -07:00