fnz_client 0.0.3 → 0.0.4
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/app/models/membership.rb +14 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NDdiMTQ4NWJmMzY2NTY0ZWQzOGJlNTA3OWU4MGE1NWQ3MjAyZGUxNQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NDRjZTZlY2E2Y2I1MzgzYmZmYjk5OWI2NThkNThiNzJiOGM5MzhjNw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZWMxMDgzZWE4ZWYzMDMwM2VmMjdjNzc5ODY2MTk0YTUwYTYzMzgxZjJkN2U0
|
10
|
+
ZTdlNTJhMWU0MmMzZmQyY2NkZDNkNjczODdmYTJjMzY0MDc2Mjk1OGZiNjhh
|
11
|
+
YTA1NjNmMjQ3ODY4NjA1Mzc3NDNjMzk5ZjNmYWNjMmRkMDYyMzI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YmNhNTMwZGNiYjJiODg0NzQyNzM0ZGEyNmFjNDljYjFhYTczZjE1YmEzY2Zl
|
14
|
+
NmJlYjUyY2RkY2RjYThiNWUwZDgwMTI4YWVmYjk3NjY4OTdjY2ViMjVhMGVk
|
15
|
+
ODllMmE3NmNlYjRiMmRmNzE3NTI2ZTYzN2JjNDdlNmNjMjA2Nzc=
|
data/app/models/membership.rb
CHANGED
@@ -7,6 +7,8 @@ class Membership < LogicalModel
|
|
7
7
|
attribute :begins_on # The starting date
|
8
8
|
attribute :ends_on # The finishing date
|
9
9
|
attribute :value # The value
|
10
|
+
attribute :payment_type
|
11
|
+
attribute :padma_contact_id
|
10
12
|
|
11
13
|
self.has_many_keys = [:installments]
|
12
14
|
|
@@ -20,4 +22,15 @@ class Membership < LogicalModel
|
|
20
22
|
end
|
21
23
|
return result
|
22
24
|
end
|
23
|
-
|
25
|
+
|
26
|
+
def self.find_current_memberships(account, contact_ids)
|
27
|
+
self.set_resource_path "/api/v0/businesses/#{account}/current_memberships"
|
28
|
+
results = nil
|
29
|
+
begin
|
30
|
+
results = self.all(:padma_contact_ids => contact_ids)
|
31
|
+
rescue
|
32
|
+
results = nil
|
33
|
+
end
|
34
|
+
return results
|
35
|
+
end
|
36
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fnz_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luis Perichon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -71,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
71
71
|
version: '0'
|
72
72
|
requirements: []
|
73
73
|
rubyforge_project:
|
74
|
-
rubygems_version: 2.2
|
74
|
+
rubygems_version: 2.4.2
|
75
75
|
signing_key:
|
76
76
|
specification_version: 4
|
77
77
|
summary: Client library Padma-fnz API
|