gerencianet 1.0.2 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. checksums.yaml +4 -4
  2. metadata +32 -119
  3. data/.codeclimate.yml +0 -10
  4. data/.gitignore +0 -21
  5. data/.rubocop.yml +0 -18
  6. data/.travis.yml +0 -4
  7. data/CHANGELOG.md +0 -78
  8. data/Gemfile +0 -9
  9. data/Guardfile +0 -5
  10. data/LICENSE +0 -21
  11. data/README.md +0 -96
  12. data/Rakefile +0 -6
  13. data/bin/console +0 -14
  14. data/bin/setup +0 -7
  15. data/examples/.gitignore +0 -1
  16. data/examples/certs/developmentCertificate.pem +0 -0
  17. data/examples/certs/productionCertificate.pem +0 -0
  18. data/examples/credentials.rb +0 -7
  19. data/examples/default/carnet/cancel_carnet.rb +0 -15
  20. data/examples/default/carnet/cancel_parcel.rb +0 -16
  21. data/examples/default/carnet/create_carnet.rb +0 -32
  22. data/examples/default/carnet/create_carnet_history.rb +0 -19
  23. data/examples/default/carnet/detail_carnet.rb +0 -15
  24. data/examples/default/carnet/resend_carnet.rb +0 -19
  25. data/examples/default/carnet/resend_parcel.rb +0 -20
  26. data/examples/default/carnet/settle_carnet_parcel.rb +0 -16
  27. data/examples/default/carnet/update_carnet_metadata.rb +0 -20
  28. data/examples/default/carnet/update_parcel.rb +0 -20
  29. data/examples/default/charge/all_in_one.rb +0 -57
  30. data/examples/default/charge/cancel_charge.rb +0 -15
  31. data/examples/default/charge/charge_link.rb +0 -27
  32. data/examples/default/charge/create_billet_payment.rb +0 -33
  33. data/examples/default/charge/create_card_payment.rb +0 -39
  34. data/examples/default/charge/create_charge.rb +0 -24
  35. data/examples/default/charge/create_charge_balance_sheet.rb +0 -80
  36. data/examples/default/charge/create_charge_history.rb +0 -19
  37. data/examples/default/charge/create_charge_onestep.rb +0 -36
  38. data/examples/default/charge/create_charge_onestep_creditcard.rb +0 -45
  39. data/examples/default/charge/detail_charge.rb +0 -15
  40. data/examples/default/charge/resend_billet.rb +0 -19
  41. data/examples/default/charge/settle_charge.rb +0 -15
  42. data/examples/default/charge/update_billet.rb +0 -19
  43. data/examples/default/charge/update_charge_link.rb +0 -27
  44. data/examples/default/charge/update_charge_metadata.rb +0 -20
  45. data/examples/default/marketplace/create_charge_onestep_billet_marketplace.rb +0 -45
  46. data/examples/default/marketplace/create_charge_onestep_creditcard_marketplace.rb +0 -54
  47. data/examples/default/notification/get_notification.rb +0 -15
  48. data/examples/default/others/get_installments.rb +0 -16
  49. data/examples/default/subscriptions/cancel_subscription.rb +0 -15
  50. data/examples/default/subscriptions/create_plan.rb +0 -17
  51. data/examples/default/subscriptions/create_subscription.rb +0 -31
  52. data/examples/default/subscriptions/create_subscription_history.rb +0 -19
  53. data/examples/default/subscriptions/create_subscription_payment.rb +0 -38
  54. data/examples/default/subscriptions/delete_plan.rb +0 -15
  55. data/examples/default/subscriptions/detail_subscription.rb +0 -15
  56. data/examples/default/subscriptions/get_plans.rb +0 -17
  57. data/examples/default/subscriptions/update_plan.rb +0 -19
  58. data/examples/default/subscriptions/update_subscription_metadata.rb +0 -20
  59. data/examples/gn/account/pix_detail_balance.rb +0 -16
  60. data/examples/gn/account/pix_detail_settings.rb +0 -17
  61. data/examples/gn/account/pix_update_settings.rb +0 -33
  62. data/examples/gn/key/pix_create_evp.rb +0 -17
  63. data/examples/gn/key/pix_delete_evp.rb +0 -20
  64. data/examples/gn/key/pix_list_evp.rb +0 -16
  65. data/examples/pix/charge/pix_create_charge.rb +0 -35
  66. data/examples/pix/charge/pix_create_immediate_charge.rb +0 -31
  67. data/examples/pix/charge/pix_detail_charge.rb +0 -21
  68. data/examples/pix/charge/pix_list_charges.rb +0 -21
  69. data/examples/pix/charge/pix_update_charge.rb +0 -26
  70. data/examples/pix/location/pix_create_location.rb +0 -20
  71. data/examples/pix/location/pix_detail_location.rb +0 -20
  72. data/examples/pix/location/pix_generate_qrcode.rb +0 -26
  73. data/examples/pix/location/pix_list_location.rb +0 -21
  74. data/examples/pix/location/pix_unset_txid.rb +0 -21
  75. data/examples/pix/pix/pix_detail.rb +0 -20
  76. data/examples/pix/pix/pix_detail_devolution.rb +0 -22
  77. data/examples/pix/pix/pix_devolution.rb +0 -27
  78. data/examples/pix/pix/pix_list_received.rb +0 -21
  79. data/examples/pix/pix/pix_send.rb +0 -27
  80. data/examples/pix/webhooks/pix_config_webhook.rb +0 -28
  81. data/examples/pix/webhooks/pix_delete_webhook.rb +0 -22
  82. data/examples/pix/webhooks/pix_detail_webhook.rb +0 -21
  83. data/examples/pix/webhooks/pix_list_webhook.rb +0 -22
  84. data/gerencianet.gemspec +0 -37
  85. data/lib/gerencianet/constants.rb +0 -274
  86. data/lib/gerencianet/endpoints.rb +0 -196
  87. data/lib/gerencianet/status.rb +0 -7
  88. data/lib/gerencianet/version.rb +0 -4
  89. data/lib/gerencianet.rb +0 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e35fad809aa151178de0c4f0e03b92e1e24b0593cbd26be257f1d4439115fb1e
