espago 0.0.7 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/Gemfile.lock +1 -1
- data/lib/espago/version.rb +1 -1
- metadata +2 -13
- data/lib/espago/api_connection/delete_invoice_items.rb +0 -13
- data/lib/espago/api_connection/delete_plans.rb +0 -13
- data/lib/espago/api_connection/delete_subscriptions.rb +0 -13
- data/lib/espago/api_connection/get_invoice_items.rb +0 -13
- data/lib/espago/api_connection/get_invoices.rb +0 -17
- data/lib/espago/api_connection/get_plans.rb +0 -17
- data/lib/espago/api_connection/get_subscriptions.rb +0 -17
- data/lib/espago/api_connection/post_invoice_items.rb +0 -13
- data/lib/espago/api_connection/post_plans.rb +0 -13
- data/lib/espago/api_connection/post_subscriptions.rb +0 -13
- data/lib/espago/api_connection/put_plans.rb +0 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f06d19baed38844060f767678cc1e08df0b64ba
|
4
|
+
data.tar.gz: 40a3d3d5c42aa5751425aaf3f6ac47428f2b5168
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76c47df71036ce428b04abf38ab7dad46122b4d92cc833dfc7280634845dc3ae6e4f3d6b053b95cf4d6f648bd4f6d155ba111a9d3c78688357b15dc5e4370d42
|
7
|
+
data.tar.gz: cb034408241e51d751e5bdeb37fce8015a0fbe5e8825c827d2d1b4a6a4241a8ed965e7f7a068599d91b125a8189689dd507e2df1f9da4408eb006a3c1963788b
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
data/lib/espago/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: espago
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piotrek
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-09-
|
12
|
+
date: 2013-09-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faraday
|
@@ -157,27 +157,16 @@ files:
|
|
157
157
|
- lib/espago/api_connection.rb
|
158
158
|
- lib/espago/api_connection/delete_charges.rb
|
159
159
|
- lib/espago/api_connection/delete_clients.rb
|
160
|
-
- lib/espago/api_connection/delete_invoice_items.rb
|
161
|
-
- lib/espago/api_connection/delete_plans.rb
|
162
|
-
- lib/espago/api_connection/delete_subscriptions.rb
|
163
160
|
- lib/espago/api_connection/get_charges.rb
|
164
161
|
- lib/espago/api_connection/get_clients.rb
|
165
|
-
- lib/espago/api_connection/get_invoice_items.rb
|
166
|
-
- lib/espago/api_connection/get_invoices.rb
|
167
|
-
- lib/espago/api_connection/get_plans.rb
|
168
|
-
- lib/espago/api_connection/get_subscriptions.rb
|
169
162
|
- lib/espago/api_connection/get_tokens.rb
|
170
163
|
- lib/espago/api_connection/post_charges.rb
|
171
164
|
- lib/espago/api_connection/post_charges_refund.rb
|
172
165
|
- lib/espago/api_connection/post_clients.rb
|
173
166
|
- lib/espago/api_connection/post_clients_authorize.rb
|
174
167
|
- lib/espago/api_connection/post_complete.rb
|
175
|
-
- lib/espago/api_connection/post_invoice_items.rb
|
176
|
-
- lib/espago/api_connection/post_plans.rb
|
177
|
-
- lib/espago/api_connection/post_subscriptions.rb
|
178
168
|
- lib/espago/api_connection/post_tokens.rb
|
179
169
|
- lib/espago/api_connection/put_clients.rb
|
180
|
-
- lib/espago/api_connection/put_plans.rb
|
181
170
|
- lib/espago/client.rb
|
182
171
|
- lib/espago/error.rb
|
183
172
|
- lib/espago/error/api_error.rb
|
@@ -1,17 +0,0 @@
|
|
1
|
-
module Espago
|
2
|
-
class ApiConnection
|
3
|
-
class GetInvoices
|
4
|
-
def initialize(connection)
|
5
|
-
@connection = connection
|
6
|
-
end
|
7
|
-
|
8
|
-
def request(params = {})
|
9
|
-
if params[:invoice_id]
|
10
|
-
@connection.get "invoices/#{params[:invoice_id]}"
|
11
|
-
else
|
12
|
-
@connection.get "invoices", params
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
@@ -1,17 +0,0 @@
|
|
1
|
-
module Espago
|
2
|
-
class ApiConnection
|
3
|
-
class GetPlans
|
4
|
-
def initialize(connection)
|
5
|
-
@connection = connection
|
6
|
-
end
|
7
|
-
|
8
|
-
def request(params = {})
|
9
|
-
if params[:plan_id]
|
10
|
-
@connection.get "plans/#{params[:plan_id]}"
|
11
|
-
else
|
12
|
-
@connection.get "plans", params
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
@@ -1,17 +0,0 @@
|
|
1
|
-
module Espago
|
2
|
-
class ApiConnection
|
3
|
-
class GetSubscriptions
|
4
|
-
def initialize(connection)
|
5
|
-
@connection = connection
|
6
|
-
end
|
7
|
-
|
8
|
-
def request(params = {})
|
9
|
-
if params[:subscription_id]
|
10
|
-
@connection.get "subscriptions/#{params[:subscription_id]}"
|
11
|
-
else
|
12
|
-
@connection.get "subscriptions", params
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|