stripe 1.7.6 → 1.7.7
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/VERSION +1 -1
- data/lib/stripe/charge.rb +10 -0
- data/lib/stripe/singleton_api_resource.rb +1 -1
- data/lib/stripe/version.rb +1 -1
- metadata +16 -16
data/History.txt
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.7.
|
1
|
+
1.7.7
|
data/lib/stripe/charge.rb
CHANGED
@@ -16,6 +16,12 @@ module Stripe
|
|
16
16
|
self
|
17
17
|
end
|
18
18
|
|
19
|
+
def update_dispute(params)
|
20
|
+
response, api_key = Stripe.request(:post, dispute_url, @api_key, params)
|
21
|
+
refresh_from({ :dispute => response }, api_key, true)
|
22
|
+
dispute
|
23
|
+
end
|
24
|
+
|
19
25
|
private
|
20
26
|
|
21
27
|
def refund_url
|
@@ -25,5 +31,9 @@ module Stripe
|
|
25
31
|
def capture_url
|
26
32
|
url + '/capture'
|
27
33
|
end
|
34
|
+
|
35
|
+
def dispute_url
|
36
|
+
url + '/dispute'
|
37
|
+
end
|
28
38
|
end
|
29
39
|
end
|
@@ -4,7 +4,7 @@ module Stripe
|
|
4
4
|
if self == SingletonAPIResource
|
5
5
|
raise NotImplementedError.new('SingletonAPIResource is an abstract class. You should perform actions on its subclasses (Account, etc.)')
|
6
6
|
end
|
7
|
-
"/#{CGI.escape(class_name.downcase)}"
|
7
|
+
"/v1/#{CGI.escape(class_name.downcase)}"
|
8
8
|
end
|
9
9
|
|
10
10
|
def url
|
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: 5
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 7
|
9
|
-
-
|
10
|
-
version: 1.7.
|
9
|
+
- 7
|
10
|
+
version: 1.7.7
|
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-
|
19
|
+
date: 2012-11-09 00:00:00 Z
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
22
|
requirement: &id001 !ruby/object:Gem::Requirement
|
@@ -29,10 +29,10 @@ dependencies:
|
|
29
29
|
- 1
|
30
30
|
- 4
|
31
31
|
version: "1.4"
|
32
|
-
|
32
|
+
prerelease: false
|
33
33
|
type: :runtime
|
34
|
+
name: rest-client
|
34
35
|
version_requirements: *id001
|
35
|
-
prerelease: false
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
requirement: &id002 !ruby/object:Gem::Requirement
|
38
38
|
none: false
|
@@ -44,10 +44,10 @@ dependencies:
|
|
44
44
|
- 1
|
45
45
|
- 1
|
46
46
|
version: "1.1"
|
47
|
-
|
47
|
+
prerelease: false
|
48
48
|
type: :runtime
|
49
|
+
name: multi_json
|
49
50
|
version_requirements: *id002
|
50
|
-
prerelease: false
|
51
51
|
- !ruby/object:Gem::Dependency
|
52
52
|
requirement: &id003 !ruby/object:Gem::Requirement
|
53
53
|
none: false
|
@@ -58,10 +58,10 @@ dependencies:
|
|
58
58
|
segments:
|
59
59
|
- 0
|
60
60
|
version: "0"
|
61
|
-
|
61
|
+
prerelease: false
|
62
62
|
type: :development
|
63
|
+
name: mocha
|
63
64
|
version_requirements: *id003
|
64
|
-
prerelease: false
|
65
65
|
- !ruby/object:Gem::Dependency
|
66
66
|
requirement: &id004 !ruby/object:Gem::Requirement
|
67
67
|
none: false
|
@@ -72,10 +72,10 @@ dependencies:
|
|
72
72
|
segments:
|
73
73
|
- 0
|
74
74
|
version: "0"
|
75
|
-
|
75
|
+
prerelease: false
|
76
76
|
type: :development
|
77
|
+
name: shoulda
|
77
78
|
version_requirements: *id004
|
78
|
-
prerelease: false
|
79
79
|
- !ruby/object:Gem::Dependency
|
80
80
|
requirement: &id005 !ruby/object:Gem::Requirement
|
81
81
|
none: false
|
@@ -86,10 +86,10 @@ dependencies:
|
|
86
86
|
segments:
|
87
87
|
- 0
|
88
88
|
version: "0"
|
89
|
-
|
89
|
+
prerelease: false
|
90
90
|
type: :development
|
91
|
+
name: test-unit
|
91
92
|
version_requirements: *id005
|
92
|
-
prerelease: false
|
93
93
|
- !ruby/object:Gem::Dependency
|
94
94
|
requirement: &id006 !ruby/object:Gem::Requirement
|
95
95
|
none: false
|
@@ -100,10 +100,10 @@ dependencies:
|
|
100
100
|
segments:
|
101
101
|
- 0
|
102
102
|
version: "0"
|
103
|
-
|
103
|
+
prerelease: false
|
104
104
|
type: :development
|
105
|
+
name: rake
|
105
106
|
version_requirements: *id006
|
106
|
-
prerelease: false
|
107
107
|
description: Stripe is the easiest way to accept payments online. See https://stripe.com for details.
|
108
108
|
email:
|
109
109
|
- boucher@stripe.com
|