paid 1.0.3 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/History.txt +7 -1
- data/VERSION +1 -1
- data/lib/paid/subscription.rb +1 -0
- data/lib/paid/transaction.rb +5 -9
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65e900787b83f75b846196fecdb69237d62b0589
|
4
|
+
data.tar.gz: 24bb5a3e1fc9a76999a3f564c3e96ada3775eccd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4f8867d3fb20e5c60c25567dce61582d2e9dacc414d51b322b9268b9d10eec303411bc9cd7f009ccade522dd4c13eef69d1c2364cef3d1cd7d44aa251ee4499
|
7
|
+
data.tar.gz: 4f1527d795fc15174d2a14eb48c06398f733ca9a88004c1e8a95324ebd4184bbc92d5f58229406319024b733100c7048017513e1d354e525613896a1b6f3ca38
|
data/History.txt
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.5
|
data/lib/paid/subscription.rb
CHANGED
data/lib/paid/transaction.rb
CHANGED
@@ -9,14 +9,7 @@ module Paid
|
|
9
9
|
attr_accessor :paid_on
|
10
10
|
attr_accessor :properties
|
11
11
|
attr_accessor :invoice
|
12
|
-
attr_accessor :refunds
|
13
12
|
|
14
|
-
def refresh_from(json={}, api_method=nil)
|
15
|
-
super(json, api_method)
|
16
|
-
json = { :id => json } unless json.is_a?(Hash)
|
17
|
-
@refunds = RefundList.new(json[:refunds], nil, id)
|
18
|
-
self
|
19
|
-
end
|
20
13
|
|
21
14
|
def self.all(params={}, headers={})
|
22
15
|
method = APIMethod.new(:get, "/transactions", params, headers, self)
|
@@ -57,6 +50,10 @@ module Paid
|
|
57
50
|
self.refresh_from(method.execute, method)
|
58
51
|
end
|
59
52
|
|
53
|
+
def refunds
|
54
|
+
RefundList.new(nil, nil, id)
|
55
|
+
end
|
56
|
+
|
60
57
|
APIResource.register_api_subclass(self, "transaction")
|
61
58
|
@api_attributes = {
|
62
59
|
:id => { :readonly => true },
|
@@ -67,8 +64,7 @@ module Paid
|
|
67
64
|
:paid => nil,
|
68
65
|
:paid_on => nil,
|
69
66
|
:properties => nil,
|
70
|
-
:invoice => nil
|
71
|
-
:refunds => { :constructor => :RefundList, :provide_parent => true }
|
67
|
+
:invoice => nil
|
72
68
|
}
|
73
69
|
end
|
74
70
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jon Calhoun
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-05-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rest-client
|
@@ -199,7 +199,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
199
199
|
version: '0'
|
200
200
|
requirements: []
|
201
201
|
rubyforge_project:
|
202
|
-
rubygems_version: 2.
|
202
|
+
rubygems_version: 2.2.2
|
203
203
|
signing_key:
|
204
204
|
specification_version: 4
|
205
205
|
summary: Ruby bindings for Paid API
|