ruby-eupago 0.2.2 → 0.2.3

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
  SHA256:
3
- metadata.gz: 4cf6c0bfd82f28b111364544a37b9fbd32bf68c63aae3b311b03986d9ebb2ed8
4
- data.tar.gz: 454a458feb1ad7e2eb5838efb63f91f5b5b5213de3e6615f090037d9665689eb
3
+ metadata.gz: 28ae57ad8640c48fb1de7616361f9aedec7e1c4bc5986460d1c753a2013364de
4
+ data.tar.gz: 213eb6b5787314b7904433e449394b4d9abb5182a7d07653946c306cae1670c5
5
5
  SHA512:
6
- metadata.gz: 9c3cd5c7c0230d5afe8bfc97fcd058b4dd69ea3d061424c62181d9ecff0a0b940c983a43e129af1555130a4bb6c3141702f9fe5bb3aeb22ce03414d6ba3a5b41
7
- data.tar.gz: f3cee4d03e8de23975eaa3b70e985326bf7d140392c68de61c2be14c664e1076c3005d486e6799ffaf32936dc8924004f0a0a9886ecf555517bdb90f35d1cc3e
6
+ metadata.gz: d7dd94437f7db235b0b8cc9b4ccb7aa60207396d617547113041f64db9c9b03629f3a013b0ac9e3fdf2f96a3d7595a39841e9f567e8ac1c28744a2d943859731
7
+ data.tar.gz: b02b23787ae74830c3f8146abf598d40bc273de4c8d323657dccc9bd006303260bd59a091fa9c1a20259e259a931ac7da764d444ec6e135fb47636d9e7328f00
@@ -0,0 +1,12 @@
1
+ module EuPago
2
+ module Api
3
+ module V1
4
+ class Multibanco
5
+ # https://eupago.readme.io/reference/multibanco
6
+ def self.create(body)
7
+ V1.body_client.post("/clientes/rest_api/multibanco/create", body: body)
8
+ end
9
+ end
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,13 @@
1
+ module EuPago
2
+ module Api
3
+ module V1
4
+ class Pix
5
+ # TODO: Create spec when support enable pix payments in my sandbox account
6
+ # https://eupago.readme.io/reference/europix
7
+ def self.payment(body)
8
+ V1.client.post("/pix/create", body: body)
9
+ end
10
+ end
11
+ end
12
+ end
13
+ end
@@ -21,3 +21,5 @@ require "ruby-eupago/api/v1/mbway"
21
21
  require "ruby-eupago/api/v1/direct_debit"
22
22
  require "ruby-eupago/api/v1/payouts"
23
23
  require "ruby-eupago/api/v1/references"
24
+ require "ruby-eupago/api/v1/multibanco"
25
+ require "ruby-eupago/api/v1/pix"
@@ -2,7 +2,7 @@ module EuPago
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 2
5
- PATCH = 2
5
+ PATCH = 3
6
6
  STRING = "#{MAJOR}.#{MINOR}.#{PATCH}"
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-eupago
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexandro Castro
@@ -153,7 +153,9 @@ files:
153
153
  - lib/ruby-eupago/api/v1/credit_card.rb
154
154
  - lib/ruby-eupago/api/v1/direct_debit.rb
155
155
  - lib/ruby-eupago/api/v1/mbway.rb
156
+ - lib/ruby-eupago/api/v1/multibanco.rb
156
157
  - lib/ruby-eupago/api/v1/payouts.rb
158
+ - lib/ruby-eupago/api/v1/pix.rb
157
159
  - lib/ruby-eupago/api/v1/references.rb
158
160
  - lib/ruby-eupago/client.rb
159
161
  - lib/ruby-eupago/constants.rb