api-moip-assinaturas 0.2.20 → 0.2.22
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 +8 -8
- data/api_moip_assinaturas.gemspec +1 -1
- data/lib/moip/models/subscription.rb +1 -10
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
Y2I1YjE3ZWY5NzQwNTViNjhiZDJkMzk0OGJhOWUzNGIyMmEyYTc1Mw==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
MTIzNTM3YzdlY2I2OTIyYzFlOWZkNWQ2MTIyMjcxZWZkOGIwNzJiMw==
|
|
7
7
|
!binary "U0hBNTEy":
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
MzY3MzcyZWE1OWY4ZjYyMTViNTU4YTZmZTQxYTRiMDU1OTMyODJiYzMxNzlk
|
|
10
|
+
ODFjYjkzYmMwNDU5MmQ3NTM2YzRjYmZiZjFjMzc0ZjFmODA1ZjdjMzZhNDc1
|
|
11
|
+
YjdkNzVmOGIwMzk0OWI4ZDI5ZDkwOGY3YjIzYjY3OTAxYjkwNjQ=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
YjI1YTdjYTNlNzZjMDU0M2NiYTc1ODllNWFjODU2YzU2NjYwNTFkZWE1NTYy
|
|
14
|
+
YWM2YTllMjcwOGZiNjdmMDE5Y2NjNWNlMzhkNThjZmViMzM3MGVlYWI3MTAw
|
|
15
|
+
ZjZiMzExMGU1NzEyYTE4NWJiNzRkOWYzMDU1YjI4OWUxODA2NjQ=
|
|
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
|
3
3
|
|
|
4
4
|
Gem::Specification.new do |s|
|
|
5
5
|
s.name = 'api-moip-assinaturas'
|
|
6
|
-
s.version = '0.2.
|
|
6
|
+
s.version = '0.2.22'
|
|
7
7
|
s.date = '2013-07-02'
|
|
8
8
|
s.summary = "Moip Assinaturas by Pixxel"
|
|
9
9
|
s.description = "Gem desenvolvida para atender aos requisitos do moip api de assinaturas"
|
|
@@ -8,7 +8,7 @@ class Moip::Subscription < Moip::Model
|
|
|
8
8
|
:errors, :alerts, :invoice, :creation_date,
|
|
9
9
|
:expiration_date, :subscriptions
|
|
10
10
|
|
|
11
|
-
validates :code, :amount,
|
|
11
|
+
validates :code, :amount, :plan, :customer, :presence => true
|
|
12
12
|
|
|
13
13
|
def attributes
|
|
14
14
|
{
|
|
@@ -119,13 +119,4 @@ class Moip::Subscription < Moip::Model
|
|
|
119
119
|
|
|
120
120
|
self.class.put(base_url(:subscriptions, :code => self.code), default_header(hash.to_json)).parsed_response
|
|
121
121
|
end
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
122
|
end
|