4
- data.tar.gz: 899551b58ee314b2bd468995376cca3d45d0eabf0f40b384b799b788c13424c9
3
+ metadata.gz: 52df8c2294a6ccd1ec59d63e72fa64300188ae93ea2507eb1bb1b1bb520805af
4
+ data.tar.gz: 19aeb19db8c1a79a61d76c19e2fdb04946488ea19f2d9684635e6a0daf6c017c
5
5
  SHA512:
6
- metadata.gz: d3776e14b5a28de96ba56b13e1016ce80b9216a8e3fd8e6dca07b41b5fd87fc1d7d7c65d412d6c41ee17ce39afd013a9147ef540a912f3474d8ba30b9ccb6437
7
- data.tar.gz: 56a8cdaaa5b66da0632b4c3ea50c794a901162f1b761962c4d528e4289f76f2a90af34efb52384ea2f6bffb966d3acd39d4def58f5e4198cbbe90d6b8f27c260
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.0.2
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: 2021-07-27 00:00:00.000000000 Z
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
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: 2.2.24
20
- - - "~>"
20
+ - - ">="
21
21
  - !ruby/object:Gem::Version
22
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
- - - ">="
27
+ - - "~>"
28
28
  - !ruby/object:Gem::Version
29
29
  version: 2.2.24
30
- - - "~>"
30
+ - - ">="
31
31
  - !ruby/object:Gem::Version
32
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
- - - ">="
37
+ - - "~>"
38
38
  - !ruby/object:Gem::Version
39
39
  version: 12.3.3
40
- - - "~>"
40
+ - - ">="
41
41
  - !ruby/object:Gem::Version
42
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
- - - ">="
47
+ - - "~>"
48
48
  - !ruby/object:Gem::Version
49
49
  version: 12.3.3
50
- - - "~>"
50
+ - - ">="
51
51
  - !ruby/object:Gem::Version
52
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
- - - ">="
57
+ - - "~>"
58
58
  - !ruby/object:Gem::Version
59
59
  version: 3.10.0
60
- - - "~>"
60
+ - - ">="
61
61
  - !ruby/object:Gem::Version
62
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
- - - ">="
67
+ - - "~>"
68
68
  - !ruby/object:Gem::Version
69
69
  version: 3.10.0
70
- - - "~>"
70
+ - - ">="
71
71
  - !ruby/object:Gem::Version
72
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
- - - ">="
117
+ - - "~>"
118
118
  - !ruby/object:Gem::Version
