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
Grant Olson
81ae6d7aee
Due to a server misconfiguration issue, we were low on memory.
...
Attempting to spawn a subprocess to get the uname threw an out of
memory error. Since the uname is only needed to provide diagnostic
info in the User-Agent, it shouldn't cause stripe to fail.
2013-03-20 14:48:26 -04: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
Amber Feng
7ddf3ea42b
Fix URL building for when the base URL already has query parameters, and add test.
2013-03-11 13:19:28 -07:00
Evan Broder
a1ab276487
Merge pull request #51 from timcraft/patch-1
...
Remove rubygems require
2013-02-21 18:19:21 -08: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
06c67e404e
Revert to old style imports
2013-02-04 15:51:48 -08:00
Tim Craft
6a08f656d0
Remove rubygems require
2013-02-04 12:40:10 +00:00
Ross Boucher
5ffde047d3
Add the ability to send options with retrieve requests.
2013-02-01 12:12:03 -08:00
Jamie
16a83dcce5
Update URL for API spec
...
https://stripe.com/api/spec 404's
2013-01-28 15:57:54 -08:00
Sheena Pakanati
4df245996b
Add support for setting API version.
2013-01-15 11:31:03 -08:00
Alex MacCaw
d196d8a343
Throw an error if the API key contains whitespace
2012-12-04 13:38:34 -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
e776c7a3cb
Default the API method params to an empty dict, not nil
...
Fixes #42
2012-10-08 16:24:03 -07:00
Evan Broder
f625968bfd
Bump version
2012-09-14 20:36:16 -07:00
Evan Broder
e8adad2c34
Encoding POST bodies ourselves, instead of letting rest-client
...
It's a bit unfortunate we have to do this, but this avoids an even
more unfortunate interaction between rest-client and hashery that
prevents passing a hash as the payload.
Also update the tests appropriately. This is also a bit messy, but I
didn't want to pull in Rack just for a handful of tests.
Fixes #38
2012-09-14 20:30:52 -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
Akash Manohar J
f21c27113d
Requires stripe/version
...
Signed-off-by: Akash Manohar J <akash@akash.im>
2012-05-23 11:30:41 +05:30
Akash Manohar J
461026c18e
Adds note in readme on how to run test cases
...
Signed-off-by: Akash Manohar J <akash@akash.im>
2012-05-23 11:30:41 +05:30
Akash Manohar J
78bf6a6260
Changes order of require
...
Signed-off-by: Akash Manohar J <akash@akash.im>
2012-05-23 11:30:41 +05:30
Evan Broder
35e7375ad7
Release v1.7.0
2012-05-17 11:48:50 -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
Akash Manohar J
e6fa8fa2f2
Requires all the classes in the stripe.rb file
...
Signed-off-by: Akash Manohar J <akash@akash.im>
2012-05-15 02:48:30 +05:30
Akash Manohar J
481d8110f2
Moves classes to seperate files
...
Signed-off-by: Akash Manohar J <akash@akash.im>
2012-05-15 02:38:09 +05:30
Evan Broder
f84ee25b03
Re-add StripeObject#as_json to make ActiveSupport happy
...
Fixes #25
2012-05-07 17:23:18 -07:00
Evan Broder
5f70ea3bbd
Merge branch 'signal'
2012-05-04 22:52:14 -07:00
Evan Broder
065f2316c7
Don't accept params to delete_customer because Stripe accepts none
2012-05-04 22:48:08 -07:00
Evan Broder
776807349f
Add new Transfer API endpoints
2012-05-04 15:58:05 -07:00
Evan Broder
1b2f07a9ea
Merge branch 'multi_json'
...
Fixes #19 and #22
2012-04-30 14:46:36 -07:00
Evan Broder
56d7c98945
Switch from Basic to Bearer auth
...
Stripe will be supporting Basic auth for the indefinite future, but
our API keys map onto Bearer auth more cleanly, and using it lets us
get rid of the base64 encoding step.
2012-04-30 14:41:46 -07:00
Evan Broder
f8073e132a
Add our own JSON abstraction to deal with MultiJson backwards compatibility
...
Thanks to Kevin Menard for the tip on how to approach it.
2012-04-26 13:58:20 -07:00