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 +4 -4
- data/CHANGELOG.md +5 -0
- data/examples/charge_link.rb +0 -0
- data/examples/create_charge_balance_sheet.rb +80 -0
- data/examples/create_subscription_history.rb +19 -19
- data/examples/update_charge_link.rb +0 -0
- data/examples/update_plan.rb +19 -19
- data/lib/gerencianet/constants.rb +4 -0
- data/lib/gerencianet/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1d5b6e6c952f71ce27afbd32cfb382a37954aa9
|
4
|
+
data.tar.gz: ee304af5a9aaf607643b89fb74c2c3f1d20ed9ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff104696febe84c96eaaa89a96bcafb5dab372d1a7a6bd96200bbaff8a8daad71922d817a12592ce7906e7404be92feae9c296da046e6a00014f1a1898703904
|
7
|
+
data.tar.gz: 201e6171a6d24c9b94ac0dfd02e8b180a5a70f2c99b54ca90522579bec9ab5aecf4d4ded36097efad4b3dd9955db591084447255d495f909a736953f189388f9
|
data/CHANGELOG.md
CHANGED
data/examples/charge_link.rb
CHANGED
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
|
data/examples/update_plan.rb
CHANGED
@@ -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)
|
data/lib/gerencianet/version.rb
CHANGED
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.
|
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-
|
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
|