solidus_inter 1.1.2 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b1a371d784fd2c853bc8d38e9f6c008e16dc756c74647f93c9b5c7db445c6df3
4
- data.tar.gz: 890ccdc769f966922e4540ba629b92e9c309473bca3aabd02769a96dac019e48
3
+ metadata.gz: 7aa0fdda876bf2dd7b36faa4f0ee3de9e37846e83f234efc222f935d89831417
4
+ data.tar.gz: 25d93553c05adf4a56fad8ca46ac5eb5a98966daceed65a222572589e5c9eaae
5
5
  SHA512:
6
- metadata.gz: af861a189d69b52c400327912635366b300ba7602498f91beeb02873c09341d044d69403713e7aa76897b3e8885887a319a70b638af3eec9401dd3e8a8650c6b
7
- data.tar.gz: de0f66f6af98367fd4aa0a5de6b41f601f73f1ef4c2b8314befa9cdab4a4e186a5bd81abd42c52ad2ed92dd20f346eb1f7c796171dfb3e53b82074498dfeac62
6
+ metadata.gz: 4df48e93c2cd5df49a9e14d309bf8320a6f8af512a24f4e9745cb2a32fc457992214b7184ca631d034515864d4ec91b10e65212c23be82410fca7941b7bba60b
7
+ data.tar.gz: 0c37bd2d1bb18d24609d29fa90d4e56815570a068442b62c0e66e7a418ade329482d1c054e23cc932abad31bed630477e64a9afe6b25d0bde325b25388ce032d
@@ -0,0 +1,20 @@
1
+ module SolidusInter
2
+ class Gateway
3
+ def initialize options
4
+ end
5
+
6
+ def void(transaction_id, options = {})
7
+ # Respondendo sempre com successful_response para funcionar o botão de "Cancelar" do pedido. Reembolso deve ser feito por fora.
8
+ successful_response("Pedido cancelado. Se necessário, realize o reembolso.", transaction_id)
9
+ end
10
+
11
+ def successful_response message, transaction_id
12
+ ActiveMerchant::Billing::Response.new(
13
+ true,
14
+ message,
15
+ {},
16
+ authorization: transaction_id
17
+ )
18
+ end
19
+ end
20
+ end
@@ -12,7 +12,7 @@ module SolidusInter
12
12
  end
13
13
 
14
14
  def gateway_class
15
- InterPix
15
+ Gateway
16
16
  end
17
17
 
18
18
  def supports?(source)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidusInter
4
- VERSION = "1.1.2"
4
+ VERSION = "1.2.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_inter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ulysses
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-08-05 00:00:00.000000000 Z
11
+ date: 2024-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: solidus_core
@@ -105,6 +105,7 @@ files:
105
105
  - README.md
106
106
  - Rakefile
107
107
  - app/models/solidus_inter/account.rb
108
+ - app/models/solidus_inter/gateway.rb
108
109
  - app/models/solidus_inter/inter_pix.rb
109
110
  - app/models/solidus_inter/pix_payment_source.rb
110
111
  - app/views/spree/admin/payments/source_forms/_inter_pix.html.erb
@@ -136,7 +137,7 @@ metadata:
136
137
  homepage_uri: https://github.com/ulysses-bull/solidus_inter#readme
137
138
  source_code_uri: https://github.com/ulysses-bull/solidus_inter
138
139
  changelog_uri: https://github.com/ulysses-bull/solidus_inter/blob/main/CHANGELOG.md
139
- post_install_message:
140
+ post_install_message:
140
141
  rdoc_options: []
141
142
  require_paths:
142
143
  - lib
@@ -154,8 +155,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
154
155
  - !ruby/object:Gem::Version
155
156
  version: '0'
156
157
  requirements: []
157
- rubygems_version: 3.5.10
158
- signing_key:
158
+ rubygems_version: 3.5.11
159
+ signing_key:
159
160
  specification_version: 4
160
161
  summary: ''
161
162
  test_files: []