billimatic-client 0.22.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +2 -2
- data/README.md +0 -22
- data/lib/billimatic/resources/subscription.rb +0 -17
- data/lib/billimatic/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: feac5562401a7125837233e672cc3231345486b4
|
4
|
+
data.tar.gz: 2ae017aa7eff7629b81029a76a7e18ee7672891c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee66656fe110a806e831fd194b52706702a6eb7024597be7e74d5f9397b96330b3cc8d6e7e98d69195dd22742efccb63db45005a5a0bded6aad5e69dc56fddb4
|
7
|
+
data.tar.gz: ffb56fc81b30630e060fc30eadbce7aedd8f501b90cb8ba9a7561b8aedbaa4515c420c3eeec1ce81994c565dab66357879e28626aaa29133e76d5781a40d126f
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -199,17 +199,6 @@ client = Billimatic.client("YOUR_TOKEN_HERE")
|
|
199
199
|
<code>client.subscriptions.create(attributes_hash)</code>
|
200
200
|
</td>
|
201
201
|
</tr>
|
202
|
-
<tr>
|
203
|
-
<td><code>POST</code></td>
|
204
|
-
<td>
|
205
|
-
<a href="https://myfreecomm.github.io/billimatic-api-docs/#checkout-de-assinatura" target="_blank">
|
206
|
-
/api/v1/subscriptions/checkout/:token
|
207
|
-
</a>
|
208
|
-
</td>
|
209
|
-
<td>
|
210
|
-
<code>client.subscriptions.checkout(attributes_hash, token: token)</code>
|
211
|
-
</td>
|
212
|
-
</tr>
|
213
202
|
<tr>
|
214
203
|
<td><code>PATCH</code></td>
|
215
204
|
<td>
|
@@ -221,17 +210,6 @@ client = Billimatic.client("YOUR_TOKEN_HERE")
|
|
221
210
|
<code>client.subscriptions.change_plan(token: token, new_plan_id: id)</code>
|
222
211
|
</td>
|
223
212
|
</tr>
|
224
|
-
<tr>
|
225
|
-
<td><code>PATCH</code></td>
|
226
|
-
<td>
|
227
|
-
<a href="https://myfreecomm.github.io/billimatic-api-docs/#trocas-de-forma-de-pagamento-em-assinaturas" target="_blank">
|
228
|
-
/api/v1/subscriptions/:token/update_payment_information
|
229
|
-
</a>
|
230
|
-
</td>
|
231
|
-
<td>
|
232
|
-
<code>client.subscriptions.update_payment_information(attributes_hash, token: token)</code>
|
233
|
-
</td>
|
234
|
-
</tr>
|
235
213
|
<tr>
|
236
214
|
<td><code>PATCH</code></td>
|
237
215
|
<td>
|
@@ -9,14 +9,6 @@ module Billimatic
|
|
9
9
|
end
|
10
10
|
end
|
11
11
|
|
12
|
-
def checkout(params, token:)
|
13
|
-
http.post(
|
14
|
-
"#{resource_base_path}/checkout/#{token}", body: { subscription: params }
|
15
|
-
) do |response|
|
16
|
-
respond_with_entity response
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
12
|
def change_plan(token:, new_plan_id:)
|
21
13
|
http.patch(
|
22
14
|
"#{resource_base_path}/#{token}/change_plan",
|
@@ -26,15 +18,6 @@ module Billimatic
|
|
26
18
|
end
|
27
19
|
end
|
28
20
|
|
29
|
-
def update_payment_information(params, token:)
|
30
|
-
http.patch(
|
31
|
-
"#{resource_base_path}/#{token}/update_payment_information",
|
32
|
-
body: { subscription: params }
|
33
|
-
) do |response|
|
34
|
-
respond_with_entity response
|
35
|
-
end
|
36
|
-
end
|
37
|
-
|
38
21
|
def cancel(token:, cancel_date: nil, cancel_reason: nil)
|
39
22
|
http.patch(
|
40
23
|
"#{resource_base_path}/#{token}/cancel",
|
data/lib/billimatic/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: billimatic-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rodrigo Tassinari de Oliveira
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: exe
|
14
14
|
cert_chain: []
|
15
|
-
date: 2019-05-
|
15
|
+
date: 2019-05-28 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: typhoeus
|