gerencianet 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 678f1a01ac32145d4f5657d06fa34523cc209a96
4
- data.tar.gz: 9c3639be90484d6318592cfa2e87d9cada3f6d13
3
+ metadata.gz: c1d5b6e6c952f71ce27afbd32cfb382a37954aa9
4
+ data.tar.gz: ee304af5a9aaf607643b89fb74c2c3f1d20ed9ed
5
5
  SHA512:
6
- metadata.gz: 5a4b756aa28b9172f4b4ce0182c035d692340a17c533425acd5de0f2b798ae4f823f576407cfccc4eaa3b56e38f20bf4bd7690c0ca17b62dc8917aee62e3e67e
7
- data.tar.gz: 84f2c529ca13e4a0714e50e15f8cebb889d73885bb6d1602655ee6d143aded13cd2a06c90198c4c80e97b189f858609917538907612a9850e48a0cb6bbbc3edd
6
+ metadata.gz: ff104696febe84c96eaaa89a96bcafb5dab372d1a7a6bd96200bbaff8a8daad71922d817a12592ce7906e7404be92feae9c296da046e6a00014f1a1898703904
7
+ data.tar.gz: 201e6171a6d24c9b94ac0dfd02e8b180a5a70f2c99b54ca90522579bec9ab5aecf4d4ded36097efad4b3dd9955db591084447255d495f909a736953f189388f9
@@ -1,3 +1,8 @@
1
+ # 0.0.13
2
+
3
+ - Added: new endpoint (create charge balance sheet)
4
+ - Updated: examples
5
+
1
6
  # 0.0.12
2
7
 
3
8
  - Updated: dependencies
File without changes
@@ -0,0 +1,80 @@
1
+ require "gerencianet"
2
+ require_relative "./credentials"
3
+
4
+ options = {
5
+ client_id: CREDENTIALS::CLIENT_ID,
6
+ client_secret: CREDENTIALS::CLIENT_SECRET,
7
+ sandbox: true
8
+ }
9
+
10
+ params = {
11
+ id: 1000
12
+ }
13
+
14
+ body = {
15
+ title: "Balancete Demonstrativo",
16
+ body: [
17
+ {
18
+ header: "Demonstrativo de Consumo",
19
+ tables: [
20
+ {
21
+ rows: [
22
+ [
23
+ {
24
+ align: "left",
25
+ color: "#000000",
26
+ style: "bold",
27
+ text: "Exemplo de despesa",
28
+ colspan: 2
29
+ },
30
+ {
31
+ align: "left",
32
+ color: "#000000",
33
+ style: "bold",
34
+ text: "Total lançado",
35
+ colspan: 2
36
+ }
37
+ ],
38
+ [
39
+ {
40
+ align: "left",
41
+ color: "#000000",
42
+ style: "normal",
43
+ text: "Instalação",
44
+ colspan: 2
45
+ },
46
+ {
47
+ align: "left",
48
+ color: "#000000",
49
+ style: "normal",
50
+ text: "R$ 100,00",
51
+ colspan: 2
52
+ }
53
+ ]
54
+ ]
55
+ }
56
+ ]
57
+ },
58
+ {
59
+ header: "Balancete Geral",
60
+ tables: [
61
+ {
62
+ rows: [
63
+ [
64
+ {
65
+ align: "left",
66
+ color: "#000000",
67
+ style: "normal",
68
+ text: "Confira na documentação da Gerencianet todas as configurações possíveis de um boleto balancete.",
69
+ colspan: 4
70
+ }
71
+ ]
72
+ ]
73
+ }
74
+ ]
75
+ }
76
+ ]
77
+ }
78
+
79
+ gerencianet = Gerencianet.new(options)
80
+ puts gerencianet.create_charge_balance_sheet(params: params, body: body)
@@ -1,19 +1,19 @@
1
- require "gerencianet"
2
- require_relative "./credentials"
3
-
4
- options = {
5
- client_id: CREDENTIALS::CLIENT_ID,
6
- client_secret: CREDENTIALS::CLIENT_SECRET,
7
- sandbox: true
8
- }
9
-
10
- params = {
11
- id: 1000
12
- }
13
-
14
- body = {
15
- description: "This subscription is about a service"
16
- }
17
-
18
- gerencianet = Gerencianet.new(options)
19
- puts gerencianet.create_subscription_history(params: params, body: body)
1
+ require "gerencianet"
2
+ require_relative "./credentials"
3
+
4
+ options = {
5
+ client_id: CREDENTIALS::CLIENT_ID,
6
+ client_secret: CREDENTIALS::CLIENT_SECRET,
7
+ sandbox: true
8
+ }
9
+
10
+ params = {
11
+ id: 1000
12
+ }
13
+
14
+ body = {
15
+ description: "This subscription is about a service"
16
+ }
17
+
18
+ gerencianet = Gerencianet.new(options)
19
+ puts gerencianet.create_subscription_history(params: params, body: body)
File without changes
@@ -1,19 +1,19 @@
1
- require "gerencianet"
2
- require_relative "./credentials"
3
-
4
- options = {
5
- client_id: CREDENTIALS::CLIENT_ID,
6
- client_secret: CREDENTIALS::CLIENT_SECRET,
7
- sandbox: true
8
- }
9
-
10
- params = {
11
- id: 1008
12
- }
13
-
14
- body = {
15
- name: "My new plan"
16
- }
17
-
18
- gerencianet = Gerencianet.new(options)
19
- puts gerencianet.update_plan(params: params, body: body)
1
+ require "gerencianet"
2
+ require_relative "./credentials"
3
+
4
+ options = {
5
+ client_id: CREDENTIALS::CLIENT_ID,
6
+ client_secret: CREDENTIALS::CLIENT_SECRET,
7
+ sandbox: true
8
+ }
9
+
10
+ params = {
11
+ id: 1008
12
+ }
13
+
14
+ body = {
15
+ name: "My new plan"
16
+ }
17
+
18
+ gerencianet = Gerencianet.new(options)
19
+ puts gerencianet.update_plan(params: params, body: body)
@@ -138,6 +138,10 @@ module Gerencianet
138
138
  create_subscription_history: {
139
139
  route: "/subscription/:id/history",
140
140
  method: "post"
141
+ },
142
+ create_charge_balance_sheet: {
143
+ route: "/charge/:id/balance-sheet",
144
+ method: "post"
141
145
  }
142
146
  }
143
147
  end
@@ -1,4 +1,4 @@
1
1
  # :nodoc:
2
2
  module Gerencianet
3
- VERSION = "0.0.12"
3
+ VERSION = "0.0.13"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gerencianet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Francisco Carvalho
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-01-05 00:00:00.000000000 Z
11
+ date: 2018-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -203,6 +203,7 @@ files:
203
203
  - examples/create_carnet.rb
204
204
  - examples/create_carnet_history.rb
205
205
  - examples/create_charge.rb
206
+ - examples/create_charge_balance_sheet.rb
206
207
  - examples/create_charge_history.rb
207
208
  - examples/create_plan.rb
208
209
  - examples/create_subscription.rb