119
119
  version: 0.49.1
120
- - - "~>"
120
+ - - ">="
121
121
  - !ruby/object:Gem::Version
122
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
- - - ">="
127
+ - - "~>"
128
128
  - !ruby/object:Gem::Version
129
129
  version: 0.49.1
130
- - - "~>"
130
+ - - ">="
131
131
  - !ruby/object:Gem::Version
132
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.0.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
@@ -1,10 +0,0 @@
1
- engines:
2
- rubocop:
3
- enabled: true
4
- ratings:
5
- paths:
6
- - "lib/**/*.rb"
7
- exclude_paths:
8
- - docs/**/*
9
- - examples/**/*
10
- - spec/**/*
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
@@ -1,4 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.6.6
4
- before_install: gem install bundler -v 1.17.2
data/CHANGELOG.md DELETED
@@ -1,78 +0,0 @@
1
- # 1.0.2
2
-
3
- - Updated: dependencies
4
-
5
- # 1.0.0
6
-
7
- - Added: API Pix endpoints
8
-
9
- # 0.0.15
10
-
11
- - Added: new endpoint (one step)
12
-
13
- # 0.0.14
14
-
15
- - Added: new endpoint (settle charge)
16
- - Added: new endpoint (settle carnet parcel)
17
-
18
-
19
- # 0.0.13
20
-
21
- - Added: new endpoint (create charge balance sheet)
22
- - Updated: examples
23
-
24
- # 0.0.12
25
-
26
- - Updated: dependencies
27
-
28
- # 0.0.11
29
-
30
- - Added: new endpoint (update plan)
31
- - Added: new endpoint (create subscription history)
32
- - Updated: examples
33
-
34
- # 0.0.10
35
-
36
- - Added: Update charge link endpoint mapping
37
-
38
- # 0.0.9
39
-
40
- - Added: Forward `partner-token` header
41
-
42
- # 0.0.8
43
-
44
- - Added: Charge link endpoint mapping
45
- - Updated: Docs and examples
46
-
47
- # 0.0.7
48
-
49
- - Added: Cancel carnet endpoint mapping
50
- - Added: Cancel parcel endpoint mapping
51
- - Updated: Docs and examples
52
-
53
- # 0.0.6
54
-
55
- - Added: Carnet resend/history endpoints mapping
56
- - Updated: Docs and examples
57
-
58
- # 0.0.5
59
-
60
- - Added: Charge history endpoint mapping
61
- - Updated: Docs and examples
62
-
63
- # 0.0.4
64
-
65
- - Added: Custom http header
66
-
67
- # 0.0.3
68
-
69
- - Changed: Encode url params for get methods
70
-
71
- # 0.0.2
72
-
73
- - Changed: Functions now receive a single hash param like `{params: params, body: body}` instead of receiving two params `params, body` as before.
74
- - Added: Docs and examples
75
-
76
- # 0.0.1
77
-
78
- - Initial release
data/Gemfile DELETED
@@ -1,9 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gem "coveralls", require: false
4
-
5
- # require "pry"
6
- # Pry.start
7
-
8
- # Specify your gem's dependencies in gerencianet.gemspec
9
- gemspec
data/Guardfile DELETED
@@ -1,5 +0,0 @@
1
- guard :rspec, cmd: "rspec" do
2
- watch(%r{^spec/.+_spec\.rb$})
3
- watch(%r{^lib/(.+)\.rb$}) { "spec" }
4
- watch("spec/spec_helper.rb") { "spec" }
5
- end
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
@@ -1,6 +0,0 @@
1
- require "bundler/gem_tasks"
2
- require "rspec/core/rake_task"
3
-
4
- RSpec::Core::RakeTask.new(:spec)
5
-
6
- task default: :spec
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
@@ -1,7 +0,0 @@
1
- #!/bin/bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
-
5
- bundle install
6
-
7
- # Do any other automated setup that you need to do here
data/examples/.gitignore DELETED
@@ -1 +0,0 @@
1
- node_modules/
File without changes
File without changes
@@ -1,7 +0,0 @@
1
- # example
2
- module CREDENTIALS
3
- CLIENT_ID = "Client_Id"
4
- CLIENT_SECRET = "Client_Secret"
5
- PIX_CERT = "../../certs/developmentCertificate.pem"
6
- SANDBOX = true
7
- end
@@ -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)