gerencianet 0.0.9 → 0.0.10

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: b49a1314a17e6618f07580761a29a05f35828df6
4
- data.tar.gz: 0d2c707d240ba3ff5188c99760c189d1f5837b17
3
+ metadata.gz: dfc2dfd4fce49135ea400255e73bc979f7119c5c
4
+ data.tar.gz: 0042150ec9444965e47d846e9b95f2b8f64ad2c0
5
5
  SHA512:
6
- metadata.gz: d0d0fad282abd4ddcd6de0ca146566271d43ae68b938d35fabd092c8d6b5ba91619a21f0f844c49955d9a4e35063f1d3a287de4721e94eec056725f8c1b3cc84
7
- data.tar.gz: 0851cd11643cc0abba37b79942bf8a674a46450f76064a344363a9d4e0e80ebf88ecabfb729c6deebe29544ca44454a299f67e5de49b0065dc143565de8f0a65
6
+ metadata.gz: e7620f3c8425a458e1460d2b67c62f437f90158f4c2df02c7a15d2f718077f6fa34b757b06ca35571998cb41fbdd12d697df5e795850da1089aa3550afe0afa0
7
+ data.tar.gz: 9f1b56a39cd32d11b3f2091772f60ca1f2afbac06fd4d34831ce5c84a3f1a6474fa705c6106a594d269f4d201b75c5e1367697c98ebf5a2609fb3a7b0b6da3c7
data/.codeclimate.yml CHANGED
@@ -1,4 +1,10 @@
1
+ engines:
2
+ rubocop:
3
+ enabled: true
4
+ ratings:
5
+ paths:
6
+ - "lib/**/*.rb"
1
7
  exclude_paths:
2
- - docs/**/*
3
- - examples/**/*
4
- - spec/**/*
8
+ - docs/**/*
9
+ - examples/**/*
10
+ - spec/**/*
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ # 0.0.10
2
+
3
+ - Added: Update charge link endpoint mapping
4
+
5
+ # 0.0.9
6
+
7
+ - Added: Forward `partner-token` header
8
+
1
9
  # 0.0.8
2
10
 
3
11
  - Added: Charge link endpoint mapping
@@ -24,4 +24,4 @@ body = {
24
24
  }
25
25
 
26
26
  gerencianet = Gerencianet.new(options)
27
- puts gerencianet.link_charge(params: params, body: body)
27
+ puts gerencianet.charge_link(params: params, body: body)
@@ -0,0 +1,27 @@
1
+ require "gerencianet"
2
+ require "date"
3
+ require_relative "./credentials"
4
+
5
+ options = {
6
+ client_id: CREDENTIALS::CLIENT_ID,
7
+ client_secret: CREDENTIALS::CLIENT_SECRET,
8
+ sandbox: true
9
+ }
10
+
11
+ expireAt = Date.today + 3
12
+
13
+ params = {
14
+ id: 1000
15
+ }
16
+
17
+ body = {
18
+ billet_discount: 0,
19
+ card_discount: 0,
20
+ message: "",
21
+ expire_at: expireAt.strftime,
22
+ request_delivery_address: false,
23
+ payment_method: "all"
24
+ }
25
+
26
+ gerencianet = Gerencianet.new(options)
27
+ puts gerencianet.update_charge_link(params: params, body: body)
@@ -122,6 +122,14 @@ module Gerencianet
122
122
  link_charge: {
123
123
  route: "/charge/:id/link",
124
124
  method: "post"
125
+ },
126
+ charge_link: {
127
+ route: "/charge/:id/link",
128
+ method: "post"
129
+ },
130
+ update_charge_link: {
131
+ route: "/charge/:id/link",
132
+ method: "put"
125
133
  }
126
134
  }
127
135
  end
@@ -1,4 +1,4 @@
1
1
  # :nodoc:
2
2
  module Gerencianet
3
- VERSION = "0.0.9"
3
+ VERSION = "0.0.10"
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.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Francisco Carvalho
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-11-14 00:00:00.000000000 Z
11
+ date: 2017-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -197,6 +197,7 @@ files:
197
197
  - examples/cancel_charge.rb
198
198
  - examples/cancel_parcel.rb
199
199
  - examples/cancel_subscription.rb
200
+ - examples/charge_link.rb
200
201
  - examples/create_billet_payment.rb
201
202
  - examples/create_card_payment.rb
202
203
  - examples/create_carnet.rb
@@ -214,12 +215,12 @@ files:
214
215
  - examples/get_installments.rb
215
216
  - examples/get_notification.rb
216
217
  - examples/get_plans.rb
217
- - examples/link_charge.rb
218
218
  - examples/resend_billet.rb
219
219
  - examples/resend_carnet.rb
220
220
  - examples/resend_parcel.rb
221
221
  - examples/update_billet.rb
222
222
  - examples/update_carnet_metadata.rb
223
+ - examples/update_charge_link.rb
223
224
  - examples/update_charge_metadata.rb
224
225
  - examples/update_parcel.rb
225
226
  - examples/update_subscription_metadata.rb