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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 74169da7250db9559dcd77293124823e3309bbe9
4
- data.tar.gz: aede8ef411a5f6fae643384a529bf19dc21cd0ea
3
+ metadata.gz: 65e900787b83f75b846196fecdb69237d62b0589
4
+ data.tar.gz: 24bb5a3e1fc9a76999a3f564c3e96ada3775eccd
5
5
  SHA512:
6
- metadata.gz: 82105210a908f6edaf4b2b77bf73942f809d94dbe99ce16ed9aa06fd2dcf18c493447fabf12ba9717acaa5da9f45bb743b9e31a3c75bf71e23629d41ba1d9775
7
- data.tar.gz: d161fc708ed9e0a23cbe739bcfd37ab32308a78538a5dc21912f45bdeda5abfd6f72ecec1aa31ca4a44a988f8bd0dd644db11249f86c1a5dc22dc9fa9b208e85
6
+ metadata.gz: a4f8867d3fb20e5c60c25567dce61582d2e9dacc414d51b322b9268b9d10eec303411bc9cd7f009ccade522dd4c13eef69d1c2364cef3d1cd7d44aa251ee4499
7
+ data.tar.gz: 4f1527d795fc15174d2a14eb48c06398f733ca9a88004c1e8a95324ebd4184bbc92d5f58229406319024b733100c7048017513e1d354e525613896a1b6f3ca38
data/History.txt CHANGED
@@ -1,4 +1,10 @@
1
- === 1.0.2 2015-04-15
1
+ === 1.0.4 2015-04-16
2
+
3
+ * 1 minor enhancements:
4
+ * Changing the way the refund list is created
5
+
6
+
7
+ === 1.0.3 2015-04-15
2
8
 
3
9
  * 2 minor enhancements:
4
10
  * Adding support for the invoice void endpoint.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.3
1
+ 1.0.5
@@ -4,6 +4,7 @@ module Paid
4
4
  attr_reader :object
5
5
  attr_reader :created_at
6
6
  attr_accessor :starts_on
7
+ attr_accessor :ends_on
7
8
  attr_accessor :next_transaction_on
8
9
  attr_accessor :plan
9
10
  attr_accessor :customer
@@ -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.3
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-04-15 00:00:00.000000000 Z
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.4.5
202
+ rubygems_version: 2.2.2
203
203
  signing_key:
204
204
  specification_version: 4
205
205
  summary: Ruby bindings for Paid API