billimatic-client 0.22.1 → 1.0.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eee57dd42e1024faca5d50589b6e9034f6ba352d
4
- data.tar.gz: 68faff10246eaec84989a76b7286e2d0cf9136ce
3
+ metadata.gz: feac5562401a7125837233e672cc3231345486b4
4
+ data.tar.gz: 2ae017aa7eff7629b81029a76a7e18ee7672891c
5
5
  SHA512:
6
- metadata.gz: f24783ced836b47a093f498e8b630bf45cc7b754e6baed822874569383bba2c3248c8867f9ac9944adf57e25ca78cdba300a8aefe5397949df0fdcf42dee527a
7
- data.tar.gz: 6b7fa498c5074b851c9c7829e8ee690e9e4dc379427b8b5fcdb730e94b153af9d0e8b3ccf2878ec501850b748e16283d805bf427c8f2a04828602e40b8f4c6e5
6
+ metadata.gz: ee66656fe110a806e831fd194b52706702a6eb7024597be7e74d5f9397b96330b3cc8d6e7e98d69195dd22742efccb63db45005a5a0bded6aad5e69dc56fddb4
7
+ data.tar.gz: ffb56fc81b30630e060fc30eadbce7aedd8f501b90cb8ba9a7561b8aedbaa4515c420c3eeec1ce81994c565dab66357879e28626aaa29133e76d5781a40d126f
@@ -2,6 +2,11 @@
2
2
 
3
3
  ## Next version
4
4
 
5
+ ## v1.0.0
6
+ ### BREAKING CHANGES
7
+ - Removes Subscription#checkout endpoint.
8
+ - Removes Subscription#update_payment_information endpoint.
9
+
5
10
  ## v0.22.1
6
11
  - Adds `overdue_automatic_management` attribute on Contract entity.
7
12
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- billimatic-client (0.22.1)
4
+ billimatic-client (1.0.0)
5
5
  multi_json (~> 1.11)
6
6
  typhoeus (~> 0.8)
7
7
  virtus (~> 1.0.5)
@@ -119,4 +119,4 @@ DEPENDENCIES
119
119
  vcr (~> 3.0)
120
120
 
121
121
  BUNDLED WITH
122
- 1.16.6
122
+ 1.17.3
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",
@@ -1,3 +1,3 @@
1
1
  module Billimatic
2
- VERSION = '0.22.1'
2
+ VERSION = '1.0.0'
3
3
  end
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.22.1
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-02 00:00:00.000000000 Z
15
+ date: 2019-05-28 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: typhoeus