billimatic-client 0.10.1 → 0.10.2
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/Gemfile.lock +2 -2
- data/README.md +5 -1
- data/lib/billimatic/entities/company.rb +1 -0
- data/lib/billimatic/entities/contract.rb +2 -0
- data/lib/billimatic/resources/subscription.rb +5 -2
- data/lib/billimatic/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MTMwYjgwMjgxZDc0OWU3YjdiMjUyNDdmZWUzNDk5NTIyOWI4ZWViZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MGY2NDc2NTMyMWRlZjdmM2Q0N2VlYjc3OGYxM2NiMjhlODBmYTVmZQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MTg5ZTE0MWJlZTU2YmJmOTkwMDNkZDNiNDk2MzFmMDhlMjA3MjBjMWU1MDM2
|
10
|
+
MTVjNjFlMTBkY2EwZjAwNGU3ZTNkYjlmMGQ0OTdkYjRjNTJiNTJiZDVlMjdk
|
11
|
+
YjBjNDE0NmI1NjQyN2U4YTA1OTBhZGY2ZTU1MmQzNzAyZGI1ZmU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZjU1ZjBiNDY4ZDJlMDBjZTA0ZWM3OTA1MzM0MjlhZDE5M2QyZTI0NTdjZTll
|
14
|
+
NDIyNWYyN2E1OGE0YWRkZTYxYTVhZjljZjJkMDJkZDk0MjFkMmNiZWIzMjM0
|
15
|
+
MTJjYzFiZTgxMjAzNDA2MDBhNTQzNzFmODU2MjQ4NjJkNGZmODc=
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
billimatic-client (0.10.
|
4
|
+
billimatic-client (0.10.2)
|
5
5
|
multi_json (~> 1.11)
|
6
6
|
typhoeus (~> 0.8)
|
7
7
|
virtus (~> 1.0.5)
|
@@ -25,7 +25,7 @@ GEM
|
|
25
25
|
diff-lcs (1.2.5)
|
26
26
|
docile (1.1.5)
|
27
27
|
equalizer (0.0.11)
|
28
|
-
ethon (0.
|
28
|
+
ethon (0.10.1)
|
29
29
|
ffi (>= 1.3.0)
|
30
30
|
ffi (1.9.14)
|
31
31
|
formatador (0.2.5)
|
data/README.md
CHANGED
@@ -237,7 +237,11 @@ client = Billimatic.client("YOUR_TOKEN_HERE")
|
|
237
237
|
</a>
|
238
238
|
</td>
|
239
239
|
<td>
|
240
|
-
<code>
|
240
|
+
<code>
|
241
|
+
# cancel_date and cancel_reason are optional arguments
|
242
|
+
<br>
|
243
|
+
client.subscriptions.cancel(token: token, cancel_date: date, cancel_reason: reason)
|
244
|
+
</code>
|
241
245
|
</td>
|
242
246
|
</tr>
|
243
247
|
</table>
|
@@ -35,8 +35,11 @@ module Billimatic
|
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
38
|
-
def cancel(token:)
|
39
|
-
http.patch(
|
38
|
+
def cancel(token:, cancel_date: nil, cancel_reason: nil)
|
39
|
+
http.patch(
|
40
|
+
"#{resource_base_path}/#{token}/cancel",
|
41
|
+
body: { subscription: { cancel_date: cancel_date, cancel_reason: cancel_reason } }
|
42
|
+
) do |response|
|
40
43
|
respond_with_entity response
|
41
44
|
end
|
42
45
|
end
|
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.10.
|
4
|
+
version: 0.10.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rodrigo Tassinari de Oliveira
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-12-
|
13
|
+
date: 2016-12-20 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: typhoeus
|