stripe 1.7.1 → 1.7.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/History.txt +4 -0
- data/README.rdoc +1 -1
- data/VERSION +1 -1
- data/lib/stripe/invoice.rb +11 -0
- data/lib/stripe/version.rb +1 -1
- metadata +4 -4
data/Gemfile.lock
CHANGED
data/History.txt
CHANGED
data/README.rdoc
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.7.
|
1
|
+
1.7.2
|
data/lib/stripe/invoice.rb
CHANGED
@@ -1,16 +1,27 @@
|
|
1
1
|
module Stripe
|
2
2
|
class Invoice < APIResource
|
3
3
|
include Stripe::APIOperations::List
|
4
|
+
include Stripe::APIOperations::Update
|
4
5
|
|
5
6
|
def self.upcoming(params)
|
6
7
|
response, api_key = Stripe.request(:get, upcoming_url, @api_key, params)
|
7
8
|
Util.convert_to_stripe_object(response, api_key)
|
8
9
|
end
|
9
10
|
|
11
|
+
def pay
|
12
|
+
response, api_key = Stripe.request(:post, pay_url, @api_key)
|
13
|
+
refresh_from(response, api_key)
|
14
|
+
self
|
15
|
+
end
|
16
|
+
|
10
17
|
private
|
11
18
|
|
12
19
|
def self.upcoming_url
|
13
20
|
url + '/upcoming'
|
14
21
|
end
|
22
|
+
|
23
|
+
def pay_url
|
24
|
+
url + '/pay'
|
25
|
+
end
|
15
26
|
end
|
16
27
|
end
|
data/lib/stripe/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stripe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 7
|
9
|
-
-
|
10
|
-
version: 1.7.
|
9
|
+
- 2
|
10
|
+
version: 1.7.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ross Boucher
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2012-08-
|
19
|
+
date: 2012-08-31 00:00:00 Z
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
22
|
type: :runtime
|