gerencianet 1.0.0 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- metadata +48 -135
- data/.codeclimate.yml +0 -10
- data/.gitignore +0 -21
- data/.rubocop.yml +0 -18
- data/.travis.yml +0 -4
- data/CHANGELOG.md +0 -74
- data/Gemfile +0 -9
- data/Guardfile +0 -5
- data/LICENSE +0 -21
- data/README.md +0 -96
- data/Rakefile +0 -6
- data/bin/console +0 -14
- data/bin/setup +0 -7
- data/examples/.gitignore +0 -1
- data/examples/certs/developmentCertificate.pem +0 -0
- data/examples/certs/productionCertificate.pem +0 -0
- data/examples/credentials.rb +0 -7
- data/examples/default/carnet/cancel_carnet.rb +0 -15
- data/examples/default/carnet/cancel_parcel.rb +0 -16
- data/examples/default/carnet/create_carnet.rb +0 -32
- data/examples/default/carnet/create_carnet_history.rb +0 -19
- data/examples/default/carnet/detail_carnet.rb +0 -15
- data/examples/default/carnet/resend_carnet.rb +0 -19
- data/examples/default/carnet/resend_parcel.rb +0 -20
- data/examples/default/carnet/settle_carnet_parcel.rb +0 -16
- data/examples/default/carnet/update_carnet_metadata.rb +0 -20
- data/examples/default/carnet/update_parcel.rb +0 -20
- data/examples/default/charge/all_in_one.rb +0 -57
- data/examples/default/charge/cancel_charge.rb +0 -15
- data/examples/default/charge/charge_link.rb +0 -27
- data/examples/default/charge/create_billet_payment.rb +0 -33
- data/examples/default/charge/create_card_payment.rb +0 -39
- data/examples/default/charge/create_charge.rb +0 -24
- data/examples/default/charge/create_charge_balance_sheet.rb +0 -80
- data/examples/default/charge/create_charge_history.rb +0 -19
- data/examples/default/charge/create_charge_onestep.rb +0 -36
- data/examples/default/charge/create_charge_onestep_creditcard.rb +0 -45
- data/examples/default/charge/detail_charge.rb +0 -15
- data/examples/default/charge/resend_billet.rb +0 -19
- data/examples/default/charge/settle_charge.rb +0 -15
- data/examples/default/charge/update_billet.rb +0 -19
- data/examples/default/charge/update_charge_link.rb +0 -27
- data/examples/default/charge/update_charge_metadata.rb +0 -20
- data/examples/default/marketplace/create_charge_onestep_billet_marketplace.rb +0 -45
- data/examples/default/marketplace/create_charge_onestep_creditcard_marketplace.rb +0 -54
- data/examples/default/notification/get_notification.rb +0 -15
- data/examples/default/others/get_installments.rb +0 -16
- data/examples/default/subscriptions/cancel_subscription.rb +0 -15
- data/examples/default/subscriptions/create_plan.rb +0 -17
- data/examples/default/subscriptions/create_subscription.rb +0 -31
- data/examples/default/subscriptions/create_subscription_history.rb +0 -19
- data/examples/default/subscriptions/create_subscription_payment.rb +0 -38
- data/examples/default/subscriptions/delete_plan.rb +0 -15
- data/examples/default/subscriptions/detail_subscription.rb +0 -15
- data/examples/default/subscriptions/get_plans.rb +0 -17
- data/examples/default/subscriptions/update_plan.rb +0 -19
- data/examples/default/subscriptions/update_subscription_metadata.rb +0 -20
- data/examples/gn/account/pix_detail_balance.rb +0 -16
- data/examples/gn/account/pix_detail_settings.rb +0 -17
- data/examples/gn/account/pix_update_settings.rb +0 -33
- data/examples/gn/key/pix_create_evp.rb +0 -17
- data/examples/gn/key/pix_delete_evp.rb +0 -20
- data/examples/gn/key/pix_list_evp.rb +0 -16
- data/examples/pix/charge/pix_create_charge.rb +0 -35
- data/examples/pix/charge/pix_create_immediate_charge.rb +0 -31
- data/examples/pix/charge/pix_detail_charge.rb +0 -21
- data/examples/pix/charge/pix_list_charges.rb +0 -21
- data/examples/pix/charge/pix_update_charge.rb +0 -26
- data/examples/pix/location/pix_create_location.rb +0 -20
- data/examples/pix/location/pix_detail_location.rb +0 -20
- data/examples/pix/location/pix_generate_qrcode.rb +0 -26
- data/examples/pix/location/pix_list_location.rb +0 -21
- data/examples/pix/location/pix_unset_txid.rb +0 -21
- data/examples/pix/pix/pix_detail.rb +0 -20
- data/examples/pix/pix/pix_detail_devolution.rb +0 -22
- data/examples/pix/pix/pix_devolution.rb +0 -27
- data/examples/pix/pix/pix_list_received.rb +0 -21
- data/examples/pix/pix/pix_send.rb +0 -27
- data/examples/pix/webhooks/pix_config_webhook.rb +0 -28
- data/examples/pix/webhooks/pix_delete_webhook.rb +0 -22
- data/examples/pix/webhooks/pix_detail_webhook.rb +0 -21
- data/examples/pix/webhooks/pix_list_webhook.rb +0 -22
- data/gerencianet.gemspec +0 -37
- data/lib/gerencianet/constants.rb +0 -274
- data/lib/gerencianet/endpoints.rb +0 -196
- data/lib/gerencianet/status.rb +0 -7
- data/lib/gerencianet/version.rb +0 -4
- data/lib/gerencianet.rb +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 52df8c2294a6ccd1ec59d63e72fa64300188ae93ea2507eb1bb1b1bb520805af
|
4
|
+
data.tar.gz: 19aeb19db8c1a79a61d76c19e2fdb04946488ea19f2d9684635e6a0daf6c017c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 660ce3a65394004c330b0ca37338c25b99e04f760c09fc43e79994854e72f53cdaa574f5fea5bb8d30a57c0e3e5e9cd09832c4e1726ea9fd2e7603465b3aa077
|
7
|
+
data.tar.gz: ca6b2ca18e1414c695baad8d0961727241cd3887523a0e083aa63f113befde6dd8614ef73f34bfb47261651a58e42efe8414b1684f03929308318adbc0c201d0
|
metadata
CHANGED
@@ -1,153 +1,153 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gerencianet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Francisco Carvalho
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '1.10'
|
20
17
|
- - "~>"
|
21
18
|
- !ruby/object:Gem::Version
|
22
|
-
version:
|
19
|
+
version: 2.2.24
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 2.2.24
|
23
23
|
type: :development
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
|
-
- - ">="
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '1.10'
|
30
27
|
- - "~>"
|
31
28
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
29
|
+
version: 2.2.24
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 2.2.24
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: rake
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- - ">="
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: '10.0'
|
40
37
|
- - "~>"
|
41
38
|
- !ruby/object:Gem::Version
|
42
|
-
version:
|
39
|
+
version: 12.3.3
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: 12.3.3
|
43
43
|
type: :development
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
|
-
- - ">="
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
version: '10.0'
|
50
47
|
- - "~>"
|
51
48
|
- !ruby/object:Gem::Version
|
52
|
-
version:
|
49
|
+
version: 12.3.3
|
50
|
+
- - ">="
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: 12.3.3
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
54
|
name: rspec
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
56
56
|
requirements:
|
57
|
-
- - ">="
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
version: 3.4.0
|
60
57
|
- - "~>"
|
61
58
|
- !ruby/object:Gem::Version
|
62
|
-
version: 3.
|
59
|
+
version: 3.10.0
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: 3.10.0
|
63
63
|
type: :development
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
|
-
- - ">="
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: 3.4.0
|
70
67
|
- - "~>"
|
71
68
|
- !ruby/object:Gem::Version
|
72
|
-
version: 3.
|
69
|
+
version: 3.10.0
|
70
|
+
- - ">="
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: 3.10.0
|
73
73
|
- !ruby/object:Gem::Dependency
|
74
74
|
name: guard-rspec
|
75
75
|
requirement: !ruby/object:Gem::Requirement
|
76
76
|
requirements:
|
77
|
-
- - "
|
77
|
+
- - "~>"
|
78
78
|
- !ruby/object:Gem::Version
|
79
79
|
version: 4.6.4
|
80
|
-
- - "
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: 4.6.4
|
83
83
|
type: :development
|
84
84
|
prerelease: false
|
85
85
|
version_requirements: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: 4.6.4
|
90
|
-
- - "
|
90
|
+
- - ">="
|
91
91
|
- !ruby/object:Gem::Version
|
92
92
|
version: 4.6.4
|
93
93
|
- !ruby/object:Gem::Dependency
|
94
94
|
name: webmock
|
95
95
|
requirement: !ruby/object:Gem::Requirement
|
96
96
|
requirements:
|
97
|
-
- - "
|
97
|
+
- - "~>"
|
98
98
|
- !ruby/object:Gem::Version
|
99
99
|
version: 1.22.3
|
100
|
-
- - "
|
100
|
+
- - ">="
|
101
101
|
- !ruby/object:Gem::Version
|
102
102
|
version: 1.22.3
|
103
103
|
type: :development
|
104
104
|
prerelease: false
|
105
105
|
version_requirements: !ruby/object:Gem::Requirement
|
106
106
|
requirements:
|
107
|
-
- - "
|
107
|
+
- - "~>"
|
108
108
|
- !ruby/object:Gem::Version
|
109
109
|
version: 1.22.3
|
110
|
-
- - "
|
110
|
+
- - ">="
|
111
111
|
- !ruby/object:Gem::Version
|
112
112
|
version: 1.22.3
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: rubocop
|
115
115
|
requirement: !ruby/object:Gem::Requirement
|
116
116
|
requirements:
|
117
|
-
- - ">="
|
118
|
-
- !ruby/object:Gem::Version
|
119
|
-
version: 0.49.0
|
120
117
|
- - "~>"
|
121
118
|
- !ruby/object:Gem::Version
|
122
|
-
version: 0.49.
|
119
|
+
version: 0.49.1
|
120
|
+
- - ">="
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: 0.49.1
|
123
123
|
type: :development
|
124
124
|
prerelease: false
|
125
125
|
version_requirements: !ruby/object:Gem::Requirement
|
126
126
|
requirements:
|
127
|
-
- - ">="
|
128
|
-
- !ruby/object:Gem::Version
|
129
|
-
version: 0.49.0
|
130
127
|
- - "~>"
|
131
128
|
- !ruby/object:Gem::Version
|
132
|
-
version: 0.49.
|
129
|
+
version: 0.49.1
|
130
|
+
- - ">="
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: 0.49.1
|
133
133
|
- !ruby/object:Gem::Dependency
|
134
134
|
name: listen
|
135
135
|
requirement: !ruby/object:Gem::Requirement
|
136
136
|
requirements:
|
137
|
-
- - "
|
137
|
+
- - "~>"
|
138
138
|
- !ruby/object:Gem::Version
|
139
139
|
version: 3.0.4
|
140
|
-
- - "
|
140
|
+
- - ">="
|
141
141
|
- !ruby/object:Gem::Version
|
142
142
|
version: 3.0.4
|
143
143
|
type: :development
|
144
144
|
prerelease: false
|
145
145
|
version_requirements: !ruby/object:Gem::Requirement
|
146
146
|
requirements:
|
147
|
-
- - "
|
147
|
+
- - "~>"
|
148
148
|
- !ruby/object:Gem::Version
|
149
149
|
version: 3.0.4
|
150
|
-
- - "
|
150
|
+
- - ">="
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: 3.0.4
|
153
153
|
- !ruby/object:Gem::Dependency
|
@@ -178,94 +178,7 @@ email:
|
|
178
178
|
executables: []
|
179
179
|
extensions: []
|
180
180
|
extra_rdoc_files: []
|
181
|
-
files:
|
182
|
-
- ".codeclimate.yml"
|
183
|
-
- ".gitignore"
|
184
|
-
- ".rubocop.yml"
|
185
|
-
- ".travis.yml"
|
186
|
-
- CHANGELOG.md
|
187
|
-
- Gemfile
|
188
|
-
- Guardfile
|
189
|
-
- LICENSE
|
190
|
-
- README.md
|
191
|
-
- Rakefile
|
192
|
-
- bin/console
|
193
|
-
- bin/setup
|
194
|
-
- examples/.gitignore
|
195
|
-
- examples/certs/developmentCertificate.pem
|
196
|
-
- examples/certs/productionCertificate.pem
|
197
|
-
- examples/credentials.rb
|
198
|
-
- examples/default/carnet/cancel_carnet.rb
|
199
|
-
- examples/default/carnet/cancel_parcel.rb
|
200
|
-
- examples/default/carnet/create_carnet.rb
|
201
|
-
- examples/default/carnet/create_carnet_history.rb
|
202
|
-
- examples/default/carnet/detail_carnet.rb
|
203
|
-
- examples/default/carnet/resend_carnet.rb
|
204
|
-
- examples/default/carnet/resend_parcel.rb
|
205
|
-
- examples/default/carnet/settle_carnet_parcel.rb
|
206
|
-
- examples/default/carnet/update_carnet_metadata.rb
|
207
|
-
- examples/default/carnet/update_parcel.rb
|
208
|
-
- examples/default/charge/all_in_one.rb
|
209
|
-
- examples/default/charge/cancel_charge.rb
|
210
|
-
- examples/default/charge/charge_link.rb
|
211
|
-
- examples/default/charge/create_billet_payment.rb
|
212
|
-
- examples/default/charge/create_card_payment.rb
|
213
|
-
- examples/default/charge/create_charge.rb
|
214
|
-
- examples/default/charge/create_charge_balance_sheet.rb
|
215
|
-
- examples/default/charge/create_charge_history.rb
|
216
|
-
- examples/default/charge/create_charge_onestep.rb
|
217
|
-
- examples/default/charge/create_charge_onestep_creditcard.rb
|
218
|
-
- examples/default/charge/detail_charge.rb
|
219
|
-
- examples/default/charge/resend_billet.rb
|
220
|
-
- examples/default/charge/settle_charge.rb
|
221
|
-
- examples/default/charge/update_billet.rb
|
222
|
-
- examples/default/charge/update_charge_link.rb
|
223
|
-
- examples/default/charge/update_charge_metadata.rb
|
224
|
-
- examples/default/marketplace/create_charge_onestep_billet_marketplace.rb
|
225
|
-
- examples/default/marketplace/create_charge_onestep_creditcard_marketplace.rb
|
226
|
-
- examples/default/notification/get_notification.rb
|
227
|
-
- examples/default/others/get_installments.rb
|
228
|
-
- examples/default/subscriptions/cancel_subscription.rb
|
229
|
-
- examples/default/subscriptions/create_plan.rb
|
230
|
-
- examples/default/subscriptions/create_subscription.rb
|
231
|
-
- examples/default/subscriptions/create_subscription_history.rb
|
232
|
-
- examples/default/subscriptions/create_subscription_payment.rb
|
233
|
-
- examples/default/subscriptions/delete_plan.rb
|
234
|
-
- examples/default/subscriptions/detail_subscription.rb
|
235
|
-
- examples/default/subscriptions/get_plans.rb
|
236
|
-
- examples/default/subscriptions/update_plan.rb
|
237
|
-
- examples/default/subscriptions/update_subscription_metadata.rb
|
238
|
-
- examples/gn/account/pix_detail_balance.rb
|
239
|
-
- examples/gn/account/pix_detail_settings.rb
|
240
|
-
- examples/gn/account/pix_update_settings.rb
|
241
|
-
- examples/gn/key/pix_create_evp.rb
|
242
|
-
- examples/gn/key/pix_delete_evp.rb
|
243
|
-
- examples/gn/key/pix_list_evp.rb
|
244
|
-
- examples/pix/charge/pix_create_charge.rb
|
245
|
-
- examples/pix/charge/pix_create_immediate_charge.rb
|
246
|
-
- examples/pix/charge/pix_detail_charge.rb
|
247
|
-
- examples/pix/charge/pix_list_charges.rb
|
248
|
-
- examples/pix/charge/pix_update_charge.rb
|
249
|
-
- examples/pix/location/pix_create_location.rb
|
250
|
-
- examples/pix/location/pix_detail_location.rb
|
251
|
-
- examples/pix/location/pix_generate_qrcode.rb
|
252
|
-
- examples/pix/location/pix_list_location.rb
|
253
|
-
- examples/pix/location/pix_unset_txid.rb
|
254
|
-
- examples/pix/pix/pix_detail.rb
|
255
|
-
- examples/pix/pix/pix_detail_devolution.rb
|
256
|
-
- examples/pix/pix/pix_devolution.rb
|
257
|
-
- examples/pix/pix/pix_list_received.rb
|
258
|
-
- examples/pix/pix/pix_send.rb
|
259
|
-
- examples/pix/webhooks/pix_config_webhook.rb
|
260
|
-
- examples/pix/webhooks/pix_delete_webhook.rb
|
261
|
-
- examples/pix/webhooks/pix_detail_webhook.rb
|
262
|
-
- examples/pix/webhooks/pix_list_webhook.rb
|
263
|
-
- gerencianet.gemspec
|
264
|
-
- lib/gerencianet.rb
|
265
|
-
- lib/gerencianet/constants.rb
|
266
|
-
- lib/gerencianet/endpoints.rb
|
267
|
-
- lib/gerencianet/status.rb
|
268
|
-
- lib/gerencianet/version.rb
|
181
|
+
files: []
|
269
182
|
homepage: http://gerencianet.github.io/gn-api-sdk-ruby
|
270
183
|
licenses:
|
271
184
|
- MIT
|
@@ -285,7 +198,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
285
198
|
- !ruby/object:Gem::Version
|
286
199
|
version: '0'
|
287
200
|
requirements: []
|
288
|
-
rubygems_version: 3.
|
201
|
+
rubygems_version: 3.1.2
|
289
202
|
signing_key:
|
290
203
|
specification_version: 4
|
291
204
|
summary: Gerencianet API Ruby Gem
|
data/.codeclimate.yml
DELETED
data/.gitignore
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
*.gem
|
2
|
-
*.rbc
|
3
|
-
.bundle
|
4
|
-
.config
|
5
|
-
.yardoc
|
6
|
-
Gemfile.lock
|
7
|
-
InstalledFiles
|
8
|
-
_yardoc
|
9
|
-
coverage
|
10
|
-
doc/
|
11
|
-
lib/bundler/man
|
12
|
-
pkg
|
13
|
-
rdoc
|
14
|
-
spec/reports
|
15
|
-
test/tmp
|
16
|
-
test/version_tmp
|
17
|
-
tmp
|
18
|
-
.ruby-gemset
|
19
|
-
.ruby-version
|
20
|
-
.rspec
|
21
|
-
turbulence
|
data/.rubocop.yml
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
Style/SpaceInsideHashLiteralBraces:
|
2
|
-
EnforcedStyle: no_space
|
3
|
-
|
4
|
-
Style/Encoding:
|
5
|
-
Enabled: true
|
6
|
-
EnforcedStyle: when_needed
|
7
|
-
|
8
|
-
Style/StringLiterals:
|
9
|
-
EnforcedStyle: double_quotes
|
10
|
-
|
11
|
-
Metrics/MethodLength:
|
12
|
-
Max: 20
|
13
|
-
|
14
|
-
Metrics/ClassLength:
|
15
|
-
Max: 250
|
16
|
-
|
17
|
-
Metrics/ModuleLength:
|
18
|
-
Max: 250
|
data/.travis.yml
DELETED
data/CHANGELOG.md
DELETED
@@ -1,74 +0,0 @@
|
|
1
|
-
# 1.0.0
|
2
|
-
|
3
|
-
- Added: API Pix endpoints
|
4
|
-
|
5
|
-
# 0.0.15
|
6
|
-
|
7
|
-
- Added: new endpoint (one step)
|
8
|
-
|
9
|
-
# 0.0.14
|
10
|
-
|
11
|
-
- Added: new endpoint (settle charge)
|
12
|
-
- Added: new endpoint (settle carnet parcel)
|
13
|
-
|
14
|
-
|
15
|
-
# 0.0.13
|
16
|
-
|
17
|
-
- Added: new endpoint (create charge balance sheet)
|
18
|
-
- Updated: examples
|
19
|
-
|
20
|
-
# 0.0.12
|
21
|
-
|
22
|
-
- Updated: dependencies
|
23
|
-
|
24
|
-
# 0.0.11
|
25
|
-
|
26
|
-
- Added: new endpoint (update plan)
|
27
|
-
- Added: new endpoint (create subscription history)
|
28
|
-
- Updated: examples
|
29
|
-
|
30
|
-
# 0.0.10
|
31
|
-
|
32
|
-
- Added: Update charge link endpoint mapping
|
33
|
-
|
34
|
-
# 0.0.9
|
35
|
-
|
36
|
-
- Added: Forward `partner-token` header
|
37
|
-
|
38
|
-
# 0.0.8
|
39
|
-
|
40
|
-
- Added: Charge link endpoint mapping
|
41
|
-
- Updated: Docs and examples
|
42
|
-
|
43
|
-
# 0.0.7
|
44
|
-
|
45
|
-
- Added: Cancel carnet endpoint mapping
|
46
|
-
- Added: Cancel parcel endpoint mapping
|
47
|
-
- Updated: Docs and examples
|
48
|
-
|
49
|
-
# 0.0.6
|
50
|
-
|
51
|
-
- Added: Carnet resend/history endpoints mapping
|
52
|
-
- Updated: Docs and examples
|
53
|
-
|
54
|
-
# 0.0.5
|
55
|
-
|
56
|
-
- Added: Charge history endpoint mapping
|
57
|
-
- Updated: Docs and examples
|
58
|
-
|
59
|
-
# 0.0.4
|
60
|
-
|
61
|
-
- Added: Custom http header
|
62
|
-
|
63
|
-
# 0.0.3
|
64
|
-
|
65
|
-
- Changed: Encode url params for get methods
|
66
|
-
|
67
|
-
# 0.0.2
|
68
|
-
|
69
|
-
- Changed: Functions now receive a single hash param like `{params: params, body: body}` instead of receiving two params `params, body` as before.
|
70
|
-
- Added: Docs and examples
|
71
|
-
|
72
|
-
# 0.0.1
|
73
|
-
|
74
|
-
- Initial release
|
data/Gemfile
DELETED
data/Guardfile
DELETED
data/LICENSE
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
The MIT License (MIT)
|
2
|
-
|
3
|
-
Copyright (c) 2015 Gerencianet Pagamentos do Brasil
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
13
|
-
all copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
-
THE SOFTWARE.
|
data/README.md
DELETED
@@ -1,96 +0,0 @@
|
|
1
|
-
# gn-api-sdk-ruby
|
2
|
-
|
3
|
-
> A ruby gem for integration of your backend with the payment services
|
4
|
-
provided by [Gerencianet](http://gerencianet.com.br).
|
5
|
-
|
6
|
-
[![Build Status](https://travis-ci.org/gerencianet/gn-api-sdk-ruby.svg)](https://travis-ci.org/gerencianet/gn-api-sdk-ruby)
|
7
|
-
[![Coverage Status](https://coveralls.io/repos/gerencianet/gn-api-sdk-ruby/badge.svg?branch=master&service=github)](https://coveralls.io/github/gerencianet/gn-api-sdk-ruby?branch=master)
|
8
|
-
[![Code Climate](https://codeclimate.com/github/gerencianet/gn-api-sdk-ruby/badges/gpa.svg)](https://codeclimate.com/github/gerencianet/gn-api-sdk-ruby)
|
9
|
-
[![Gem Version](https://badge.fury.io/rb/gerencianet.svg)](https://badge.fury.io/rb/gerencianet)
|
10
|
-
|
11
|
-
## Installation
|
12
|
-
|
13
|
-
Add this line to your application's Gemfile:
|
14
|
-
|
15
|
-
```ruby
|
16
|
-
gem 'gerencianet'
|
17
|
-
```
|
18
|
-
|
19
|
-
And then execute:
|
20
|
-
|
21
|
-
```bash
|
22
|
-
$ bundle
|
23
|
-
```
|
24
|
-
|
25
|
-
Or install it yourself as:
|
26
|
-
|
27
|
-
```bash
|
28
|
-
$ gem install gerencianet
|
29
|
-
```
|
30
|
-
## Tested with
|
31
|
-
```
|
32
|
-
ruby 2.6.6
|
33
|
-
```
|
34
|
-
## Basic usage
|
35
|
-
|
36
|
-
```ruby
|
37
|
-
require "gerencianet"
|
38
|
-
|
39
|
-
options = {
|
40
|
-
client_id: CREDENTIALS::CLIENT_ID,
|
41
|
-
client_secret: CREDENTIALS::CLIENT_SECRET,
|
42
|
-
sandbox: CREDENTIALS::SANDBOX
|
43
|
-
}
|
44
|
-
|
45
|
-
gerencianet = Gerencianet.new(options)
|
46
|
-
|
47
|
-
charge = {
|
48
|
-
items: [{
|
49
|
-
name: "Product A",
|
50
|
-
value: 1000,
|
51
|
-
amount: 2
|
52
|
-
}]
|
53
|
-
}
|
54
|
-
|
55
|
-
response = gerencianet.create_charge(body: charge)
|
56
|
-
```
|
57
|
-
|
58
|
-
## Examples
|
59
|
-
|
60
|
-
You can run the examples inside `examples` with `$ ruby examples/example.rb`:
|
61
|
-
|
62
|
-
```bash
|
63
|
-
$ ruby examples/create_charge.rb
|
64
|
-
```
|
65
|
-
|
66
|
-
Just remember to set the correct credentials inside `examples/credentials.rb` before running.
|
67
|
-
|
68
|
-
## Tests
|
69
|
-
|
70
|
-
To run the tests, just run *rspec*:
|
71
|
-
|
72
|
-
```bash
|
73
|
-
$ rspec
|
74
|
-
```
|
75
|
-
|
76
|
-
Or use *guard* to watch files and automatically run *rspec*
|
77
|
-
|
78
|
-
```bash
|
79
|
-
$ guard -n false -c
|
80
|
-
```
|
81
|
-
|
82
|
-
## Additional documentation
|
83
|
-
|
84
|
-
The full documentation with all available endpoints is in https://dev.gerencianet.com.br/.
|
85
|
-
|
86
|
-
## Changelog
|
87
|
-
|
88
|
-
[CHANGELOG](https://github.com/gerencianet/gn-api-sdk-ruby/tree/master/CHANGELOG.md)
|
89
|
-
|
90
|
-
## Contributing
|
91
|
-
|
92
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/gerencianet/gn-api-sdk-ruby. This project is intended to be a safe, welcoming space for collaboration.
|
93
|
-
|
94
|
-
## License
|
95
|
-
|
96
|
-
The gem is available as open source under the terms of the [MIT License](LICENSE).
|
data/Rakefile
DELETED
data/bin/console
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require "bundler/setup"
|
4
|
-
require "gerencianet"
|
5
|
-
|
6
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
-
# with your gem easier. You can also use a different console, if you like.
|
8
|
-
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
-
# require "pry"
|
11
|
-
# Pry.start
|
12
|
-
|
13
|
-
require "irb"
|
14
|
-
IRB.start
|
data/bin/setup
DELETED
data/examples/.gitignore
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
node_modules/
|
File without changes
|
File without changes
|
data/examples/credentials.rb
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
require "gerencianet"
|
2
|
-
require_relative "../../credentials"
|
3
|
-
|
4
|
-
options = {
|
5
|
-
client_id: CREDENTIALS::CLIENT_ID,
|
6
|
-
client_secret: CREDENTIALS::CLIENT_SECRET,
|
7
|
-
sandbox: CREDENTIALS::SANDBOX
|
8
|
-
}
|
9
|
-
|
10
|
-
params = {
|
11
|
-
id: 2363
|
12
|
-
}
|
13
|
-
|
14
|
-
gerencianet = Gerencianet.new(options)
|
15
|
-
puts gerencianet.cancel_carnet(params: params)
|
@@ -1,16 +0,0 @@
|
|
1
|
-
require "gerencianet"
|
2
|
-
require_relative "./credentials"
|
3
|
-
|
4
|
-
options = {
|
5
|
-
client_id: CREDENTIALS::CLIENT_ID,
|
6
|
-
client_secret: CREDENTIALS::CLIENT_SECRET,
|
7
|
-
sandbox: CREDENTIALS::SANDBOX
|
8
|
-
}
|
9
|
-
|
10
|
-
params = {
|
11
|
-
id: 2363,
|
12
|
-
parcel: 1
|
13
|
-
}
|
14
|
-
|
15
|
-
gerencianet = Gerencianet.new(options)
|
16
|
-
puts gerencianet.cancel_parcel(params: params)
|